Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/ByeL1R4FvS/ByeL1R4FvS.md +409 -0
- parse/train/ByeL1R4FvS/ByeL1R4FvS_content_list.json +0 -0
- parse/train/ByeL1R4FvS/ByeL1R4FvS_middle.json +0 -0
- parse/train/ByeL1R4FvS/ByeL1R4FvS_model.json +0 -0
- parse/train/ee6W5UgQLa/ee6W5UgQLa.md +269 -0
- parse/train/ee6W5UgQLa/ee6W5UgQLa_content_list.json +1490 -0
- parse/train/ee6W5UgQLa/ee6W5UgQLa_middle.json +0 -0
- parse/train/ee6W5UgQLa/ee6W5UgQLa_model.json +0 -0
- parse/train/r1DPFCyA-/r1DPFCyA-.md +593 -0
- parse/train/r1DPFCyA-/r1DPFCyA-_content_list.json +0 -0
- parse/train/r1DPFCyA-/r1DPFCyA-_middle.json +0 -0
- parse/train/r1DPFCyA-/r1DPFCyA-_model.json +0 -0
- parse/train/rkfOvGbCW/rkfOvGbCW.md +378 -0
- parse/train/rkfOvGbCW/rkfOvGbCW_content_list.json +1983 -0
- parse/train/rkfOvGbCW/rkfOvGbCW_middle.json +0 -0
- parse/train/rkfOvGbCW/rkfOvGbCW_model.json +0 -0
- parse/train/yhjpeuWepoj/yhjpeuWepoj.md +303 -0
- parse/train/yhjpeuWepoj/yhjpeuWepoj_content_list.json +1193 -0
- parse/train/yhjpeuWepoj/yhjpeuWepoj_middle.json +0 -0
- parse/train/yhjpeuWepoj/yhjpeuWepoj_model.json +0 -0
parse/train/ByeL1R4FvS/ByeL1R4FvS.md
ADDED
|
@@ -0,0 +1,409 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UNSUPERVISED DATA AUGMENTATION FOR CONSISTENCY TRAINING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Semi-supervised learning lately has shown much promise in improving deep learning models when labeled data is scarce. Common among recent approaches is the use of consistency training on a large amount of unlabeled data to constrain model predictions to be invariant to input noise. In this work, we present a new perspective on how to effectively noise unlabeled examples and argue that the quality of noising, specifically those produced by advanced data augmentation methods, plays a crucial role in semi-supervised learning. By substituting simple noising operations with advanced data augmentation methods, our method brings substantial improvements across six language and three vision tasks under the same consistency training framework. On the IMDb text classification dataset, with only 20 labeled examples, our method achieves an error rate of 4.20, outperforming the state-of-the-art model trained on 25,000 labeled examples. On a standard semi-supervised learning benchmark, CIFAR-10, our method outperforms all previous approaches and achieves an error rate of $2 . 7 \%$ with only 4,000 examples, nearly matching the performance of models trained on 50,000 labeled examples. Our method also combines well with transfer learning, e.g., when finetuning from BERT, and yields improvements in high-data regime, such as ImageNet, whether when there is only $10 \%$ labeled data or when a full labeled set with 1.3M extra unlabeled examples is used. 1
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
A fundamental weakness of deep learning is that it typically requires a lot of labeled data to work well. Semi-supervised learning (SSL) (Chapelle et al., 2009) is one of the most promising methods of leveraging unlabeled data to address this weakness. The recent works in SSL are diverse but those that are based on consistency training (Bachman et al., 2014; Rasmus et al., 2015; Laine & Aila, 2016; Tarvainen & Valpola, 2017) have shown to work well on many benchmarks.
|
| 12 |
+
|
| 13 |
+
In a nutshell, consistency training methods simply regularize model predictions to be invariant to small noise applied to either input examples (Miyato et al., 2018; Sajjadi et al., 2016; Clark et al., 2018) or hidden states (Bachman et al., 2014; Laine & Aila, 2016). This framework makes sense intuitively because a good model should be robust to any small change in an input example or hidden states. Under this framework, different methods in this category differ mostly in how and where the noise injection is applied. Typical noise injection methods are additive Gaussian noise, dropout noise or adversarial noise.
|
| 14 |
+
|
| 15 |
+
In this work, we investigate the role of noise injection in consistency training and observe that advanced data augmentation methods, specifically those work best in supervised learning (Simard et al., 1998; Krizhevsky et al., 2012; Cubuk et al., 2018; Yu et al., 2018), also perform well in semisupervised learning. There is indeed a strong correlation between the performance of data augmentation operations in supervised learning and their performance in consistency training. We, hence, propose to substitute the traditional noise injection methods with high quality data augmentation methods in order to improve consistency training. To emphasize the use of better data augmentation in consistency training, we name our method Unsupervised Data Augmentation or UDA.
|
| 16 |
+
|
| 17 |
+
We evaluate UDA on a wide variety of language and vision tasks. On six text classification tasks, our method achieves significant improvements over state-of-the-art models. Notably, on IMDb, UDA with 20 labeled examples outperforms the state-of-the-art model trained on $1 2 5 0 \mathrm { x }$ more labeled data. We also evaluate UDA on standard semi-supervised learning benchmarks for vision such as CIFAR-10 and SVHN. UDA outperforms all existing semi-supervised learning methods by significant margins. On CIFAR-10 with 4,000 labeled examples, UDA achieves an error rate of 5.29, nearly matching the performance of the fully supervised model that uses 50,000 labeled examples. Furthermore, with a better architecture, PyramidNet+ShakeDrop, UDA achieves a new state-ofthe-art error rate of 2.7. On SVHN, UDA achieves an error rate of 2.55 with only 1,000 labeled examples. Finally, we also find UDA to be beneficial when there is a large amount of supervised data. For instance, on ImageNet, UDA leads to improvements of top-1 accuracy from 58.84 to 68.78 with $1 0 \%$ of the labeled set and from 78.43 to 79.05 when we use the full labeled set and an external dataset with 1.3M unlabeled examples.
|
| 18 |
+
|
| 19 |
+
Our key contributions and findings can be summarized as follows:
|
| 20 |
+
|
| 21 |
+
β’ First, we show that state-of-the-art data augmentations found in supervised learning can also serve as a superior source of perturbation under the consistency enforcing semi-supervised framework. See results in Table 1 and Table 2.
|
| 22 |
+
β’ Second, we show that UDA can match and even outperform purely supervised learning that uses orders of magnitude more labeled data. State-of-the-art results for both vision and language tasks are reported in Table 3 and 4. The effectiveness of UDA across different training data sizes are highlighted in Figure 4 and 5.
|
| 23 |
+
β’ Finally, we show that UDA combines well with transfer learning, e.g., when fine-tuning from BERT (see Table 4), and is effective at high-data regime, e.g. on ImageNet (see Table 5).
|
| 24 |
+
|
| 25 |
+
# 2 UNSUPERVISED DATA AUGMENTATION (UDA)
|
| 26 |
+
|
| 27 |
+
In this section, we first formulate our task and then present the key method and insights behind UDA. Throughout this paper, we focus on classification problems and will use $x$ to denote the input and $y ^ { * }$ to denote its ground-truth prediction target. We are interested in learning a model $p _ { \theta } ( y \mid x )$ to predict $y ^ { * }$ based on the input $x$ , where $\theta$ denotes the model parameters. Finally, we will use $L$ and $U$ to denote the sets of labeled and unlabeled examples respectively.
|
| 28 |
+
|
| 29 |
+
# 2.1 BACKGROUND: SUPERVISED DATA AUGMENTATION
|
| 30 |
+
|
| 31 |
+
Data augmentation aims at creating novel and realistic-looking training data by applying a transformation to an example, without changing its label. Formally, let $q ( \bar { x } \mid x )$ be the augmentation transformation from which one can draw augmented examples $\hat { x }$ based on an original example $x$ . For an augmentation transformation to be valid, it is required that any example ${ \hat { x } } \sim q ( { \hat { x } } \mid x )$ drawn from the distribution shares the same ground-truth label as $x$ . Given a valid augmentation transformation, we can simply minimize the negative log-likelihood on augmented examples.
|
| 32 |
+
|
| 33 |
+
Supervised data augmentation can be equivalently seen as constructing an augmented labeled set from the original supervised set and then training the model on the augmented set. Therefore, the augmented set needs to provide additional inductive biases to be more effective. How to design the augmentation transformation has, thus, become critical.
|
| 34 |
+
|
| 35 |
+
In recent years, there have been significant advancements on the design of data augmentations for NLP (Yu et al., 2018), vision (Krizhevsky et al., 2012; Cubuk et al., 2018) and speech (Hannun et al., 2014; Park et al., 2019) in supervised settings. Despite the promising results, data augmentation is mostly regarded as the βcherry on the cakeβ which provides a steady but limited performance boost because these augmentations has so far only been applied to a set of labeled examples which is usually of a small size. Motivated by this limitation, via the consistency training framework, we extend the advancement in supervised data augmentation to semi-supervised learning where abundant unlabeled data is available.
|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
Figure 1: Training objective for UDA, where M is a model that predicts a distribution of $y$ given $x$ .
|
| 39 |
+
|
| 40 |
+
# 2.2 UNSUPERVISED DATA AUGMENTATION
|
| 41 |
+
|
| 42 |
+
As discussed in the introduction, a recent line of work in semi-supervised learning has been utilizing unlabeled examples to enforce smoothness of the model. The general form of these works can be summarized as follows:
|
| 43 |
+
|
| 44 |
+
β’ Given an input $x$ , compute the output distribution $p _ { \theta } ( y \mid x )$ given $x$ and a noised version $p _ { \theta } ( y ~ |$ $x , \epsilon )$ by injecting a small noise $\epsilon$ . The noise can be applied to $x$ or hidden states. β’ Minimize a divergence metric between the two distributions $\mathcal { D } \left( p _ { \theta } ( y \mid x ) \parallel p _ { \theta } ( y \mid x , \epsilon ) \right)$ .
|
| 45 |
+
|
| 46 |
+
This procedure enforces the model to be insensitive to the noise $\epsilon$ and hence smoother with respect to changes in the input (or hidden) space. From another perspective, minimizing the consistency loss gradually propagates label information from labeled examples to unlabeled ones.
|
| 47 |
+
|
| 48 |
+
In this work, we are interested in a particular setting where the noise is injected to the input $x$ , i.e., $\hat { x } = q ( x , \epsilon )$ , as considered by prior works (Sajjadi et al., 2016; Laine & Aila, 2016; Miyato et al., 2018). But different from existing work, we focus on the unattended question of how the form or βqualityβ of the noising operation $q$ can influence the performance of this consistency training framework. Specifically, to enforce consistency, prior methods generally employ simple noise injection methods such as adding Gaussian noise, simple input augmentations to noise unlabeled examples. In contrast, we hypothesize that stronger data augmentations in supervised learning can also lead to superior performance when used to noise unlabeled examples in the semi-supervised consistency training framework, since it has been shown that more advanced data augmentations that are more diverse and natural can lead to significant performance gain in the supervised setting.
|
| 49 |
+
|
| 50 |
+
Following this idea, we propose to use a rich set of state-of-the-art data augmentations verified in various supervised settings to inject noise and optimize the same consistency training objective on unlabeled examples. When jointly trained with labeled examples, we utilize a weighting factor $\lambda$ to balance the supervised cross entropy and the unsupervised consistency training loss, which is illustrated in Figure 1. Formally, the full objective can be written as follows:
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
\operatorname* { m i n } _ { \theta } \mathcal { I } ( \theta ) = \mathbb { E } _ { x , y ^ { * } \in L } \left[ - \log p _ { \theta } ( y ^ { * } \mid x ) \right] + \lambda \mathbb { E } _ { x \in U } \mathbb { E } _ { \hat { x } \sim q ( \hat { x } | x ) } \left[ \mathcal { D } _ { \mathrm { K L } } \left( p _ { \tilde { \theta } } ( y \mid x ) \ \lVert \ p _ { \theta } ( y \mid \hat { x } ) ) \right) \right] .
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
where $q ( { \hat { x } } \mid x )$ is a data augmentation transformation and $\tilde { \theta }$ is a fixed copy of the current parameters $\theta$ indicating that the gradient is not propagated through $\tilde { \theta }$ , as suggested by Miyato et al. (2018). We also follow VAT (Miyato et al., 2018) to use the KL divergence. We set $\lambda$ to 1 for most of our experiments and use different batch sizes for the supervised data and the unsupervised data. In the vision domain, simple augmentations including cropping and flipping are applied to labeled examples. To minimize the discrepancy between supervised training and prediction on unlabeled examples, we apply the same simple augmentations to unlabeled examples for computing $p _ { \tilde { \theta } } ( y \mid x )$ .
|
| 57 |
+
|
| 58 |
+
Discussion. Before detailing the augmentation operations used in this work, we first provide some intuitions on how more advanced data augmentations can provide extra advantages over simple ones used in earlier works from three aspects:
|
| 59 |
+
|
| 60 |
+
β’ Valid noise: Advanced data augmentation methods that achieve great performance in supervised learning usually generate realistic augmented examples that share the same ground-truth labels with the original example. Thus, it is safe to encourage the consistency between predictions on the original unlabeled example and the augmented unlabeled examples.
|
| 61 |
+
|
| 62 |
+
β’ Diverse noise: Advanced data augmentation can generate a diverse set of examples since it can make large modifications to the input example without changing its label, while simple Gaussian noise only make local changes. Encouraging consistency on a diverse set of augmented examples can significantly improve the sample efficiency.
|
| 63 |
+
|
| 64 |
+
β’ Targeted inductive biases: Different tasks require different inductive biases. Data augmentation operations that work well in supervised training essentially provides the missing or most wanted inductive biases in an original labeled set.
|
| 65 |
+
|
| 66 |
+
# 2.3 AUGMENTATION STRATEGIES FOR DIFFERENT TASKS
|
| 67 |
+
|
| 68 |
+
We now detail the augmentation methods, tailored for different tasks, that we use in this work.
|
| 69 |
+
|
| 70 |
+
RandAugment for Image Classification. We make use of a data augmentation method called RandAugment, which is inspired by AutoAugment (Cubuk et al., 2018). AutoAugment uses a search method to combine all image processing transformations in the Python Image Library (PIL) to find a good augmentation strategy. In RandAugment, we do not use search, but instead uniformly sample from the same set of augmentation transformations in PIL. In other words, RandAugment is simpler and requires no labeled data as there is no need to search for optimal policies.
|
| 71 |
+
|
| 72 |
+
Back-translation for Text Classification. When used as an augmentation method, backtranslation (Sennrich et al., 2015; Edunov et al., 2018) refers to the procedure of translating an existing example $x$ in language $A$ into another language $B$ and then translating it back into $A$ to obtain an augmented example $\hat { x }$ . As observed by Yu et al. (2018), back-translation can generate diverse paraphrases while preserving the semantics of the original sentences, leading to significant performance improvements in question answering. In our case, we use back-translation to paraphrase the training data of our text classification tasks.2
|
| 73 |
+
|
| 74 |
+
We find that the diversity of the paraphrases is more important than the quality or the validity. Hence, we employ random sampling with a tunable temperature instead of beam search for the generation. As shown in Figure 2, the paraphrases generated by back-translation sentence are diverse and have similar semantic meanings. More specifically, we use WMTβ14 English-French translation models (in both directions) to perform back-translation on each sentence. To facilitate future research, we have open-sourced our back-translation system together with the translation checkpoints.
|
| 75 |
+
|
| 76 |
+

|
| 77 |
+
Figure 2: Augmented examples using back-translation and RandAugment.
|
| 78 |
+
|
| 79 |
+
Word replacing with TF-IDF for Text Classification. While back-translation is good at maintaining the global semantics of a sentence, there is little control over which words will be retained. This requirement is important for topic classification tasks, such as DBPedia, in which some keywords are more informative than other words in determining the topic. We, therefore, propose an augmentation method that replaces uninformative words with low TF-IDF scores while keeping those with high TF-IDF values. We refer readers to Appendix C for a detailed description.
|
| 80 |
+
|
| 81 |
+
# 2.4 TRAINING SIGNAL ANNEALING FOR LOW-DATA REGIME
|
| 82 |
+
|
| 83 |
+
In semi-supervised learning, we often encounter a situation where there is a huge gap between the amount of unlabeled data and that of labeled data. Hence, the model often quickly overfits the limited amount of labeled data while still underfitting the unlabeled data. To tackle this difficulty, we introduce a new training technique, called Training Signal Annealing (TSA), which gradually releases the βtraining signalsβ of the labeled examples as training progresses. Intuitively, we only utilize a labeled example if the modelβs confidence on that example is lower than a predefined threshold which increases according to a schedule. Specifically, at training step $t$ , if the modelβs predicted probability for the correct category $p _ { \theta } ( y ^ { \ast } \mid x )$ is higher than a threshold $\eta _ { t }$ , we remove that example from the loss function. Suppose $K$ is the number of categories, by gradually increase $\eta _ { t }$ from $\textstyle { \frac { 1 } { K } } $ to 1, the threshold $\eta _ { t }$ serves as a ceiling to prevent over-training on easy labeled examples.
|
| 84 |
+
|
| 85 |
+
We consider three increasing schedules of $\eta _ { t }$ with different application scenarios. Let $T$ be the total number of training steps, the three schedules are shown in Figure 3. Intuitively, when the model is prone to overfit, e.g., when the problem is relatively easy or the number of labeled examples is very limited, the exp-schedule is most suitable as the supervised signal is mostly released at the end of training. In contrast, when the model is less likely to overfit (e.g., when we have abundant labeled examples or when the model employs effective regularization), the log-schedule can serve well.
|
| 86 |
+
|
| 87 |
+

|
| 88 |
+
Figure 3: Three schedules of TSA. We set $\begin{array} { r } { \eta _ { t } = \alpha _ { t } * \left( 1 - \frac { 1 } { K } \right) + \frac { 1 } { K } } \end{array}$ . $\alpha _ { t }$ is set to $\textstyle 1 - \exp \bigl ( - \frac { t } { T } * 5 \bigr )$ $\textstyle { \frac { t } { T } }$ and $\textstyle \exp \bigl ( \bigl ( \frac { t } { T } - 1 \bigr ) * 5 \bigr )$ for the log, linear and exp schedules.
|
| 89 |
+
|
| 90 |
+
# 3 EXPERIMENTS
|
| 91 |
+
|
| 92 |
+
In this section, we evaluate UDA on a variety of language and vision tasks. For language, we rely on six text classification benchmark datasets, including IMDb, Yelp-2, Yelp-5, Amazon-2 and Amazon5 sentiment classification and DBPedia topic classification (Maas et al., 2011; Zhang et al., 2015). For vision, we employ two smaller datasets CIFAR-10 (Krizhevsky & Hinton, 2009), SVHN (Netzer et al., 2011), which are often used to compare semi-supervised algorithms, as well as ImageNet (Deng et al., 2009) of a larger scale to test the scalability of UDA. For details of the labeled and unlabeled data and experiment details, we refer readers to Appendix E.
|
| 93 |
+
|
| 94 |
+
# 3.1 CORRELATION BETWEEN SUPERVISED AND SEMI-SUPERVISED PERFORMANCES
|
| 95 |
+
|
| 96 |
+
As the first step, we try to verify the fundamental idea of UDA, i.e., there is a positive correlation of data augmentationβs effectiveness in supervised learning and semi-supervised learning. Based on Yelp-5 (a language task) and CIFAR-10 (a vision task), we compare the performance of different data augmentation methods in either fully supervised or semi-supervised settings. For Yelp-5, apart from back-translation, we include a simpler method Switchout (Wang et al., 2018) which replaces a token with a random token uniformly sampled from the vocabulary. For CIFAR-10, we compare RandAugment with two simpler methods: (1) cropping & flipping augmentation and (2) Cutout.
|
| 97 |
+
|
| 98 |
+
Based on this setting, Table 1 and Table 2 exhibit a strong correlation of an augmentationβs effectiveness between supervised and semi-supervised settings. This validates our idea of stronger data augmentations found in supervised learning can always lead to more gains when applied to the semi-supervised learning settings.
|
| 99 |
+
|
| 100 |
+
<table><tr><td>Augmentation (# Sup examples)</td><td>Sup (50k)</td><td>Semi-Sup (4k)</td></tr><tr><td>Crop&flip</td><td>5.36</td><td>16.17</td></tr><tr><td>Cutout</td><td>4.42</td><td>6.42</td></tr><tr><td>RandAugment</td><td>4.23</td><td>5.29</td></tr></table>
|
| 101 |
+
|
| 102 |
+
Table 1: Error rates on CIFAR-10.
|
| 103 |
+
|
| 104 |
+
Table 2: Error rate on Yelp-5.
|
| 105 |
+
|
| 106 |
+
<table><tr><td>Augmentation (# Sup examples)</td><td>Sup (650k)</td><td>Semi-sup (2.5k)</td></tr><tr><td>X</td><td>38.36</td><td>50.80</td></tr><tr><td>Switchout</td><td>37.24</td><td>43.38</td></tr><tr><td>Back-translation</td><td>36.71</td><td>41.35</td></tr></table>
|
| 107 |
+
|
| 108 |
+
# 3.2 ALGORITHM COMPARISON ON VISION SEMI-SUPERVISED LEARNING BENCHMARKS
|
| 109 |
+
|
| 110 |
+
With the correlation established above, the next question we ask is how well UDA performs compared to existing semi-supervised learning algorithms. To answer the question, we focus on the most commonly used semi-supervised learning benchmarks CIFAR-10 and SVHN.
|
| 111 |
+
|
| 112 |
+
Vary the size of labeled data. Firstly, we follow the settings in (Oliver et al., 2018) and employ Wide-ResNet-28-2 (Zagoruyko & Komodakis, 2016; He et al., 2016) as the backbone model and evaluate UDA with varied supervised data sizes. Specifically, we compare UDA with two highly competitive baselines: (1) Virtual adversarial training (VAT) (Miyato et al., 2018), an algorithm that generates adversarial Gaussian noise on input, and (2) MixMatch (Berthelot et al., 2019), a parallel work that combines previous advancements in semi-supervised learning. The comparison is shown in Figure 4 with two key observations.3
|
| 113 |
+
|
| 114 |
+
β’ First, UDA consistently outperforms the two baselines with a clear margin given different sizes of labeled data.
|
| 115 |
+
β’ Moreover, the performance difference between UDA and VAT shows the superiority of data augmentation based noise. The difference of UDA and VAT is essentially the noise process. While the noise produced by VAT often contain high-frequency artifacts that do not exist in real images, data augmentation mostly generates diverse and realistic images.
|
| 116 |
+
|
| 117 |
+

|
| 118 |
+
Figure 4: Comparison with two semi-supervised learning methods on CIFAR-10 and SVHN with varied number of labeled examples.
|
| 119 |
+
|
| 120 |
+
Comparisons with published results Next, we directly compare UDA with previously published results under different model architectures. Following previous work, 4k and 1k labeled examples are used for CIFAR-10 and SVHN respectively. As shown in Table 3, given the same architecture, UDA outperforms all published results by significant margins. This shows the huge potential of state-of-the-art data augmentations under the consistency training framework in the vision domain.
|
| 121 |
+
|
| 122 |
+
Table 3: Comparison between methods using different models where PyramidNet is used with ShakeDrop regularization. Fully supervised Wide-ResNet-28-2 and PyramidNet+ShakeDrop have an error rate of 5.4 and 2.7 when trained on 50,000 examples without RandAugment. On CIFAR10, with only 4,000 labeled examples, UDA matches the performance of the two fully supervised models. On SVHN, UDA also matches the performance of our fully supervised model trained on 73,257 examples without RandAugment, which has an error rate of 2.84.
|
| 123 |
+
|
| 124 |
+
<table><tr><td>Method</td><td>Model</td><td>#Param</td><td>CIFAR-10 (4k)</td><td>SVHN (1k)</td></tr><tr><td>II-Model (Laine & Aila,2016)</td><td>Conv-Large</td><td>3.1M</td><td>12.36 Β± 0.31</td><td>4.82 Β± 0.17</td></tr><tr><td>Mean Teacher (Tarvainen & Valpola,2017)</td><td>Conv-Large</td><td>3.1M</td><td>12.31 Β± 0.28</td><td>3.95 Β± 0.19</td></tr><tr><td>VAT+ EntMin (Miyato et al., 2018)</td><td>Conv-Large</td><td>3.1M</td><td>10.55 Β± 0.05</td><td>3.86 Β± 0.11</td></tr><tr><td>SNTG (Luo et al., 2018)</td><td>Conv-Large</td><td>3.1M</td><td>10.93 Β± 0.14</td><td>3.86 Β± 0.27</td></tr><tr><td>VAdD (Park et al., 2018)</td><td>Conv-Large</td><td>3.1M</td><td>11.32 Β± 0.11</td><td>4.16 Β± 0.08</td></tr><tr><td>Fast-SWA (Athiwaratkun et al., 2018)</td><td>Conv-Large</td><td>3.1M</td><td>9.05</td><td></td></tr><tr><td>ICT (Verma et al., 2019)</td><td>Conv-Large</td><td>3.1M</td><td>7.29 Β± 0.02</td><td>3.89 Β±0.04</td></tr><tr><td>Pseudo-Label (Lee,2013)</td><td>WRN-28-2</td><td>1.5M</td><td>16.21 Β± 0.11</td><td>7.62 Β± 0.29</td></tr><tr><td>LGA + VAT (Jackson & Schulman, 2019)</td><td>WRN-28-2</td><td>1.5M</td><td>12.06 Β± 0.19</td><td>6.58 Β± 0.36</td></tr><tr><td>mixmixup (Hataya & Nakayama, 2019)</td><td>WRN-28-2</td><td>1.5M</td><td>10</td><td>=</td></tr><tr><td>ICT (Verma et al., 2019)</td><td>WRN-28-2</td><td>1.5M</td><td>7.66 Β± 0.17</td><td>3.53 Β± 0.07</td></tr><tr><td>MixMatch (Berthelot et al.,2019)</td><td>WRN-28-2</td><td>1.5M</td><td>6.24 Β± 0.06</td><td>2.89 Β± 0.06</td></tr><tr><td>Mean Teacher (Tarvainen& Valpola,2017)</td><td>Shake-Shake</td><td>26M</td><td>6.28 Β± 0.15</td><td>-</td></tr><tr><td>Fast-SWA (Athiwaratkun et al., 2018)</td><td>Shake-Shake</td><td>26M</td><td>5.0</td><td></td></tr><tr><td>MixMatch (Berthelot et al.,2019)</td><td>WRN</td><td>26M</td><td>4.95 Β± 0.08</td><td>=</td></tr><tr><td>UDA (RandAugment)</td><td>WRN-28-2</td><td>1.5M</td><td>5.29 Β± 0.25</td><td>2.55 Β± 0.09</td></tr><tr><td>UDA (RandAugment)</td><td>Shake-Shake</td><td>26M</td><td>3.7</td><td></td></tr><tr><td>UDA (RandAugment)</td><td>PyramidNet</td><td>26M</td><td>2.7</td><td></td></tr></table>
|
| 125 |
+
|
| 126 |
+
# 3.3 EVALUATION ON TEXT CLASSIFICATION DATASETS
|
| 127 |
+
|
| 128 |
+
Next, we further evaluate UDA in the language domain. Moreover, in order to test whether UDA can be combined with the success of unsupervised representation learning, such as BERT (Devlin et al., 2018), we further consider four initialization schemes: (a) random Transformer; (b) BERTBASE; (c) BERTLARGE; (d) BERTFINETUNE: BERTLARGE fine-tuned on in-domain unlabeled data4. Under each of these four initialization schemes, we compare the performances with and without UDA.
|
| 129 |
+
|
| 130 |
+
The results are presented in Table 4 where we would like to emphasize three observations:
|
| 131 |
+
|
| 132 |
+
β’ First, even with very few labeled examples, UDA can offer decent or even competitive performances compared to the SOTA model trained with full supervised data. Particularly, on binary sentiment analysis tasks, with only 20 supervised examples, UDA outperforms the previous SOTA trained with full supervised data on IMDb and is competitive on Yelp-2 and Amazon-2. β’ Second, UDA is complementary to transfer learning / representation learning. As we can see, when initialized with BERT and further finetuned on in-domain data, UDA can still significantly reduce the error rate from 6.50 to 4.20 on IMDb. β’ Finally, we also note that for five-category sentiment classification tasks, there still exists a clear gap between UDA with 500 labeled examples per class and BERT trained on the entire supervised set. Intuitively, five-category sentiment classifications are much more difficult than their binary counterparts. This suggests a room for further improvement in the future.
|
| 133 |
+
|
| 134 |
+
Results with different labeled set sizes. We also show in Figure 5 that UDA leads to consistent improvements across all labeled data sizes on IMDb and Yelp-2.
|
| 135 |
+
|
| 136 |
+
<table><tr><td colspan="8">Fully supervised baseline</td></tr><tr><td>Datasets (# Sup examples)</td><td>IMDb (25k)</td><td>Yelp-2 (560k)</td><td>Yelp-5 (650k)</td><td>Amazon-2 (3.6m)</td><td>Amazon-5 (3m)</td><td>DBpedia (560k)</td></tr><tr><td>Pre-BERT SOTA BERTLARGE</td><td>4.32 4.51</td><td>2.16 1.89</td><td>29.98 29.32</td><td>3.32 2.63</td><td>34.81 34.17</td><td>0.70 0.64</td></tr><tr><td colspan="7">Semi-supervised setting</td></tr><tr><td>Initialization UDA</td><td>IMDb (20)</td><td>Yelp-2 (20)</td><td>Yelp-5 (2.5k)</td><td>Amazon-2 (20)</td><td>Amazon-5 (2.5k)</td><td>DBpedia (140)</td></tr><tr><td>X Random</td><td>43.27 25.23</td><td>40.25 8.33</td><td>50.80 41.35</td><td>45.39 16.16</td><td>55.70 44.19</td><td>41.14 7.24</td></tr><tr><td>X BERTBASE</td><td>18.40 5.45</td><td>13.60 2.61</td><td>41.00 33.80</td><td>26.75 3.96</td><td>44.09 38.40</td><td>2.58 1.33</td></tr><tr><td>X BERTLARGE</td><td>11.72 4.78</td><td>10.55 2.50</td><td>38.90 33.54</td><td>15.54 3.93</td><td>42.30 37.80</td><td>1.68 1.09</td></tr><tr><td>BERTFINETUNE</td><td>X 6.50 4.20</td><td>2.94 2.05</td><td>32.39 32.08</td><td>12.17 3.50</td><td>37.32 37.12</td><td>- -</td></tr></table>
|
| 137 |
+
|
| 138 |
+
Table 4: Error rates on text classification datasets. In the fully supervised settings, the pre-BERT SOTAs include ULMFiT (Howard & Ruder, 2018) for Yelp-2 and Yelp-5, DPCNN (Johnson & Zhang, 2017) for Amazon-2 and Amazon-5, Mixed VAT (Sachan et al., 2018) for IMDb and DBPedia. All of our experiments use a sequence length of 512.
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
Figure 5: Accuracy on IMDb and Yelp-2 with different number of labeled examples. In the largedata regime, with the full training set of IMDb, UDA also provides robust gains.
|
| 142 |
+
|
| 143 |
+
# 3.4 SCALABILITY TEST ON THE IMAGENET DATASET
|
| 144 |
+
|
| 145 |
+
Then, to evaluate whether UDA can scale to problems with a large scale and a higher difficulty, we now turn to the ImageNet dataset with ResNet-50 being the underlying architecture. Specifically, we consider two experiment settings with different natures:
|
| 146 |
+
|
| 147 |
+
β’ We use $10 \%$ of the supervised data of ImageNet while using all other data as unlabeled data. As a result, the unlabeled exmaples are entirely in-domain. β’ In the second setting, we keep all images in ImageNet as supervised data. Then, we use the domain-relevance data filtering method (See Appendix B for details) to filter out 1.3M images from an anonymous dataset. Hence, the unlabeled set is not necessarily in-domain.
|
| 148 |
+
|
| 149 |
+
The results are summarized in Table 5. In both $10 \%$ and the full data settings, UDA consistently brings significant gains compared to the supervised baseline. This shows UDA is not only able to scale but also able to utilize out-of-domain unlabeled examples to improve model performance. In parallel to our work, S4L (Zhai et al., 2019b) and CPC (Henaff et al., 2019) also show significant Β΄ improvements on ImageNet.
|
| 150 |
+
|
| 151 |
+
Table 5: Top- $^ { . 1 / }$ top-5 accuracy on ImageNet with $10 \%$ and $100 \%$ of the labeled set. We use image size 224 and 331 for the $10 \%$ and $100 \%$ experiments respectively.
|
| 152 |
+
|
| 153 |
+
<table><tr><td>Methods</td><td>SSL</td><td>10%</td><td>100%</td></tr><tr><td>ResNet-50</td><td>Γ</td><td>55.09 /77.26</td><td>77.28 /93.73</td></tr><tr><td> w. RandAugment</td><td></td><td>58.84 / 80.56</td><td>78.43 /94.37</td></tr><tr><td>UDA (RandAugment)|β</td><td></td><td>68.78 / 88.80</td><td>79.05 / 94.49</td></tr></table>
|
| 154 |
+
|
| 155 |
+
# 3.5 ABLATION STUDIES FOR TSA
|
| 156 |
+
|
| 157 |
+
Lastly, we study the effect of TSA on two tasks with different amounts of unlabeled data: (a) Yelp-5 where we have only $2 . 5 \mathrm { k }$ labeled examples and $6 \mathrm { m }$ unlabeled examples. (b) CIFAR-10 where we have 4k labeled examples and $5 0 \mathrm { k }$ unlabeled examples. For Yelp-5, we use a randomly initialized transformer in this study to rule out factors of having a pre-trained representation.
|
| 158 |
+
|
| 159 |
+
As shown in Table 6, on Yelp-5, where there is a lot more unlabeled data than labeled data, TSA reduces the error rate from 50.81 to 41.35 when compared to the baseline without TSA. More specifically, the best performance is achieved when we choose to postpone releasing the supervised training signal to the end of the training, i.e, exp-schedule leads to the best performance. On the other hand, linear-schedule is the sweet spot on CIFAR-10 in terms of the speed of releasing supervised training signals, where the amount of unlabeled data is comparable to that of supervised data.
|
| 160 |
+
|
| 161 |
+
Table 6: Ablation study for Training Signal Annealing (TSA) on Yelp-5 and CIFAR-10. The shown numbers are error rates.
|
| 162 |
+
|
| 163 |
+
<table><tr><td>TSA schedule</td><td>Yelp-5</td><td>CIFAR-10</td></tr><tr><td>X</td><td>50.81</td><td>5.67</td></tr><tr><td>log-schedule</td><td>49.06</td><td>5.67</td></tr><tr><td>linear-schedule</td><td>45.41</td><td>5.29</td></tr><tr><td>exp-schedule</td><td>41.35</td><td>7.81</td></tr></table>
|
| 164 |
+
|
| 165 |
+
# 4 RELATED WORK
|
| 166 |
+
|
| 167 |
+
Existing works in consistency training does make use of data augmentation (Laine & Aila, 2016; Sajjadi et al., 2016); however, they only apply weak augmentation methods such as random translations and cropping. In parallel to our work, ICT (Verma et al., 2019) and MixMatch (Berthelot et al., 2019) also show improvements for semi-supervised learning. These methods employ mixup (Zhang et al., 2017) on top of simple augmentations such as flipping and cropping; instead, UDA emphasizes on the use of state-of-the-art data augmentations, leading to significantly better results on CIFAR-10 and SVHN. In addition, UDA is also applicable to language domain and can also scale well to more challenging vision datasets, such as ImageNet.
|
| 168 |
+
|
| 169 |
+
Other works in the consistency training family mostly differ in how the noise is defined: Pseudoensemble (Bachman et al., 2014) directly applies Gaussian noise and Dropout noise; VAT (Miyato et al., 2018; 2016) defines the noise by approximating the direction of change in the input space that the model is most sensitive to; Cross-view training (Clark et al., 2018) masks out part of the input data. Apart from enforcing consistency on the input examples and the hidden representations, another line of research enforces consistency on the model parameter space. Works in this category include Mean Teacher (Tarvainen & Valpola, 2017), fast-Stochastic Weight Averaging (Athiwaratkun et al., 2018) and Smooth Neighbors on Teacher Graphs (Luo et al., 2018). For a complete version of related work, see Appendix D.
|
| 170 |
+
|
| 171 |
+
# 5 CONCLUSION
|
| 172 |
+
|
| 173 |
+
In this paper, we show that data augmentation and semi-supervised learning are well connected: better data augmentation can lead to significantly better semi-supervised learning. Our method,
|
| 174 |
+
|
| 175 |
+
UDA, employs state-of-the-art data augmentation found in supervised learning to generate diverse and realistic noise and enforces the model to be consistent with respect to these noise. For text, UDA combines well with representation learning, e.g., BERT, and is very effective in low-data regime where state-of-the-art performance is achieved on IMDb with only 20 examples. For vision, UDA outperforms prior works by a clear margin and nearly matches the performance of the fully supervised models trained on the full labeled sets which are one order of magnitude larger. Lastly, UDA can effectively leverage out-of-domain unlabeled data and achieve improved performances on ImageNet where we have a large amount of supervised data. We hope that UDA will encourage future research to transfer advanced supervised augmentation to semi-supervised setting for different tasks.
|
| 176 |
+
|
| 177 |
+
# REFERENCES
|
| 178 |
+
|
| 179 |
+
Ben Athiwaratkun, Marc Finzi, Pavel Izmailov, and Andrew Gordon Wilson. There are many consistent explanations of unlabeled data: Why you should average. 2018.
|
| 180 |
+
Philip Bachman, Ouais Alsharif, and Doina Precup. Learning with pseudo-ensembles. In Advances in Neural Information Processing Systems, pp. 3365β3373, 2014.
|
| 181 |
+
David Berthelot, Nicholas Carlini, Ian Goodfellow, Nicolas Papernot, Avital Oliver, and Colin Raffel. Mixmatch: A holistic approach to semi-supervised learning. arXiv preprint arXiv:1905.02249, 2019.
|
| 182 |
+
Yair Carmon, Aditi Raghunathan, Ludwig Schmidt, Percy Liang, and John C Duchi. Unlabeled data improves adversarial robustness. arXiv preprint arXiv:1905.13736, 2019.
|
| 183 |
+
Olivier Chapelle, Bernhard Scholkopf, and Alexander Zien. Semi-supervised learning (chapelle, o. et al., eds.; 2006)[book reviews]. IEEE Transactions on Neural Networks, 20(3):542β542, 2009.
|
| 184 |
+
Kevin Clark, Minh-Thang Luong, Christopher D Manning, and Quoc V Le. Semi-supervised sequence modeling with cross-view training. arXiv preprint arXiv:1809.08370, 2018.
|
| 185 |
+
Ronan Collobert and Jason Weston. A unified architecture for natural language processing: Deep neural networks with multitask learning. In Proceedings of the 25th international conference on Machine learning, pp. 160β167. ACM, 2008.
|
| 186 |
+
Ekin D Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V Le. Autoaugment: Learning augmentation policies from data. arXiv preprint arXiv:1805.09501, 2018.
|
| 187 |
+
Andrew M Dai and Quoc V Le. Semi-supervised sequence learning. In Advances in neural information processing systems, pp. 3079β3087, 2015.
|
| 188 |
+
Zihang Dai, Zhilin Yang, Fan Yang, William W Cohen, and Ruslan R Salakhutdinov. Good semisupervised learning that requires a bad gan. In Advances in Neural Information Processing Systems, pp. 6510β6520, 2017.
|
| 189 |
+
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.
|
| 190 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
|
| 191 |
+
Sergey Edunov, Myle Ott, Michael Auli, and David Grangier. Understanding back-translation at scale. arXiv preprint arXiv:1808.09381, 2018.
|
| 192 |
+
Yves Grandvalet and Yoshua Bengio. Semi-supervised learning by entropy minimization. In Advances in neural information processing systems, pp. 529β536, 2005.
|
| 193 |
+
Awni Hannun, Carl Case, Jared Casper, Bryan Catanzaro, Greg Diamos, Erich Elsen, Ryan Prenger, Sanjeev Satheesh, Shubho Sengupta, Adam Coates, et al. Deep speech: Scaling up end-to-end speech recognition. arXiv preprint arXiv:1412.5567, 2014.
|
| 194 |
+
|
| 195 |
+
Ryuichiro Hataya and Hideki Nakayama. Unifying semi-supervised and robust learning by mixup. ICLR The 2nd Learning from Limited Labeled Data (LLD) Workshop, 2019.
|
| 196 |
+
|
| 197 |
+
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.
|
| 198 |
+
|
| 199 |
+
Xuanli He, Gholamreza Haffari, and Mohammad Norouzi. Sequence to sequence mixture model for diverse machine translation. arXiv preprint arXiv:1810.07391, 2018.
|
| 200 |
+
|
| 201 |
+
Olivier J Henaff, Ali Razavi, Carl Doersch, SM Eslami, and Aaron van den Oord. Data-efficient Β΄ image recognition with contrastive predictive coding. arXiv preprint arXiv:1905.09272, 2019.
|
| 202 |
+
|
| 203 |
+
Alex Hernandez-Garc Β΄ Β΄Δ±a and Peter Konig. Data augmentation instead of explicit regularization. Β¨ arXiv preprint arXiv:1806.03852, 2018.
|
| 204 |
+
|
| 205 |
+
Jeremy Howard and Sebastian Ruder. Universal language model fine-tuning for text classification. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 328β339, 2018.
|
| 206 |
+
|
| 207 |
+
Weihua Hu, Takeru Miyato, Seiya Tokui, Eiichi Matsumoto, and Masashi Sugiyama. Learning discrete representations via information maximizing self-augmented training. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1558β1567. JMLR. org, 2017.
|
| 208 |
+
|
| 209 |
+
Jacob Jackson and John Schulman. Semi-supervised learning by label gradient alignment. arXiv preprint arXiv:1902.02336, 2019.
|
| 210 |
+
|
| 211 |
+
Rie Johnson and Tong Zhang. Deep pyramid convolutional neural networks for text categorization. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 562β570, 2017.
|
| 212 |
+
|
| 213 |
+
Durk P Kingma, Shakir Mohamed, Danilo Jimenez Rezende, and Max Welling. Semi-supervised learning with deep generative models. In Advances in neural information processing systems, pp. 3581β3589, 2014.
|
| 214 |
+
|
| 215 |
+
Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
|
| 216 |
+
|
| 217 |
+
Wouter Kool, Herke van Hoof, and Max Welling. Stochastic beams and where to find them: The gumbel-top-k trick for sampling sequences without replacement. arXiv preprint arXiv:1903.06059, 2019.
|
| 218 |
+
|
| 219 |
+
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
|
| 220 |
+
|
| 221 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097β1105, 2012.
|
| 222 |
+
|
| 223 |
+
Samuli Laine and Timo Aila. Temporal ensembling for semi-supervised learning. arXiv preprint arXiv:1610.02242, 2016.
|
| 224 |
+
|
| 225 |
+
Dong-Hyun Lee. Pseudo-label: The simple and efficient semi-supervised learning method for deep neural networks. In Workshop on Challenges in Representation Learning, ICML, volume 3, pp. 2, 2013.
|
| 226 |
+
|
| 227 |
+
Davis Liang, Zhiheng Huang, and Zachary C Lipton. Learning noise-invariant representations for robust speech recognition. In 2018 IEEE Spoken Language Technology Workshop (SLT), pp. 56β63. IEEE, 2018.
|
| 228 |
+
|
| 229 |
+
Yucen Luo, Jun Zhu, Mengxi Li, Yong Ren, and Bo Zhang. Smooth neighbors on teacher graphs for semi-supervised learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8896β8905, 2018.
|
| 230 |
+
|
| 231 |
+
Lars MaalΓΈe, Casper Kaae SΓΈnderby, SΓΈren Kaae SΓΈnderby, and Ole Winther. Auxiliary deep generative models. arXiv preprint arXiv:1602.05473, 2016.
|
| 232 |
+
|
| 233 |
+
Andrew L Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew Y Ng, and Christopher Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th annual meeting of the association for computational linguistics: Human language technologies-volume 1, pp. 142β150. Association for Computational Linguistics, 2011.
|
| 234 |
+
|
| 235 |
+
Julian McAuley, Christopher Targett, Qinfeng Shi, and Anton Van Den Hengel. Image-based recommendations on styles and substitutes. In Proceedings of the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 43β52. ACM, 2015.
|
| 236 |
+
|
| 237 |
+
Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111β3119, 2013.
|
| 238 |
+
|
| 239 |
+
Takeru Miyato, Andrew M Dai, and Ian Goodfellow. Adversarial training methods for semisupervised text classification. arXiv preprint arXiv:1605.07725, 2016.
|
| 240 |
+
|
| 241 |
+
Takeru Miyato, Shin-ichi Maeda, Shin Ishii, and Masanori Koyama. Virtual adversarial training: a regularization method for supervised and semi-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 2018.
|
| 242 |
+
|
| 243 |
+
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. 2011.
|
| 244 |
+
|
| 245 |
+
Avital Oliver, Augustus Odena, Colin A Raffel, Ekin Dogus Cubuk, and Ian Goodfellow. Realistic evaluation of deep semi-supervised learning algorithms. In Advances in Neural Information Processing Systems, pp. 3235β3246, 2018.
|
| 246 |
+
|
| 247 |
+
Daniel S Park, William Chan, Yu Zhang, Chung-Cheng Chiu, Barret Zoph, Ekin D Cubuk, and Quoc V Le. Specaugment: A simple data augmentation method for automatic speech recognition. arXiv preprint arXiv:1904.08779, 2019.
|
| 248 |
+
|
| 249 |
+
Sungrae Park, JunKeon Park, Su-Jin Shin, and Il-Chul Moon. Adversarial dropout for supervised and semi-supervised learning. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
|
| 250 |
+
|
| 251 |
+
Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp. 1532β1543, 2014.
|
| 252 |
+
|
| 253 |
+
Matthew E Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. arXiv preprint arXiv:1802.05365, 2018.
|
| 254 |
+
|
| 255 |
+
Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. URL https://s3-us-west-2. amazonaws. com/openaiassets/research-covers/languageunsupervised/language understanding paper. pdf, 2018.
|
| 256 |
+
|
| 257 |
+
Antti Rasmus, Mathias Berglund, Mikko Honkala, Harri Valpola, and Tapani Raiko. Semisupervised learning with ladder networks. In Advances in neural information processing systems, pp. 3546β3554, 2015.
|
| 258 |
+
|
| 259 |
+
Devendra Singh Sachan, Manzil Zaheer, and Ruslan Salakhutdinov. Revisiting lstm networks for semi-supervised text classification via mixed objective function. 2018.
|
| 260 |
+
|
| 261 |
+
Mehdi Sajjadi, Mehran Javanmardi, and Tolga Tasdizen. Regularization with stochastic transformations and perturbations for deep semi-supervised learning. In Advances in Neural Information Processing Systems, pp. 1163β1171, 2016.
|
| 262 |
+
|
| 263 |
+
Julian Salazar, Davis Liang, Zhiheng Huang, and Zachary C Lipton. Invariant representation learning for robust deep networks. In Workshop on Integration of Deep Learning Theories, NeurIPS, 2018.
|
| 264 |
+
|
| 265 |
+
Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In Advances in neural information processing systems, pp. 2234β2242, 2016.
|
| 266 |
+
|
| 267 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. Improving neural machine translation models with monolingual data. arXiv preprint arXiv:1511.06709, 2015.
|
| 268 |
+
|
| 269 |
+
Tianxiao Shen, Myle Ott, Michael Auli, and MarcβAurelio Ranzato. Mixture models for diverse machine translation: Tricks of the trade. arXiv preprint arXiv:1902.07816, 2019.
|
| 270 |
+
|
| 271 |
+
Patrice Y Simard, Yann A LeCun, John S Denker, and Bernard Victorri. Transformation invariance in pattern recognitionβtangent distance and tangent propagation. In Neural networks: tricks of the trade, pp. 239β274. Springer, 1998.
|
| 272 |
+
|
| 273 |
+
Robert Stanforth, Alhussein Fawzi, Pushmeet Kohli, et al. Are labels required for improving adversarial robustness? arXiv preprint arXiv:1905.13725, 2019.
|
| 274 |
+
|
| 275 |
+
Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In Advances in neural information processing systems, pp. 1195β1204, 2017.
|
| 276 |
+
|
| 277 |
+
Trieu H Trinh, Minh-Thang Luong, and Quoc V Le. Selfie: Self-supervised pretraining for image embedding. arXiv preprint arXiv:1906.02940, 2019.
|
| 278 |
+
|
| 279 |
+
Vikas Verma, Alex Lamb, Juho Kannala, Yoshua Bengio, and David Lopez-Paz. Interpolation consistency training for semi-supervised learning. arXiv preprint arXiv:1903.03825, 2019.
|
| 280 |
+
|
| 281 |
+
Xinyi Wang, Hieu Pham, Zihang Dai, and Graham Neubig. Switchout: an efficient data augmentation algorithm for neural machine translation. arXiv preprint arXiv:1808.07512, 2018.
|
| 282 |
+
|
| 283 |
+
Jason Weston, FredΒ΄ eric Ratle, Hossein Mobahi, and Ronan Collobert. Deep learning via semi- Β΄ supervised embedding. In Neural Networks: Tricks of the Trade, pp. 639β655. Springer, 2012.
|
| 284 |
+
|
| 285 |
+
Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Revisiting semi-supervised learning with graph embeddings. arXiv preprint arXiv:1603.08861, 2016.
|
| 286 |
+
|
| 287 |
+
Zhilin Yang, Junjie Hu, Ruslan Salakhutdinov, and William W Cohen. Semi-supervised qa with generative domain-adaptive nets. arXiv preprint arXiv:1702.02206, 2017.
|
| 288 |
+
|
| 289 |
+
Mang Ye, Xu Zhang, Pong C Yuen, and Shih-Fu Chang. Unsupervised embedding learning via invariant and spreading instance feature. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6210β6219, 2019.
|
| 290 |
+
|
| 291 |
+
Adams Wei Yu, David Dohan, Minh-Thang Luong, Rui Zhao, Kai Chen, Mohammad Norouzi, and Quoc V Le. Qanet: Combining local convolution with global self-attention for reading comprehension. arXiv preprint arXiv:1804.09541, 2018.
|
| 292 |
+
|
| 293 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
|
| 294 |
+
|
| 295 |
+
Runtian Zhai, Tianle Cai, Di He, Chen Dan, Kun He, John Hopcroft, and Liwei Wang. Adversarially robust generalization just requires more unlabeled data. arXiv preprint arXiv:1906.00555, 2019a.
|
| 296 |
+
|
| 297 |
+
Xiaohua Zhai, Avital Oliver, Alexander Kolesnikov, and Lucas Beyer. $\mathrm { S ^ { 4 } l }$ : Self-supervised semisupervised learning. arXiv preprint arXiv:1905.03670, 2019b.
|
| 298 |
+
|
| 299 |
+
Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017.
|
| 300 |
+
|
| 301 |
+
Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification. In Advances in neural information processing systems, pp. 649β657, 2015.
|
| 302 |
+
|
| 303 |
+
Xiaojin Zhu, Zoubin Ghahramani, and John D Lafferty. Semi-supervised learning using gaussian fields and harmonic functions. In Proceedings of the 20th International conference on Machine learning (ICML-03), pp. 912β919, 2003.
|
| 304 |
+
|
| 305 |
+
# A MORE EXPERIMENTS
|
| 306 |
+
|
| 307 |
+
A.1 ABLATIONS STUDIES ON RANDAUGMENT
|
| 308 |
+
|
| 309 |
+
We hypothesize that the success of RandAugment should be credited to the diversity of the augmentation transformations, since RandAugment works very well for multiple different datasets while does not require a search algorithm to find out the most effective policies. To verify this hypothesis, we test UDAβs performance when we restrict the number of possible transformations used in RandAugment. As shown in Figure 6, the performance gradually improves as we use more augmentation transformations.
|
| 310 |
+
|
| 311 |
+

|
| 312 |
+
Figure 6: Error rate of UDA on CIFAR-10 with different numbers of possible transformations in RandAugment. UDA achieves lower error rate when we increase the number of possible transformations, which demonstrates the importance of a rich set of augmentation transformations.
|
| 313 |
+
|
| 314 |
+
# A.2 RESULTS ON CIFAR-10 AND SVHN WITH VARIED LABEL SET SIZES
|
| 315 |
+
|
| 316 |
+
CIFAR-10 In Table 7, we show results for compared methods of Figure 4a and results of PseudoLabel (Lee, 2013), Ξ -Model (Laine & Aila, 2016), Mean Teacher (Tarvainen & Valpola, 2017). Fully supervised learning using 50,000 examples achieves an error rate of 5.36 and 4.23 with or without RandAugment. The performance of the baseline models are reported by MixMatch (Berthelot et al., 2019).
|
| 317 |
+
|
| 318 |
+
To make sure that the performance reported by MixMatch and our results are comparable, we reimplement MixMatch in our codebase and find that the results in the original paper is comparable but slightly higher than our reimplementation, which results in a more competitive comparison for UDA. For example, our reimplementation of MixMatch achieves an error rate of $7 . 0 0 \pm 0 . 5 9$ and $7 . 3 9 \pm 0 . 1 1$ with 4,000 and 2,000 examples. MixMatch uses a different model implementation and employs exponential moving average (EMA) on the model parameters, while we do not use EMA for our implementations.
|
| 319 |
+
|
| 320 |
+
Table 7: Error rate $( \% )$ for CIFAR-10.
|
| 321 |
+
|
| 322 |
+
<table><tr><td>Methods /# Sup</td><td>250</td><td>500</td><td>1,000</td><td>2,000</td><td>4,000</td></tr><tr><td>Pseudo-Label</td><td>49.98 Β± 1.17</td><td>40.55 Β± 1.70</td><td>30.91 Β± 1.73</td><td>21.96 Β± 0.42</td><td>16.21 Β± 0.11</td></tr><tr><td>II-Model</td><td>53.02 Β± 2.05</td><td>41.82 Β± 1.52</td><td>31.53 Β± 0.98</td><td>23.07 Β± 0.66</td><td>17.41 Β± 0.37</td></tr><tr><td>Mean Teacher</td><td>47.32 Β± 4.71</td><td>42.01 Β± 5.86</td><td>17.32 Β± 4.00</td><td>12.17 Β± 0.22</td><td>10.36 Β± 0.25</td></tr><tr><td>VAT</td><td>36.03 Β± 2.82</td><td>26.11 Β± 1.52</td><td>18.68 Β± 0.40</td><td>14.40 Β± 0.15</td><td>11.05 Β± 0.31</td></tr><tr><td>MixMatch</td><td>11.08 Β± 0.87</td><td>9.65 Β± 0.94</td><td>7.75 Β± 0.32</td><td>7.03 Β± 0.15</td><td>6.24 Β± 0.06</td></tr><tr><td>UDA (RandAugment)</td><td>8.76 Β± 0.90</td><td>6.68 Β± 0.24</td><td>5.87 Β± 0.13</td><td>5.51 Β± 0.21</td><td>5.29 Β± 0.25</td></tr></table>
|
| 323 |
+
|
| 324 |
+
SVHN In Table 8, we similarly show results for compared methods of Figure 4b and results of methods mentioned above. Fully supervised learning using 73,257 examples achieves an error rate of 2.84 and 2.28 with or without RandAugment. The performance of the baseline models are reported by MixMatch (Berthelot et al., 2019). Our reimplementation of MixMatch also resulted in comparable but higher error rates than the reported ones.
|
| 325 |
+
|
| 326 |
+
<table><tr><td>Methods /# Sup</td><td>250</td><td>500</td><td>1,000</td><td>2,000</td><td>4,000</td></tr><tr><td>Pseudo-Label</td><td>21.16 Β± 0.88</td><td>14.35 Β± 0.37</td><td>10.19 Β± 0.41</td><td>7.54 Β± 0.27</td><td>5.71 Β± 0.07</td></tr><tr><td>II-Model</td><td>17.65 Β± 0.27</td><td>11.44 Β± 0.39</td><td>8.60 Β± 0.18</td><td>6.94 Β± 0.27</td><td>5.57 Β± 0.14</td></tr><tr><td>Mean Teacher</td><td>6.45 Β± 2.43</td><td>3.82 Β± 0.17</td><td>3.75 Β± 0.10</td><td>3.51 Β± 0.09</td><td>3.39 Β± 0.11</td></tr><tr><td>VAT</td><td>8.41 Β± 1.01</td><td>7.44 Β± 0.79</td><td>5.98 Β± 0.21</td><td>4.85 Β± 0.23</td><td>4.20 Β± 0.15</td></tr><tr><td>MixMatch</td><td>3.78 Β± 0.26</td><td>3.64 Β± 0.46</td><td>3.27 Β± 0.31</td><td>3.04 Β± 0.13</td><td>2.89 Β± 0.06</td></tr><tr><td>UDA (RandAugment)</td><td>2.76 Β± 0.17</td><td>2.70 Β± 0.09</td><td>2.55 Β± 0.09</td><td>2.57 Β± 0.09</td><td>2.47 Β± 0.15</td></tr></table>
|
| 327 |
+
|
| 328 |
+
Table 8: Error rate $( \% )$ for SVHN.
|
| 329 |
+
|
| 330 |
+
# B ADDITIONAL TRAINING TECHNIQUES
|
| 331 |
+
|
| 332 |
+
While UDA generally works well, there are several practical issues in consistency training that may dampen the performance gain if not carefully dealt with. This section presents additional techniques targeting at some commonly encountered problems.
|
| 333 |
+
|
| 334 |
+
Sharpening Predictions. Entropy minimization (Grandvalet & Bengio, 2005) has been shown to be effective in semi-supervised learning methods such as VAT (Miyato et al., 2018). To apply entropy minimization in our method, we simply add a loss term to the objective to regularize the predicted distributions on unlabeled examples to have a low entropy. Alternatively, when the number of labeled examples are extremely small, we find it helpful to mask out examples that the current model is not confident about and use a low Softmax temperature when computing the target distribution on unlabeled examples. Specifically, in each minibatch, the consistency loss term is computed only on examples whose highest probability among classification categories is greater than a threshold.
|
| 335 |
+
|
| 336 |
+
Domain-relevance Data Filtering. Ideally, we would like to make use of out-of-domain unlabeled data since it is usually much easier to collect, but the class distributions of out-of-domain data are mismatched with those of in-domain data, which can result in performance loss if directly used (Oliver et al., 2018). To obtain data relevant to the domain for the task at hand, we adopt a common technique for detecting out-of-domain data. We use our baseline model trained on the in-domain data to infer the labels of data in a large out-of-domain dataset and pick out examples that the model is most confident about. Specifically, for each category, we sort all examples based on the classified probabilities of being in that category and select the examples with the highest probabilities.
|
| 337 |
+
|
| 338 |
+
# C EXTENDED AUGMENTATION STRATEGIES FOR DIFFERENT TASKS
|
| 339 |
+
|
| 340 |
+
Discussion on Trade-off Between Diversity and Validity for Data Augmentation. Despite that state-of-the-art data augmentation methods can generate diverse and valid augmented examples as discussed in section 2.2, there is a trade-off between diversity and validity since diversity is achieved by changing a part of the original example, naturally leading to the risk of altering the ground-truth label. We find it beneficial to tune the trade-off between diversity and validity for data augmentation methods. For text classification, we tune the temperature of random sampling. On the one hand, when we use a temperature of 0, decoding by random sampling degenerates into greedy decoding and generates perfectly valid but identical paraphrases. On the other hand, when we use a temperature of 1, random sampling generates very diverse but barely readable paraphrases. We find that setting the Softmax temperature to 0.7, 0.8 or 0.9 leads to the best performances.
|
| 341 |
+
|
| 342 |
+
RandAugment Details. In our implementation of RandAugment, each sub-policy is composed of two operations, where each operation is represented by the transformation name, probability, and magnitude that is specific to that operation. For example, a sub-policy can be [(Sharpness, 0.6, 2), (Posterize, 0.3, 9)].
|
| 343 |
+
|
| 344 |
+
For each operation, we randomly sample a transformation from 15 possible transformations, a magnitude in [1, 10) and fix the probability to 0.5. Specifically, we sample from the following 15 transformations: Invert, Cutout, Sharpness, AutoContrast, Posterize, ShearX, TranslateX, TranslateY, ShearY, Rotate, Equalize, Contrast, Color, Solarize, Brightness. We find this setting to work well in our first try and did not tune the magnitude range and the probability. Tuning these hyperparameters might result in further gains in accuracy.
|
| 345 |
+
|
| 346 |
+
TF-IDF based word replacing Details. We describe the TF-IDF based word replacing data augmentation method in this section. Ideally, we would like the augmentation method to generate both diverse and valid examples. Hence, the augmentation is designed to retain keywords and replace uninformative words with other uninformative words. We use BERTβs word tokenizer since BERT first tokenizes sentences into a sequence of words and then tokenize words into subwords although the model uses subwords as input.
|
| 347 |
+
|
| 348 |
+
Specifically, Suppose $\mathrm { I D F } ( w )$ is the IDF score for word $w$ computed on the whole corpus, and $\mathrm { T F } ( w )$ is the TF score for word $w$ in a sentence. We compute the TF-IDF score as $\mathrm { T F I D \bar { F } } ( w ) =$ $\mathrm { T F } ( w ) \mathrm { I D F } ( w )$ . Suppose the maximum TF-IDF score in a sentence $x$ is $C = \mathrm { m a x } _ { i } \mathrm { T F I D F } ( x _ { i } )$ . To make the probability of having a word replaced to negatively correlate with its TF-IDF score, we set the probability to $\mathrm { \dot { m i n } } ( p ( C - \mathrm { T F I D F } ( \bar { x _ { i } } ) ) / Z , 1 )$ , where $p$ is a hyperparameter that controls the magnitude of the augmentation and $\begin{array} { r } { Z = \sum _ { i } ( C - \mathrm { T F I D F } ( x _ { i } ) ) / | x | } \end{array}$ is the average score. $p$ is set to 0.7 for experiments on DBPedia.
|
| 349 |
+
|
| 350 |
+
When a word is replaced, we sample another word from the whole vocabulary for the replacement. Intuitively, the sampled words should not be keywords to prevent changing the ground-truth labels of the sentence. To measure if a word is keyword, we compute a score of each word on the whole corpus. Specifically, we compute the score as $S ( w ) = \mathrm { f r e q } ( w ) \mathrm { I D F } ( w )$ where $\operatorname { f r e q } ( w )$ is the frequency of word $w$ on the whole corpus. We set the probability of sampling word $w$ as $( \operatorname* { m a x } _ { w ^ { \prime } } \bar { S ( w ^ { \prime } ) } - \bar { S ( w ) } ) / Z ^ { \prime }$ where $\begin{array} { r } { Z ^ { \prime } = \sum _ { w } \operatorname* { i n a x } _ { w ^ { \prime } } S ( w ^ { \prime } ) - \bar { S ( w ) } } \end{array}$ is a normalization term.
|
| 351 |
+
|
| 352 |
+
# D EXTENDED RELATED WORK
|
| 353 |
+
|
| 354 |
+
Semi-supervised Learning. Due to the long history of semi-supervised learning (SSL), we refer readers to (Chapelle et al., 2009) for a general review. More recently, many efforts have been made to renovate classic ideas into deep neural instantiations. For example, graph-based label propagation (Zhu et al., 2003) has been extended to neural methods via graph embeddings (Weston et al., 2012; Yang et al., 2016) and later graph convolutions (Kipf & Welling, 2016). Similarly, with the variational auto-encoding framework and reinforce algorithm, classic graphical models based SSL methods with target variable being latent can also take advantage of deep architectures (Kingma et al., 2014; MaalΓΈe et al., 2016; Yang et al., 2017). Besides the direct extensions, it was found that training neural classifiers to classify out-of-domain examples into an additional class (Salimans et al., 2016) works very well in practice. Later, Dai et al. (2017) shows that this can be seen as an instantiation of low-density separation.
|
| 355 |
+
|
| 356 |
+
Apart from enforcing consistency on the noised input examples and the hidden representations, another line of research enforces consistency under different model parameters, which is complementary to our method. For example, Mean Teacher (Tarvainen & Valpola, 2017) maintains a teacher model with parameters being the ensemble of a student modelβs parameters and enforces the consistency between the predictions of the two models. Recently, Athiwaratkun et al. (2018) propose fast-SWA that improves Mean Teacher by encouraging the model to explore a diverse set of plausible parameters. In addition to parameter-level consistency, SNTG (Luo et al., 2018) also enforces input-level consistency by constructing a similarity graph between unlabeled examples.
|
| 357 |
+
|
| 358 |
+
Data Augmentation. Also related to our work is the field of data augmentation research. Besides the conventional approaches and two data augmentation methods mentioned in Section 2.1, a recent approach MixUp (Zhang et al., 2017) goes beyond data augmentation from a single data point and performs interpolation of data pairs to achieve augmentation. Recently, Hernandez-Garc Β΄ Β΄Δ±a & Konig (2018) have shown that data augmentation can be regarded as a kind of explicit regularization Β¨ methods similar to Dropout.
|
| 359 |
+
|
| 360 |
+
Diverse Back Translation. Diverse paraphrases generated by back-translation has been a key component in the significant performance improvements in our text classification experiments. We use random sampling instead of beam search for decoding similar to the work by Edunov et al. (2018). There are also recent works on generating diverse translations (He et al., 2018; Shen et al., 2019; Kool et al., 2019) that might lead to further improvements when used as data augmentations.
|
| 361 |
+
|
| 362 |
+
Unsupervised Representation Learning. Apart from semi-supervised learning, unsupervised representation learning offers another way to utilize unsupervised data. Collobert & Weston (2008) demonstrated that word embeddings learned by language modeling can improve the performance significantly on semantic role labeling. Later, the pre-training of word embeddings was simplified and substantially scaled in Word2Vec (Mikolov et al., 2013) and Glove (Pennington et al., 2014). More recently, Dai & Le (2015); Peters et al. (2018); Radford et al. (2018); Howard & Ruder (2018); Devlin et al. (2018) have shown that pre-training using language modeling and denoising auto-encoding leads to significant improvements on many tasks in the language domain. There is also a growing interest in self-supervised learning for vision (Zhai et al., 2019b; Henaff et al., 2019; Β΄ Trinh et al., 2019).
|
| 363 |
+
|
| 364 |
+
Consistency Training in Other Domains. Similar ideas of consistency training has also been applied in other domains. For example, recently, enforcing adversarial consistency on unsupervised data has also been shown to be helpful in adversarial robustness (Stanforth et al., 2019; Zhai et al., 2019a; Carmon et al., 2019). Enforcing consistency w.r.t data augmentation has also been shown to work well for representation learning (Hu et al., 2017; Ye et al., 2019). Invariant representation learning (Liang et al., 2018; Salazar et al., 2018) applies the consistency loss not only to the predicted distributions but also to representations and has been shown significant improvements on speech recognition.
|
| 365 |
+
|
| 366 |
+
# E EXPERIMENT DETAILS
|
| 367 |
+
|
| 368 |
+
In this section, we provide experiment details for the performed experiments.
|
| 369 |
+
|
| 370 |
+
# E.1 TEXT CLASSIFICATIONS
|
| 371 |
+
|
| 372 |
+
Datasets. In our semi-supervised setting, we randomly sampled labeled examples from the full supervised set5 and use the same number of examples for each category. For unlabeled data, we use the whole training set for DBPedia, the concatenation of the training set and the unlabeled set for IMDb and external data for Yelp-2, Yelp-5, Amazon-2 and Amazon-5 (McAuley et al., 2015)6. Note that for Yelp and Amazon based datasets, the label distribution of the unlabeled set might not match with that of labeled datasets since there are different number of examples in different categories. Nevertheless, we find it works well to use all the unlabeled data.
|
| 373 |
+
|
| 374 |
+
Preprocessing. We find the sequence length to be an important factor in achieving good performance. For all text classification datasets, we truncate the input to 512 subwords since BERT is pretrained with a maximum sequence length of 512. Further, when the length of an example is greater than 512, we keep the last 512 subwords instead of the first 512 subwords as keeping the latter part of the sentence lead to better performances on IMDb.
|
| 375 |
+
|
| 376 |
+
Fine-tuning BERT on in-domain unsupervised data. We fine-tune the BERT model on in-domain unsupervised data using the code released by BERT. We try learning rate of 2e-5, 5e-5 and 1e-4, batch size of 32, 64 and 128 and number of training steps of $3 0 \mathrm { k }$ , $1 0 0 \mathrm { k }$ and $3 0 0 \mathrm { k }$ . We pick the fine-tuned models by the BERT loss on a held-out set instead of the performance on a downstream task.
|
| 377 |
+
|
| 378 |
+
Random initialized Transformer. For the experiments with randomly initialized Transformer, we adopt hyperparameters for BERT base except that we only use 6 hidden layers and 8 attention heads. We also increase the dropout rate on the attention and the hidden states to 0.2, When we train UDA with randomly initialized architectures, we train UDA for $5 0 0 \mathrm { k }$ or 1M steps on Amazon-5 and Yelp5 where we have abundant unlabeled data.
|
| 379 |
+
|
| 380 |
+
BERT hyperparameters. Following the common BERT fine-tuning procedure, we keep a dropout rate of 0.1, and try learning rate of 1e-5, 2e-5 and 5e-5 and batch size of 32 and 128. We also tune the number of steps ranging from 30 to $1 0 0 \mathrm { k }$ for various data sizes.
|
| 381 |
+
|
| 382 |
+
UDA hyperparameters. We set the weight on the unsupervised objective $\lambda$ to 1 in all of our experiments. We use a batch size of 32 for the supervised objective since 32 is the smallest batch size on v3-32 Cloud TPU Pod. We use a batch size of 224 for the unsupervised objective when the Transformer is initialized with BERT so that the model can be trained on more unlabeled data. We find that generating one augmented example for each unlabeled example is enough for BERTFINETUNE.
|
| 383 |
+
|
| 384 |
+
All experiments in this part are performed on a v3-32 Cloud TPU Pod.
|
| 385 |
+
|
| 386 |
+
# E.2 SEMI-SUPERVISED LEARNING BENCHMARKS CIFAR-10 AND SVHN
|
| 387 |
+
|
| 388 |
+
Hyperparameters for Wide-ResNet-28-2. For hyperparameter tuning, for simplicity, we performed a random sampling search over hyperparameters and choose the best one based on validation sets ( $20 \%$ of the training sets with different sizes). We use the averaged results of multiple experiments to reduce the performance variance measured on the small validation sets. Specifically, we tried the following ranges:
|
| 389 |
+
|
| 390 |
+
β’ training steps: 50k, 100k;
|
| 391 |
+
β’ learning rate: 0.03, 0.05, 0.1;
|
| 392 |
+
β’ TSA schedules: log-schedule, linear-schedule, exp-schedule, not using TSA; entropy minimization loss weight: 0, 0.1, 0.3; consistency loss weight: 1, 3, 6; unlabeled data batch size: 960, 1280;
|
| 393 |
+
β’ weight decay rate: 5e-4, 7e-4, 1e-3;
|
| 394 |
+
β’ softmax temperature: 1, 0.9;
|
| 395 |
+
β’ confidence threshold: 0, 0.8.
|
| 396 |
+
|
| 397 |
+
where the values in bold black text are our default hyperparameters. We found that given a reasonably large labeled set, our method is robust to hyper-parameters. Therefore, we use the same hyper-parameters in these cases. Specifically, we use the above default hyperparameters for CIFAR10 with 4,000, 2,000, 1,000 and 500 examples. For SVHN with 4,000, 2,000, 1,000, 500, 250 examples, we additionally set the learning rate to 0.05 and unlabeled batch size to 1280. For the case of 250 examples on CIFAR-10, we use a different set of hyper-parameters: training steps: 50k; TSA schedule: log-schedule; consistency loss coefficient: 6; weight decay: 7e-4; unlabeled data batch size: 1280; softmax temperature: 0.9; consistency threshold: 0.8.
|
| 398 |
+
|
| 399 |
+
Other hyperparameters not mentioned above are the same to the the original paper of WideResNet (Zagoruyko & Komodakis, 2016). In order to reduce training time, we generate augmented examples before training and dump them to disk. For CIFAR-10, we generate 100 augmented examples for each unlabeled example. Note that generating augmented examples in an online fashion is always better or as good as using dumped augmented examples since the model can see different augmented examples in different epochs, leading to more diverse samples. We report the average performance and the standard deviation for 10 runs.
|
| 400 |
+
|
| 401 |
+
Hyperparameters for Shake-Shake and PyramidNet. For the experiments with Shake-Shake, we train UDA for 300k steps and use a batch size of 128 for the supervised objective and use a batch size of 512 for the unsuperivsed objective. For the experiments with PyramidNet+ShakeDrop, we train UDA for $7 0 0 \mathrm { k }$ steps and use a batch size of 64 for the supervised objective and a batch size of 128 for the unsupervised objective. For both models, we use a learning rate of 0.03 and use a cosine learning decay with one annealing cycle following AutoAugment.
|
| 402 |
+
|
| 403 |
+
All experiments in this part are performed on a v3-32 Cloud TPU v3 Pod.
|
| 404 |
+
|
| 405 |
+
# E.3 IMAGENET
|
| 406 |
+
|
| 407 |
+
$10 \%$ Labeled Set Setting. Unless otherwise stated, we follow the standard hyperparameters used in an open-source implementation of ResNet.7 For the $10 \%$ labeled set setting, we use a batch size of 512 for the supervised objective and a batch size of 15,360 for the unsupervised objective. We use a base learning rate of 0.3 that is decayed by 10 for four times and set the weight on the unsupervised objective $\lambda$ to 20. We mask out unlabeled examples whose highest probabilities across categories are less than 0.5 and set the Softmax temperature to 0.4. The model is trained for 40k steps. Experiments in this part are performed on a v3-64 Cloud TPU v3 Pod.
|
| 408 |
+
|
| 409 |
+
Full Labeled Set Setting. For experiments on the full ImageNet, we use a batch size of 8,192 for the supervised objective and a batch size of 16,384 for the unsupervised objective. The weight on the unsupervised objective $\lambda$ is set to 1. We use entropy minimization to sharpen the prediction. We use a base learning rate of 1.6 and decay it by 10 for four times. Experiments in this part are performed on a v3-128 Cloud TPU v3 Pod.
|
parse/train/ByeL1R4FvS/ByeL1R4FvS_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/ByeL1R4FvS/ByeL1R4FvS_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/ByeL1R4FvS/ByeL1R4FvS_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/ee6W5UgQLa/ee6W5UgQLa.md
ADDED
|
@@ -0,0 +1,269 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MULTIMODALQA: COMPLEX QUESTION ANSWERING OVER TEXT, TABLES AND IMAGES
|
| 2 |
+
|
| 3 |
+
Alon Talmorβ,1,2 Ori Yoranβ,1,2 Amnon Catavβ,2 Dan Lahavβ,2 Yizhong Wang3
|
| 4 |
+
Akari Asai3 Gabriel Ilharco3 Hannaneh Hajishirzi2,3 Jonathan Berant1,2
|
| 5 |
+
|
| 6 |
+
1The Allen Institute for AI, 2Tel-Aviv University, 3University of Washington {alont,oriy,jonathan}@allenai.org
|
| 7 |
+
{amnoncatav,lahav}@mail.tau.ac.il
|
| 8 |
+
{yizhongw,akari,gamaga,hannaneh}@cs.washington.edu
|
| 9 |
+
|
| 10 |
+
# ABSTRACT
|
| 11 |
+
|
| 12 |
+
When answering complex questions, people can seamlessly combine information from visual, textual and tabular sources. While interest in models that reason over multiple pieces of evidence has surged in recent years, there has been relatively little work on question answering models that reason across multiple modalities. In this paper, we present MULTIMODALQA (MMQA): a challenging question answering dataset that requires joint reasoning over text, tables and images. We create MMQA using a new framework for generating complex multi-modal questions at scale, harvesting tables from Wikipedia, and attaching images and text paragraphs using entities that appear in each table. We then define a formal language that allows us to take questions that can be answered from a single modality, and combine them to generate cross-modal questions. Last, crowdsourcing workers take these automatically generated questions and rephrase them into more fluent language. We create 29,918 questions through this procedure, and empirically demonstrate the necessity of a multi-modal multi-hop approach to solve our task: our multi-hop model, ImplicitDecomp, achieves an average $\mathrm { F _ { 1 } }$ of 51.7 over cross-modal questions, substantially outperforming a strong baseline that achieves $3 8 . 2 \mathrm { F _ { 1 } }$ , but still lags significantly behind human performance, which is at $9 0 . 1 \mathrm { F _ { 1 } }$ .
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
When presented with complex questions, people often do not know in advance what source(s) of information are relevant for answering it. In general scenarios, these sources can encompass multiple modalities, be it paragraphs of text, structured tables, images or combinations of those. For instance, a user might ponder βWhen was the famous painting with two touching fingers completed?β, if she cannot remember the exact name of the painting. Answering this question is made possible by integrating information across both the textual and visual modalities.
|
| 17 |
+
|
| 18 |
+
Recently, there has been substantial interest in question answering (QA) models that reason over multiple pieces of evidence (multi-hop questions (Yang et al., 2018; Talmor & Berant, 2018; Welbl et al., 2017)). In most prior work, the question is phrased in natural language and the answer is in a context, which may be a paragraph (Rajpurkar, 2016), a table (Pasupat & Liang, 2015), or an image (Antol et al., 2015). However, there has been relatively little work on answering questions that require integrating information across modalities. Hannan et al. (2020) created MANYMODALQA: a dataset where the context for each question includes information from multiple modalities. However, the answer to each question can be derived from a single modality only, and no cross-modality reasoning is needed. Thus, the task is focused on identifying the relevant modality. Recently, Chen et al. (2020b) presented HYBRIDQA, a dataset that requires reasoning over tabular and textual data. While HYBRIDQA requires cross-modal reasoning, it does not require visual inference, limiting the types of questions that can be represented (See Table 1 for a comparison between the datasets).
|
| 19 |
+
|
| 20 |
+
# Multimodal Context
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
Q: Which B.Piazza titlecame earlier: the movie S.Stalone'sson staredinor the movie with halfofalady'sface on the poster? A:Tell Me That You Love Me, Junie Moon
|
| 24 |
+
Figure 1: Example of a MMQA question, answer and context. In green are the text modality question and answer, and in red the image modality. The table is used to perform the year comparison between the answers of the text and image question parts.
|
| 25 |
+
|
| 26 |
+
In this work, we present MMQA, the first large-scale (29,918 examples) QA dataset that requires integrating information across free text, semi-structured tables, and images, where $3 5 . 7 \%$ of the questions require cross-modality reasoning. Figure 1 shows an example question: βWhich B.Piazza title came earlier: the movie S. Stallonβs son starred in, or the movie with half of a ladyβs face on the poster?β. Answering this question entails (i) decomposing the question into a sequence of simpler questions, (ii) determining the modalities for the simpler questions and answering them, i.e., information on the poster is in an image, the information on ${ } ^ { \mathfrak { a } } S .$ Stallonβs sonβ is in free text, and the years of the movies are in the table, (iii) combining the information from the simpler questions to compute the answer: βTell Me that you love me, Junie Moonβ.
|
| 27 |
+
|
| 28 |
+
Our methodology for creating MMQA involves three high-level steps. (a) Context construction: we harvest tables from Wikipedia, and connect each table to images and paragraphs that appear in existing Reading Comprehension (RC) datasets (Kwiatkowski et al., 2019; Clark et al., 2019; Yang et al., 2018); (b) Question generation: Following past work (Talmor & Berant, 2018), we use the linked structure of the context to automatically generate questions that require multiple reasoning operations (composition, conjunction, comparison) across modalities in pseudo-language ; (c) Paraphrasing: we use crowdsourcing workers to paraphrase the pseudo-language questions into more fluent English.
|
| 29 |
+
|
| 30 |
+
To tackle MMQA, we introduce ImplicitDecomp, a new model that predicts a program that specifies the required reasoning steps over different modalities, and executes the program with dedicated text, table, and image models. ImplicitDecomp performs multi-hop multimodal reasoning without the need for an explicit decomposition of the question.
|
| 31 |
+
|
| 32 |
+
We empirically evaluate MMQA by comparing ImplicitDecomp to strong baselines that do not perform cross-modal reasoning and to human performance. We find that on multimodal questions, ImplicitDecomp improves $\mathrm { F _ { 1 } }$ from
|
| 33 |
+
|
| 34 |
+
Table 1: A comparison of MULTIMODALQA to MANYMODALQA and HYBRIDQA. We compare dataset size, use of images, and whether the dataset supports multihop questions and an open-domain full-wiki setup.
|
| 35 |
+
|
| 36 |
+
<table><tr><td>Dataset</td><td>Size</td><td>Full- wiki</td><td>Uses images</td><td>Multi- hop</td></tr><tr><td>MANYMODALQA</td><td>10K</td><td>X</td><td>β</td><td>X</td></tr><tr><td>HYBRIDQA</td><td>70K</td><td>X</td><td>Γ</td><td>β</td></tr><tr><td>MULTIMODALQA</td><td>30K</td><td>β</td><td>β</td><td>β</td></tr></table>
|
| 37 |
+
|
| 38 |
+
$3 8 . 2 5 1 . 7 $ over a single-hop approach. Humans are able to reach $9 0 . 1 \mathrm { F _ { 1 } }$ , significantly outperforming our best model. Because automatic evaluation is non-trivial, we also manually analyze human performance and find humans correctly answer $9 4 . 5 \%$ of the questions in MMQA. Finally, our dataset can be used in an open-domain setup over all of Wikipedia. In this setup, the $\mathrm { F _ { 1 } }$ of humans is 84.8.
|
| 39 |
+
|
| 40 |
+
To summarize, our key contributions are:
|
| 41 |
+
|
| 42 |
+
β’ MMQA: a dataset with 29,918 questions and answers, $3 5 . 7 \%$ of which require cross-modal reasoning. β’ A methodology for generating multimodal questions over text, tables and images at scale. β’ ImplicitDecomp, A model for implicitly decomposing multimodal questions, which improves on a single-hop model by 13.5 absolute $\mathrm { F _ { 1 } }$ points on questions requiring cross-modal reasoning. β’ Our dataset and code are available at https://allenai.github.io/multimodalqa.
|
| 43 |
+
|
| 44 |
+
# 2 DATASET GENERATION
|
| 45 |
+
|
| 46 |
+
Our goal is to develop a method that allows generating complex questions over multiple modalities at scale. An overview of the methodology is captured in Figure 2. We first select a Wikipedia table as an anchor, to which we add images and texts paragraphs and obtain a context. Single modality questions are generated based on these contexts, and used to automatically create multimodal, multihop questions. AMT workers rephrase the questions into natural language, and finally distractor paragraphs and images are selected for each question. We now elaborate on the 6 steps of the process.
|
| 47 |
+
|
| 48 |
+

|
| 49 |
+
Figure 2: An overview of MMQA dataset generation process.
|
| 50 |
+
|
| 51 |
+
2.1 Wikipedia tables as anchors The 01-01-2020 English Wikipedia dump contains roughly $3 M$ tables. We extracted all tables and selected those that meet the following criteria: (a) The tables contain 10-25 rows (b) At least 3 images are associated with the table. This results in a total of $7 0 0 \mathrm { k }$ tables. (see supp. material for more information). These tables are the anchors of our contexts, which we enrich with images and text for multimodal question generation. A key element of the tables are Wikipedia Entities (WikiEntities) that appear in them, i.e., concepts linked to other Wikipedia entries. We use them to connect different modalities, bridge questions, and solve ambiguities (details below).
|
| 52 |
+
|
| 53 |
+
2.2 Connecting Images and Text to Tables Images. We consider two cases: (a) in-table images and (b) images from pages of linked WikiEntities. In the former, the images are featured inside the table cells. In the latter, the table contains a column of WikiEntities that potentially have images, e.g. a table describing the filmography of an actor often contains a column of film names, which may have posters in their respective pages. To associate entities with their representative image, we map entities and their profile images in their Wikipedia pages. Overall, we obtain 57,713 images, with 889 in-table images and 56,824 WikiEntities images. Text. We build on texts from contexts appearing in existing reading comprehension datasets. We elaborate on this process next.
|
| 54 |
+
|
| 55 |
+
2.3 Generating Single-Modality Questions Tables. We generate pseudo-language table questions in the following form βIn [table title] of [Wikipedia page title] which cells in [column X] have the [value Y] in [column Z]?β. We additionally support numeric computations over columns classified as dates or numbers, such as min and max values, e.g., βIn [Doubles] of [WCT Tournament of Champions], what was the MOST RECENT [Year](s) where the [Location] was [Forest Hills]β.
|
| 56 |
+
|
| 57 |
+
Images. We use crowdsourcing to generate single-modality questions about images. We generated two types of image questions, based on the images we retrieved from the previous step: (i) questions over a single image, (ii) questions over a list of images.
|
| 58 |
+
|
| 59 |
+
When generating single-image questions, we show Amazon Mechanical Turk (AMT) crowd workers an image alongside its WikiEntity, and ask them to phrase a question about the image with the entity being the focus of the question. E.g, if the entity is βRoger Federerβ, a potential question is βWhatβs the hair color of Roger Federer?β. For questions to have meaning in an open-domain setting, we primed AMT workers to ask questions that correspond to βstableβ features, i.e., features that are unlikely to change in different images and are thus appropriate in an open-domain setting.
|
| 60 |
+
|
| 61 |
+
Table 2: All 16 compositional templates in MMQA with an example and their relative frequency.
|
| 62 |
+
|
| 63 |
+
<table><tr><td rowspan=1 colspan=1>Type</td><td rowspan=1 colspan=1>Q&A</td><td rowspan=1 colspan=1>%</td></tr><tr><td rowspan=1 colspan=1>TextQ</td><td rowspan=1 colspan=1>What wasthe territorial capitalof the territory opposingOhioin theToledoWar?Detroit</td><td rowspan=1 colspan=1>31.0</td></tr><tr><td rowspan=1 colspan=1>TableQ</td><td rowspan=1 colspan=1>DoestheGerman state Baden-Wurttemberg orThuringia have moreresidents?Baden-Wurttemberg</td><td rowspan=1 colspan=1>18.3</td></tr><tr><td rowspan=1 colspan=1>ImageQ</td><td rowspan=1 colspan=1>WhatweaponisthestatueinNottinghamholding?bow</td><td rowspan=1 colspan=1>8.9</td></tr><tr><td rowspan=1 colspan=1>Compose(TextQ,TableQ)</td><td rowspan=1 colspan=1>Atwhatagedid theCleveland Cavaliersplayer with 6190rebounds enter the NBA?19</td><td rowspan=1 colspan=1>7.8</td></tr><tr><td rowspan=1 colspan=1>ImageListQ</td><td rowspan=1 colspan=1>Whatisthecommon nameof thebushwarblerinThailand that hasanorange stripe above itseye?Chestnut-crowned bush warbler</td><td rowspan=1 colspan=1>6.1</td></tr><tr><td rowspan=1 colspan=1>Compose(TableQ,ImageListQ)</td><td rowspan=1 colspan=1>Thefilm that starredChrisEllisonwhereamanwasholding anewspaper on the poster, was released what year?1988</td><td rowspan=1 colspan=1>5.4</td></tr><tr><td rowspan=1 colspan=1>Compose(ImageQ,TableQ)</td><td rowspan=1 colspan=1>OntheposterfortheTVshowinwhich TomMisonplayedDorianCrane,what kind of structure can be seen behind the two men? castle</td><td rowspan=1 colspan=1>4.5</td></tr><tr><td rowspan=1 colspan=1>Compare(Compose(TableQ,ImageQ),TableQ)</td><td rowspan=1 colspan=1>Which manufacturerhas fewerwinsattheFirst Data 5Oo:Buick or thebrand with across for a logo?Buick</td><td rowspan=1 colspan=1>3.5</td></tr><tr><td rowspan=1 colspan=1>Compose(TableQ,TextQ)</td><td rowspan=1 colspan=1>Onwhat date did the original artistwho sangSweetChildof Mine haveaconcert atUSBank Stadium?July 30,2017</td><td rowspan=1 colspan=1>3.2</td></tr><tr><td rowspan=1 colspan=1>Intersect(TableQ,TextQ)</td><td rowspan=1 colspan=1>Who was the artistfor DamonFox in20o6who also sings "You gotthemoves like Jagger"?Christina Aguilera</td><td rowspan=1 colspan=1>2.6</td></tr><tr><td rowspan=1 colspan=1>Compose(TextQ,ImageListQ)</td><td rowspan=1 colspan=1>Ontheposterfor themoviebasedonthebook "ActlikeaLady,ThinkLikea Man,"how many people are there in total? nine</td><td rowspan=1 colspan=1>2.4</td></tr><tr><td rowspan=1 colspan=1>Intersect(ImageListQ,TableQ)</td><td rowspan=1 colspan=1>WhatcoversoftheChandlerCanterburyfilmsfrom2oo9hasmorethanoneperson?PowderBlueBallsOut,Gary theTennisCoach,After.Life</td><td rowspan=1 colspan=1>2.3</td></tr><tr><td rowspan=1 colspan=1>Compare(TableQ,Compose(TableQ,TextQ))</td><td rowspan=1 colspan=1>DidChelseaorclubthat singsYou'llNeverWalkAlonerank higherinDeloitteFootball MoneyLeague20o7?Chelsea</td><td rowspan=1 colspan=1>2.1</td></tr><tr><td rowspan=1 colspan=1>Compose(ImageQ,TextQ)</td><td rowspan=1 colspan=1>DidGary Oldmantakepart inthemoviewhoseposterfeaturestwomenholding handguns,and which had MarkL.Smith as a writer? no</td><td rowspan=1 colspan=1>1.0</td></tr><tr><td rowspan=1 colspan=1>Compare(Compose(TableQ,ImageQ),Compose(TableQ,TextQ))</td><td rowspan=1 colspan=1>Wasthefilmthat featuresa gianteyeonitsposter or the firstWolverinemovie theearlierfilm thatScott Silverworkedon? Requiem fora Dream</td><td rowspan=1 colspan=1>0.8</td></tr><tr><td rowspan=1 colspan=1>Intersect(ImageListQ,TextQ)</td><td rowspan=1 colspan=1>Whatcommonlaw statewith aneagleontheflag hasan institutionin the North region of DivisionIIof theNCCAA?Iowa</td><td rowspan=1 colspan=1>0.2</td></tr></table>
|
| 64 |
+
|
| 65 |
+
For questions with a list of images, we use images that appear in the same column of a table. To generate these questions, AMT workers were given the images and asked to phrase a binary question about a distinctive feature of the entities that a subset of the images share. E.g., given a list of statues, the worker could ask βWhich of the statues features a horse?β This process results in 2,764 single image questions and 7,773 list image questions that are later used to create multimodal questions.
|
| 66 |
+
|
| 67 |
+
Text. To obtain questions answerable over text paragraphs we build on existing reading comprehension datasets: Natural Questions (NQ) (Kwiatkowski et al., 2019) consists of about $3 0 0 K$ questions issued to the Google search engine. This dataset mostly contains simple questions where a single paragraph suffices to answer each question. BoolQ (Clark et al., 2019) contains 15, 942 yes/no questions, gathered using the same pipeline as NQ. HotpotQA (Yang et al., 2018) contains $1 1 2 K$ training questions, where crowd workers were shown pairs of related Wikipedia paragraphs and were asked to author questions that require multi-hop reasoning over the paragraphs.
|
| 68 |
+
|
| 69 |
+
To use questions from the above datasets as building blocks for multi-hop multimodal questions, we unified them into a corpus that consists of triples of (i) a text question, (ii) an answer and (iii) 1-2 gold paragraphs from Wikipedia. We link a question to a table, by matching WikiEntities in the table to entities in the text of the question (see supplementary material for further details). Overall, we retrieved 6,644 questions from NQ, 1,246 from BoolQ and 4,733 from HotpotQA.
|
| 70 |
+
|
| 71 |
+
2.4 Generating multimodal complex questions We present an automatic method for creating at scale multimodal compositional questions (i,e., questions that require answering a sequence of subquestions to conclude the final answer). Our first step is to introduce a formal language that allows to combine questions answerable from a single modality. Below we introduce the logical operations that allow to generate such pseudo-language (PL) questions, while keeping a formal representation of how they were constructed. In Table 2, we illustrate this process with all 16 different compositional templates used for question generation. We now describe our logical operations.
|
| 72 |
+
|
| 73 |
+
Logical Operations Functions in our formal language take arguments and return a PL partial question, as well as answers that can be a list of one or more strings, or a list of one or more WikiEntities. All operations have access to the full context. In addition, we prepend a prefix containing the Wikipedia table name and page titleβe.g. βIn the Filmography of Brad Pitt,ββto all our PL questions to support an open-domain QA setup. Our set of logical operations are:
|
| 74 |
+
|
| 75 |
+
1. TABLEQ: Returns a question from the table questions generated in $\ S 2 . 3$ , as well as a list of WikiEntities or a list of strings as answers.
|
| 76 |
+
|
| 77 |
+
2. TEXTQ: Returns a text corpus question (see $\ S 2 . 3$ ) and a list of WikiEntities or strings as answers.
|
| 78 |
+
|
| 79 |
+
3. IMAGEQ: Returns a question about a single image associated with a WikiEntity and a single token answer from a fixed vocabulary (see $\ S 2 . 3 \AA$ ).
|
| 80 |
+
|
| 81 |
+
4. IMAGELISTQ: Returns a question about a list of images and a list of WikiEntities corresponding to the images that answer the question (see $\ S 2 . 3$ ).
|
| 82 |
+
|
| 83 |
+
5. COMPOSE $( \cdot , \cdot )$ : Takes a PL question containing a single WikiEntity as a first argument, and a PL question that produces that WikiEntity as the output answer as its second argument. E.g., COMPOSE(βWhere was Barack Obama born?β,βWho was the 44th president of the USA?β). The function replaces the WikiEntity in the first-argument PL question with the second-argument PL question and returns the resulting PL question (βWhere was the 44th president of the USA born?β).
|
| 84 |
+
|
| 85 |
+
6. INTERSECT $( \cdot , \cdot )$ : Takes two PL questions that return lists of more than one WikiEntity, and returns their intersection as the answer. The resulting $\mathrm { P L }$ question is of the form ${ } ^ { \cdot } P L _ { 1 }$ and $P L _ { 2 }$ β omitting $\mathrm { P L _ { 2 } }$ βs first word (βWho was born in Hawaii and is the parent of Sasha Obama?β).
|
| 86 |
+
|
| 87 |
+
7. COMPARE $( \cdot , \cdot )$ : Takes two PL questions each returning one WikiEntity that can be linked to one cell in the table, denoted by $\mathrm { { A n s } _ { 1 } }$ , $\mathrm { { A n s } _ { 2 } }$ . We first choose a numeric or date column in the table, if such exists. We then compare the values of this column corresponding to the rows of $\mathbf { A n s } _ { 1 }$ and Ans2. Depending on the comparison outcome, output one of $( \mathrm { A n s _ { 1 } }$ , Ans2) as the operation answer. The PL question created is of the form βWhat has compare-op numeric-column-name, $P L _ { 1 }$ or $P L _ { 2 }$ ?β omitting $\mathrm { P L _ { 1 } }$ and $\mathrm { P L _ { 2 } }$ βs first word. E.g. βWhat has most recent creation year, the rocket of Appolo program, or the rocket of Gemini program?β
|
| 88 |
+
|
| 89 |
+
2.5 Paraphrasing using AMT We used English-speaking AMT workers to paraphrase automaticallygenerated PL questions into natural language (NL). Each question was paraphrased by 1 worker and validated by 1-3 other workers. To avoid annotator bias (Geva et al., 2019), the number of annotators who worked on both the training and evaluation set was kept to a minimum. We also deployed a feedback mechanism, where workers receive a bonus if a baseline model correctly answered the question after their first paraphrasing attempt, but incorrectly after they refined the paraphrase. See supp. material for print-screens of the AMT annotator interface.
|
| 90 |
+
|
| 91 |
+
To generate diversity, workers got a bonus if the normalized edit distance of a paraphrase compared to the PL question was higher than 0.7. A total of 971 workers were involved, and 29,918 examples were produced with an average cost of $0 . 3 3 \ S$ per question. We split the dataset into 23,817 training, 2,441 development (dev.), and 3,660 test set examples. Context components in the dev. and test sets are disjoint, and were constructed from a disjoint set of single-modality questions.
|
| 92 |
+
|
| 93 |
+
A shortcoming of our method for automatically generating examples is that the question distribution does not come from a βnaturalβ source. We argue that developing models that are capable of performing reasoning over multiple modalities is an important direction and MMQA provides an opportunity to develop and evaluate such models. Moreover, this method allows to control the compositional questions created, proving effective in creating a cheap and scalable dataset.
|
| 94 |
+
|
| 95 |
+
2.6 Adding distractors to the context Images. Questions from the IMAGELISTQ operator require reasoning over a list of images from the same column, and hence do not require additional distractors. For IMAGEQ questions (single-image), we randomly add images that are associated with the WikiEntities that appear in the table, setting a maximum of 15 distractors per question.
|
| 96 |
+
|
| 97 |
+
Text. We used DPR (Karpukhin et al., 2020), a neural information retrieval model, to retrieve distractors for all questions. Each context includes exactly 10 paragraphs, where 1-2 are gold paragraphs and the rest are distractors. Specifically, we encode the first 2 paragraphs of each Wikipedia article with the DPR encoder, and use as distractors the paragraphs with the highest dot product between their encoding and the question encoding. We do not allow: (a) an overlap between the distractors in the training and evaluation sets, (b) distractors originating from the gold article, (c) distractors containing an exact match to the gold answer.
|
| 98 |
+
|
| 99 |
+
To summarize, each of our examples contains a question, an answer, the formal representation of the PL question (ignored by our models), and all distractors and gold context for all modalities. This renders MMQA useful for both open-domain multimodal QA, as well as context-dependant QA.
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
Figure 3: Domain diversity in MMQA. The area of each color corresponds to the topic frequency in the dataset.
|
| 103 |
+
|
| 104 |
+
# 3 DATASET ANALYSIS
|
| 105 |
+
|
| 106 |
+
To highlight the diversity of MMQA we analyze its key statistics, domains, and lexical richness.
|
| 107 |
+
|
| 108 |
+
Key Statistics MMQA contains 29, 918 questions, and their main statistics are in Table 3. Since we focus on multimodality, we upsample the number of multimodal questions in the dev. and test sets compared to the training set. Also, about $60 \%$ of the questions in MMQA are compositional. Questions are relatively long (18.2 words), but answers tend to be short (2.1 words). The answer for each question can be a single answer or a list of answers. While list answers comprise only $7 . 4 \%$ of the data, when considering compositional questions that contain an intermediate question within them, the proportion of list answers in intermediate questions is higher $( 1 8 . 9 \% )$ ).
|
| 109 |
+
|
| 110 |
+
Table 3: Key statistics for MMQA.
|
| 111 |
+
|
| 112 |
+
<table><tr><td>Measurement</td><td>Value</td></tr><tr><td># Distinct Questions</td><td>29,918</td></tr><tr><td>Train multimodal questions</td><td>34.6%</td></tr><tr><td>Dev.+test multimodal questions</td><td>40.1%</td></tr><tr><td>Train compositional questions</td><td>58.8%</td></tr><tr><td>Dev.+test compositional questions</td><td>62.3%</td></tr><tr><td>Average question length (words)</td><td>18.2</td></tr><tr><td>Average # of answers per question</td><td>1.16</td></tr><tr><td>List answers</td><td>7.4%</td></tr><tr><td>List answers per intermediate question</td><td>18.9%</td></tr><tr><td>Average answer length (words)</td><td>2.1</td></tr><tr><td># of distinct words in questions</td><td>49,649</td></tr><tr><td># of distinct words in answers</td><td>20,820</td></tr><tr><td># of distinct context tables</td><td>11,022</td></tr></table>
|
| 113 |
+
|
| 114 |
+
Domain Diversity Figure 3 shows a sample of questions from MMQA categorized to different domains. While entertainment categories occupy a large portion of our dataset (Films $36 \%$ , TV $19 \%$ ), we observe questions represent a wide variety of topics.
|
| 115 |
+
|
| 116 |
+
Lexical Richness Workers received a bonus when substantially modifying the PL questions. We observe that the average normalized edit distance between the NL questions and the PL questions is high (0.7), that NL questions are shorter (avg. length of 20.02 vs. 22.16 words for PL questions), and use a richer vocabulary (#unique words 39, 319 vs 37, 108).
|
| 117 |
+
|
| 118 |
+
# 4 MODELS
|
| 119 |
+
|
| 120 |
+
Here we present our baseline models. We first train models that interact with a single modality given a question (Β§4.1), and use those as building blocks in our multimodal approaches (Β§4.2). We denote the question by $Q$ , context paragraphs by $\mathcal { P }$ , Table by $T$ and context images by $\mathcal { T }$ .
|
| 121 |
+
|
| 122 |
+
# 4.1 SINGLE-MODALITY QA MODULES
|
| 123 |
+
|
| 124 |
+
Text QA Module Following prior work (Min et al., $2 0 1 9 \mathrm { a }$ ; Asai et al., 2020), our text QA module takes as input a question $Q$ and a paragraph $p \in \mathcal P$ and answers $Q$ by selecting a span in each paragraph $p$ independently, predicting the start and end positions (Devlin et al., 2019). Additionally, the model returns four scores for for every paragraph $p$ corresponding to: if the answer is $( i )$ a span in $p$ ; $( i i )$ βyesβ; $( i i i )$ βnoβ; or $( i \nu )$ not in $p$ . At inference time, the model selects the paragraph that has the lowest score for $i \nu$ β the answer is not the paragraph. Our model is based on a pre-trained RoBERTa-large model (Liu et al., 2019), fine-tuned on MMQA.
|
| 125 |
+
|
| 126 |
+
Table QA Module Following prior work (Herzig et al., 2020), our table QA module takes as input the question $Q$ and the table $T$ , and selects a subset of the table cells and an aggregation operation to compute the final answer. Specifically, we linearize the table $T$ by rows, with column names prepended to the corresponding cells (Chen et al., 2019). For example, this converts the table in Figure 1 to the following text: βRow 1: year is 1957; title is a dangerous age; role is David. Row 2...β. Next, we concatenate the question to the linearized table, and encode them using RoBERTa-large. We then pass the contextualized representation of every token in the table cell to a linear classifier that computes the probability of the token being selected. The score for a cell is the average of its tokens. Cells with probability $> 0 . 5$ are selected. Finally, another linear multi-class classifier predicts an aggregation operation from SUM, MEAN, COUNT, YES, NO, and NONE. Aggregation operations are applied on the selected cells, YES and NO operations output βyesβ or βnoβ, and the NONE operation outputs all selected cells.
|
| 127 |
+
|
| 128 |
+
Image QA Module Questions with visual information are handled by a multimodal transformer that processes the text question and pre-computed image features. For a question $Q$ and a set of images $\mathcal { T }$ , we feed the model the question and the visual features $\Phi ( i )$ extracted from each image $i \in \mathcal { T }$ , along with the name of the WikiEntity associated with the image. For each image and question, the model predicts an answer from a fixed vocabulary determined by the answers in the training set and 3 special tokens: $y _ { \mathrm { d t r } }$ , $y _ { \mathrm { p } }$ and $y _ { \mathrm { n } }$ . In questions where the expected answer is a phrase (e.g., ImageQ), we return the answer from the image where $p ( y _ { \mathrm { d t r } } )$ is lowest (similar to text QA). In questions where the expected answer is a subset of the images (e.g., Compose(TableQ,ImageQ)), we return all images where $p ( y _ { \mathrm { p } } ) > p ( y _ { \mathrm { n } } )$ . Our model is based on the pre-trained model VILBERT-MT1 (Lu et al., 2020). Visual features are extracted by a vision network $\Phi$ , comprised of a Faster R-CNN (Ren et al., 2015) pre-trained on Visual Genome (Krishna et al., 2017).
|
| 129 |
+
|
| 130 |
+
# 4.2 MULTIMODALITY QA MODELS
|
| 131 |
+
|
| 132 |
+
We turn to models that interact with multiple modalities.
|
| 133 |
+
|
| 134 |
+
Multi-Hop Implicit Decomposition (ImplicitDecomp) Our dataset is designed to test reasoning across modalities. As a first attempt towards this goal, we introduce a 2-hop implicit decomposition baseline, capable of combining information scattered across modalities (illustrated in Figure 4).
|
| 135 |
+
|
| 136 |
+
We first train a question-type classifier, based on RoBERTa-large, that takes a question $Q$ as input, and predicts one of the 16 possible question types (Table 2). The question type can be viewed as a program, specifying the relevant modalities, their order, and the logical operations. For example, if the question type is Compose(TextQ,TableQ), the first hop should be conducted on the table $T$ , and the second hop on the paragraphs $\mathcal { P }$ . In each hop, we feed the model with the question $Q$ , the question type, the hop number, and the context of the corresponding modality. The model automatically identifies which part of the question is relevant at the current hop and does not explicitly decompose the question into sub-questions (hence the name implicit decomposition). In the second hop, answers from the first hop are also given as input so that the model can leverage this information and conduct cross-modal reasoning to output the final answer. For all single-modality question types (such as TextQ and TableQ), the model uses only the first hop to get the answer.
|
| 137 |
+
|
| 138 |
+
Single-Hop Routing (AutoRouting) A simple approach for answering questions without cross-modal reasoning is to first determine the modality where the answer is expected to occur, and then run the corresponding single-modality module. We use the aforementioned question type classifier to determine the modality where the answer will appear, route the question and the context for the predicted modality into the corresponding module, and use the output as the final answer.
|
| 139 |
+
|
| 140 |
+
Question-only and Context-only baselines We run the question-only and context-only baselines, suggested by Kaushik & Lipton (2018). Our question-only baseline is BART-large (Lewis et al., 2019): a sequence-to-sequence model that directly generates the answer given the question. For the context-only baseline, we first predict the question type using the classifier described above to pick a target module. We then feed the relevant context to the target module, replacing the question with an empty string.
|
| 141 |
+
|
| 142 |
+
# 4.3 TRAINING AND SUPERVISION
|
| 143 |
+
|
| 144 |
+
Our dataset provides rich supervision including not only the final answer but also question types and intermediate results. Therefore, we can train the pipeline modules in a supervised fashion. Specifically, we train the question type classifier using a cross entropy loss w.r.t the gold question type. For AutoRouting, each QA module is trained with the subset of samples whose final answer can be extracted from the corresponding modality. For ImplicitDecomp, only one model is trained per modality, which is used to answer both the first-hop and second-hop questions. The question-only and context-only baselines are trained in the corresponding format.
|
| 145 |
+
|
| 146 |
+

|
| 147 |
+
Figure 4: ImplicitDecomp: Modules with the same color share parameters. In this example, the text QA module is activated to produce the 1st-hop answer, and this intermediate answer is fed into the Image QA model to produce the final answer. Question type ([Q Type]) is determined by a separate classifier.
|
| 148 |
+
|
| 149 |
+
# 5 EXPERIMENTS
|
| 150 |
+
|
| 151 |
+
We evaluate models in three different setups: (1) questions that require a single modality to answer (Single Modality); (2) questions that require reasoning over multiple modalities (Multi Modality); (3) and all questions $( A l l )$ . Our evaluation metrics need to support lists of answers, and thus we use average $\mathrm { F _ { 1 } }$ and Exact Match (EM), as described in Dua et al. (2019), where answers on the gold and predicted lists are aligned. Human performance is estimated with 9 expert annotators, who answered 145 questions. Test results are are reported using a single run (one random seed).
|
| 152 |
+
|
| 153 |
+
We show results in Table 4.2 ImplicitDecomp achieves significantly higher performance $( 5 5 . 9 \mathrm { F _ { 1 , } } )$ compared to the other baselines, but lower than human performance $( 9 1 . 2 \mathrm { F _ { 1 } }$ with provided context, and $8 4 . 8 \mathrm { F _ { 1 } }$ in the open-domain setting over all of Wikipedia), suggesting ample room for improvement. On the Multi Modality subset, ImplicitDecomp
|
| 154 |
+
|
| 155 |
+
Table 4: Test set results
|
| 156 |
+
|
| 157 |
+
<table><tr><td></td><td>Single Modality</td><td colspan="2">Mutli Modality</td><td colspan="2">All</td></tr><tr><td></td><td>EM</td><td>F1 EM</td><td>F1</td><td>EM</td><td>F1</td></tr><tr><td>Question-only2 Context-only</td><td>14.2 8.0</td><td>17.0 10.2</td><td>16.9 19.5 6.6 8.5</td><td>15.3 7.4</td><td>18.0 9.5</td></tr><tr><td>AutoRouting ImplicitDecomp</td><td>48.9 51.1</td><td>57.1 58.8</td><td>32.0 38.2 46.5 51.7</td><td>42.1 49.3</td><td>49.5 55.9</td></tr><tr><td>Human</td><td>87.9</td><td>92.5</td><td>84.8 90.1</td><td>86.2</td><td>91.2</td></tr></table>
|
| 158 |
+
|
| 159 |
+
substantially improves performance compared to AutoRouting $\mathrm { 3 8 . 2 } \mathrm { 5 1 . 7 } $ , emphasizing the superiority of our approach on multi-hop questions, while on single-hop questions this gap is smaller.
|
| 160 |
+
|
| 161 |
+
Since automatic evaluation of performance is non-trivial in our setup, we also manually evaluate human performance. In $9 4 . 5 \%$ of the cases, answers are either identical or semantically equivalent to the gold answer, $0 . 7 \%$ have an error in the question, and $4 . 8 \%$ are human errors. Human errors are owing to the length of the context, resulting in human fatigue (which models do not suffer from).
|
| 162 |
+
|
| 163 |
+
Analysis To demonstrate that ImplicitDecomp indeed performs multi-hop reasoning, successfully answering intermediate questions, we analyze ImplicitDecomp predictions for multimodal questions generated using the Compose, Compare and Intersect operations (Table 5). For these questions, we find that when the 1st-hop answer is correct, the model achieves an $\mathrm { F _ { 1 } }$ of 63.9, whereas when the 1st-hop prediction is incorrect, the $\mathrm { F _ { 1 } }$ drops to 37.4. This suggests that the model relies on the 1st-hop answer, effectively performing multi-hop reasoning. Last, our question type classifier obtains a high accuracy of $9 1 . 5 \%$ on the test set.
|
| 164 |
+
|
| 165 |
+
Table 5: Examples where ImplicitDecomp correctly answers both the intermediate and the entire question, and a breakdown of the 1st-hop $\mathrm { F _ { 1 } }$ and final $\mathrm { F _ { 1 } }$ for the three logical operations: Compose, Compare, and Intersect.
|
| 166 |
+
|
| 167 |
+
<table><tr><td rowspan=1 colspan=1>Type</td><td rowspan=1 colspan=1>Question</td><td rowspan=1 colspan=1>1st-hop prediction</td><td rowspan=1 colspan=1>Final prediction</td><td rowspan=1 colspan=1>1st-hop F1</td><td rowspan=1 colspan=1>F1</td></tr><tr><td rowspan=1 colspan=1>Compose</td><td rowspan=1 colspan=1>WhatpartdidKymKarathplayintheTVshowwhose poster featuresa dog?</td><td rowspan=1 colspan=1>Lassie</td><td rowspan=1 colspan=1>Kathy Vaughn</td><td rowspan=1 colspan=1>62.3</td><td rowspan=1 colspan=1>50.8</td></tr><tr><td rowspan=1 colspan=1>Compare</td><td rowspan=1 colspan=1>Whichvideo gamewasWes Johnson involved in earlier:Fallout4 or the gamewhose cover shows agun-wielding man?</td><td rowspan=1 colspan=1>Hammer&Sickle</td><td rowspan=1 colspan=1>Hammer&Sickle</td><td rowspan=1 colspan=1>55.7</td><td rowspan=1 colspan=1>61.1</td></tr><tr><td rowspan=1 colspan=1>Intersect</td><td rowspan=1 colspan=1>Whichalbum,released inDecemberof201l,hasamanwearingsunglasses on its cover, and was released under the RCA label?</td><td rowspan=1 colspan=1>TY.O,Back to Love</td><td rowspan=1 colspan=1>Back to Love</td><td rowspan=1 colspan=1>33.5</td><td rowspan=1 colspan=1>55.1</td></tr></table>
|
| 168 |
+
|
| 169 |
+
To test whether the compositional questions created are indeed multi-hop, we conducted a qualitative analysis over 50 questions as suggested by (Min et al., 2019b). We find that $6 \%$ are of the Weak Distractors category, that is, questions such as βWhat year... β when there is only one year appearing in the context, making the question easy. $2 \%$ have Redundant evidence, that is, questions such as βWhich Donald Trump TV show has ...β where there is only one TV show starring Donald Trump, making the rest of the question redundant. The remaining $92 \%$ indeed require multi-hop reasoning.
|
| 170 |
+
|
| 171 |
+
# 6 RELATED WORK
|
| 172 |
+
|
| 173 |
+
Visual question answeringβi.e., the task of answering questions about imagesβhas been widely explored in previous work (Antol et al., 2015; Zhang et al., 2016; Goyal et al., 2017; Johnson et al., 2017; Hudson & Manning, 2019; Zellers et al., 2019; Singh et al., 2019; Methani et al., 2020), ranging from synthetic images to scientific plots. Our work differs significantly from those, by including more complex, multi-hop questions that require reasoning over text, tables and images. Currently, the most successful paradigm in VQA is fine-tuning models pre-trained on large amounts of image captioning data (Tan & Bansal, 2019; Lu et al., 2019; 2020; Su et al., 2020; Chen et al., 2020c; Li et al., 2020), an approach we follow for answering image-related questions.
|
| 174 |
+
|
| 175 |
+
MANYMODALQA (Hannan et al., 2020) move beyond directing the question to an image-only context, to choosing between an image, a text, and a table. Their work focuses on routing the question to the correct context modality. Our question-type classifier, based on RoBERTa-large reaches an accuracy of $9 1 . 4 \%$ on our 16 possible question types, showing that the main challenge in MMQA is reasoning over the context rather than identifying the question type.
|
| 176 |
+
|
| 177 |
+
HYBRIDQA (Chen et al., 2020b) presents a cross-modality reasoning challenge over tabular and textual data. A fundamental difference is that our setup offers cross-modality reasoning over images as well. In addition, our approach is cheaper to annotate since it requires only paraphrasing, and the question type distribution is more controllable (we offer 16 major question types vs. 6 in HYBRIDQA). Moreover, our text passages are chosen using the question, answer and table, while in HYBRIDQA only WikiEntities from the table are used to find text passages.
|
| 178 |
+
|
| 179 |
+
The model proposed in HYBRIDQA introduces a heuristic for linking the text passage to the table cells, which may lead to performance degradation. Conversely, our model uses (automaticallyannotated) intermediate multi-hop answers, to perform reasoning and linking implicitly over the full table and text, which should lead to more robust reasoning, in particular when reasoning over multiple table cells, as well as for narrative tracking and co-reference over the full text. In parallel to this work, a new open-domain variant of HYBRIDQA has been released by Chen et al. (2020a).
|
| 180 |
+
|
| 181 |
+
# 7 CONCLUSION
|
| 182 |
+
|
| 183 |
+
We present MMQA, a new QA dataset that contains 29,918 examples, $3 5 . 7 \%$ of which require crossmodality reasoning. We describe a novel framework for generating complex multimodal questions at scale, and showcase the diversity and multimodal properties of the resulting dataset. We evaluate MMQA using a variety of models, and confirm that the best model exploits the multimodality of the dataset and takes into account multi-hop reasoning via implicit decomposition. However, human performance substantially exceeds the best model, establishing the need for further research involving multiple modalities in question answering systems, which we hope that our work will drive.
|
| 184 |
+
|
| 185 |
+
# 8 ACKNOWLEDGMENTS
|
| 186 |
+
|
| 187 |
+
We thank our colleagues at The Allen Institute of AI, James Ferguson and Amir Globerson. This research was partially supported by The Blavatnik Computer Science Research Fund and The Yandex Initiative for Machine Learning, and the European Unionβs Seventh Framework Programme (FP7) under grant agreement no. 802800-DELPHI. Special thanks to Carrot Search which allowed use to use their FoamTree visualization.
|
| 188 |
+
|
| 189 |
+
# REFERENCES
|
| 190 |
+
|
| 191 |
+
Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C. Lawrence Zitnick, and Devi Parikh. VQA: Visual Question Answering. In International Conference on Computer Vision (ICCV), 2015.
|
| 192 |
+
|
| 193 |
+
Akari Asai, Kazuma Hashimoto, Hannaneh Hajishirzi, Richard Socher, and Caiming Xiong. Learning to retrieve reasoning paths over wikipedia graph for question answering. ArXiv, abs/1911.10470, 2020.
|
| 194 |
+
|
| 195 |
+
Wenhu Chen, Hongmin Wang, Jianshu Chen, Yunkai Zhang, Hong Wang, Shiyang Li, Xiyou Zhou, and William Yang Wang. Tabfact: A large-scale dataset for table-based fact verification. arXiv preprint arXiv:1909.02164, 2019.
|
| 196 |
+
|
| 197 |
+
Wenhu Chen, Ming-Wei Chang, Eva Schlinger, William Wang, and William W Cohen. Open question answering over tables and text. arXiv preprint arXiv:2010.10439, 2020a.
|
| 198 |
+
|
| 199 |
+
Wenhu Chen, Hanwen Zha, Zhiyu Chen, Wenhan Xiong, Hong Wang, and William Wang. Hybridqa: A dataset of multi-hop question answering over tabular and textual data, 2020b.
|
| 200 |
+
|
| 201 |
+
Yen-Chun Chen, Linjie Li, Licheng Yu, Ahmed El Kholy, Faisal Ahmed, Zhe Gan, Yu Cheng, and Jingjing Liu. Uniter: Learning universal image-text representations. In Proceedings of the 2020 European Conference on Computer Vision, 2020c. URL https://www.ecva.net/papers/ eccv_2020/papers_ECCV/papers/123750103.pdf.
|
| 202 |
+
|
| 203 |
+
Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. Boolq: Exploring the surprising difficulty of natural yes/no questions. arXiv preprint arXiv:1905.10044, 2019.
|
| 204 |
+
|
| 205 |
+
J. Devlin, M. Chang, K. Lee, and K. Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In North American Association for Computational Linguistics (NAACL), 2019.
|
| 206 |
+
|
| 207 |
+
D. Dua, Y. Wang, P. Dasigi, G. Stanovsky, S. Singh, and M. Gardner. Drop: A reading comprehension benchmark requiring discrete reasoning over paragraphs. In North American Association for Computational Linguistics (NAACL), 2019.
|
| 208 |
+
|
| 209 |
+
Mor Geva, Yoav Goldberg, and Jonathan Berant. Are we modeling the task or the annotator? an investigation of annotator bias in natural language understanding datasets. arXiv preprint arXiv:1908.07898, 2019.
|
| 210 |
+
|
| 211 |
+
Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Making the V in VQA matter: Elevating the role of image understanding in Visual Question Answering. In Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
|
| 212 |
+
|
| 213 |
+
Darryl Hannan, Akshay Jain, and Mohit Bansal. Manymodalqa: Modality disambiguation and qa over diverse inputs, 2020.
|
| 214 |
+
|
| 215 |
+
Jonathan Herzig, P. Nowak, Thomas MΓΌller, Francesco Piccinno, and Julian Martin Eisenschlos. Tapas: Weakly supervised table parsing via pre-training. In ACL, 2020.
|
| 216 |
+
|
| 217 |
+
Drew A Hudson and Christopher D Manning. Gqa: A new dataset for real-world visual reasoning and compositional question answering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6700β6709, 2019.
|
| 218 |
+
|
| 219 |
+
J. Johnson, B. Hariharan, L. van der Maaten, L. Fei-Fei, C. L. Zitnick, and R. Girshick. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Computer Vision and Pattern Recognition (CVPR), 2017.
|
| 220 |
+
|
| 221 |
+
Vladimir Karpukhin, Barlas Oguz, Sewon Min, Ledell Wu, Sergey Edunov, Danqi Chen, and Λ Wen-tau Yih. Dense passage retrieval for open-domain question answering. arXiv preprint arXiv:2004.04906, 2020.
|
| 222 |
+
|
| 223 |
+
Divyansh Kaushik and Zachary C Lipton. How much reading does reading comprehension require? a critical investigation of popular benchmarks. In EMNLP, 2018.
|
| 224 |
+
|
| 225 |
+
Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. International journal of computer vision, 123(1):32β73, 2017.
|
| 226 |
+
|
| 227 |
+
Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:453β466, 2019.
|
| 228 |
+
|
| 229 |
+
Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, and Luke Zettlemoyer. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension, 2019.
|
| 230 |
+
|
| 231 |
+
Xiujun Li, Xi Yin, Chunyuan Li, Pengchuan Zhang, Xiaowei Hu, Lei Zhang, Lijuan Wang, Houdong Hu, Li Dong, Furu Wei, et al. Oscar: Object-semantics aligned pre-training for vision-language tasks. In European Conference on Computer Vision, pp. 121β137. Springer, 2020.
|
| 232 |
+
|
| 233 |
+
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
|
| 234 |
+
|
| 235 |
+
Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In Advances in Neural Information Processing Systems, pp. 13β23, 2019.
|
| 236 |
+
|
| 237 |
+
Jiasen Lu, Vedanuj Goswami, Marcus Rohrbach, Devi Parikh, and Stefan Lee. 12-in-1: Multi-task vision and language representation learning. In The IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020.
|
| 238 |
+
|
| 239 |
+
Nitesh Methani, Pritha Ganguly, Mitesh M Khapra, and Pratyush Kumar. Plotqa: Reasoning over scientific plots. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 1527β1536, 2020.
|
| 240 |
+
|
| 241 |
+
Sewon Min, Eric Wallace, Sameer Singh, Matt Gardner, Hannaneh Hajishirzi, and Luke Zettlemoyer. Compositional questions do not necessitate multi-hop reasoning. In ACL, 2019a.
|
| 242 |
+
|
| 243 |
+
Sewon Min, Eric Wallace, Sameer Singh, Matt Gardner, Hannaneh Hajishirzi, and Luke Zettlemoyer. Compositional questions do not necessitate multi-hop reasoning. arXiv preprint arXiv:1906.02900, 2019b.
|
| 244 |
+
|
| 245 |
+
P. Pasupat and P. Liang. Compositional semantic parsing on semi-structured tables. In Association for Computational Linguistics (ACL), 2015.
|
| 246 |
+
|
| 247 |
+
P. Rajpurkar. SQuAD. https://rajpurkar.github.io/SQuAD-explorer/, 2016.
|
| 248 |
+
|
| 249 |
+
Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pp. 91β99, 2015.
|
| 250 |
+
|
| 251 |
+
Amanpreet Singh, Vivek Natarajan, Meet Shah, Yu Jiang, Xinlei Chen, Dhruv Batra, Devi Parikh, and Marcus Rohrbach. Towards vqa models that can read. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8317β8326, 2019.
|
| 252 |
+
|
| 253 |
+
Weijie Su, Xizhou Zhu, Yue Cao, Bin Li, Lewei Lu, Furu Wei, and Jifeng Dai. Vl-bert: Pre-training of generic visual-linguistic representations. In Proceedings of the 2020 International Conference on Learning Representations, 2020. URL https://arxiv.org/abs/1908.08530.
|
| 254 |
+
|
| 255 |
+
A. Talmor and J. Berant. The web as knowledge-base for answering complex questions. In North American Association for Computational Linguistics (NAACL), 2018.
|
| 256 |
+
|
| 257 |
+
Hao Tan and Mohit Bansal. LXMERT: Learning cross-modality encoder representations from transformers. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLPIJCNLP), pp. 5100β5111, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1514. URL https://www.aclweb.org/anthology/ D19-1514.
|
| 258 |
+
|
| 259 |
+
J. Welbl, P. Stenetorp, and S. Riedel. Constructing datasets for multi-hop reading comprehension across documents. arXiv preprint arXiv:1710.06481, 2017.
|
| 260 |
+
|
| 261 |
+
Z. Yang, P. Qi, S. Zhang, Y. Bengio, W. W. Cohen, R. Salakhutdinov, and C. D. Manning. HotpotQA: A dataset for diverse, explainable multi-hop question answering. In Empirical Methods in Natural Language Processing (EMNLP), 2018.
|
| 262 |
+
|
| 263 |
+
Rowan Zellers, Yonatan Bisk, Ali Farhadi, and Yejin Choi. From recognition to cognition: Visual commonsense reasoning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6720β6731, 2019.
|
| 264 |
+
|
| 265 |
+
Peng Zhang, Yash Goyal, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Yin and Yang: Balancing and answering binary visual questions. In Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
|
| 266 |
+
|
| 267 |
+
# A APPENDIX
|
| 268 |
+
|
| 269 |
+
Please see separate file for supplementary material.
|
parse/train/ee6W5UgQLa/ee6W5UgQLa_content_list.json
ADDED
|
@@ -0,0 +1,1490 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "MULTIMODALQA: COMPLEX QUESTION ANSWERING OVER TEXT, TABLES AND IMAGES ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
99,
|
| 9 |
+
825,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Alon Talmorβ,1,2 Ori Yoranβ,1,2 Amnon Catavβ,2 Dan Lahavβ,2 Yizhong Wang3 \nAkari Asai3 Gabriel Ilharco3 Hannaneh Hajishirzi2,3 Jonathan Berant1,2 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
186,
|
| 19 |
+
171,
|
| 20 |
+
787,
|
| 21 |
+
202
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1The Allen Institute for AI, 2Tel-Aviv University, 3University of Washington {alont,oriy,jonathan}@allenai.org \n{amnoncatav,lahav}@mail.tau.ac.il \n{yizhongw,akari,gamaga,hannaneh}@cs.washington.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
202,
|
| 31 |
+
694,
|
| 32 |
+
257
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
294,
|
| 43 |
+
544,
|
| 44 |
+
309
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "When answering complex questions, people can seamlessly combine information from visual, textual and tabular sources. While interest in models that reason over multiple pieces of evidence has surged in recent years, there has been relatively little work on question answering models that reason across multiple modalities. In this paper, we present MULTIMODALQA (MMQA): a challenging question answering dataset that requires joint reasoning over text, tables and images. We create MMQA using a new framework for generating complex multi-modal questions at scale, harvesting tables from Wikipedia, and attaching images and text paragraphs using entities that appear in each table. We then define a formal language that allows us to take questions that can be answered from a single modality, and combine them to generate cross-modal questions. Last, crowdsourcing workers take these automatically generated questions and rephrase them into more fluent language. We create 29,918 questions through this procedure, and empirically demonstrate the necessity of a multi-modal multi-hop approach to solve our task: our multi-hop model, ImplicitDecomp, achieves an average $\\mathrm { F _ { 1 } }$ of 51.7 over cross-modal questions, substantially outperforming a strong baseline that achieves $3 8 . 2 \\mathrm { F _ { 1 } }$ , but still lags significantly behind human performance, which is at $9 0 . 1 \\mathrm { F _ { 1 } }$ . ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
330,
|
| 54 |
+
766,
|
| 55 |
+
565
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
599,
|
| 66 |
+
334,
|
| 67 |
+
616
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "When presented with complex questions, people often do not know in advance what source(s) of information are relevant for answering it. In general scenarios, these sources can encompass multiple modalities, be it paragraphs of text, structured tables, images or combinations of those. For instance, a user might ponder βWhen was the famous painting with two touching fingers completed?β, if she cannot remember the exact name of the painting. Answering this question is made possible by integrating information across both the textual and visual modalities. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
635,
|
| 77 |
+
825,
|
| 78 |
+
718
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Recently, there has been substantial interest in question answering (QA) models that reason over multiple pieces of evidence (multi-hop questions (Yang et al., 2018; Talmor & Berant, 2018; Welbl et al., 2017)). In most prior work, the question is phrased in natural language and the answer is in a context, which may be a paragraph (Rajpurkar, 2016), a table (Pasupat & Liang, 2015), or an image (Antol et al., 2015). However, there has been relatively little work on answering questions that require integrating information across modalities. Hannan et al. (2020) created MANYMODALQA: a dataset where the context for each question includes information from multiple modalities. However, the answer to each question can be derived from a single modality only, and no cross-modality reasoning is needed. Thus, the task is focused on identifying the relevant modality. Recently, Chen et al. (2020b) presented HYBRIDQA, a dataset that requires reasoning over tabular and textual data. While HYBRIDQA requires cross-modal reasoning, it does not require visual inference, limiting the types of questions that can be represented (See Table 1 for a comparison between the datasets). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
726,
|
| 88 |
+
825,
|
| 89 |
+
891
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Multimodal Context ",
|
| 96 |
+
"text_level": 1,
|
| 97 |
+
"bbox": [
|
| 98 |
+
184,
|
| 99 |
+
106,
|
| 100 |
+
281,
|
| 101 |
+
114
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 1
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "image",
|
| 107 |
+
"img_path": "images/5c1613ac705899207e7e983dc4f8aad672769668f3aa396af2992ec3ecdfc5b5.jpg",
|
| 108 |
+
"image_caption": [
|
| 109 |
+
"Q: Which B.Piazza titlecame earlier: the movie S.Stalone'sson staredinor the movie with halfofalady'sface on the poster? A:Tell Me That You Love Me, Junie Moon ",
|
| 110 |
+
"Figure 1: Example of a MMQA question, answer and context. In green are the text modality question and answer, and in red the image modality. The table is used to perform the year comparison between the answers of the text and image question parts. "
|
| 111 |
+
],
|
| 112 |
+
"image_footnote": [],
|
| 113 |
+
"bbox": [
|
| 114 |
+
176,
|
| 115 |
+
108,
|
| 116 |
+
816,
|
| 117 |
+
285
|
| 118 |
+
],
|
| 119 |
+
"page_idx": 1
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"type": "text",
|
| 123 |
+
"text": "In this work, we present MMQA, the first large-scale (29,918 examples) QA dataset that requires integrating information across free text, semi-structured tables, and images, where $3 5 . 7 \\%$ of the questions require cross-modality reasoning. Figure 1 shows an example question: βWhich B.Piazza title came earlier: the movie S. Stallonβs son starred in, or the movie with half of a ladyβs face on the poster?β. Answering this question entails (i) decomposing the question into a sequence of simpler questions, (ii) determining the modalities for the simpler questions and answering them, i.e., information on the poster is in an image, the information on ${ } ^ { \\mathfrak { a } } S .$ Stallonβs sonβ is in free text, and the years of the movies are in the table, (iii) combining the information from the simpler questions to compute the answer: βTell Me that you love me, Junie Moonβ. ",
|
| 124 |
+
"bbox": [
|
| 125 |
+
173,
|
| 126 |
+
443,
|
| 127 |
+
825,
|
| 128 |
+
569
|
| 129 |
+
],
|
| 130 |
+
"page_idx": 1
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"type": "text",
|
| 134 |
+
"text": "Our methodology for creating MMQA involves three high-level steps. (a) Context construction: we harvest tables from Wikipedia, and connect each table to images and paragraphs that appear in existing Reading Comprehension (RC) datasets (Kwiatkowski et al., 2019; Clark et al., 2019; Yang et al., 2018); (b) Question generation: Following past work (Talmor & Berant, 2018), we use the linked structure of the context to automatically generate questions that require multiple reasoning operations (composition, conjunction, comparison) across modalities in pseudo-language ; (c) Paraphrasing: we use crowdsourcing workers to paraphrase the pseudo-language questions into more fluent English. ",
|
| 135 |
+
"bbox": [
|
| 136 |
+
173,
|
| 137 |
+
575,
|
| 138 |
+
825,
|
| 139 |
+
674
|
| 140 |
+
],
|
| 141 |
+
"page_idx": 1
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"type": "text",
|
| 145 |
+
"text": "To tackle MMQA, we introduce ImplicitDecomp, a new model that predicts a program that specifies the required reasoning steps over different modalities, and executes the program with dedicated text, table, and image models. ImplicitDecomp performs multi-hop multimodal reasoning without the need for an explicit decomposition of the question. ",
|
| 146 |
+
"bbox": [
|
| 147 |
+
174,
|
| 148 |
+
680,
|
| 149 |
+
485,
|
| 150 |
+
791
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "We empirically evaluate MMQA by comparing ImplicitDecomp to strong baselines that do not perform cross-modal reasoning and to human performance. We find that on multimodal questions, ImplicitDecomp improves $\\mathrm { F _ { 1 } }$ from ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
173,
|
| 159 |
+
799,
|
| 160 |
+
485,
|
| 161 |
+
868
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "table",
|
| 167 |
+
"img_path": "images/df7b843ae7a3dea4ad4080e4907f23c8c062f6e183b2baacae430a3f1e08dd47.jpg",
|
| 168 |
+
"table_caption": [
|
| 169 |
+
"Table 1: A comparison of MULTIMODALQA to MANYMODALQA and HYBRIDQA. We compare dataset size, use of images, and whether the dataset supports multihop questions and an open-domain full-wiki setup. "
|
| 170 |
+
],
|
| 171 |
+
"table_footnote": [],
|
| 172 |
+
"table_body": "<table><tr><td>Dataset</td><td>Size</td><td>Full- wiki</td><td>Uses images</td><td>Multi- hop</td></tr><tr><td>MANYMODALQA</td><td>10K</td><td>X</td><td>β</td><td>X</td></tr><tr><td>HYBRIDQA</td><td>70K</td><td>X</td><td>Γ</td><td>β</td></tr><tr><td>MULTIMODALQA</td><td>30K</td><td>β</td><td>β</td><td>β</td></tr></table>",
|
| 173 |
+
"bbox": [
|
| 174 |
+
500,
|
| 175 |
+
698,
|
| 176 |
+
823,
|
| 177 |
+
773
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 1
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"text": "$3 8 . 2 5 1 . 7 $ over a single-hop approach. Humans are able to reach $9 0 . 1 \\mathrm { F _ { 1 } }$ , significantly outperforming our best model. Because automatic evaluation is non-trivial, we also manually analyze human performance and find humans correctly answer $9 4 . 5 \\%$ of the questions in MMQA. Finally, our dataset can be used in an open-domain setup over all of Wikipedia. In this setup, the $\\mathrm { F _ { 1 } }$ of humans is 84.8. ",
|
| 184 |
+
"bbox": [
|
| 185 |
+
174,
|
| 186 |
+
868,
|
| 187 |
+
825,
|
| 188 |
+
924
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 1
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"text": "To summarize, our key contributions are: ",
|
| 195 |
+
"bbox": [
|
| 196 |
+
176,
|
| 197 |
+
103,
|
| 198 |
+
442,
|
| 199 |
+
118
|
| 200 |
+
],
|
| 201 |
+
"page_idx": 2
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "text",
|
| 205 |
+
"text": "β’ MMQA: a dataset with 29,918 questions and answers, $3 5 . 7 \\%$ of which require cross-modal reasoning. β’ A methodology for generating multimodal questions over text, tables and images at scale. β’ ImplicitDecomp, A model for implicitly decomposing multimodal questions, which improves on a single-hop model by 13.5 absolute $\\mathrm { F _ { 1 } }$ points on questions requiring cross-modal reasoning. β’ Our dataset and code are available at https://allenai.github.io/multimodalqa. ",
|
| 206 |
+
"bbox": [
|
| 207 |
+
178,
|
| 208 |
+
125,
|
| 209 |
+
826,
|
| 210 |
+
209
|
| 211 |
+
],
|
| 212 |
+
"page_idx": 2
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"text": "2 DATASET GENERATION ",
|
| 217 |
+
"text_level": 1,
|
| 218 |
+
"bbox": [
|
| 219 |
+
176,
|
| 220 |
+
236,
|
| 221 |
+
400,
|
| 222 |
+
252
|
| 223 |
+
],
|
| 224 |
+
"page_idx": 2
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"type": "text",
|
| 228 |
+
"text": "Our goal is to develop a method that allows generating complex questions over multiple modalities at scale. An overview of the methodology is captured in Figure 2. We first select a Wikipedia table as an anchor, to which we add images and texts paragraphs and obtain a context. Single modality questions are generated based on these contexts, and used to automatically create multimodal, multihop questions. AMT workers rephrase the questions into natural language, and finally distractor paragraphs and images are selected for each question. We now elaborate on the 6 steps of the process. ",
|
| 229 |
+
"bbox": [
|
| 230 |
+
173,
|
| 231 |
+
271,
|
| 232 |
+
826,
|
| 233 |
+
356
|
| 234 |
+
],
|
| 235 |
+
"page_idx": 2
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"type": "image",
|
| 239 |
+
"img_path": "images/c677a9a1b1216fe181547eefdaed522f58fff6f5ef071ef7e788cd277e95cbb4.jpg",
|
| 240 |
+
"image_caption": [
|
| 241 |
+
"Figure 2: An overview of MMQA dataset generation process. "
|
| 242 |
+
],
|
| 243 |
+
"image_footnote": [],
|
| 244 |
+
"bbox": [
|
| 245 |
+
173,
|
| 246 |
+
372,
|
| 247 |
+
825,
|
| 248 |
+
449
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "2.1 Wikipedia tables as anchors The 01-01-2020 English Wikipedia dump contains roughly $3 M$ tables. We extracted all tables and selected those that meet the following criteria: (a) The tables contain 10-25 rows (b) At least 3 images are associated with the table. This results in a total of $7 0 0 \\mathrm { k }$ tables. (see supp. material for more information). These tables are the anchors of our contexts, which we enrich with images and text for multimodal question generation. A key element of the tables are Wikipedia Entities (WikiEntities) that appear in them, i.e., concepts linked to other Wikipedia entries. We use them to connect different modalities, bridge questions, and solve ambiguities (details below). ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
173,
|
| 257 |
+
491,
|
| 258 |
+
825,
|
| 259 |
+
589
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "2.2 Connecting Images and Text to Tables Images. We consider two cases: (a) in-table images and (b) images from pages of linked WikiEntities. In the former, the images are featured inside the table cells. In the latter, the table contains a column of WikiEntities that potentially have images, e.g. a table describing the filmography of an actor often contains a column of film names, which may have posters in their respective pages. To associate entities with their representative image, we map entities and their profile images in their Wikipedia pages. Overall, we obtain 57,713 images, with 889 in-table images and 56,824 WikiEntities images. Text. We build on texts from contexts appearing in existing reading comprehension datasets. We elaborate on this process next. ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
173,
|
| 268 |
+
595,
|
| 269 |
+
825,
|
| 270 |
+
707
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "2.3 Generating Single-Modality Questions Tables. We generate pseudo-language table questions in the following form βIn [table title] of [Wikipedia page title] which cells in [column X] have the [value Y] in [column Z]?β. We additionally support numeric computations over columns classified as dates or numbers, such as min and max values, e.g., βIn [Doubles] of [WCT Tournament of Champions], what was the MOST RECENT [Year](s) where the [Location] was [Forest Hills]β. ",
|
| 277 |
+
"bbox": [
|
| 278 |
+
173,
|
| 279 |
+
713,
|
| 280 |
+
825,
|
| 281 |
+
785
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 2
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "text",
|
| 287 |
+
"text": "Images. We use crowdsourcing to generate single-modality questions about images. We generated two types of image questions, based on the images we retrieved from the previous step: (i) questions over a single image, (ii) questions over a list of images. ",
|
| 288 |
+
"bbox": [
|
| 289 |
+
176,
|
| 290 |
+
791,
|
| 291 |
+
823,
|
| 292 |
+
833
|
| 293 |
+
],
|
| 294 |
+
"page_idx": 2
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"type": "text",
|
| 298 |
+
"text": "When generating single-image questions, we show Amazon Mechanical Turk (AMT) crowd workers an image alongside its WikiEntity, and ask them to phrase a question about the image with the entity being the focus of the question. E.g, if the entity is βRoger Federerβ, a potential question is βWhatβs the hair color of Roger Federer?β. For questions to have meaning in an open-domain setting, we primed AMT workers to ask questions that correspond to βstableβ features, i.e., features that are unlikely to change in different images and are thus appropriate in an open-domain setting. ",
|
| 299 |
+
"bbox": [
|
| 300 |
+
173,
|
| 301 |
+
840,
|
| 302 |
+
825,
|
| 303 |
+
924
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 2
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "table",
|
| 309 |
+
"img_path": "images/ea5fba34f94002c7fd1884833c9554b85899f9c26392b4264b740ee060194688.jpg",
|
| 310 |
+
"table_caption": [
|
| 311 |
+
"Table 2: All 16 compositional templates in MMQA with an example and their relative frequency. "
|
| 312 |
+
],
|
| 313 |
+
"table_footnote": [],
|
| 314 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Type</td><td rowspan=1 colspan=1>Q&A</td><td rowspan=1 colspan=1>%</td></tr><tr><td rowspan=1 colspan=1>TextQ</td><td rowspan=1 colspan=1>What wasthe territorial capitalof the territory opposingOhioin theToledoWar?Detroit</td><td rowspan=1 colspan=1>31.0</td></tr><tr><td rowspan=1 colspan=1>TableQ</td><td rowspan=1 colspan=1>DoestheGerman state Baden-Wurttemberg orThuringia have moreresidents?Baden-Wurttemberg</td><td rowspan=1 colspan=1>18.3</td></tr><tr><td rowspan=1 colspan=1>ImageQ</td><td rowspan=1 colspan=1>WhatweaponisthestatueinNottinghamholding?bow</td><td rowspan=1 colspan=1>8.9</td></tr><tr><td rowspan=1 colspan=1>Compose(TextQ,TableQ)</td><td rowspan=1 colspan=1>Atwhatagedid theCleveland Cavaliersplayer with 6190rebounds enter the NBA?19</td><td rowspan=1 colspan=1>7.8</td></tr><tr><td rowspan=1 colspan=1>ImageListQ</td><td rowspan=1 colspan=1>Whatisthecommon nameof thebushwarblerinThailand that hasanorange stripe above itseye?Chestnut-crowned bush warbler</td><td rowspan=1 colspan=1>6.1</td></tr><tr><td rowspan=1 colspan=1>Compose(TableQ,ImageListQ)</td><td rowspan=1 colspan=1>Thefilm that starredChrisEllisonwhereamanwasholding anewspaper on the poster, was released what year?1988</td><td rowspan=1 colspan=1>5.4</td></tr><tr><td rowspan=1 colspan=1>Compose(ImageQ,TableQ)</td><td rowspan=1 colspan=1>OntheposterfortheTVshowinwhich TomMisonplayedDorianCrane,what kind of structure can be seen behind the two men? castle</td><td rowspan=1 colspan=1>4.5</td></tr><tr><td rowspan=1 colspan=1>Compare(Compose(TableQ,ImageQ),TableQ)</td><td rowspan=1 colspan=1>Which manufacturerhas fewerwinsattheFirst Data 5Oo:Buick or thebrand with across for a logo?Buick</td><td rowspan=1 colspan=1>3.5</td></tr><tr><td rowspan=1 colspan=1>Compose(TableQ,TextQ)</td><td rowspan=1 colspan=1>Onwhat date did the original artistwho sangSweetChildof Mine haveaconcert atUSBank Stadium?July 30,2017</td><td rowspan=1 colspan=1>3.2</td></tr><tr><td rowspan=1 colspan=1>Intersect(TableQ,TextQ)</td><td rowspan=1 colspan=1>Who was the artistfor DamonFox in20o6who also sings "You gotthemoves like Jagger"?Christina Aguilera</td><td rowspan=1 colspan=1>2.6</td></tr><tr><td rowspan=1 colspan=1>Compose(TextQ,ImageListQ)</td><td rowspan=1 colspan=1>Ontheposterfor themoviebasedonthebook "ActlikeaLady,ThinkLikea Man,"how many people are there in total? nine</td><td rowspan=1 colspan=1>2.4</td></tr><tr><td rowspan=1 colspan=1>Intersect(ImageListQ,TableQ)</td><td rowspan=1 colspan=1>WhatcoversoftheChandlerCanterburyfilmsfrom2oo9hasmorethanoneperson?PowderBlueBallsOut,Gary theTennisCoach,After.Life</td><td rowspan=1 colspan=1>2.3</td></tr><tr><td rowspan=1 colspan=1>Compare(TableQ,Compose(TableQ,TextQ))</td><td rowspan=1 colspan=1>DidChelseaorclubthat singsYou'llNeverWalkAlonerank higherinDeloitteFootball MoneyLeague20o7?Chelsea</td><td rowspan=1 colspan=1>2.1</td></tr><tr><td rowspan=1 colspan=1>Compose(ImageQ,TextQ)</td><td rowspan=1 colspan=1>DidGary Oldmantakepart inthemoviewhoseposterfeaturestwomenholding handguns,and which had MarkL.Smith as a writer? no</td><td rowspan=1 colspan=1>1.0</td></tr><tr><td rowspan=1 colspan=1>Compare(Compose(TableQ,ImageQ),Compose(TableQ,TextQ))</td><td rowspan=1 colspan=1>Wasthefilmthat featuresa gianteyeonitsposter or the firstWolverinemovie theearlierfilm thatScott Silverworkedon? Requiem fora Dream</td><td rowspan=1 colspan=1>0.8</td></tr><tr><td rowspan=1 colspan=1>Intersect(ImageListQ,TextQ)</td><td rowspan=1 colspan=1>Whatcommonlaw statewith aneagleontheflag hasan institutionin the North region of DivisionIIof theNCCAA?Iowa</td><td rowspan=1 colspan=1>0.2</td></tr></table>",
|
| 315 |
+
"bbox": [
|
| 316 |
+
174,
|
| 317 |
+
101,
|
| 318 |
+
825,
|
| 319 |
+
436
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 3
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "For questions with a list of images, we use images that appear in the same column of a table. To generate these questions, AMT workers were given the images and asked to phrase a binary question about a distinctive feature of the entities that a subset of the images share. E.g., given a list of statues, the worker could ask βWhich of the statues features a horse?β This process results in 2,764 single image questions and 7,773 list image questions that are later used to create multimodal questions. ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
174,
|
| 328 |
+
492,
|
| 329 |
+
825,
|
| 330 |
+
561
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "Text. To obtain questions answerable over text paragraphs we build on existing reading comprehension datasets: Natural Questions (NQ) (Kwiatkowski et al., 2019) consists of about $3 0 0 K$ questions issued to the Google search engine. This dataset mostly contains simple questions where a single paragraph suffices to answer each question. BoolQ (Clark et al., 2019) contains 15, 942 yes/no questions, gathered using the same pipeline as NQ. HotpotQA (Yang et al., 2018) contains $1 1 2 K$ training questions, where crowd workers were shown pairs of related Wikipedia paragraphs and were asked to author questions that require multi-hop reasoning over the paragraphs. ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
174,
|
| 339 |
+
568,
|
| 340 |
+
825,
|
| 341 |
+
666
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "To use questions from the above datasets as building blocks for multi-hop multimodal questions, we unified them into a corpus that consists of triples of (i) a text question, (ii) an answer and (iii) 1-2 gold paragraphs from Wikipedia. We link a question to a table, by matching WikiEntities in the table to entities in the text of the question (see supplementary material for further details). Overall, we retrieved 6,644 questions from NQ, 1,246 from BoolQ and 4,733 from HotpotQA. ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
174,
|
| 350 |
+
672,
|
| 351 |
+
825,
|
| 352 |
+
742
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 3
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "2.4 Generating multimodal complex questions We present an automatic method for creating at scale multimodal compositional questions (i,e., questions that require answering a sequence of subquestions to conclude the final answer). Our first step is to introduce a formal language that allows to combine questions answerable from a single modality. Below we introduce the logical operations that allow to generate such pseudo-language (PL) questions, while keeping a formal representation of how they were constructed. In Table 2, we illustrate this process with all 16 different compositional templates used for question generation. We now describe our logical operations. ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
173,
|
| 361 |
+
750,
|
| 362 |
+
825,
|
| 363 |
+
847
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 3
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "Logical Operations Functions in our formal language take arguments and return a PL partial question, as well as answers that can be a list of one or more strings, or a list of one or more WikiEntities. All operations have access to the full context. In addition, we prepend a prefix containing the Wikipedia table name and page titleβe.g. βIn the Filmography of Brad Pitt,ββto all our PL questions to support an open-domain QA setup. Our set of logical operations are: ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
174,
|
| 372 |
+
854,
|
| 373 |
+
825,
|
| 374 |
+
924
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "1. TABLEQ: Returns a question from the table questions generated in $\\ S 2 . 3$ , as well as a list of WikiEntities or a list of strings as answers. ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
171,
|
| 383 |
+
103,
|
| 384 |
+
825,
|
| 385 |
+
131
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 4
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "2. TEXTQ: Returns a text corpus question (see $\\ S 2 . 3$ ) and a list of WikiEntities or strings as answers. ",
|
| 392 |
+
"bbox": [
|
| 393 |
+
171,
|
| 394 |
+
132,
|
| 395 |
+
823,
|
| 396 |
+
146
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 4
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "3. IMAGEQ: Returns a question about a single image associated with a WikiEntity and a single token answer from a fixed vocabulary (see $\\ S 2 . 3 \\AA$ ). ",
|
| 403 |
+
"bbox": [
|
| 404 |
+
171,
|
| 405 |
+
145,
|
| 406 |
+
823,
|
| 407 |
+
172
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 4
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "4. IMAGELISTQ: Returns a question about a list of images and a list of WikiEntities corresponding to the images that answer the question (see $\\ S 2 . 3$ ). ",
|
| 414 |
+
"bbox": [
|
| 415 |
+
173,
|
| 416 |
+
174,
|
| 417 |
+
823,
|
| 418 |
+
200
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 4
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "5. COMPOSE $( \\cdot , \\cdot )$ : Takes a PL question containing a single WikiEntity as a first argument, and a PL question that produces that WikiEntity as the output answer as its second argument. E.g., COMPOSE(βWhere was Barack Obama born?β,βWho was the 44th president of the USA?β). The function replaces the WikiEntity in the first-argument PL question with the second-argument PL question and returns the resulting PL question (βWhere was the 44th president of the USA born?β). ",
|
| 425 |
+
"bbox": [
|
| 426 |
+
171,
|
| 427 |
+
202,
|
| 428 |
+
826,
|
| 429 |
+
270
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 4
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "6. INTERSECT $( \\cdot , \\cdot )$ : Takes two PL questions that return lists of more than one WikiEntity, and returns their intersection as the answer. The resulting $\\mathrm { P L }$ question is of the form ${ } ^ { \\cdot } P L _ { 1 }$ and $P L _ { 2 }$ β omitting $\\mathrm { P L _ { 2 } }$ βs first word (βWho was born in Hawaii and is the parent of Sasha Obama?β). ",
|
| 436 |
+
"bbox": [
|
| 437 |
+
173,
|
| 438 |
+
271,
|
| 439 |
+
823,
|
| 440 |
+
311
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 4
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "7. COMPARE $( \\cdot , \\cdot )$ : Takes two PL questions each returning one WikiEntity that can be linked to one cell in the table, denoted by $\\mathrm { { A n s } _ { 1 } }$ , $\\mathrm { { A n s } _ { 2 } }$ . We first choose a numeric or date column in the table, if such exists. We then compare the values of this column corresponding to the rows of $\\mathbf { A n s } _ { 1 }$ and Ans2. Depending on the comparison outcome, output one of $( \\mathrm { A n s _ { 1 } }$ , Ans2) as the operation answer. The PL question created is of the form βWhat has compare-op numeric-column-name, $P L _ { 1 }$ or $P L _ { 2 }$ ?β omitting $\\mathrm { P L _ { 1 } }$ and $\\mathrm { P L _ { 2 } }$ βs first word. E.g. βWhat has most recent creation year, the rocket of Appolo program, or the rocket of Gemini program?β ",
|
| 447 |
+
"bbox": [
|
| 448 |
+
173,
|
| 449 |
+
313,
|
| 450 |
+
826,
|
| 451 |
+
409
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 4
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "2.5 Paraphrasing using AMT We used English-speaking AMT workers to paraphrase automaticallygenerated PL questions into natural language (NL). Each question was paraphrased by 1 worker and validated by 1-3 other workers. To avoid annotator bias (Geva et al., 2019), the number of annotators who worked on both the training and evaluation set was kept to a minimum. We also deployed a feedback mechanism, where workers receive a bonus if a baseline model correctly answered the question after their first paraphrasing attempt, but incorrectly after they refined the paraphrase. See supp. material for print-screens of the AMT annotator interface. ",
|
| 458 |
+
"bbox": [
|
| 459 |
+
173,
|
| 460 |
+
415,
|
| 461 |
+
825,
|
| 462 |
+
513
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 4
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "To generate diversity, workers got a bonus if the normalized edit distance of a paraphrase compared to the PL question was higher than 0.7. A total of 971 workers were involved, and 29,918 examples were produced with an average cost of $0 . 3 3 \\ S$ per question. We split the dataset into 23,817 training, 2,441 development (dev.), and 3,660 test set examples. Context components in the dev. and test sets are disjoint, and were constructed from a disjoint set of single-modality questions. ",
|
| 469 |
+
"bbox": [
|
| 470 |
+
174,
|
| 471 |
+
520,
|
| 472 |
+
825,
|
| 473 |
+
590
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 4
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "A shortcoming of our method for automatically generating examples is that the question distribution does not come from a βnaturalβ source. We argue that developing models that are capable of performing reasoning over multiple modalities is an important direction and MMQA provides an opportunity to develop and evaluate such models. Moreover, this method allows to control the compositional questions created, proving effective in creating a cheap and scalable dataset. ",
|
| 480 |
+
"bbox": [
|
| 481 |
+
174,
|
| 482 |
+
597,
|
| 483 |
+
825,
|
| 484 |
+
666
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 4
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "2.6 Adding distractors to the context Images. Questions from the IMAGELISTQ operator require reasoning over a list of images from the same column, and hence do not require additional distractors. For IMAGEQ questions (single-image), we randomly add images that are associated with the WikiEntities that appear in the table, setting a maximum of 15 distractors per question. ",
|
| 491 |
+
"bbox": [
|
| 492 |
+
173,
|
| 493 |
+
674,
|
| 494 |
+
825,
|
| 495 |
+
729
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 4
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "Text. We used DPR (Karpukhin et al., 2020), a neural information retrieval model, to retrieve distractors for all questions. Each context includes exactly 10 paragraphs, where 1-2 are gold paragraphs and the rest are distractors. Specifically, we encode the first 2 paragraphs of each Wikipedia article with the DPR encoder, and use as distractors the paragraphs with the highest dot product between their encoding and the question encoding. We do not allow: (a) an overlap between the distractors in the training and evaluation sets, (b) distractors originating from the gold article, (c) distractors containing an exact match to the gold answer. ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
173,
|
| 504 |
+
736,
|
| 505 |
+
825,
|
| 506 |
+
834
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 4
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "To summarize, each of our examples contains a question, an answer, the formal representation of the PL question (ignored by our models), and all distractors and gold context for all modalities. This renders MMQA useful for both open-domain multimodal QA, as well as context-dependant QA. ",
|
| 513 |
+
"bbox": [
|
| 514 |
+
174,
|
| 515 |
+
840,
|
| 516 |
+
823,
|
| 517 |
+
883
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "image",
|
| 523 |
+
"img_path": "images/53d9aa241337ef2392714bb6dfb2adc55db8678aa5705c36b68b58c902fb16dd.jpg",
|
| 524 |
+
"image_caption": [
|
| 525 |
+
"Figure 3: Domain diversity in MMQA. The area of each color corresponds to the topic frequency in the dataset. "
|
| 526 |
+
],
|
| 527 |
+
"image_footnote": [],
|
| 528 |
+
"bbox": [
|
| 529 |
+
176,
|
| 530 |
+
103,
|
| 531 |
+
821,
|
| 532 |
+
422
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 5
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "3 DATASET ANALYSIS ",
|
| 539 |
+
"text_level": 1,
|
| 540 |
+
"bbox": [
|
| 541 |
+
176,
|
| 542 |
+
473,
|
| 543 |
+
372,
|
| 544 |
+
489
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 5
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "To highlight the diversity of MMQA we analyze its key statistics, domains, and lexical richness. ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
171,
|
| 553 |
+
507,
|
| 554 |
+
795,
|
| 555 |
+
522
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 5
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "Key Statistics MMQA contains 29, 918 questions, and their main statistics are in Table 3. Since we focus on multimodality, we upsample the number of multimodal questions in the dev. and test sets compared to the training set. Also, about $60 \\%$ of the questions in MMQA are compositional. Questions are relatively long (18.2 words), but answers tend to be short (2.1 words). The answer for each question can be a single answer or a list of answers. While list answers comprise only $7 . 4 \\%$ of the data, when considering compositional questions that contain an intermediate question within them, the proportion of list answers in intermediate questions is higher $( 1 8 . 9 \\% )$ ). ",
|
| 562 |
+
"bbox": [
|
| 563 |
+
174,
|
| 564 |
+
530,
|
| 565 |
+
549,
|
| 566 |
+
695
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 5
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "table",
|
| 572 |
+
"img_path": "images/3a5853eafd1c50bbd2052c8188e70b115b1c647dde2c0ccb502ec140830907c3.jpg",
|
| 573 |
+
"table_caption": [
|
| 574 |
+
"Table 3: Key statistics for MMQA. "
|
| 575 |
+
],
|
| 576 |
+
"table_footnote": [],
|
| 577 |
+
"table_body": "<table><tr><td>Measurement</td><td>Value</td></tr><tr><td># Distinct Questions</td><td>29,918</td></tr><tr><td>Train multimodal questions</td><td>34.6%</td></tr><tr><td>Dev.+test multimodal questions</td><td>40.1%</td></tr><tr><td>Train compositional questions</td><td>58.8%</td></tr><tr><td>Dev.+test compositional questions</td><td>62.3%</td></tr><tr><td>Average question length (words)</td><td>18.2</td></tr><tr><td>Average # of answers per question</td><td>1.16</td></tr><tr><td>List answers</td><td>7.4%</td></tr><tr><td>List answers per intermediate question</td><td>18.9%</td></tr><tr><td>Average answer length (words)</td><td>2.1</td></tr><tr><td># of distinct words in questions</td><td>49,649</td></tr><tr><td># of distinct words in answers</td><td>20,820</td></tr><tr><td># of distinct context tables</td><td>11,022</td></tr></table>",
|
| 578 |
+
"bbox": [
|
| 579 |
+
565,
|
| 580 |
+
534,
|
| 581 |
+
820,
|
| 582 |
+
693
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 5
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "text",
|
| 588 |
+
"text": "Domain Diversity Figure 3 shows a sample of questions from MMQA categorized to different domains. While entertainment categories occupy a large portion of our dataset (Films $36 \\%$ , TV $19 \\%$ ), we observe questions represent a wide variety of topics. ",
|
| 589 |
+
"bbox": [
|
| 590 |
+
173,
|
| 591 |
+
704,
|
| 592 |
+
549,
|
| 593 |
+
731
|
| 594 |
+
],
|
| 595 |
+
"page_idx": 5
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"type": "text",
|
| 599 |
+
"text": "",
|
| 600 |
+
"bbox": [
|
| 601 |
+
176,
|
| 602 |
+
731,
|
| 603 |
+
823,
|
| 604 |
+
758
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 5
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "text",
|
| 610 |
+
"text": "Lexical Richness Workers received a bonus when substantially modifying the PL questions. We observe that the average normalized edit distance between the NL questions and the PL questions is high (0.7), that NL questions are shorter (avg. length of 20.02 vs. 22.16 words for PL questions), and use a richer vocabulary (#unique words 39, 319 vs 37, 108). ",
|
| 611 |
+
"bbox": [
|
| 612 |
+
174,
|
| 613 |
+
766,
|
| 614 |
+
825,
|
| 615 |
+
821
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 5
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "4 MODELS ",
|
| 622 |
+
"text_level": 1,
|
| 623 |
+
"bbox": [
|
| 624 |
+
176,
|
| 625 |
+
847,
|
| 626 |
+
279,
|
| 627 |
+
863
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 5
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "text",
|
| 633 |
+
"text": "Here we present our baseline models. We first train models that interact with a single modality given a question (Β§4.1), and use those as building blocks in our multimodal approaches (Β§4.2). We denote the question by $Q$ , context paragraphs by $\\mathcal { P }$ , Table by $T$ and context images by $\\mathcal { T }$ . ",
|
| 634 |
+
"bbox": [
|
| 635 |
+
176,
|
| 636 |
+
882,
|
| 637 |
+
823,
|
| 638 |
+
924
|
| 639 |
+
],
|
| 640 |
+
"page_idx": 5
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"type": "text",
|
| 644 |
+
"text": "4.1 SINGLE-MODALITY QA MODULES",
|
| 645 |
+
"text_level": 1,
|
| 646 |
+
"bbox": [
|
| 647 |
+
176,
|
| 648 |
+
103,
|
| 649 |
+
457,
|
| 650 |
+
117
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 6
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "text",
|
| 656 |
+
"text": "Text QA Module Following prior work (Min et al., $2 0 1 9 \\mathrm { a }$ ; Asai et al., 2020), our text QA module takes as input a question $Q$ and a paragraph $p \\in \\mathcal P$ and answers $Q$ by selecting a span in each paragraph $p$ independently, predicting the start and end positions (Devlin et al., 2019). Additionally, the model returns four scores for for every paragraph $p$ corresponding to: if the answer is $( i )$ a span in $p$ ; $( i i )$ βyesβ; $( i i i )$ βnoβ; or $( i \\nu )$ not in $p$ . At inference time, the model selects the paragraph that has the lowest score for $i \\nu$ β the answer is not the paragraph. Our model is based on a pre-trained RoBERTa-large model (Liu et al., 2019), fine-tuned on MMQA. ",
|
| 657 |
+
"bbox": [
|
| 658 |
+
173,
|
| 659 |
+
131,
|
| 660 |
+
825,
|
| 661 |
+
228
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 6
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "text",
|
| 667 |
+
"text": "Table QA Module Following prior work (Herzig et al., 2020), our table QA module takes as input the question $Q$ and the table $T$ , and selects a subset of the table cells and an aggregation operation to compute the final answer. Specifically, we linearize the table $T$ by rows, with column names prepended to the corresponding cells (Chen et al., 2019). For example, this converts the table in Figure 1 to the following text: βRow 1: year is 1957; title is a dangerous age; role is David. Row 2...β. Next, we concatenate the question to the linearized table, and encode them using RoBERTa-large. We then pass the contextualized representation of every token in the table cell to a linear classifier that computes the probability of the token being selected. The score for a cell is the average of its tokens. Cells with probability $> 0 . 5$ are selected. Finally, another linear multi-class classifier predicts an aggregation operation from SUM, MEAN, COUNT, YES, NO, and NONE. Aggregation operations are applied on the selected cells, YES and NO operations output βyesβ or βnoβ, and the NONE operation outputs all selected cells. ",
|
| 668 |
+
"bbox": [
|
| 669 |
+
174,
|
| 670 |
+
236,
|
| 671 |
+
825,
|
| 672 |
+
401
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 6
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "Image QA Module Questions with visual information are handled by a multimodal transformer that processes the text question and pre-computed image features. For a question $Q$ and a set of images $\\mathcal { T }$ , we feed the model the question and the visual features $\\Phi ( i )$ extracted from each image $i \\in \\mathcal { T }$ , along with the name of the WikiEntity associated with the image. For each image and question, the model predicts an answer from a fixed vocabulary determined by the answers in the training set and 3 special tokens: $y _ { \\mathrm { d t r } }$ , $y _ { \\mathrm { p } }$ and $y _ { \\mathrm { n } }$ . In questions where the expected answer is a phrase (e.g., ImageQ), we return the answer from the image where $p ( y _ { \\mathrm { d t r } } )$ is lowest (similar to text QA). In questions where the expected answer is a subset of the images (e.g., Compose(TableQ,ImageQ)), we return all images where $p ( y _ { \\mathrm { p } } ) > p ( y _ { \\mathrm { n } } )$ . Our model is based on the pre-trained model VILBERT-MT1 (Lu et al., 2020). Visual features are extracted by a vision network $\\Phi$ , comprised of a Faster R-CNN (Ren et al., 2015) pre-trained on Visual Genome (Krishna et al., 2017). ",
|
| 679 |
+
"bbox": [
|
| 680 |
+
173,
|
| 681 |
+
409,
|
| 682 |
+
825,
|
| 683 |
+
563
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 6
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "4.2 MULTIMODALITY QA MODELS ",
|
| 690 |
+
"text_level": 1,
|
| 691 |
+
"bbox": [
|
| 692 |
+
176,
|
| 693 |
+
579,
|
| 694 |
+
428,
|
| 695 |
+
594
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 6
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "We turn to models that interact with multiple modalities. ",
|
| 702 |
+
"bbox": [
|
| 703 |
+
174,
|
| 704 |
+
607,
|
| 705 |
+
542,
|
| 706 |
+
621
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 6
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "text",
|
| 712 |
+
"text": "Multi-Hop Implicit Decomposition (ImplicitDecomp) Our dataset is designed to test reasoning across modalities. As a first attempt towards this goal, we introduce a 2-hop implicit decomposition baseline, capable of combining information scattered across modalities (illustrated in Figure 4). ",
|
| 713 |
+
"bbox": [
|
| 714 |
+
174,
|
| 715 |
+
628,
|
| 716 |
+
823,
|
| 717 |
+
671
|
| 718 |
+
],
|
| 719 |
+
"page_idx": 6
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"type": "text",
|
| 723 |
+
"text": "We first train a question-type classifier, based on RoBERTa-large, that takes a question $Q$ as input, and predicts one of the 16 possible question types (Table 2). The question type can be viewed as a program, specifying the relevant modalities, their order, and the logical operations. For example, if the question type is Compose(TextQ,TableQ), the first hop should be conducted on the table $T$ , and the second hop on the paragraphs $\\mathcal { P }$ . In each hop, we feed the model with the question $Q$ , the question type, the hop number, and the context of the corresponding modality. The model automatically identifies which part of the question is relevant at the current hop and does not explicitly decompose the question into sub-questions (hence the name implicit decomposition). In the second hop, answers from the first hop are also given as input so that the model can leverage this information and conduct cross-modal reasoning to output the final answer. For all single-modality question types (such as TextQ and TableQ), the model uses only the first hop to get the answer. ",
|
| 724 |
+
"bbox": [
|
| 725 |
+
174,
|
| 726 |
+
678,
|
| 727 |
+
825,
|
| 728 |
+
830
|
| 729 |
+
],
|
| 730 |
+
"page_idx": 6
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"type": "text",
|
| 734 |
+
"text": "Single-Hop Routing (AutoRouting) A simple approach for answering questions without cross-modal reasoning is to first determine the modality where the answer is expected to occur, and then run the corresponding single-modality module. We use the aforementioned question type classifier to determine the modality where the answer will appear, route the question and the context for the predicted modality into the corresponding module, and use the output as the final answer. ",
|
| 735 |
+
"bbox": [
|
| 736 |
+
174,
|
| 737 |
+
837,
|
| 738 |
+
825,
|
| 739 |
+
880
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 6
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "",
|
| 746 |
+
"bbox": [
|
| 747 |
+
173,
|
| 748 |
+
103,
|
| 749 |
+
823,
|
| 750 |
+
132
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 7
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "Question-only and Context-only baselines We run the question-only and context-only baselines, suggested by Kaushik & Lipton (2018). Our question-only baseline is BART-large (Lewis et al., 2019): a sequence-to-sequence model that directly generates the answer given the question. For the context-only baseline, we first predict the question type using the classifier described above to pick a target module. We then feed the relevant context to the target module, replacing the question with an empty string. ",
|
| 757 |
+
"bbox": [
|
| 758 |
+
174,
|
| 759 |
+
140,
|
| 760 |
+
568,
|
| 761 |
+
265
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 7
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "text",
|
| 767 |
+
"text": "4.3 TRAINING AND SUPERVISION ",
|
| 768 |
+
"text_level": 1,
|
| 769 |
+
"bbox": [
|
| 770 |
+
176,
|
| 771 |
+
276,
|
| 772 |
+
419,
|
| 773 |
+
291
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 7
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "text",
|
| 779 |
+
"text": "Our dataset provides rich supervision including not only the final answer but also question types and intermediate results. Therefore, we can train the pipeline modules in a supervised fashion. Specifically, we train the question type classifier using a cross entropy loss w.r.t the gold question type. For AutoRouting, each QA module is trained with the subset of samples whose final answer can be extracted from the corresponding modality. For ImplicitDecomp, only one model is trained per modality, which is used to answer both the first-hop and second-hop questions. The question-only and context-only baselines are trained in the corresponding format. ",
|
| 780 |
+
"bbox": [
|
| 781 |
+
174,
|
| 782 |
+
303,
|
| 783 |
+
568,
|
| 784 |
+
414
|
| 785 |
+
],
|
| 786 |
+
"page_idx": 7
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"type": "image",
|
| 790 |
+
"img_path": "images/838228a9af05a2952896cfe89472ebe9701295d9d6234c351935f7aed3b0739e.jpg",
|
| 791 |
+
"image_caption": [
|
| 792 |
+
"Figure 4: ImplicitDecomp: Modules with the same color share parameters. In this example, the text QA module is activated to produce the 1st-hop answer, and this intermediate answer is fed into the Image QA model to produce the final answer. Question type ([Q Type]) is determined by a separate classifier. "
|
| 793 |
+
],
|
| 794 |
+
"image_footnote": [],
|
| 795 |
+
"bbox": [
|
| 796 |
+
584,
|
| 797 |
+
145,
|
| 798 |
+
825,
|
| 799 |
+
280
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 7
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "text",
|
| 805 |
+
"text": "",
|
| 806 |
+
"bbox": [
|
| 807 |
+
173,
|
| 808 |
+
414,
|
| 809 |
+
823,
|
| 810 |
+
441
|
| 811 |
+
],
|
| 812 |
+
"page_idx": 7
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "text",
|
| 816 |
+
"text": "5 EXPERIMENTS ",
|
| 817 |
+
"text_level": 1,
|
| 818 |
+
"bbox": [
|
| 819 |
+
176,
|
| 820 |
+
462,
|
| 821 |
+
326,
|
| 822 |
+
477
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 7
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "We evaluate models in three different setups: (1) questions that require a single modality to answer (Single Modality); (2) questions that require reasoning over multiple modalities (Multi Modality); (3) and all questions $( A l l )$ . Our evaluation metrics need to support lists of answers, and thus we use average $\\mathrm { F _ { 1 } }$ and Exact Match (EM), as described in Dua et al. (2019), where answers on the gold and predicted lists are aligned. Human performance is estimated with 9 expert annotators, who answered 145 questions. Test results are are reported using a single run (one random seed). ",
|
| 829 |
+
"bbox": [
|
| 830 |
+
173,
|
| 831 |
+
492,
|
| 832 |
+
825,
|
| 833 |
+
577
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 7
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "We show results in Table 4.2 ImplicitDecomp achieves significantly higher performance $( 5 5 . 9 \\mathrm { F _ { 1 , } } )$ compared to the other baselines, but lower than human performance $( 9 1 . 2 \\mathrm { F _ { 1 } }$ with provided context, and $8 4 . 8 \\mathrm { F _ { 1 } }$ in the open-domain setting over all of Wikipedia), suggesting ample room for improvement. On the Multi Modality subset, ImplicitDecomp ",
|
| 840 |
+
"bbox": [
|
| 841 |
+
174,
|
| 842 |
+
583,
|
| 843 |
+
441,
|
| 844 |
+
708
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 7
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "table",
|
| 850 |
+
"img_path": "images/203720ab4ba71e2eaebfded2f026770864be7380e4c6d04857e737e6b409aa7a.jpg",
|
| 851 |
+
"table_caption": [
|
| 852 |
+
"Table 4: Test set results "
|
| 853 |
+
],
|
| 854 |
+
"table_footnote": [],
|
| 855 |
+
"table_body": "<table><tr><td></td><td>Single Modality</td><td colspan=\"2\">Mutli Modality</td><td colspan=\"2\">All</td></tr><tr><td></td><td>EM</td><td>F1 EM</td><td>F1</td><td>EM</td><td>F1</td></tr><tr><td>Question-only2 Context-only</td><td>14.2 8.0</td><td>17.0 10.2</td><td>16.9 19.5 6.6 8.5</td><td>15.3 7.4</td><td>18.0 9.5</td></tr><tr><td>AutoRouting ImplicitDecomp</td><td>48.9 51.1</td><td>57.1 58.8</td><td>32.0 38.2 46.5 51.7</td><td>42.1 49.3</td><td>49.5 55.9</td></tr><tr><td>Human</td><td>87.9</td><td>92.5</td><td>84.8 90.1</td><td>86.2</td><td>91.2</td></tr></table>",
|
| 856 |
+
"bbox": [
|
| 857 |
+
454,
|
| 858 |
+
589,
|
| 859 |
+
825,
|
| 860 |
+
674
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 7
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "substantially improves performance compared to AutoRouting $\\mathrm { 3 8 . 2 } \\mathrm { 5 1 . 7 } $ , emphasizing the superiority of our approach on multi-hop questions, while on single-hop questions this gap is smaller. ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
173,
|
| 869 |
+
709,
|
| 870 |
+
825,
|
| 871 |
+
736
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 7
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "Since automatic evaluation of performance is non-trivial in our setup, we also manually evaluate human performance. In $9 4 . 5 \\%$ of the cases, answers are either identical or semantically equivalent to the gold answer, $0 . 7 \\%$ have an error in the question, and $4 . 8 \\%$ are human errors. Human errors are owing to the length of the context, resulting in human fatigue (which models do not suffer from). ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
174,
|
| 880 |
+
743,
|
| 881 |
+
825,
|
| 882 |
+
799
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 7
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "Analysis To demonstrate that ImplicitDecomp indeed performs multi-hop reasoning, successfully answering intermediate questions, we analyze ImplicitDecomp predictions for multimodal questions generated using the Compose, Compare and Intersect operations (Table 5). For these questions, we find that when the 1st-hop answer is correct, the model achieves an $\\mathrm { F _ { 1 } }$ of 63.9, whereas when the 1st-hop prediction is incorrect, the $\\mathrm { F _ { 1 } }$ drops to 37.4. This suggests that the model relies on the 1st-hop answer, effectively performing multi-hop reasoning. Last, our question type classifier obtains a high accuracy of $9 1 . 5 \\%$ on the test set. ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
174,
|
| 891 |
+
806,
|
| 892 |
+
825,
|
| 893 |
+
876
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 7
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "table",
|
| 899 |
+
"img_path": "images/1a5ba392a0cad931baf425ee9f07269cb44efa5dd6e309d05ac269a02736c9ae.jpg",
|
| 900 |
+
"table_caption": [
|
| 901 |
+
"Table 5: Examples where ImplicitDecomp correctly answers both the intermediate and the entire question, and a breakdown of the 1st-hop $\\mathrm { F _ { 1 } }$ and final $\\mathrm { F _ { 1 } }$ for the three logical operations: Compose, Compare, and Intersect. "
|
| 902 |
+
],
|
| 903 |
+
"table_footnote": [],
|
| 904 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Type</td><td rowspan=1 colspan=1>Question</td><td rowspan=1 colspan=1>1st-hop prediction</td><td rowspan=1 colspan=1>Final prediction</td><td rowspan=1 colspan=1>1st-hop F1</td><td rowspan=1 colspan=1>F1</td></tr><tr><td rowspan=1 colspan=1>Compose</td><td rowspan=1 colspan=1>WhatpartdidKymKarathplayintheTVshowwhose poster featuresa dog?</td><td rowspan=1 colspan=1>Lassie</td><td rowspan=1 colspan=1>Kathy Vaughn</td><td rowspan=1 colspan=1>62.3</td><td rowspan=1 colspan=1>50.8</td></tr><tr><td rowspan=1 colspan=1>Compare</td><td rowspan=1 colspan=1>Whichvideo gamewasWes Johnson involved in earlier:Fallout4 or the gamewhose cover shows agun-wielding man?</td><td rowspan=1 colspan=1>Hammer&Sickle</td><td rowspan=1 colspan=1>Hammer&Sickle</td><td rowspan=1 colspan=1>55.7</td><td rowspan=1 colspan=1>61.1</td></tr><tr><td rowspan=1 colspan=1>Intersect</td><td rowspan=1 colspan=1>Whichalbum,released inDecemberof201l,hasamanwearingsunglasses on its cover, and was released under the RCA label?</td><td rowspan=1 colspan=1>TY.O,Back to Love</td><td rowspan=1 colspan=1>Back to Love</td><td rowspan=1 colspan=1>33.5</td><td rowspan=1 colspan=1>55.1</td></tr></table>",
|
| 905 |
+
"bbox": [
|
| 906 |
+
176,
|
| 907 |
+
99,
|
| 908 |
+
825,
|
| 909 |
+
170
|
| 910 |
+
],
|
| 911 |
+
"page_idx": 8
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "text",
|
| 915 |
+
"text": "",
|
| 916 |
+
"bbox": [
|
| 917 |
+
174,
|
| 918 |
+
228,
|
| 919 |
+
823,
|
| 920 |
+
257
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 8
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "text",
|
| 926 |
+
"text": "To test whether the compositional questions created are indeed multi-hop, we conducted a qualitative analysis over 50 questions as suggested by (Min et al., 2019b). We find that $6 \\%$ are of the Weak Distractors category, that is, questions such as βWhat year... β when there is only one year appearing in the context, making the question easy. $2 \\%$ have Redundant evidence, that is, questions such as βWhich Donald Trump TV show has ...β where there is only one TV show starring Donald Trump, making the rest of the question redundant. The remaining $92 \\%$ indeed require multi-hop reasoning. ",
|
| 927 |
+
"bbox": [
|
| 928 |
+
173,
|
| 929 |
+
263,
|
| 930 |
+
825,
|
| 931 |
+
348
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 8
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "6 RELATED WORK ",
|
| 938 |
+
"text_level": 1,
|
| 939 |
+
"bbox": [
|
| 940 |
+
176,
|
| 941 |
+
369,
|
| 942 |
+
344,
|
| 943 |
+
386
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 8
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "Visual question answeringβi.e., the task of answering questions about imagesβhas been widely explored in previous work (Antol et al., 2015; Zhang et al., 2016; Goyal et al., 2017; Johnson et al., 2017; Hudson & Manning, 2019; Zellers et al., 2019; Singh et al., 2019; Methani et al., 2020), ranging from synthetic images to scientific plots. Our work differs significantly from those, by including more complex, multi-hop questions that require reasoning over text, tables and images. Currently, the most successful paradigm in VQA is fine-tuning models pre-trained on large amounts of image captioning data (Tan & Bansal, 2019; Lu et al., 2019; 2020; Su et al., 2020; Chen et al., 2020c; Li et al., 2020), an approach we follow for answering image-related questions. ",
|
| 950 |
+
"bbox": [
|
| 951 |
+
174,
|
| 952 |
+
401,
|
| 953 |
+
825,
|
| 954 |
+
513
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 8
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "MANYMODALQA (Hannan et al., 2020) move beyond directing the question to an image-only context, to choosing between an image, a text, and a table. Their work focuses on routing the question to the correct context modality. Our question-type classifier, based on RoBERTa-large reaches an accuracy of $9 1 . 4 \\%$ on our 16 possible question types, showing that the main challenge in MMQA is reasoning over the context rather than identifying the question type. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
174,
|
| 963 |
+
520,
|
| 964 |
+
825,
|
| 965 |
+
590
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 8
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "HYBRIDQA (Chen et al., 2020b) presents a cross-modality reasoning challenge over tabular and textual data. A fundamental difference is that our setup offers cross-modality reasoning over images as well. In addition, our approach is cheaper to annotate since it requires only paraphrasing, and the question type distribution is more controllable (we offer 16 major question types vs. 6 in HYBRIDQA). Moreover, our text passages are chosen using the question, answer and table, while in HYBRIDQA only WikiEntities from the table are used to find text passages. ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
174,
|
| 974 |
+
597,
|
| 975 |
+
825,
|
| 976 |
+
681
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 8
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "The model proposed in HYBRIDQA introduces a heuristic for linking the text passage to the table cells, which may lead to performance degradation. Conversely, our model uses (automaticallyannotated) intermediate multi-hop answers, to perform reasoning and linking implicitly over the full table and text, which should lead to more robust reasoning, in particular when reasoning over multiple table cells, as well as for narrative tracking and co-reference over the full text. In parallel to this work, a new open-domain variant of HYBRIDQA has been released by Chen et al. (2020a). ",
|
| 983 |
+
"bbox": [
|
| 984 |
+
174,
|
| 985 |
+
688,
|
| 986 |
+
825,
|
| 987 |
+
772
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 8
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "7 CONCLUSION ",
|
| 994 |
+
"text_level": 1,
|
| 995 |
+
"bbox": [
|
| 996 |
+
176,
|
| 997 |
+
794,
|
| 998 |
+
318,
|
| 999 |
+
809
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 8
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "We present MMQA, a new QA dataset that contains 29,918 examples, $3 5 . 7 \\%$ of which require crossmodality reasoning. We describe a novel framework for generating complex multimodal questions at scale, and showcase the diversity and multimodal properties of the resulting dataset. We evaluate MMQA using a variety of models, and confirm that the best model exploits the multimodality of the dataset and takes into account multi-hop reasoning via implicit decomposition. However, human performance substantially exceeds the best model, establishing the need for further research involving multiple modalities in question answering systems, which we hope that our work will drive. ",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
174,
|
| 1008 |
+
825,
|
| 1009 |
+
825,
|
| 1010 |
+
924
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 8
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "8 ACKNOWLEDGMENTS ",
|
| 1017 |
+
"text_level": 1,
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
174,
|
| 1020 |
+
102,
|
| 1021 |
+
387,
|
| 1022 |
+
117
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 9
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "We thank our colleagues at The Allen Institute of AI, James Ferguson and Amir Globerson. This research was partially supported by The Blavatnik Computer Science Research Fund and The Yandex Initiative for Machine Learning, and the European Unionβs Seventh Framework Programme (FP7) under grant agreement no. 802800-DELPHI. Special thanks to Carrot Search which allowed use to use their FoamTree visualization. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
174,
|
| 1031 |
+
133,
|
| 1032 |
+
825,
|
| 1033 |
+
204
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 9
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "REFERENCES ",
|
| 1040 |
+
"text_level": 1,
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
174,
|
| 1043 |
+
224,
|
| 1044 |
+
285,
|
| 1045 |
+
239
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 9
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C. Lawrence Zitnick, and Devi Parikh. VQA: Visual Question Answering. In International Conference on Computer Vision (ICCV), 2015. ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
174,
|
| 1054 |
+
247,
|
| 1055 |
+
825,
|
| 1056 |
+
290
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 9
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "Akari Asai, Kazuma Hashimoto, Hannaneh Hajishirzi, Richard Socher, and Caiming Xiong. Learning to retrieve reasoning paths over wikipedia graph for question answering. ArXiv, abs/1911.10470, 2020. ",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
174,
|
| 1065 |
+
299,
|
| 1066 |
+
826,
|
| 1067 |
+
342
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 9
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "Wenhu Chen, Hongmin Wang, Jianshu Chen, Yunkai Zhang, Hong Wang, Shiyang Li, Xiyou Zhou, and William Yang Wang. Tabfact: A large-scale dataset for table-based fact verification. arXiv preprint arXiv:1909.02164, 2019. ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
174,
|
| 1076 |
+
351,
|
| 1077 |
+
823,
|
| 1078 |
+
393
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 9
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "Wenhu Chen, Ming-Wei Chang, Eva Schlinger, William Wang, and William W Cohen. Open question answering over tables and text. arXiv preprint arXiv:2010.10439, 2020a. ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
171,
|
| 1087 |
+
404,
|
| 1088 |
+
825,
|
| 1089 |
+
433
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 9
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "Wenhu Chen, Hanwen Zha, Zhiyu Chen, Wenhan Xiong, Hong Wang, and William Wang. Hybridqa: A dataset of multi-hop question answering over tabular and textual data, 2020b. ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
171,
|
| 1098 |
+
440,
|
| 1099 |
+
825,
|
| 1100 |
+
470
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 9
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "Yen-Chun Chen, Linjie Li, Licheng Yu, Ahmed El Kholy, Faisal Ahmed, Zhe Gan, Yu Cheng, and Jingjing Liu. Uniter: Learning universal image-text representations. In Proceedings of the 2020 European Conference on Computer Vision, 2020c. URL https://www.ecva.net/papers/ eccv_2020/papers_ECCV/papers/123750103.pdf. ",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
174,
|
| 1109 |
+
479,
|
| 1110 |
+
826,
|
| 1111 |
+
536
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 9
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. Boolq: Exploring the surprising difficulty of natural yes/no questions. arXiv preprint arXiv:1905.10044, 2019. ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
174,
|
| 1120 |
+
545,
|
| 1121 |
+
826,
|
| 1122 |
+
588
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 9
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "J. Devlin, M. Chang, K. Lee, and K. Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In North American Association for Computational Linguistics (NAACL), 2019. ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
173,
|
| 1131 |
+
597,
|
| 1132 |
+
826,
|
| 1133 |
+
640
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 9
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "D. Dua, Y. Wang, P. Dasigi, G. Stanovsky, S. Singh, and M. Gardner. Drop: A reading comprehension benchmark requiring discrete reasoning over paragraphs. In North American Association for Computational Linguistics (NAACL), 2019. ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
173,
|
| 1142 |
+
648,
|
| 1143 |
+
826,
|
| 1144 |
+
691
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 9
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Mor Geva, Yoav Goldberg, and Jonathan Berant. Are we modeling the task or the annotator? an investigation of annotator bias in natural language understanding datasets. arXiv preprint arXiv:1908.07898, 2019. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
173,
|
| 1153 |
+
700,
|
| 1154 |
+
823,
|
| 1155 |
+
743
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 9
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Making the V in VQA matter: Elevating the role of image understanding in Visual Question Answering. In Conference on Computer Vision and Pattern Recognition (CVPR), 2017. ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
176,
|
| 1164 |
+
753,
|
| 1165 |
+
823,
|
| 1166 |
+
796
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 9
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "Darryl Hannan, Akshay Jain, and Mohit Bansal. Manymodalqa: Modality disambiguation and qa over diverse inputs, 2020. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
171,
|
| 1175 |
+
804,
|
| 1176 |
+
823,
|
| 1177 |
+
833
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 9
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Jonathan Herzig, P. Nowak, Thomas MΓΌller, Francesco Piccinno, and Julian Martin Eisenschlos. Tapas: Weakly supervised table parsing via pre-training. In ACL, 2020. ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
171,
|
| 1186 |
+
843,
|
| 1187 |
+
825,
|
| 1188 |
+
872
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 9
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "Drew A Hudson and Christopher D Manning. Gqa: A new dataset for real-world visual reasoning and compositional question answering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6700β6709, 2019. ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
176,
|
| 1197 |
+
882,
|
| 1198 |
+
825,
|
| 1199 |
+
924
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 9
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "J. Johnson, B. Hariharan, L. van der Maaten, L. Fei-Fei, C. L. Zitnick, and R. Girshick. Clevr: A diagnostic dataset for compositional language and elementary visual reasoning. In Computer Vision and Pattern Recognition (CVPR), 2017. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
176,
|
| 1208 |
+
103,
|
| 1209 |
+
823,
|
| 1210 |
+
146
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 10
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Vladimir Karpukhin, Barlas Oguz, Sewon Min, Ledell Wu, Sergey Edunov, Danqi Chen, and Λ Wen-tau Yih. Dense passage retrieval for open-domain question answering. arXiv preprint arXiv:2004.04906, 2020. ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
176,
|
| 1219 |
+
155,
|
| 1220 |
+
823,
|
| 1221 |
+
196
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 10
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Divyansh Kaushik and Zachary C Lipton. How much reading does reading comprehension require? a critical investigation of popular benchmarks. In EMNLP, 2018. ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
171,
|
| 1230 |
+
205,
|
| 1231 |
+
823,
|
| 1232 |
+
234
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 10
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. International journal of computer vision, 123(1):32β73, 2017. ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
173,
|
| 1241 |
+
242,
|
| 1242 |
+
826,
|
| 1243 |
+
299
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 10
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:453β466, 2019. ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
174,
|
| 1252 |
+
308,
|
| 1253 |
+
826,
|
| 1254 |
+
364
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 10
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, and Luke Zettlemoyer. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension, 2019. ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
174,
|
| 1263 |
+
372,
|
| 1264 |
+
825,
|
| 1265 |
+
416
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 10
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "Xiujun Li, Xi Yin, Chunyuan Li, Pengchuan Zhang, Xiaowei Hu, Lei Zhang, Lijuan Wang, Houdong Hu, Li Dong, Furu Wei, et al. Oscar: Object-semantics aligned pre-training for vision-language tasks. In European Conference on Computer Vision, pp. 121β137. Springer, 2020. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
173,
|
| 1274 |
+
424,
|
| 1275 |
+
825,
|
| 1276 |
+
468
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 10
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
176,
|
| 1285 |
+
474,
|
| 1286 |
+
823,
|
| 1287 |
+
518
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 10
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In Advances in Neural Information Processing Systems, pp. 13β23, 2019. ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
173,
|
| 1296 |
+
526,
|
| 1297 |
+
823,
|
| 1298 |
+
569
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 10
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Jiasen Lu, Vedanuj Goswami, Marcus Rohrbach, Devi Parikh, and Stefan Lee. 12-in-1: Multi-task vision and language representation learning. In The IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020. ",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
173,
|
| 1307 |
+
578,
|
| 1308 |
+
825,
|
| 1309 |
+
621
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 10
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Nitesh Methani, Pritha Ganguly, Mitesh M Khapra, and Pratyush Kumar. Plotqa: Reasoning over scientific plots. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 1527β1536, 2020. ",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
173,
|
| 1318 |
+
628,
|
| 1319 |
+
825,
|
| 1320 |
+
672
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 10
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "Sewon Min, Eric Wallace, Sameer Singh, Matt Gardner, Hannaneh Hajishirzi, and Luke Zettlemoyer. Compositional questions do not necessitate multi-hop reasoning. In ACL, 2019a. ",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
171,
|
| 1329 |
+
680,
|
| 1330 |
+
825,
|
| 1331 |
+
709
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 10
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Sewon Min, Eric Wallace, Sameer Singh, Matt Gardner, Hannaneh Hajishirzi, and Luke Zettlemoyer. Compositional questions do not necessitate multi-hop reasoning. arXiv preprint arXiv:1906.02900, 2019b. ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
176,
|
| 1340 |
+
718,
|
| 1341 |
+
826,
|
| 1342 |
+
761
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 10
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "P. Pasupat and P. Liang. Compositional semantic parsing on semi-structured tables. In Association for Computational Linguistics (ACL), 2015. ",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
173,
|
| 1351 |
+
768,
|
| 1352 |
+
823,
|
| 1353 |
+
797
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 10
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "P. Rajpurkar. SQuAD. https://rajpurkar.github.io/SQuAD-explorer/, 2016. ",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
173,
|
| 1362 |
+
806,
|
| 1363 |
+
794,
|
| 1364 |
+
823
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 10
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pp. 91β99, 2015. ",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
173,
|
| 1373 |
+
830,
|
| 1374 |
+
823,
|
| 1375 |
+
872
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 10
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "text",
|
| 1381 |
+
"text": "Amanpreet Singh, Vivek Natarajan, Meet Shah, Yu Jiang, Xinlei Chen, Dhruv Batra, Devi Parikh, and Marcus Rohrbach. Towards vqa models that can read. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8317β8326, 2019. ",
|
| 1382 |
+
"bbox": [
|
| 1383 |
+
176,
|
| 1384 |
+
881,
|
| 1385 |
+
826,
|
| 1386 |
+
924
|
| 1387 |
+
],
|
| 1388 |
+
"page_idx": 10
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"type": "text",
|
| 1392 |
+
"text": "Weijie Su, Xizhou Zhu, Yue Cao, Bin Li, Lewei Lu, Furu Wei, and Jifeng Dai. Vl-bert: Pre-training of generic visual-linguistic representations. In Proceedings of the 2020 International Conference on Learning Representations, 2020. URL https://arxiv.org/abs/1908.08530. ",
|
| 1393 |
+
"bbox": [
|
| 1394 |
+
174,
|
| 1395 |
+
103,
|
| 1396 |
+
823,
|
| 1397 |
+
146
|
| 1398 |
+
],
|
| 1399 |
+
"page_idx": 11
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"text": "A. Talmor and J. Berant. The web as knowledge-base for answering complex questions. In North American Association for Computational Linguistics (NAACL), 2018. ",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
171,
|
| 1406 |
+
155,
|
| 1407 |
+
823,
|
| 1408 |
+
184
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 11
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "Hao Tan and Mohit Bansal. LXMERT: Learning cross-modality encoder representations from transformers. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLPIJCNLP), pp. 5100β5111, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1514. URL https://www.aclweb.org/anthology/ D19-1514. ",
|
| 1415 |
+
"bbox": [
|
| 1416 |
+
173,
|
| 1417 |
+
193,
|
| 1418 |
+
825,
|
| 1419 |
+
276
|
| 1420 |
+
],
|
| 1421 |
+
"page_idx": 11
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"type": "text",
|
| 1425 |
+
"text": "J. Welbl, P. Stenetorp, and S. Riedel. Constructing datasets for multi-hop reading comprehension across documents. arXiv preprint arXiv:1710.06481, 2017. ",
|
| 1426 |
+
"bbox": [
|
| 1427 |
+
171,
|
| 1428 |
+
285,
|
| 1429 |
+
825,
|
| 1430 |
+
315
|
| 1431 |
+
],
|
| 1432 |
+
"page_idx": 11
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"type": "text",
|
| 1436 |
+
"text": "Z. Yang, P. Qi, S. Zhang, Y. Bengio, W. W. Cohen, R. Salakhutdinov, and C. D. Manning. HotpotQA: A dataset for diverse, explainable multi-hop question answering. In Empirical Methods in Natural Language Processing (EMNLP), 2018. ",
|
| 1437 |
+
"bbox": [
|
| 1438 |
+
174,
|
| 1439 |
+
323,
|
| 1440 |
+
823,
|
| 1441 |
+
366
|
| 1442 |
+
],
|
| 1443 |
+
"page_idx": 11
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"type": "text",
|
| 1447 |
+
"text": "Rowan Zellers, Yonatan Bisk, Ali Farhadi, and Yejin Choi. From recognition to cognition: Visual commonsense reasoning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6720β6731, 2019. ",
|
| 1448 |
+
"bbox": [
|
| 1449 |
+
173,
|
| 1450 |
+
375,
|
| 1451 |
+
823,
|
| 1452 |
+
417
|
| 1453 |
+
],
|
| 1454 |
+
"page_idx": 11
|
| 1455 |
+
},
|
| 1456 |
+
{
|
| 1457 |
+
"type": "text",
|
| 1458 |
+
"text": "Peng Zhang, Yash Goyal, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Yin and Yang: Balancing and answering binary visual questions. In Conference on Computer Vision and Pattern Recognition (CVPR), 2016. ",
|
| 1459 |
+
"bbox": [
|
| 1460 |
+
174,
|
| 1461 |
+
426,
|
| 1462 |
+
821,
|
| 1463 |
+
469
|
| 1464 |
+
],
|
| 1465 |
+
"page_idx": 11
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"type": "text",
|
| 1469 |
+
"text": "A APPENDIX ",
|
| 1470 |
+
"text_level": 1,
|
| 1471 |
+
"bbox": [
|
| 1472 |
+
176,
|
| 1473 |
+
496,
|
| 1474 |
+
299,
|
| 1475 |
+
511
|
| 1476 |
+
],
|
| 1477 |
+
"page_idx": 11
|
| 1478 |
+
},
|
| 1479 |
+
{
|
| 1480 |
+
"type": "text",
|
| 1481 |
+
"text": "Please see separate file for supplementary material. ",
|
| 1482 |
+
"bbox": [
|
| 1483 |
+
174,
|
| 1484 |
+
527,
|
| 1485 |
+
509,
|
| 1486 |
+
541
|
| 1487 |
+
],
|
| 1488 |
+
"page_idx": 11
|
| 1489 |
+
}
|
| 1490 |
+
]
|
parse/train/ee6W5UgQLa/ee6W5UgQLa_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/ee6W5UgQLa/ee6W5UgQLa_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/r1DPFCyA-/r1DPFCyA-.md
ADDED
|
@@ -0,0 +1,593 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
| 1 |
+
# DISCRIMINATIVE K-SHOT LEARNING USINGPROBABILISTIC MODELS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
This paper introduces a probabilistic framework for $\mathbf { k }$ -shot image classification. The goal is to generalise from an initial large-scale classification task to a separate task comprising new classes and small numbers of examples. The new approach not only leverages the feature-based representation learned by a neural network from the initial task (representational transfer), but also information about the classes (concept transfer). The concept information is encapsulated in a probabilistic model for the final layer weights of the neural network which acts as a prior for probabilistic $\mathbf { k }$ -shot learning. We show that even a simple probabilistic model achieves state-of-the-art on a standard $\mathbf { k }$ -shot learning dataset by a large margin. Moreover, it is able to accurately model uncertainty, leading to well calibrated classifiers, and is easily extensible and flexible, unlike many recent approaches to $\mathbf { k }$ -shot learning.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
A child encountering images of helicopters for the first time is able to generalize to instances with radically different appearance from only a handful of labelled examples. This remarkable feat is supported in part by a high-level feature-representation of images acquired from past experience. However, it is likely that information about previously learned concepts, such as aeroplanes and vehicles, is also leveraged (e.g. that sets of features like tails and rotors or objects like pilots/drivers are likely to appear in new images). The goal of this paper is to build machine systems for performing $\mathbf { k }$ -shot learning, which leverage both existing feature representations of the inputs and existing class information that have both been honed by learning from large amounts of labelled data.
|
| 12 |
+
|
| 13 |
+
K-shot learning has enjoyed a recent resurgence in the academic community (Lake et al., 2015; Koch et al., 2015; Vinyals et al., 2016; Snell et al., 2017; Srivastava & Salakhutdinov, 2013). Current stateof-the-art methods use complex deep learning architectures and claim that learning good features for $\mathbf { k }$ -shot learning entails training for $k$ -shot specifically via episodic training that simulates many $\mathbf { k }$ -shot tasks. In contrast, this paper proposes a general framework based upon the combination of a deep feature extractor, trained on batch classification, and traditional probabilistic modelling. It subsumes two existing approaches in this vein (Srivastava & Salakhutdinov, 2013; Burgess et al., 2016), and is motivated by similar ideas from multi-task learning (Bakker & Heskes, 2003). The intuition is that deep learning will learn powerful feature representations, whereas probabilistic inference will transfer top-down conceptual information from old classes. Representational learning is driven by the large number of training examples from the original classes making it amenable to standard deep learning. In contrast, the transfer of conceptual information to the new classes relies on a relatively small number of existing classes and $\mathbf { k }$ -shot data points, which means probabilistic inference is appropriate.
|
| 14 |
+
|
| 15 |
+
While generalisation accuracy is often the key objective when training a classifier, calibration is also a fundamental concern in many applications such as decision making for autonomous driving and medicine. Here, calibration refers to the agreement between a classifierβs uncertainty and the frequency of its mistakes, which has recently received increased attention. For example, Guo et al., 2017 show that the calibration of deep architectures deteriorates as depth and complexity increase. Calibration is closely related to catastrophic forgetting in continual learning. However, to our knowledge, uncertainty has so far been over-looked by the $\mathbf { k }$ -shot community even though it is high in this setting.
|
| 16 |
+
|
| 17 |
+
Our basic setup mimics that of the motivating example above: a standard deep convolutional neural network (CNN) is trained on a large labelled training set. This learns a rich representation of images at the top hidden layer of the CNN. Accumulated knowledge about classes is embodied in the top layer softmax weights of the network. This information is extracted by training a probabilistic model on these weights. K-shot learning can then 1) use the representation of images provided by the CNN as input to a new softmax function, 2) learn the new softmax weights by combining prior information about their likely form derived from the original dataset with the k-shot likelihood.
|
| 18 |
+
|
| 19 |
+
# The main contributions of our paper are:
|
| 20 |
+
|
| 21 |
+
1) We propose a probabilistic framework for k-shot learning. It combines deep convolutional features with a probabilistic model that treats the top-level weights of a neural network as data, which can be used to regularize the weights at k-shot time in a principled Bayesian fashion. We show that the framework recovers $L _ { 2 }$ -regularised logistic regression, with an automatically determined setting of the regularisation parameter, as a special case.
|
| 22 |
+
|
| 23 |
+
2) We show that our approach achieves state-of-the-art results on the miniImageNet dataset by a wide margin of roughly $6 \%$ for 1- and 5-shot learning. We further show that architectures with better batch classification accuracy also provide features which generalize better at $\mathbf { k }$ -shot time. This finding is contrary to the current belief that episodic training is necessary for good performance and puts the success of recent complex deep learning approaches to $\mathbf { k }$ -shot learning into context.
|
| 24 |
+
|
| 25 |
+
3) We show on miniImageNet and CIFAR-100 that our framework achieves a good trade-off between classification accuracy and calibration, and it strikes a good balance between learning new classes and forgetting the old ones.
|
| 26 |
+
|
| 27 |
+
# 2 PROBABILISTIC K-SHOT LEARNING
|
| 28 |
+
|
| 29 |
+
K-shot learning task. We consider the following discriminative $\mathbf { k }$ -shot learning task: First, we receive a large dataset $\widetilde { \mathcal { D } } = \{ \widetilde { \mathbf { u } } _ { i } , \widetilde { y } _ { i } \} _ { i = 1 } ^ { \widetilde { N } }$ of images $\widetilde { \mathbf { u } } _ { i }$ and labels $\widetilde { y } _ { i } \in \{ 1 , \ldots , \widetilde { C } \}$ that indicate which of the $\widetilde { C }$ classes each image belongs to. Second, we receive a small dataset $\mathcal { D } = \{ \mathbf { u } _ { i } , y _ { i } \} _ { i = 1 } ^ { N }$ of $C$ new classes, $y _ { i } \in \{ \widetilde { C } + 1 , \widetilde { C } + C \}$ , with $k$ images from each new class. Our goal is to construct a model that can leverage the information in $\widetilde { \mathcal { D } }$ and $\mathcal { D }$ to predict well on unseen images $\mathbf { u } ^ { * }$ from the new classes; the performance is evaluated against ground truth labels $y ^ { * }$ .
|
| 30 |
+
|
| 31 |
+
Summary. In contrast to several recent $\mathbf { k }$ -shot learning approaches that mimic the $\mathbf { k }$ -shot learning task by episodic training on simulated $\mathbf { k }$ -shot tasks, we propose to use the large dataset $\widetilde { \mathcal { D } }$ to train a powerful feature extractor on batch classification, which can then be used in conjunction with a simple probabilistic model to perform k-shot learning. In 2003, Bakker & Heskes introduced a general probabilistic framework for multi-task learning with multi-head models, in which all parameters of a generic feature extractor are shared between a set of tasks, and only the weights of the top linear layer (the βheadsβ) are task dependent. In the following, we frame k-shot learning in a similar setting and propose a probabilistic framework for $\mathbf { k }$ -shot learning in this vein. Our framework comprises four phases that we refer to as 1) representational learning, 2) concept learning, 3) $k$ -shot learning, and 4) $k$ -shot testing, cf. Fig. 1 (right).
|
| 32 |
+
|
| 33 |
+
We then show that, for certain modelling assumptions, the obtained method is equivalent/related to regularised logistic regression with a specific choice for the regularisation parameter.
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
Figure 1: left: Shared feature extractor $\Phi _ { \varphi }$ and separate top linear layers W and $\widetilde { \mathrm { W } }$ with corresponding softmax units on old and new classes. right: Graphical model for probabilistic $\mathbf { k }$ -shot learning.
|
| 37 |
+
|
| 38 |
+
We provide a high-level description of the probabilistic framework and present a more detailed derivation in Appendix A. While it might appear overly formal, the resulting scheme will be simple and practical, and the probabilistic phrasing will make it extensible and automatic (no free parameters).
|
| 39 |
+
|
| 40 |
+
Feature extractor and representational learning. We first introduce a convolutional neural network (CNN) $\Phi _ { \varphi }$ as feature extractor whose last hidden layer activations are mapped to two sets of softmax output units corresponding to the $\widetilde { C }$ classes in the large dataset $\widetilde { \mathcal { D } }$ and the $C$ classes in the small dataset $\mathcal { D }$ , respectively. These separate mappings are parametrized by weight matrices $\widetilde { \mathrm { W } }$ for the old classes and $\mathrm { W }$ for the new classes. Denoting the output of the final hidden layer as $\mathbf { x } = \Phi _ { \varphi } ( \mathbf { u } )$ , the first softmax units compute $p ( \widetilde { y } _ { n } | \widetilde { \mathbf { x } } _ { n } , \widetilde { \mathbf { W } } ) = \mathrm { s o f f m a x } ( \widetilde { \mathbf { W } } \widetilde { \mathbf { x } } _ { n } )$ and the second $p ( y _ { n } | \mathbf { x } _ { n } , \mathrm { W } ) = \operatorname { s o f t m a x } ( \mathrm { W } \mathbf { x } _ { n } )$ , cf. Fig. 1 (left).
|
| 41 |
+
|
| 42 |
+
For representational learning (phase $^ { l }$ ) the large dataset $\widetilde { \mathcal { D } }$ is used to train the CNN $\Phi _ { \varphi }$ using standard deep learning optimisation approaches. This involves learning the parameters $\varphi$ of the feature extractor up to the last hidden layer, as well as the softmax weights $\widetilde { \mathrm { W } }$ . The network parameters $\varphi$ are fixed from this point on and shared across later phases.
|
| 43 |
+
|
| 44 |
+
Probabilistic modelling. The next goal is to build a probabilistic method for $\mathrm { k }$ -shot prediction that transfers structure from the trained softmax weights $\widetilde { \mathrm { W } }$ to the new $\mathbf { k }$ -shot softmax weights $\mathrm { W }$ and combines it with the $\mathbf { k }$ -shot training examples. Thus, given a test image $\mathbf { u } ^ { * }$ during $k$ -shot testing (phase 4), we compute its feature representation $\mathbf { x } ^ { * } = \Phi ( \mathbf { u } ^ { * } )$ , and the prediction for the new label $y ^ { * }$ is found by averaging the softmax outputs over the posterior distribution of the softmax weights given the two datasets,
|
| 45 |
+
|
| 46 |
+
$$
|
| 47 |
+
p ( y ^ { * } \mid \mathbf { x } ^ { * } , \mathcal { D } , \widetilde { \mathcal { D } } ) = \int p ( y ^ { * } \mid \mathbf { x } ^ { * } , \mathbf { W } ) p ( \mathbf { W } \mid \mathcal { D } , \widetilde { \mathcal { D } } ) \mathrm { d } \mathbf { W } .
|
| 48 |
+
$$
|
| 49 |
+
|
| 50 |
+
To this end, we consider a general class of probabilistic models in which the two sets of softmax weights are generated from shared hyperparameters $\theta$ , so that $p ( \widetilde { \mathrm { W } } , \mathrm { W } , \theta ) = p ( \theta ) p ( \widetilde { \mathrm { W } } | \theta ) p ( \mathrm { W } | \theta )$ as indicated in the graphical model in Fig. 1 (right). In this way, the large dataset $\widetilde { \mathcal { D } }$ contains information about $\theta$ that in turn constrains the new softmax weights W. We further assume that there is very little uncertainty in $\widetilde { \mathrm { W } }$ once the large initial training set is observed and so a maximum a posteriori (MAP) estimate, as returned by standard deep learning, suffices. As a consequence of this approximation and the structure of the model, the original data $\widetilde { \mathcal { D } }$ are not required for the $\mathbf { k }$ -shot learning phase. Instead, the weights learned from these data, ${ \widetilde { \mathrm { W } } } ^ { \mathrm { M A P } }$ , can themselves be treated as observed data, which induce a predictive distribution over the $\mathbf { k }$ -shot weights $p ( \mathrm { W } | \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } )$ via Bayesβ rule. This argument is fully explained in Appendix A. We refer to this step as concept learning (phase 2) and note that all probabilistic modelling happens in the definition of $p ( \widetilde { \mathrm { W } } , \mathrm { W } , \theta )$ , (see Secs. 2.2 and 2.3).
|
| 51 |
+
|
| 52 |
+
During $k$ -shot learning (phase 3) we treat this predictive distribution as our new prior on the weights and again use Bayesβ rule to combine it with the softmax likelihood of the $\mathbf { k }$ -shot training examples $\mathcal { D }$ to obtain a new posterior over the weights that now also incorporates $\mathcal { D }$ ,
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
p ( \mathbf { W } \mid \mathcal { D } , \widetilde { \mathcal { D } } ) \approx p ( \mathbf { W } \mid \mathcal { D } , \widetilde { \mathbf { W } } ^ { \mathrm { M A P } } ) \propto p ( \mathbf { W } \mid \widetilde { \mathbf { W } } ^ { \mathrm { M A P } } ) \prod _ { n = 1 } ^ { N } p ( y _ { n } | \mathbf { x } _ { n } , \mathbf { W } ) .
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
Finally, we approximate Eq. (2) by its MAP estimate ${ \mathrm { W } } ^ { \mathrm { M A P } }$ , so that the integral in Eq. (1) becomes
|
| 59 |
+
|
| 60 |
+
$$
|
| 61 |
+
p ( y ^ { * } \mid \mathbf { x } ^ { * } , \mathcal { D } , \widetilde { \mathcal { D } } ) \approx p ( y ^ { * } \mid \mathbf { x } ^ { * } , \mathcal { D } , \widetilde { \mathbf { W } } ^ { \mathrm { M A P } } ) \approx p ( y ^ { * } \mid \mathbf { x } ^ { * } , \mathbf { W } ^ { \mathrm { M A P } } ) .
|
| 62 |
+
$$
|
| 63 |
+
|
| 64 |
+
# 2.2 CHOOSING A MODEL FOR THE WEIGHTS
|
| 65 |
+
|
| 66 |
+
The probabilistic model over the weights is key: a good model will transfer useful knowledge that improves performance. However, the usual trade-off between model complexity and learnability is particularly egregious in our setting as the weights $\widetilde { \mathrm { W } }$ are few and high-dimensional and the number of $\mathbf { k }$ -shot samples is small. With an eye on simplicity, we make two simplifying assumptions. First, treating the weights from the hidden layer to the softmax outputs as a vector, we assume independence.
|
| 67 |
+
|
| 68 |
+
Second, we assume the distribution between the weights of old and new classes to be identical,
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
p ( \widetilde { \mathbf { W } } , \mathbf { W } , \theta ) = p ( \theta ) \prod _ { c ^ { \prime } = 1 } ^ { \widetilde { C } } p ( \widetilde { \mathbf { w } } _ { c ^ { \prime } } | \theta ) \prod _ { c = 1 } ^ { C } p ( \mathbf { w } _ { c } | \theta ) \mathrm { w h e r e } p ( \widetilde { \mathbf { w } } _ { c ^ { \prime } } | \theta ) \overset { \mathrm { d i s t } } { = } p ( \mathbf { w } _ { c } | \theta ) .
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
After extensive testing, we found that a Gaussian model for the weights strikes the best compromise in the trade-off between complexity and learnability, cf. Sec. 4.2 for a detailed model comparison.
|
| 75 |
+
|
| 76 |
+
# 2.3 GAUSSIAN MODEL AND ITS RELATION TO LOGISTIC REGRESSION
|
| 77 |
+
|
| 78 |
+
Our method. We use a simple Gaussian model $p ( \mathbf { w } | \boldsymbol { \theta } ) = \mathcal { N } ( \mathbf { w } | \boldsymbol { \mu } , \boldsymbol { \Sigma } )$ with its conjugate Normalinverse-Wishart prior $p ( \theta ) = p ( \mu , \Sigma ) = \mathcal { N } \mathcal { T } \mathcal { W } ( \mu , \Sigma | \mu _ { 0 } , \kappa _ { 0 } , \Lambda _ { 0 } , \nu _ { 0 } )$ , and estimate MAP solutions for the parameters $\theta ^ { \mathrm { M A P } } = \{ \mu ^ { \mathrm { M A P } } , \Sigma ^ { \mathrm { M A P } } \}$ |. The approximations discussed in Sec. 2.1 lead to $p ( \mathrm { W } \mid \tilde { \mathcal { D } } ) \approx p ( \mathrm { W } \mid \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } ) = \mathcal { N } ( \mathrm { W } \mid \mu ^ { \mathrm { M A P } } , \Sigma ^ { \mathrm { M A P } } )$ , and the posterior at $\mathbf { k }$ -shot time becomes
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
p ( \mathrm { W } | \mathcal { D } , \widetilde { \mathcal { D } } ) \propto \mathcal { N } ( \mathrm { W } | \mu ^ { \mathrm { M A P } } , \Sigma ^ { \mathrm { M A P } } ) \prod _ { n = 1 } ^ { N } p ( y _ { n } | \mathbf { x } _ { n } , \mathrm { W } ) .
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
For details see Appendix C.1. For $\mathrm { k }$ -shot testing we use the MAP estimates for the weights of the new classes. We found that restricting the covariance matrix to be isotropic, $\Sigma = \sigma ^ { 2 } \mathrm { I }$ , performed best at $\mathbf { k }$ -shot learning, probably due to the small number of data points to learn from as mentioned above.
|
| 85 |
+
|
| 86 |
+
Relation to logistic regression. Standard logistic regression corresponds to the maximum likelihood (MLE) solution of the softmax likelihood $p ( y _ { n } \mid \mathbf { x } _ { n } , \mathrm { W } ) \ = \ \mathrm { s o f t m a x } ( \mathrm { W } \mathbf { x } _ { n } )$ . Often, $L _ { 2 }$ - regularisation on the weights W with inverse regularisation strength $1 / C _ { \mathrm { r e g } }$ is used; the solution to this regularised optimisation problem corresponds to the MAP solution of a model with isotropic Gaussian prior on the weights with zero mean: This method is analogous to Eq. (5). However, $\begin{array} { r } { p ( \mathrm { W } | \mathcal { D } ) \propto \mathcal { N } ( \mathrm { W } | 0 , \frac { 1 } { 2 } C _ { \mathrm { r e g } } \mathrm { I } ) \prod _ { n = 1 } ^ { N } p ( y _ { n } | \mathbf { x } _ { n } , \mathrm { W } ) } \end{array}$ i) modelling assumptions and approximations are made explicit, ii) it is strictly more general and can incorporate non-zero means $\mu ^ { \mathrm { { \dot { M A P } } } }$ , whereas standard regularised logistic regression assumes zero mean, and iii) the probabilistic interpretation provides a principled way of choosing the regularisation constant using the trained weights $\widetilde { \mathrm { W } }$ : $C _ { \mathrm { r e g } } = 2 \sigma _ { \mathrm { W } } ^ { 2 }$ , where $\sigma _ { \widetilde { \mathrm { W } } } ^ { 2 }$ is the empirical variance of the weights ${ \widetilde { \mathrm { W } } } ^ { \mathrm { M A P } }$ . In $\mathbf { k }$ f f-shot learning, alternative (frequentist) methods such as cross-validation suffer in the face of the small number of $\mathbf { k }$ -shot examples, and are not applicable in 1-shot learning at all.
|
| 87 |
+
|
| 88 |
+
# 3 RELATED WORK
|
| 89 |
+
|
| 90 |
+
Embedding methods map the k-shot training and test points into a non-linear space and perform classification by assessing which training points are closest, according to a metric, to the test points. Siamese Networks (Koch et al., 2015) train the embedding using a same/different prediction task derived from the original dataset and use a weighted $L _ { 1 }$ metric for classification. Matching Networks (Vinyals et al., 2016) construct a set of $\mathbf { k }$ -shot learning tasks from the original dataset to train an embedding defined through an attention mechanism that linearly combines training labels weighted by their proximity to test points. More recently, Prototypical Networks (Snell et al., 2017) are a streamlined version of Matching Networks in which embedded classes are summarised by their mean in the embedding space. These embedding methods learn representations for $\mathbf { k }$ -shot learning, but do not directly leverage concept transfer.
|
| 91 |
+
|
| 92 |
+
Amortised optimisation methods (Ravi & Larochelle, 2017) also simulate related k-shot learning tasks from the initial dataset, but instead train a second network to initialise and optimise a CNN to perform accurate classification on these small datasets. This method can then be applied for new k-shot tasks.
|
| 93 |
+
|
| 94 |
+
Importantly, both embedding and amortised inference methods improve when the system is trained for a specific $k$ -shot task: to perform well in 5-shot learning, training is carried out with episodes containing 5 examples in each class. The general statement appears to be that training specifically for $\mathbf { k }$ -shot learning is essential for building features which generalise well at $\mathbf { k }$ -shot testing time. The approach proposed in this paper is more flexible; it is not tailored for a specific $k$ and, thus, does not require retraining when switching, e.g., from 5-shot to 10-shot learning. Moreover, Snell et al. (2017)
|
| 95 |
+
|
| 96 |
+
find that using a larger number of $\mathbf { k }$ -shot classes for the training episodes (e.g., train with $2 0 \mathrm { k }$ -shot classes per episode when testing on only 5 new $\mathbf { k }$ -shot classes) can be beneficial, and they choose this number by cross-validation on a validation-set. This is in alignment with our finding that training with more data and more classes improves performance at $\mathbf { k }$ -shot time.
|
| 97 |
+
|
| 98 |
+
Deep probabilistic methods include the approach developed in this paper. The methods in this family are not unique to deep learning, and the idea of treating weights as data from which to transfer has been widely applied in multi-task learning (Bakker & Heskes, 2003). The work most closely related to our own is not an approach to $\mathbf { k }$ -shot learning per se, but rather a method for training CNNs with highly imbalanced classes (Srivastava & Salakhutdinov, 2013). It is similar in that it trains a form of Gaussian mixture model over the final layer weights using MAP inference that regularises learning. Burgess et al. (2016) propose an elegant approach to $\mathbf { k } .$ -shot learning that is an instance of the framework described here: a Gaussian model is fit to the weights with MAP inference. The evaluation is promising, but preliminary. One of the goals of this paper is to provide a comprehensive evaluation. While not using a probabilistic approach, Qiao et al., 2017 develop a method for $\mathbf { k }$ -shot learning that trains a recognition model to amortise MAP inference for the softmax weights which can then be used at k-shot learning time. While this method trains the mapping from activation to weights jointly with the classifier, and thus does not learn from the weights per se, it does exploit the structure in the weights for k-shot learning.
|
| 99 |
+
|
| 100 |
+
# 4 EXPERIMENTS
|
| 101 |
+
|
| 102 |
+
The code used to produce the following experiments will be made available after review.
|
| 103 |
+
|
| 104 |
+
Dataset. miniImageNet has become a standard testbed for k-shot learning and is derived from the ImageNet ILSVRC12 dataset (Russakovsky et al., 2015) by extracting 100 out of the 1000 classes. Each class contains 600 images downscaled to $8 4 \times 8 4$ pixels. We use the 100 classes (64 train, 16 validation, 20 test) proposed by Ravi & Larochelle (2017). As our approach does not require a validation set, we use both the training and validation data for the representational learning.
|
| 105 |
+
|
| 106 |
+
Representational learning. We employ standard CNNs that are inspired by ResNet-34 (He et al., 2016) and VGG (Simonyan & Zisserman, 2014) for the representational learning on the $\widetilde { C }$ base classes, cf. Phase 1 in Sec. 2.1. These trained networks provide both ${ \widetilde { \mathrm { W } } } ^ { \mathrm { M A P } }$ and the fixed feature representation $\Phi _ { \varphi }$ for the $\mathbf { k }$ -shot learning and testing. We employed standard data augmentation from ImageNet for the representational learning but highlight that no data augmentation was used during the $\mathbf { k }$ -shot training and testing. For details on the architecture, training, and data augmentation see Appendix D.4. t-SNE embeddings (Van der Maaten & Hinton, 2008) of the learned last layer weights show sensible clusters, which highlights the structure exploited by the probabilistic model, see Appendix E.1.
|
| 107 |
+
|
| 108 |
+
Baselines and competing methods. We compare against several baselines as well as recent stateof-the-art methods mentioned in Sec. 3. The baselines are computed on the features $\mathbf { x } = \Phi _ { \phi } ( \mathbf { u } )$ from the last hidden layer of the trained CNN: (i) Nearest Neighbours with cosine distance and (ii) regularized logistic regression with regularisation constant set either by cross-validation or (iii) using the variance of the weights, $C = 2 \sigma _ { W } ^ { 2 }$ , as motivated by our probabilistic framework, cf. Sec. 2.3. We also compare against three recent $\mathbf { k }$ -shot methods: (i) Matching Networks1 (Vinyals et al., 2016), (ii) Prototypical Networks, with numbers reported from Snell et al., 2017 and (iii) Meta-learner LSTM, with numbers reported from Ravi & Larochelle, 2017.
|
| 109 |
+
|
| 110 |
+
Testing protocol. We evaluate the methods on 600 random k-shot tasks by randomly sampling 5 classes from the 20 test classes and perform 5-way $\mathbf { k }$ -shot learning. Following Snell et al. (2017), we use 15 randomly selected images per class for $\mathbf { k }$ -shot testing to compute accuracies and calibration.
|
| 111 |
+
|
| 112 |
+
# 4.1 RESULTS ON miniIMAGENET
|
| 113 |
+
|
| 114 |
+
Overall k-shot performance. We report performance on the miniImageNet dataset in Tab. 1 and Figs. 2 and 3. The best method uses as feature extractor a modified ResNet-34 with 256 features, trained with all 600 examples per training class, and a simple isotropic Gaussian model on the weights for concept learning. Despite its simplicity, our method achieves state-of-the-art and beats prototypical networks by a wide margin of about $6 \%$ . The baseline methods using the same feature extractor are also state-of-the-art compared to prototypical networks and both logistic regressions show comparable accuracy to our methods except for on 1-shot learning. In terms of log-likelihoods, Log Reg $\bar { C } = 2 \sigma _ { \widetilde { W } } ^ { 2 } )$ ) fares slightly better, whereas Log Reg (cv) is much worse.
|
| 115 |
+
|
| 116 |
+
Table 1: Accuracy on 5-way classification on miniImageNet. Our best method, an isotropic Gaussian model using ResNet-34 features consistently outperforms all competing methods by a wide margin.
|
| 117 |
+
|
| 118 |
+
<table><tr><td>Method</td><td>1-shot</td><td>5-shot</td><td>10-shot</td></tr><tr><td>ResNet-34 + Isotropic Gaussian (ours)</td><td>56.3 Β± 0.4%</td><td>73.9 Β± 0.3%</td><td>78.5 Β± 0.3%</td></tr><tr><td>Matching Networks (reimplemented, 1-shot)</td><td>46.8 Β± 0.5%</td><td>=</td><td></td></tr><tr><td>Matching Networks (reimplemented, 5-shot)</td><td></td><td>62.7 Β± 0.5%</td><td></td></tr><tr><td>Meta-LearnerLSTM(Ravi&Larochelle,2017)</td><td>43.4 Β± 0.8%</td><td>60.6 Β± 0.7%</td><td></td></tr><tr><td>Prototypical Nets (1-shot) (Snell et al., 2017)</td><td>49.4 Β± 0.8%</td><td>65.4 Β± 0.7%</td><td></td></tr><tr><td>Prototypical Nets (5-shot) (Snell et al., 2017)</td><td>45.1 Β± 0.8%</td><td>68.2 Β± 0.7%</td><td></td></tr></table>
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
Figure 2: Results for miniImageNet with ResNet-34 style architecture and 600 training images per class. From left to right: accuracy and log likelihood (higher is better) for different k, Expected Calibration Error (ECE, lower is better) vs accuracy for 5-shot learning, and Calibration curve for 5-shot learning. Results on other architectures can be found in Appendix E.2
|
| 122 |
+
|
| 123 |
+
Deeper features lead to better k-shot learning. We investigate the influence of different feature extractors of increasing complexity on performance in Fig. 3: i) a VGG style network (500 train images per class), ii) a ResNet-34 (500 examples per class), and iii) a ResNet-34 (all 600 examples per class). We find that the complexity of the feature extractor as well as training set size consistently correlate with the accuracy at $\mathbf { k }$ -shot time. For instance, on 5-shot, Gauss (iso) achieves $6 5 \%$ accuracy with a VGG network and $7 4 \%$ with a ResNet trained with all available data, a significant increase of almost $1 0 \%$ . Moreover, Gauss (iso) outperforms Log Reg $( C = 2 \sigma _ { W } ^ { 2 } )$ on 1-shot learning across fmodels, and performs similarly on 5- and 10-shot. We attribute the difference to the formerβs ability to also model the mean of the Gaussian, whereas logistic regression assumes a zero mean.
|
| 124 |
+
|
| 125 |
+
Importantly, this result implies that training specifically for $\mathbf { k }$ -shot learning is not necessary for achieving high generalisation performance on this $\mathbf { k }$ -shot problem. On the contrary, training a powerful deep feature extractor on batch classification using all of the available training data, then building a simple probabilistic model using the learned features and weights achieves state-of-the-art. Recent models that use episodic training cannot leverage such deep feature extractors as for them the depth of the model is limited by the nature of training itself. The reference baseline in the $\mathbf { k }$ -shot learning literature is nearest neighbours, which performs on par with Gauss (iso) on 1-shot learning but is outperformed by all methods on 5- and 10-shot. This is evidence that building a simple classifier on top of the learned features works significantly better for k-shot learning than nearest neighbours.
|
| 126 |
+
|
| 127 |
+
Calibration. A classifier is said to be calibrated when the probability it predicts for belonging to a given class is on par with the probability of it being the correct prediction. In other words, when examples for which it predicts a probability $p$ of belonging to a given class are correctly classified for a fraction $p$ of the examples. A calibration curve visualises the proportion of examples correctly classified as a function of their predicted probability; a perfectly calibrated classifier should result in a diagonal line. Following Guo et al. (2017), we consider the log likelihood on the $\mathbf { k }$ -shot test examples as well as Expected Calibration Error (ECE) as summary measures of calibration. ECE can be interpreted as the weighted average of the distance of the calibration curve to the diagonal. We find that Log Reg $C = 2 \bar { \sigma } _ { \widetilde { W } } ^ { 2 } ,$ ) and Gauss (iso) provide better accuracy and calibration than Log fReg (cross-validation), cf. Fig. 2. The difference in calibration quality for different regularisations of logistic regression highlights the importance of choosing the right constant, as we discuss now.
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 3: Comparison of different network architectures and training set sizes on the k-shot learning task: VGG style network (trained on 500 images per class) and ResNet-34 style network (trained on 500 and 600 images per class, respectively). Both, deeper networks and larger number of training images, give rise to features that transfer better to k-shot learning.
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
Figure 4: Choice of regularisation constant for logistic regression for $\mathbf { k }$ -shot learning. Results for $C _ { \mathrm { r e g } } ^ { - } = 2 \sigma _ { \mathrm { W } } ^ { 2 }$ are drawn as black triangles. Dashed lines correspond to logistic regression with crossfvalidated (changing) regularisation constant. Colour brightness of the markers ranges from dark $( C = 1 0 ^ { - 5 }$ ) to bright $C = 1 0 $ ). ECE plots are provided in Appendix E.3.
|
| 134 |
+
|
| 135 |
+
Choice of the regularisation constant for logistic regression. The results so far suggest that training a simple linear model such as regularised logistic regression might be sufficient to perform well in $\mathbf { k }$ -shot learning. However, while the accuracy at $\mathbf { k }$ -shot time does not vary dramatically as the regularisation constant changes, the calibration does, and jointly maximizing both quantities is not possible, cf. the first two plots of Fig. 4. The standard (frequentist) method to tune this constant is cross validation, which is not applicable in the 1-shot setting, and suffers from lack of data in 5- and 10-shot. Contrary, our probabilistic framework provides a principled way of selecting this regularisation parameter by transfer from the training weights: Log Reg $\dot { ( } C = 2 \dot { \sigma } _ { \widetilde { W } } ^ { 2 }$ ) strikes a good fbalance between accuracy and log-likelihood. The third plot in Fig. 4 reports log-likelihood as a function of accuracy and provides further visualisation of the achieved trade-off between accuracy and calibration for Log Reg $( C = 2 \sigma _ { W } ^ { 2 } )$ ), as well as the failure of Log Reg (cross-validation) to fachieve a good compromise in 5- and 10-shot.
|
| 136 |
+
|
| 137 |
+
Evaluation in an online setting. We also briefly consider the online setting, in which we jointly test on 80 old and 5 new classes, for which catastrophic forgetting (French, 1999) is a well known problem. During $\mathbf { k }$ -shot learning and testing we employ a softmax which includes both the new and the old weights resulting in a total of 85 weight vectors. We utilise ResNet-34 trained on 500 images per class to retain 100 test images on the old classes. While the k-shot weights were modelled probabilistically, we use the MAP estimate $\widetilde { W } ^ { \mathrm { M A P } }$ for the old weights. Accuracies are reported in
|
| 138 |
+
|
| 139 |
+

|
| 140 |
+
Figure 5: Online learning with ResNet-34 features. Gauss (iso) and Log Reg $( 2 \sigma _ { \widetilde { W } } ^ { 2 } )$ strike a good ftrade-off between learning on new classes and forgetting of old classes. Unregularised Log Reg (MLE) and Log Reg $( 2 \sigma _ { \widetilde { W } } ^ { 2 }$ , only new), which has not been trained in the presence of the old weights, either fcompletely forget the old classes or do not learn anything, respectively.
|
| 141 |
+
|
| 142 |
+
Fig. 5 for i) all the 85 classes, ii) the old 80 classes only, and iii) the new 5 classes only. For 5- and 10-shot, Gauss (iso) and Log Reg $( 2 \sigma _ { \widetilde { W } } ^ { 2 } )$ only lose a couple of percent on the accuracy of the old fclasses, and perform well on the new classes, striking a good trade-off between forgetting and learning at k-shot time. For unregularised (MLE) logistic regression, the new weights completely dominate the old ones, highlighting that the right regularisation is important. Yet, cross-validation in this setting is often very challenging. When training Logistic Regression without including the old weights (βonly newβ), the new weights are dominated by the old ones and fail to learn the new classes, making training in the presence of the old weights an essential component for online learning.
|
| 143 |
+
|
| 144 |
+
# 4.2 MODEL COMPARISON ON CIFAR-100
|
| 145 |
+
|
| 146 |
+
We performed an extensive comparison between different probabilistic models of the weights using different inference procedures, which we present in Appendix E.4. We report results on the CIFAR-100 dataset on (i) Gaussian, (ii) mixture of Gaussians, and (iii) Laplace, all with either MAP estimation or Hybrid Monte Carlo sampling. We found that the simple Gaussian model is on par with or outperforms other methods at k-shot time, which we attribute to it striking a good balance between choosing a complex model, which may better fit the weights, and statistical efficiency, as the number of weights $\widetilde { C }$ (80 in our case) is often smaller than the dimensionality of the feature representation (256 in our case), cf. Sec. 2. This finding is supported by computing the log-likelihood of held out training weights under such model, with the Gaussian model performing best. Experiments using Hybrid Monte Carlo sampling for $\mathbf { k }$ -shot learning returned very similar performance to MAP estimation and at a much higher computational cost, due to the difficulty of performing sampling in such a high dimensional parameter space. Our recommendation is that practitioners should use simple models and employ simple inference schemes to estimate all free parameters thereby avoiding expending valuable data on validation sets.
|
| 147 |
+
|
| 148 |
+
# 5 CONCLUSION
|
| 149 |
+
|
| 150 |
+
We present a probabilistic framework for $\mathbf { k }$ -shot learning that exploits the powerful features and class information learned by a neural network on a large training dataset. Probabilistic models are then used to transfer information in the network weights to new classes. Experiments on miniImageNet using a simple Gaussian model within our framework achieve state-of-the-art for 1-shot and 5-shot learning by a wide margin, and at the same time return well calibrated predictions. This finding is contrary to the current belief that episodic training is necessary to learn good $\mathbf { k }$ -shot features and puts the success of recent complex deep learning approaches to $\mathbf { k }$ -shot learning into context. The new approach is flexible and extensible, being applicable to general discriminative models and $\mathbf { k } .$ - shot learning paradigms. For example, preliminary results on online $\mathbf { k }$ -shot learning indicate that the probabilistic framework mitigates catastrophic forgetting by automatically balancing performance on the new and old classes.
|
| 151 |
+
|
| 152 |
+
The Gaussian model is closely related to regularised logistic regression, but provides a principled and fully automatic way to regularise. This is particularly important in $\mathbf { k }$ -shot learning, as it is a low-data regime, in which cross-validation performs poorly and where it is important to train on all available data, rather than using validation sets.
|
| 153 |
+
|
| 154 |
+
# REFERENCES
|
| 155 |
+
|
| 156 |
+
Bart Bakker and Tom Heskes (2003). Task Clustering and Gating for Bayesian Multitask Learning. Journal of Machine Learning Research 4, pp. 83β99.
|
| 157 |
+
|
| 158 |
+
Jordan Burgess, James Robert Lloyd, and Zoubin Ghahramani (2016). One-Shot Learning in Discriminative Neural Networks. NIPS Bayesian Deep Learning workshop.
|
| 159 |
+
|
| 160 |
+
Robert M French (1999). Catastrophic forgetting in connectionist networks. Trends in cognitive sciences 3.4, pp. 128β135.
|
| 161 |
+
|
| 162 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger (2017). On Calibration of Modern Neural Networks. arXiv e-print: 1706.04599.
|
| 163 |
+
|
| 164 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun (2016). Deep Residual Learning for Image Recognition. In: The IEEE Conference on Computer Vision and Pattern Recognition (CVPR). eprint: 1512.03385.
|
| 165 |
+
|
| 166 |
+
Gregory Koch, Richard Zemel, and Ruslan Salakhutdinov (2015). Siamese neural networks for oneshot image recognition. Deep Learning workshop, International Conference of Machine Learning.
|
| 167 |
+
|
| 168 |
+
Brenden Lake, Ruslan Salakhutdinov, and Joshua Tenenbaum (2015). Human-level concept learning through probabilistic program induction. Science 350.6266, pp. 1332β1338.
|
| 169 |
+
|
| 170 |
+
Siyuan Qiao, Chenxi Liu, Wei Shen, and Alan Yuille (2017). Few-Shot Image Recognition by Predicting Parameters from Activations. arXiv e-print: 1706.03466.
|
| 171 |
+
|
| 172 |
+
Sachin Ravi and Hugo Larochelle (2017). Optimization as a model for few-shot learning. In: International Conference on Learning Representations. Vol. 1. 2, p. 6.
|
| 173 |
+
|
| 174 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei (2015). ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV) 115.3, pp. 211β252. DOI: 10.1007/s11263-015-0816-y.
|
| 175 |
+
|
| 176 |
+
Karen Simonyan and Andrew Zisserman (2014). Very deep convolutional networks for large-scale image recognition. arXiv e-print:1409.1556.
|
| 177 |
+
|
| 178 |
+
Jake Snell, Kevin Swersky, and Richard Zemel (2017). Prototypical Networks for Few-shot Learning. arXiv e-print: 1703.05175.
|
| 179 |
+
|
| 180 |
+
Nitish Srivastava and Ruslan R Salakhutdinov (2013). Discriminative transfer learning with treebased priors. In: Advances in Neural Information Processing Systems, pp. 2094β2102.
|
| 181 |
+
|
| 182 |
+
Laurens Van der Maaten and Geoffrey Hinton (2008). Visualizing Data using t-SNE. Journal of Machine Learning Research 9, pp. 2579β2605.
|
| 183 |
+
|
| 184 |
+
Oriol Vinyals, Charles Blundell, Tim Lillicrap, Daan Wierstra, et al. (2016). Matching networks for one shot learning. In: Advances in Neural Information Processing Systems, pp. 3630β3638.
|
| 185 |
+
|
| 186 |
+
# Appendix to βDiscriminative $\mathbf { k }$ -shot learning using probabilistic modelsβ
|
| 187 |
+
|
| 188 |
+
A DETAILS ON THE DERIVATION AND APPROXIMATIONS FROM SEC. 2.1
|
| 189 |
+
|
| 190 |
+
As stated in the main text, the probabilistic $\mathbf { k }$ -shot learning approach comprises four phases mirroring the dataflow:
|
| 191 |
+
|
| 192 |
+
Phase 1: Representational learning. The large dataset $\widetilde { \mathcal { D } }$ is used to train the CNN $\Phi _ { \varphi }$ using standard deep learning optimisation approaches. This involves learning both the parameters $\varphi$ of the feature extractor up to the last hidden layer, as well as the softmax weights $\widetilde { \mathrm { W } }$ . The network parameters $\varphi$ are fixed from this point on and shared across phases. This is a standard setup for multitask learning and in the present case it ensures that the features derived from the representational learning can be leveraged for $\mathbf { k }$ -shot learning.
|
| 193 |
+
|
| 194 |
+
Phase 2: Concept learning. The softmax weights $\widetilde { \mathrm { W } }$ are effectively used as data for concept learning by training a probabilistic model that detects structure in these weights which can be transferred for $\mathbf { k }$ -shot learning. This approach will be justified in the next section. For the moment, we consider a general class of probabilistic models in which the two sets of weights are generated from shared hyperparameters $\theta$ , so that $p ( \widetilde { \mathrm { W } } , \mathrm { W } , \theta ) = p ( \theta ) p ( \widetilde { \mathrm { W } } | \theta ) p ( \mathrm { W } | \theta )$ (see Fig. 1).
|
| 195 |
+
|
| 196 |
+
Phases 3 and ${ \bf 4 } \colon { \bf k }$ -shot learning and testing. Probabilistic $\mathbf { k }$ -shot learning leverages the learned representation $\Phi _ { \varphi }$ from phase 1 and the probabilistic model $p ( \widetilde { \mathrm { W } } , \mathrm { W } , \theta )$ from phase 2 to build a (posterior) predictive model for unseen new examples using examples from the small dataset $\mathcal { D }$ .
|
| 197 |
+
|
| 198 |
+
PROBABILISTIC MODEL OF THE WEIGHTS
|
| 199 |
+
|
| 200 |
+
Given the dataflow and the assumed probabilistic model in Fig. 1 (right), a completely probabilistic approach would involve the following steps.
|
| 201 |
+
|
| 202 |
+
In the concept learning phase, the initial dataset would be used to form the posterior distribution over the concept hyperparameters $p ( \boldsymbol { \theta } \mid \widetilde { \mathcal { D } } )$ . The $\mathbf { k }$ -shot learning phase combines the information about the new weights provided by $\widetilde { \mathcal { D } }$ with the information in the k-shot dataset $\mathcal { D }$ to form the posterior distribution
|
| 203 |
+
|
| 204 |
+
$$
|
| 205 |
+
p ( \mathrm { W } \mid \mathcal { D } , \widetilde { \mathcal { D } } ) \propto p ( \mathrm { W } \mid \widetilde { \mathcal { D } } ) \prod _ { n } p ( y _ { n } \mid \mathbf { x } _ { n } , \mathrm { W } ) \mathrm { w h e r e } p ( \mathrm { W } \mid \widetilde { \mathcal { D } } ) = \int p ( \mathrm { W } \mid \theta ) p ( \theta \mid \widetilde { \mathcal { D } } ) \mathrm { d } \theta .
|
| 206 |
+
$$
|
| 207 |
+
|
| 208 |
+
To see this, notice that
|
| 209 |
+
|
| 210 |
+
$$
|
| 211 |
+
\begin{array} { r } { p ( \mathrm { W } | \mathcal { D } , \widetilde { \mathcal { D } } ) \propto p ( \mathrm { W } , \mathcal { D } , \widetilde { \mathcal { D } } ) = p ( \widetilde { \mathcal { D } } ) p ( W | \widetilde { \mathcal { D } } ) p ( \mathcal { D } | \widetilde { \mathcal { D } } , \mathrm { W } ) . } \end{array}
|
| 212 |
+
$$
|
| 213 |
+
|
| 214 |
+
The graphical model in Fig. 1 entails that $\mathcal { D }$ is conditionally independent from $\widetilde { \mathcal { D } }$ given $\mathrm { W }$ , such that
|
| 215 |
+
|
| 216 |
+
$$
|
| 217 |
+
p ( \mathcal { D } \mid \mathrm { W } , \widetilde { \mathcal { D } } ) = p ( \mathcal { D } \mid \mathrm { W } ) = \prod _ { n } p ( y _ { n } \mid x _ { n } , \mathrm { W } ) .
|
| 218 |
+
$$
|
| 219 |
+
|
| 220 |
+
We recover Eq. (6) by adding $p ( \widetilde { \mathcal { D } } )$ to the constant of proportionality.
|
| 221 |
+
|
| 222 |
+
Inference in this model is generally intractable and requires approximations. The main challenge is computing the posterior distribution over the hyper-parameters given the initial dataset. However, progress can be made if we assume that the posterior distribution over the weights can be well approximated by the MAP value $p ( \widetilde { \mathrm { W } } | \widetilde { \mathcal { D } } ) \approx \delta ( \widetilde { \mathrm { W } } - \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } )$ . This is an arguably justifiable assumption as the initial dataset is large and so the posterior will concentrate on narrow modes (with similar predictive performance). In this case $p ( \theta | \mathcal { \widetilde { D } } ) \approx p ( \theta | \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } )$ and, due to the structure of the probabilistic model, all instances of $\widetilde { \mathcal { D } }$ in Eq. (6) and Eq. (1) can be replaced by the analogous expressions involving ${ \widetilde { \mathrm { W } } } ^ { \mathrm { M A P } }$ . This greatly simplifies the learning pipeline as the probabilistic modelling only needs to have access to the weights returned by representational learning. Remaining intractabilities involve only a small number of data points $\mathcal { D }$ and can be handled using standard approximate inference tools. The following summarizes the approximations and computational steps for each phase of training.
|
| 223 |
+
|
| 224 |
+
Phase 1: Representational learning. Deep learning is used to train a CNN. The representation of input images at the last hidden layer, $\mathbf { x } = \Phi _ { \varphi } ( \mathbf { u } )$ , is used in subsequent phases. The final layer softmax weights are assumed to be MAP estimates $\widetilde { \mathrm { W } } ^ { \mathrm { M A P } }$ .
|
| 225 |
+
|
| 226 |
+
Phase 2: Concept learning. A probabilistic model is fit directly to the MAP weights $p ( \theta | \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } ) \propto \bar { p ( \theta ) } p ( \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } | \theta ) .$ . For conjugate models a full posterior can be retained, otherwise a MAP estimate $p ( \theta | \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } ) \approx \delta ( \theta - \theta ^ { \mathrm { M A P } } )$ is used.
|
| 227 |
+
|
| 228 |
+
Phase 3: $\mathbf { k }$ -shot learning. The posterior distribution over the new softmax weights $\begin{array} { r } { p ( \mathrm { W } | \mathcal { D } , \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } ) \propto p ( \mathrm { W } | \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } ) \prod _ { n = 1 } ^ { \tilde { N } } p ( y _ { n } | \mathbf { x } _ { n } , \mathrm { W } ) } \end{array}$ is generally intractable. The posterior can, however, be approximated using the MAP estimate $p ( \mathrm { W } | \mathcal { D } , \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } ) \approx \delta ( \mathrm { W } - \mathrm { W } ^ { \mathrm { M A P } } )$ or through sampling $\mathrm { W } _ { m } \sim p ( \mathrm { W } | \mathcal { D } , \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } )$ . Note that $\begin{array} { r } { p ( \mathrm { W } | \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } ) = \int p ( \mathrm { W } | \boldsymbol { \theta } ) p ( \boldsymbol { \theta } | \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } ) \mathrm { d } \boldsymbol { \theta } } \end{array}$ is analytic for conjugate models and, if instead a MAP estimate for $\theta$ is provided by the concept modelling stage, then $\bar { p } ( \mathrm { W } | \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } ) \approx p ( \mathrm { W } | \theta ^ { \mathrm { M A P } } )$ .
|
| 229 |
+
|
| 230 |
+
Phase 4: $\mathbf { k }$ -shot testing. Approximate inference is used to compute $p ( y ^ { * } \mid \mathbf { x } ^ { * } , \mathcal { D } , \widetilde { \mathrm { W } } ^ { \mathrm { M A P } } ) \ =$ $\begin{array} { r } { \int p ( y ^ { * } \mid \mathbf { x ^ { * } } , \operatorname { W } ) p ( \operatorname { W } \mid \mathcal { D } , \widetilde { \operatorname { W } } ^ { \mathrm { M A P } } ) \mathrm { d W } } \end{array}$ . If the $\mathbf { k }$ -shot learning phase provides a MAP estimate of W then $p ( y ^ { * } \mid \mathbf { x } ^ { * } , \mathcal { D } , \widetilde { \mathbf { W } } ^ { \mathrm { M A P } } ) \ \approx \ p ( y ^ { * } \mid \mathbf { x } ^ { * } , \mathbf { W } ^ { \mathrm { M A P } } )$ . If samples are returned then $\begin{array} { r } { p ( y ^ { * } \mid \mathbf { x } ^ { * } , \mathcal { D } , \widetilde { \mathbf { W } } ^ { \mathrm { M A P } } ) \approx \frac { 1 } { M } \sum _ { m = 1 } ^ { M } p ( y ^ { * } \mid \mathbf { x } ^ { * } , \mathbf { W } _ { m } ) } \end{array}$ .
|
| 231 |
+
|
| 232 |
+
# B APPROXIMATE INFERENCE METHODS
|
| 233 |
+
|
| 234 |
+
In this section we briefly discuss different inference methods for the probabilistic models. In the main text we only considered MAP inference as we found that other more complicated inference schemes do not yield a practical benefit. However, in Appendix E.4 we provide a detailed model comparison, in which we also consider other approximate inference methods.
|
| 235 |
+
|
| 236 |
+
In all cases the gradients of the densities w.r.t. W can be computed, enabling MAP inference in the k-shot learning phase to be efficiently performed via gradient-based optimisation using L-BFGS (Liu & Nocedal, 1989). Alternatively, Markov Chain Monte Carlo (MCMC) sampling can be performed to approximate the associated integral, see Eq. (1). Due to the high dimensionality of the space and as gradients are available, we employ Hybrid Monte Carlo (HMC) (Neal et al., 2011) sampling in the form of the recently proposed NUTS sampler that automatically tunes the HMC parameters (step size and number of leapfrog steps) (Hoffman & Gelman, 2014). For the GMMs we employed pymc3 (Salvatier et al., 2016) to perform MAP inference.
|
| 237 |
+
|
| 238 |
+
# C MODELS FOR THE PRIOR ON THE WEIGHTS
|
| 239 |
+
|
| 240 |
+
As discussed in Sec. 2.1, we specify our model through $p ( \mathrm { W } , \widetilde { \mathrm { W } } , \theta )$ thus defining $p ( \mathrm { W } \vert \widetilde { \mathrm { W } } ^ { M A P } )$ in Eq. (2). This section analyses different priors on the weights: (i) Gaussian models, (ii) Gaussian mixture models, and (iii) Laplace distribution. In the main paper, we only use a Gaussian model with MAP inference, as we saw no significant advantage in using other, more complex models. However, we provide an extensive comparison of the different models in Appendix E.4.
|
| 241 |
+
|
| 242 |
+
# C.1 GAUSSIAN MODEL
|
| 243 |
+
|
| 244 |
+
Possibly the simplest approach consists of modelling $p ( \mathrm { W } | \widetilde { \mathrm { W } } )$ as a Gaussian distribution:
|
| 245 |
+
|
| 246 |
+
$$
|
| 247 |
+
p ( \mathbf { W } \mid \widetilde { \mathbf { W } } ) = \int \mathcal { N } ( \mathbf { W } \mid \boldsymbol { \mu } , \boldsymbol { \Sigma } ) p ( \boldsymbol { \mu } , \boldsymbol { \Sigma } \mid \widetilde { \mathbf { W } } ) \mathrm { d } \boldsymbol { \mu } \mathrm { d } \boldsymbol { \Sigma } .
|
| 248 |
+
$$
|
| 249 |
+
|
| 250 |
+
Details for this section can be found in Murphy, 2012. The normal-inverse-Wishart distribution for $\mu$ and $\Sigma$ is a conjugate prior for the Gaussian, which allows for the posterior to be written in closed form. More precisely,
|
| 251 |
+
|
| 252 |
+
$$
|
| 253 |
+
\begin{array} { l } { { \displaystyle p ( \mu , \Sigma ) = \mathcal { N } T \mathcal { W } ( \mu , \Sigma \mid \mu _ { 0 } , \kappa _ { 0 } , \Lambda _ { 0 } , \nu _ { 0 } ) } } \\ { { \displaystyle \quad = \frac { 1 } { Z } | \Sigma | ^ { - ( \nu _ { 0 } + p ) / 2 + 1 } e ^ { - \frac { 1 } { 2 } t r ( \Lambda _ { 0 } \Sigma ^ { - 1 } ) - \frac { \kappa _ { 0 } } { 2 } ( \mu - \mu _ { 0 } ) ^ { t } \Sigma ^ { - 1 } ( \mu - \mu _ { 0 } ) } , } } \end{array}
|
| 254 |
+
$$
|
| 255 |
+
|
| 256 |
+
where $Z$ is the normalising constant. The posterior $p ( \mu , \Sigma | \widetilde { \mathrm { W } } )$ also follows a normal-inverse-Wishart distribution:
|
| 257 |
+
|
| 258 |
+
$$
|
| 259 |
+
p ( \mu , \Sigma | \widetilde { \mathbf { W } } ) = { \mathcal { N } } \widetilde { \cal T } \mathcal { W } ( \mu , \Sigma | \mu _ { \widetilde { N } } , \kappa _ { \widetilde { N } } , \Lambda _ { \widetilde { N } } , \nu _ { \widetilde { N } } ) ,
|
| 260 |
+
$$
|
| 261 |
+
|
| 262 |
+
where
|
| 263 |
+
|
| 264 |
+
$$
|
| 265 |
+
\begin{array} { r l } & { \displaystyle \mu _ { \widetilde { N } } = \frac { \kappa _ { 0 } } { \kappa _ { 0 } + \widetilde { N } } \mu _ { 0 } + \frac { \widetilde { N } } { \kappa _ { 0 } + \widetilde { N } } \overline { { \widetilde { \mathrm { W } } } } } \\ & { \displaystyle \kappa _ { \widetilde { N } } = \kappa _ { 0 } + \widetilde { N } } \\ & { \displaystyle \Lambda _ { \widetilde { N } } = \Lambda _ { 0 } + S + \frac { \kappa _ { 0 } \widetilde { N } } { \kappa _ { 0 } + \widetilde { N } } ( \overline { { \widetilde { \mathrm { W } } } } - \mu _ { 0 } ) ( \overline { { \widetilde { \mathrm { W } } } } - \mu _ { 0 } ) ^ { t } } \\ & { \displaystyle \nu _ { \widetilde { N } } = \nu _ { 0 } + \widetilde { N } , } \end{array}
|
| 266 |
+
$$
|
| 267 |
+
|
| 268 |
+
and $S$ is the sample covariance of $\widetilde { \mathrm { W } }$ .
|
| 269 |
+
|
| 270 |
+
For this model, we can integrate (9) in closed form, which results in the following multivariate Student $t$ -distribution:
|
| 271 |
+
|
| 272 |
+
$$
|
| 273 |
+
p ( \mathrm { W } | \widetilde { \mathrm { W } } ) = t _ { \nu _ { \widetilde { N } } - p + 1 } \left( \mu _ { \widetilde { N } } , \frac { \Lambda _ { \widetilde { N } } ( \kappa _ { \widetilde { N } } + 1 ) } { \kappa _ { \widetilde { N } } ( \nu _ { \widetilde { N } } - p + 1 ) } \right) .
|
| 274 |
+
$$
|
| 275 |
+
|
| 276 |
+
As with other approaches, one can also compute the MAP solutions for the mean $\mu _ { \mathrm { M A P } }$ and covariance $\Sigma _ { \mathrm { M A P } }$ , such that $p ( \mathrm { W } \mid \widetilde { \mathrm { W } } ) = \mathcal { N } ( \mathrm { W } \mid \mu _ { \mathrm { M A P } } , \Sigma _ { \mathrm { M A P } } )$ .
|
| 277 |
+
|
| 278 |
+
For both the analytic posterior and the MAP approximation, $p ( \mathrm { W } | \widetilde { \mathrm { W } } )$ depends on the hyperparameters of the normal-inverse-Wishart distribution: $\mu _ { 0 } , \nu _ { 0 } , \kappa _ { 0 }$ and $\Lambda _ { 0 }$ . There are different ways to choose these hyperparameters. One way would be by optimising the log probability of held out training weights, see Appendix E.4 for a brief discussion. In practise, it is common to choose uninformative or data dependent priors as discussed by Murphy (2012, Chapter 4).
|
| 279 |
+
|
| 280 |
+
# C.2 MIXTURE OF GAUSSIANS (GMM)
|
| 281 |
+
|
| 282 |
+
A Gaussian mixture model can potentially leverage cluster structure in the weights (animal classes might have similar weights, for example). This is related to the tree-based prior proposed in Srivastava & Salakhutdinov (2013). MAP inference is performed because exact inference is intractable. Similarly to the Gaussian case, different structures for the covariance of each cluster were tested. In our experiments, we fit the parameters of the GMM via maximum likelihood using the EM algorithm. GMM consists on modelling $p ( \mathrm { W } | \widetilde { \mathrm { W } } )$ as a mixture of Gaussians with $S$ components:
|
| 283 |
+
|
| 284 |
+
$$
|
| 285 |
+
\begin{array} { r } { \rho ( \mathbf { W } \mid \widetilde { \mathbf { W } } ) = \displaystyle \int \left( \displaystyle \sum _ { s = 1 } ^ { S } \pi _ { s } \mathcal { N } ( \mathbf { W } \mid \mu _ { s } , \Sigma _ { s } ) \right) p ( \mu _ { 1 } , \dots , \mu _ { S } , \Sigma _ { 1 } , \dots , \Sigma _ { S } \mid \widetilde { \mathbf { W } } ) \mathrm { d } \mu _ { 1 } \dots \mathrm { d } \mu _ { S } \mathrm { d } \Sigma _ { 1 } \dots \mathrm { d } \Sigma _ { S } , } \end{array}
|
| 286 |
+
$$
|
| 287 |
+
|
| 288 |
+
where cluster $\textstyle \sum _ { s = 1 } ^ { S } \pi _ { s } = 1$ . In this work, we only compute the MAP mean and covariance for each of theto averaging over the parameters of the mixture. The resulting posterior is
|
| 289 |
+
|
| 290 |
+
$$
|
| 291 |
+
p ( \mathbf { W } \mid \widetilde { \mathbf { W } } ) = \sum _ { s = 1 } ^ { S } \pi _ { s } \mathcal { N } ( \mathbf { W } \mid \mu _ { M A P , s } , \Sigma _ { M A P , s } ) .
|
| 292 |
+
$$
|
| 293 |
+
|
| 294 |
+
The components of the mixture are fit in two ways. For CIFAR-100, the classes are grouped into 20 superclasses, each containing 5 of the 100 classes. One option is therefore to initialize 20 components, each fit with the data points in the corresponding superclass. For each such individual Gaussian, the MAP inference method presented in the previous section can be used. In order to increase the number of weight examples in each superclass, we merge the original superclasses into 9 larger superclasses. The merging of the superclasses is the following:
|
| 295 |
+
|
| 296 |
+
Aquatic mammals $^ +$ fish
|
| 297 |
+
|
| 298 |
+
β’ flowers $^ +$ fruit and vegetables $^ +$ trees
|
| 299 |
+
β’ insects $^ +$ non-insect invertebrates $^ +$ reptiles
|
| 300 |
+
medium-sized mammals $^ +$ small mammals
|
| 301 |
+
β’ large carnivores $^ +$ large omnivores and herbivores
|
| 302 |
+
β’ people
|
| 303 |
+
β’ large man-made outdoor things $^ +$ large natural outdoor things food containers $^ +$ household electrical devices $^ +$ household furniture β’ Vehicles $1 +$ Vehicles 2.
|
| 304 |
+
|
| 305 |
+
The parameters of the mixture can also be fit using maximum likelihood with EM. We use the implementation of EM in scikit-learn. Both 3 and 10 clusters are considered in CIFAR-100. Weight log-likelihoods under this model and k-shot performance can be found in Appendix E.4.
|
| 306 |
+
|
| 307 |
+
Note that, similarly to the Gaussian model, we consider isotropic, diagonal or full covariance models for the covariance matrices.
|
| 308 |
+
|
| 309 |
+
# C.3 LAPLACE DISTRIBUTION
|
| 310 |
+
|
| 311 |
+
Sparsity is an attractive feature which could be helpful for modelling the weights. Indeed, it is reasonable to assume that each class uses a set of characteristic features which drive classification accuracy, while others are irrelevant. Sparse models would then provide sensible regularization. As such, we consider a product of independent Laplace distribution. Sec. 2.3 highlights the relation between a Gaussian prior on the weights and $L _ { 2 }$ regularised logistic regression. One can similarly show that the Laplace prior is related to $L _ { 1 }$ regularised logistic regression, which is well known for encouraging sparse weight vectors.
|
| 312 |
+
|
| 313 |
+
We consider a prior which factors along the feature dimensions:
|
| 314 |
+
|
| 315 |
+
$$
|
| 316 |
+
p ( \widetilde { \mathbf { W } } | \{ \mu _ { j } \} , \{ \lambda _ { j } \} ) = \prod _ { j } ^ { p } \frac { 1 } { 2 \lambda _ { j } } \exp \left( - \sum _ { i } ^ { \widetilde { C } } \frac { | \widetilde { \mathbf { W } } _ { i j } - \boldsymbol { \mu } _ { j } | } { \lambda _ { j } } \right) .
|
| 317 |
+
$$
|
| 318 |
+
|
| 319 |
+
where the product over $j$ is along the feature dimensions and the sum over $i$ is across the classes. We fit the parameters $\mu$ and $\lambda$ via maximum likelihood:
|
| 320 |
+
|
| 321 |
+
$$
|
| 322 |
+
\begin{array} { l } { \displaystyle \mu _ { \mathrm { M L E } , j } = \mathrm { m e d i a n } _ { i } ( \widetilde { \mathrm { W } } _ { i j } ) } \\ { \displaystyle \lambda _ { \mathrm { M L E } , j } = \frac { 1 } { N } \sum _ { i } | \widetilde { \mathrm { W } } _ { i j } - \mu _ { j } | , } \end{array}
|
| 323 |
+
$$
|
| 324 |
+
|
| 325 |
+
such that
|
| 326 |
+
|
| 327 |
+
$$
|
| 328 |
+
p ( \mathrm { W } | \widetilde { \mathrm { W } } ) = \prod _ { j } ^ { p } \frac { 1 } { 2 \lambda _ { \mathrm { M L E } , j } } \exp \left( - \sum _ { i } ^ { C } \frac { | \mathrm { W } _ { i j } - \mu _ { \mathrm { M L E } , j } | } { \lambda _ { \mathrm { M L E } , j } } \right) .
|
| 329 |
+
$$
|
| 330 |
+
|
| 331 |
+
An isotropic Laplace model with mean $\mu$ and scale $\lambda$ is also considered:
|
| 332 |
+
|
| 333 |
+
$$
|
| 334 |
+
p ( \widetilde { \mathrm { W } } \left| \mu , \lambda \right) = \frac { 1 } { 2 \lambda } \exp \left( - \frac { \sum _ { i j } \left| \widetilde { \mathrm { W } } _ { i j } - \mu \right| } { \lambda } \right) ,
|
| 335 |
+
$$
|
| 336 |
+
|
| 337 |
+
where
|
| 338 |
+
|
| 339 |
+
$$
|
| 340 |
+
\begin{array} { l } { \displaystyle \mu _ { \mathrm { M L E } } = \mathrm { m e d i a n } ( \widetilde { \mathrm { W } } ) } \\ { \displaystyle \lambda _ { \mathrm { M L E } } = \frac { 1 } { N p } \sum _ { i j } \big | \widetilde { \mathrm { W } } _ { i j } - \mu \big | , } \end{array}
|
| 341 |
+
$$
|
| 342 |
+
|
| 343 |
+
# D TRAINING AND EVALUATION PROCEDURE DETAILS
|
| 344 |
+
|
| 345 |
+
# D.1 miniIMAGENET
|
| 346 |
+
|
| 347 |
+
To construct miniImageNet we use the same classes as initially proposed by Ravi & Larochelle (2017) and used in (Snell et al., 2017), which is split into 64 training classes (cf. Tab. 2), 16 validation classes (cf. Tab. 3), and 20 test classes (cf. Tab. 4). We will make a full list of image files available.
|
| 348 |
+
|
| 349 |
+
As we do not require a validation set, we combine the training and validation set to form an extended training set. We extract 600 images per class from the ImageNet 2012 Challange dataset (Krizhevsky et al., 2012), scale the shorter side to 84 pixels and then centrally crop to $8 4 \times 8 4$ pixels, that is, we preserve the original aspect ratio of the image content. We use these coloured $8 4 \times 8 4 \times 3$ images as input for representational and $\mathbf { k }$ -shot learning and testing.
|
| 350 |
+
|
| 351 |
+
In order to train very deep models, such as a ResNet, we need to perform data augmentation as is the case when training full ImageNet. We use the following standard data augmentation from ImageNet that we adapt to the size of the input images:
|
| 352 |
+
|
| 353 |
+
β’ random horizontal flipping β’ randomly paste image into $1 0 0 \times 1 0 0$ frame and cut out central $8 4 \times 8 4$ pixels β’ randomly change brightness, contrast, saturation and lighting
|
| 354 |
+
|
| 355 |
+
We highlight that we do not perform any data augmentation for the k-shot learning and $\mathbf { k }$ -shot testing but use the original $8 4 \times 8 4$ colour images as input to the feature extractor.
|
| 356 |
+
|
| 357 |
+
# D.2 CIFAR-100
|
| 358 |
+
|
| 359 |
+
CIFAR-100 consists of 100 classes each with 500 training and 100 test images of size $3 2 \times 3 2$ . The classes are grouped into 20 superclasses with 5 classes each. For example, the superclass βfishβ contains the classes aquarium fish, flatfish, ray, shark, and trout. Unless otherwise stated, we used a random split into 80 base classes and $2 0 \mathrm { k }$ -shot learning classes.
|
| 360 |
+
|
| 361 |
+
For $\mathbf { k }$ -shot learning and testing, we split the 100 classes into 80 base classes used for network training and $2 0 \mathrm { k \Omega }$ -shot learning classes.
|
| 362 |
+
|
| 363 |
+
classes_base $\begin{array} { r l } { \mathbf { \Psi } } & { { } = \mathbf { \Psi } \left[ \begin{array} { l } { \mathbf { \Psi } } \end{array} \right. } \end{array}$ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24, 25, 27, 28, 32, 34, 35, 36, 38, 40, 42, 43, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 69, 70, 73, 74, 75, 76, 77, 78, 79, 80, 82, 83, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
|
| 364 |
+
]
|
| 365 |
+
classes_heldout $\begin{array} { r l r } { \mathrm { ~ ~ \psi ~ } } & { { } = } & { [ } \end{array}$ 8, 11, 12, 20, 23, 26, 29, 30, 31, 33, 37, 39, 41, 47, 57, 68, 71, 72, 81, 84
|
| 366 |
+
]
|
| 367 |
+
|
| 368 |
+
We provide an exhaustive comparison of different probabilistic models for this $\mathbf { k }$ -shot learning task in Appendix E.4.
|
| 369 |
+
|
| 370 |
+
# D.3 NETWORK ARCHITECTURE AND TRAINING: RESNET INSPIRED
|
| 371 |
+
|
| 372 |
+
The network architecture is inspired by the ResNet-34 architecture for ImageNet (He et al., 2016) that uses convolution blocks, with two convolutions each, that are bridged by skip connections. As a base, we utilise the example code2 provided by tensorpack (https://github.com/ppwwyyxx/tensorpack), a neural network training library built on top of tensorflow (MartΒ΄Δ±n Abadi et al., 2015). We adapt the number of features as well as the size of the last fully connected layer to account for the smaller number of training samples and training classes. The final architecture is detailed in Tab. 5.
|
| 373 |
+
|
| 374 |
+
n03400231 frying pan, frypan, skillet
|
| 375 |
+
n02108551 Tibetan mastiff
|
| 376 |
+
n02687172 aircraft carrier, carrier, flattop, attack aircraft carrier
|
| 377 |
+
n04296562 stage
|
| 378 |
+
n13133613 ear, spike, capitulum
|
| 379 |
+
n02165456 ladybug, ladybeetle, lady beetle, ladybird, ladybird beetle
|
| 380 |
+
n03337140 file, file cabinet, filing cabinet
|
| 381 |
+
n02966193 carousel, carrousel, merry-go-round, roundabout, whirligig
|
| 382 |
+
n02074367 dugong, Dugong dugon
|
| 383 |
+
n02105505 komondor
|
| 384 |
+
n04389033 tank, army tank, armored combat vehicle, armoured combat vehicle
|
| 385 |
+
n09246464 cliff, drop, drop-off
|
| 386 |
+
n03924679 photocopier
|
| 387 |
+
n03527444 holster
|
| 388 |
+
n04612504 yawl
|
| 389 |
+
n01749939 green mamba
|
| 390 |
+
n04251144 snorkel
|
| 391 |
+
n03347037 fire screen, fireguard
|
| 392 |
+
n04067472 reel
|
| 393 |
+
n03998194 prayer rug, prayer mat
|
| 394 |
+
n13054560 bolete
|
| 395 |
+
n02747177 ashcan, trash can, garbage can, wastebin, ash bin, ash-bin, ashbin, dustbin, trash barrel, trash bin
|
| 396 |
+
n04435653 tile roof
|
| 397 |
+
n02108089 boxer
|
| 398 |
+
n03908618 pencil box, pencil case
|
| 399 |
+
n01770081 harvestman, daddy longlegs, Phalangium opilio
|
| 400 |
+
n03676483 lipstick, lip rouge
|
| 401 |
+
n03220513 dome
|
| 402 |
+
n04515003 upright, upright piano
|
| 403 |
+
n04258138 solar dish, solar collector, solar furnace
|
| 404 |
+
n04509417 unicycle, monocycle
|
| 405 |
+
n01704323 triceratops
|
| 406 |
+
n04443257 tobacco shop, tobacconist shop, tobacconist
|
| 407 |
+
n02089867 Walker hound, Walker foxhound
|
| 408 |
+
n01910747 jellyfish
|
| 409 |
+
n02111277 Newfoundland, Newfoundland dog
|
| 410 |
+
n04243546 slot, one-armed bandit
|
| 411 |
+
n01558993 robin, American robin, Turdus migratorius
|
| 412 |
+
n03047690 clog, geta, patten, sabot
|
| 413 |
+
n03854065 organ, pipe organ
|
| 414 |
+
n03476684 hair slide
|
| 415 |
+
n02113712 miniature poodle
|
| 416 |
+
n07747607 orange
|
| 417 |
+
n03838899 oboe, hautboy, hautbois
|
| 418 |
+
n07584110 consomme
|
| 419 |
+
n02795169 barrel, cask
|
| 420 |
+
n03017168 chime, bell, gong
|
| 421 |
+
n04275548 spider web, spiderβs web
|
| 422 |
+
n04604644 worm fence, snake fence, snake-rail fence, Virginia fence
|
| 423 |
+
n02606052 rock beauty, Holocanthus tricolor
|
| 424 |
+
n01843383 toucan
|
| 425 |
+
n02457408 three-toed sloth, ai, Bradypus tridactylus
|
| 426 |
+
n03062245 cocktail shaker
|
| 427 |
+
n03207743 dishrag, dishcloth
|
| 428 |
+
n02108915 French bulldog
|
| 429 |
+
n06794110 street sign
|
| 430 |
+
n02823428 beer bottle
|
| 431 |
+
n03888605 parallel bars, bars
|
| 432 |
+
n04596742 wok
|
| 433 |
+
n02091831 Saluki, gazelle hound
|
| 434 |
+
n02101006 Gordon setter
|
| 435 |
+
n02120079 Arctic fox, white fox, Alopex lagopus
|
| 436 |
+
n01532829 house finch, linnet, Carpodacus mexicanus
|
| 437 |
+
n07697537 hotdog, hot dog, red hot
|
| 438 |
+
|
| 439 |
+
Table 2: Training classes for miniImageNet as proposed by Ravi & Larochelle (2017)
|
| 440 |
+
|
| 441 |
+
n03075370 combination lock
|
| 442 |
+
n02971356 carton
|
| 443 |
+
n03980874 poncho
|
| 444 |
+
n02114548 white wolf, Arctic wolf, Canis lupus tundrarum
|
| 445 |
+
n03535780 horizontal bar, high bar
|
| 446 |
+
n03584254 iPod
|
| 447 |
+
n02981792 catamaran
|
| 448 |
+
n03417042 garbage truck, dustcart
|
| 449 |
+
n03770439 miniskirt, mini
|
| 450 |
+
n02091244 Ibizan hound, Ibizan Podenco
|
| 451 |
+
n02174001 rhinoceros beetle
|
| 452 |
+
n09256479 coral reef
|
| 453 |
+
n02950826 cannon
|
| 454 |
+
n01855672 goose
|
| 455 |
+
n02138441 meerkat, mierkat
|
| 456 |
+
n03773504 missiles
|
| 457 |
+
n02116738 African hunting dog, hyena dog, Cape hunting dog, Lycaon pictus
|
| 458 |
+
n02110063 malamute, malemute, Alaskan malamute
|
| 459 |
+
n02443484 black-footed ferret, ferret, Mustela nigripes
|
| 460 |
+
n03146219 cuirass
|
| 461 |
+
n03775546 mixing bowl
|
| 462 |
+
n03544143 hourglass
|
| 463 |
+
n04149813 scoreboard
|
| 464 |
+
n03127925 crate
|
| 465 |
+
n04418357 theater curtain, theatre curtain
|
| 466 |
+
n02099601 golden retriever
|
| 467 |
+
n02219486 ant, emmet, pismire
|
| 468 |
+
n03272010 electric guitar
|
| 469 |
+
n04146614 school bus
|
| 470 |
+
n02129165 lion, king of beasts, Panthera leo
|
| 471 |
+
n04522168 vase
|
| 472 |
+
n07613480 trifle
|
| 473 |
+
n02871525 bookshop, bookstore, bookstall
|
| 474 |
+
n01981276 king crab, Alaska crab, Alaskan king crab, Alaska king crab, Paralithodes camtschatica
|
| 475 |
+
n02110341 dalmatian, coach dog, carriage dog
|
| 476 |
+
n01930112 nematode, nematode worm, roundworm
|
| 477 |
+
|
| 478 |
+
ResNet-34 inspired for miniImageNet
|
| 479 |
+
|
| 480 |
+
<table><tr><td>Output size</td><td colspan="2">Layers</td></tr><tr><td>84Γ84Γ3</td><td colspan="2">Input patch</td></tr><tr><td>42 Γ 42 Γ 32</td><td colspan="2">5 Γ 5,32, stride 2</td></tr><tr><td>42 Γ 42 Γ 32</td><td>[3 Γ 3,32] 3 Γ 3,32</td><td rowspan="2">Γ3</td></tr><tr><td>21 Γ 21Γ64</td><td>[3 Γ 3,64] Γ4 3Γ 3,64</td></tr><tr><td>11 Γ 11 Γ 128</td><td>[3 Γ 3,128] 3 Γ3,128</td><td rowspan="2">Γ6 Γ3</td></tr><tr><td>6Γ6Γ256</td><td>[3 Γ 3,256] 3 Γ3,256</td></tr><tr><td>256</td><td colspan="2"> global average pooling</td></tr><tr><td>C</td><td colspan="2">fully connected, softmax</td></tr></table>
|
| 481 |
+
|
| 482 |
+
Table 5: Network architecture. All unnamed layers are 2D convolutions with stated kernel size and padding SAME; the output of the shaded layer corresponds to $\Phi _ { \varphi } ( \mathbf { u } )$ , the feature space representation of the image u, which is used as input for probabilistic $\mathbf { k }$ -shot learning.
|
| 483 |
+
|
| 484 |
+
The network is trained using a decaying learning rate schedule and momentum SGD and is implemented in tensorpack using tensorflow.
|
| 485 |
+
|
| 486 |
+
VGG-style Network for CIFAR-100
|
| 487 |
+
|
| 488 |
+
<table><tr><td>Output size</td><td>Layers</td></tr><tr><td>32 Γ 32Γ3</td><td>Input patch</td></tr><tr><td>16 Γ16Γ64 8Γ8Γ64</td><td>2Γ(Conv2D,ELU),Pool 2Γ(Conv2D,ELU),Pool</td></tr><tr><td>4Γ4Γ128</td><td>2Γ(Conv2D,ELU),Pool</td></tr><tr><td>2Γ2Γ128</td><td>2Γ(Conv2D,ELU),Pool</td></tr><tr><td>2Γ2Γ128</td><td>Dropout (0.5)</td></tr><tr><td>256</td><td>FullyConnected, ELU</td></tr><tr><td>256</td><td>Dropout (0.5)</td></tr><tr><td>128</td><td>FullyConnected, ELU</td></tr><tr><td>C</td><td>FullyConnected, SoftMax</td></tr></table>
|
| 489 |
+
|
| 490 |
+
D.4 NETWORK ARCHITECTURE AND TRAINING: VGG INSPIRED
|
| 491 |
+
VGG-style Network for miniImageNet
|
| 492 |
+
Table 6: Network architectures. All 2D convolutions have kernel size $3 \times 3$ and padding SAME; max-pooling is performed with stride 2. The output of the shaded layer corresponds to $\Phi _ { \varphi } ( u )$ , the feature space representation of the image $u$ , which is used as input for probabilistic k-shot learning
|
| 493 |
+
|
| 494 |
+
<table><tr><td>Output size</td><td>Layers</td></tr><tr><td>84Γ84Γ3 42 Γ 42 Γ 32 21 Γ 21Γ64</td><td>Input patch 2Γ(Conv2D,ELU),Pool 2Γ(Conv2D,ELU),Pool 11 Γ 11 Γ 128 2Γ(Conv2D,ELU),Pool</td></tr><tr><td>6Γ6Γ128 3Γ3Γ128 3Γ3Γ128</td><td>2Γ(Conv2D,ELU),Pool 2Γ(Conv2D,ELU),Pool Dropout (0.5)</td></tr><tr><td>512</td><td>FullyConnected, ELU</td></tr><tr><td>512 256</td><td>Dropout (0.5)</td></tr><tr><td>C</td><td>FullyConnected, ELU FullyConnected, SoftMax</td></tr></table>
|
| 495 |
+
|
| 496 |
+
The network architecture was inspired by the VGG networks Simonyan & Zisserman, 2014, but does not employ batch normalisation Ioffe & Szegedy, 2015. To speed up training, we employ exponential linear units (ELUs), which have been reported to lead to faster convergence as compared to ordinary ReLUs Clevert et al., 2015. To regularise the networks, we employ dropout (Srivastava, Hinton, et al., 2014) and regularisation of the weights in the fully connected layers. The networks are trained with the ADAM optimiser Kingma & Ba, 2014 with decaying learning rate.
|
| 497 |
+
|
| 498 |
+
The network is implemented in tensorpack using tensorflow.
|
| 499 |
+
|
| 500 |
+

|
| 501 |
+
Figure 6: t-SNE embedding of the CIFAR-100 weights $\widetilde { \mathrm { W } }$ trained using a VGG style architecture. The points are coloured according to their respective superclass. The colouring by superclass makes the structure in the weights evident, as t-SNE overall recovers the structure in the dataset. For instance, oak tree, palm tree, willow tree and pine tree form a cluster on the bottom right. This structure motivates our approach, as the training weights contain information which may be useful at $\mathbf { k }$ -shot time, for instance given a few example from chestnut trees.
|
| 502 |
+
|
| 503 |
+

|
| 504 |
+
Figure 7: t-SNE embedding of the miniImageNet weights trained using a ResNet-34 architecture. Structure is still present and we observe meaningful patterns, even though the classes in miniImageNet are more unique than in CIFAR-100. For instance, goose, house finch, toucan, Arctic fox, green mamba and other animals are clustered on the top, with birds close to each other. Examples of other small clusters include poncho and miniskirt, or organ and oboe. For readability, not all class names are plotted.
|
| 505 |
+
|
| 506 |
+
# E EXTENDED EXPERIMENTS
|
| 507 |
+
|
| 508 |
+
# E.1 T-SNE EMBEDDING OF THE WEIGHTS
|
| 509 |
+
|
| 510 |
+
We provide t-SNE embeddings for the weights of a VGG network trained in CIFAR-100 and a ResNet34 trained on miniImageNet. A structure in the weights is apparent and provides motivation for our framework. The results can be seen in Fig. 6 and Fig. 7.
|
| 511 |
+
|
| 512 |
+
# E.2 EXTENDED RESULTS ON miniIMAGENET
|
| 513 |
+
|
| 514 |
+
Fig. 8 provides extended results on $\mathbf { k }$ -shot learning for the miniImageNet dataset for different network architectures. We investigate the influence of different feature extractors of increasing complexity and training data size on performance on: i) a VGG style network trained on 500 images per class, ii) a ResNet-34 trained on 500 examples per class, and iii) a ResNet-34 trained on all 600 examples per class.
|
| 515 |
+
|
| 516 |
+
# E.3 CHOICE OF REGULARISATION CONSTANT
|
| 517 |
+
|
| 518 |
+
Fig. 9 reports accuracy and calibration in terms of Expected Calibration Error (ECE) (lower is better) and log likelihoods (higher is better) for different regularisations of logistic regression for all three model architectures considered.
|
| 519 |
+
|
| 520 |
+

|
| 521 |
+
Figure 8: Extended results for the miniImageNet dataset utilising different network architectures and representational training. top: a ResNet-34 trained with all 600 examples per class; middle: a ResNet-34 trained with 500 images per class; bottom: a VGG style network trained with 500 images per class. We highlight that for all three architectures the order of the different methods as well as the main messages are the same. However, the general performance in terms of accuracy and calibration differ between the architectures. The more complex architecture trained on most images performs best in terms of accuracy, indicating that it learns better features for $\mathbf { k }$ -shot learning. Both ResNets behave very similarly on calibration whereas the VGG-style network performs better (lower ECE and higher log likelihood as well as more diagonal calibration curve). This is in line with observations by Guo et al. (2017) that calibration of deep architectures gets worse as depth and complexity increase.
|
| 522 |
+
|
| 523 |
+

|
| 524 |
+
Figure 9: Choice of regularisation constant for logistic regression on k-shot learning. Note that all three rows use the same raw data that are only visualised differently. Top: Summary of accuracy and calibration in terms of log likelihood and Expected Calibration Error (ECE). Middle: detailed plot of ECE vs. accuracy. Bottom: detailed plot of log likelihood vs. accuracy. Results for $C _ { \mathrm { r e g } } = \overset { * } { 2 } \sigma _ { \widetilde { \mathrm { W } } } ^ { 2 }$ fare drawn as black triangles. Dashed lines correspond to logistic regression with cross-validated (changing) regularisation constant. Colour brightness of the markers ranges from dark $( C = 1 0 ^ { - 5 }$ ) to bright ( $C = 1 0 $ ). In addition to Fig. 4 we also provide results for calibration in terms of ECE (lower is better), which are consistent with log likelihoods (higher is better): The Bayesian inspired choice of the regularisation parameter strikes a good balance between accuracy and calibration and consistently outperforms cross-validated choice of the parameter.
|
| 525 |
+
|
| 526 |
+
# E.4 MODEL ASSESSMENT IN CIFAR-100
|
| 527 |
+
|
| 528 |
+
This section reports an extensive model comparison on CIFAR-100, both for the model of the weights $p ( \mathrm { W } | \widetilde { \mathrm { W } } )$ and for the inference procedure at $\mathbf { k }$ -shot time (MAP or Hybrid Monte Carlo (HMC) sampling using NUTS (Hoffman & Gelman, 2014), see the description of approximate inference algorithms in Appendix B). We report log-likelihood of the weights under different models, as well as accuracy, log-likelihood and calibration in a k-shot learning task. Tab. 7 and Tab. 8 show descriptions of the methods analysed for respectively phase 2 (concept learning) and phase 3 ( $\mathbf { k }$ -shot learning) of our $\mathbf { k }$ -shot pipeline described in Sec. 2.1.
|
| 529 |
+
|
| 530 |
+
<table><tr><td rowspan="2">Method name</td><td colspan="2">Phase 2: Concept learning</td></tr><tr><td>Priordistribution</td><td>Inference</td></tr><tr><td>Gauss (iso)</td><td>Gaussian isotropic covariance</td><td>MAP</td></tr><tr><td>Gauss (MAP prior)</td><td>Gaussian isotropic covariance</td><td>MAP</td></tr><tr><td>Gauss (integr. prior)</td><td>Gaussian full covariance</td><td>Integrated</td></tr><tr><td>GMM (supercl.)</td><td>GMM on superclasses iso.cov.</td><td>MAP</td></tr><tr><td>GMM (3, iso)</td><td>GMM on 3 clusters iso. cov.</td><td>MLE</td></tr><tr><td>GMM (3, diag)</td><td>GMM on 3 clusters diagonal cov.</td><td>MLE</td></tr><tr><td>GMM (10, iso)</td><td>GMM on 10 clusters iso. cov.</td><td>MLE</td></tr><tr><td>Laplace (diag)</td><td>Laplace diagonal covariance</td><td>MLE</td></tr></table>
|
| 531 |
+
|
| 532 |
+
Table 7: Description of the inference for the parameters of the prior in phase 2 (concept learning) for the models in from Fig. 10. This specifies the inference procedure for $\theta$ in $p ( \mathbf { w } \mid \boldsymbol { \theta } )$ after observing the training weights $\widetilde { \mathrm { W } }$ .
|
| 533 |
+
|
| 534 |
+
<table><tr><td rowspan="2">Method name</td><td colspan="2">Phase 3: k-shot learning</td></tr><tr><td>Prior distribution</td><td>Inference</td></tr><tr><td>Gauss (iso) MAP</td><td>Gaussian</td><td>MAP</td></tr><tr><td>Gauss (MAP prior) MAP</td><td>Gaussian</td><td>MAP</td></tr><tr><td>Gauss (MAP prior) HMC</td><td>Gaussian</td><td>HMC</td></tr><tr><td>Gauss ( οΌ(integr. prior)MAP</td><td>Gaussian</td><td>MAP</td></tr><tr><td>Gauss (integr. prior) HMC</td><td>Gaussian</td><td>HMC</td></tr><tr><td>GMM (supercl.) MAP</td><td>GMM on superclasses</td><td>MAP</td></tr><tr><td>GMM (3,iso) MAP</td><td>GMM on 3 isotropic comp.</td><td>MAP</td></tr><tr><td>Laplace (diag) HMC</td><td>Laplace (diagonal)</td><td>HMC</td></tr><tr><td>Laplace (diag) MAP</td><td>Laplace (diagonal)</td><td>MAP</td></tr></table>
|
| 535 |
+
|
| 536 |
+
Table 8: Methods and inference procedure during phase 3 $\mathbf { k }$ -shot learning) for the models used in Fig. 10. This specifies the inference procedure used when computing $p ( \mathrm { W } | \mathrm { \widehat { \mathcal { D } } } , \widetilde { \mathrm { W } } )$ for the specified prior distribution.
|
| 537 |
+
|
| 538 |
+
In the main text, we only consider an isotropic Gaussian model with MAP inference since we do not observe benefits from using alternative methods in terms of $\mathbf { k }$ -shot performance and calibration. Moreover, while we report results on a VGG-like architecture, we could also use a ResNet architecture, and preliminary results point to the same conclusion as experiments on miniImageNet when switching from VGG to ResNet: the deeper features consistently lead to higher $\mathbf { k }$ -shot performance on all methods whereas the ordering of the methods stays roughly the same.
|
| 539 |
+
|
| 540 |
+
Analysis of the models on held-out training weights. First, we analyse how well the different prior models for the new softmax weights are able to fit the $\widetilde { C }$ training weights $\widetilde { \mathrm { W } }$ . We randomly excluded 10 of those weights and evaluated their held-out negative log likelihood given the remaining $C - 1 0$ weights. We emphasise that this approach also constitutes a principled way to set the hyperparameters of the prior and, critically, relies on an explicit probabilistic model.
|
| 541 |
+
|
| 542 |
+
The negative log probabilities are averaged over 50 random splits and results of best optimised values w.r.t. hyperparameters are shown in Tab. 9 for CIFAR-100 (lower is better). We find that all models
|
| 543 |
+
|
| 544 |
+

|
| 545 |
+
|
| 546 |
+
Table 9: Held-out log probabilities on random 70/10-splits of the training weights for the different models on CIFAR-100. Values are averaged over 50 splits.
|
| 547 |
+
|
| 548 |
+

|
| 549 |
+
Figure 10: Results on CIFAR-100 for VGG style architecture. We report accuracy, log-likelihood and calibration for the methods and inference procedures presented in Tab. 8. With the exception of GMM (10, iso) and Laplace, all methods are similar terms of accuracy and log-likelihood. Gauss (integr. prior) HMC and Gauss (MAP) HMC are slightly better calibrated than our proposed Gauss (MAP) iso, but require significantly more computation for the sampling procedure.
|
| 550 |
+
|
| 551 |
+
behave very similar but that multivariate Gaussian models generally outperform other models. We attribute the good performance of the simpler models to the small number of data points $( C - 1 0 = 7 0 $ training weights) and the high dimensionality of the space, which entail that fitting even simple models is difficult. Thus, more complicated models cannot improve over them.
|
| 552 |
+
|
| 553 |
+
$\mathbf { k }$ -shot performance in CIFAR-100. Accuracies are measured on a 5-way classification task on the $\mathbf { k }$ -shot classes for $k \in \{ 1 , 5 , 1 0 \}$ . Results were averaged two-fold: (i) 20 random splits of the 5 $\mathbf { k }$ -shot classes; (ii) 10 repetitions of each split with different $\mathbf { k }$ -shot training examples. Among our models, no statistically significant difference in accuracy is observed, with the exception of Laplace MAP and GMM (iso), which consistently underperforms. These findings are consistent in terms of log-likelihoods, see the first and second plots in Fig. 10.
|
| 554 |
+
|
| 555 |
+
Finally, our methods are generally well calibrated, with Gaussian models generally better than Laplace models. Moreover, all methods (with the exception of Laplace and GMM (10, iso) have low ECE and high accuracy, see the third and fourth plots of Fig. 10. While Gauss (integr. prior) HMC and Gauss (MAP) HMC are sightly better calibrated than our proposed method in the main paper, Gauss (MAP) iso, we believe the gain in calibration is not worth the significant increase in computational resources needed for the sampling procedure. Interestingly, both GMM approaches are not able to outperform the other, simpler models. This is in line with the previous observation that the simpler models are better able to explain the weights. Again, we attribute this inability of mixture models to use their larger expressivity/capacity to the small number of data points and the high-dimensionality of weight-space which means learning even simple models is difficult. These observations suggest that the use of mixture models in this type of $\mathbf { k }$ -shot learning framework is not beneficial and is in contrast to the approach of Srivastava & Salakhutdinov (2013), who employ a tree-structured mixture model. The authors show compare a model in which the assignments to the superclasses in the tree are optimized over against a model with a naive initialisation of the superclass assignments, and show that the first outperforms the second. However, they do not compare against a simpler baseline, e.g., a single Gaussian model.
|
| 556 |
+
|
| 557 |
+
Overall, we observe that there is no significant benefit of more complex methods over the simple isotropic Gaussian, either in terms of accuracy, log-likelihood or calibration. Thus, our recommendation is that practitioners should use simple models and employ simple inference schemes to estimate all free parameters thereby avoiding expending valuable data on validation sets
|
| 558 |
+
|
| 559 |
+
# REFERENCES
|
| 560 |
+
|
| 561 |
+
Djork-Arne Clevert, Thomas Unterthiner, & Sepp Hochreiter (2015). Fast and accurate deep network Β΄ learning by exponential linear units (elus). arXiv e-print:1511.07289.
|
| 562 |
+
|
| 563 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, & Kilian Q Weinberger (2017). On Calibration of Modern Neural Networks. arXiv e-print: 1706.04599.
|
| 564 |
+
|
| 565 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, & Jian Sun (2016). Deep Residual Learning for Image Recognition. In: The IEEE Conference on Computer Vision and Pattern Recognition (CVPR). eprint: 1512.03385.
|
| 566 |
+
|
| 567 |
+
Matthew D Hoffman & Andrew Gelman (2014). The No-U-turn sampler: adaptively setting path lengths in Hamiltonian Monte Carlo. Journal of Machine Learning Research 15.1, pp. 1593β1623.
|
| 568 |
+
|
| 569 |
+
Sergey Ioffe & Christian Szegedy (2015). Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv e-print:1502.03167.
|
| 570 |
+
|
| 571 |
+
Diederik Kingma & Jimmy Ba (2014). Adam: A method for stochastic optimization. arXiv eprint:1412.6980.
|
| 572 |
+
|
| 573 |
+
Alex Krizhevsky, Ilya Sutskever, & Geoffrey Hinton (2012). Imagenet classification with deep convolutional neural networks. In: Advances in Neural Information Processing Systems, pp. 1097β 1105.
|
| 574 |
+
|
| 575 |
+
Dong C Liu & Jorge Nocedal (1989). On the limited memory BFGS method for large scale optimization. Mathematical programming 45.1, pp. 503β528.
|
| 576 |
+
|
| 577 |
+
MartΒ΄Δ±n Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dan Mane, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Β΄ Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viegas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Β΄ Martin Wicke, Yuan Yu, & Xiaoqiang Zheng (2015). TensorFlow: Large-Scale Machine Learning on Heterogeneous Systems. Software available from tensorflow.org.
|
| 578 |
+
|
| 579 |
+
Kevin Murphy (2012). Machine Learning: A Probabilistic Perspective. The MIT Press.
|
| 580 |
+
|
| 581 |
+
Radford M Neal et al. (2011). MCMC using Hamiltonian dynamics. Handbook of Markov Chain Monte Carlo 2.11.
|
| 582 |
+
|
| 583 |
+
Sachin Ravi & Hugo Larochelle (2017). Optimization as a model for few-shot learning. In: International Conference on Learning Representations. Vol. 1. 2, p. 6.
|
| 584 |
+
|
| 585 |
+
John Salvatier, Thomas. Wiecki, & Christopher Fonnesbeck (2016). Probabilistic programming in Python using PyMC3. PeerJ Computer Science 2, e55.
|
| 586 |
+
|
| 587 |
+
Karen Simonyan & Andrew Zisserman (2014). Very deep convolutional networks for large-scale image recognition. arXiv e-print:1409.1556.
|
| 588 |
+
|
| 589 |
+
Jake Snell, Kevin Swersky, & Richard Zemel (2017). Prototypical Networks for Few-shot Learning. arXiv e-print: 1703.05175.
|
| 590 |
+
|
| 591 |
+
Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, & Ruslan Salakhutdinov (2014). Dropout: a simple way to prevent neural networks from overfitting. Journal of machine learning research 15.1, pp. 1929β1958.
|
| 592 |
+
|
| 593 |
+
Nitish Srivastava & Ruslan R Salakhutdinov (2013). Discriminative transfer learning with tree-based priors. In: Advances in Neural Information Processing Systems, pp. 2094β2102.
|
parse/train/r1DPFCyA-/r1DPFCyA-_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/r1DPFCyA-/r1DPFCyA-_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/r1DPFCyA-/r1DPFCyA-_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkfOvGbCW/rkfOvGbCW.md
ADDED
|
@@ -0,0 +1,378 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MEMORY-BASED PARAMETER ADAPTATION
|
| 2 |
+
|
| 3 |
+
Pablo Sprechmann\*, Siddhant M. Jayakumar\*, Jack W. Rae, Alexander Pritzel
|
| 4 |
+
Adria Puigdom \` enech Badia, Benigno Uria, Oriol Vinyals \`
|
| 5 |
+
Demis Hassabis, Razvan Pascanu, Charles Blundell
|
| 6 |
+
DeepMind
|
| 7 |
+
London, UK
|
| 8 |
+
{psprechmann, sidmj, jwrae, apritzel,
|
| 9 |
+
adriap, buria, vinyals,
|
| 10 |
+
dhcontact, razp, cblundell}@google.com
|
| 11 |
+
|
| 12 |
+
# ABSTRACT
|
| 13 |
+
|
| 14 |
+
Deep neural networks have excelled on a wide range of problems, from vision to language and game playing. Neural networks very gradually incorporate information into weights as they process data, requiring very low learning rates. If the training distribution shifts, the network is slow to adapt, and when it does adapt, it typically performs badly on the training distribution before the shift. Our method, Memory-based Parameter Adaptation, stores examples in memory and then uses a context-based lookup to directly modify the weights of a neural network. Much higher learning rates can be used for this local adaptation, reneging the need for many iterations over similar data before good predictions can be made. As our method is memory-based, it alleviates several shortcomings of neural networks, such as catastrophic forgetting, fast, stable acquisition of new knowledge, learning with an imbalanced class labels, and fast learning during evaluation. We demonstrate this on a range of supervised tasks: large-scale image classification and language modelling.
|
| 15 |
+
|
| 16 |
+
# 1 INTRODUCTION
|
| 17 |
+
|
| 18 |
+
Neural networks have been proven to be powerful function approximators, as shown in a long list of successful applications: image classification (e.g. Krizhevsky et al., 2012), audio processing (e.g. Oord et al., 2016), game playing (e.g. Mnih et al., 2015; Silver et al., 2017), and machine translation (e.g. Wu et al., 2016). Typically these applications apply batch training to large or near-infinite data sets, requiring many iterations to obtain satisfactory performance.
|
| 19 |
+
|
| 20 |
+
Humans and animals are able to incorporate new knowledge quickly from single examples, continually throughout much of their lifetime. In contrast, neural network-based models rely on the data distribution being stationary and the training procedure using low learning rates and many passes through the training data to obtain good generalisation. This limits their application to life-long learning or dynamic environments and tasks.
|
| 21 |
+
|
| 22 |
+
Problems in continual learning with neural networks commonly manifest as the phenomenon of catastrophic forgetting (McCloskey & Cohen, 1989; French, 1999): a neural network performs badly on old tasks having been trained to perform well on a new task. Several recent approaches have proven promising at overcoming this, such as elastic weight consolidation (Kirkpatrick et al., 2017). Recent work in language modelling has demonstrated how popular neural language models may appropriately be adapted to take advantage of rare, recently seen words, as in the neural cache (Grave et al., 2016), pointer sentinel networks (Merity et al., 2016) and learning to remember rare events (Kaiser et al., 2017). Our work generalises these approaches and we present experimental results where we apply our model to both continual or incremental learning tasks, as well as language modelling.
|
| 23 |
+
|
| 24 |
+
We propose Memory-based Parameter Adaptation (MbPA), a method for augmenting neural networks with an episodic memory to allow for rapid acquisition of new knowledge while preserving the high performance and good generalisation of standard deep models. It combines desirable properties of many existing few-shot, continual learning and language models. We draw inspiration from the theory of complementary learning systems (CLS: McClelland et al., 1995; Leibo et al., 2015; Kumaran et al., 2016), where effective continual, life-long learning necessitates two complementary systems: one that allows for the gradual acquisition of structured knowledge, and another that allows rapid learning of the specifics of individual experiences. As such, MbPA consists of two components: a parametric component (a standard neural network) and a non-parametric component (a neural network augmented with a memory containing previous problem instances). The parametric component learns slowly but generalises well, whereas the non-parametric component rapidly adapts the weights of the parametric component. The non-parametric, instance-based adaptation of the weights is local, in the sense the modification is directly dictated by the inputs to the parametric component. The local adaptation is discarded after the model produces its output, avoiding long term consequences of strong local adaptation (such as overfitting), allowing the weights of the parametric model to learn slowly leading to strong performance and generalisation.
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
Figure 1: Architecture for the MbPA model. Left: Training usage. The parametric network is used directly and experiences are stored in the memory. Right: Testing setting. The embedding is used to query the episodic memory, the retrieved context is used to adapt the parameters of the output network.
|
| 28 |
+
|
| 29 |
+
The contributions of our work are: $( i )$ proposing an architecture for enhancing powerful parametric models with a fast adaptation mechanism to efficiently cope with changes in the task at hand; (ii) establish connections between our method and attention mechanisms frequently used for querying memories; (iii) present a Bayesian interpretation of the method allowing a principled form of regularisation; $( i \nu )$ evaluating the method on a range of different tasks: continual learning, incremental learning and data distribution shifts, obtaining promising results.
|
| 30 |
+
|
| 31 |
+
# 2 MODEL-BASED PARAMETER ADAPTATION
|
| 32 |
+
|
| 33 |
+
Our models consist of three components: an embedding network, $f _ { \gamma }$ , a memory $M$ and an output network $g _ { \theta }$ . The embedding network, $f _ { \gamma }$ , and the output network, $g _ { \theta }$ , are standard parametric (feed forward or recurrent) neural networks with parameters $\gamma$ and $\theta$ , respectively. The memory $M$ is a dynamically-sized memory module that stores key and value pairs, $M = \{ ( h _ { i } , v _ { i } ) \}$ . Keys $\{ h _ { i } \}$ are given by the embedding network. The values $\dot { \{ { v } _ { i } \} }$ correspond to the desired output $y _ { i }$ . For classification, $y _ { i }$ would simply be the true class label, whereas for regression, $y _ { i }$ would be the true regression target. Hence, upon observing the $j$ -th example, we append the pair $( h _ { j } , v _ { j } )$ to the memory $M$ , where:
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
\begin{array} { l } { h _ { j } f _ { \gamma } ( x _ { j } ) , } \\ { v _ { j } y _ { j } . } \end{array}
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
The memory has a fixed size and acts as a circular buffer: when it is full, the oldest data is overwritten first. Retrieval from the memory $M$ uses $K$ -nearest neighbour search on the keys $\{ h _ { i } \}$ with Euclidean distance to obtain the $K$ most similar keys and associated values.
|
| 40 |
+
|
| 41 |
+
Our model is used differently in the training and testing phases. During training, for a given input $x$ , we parametrise the conditional likelihood with a deep neural network given by the composition
|
| 42 |
+
|
| 43 |
+
# Algorithm 1 Model-based Parameter Adaptation
|
| 44 |
+
|
| 45 |
+
<table><tr><td>Aigoritnm1Model-basedParameterAdaptation procedure MBPA-TRAIN</td></tr><tr><td>Sample mini-batch of training examples B = {(xb, yb)}b from training data.</td></tr><tr><td>Calculate the embedded mini-batch B'= {(fΞ³(xb),yb) : xb,yb βB}.</td></tr><tr><td>Update 0,Ξ³ by maximising the likelihood (1) of ΞΈ and Ξ³ with respect to mini-batch B</td></tr><tr><td>Add the embedded mini-batch examples B' to memory M: M β MU B'.</td></tr><tr><td>procedure MBPA-TEST(test input: x, output prediction: y)</td></tr><tr><td>Calculate embedding q = fΞ³(x),and β³total β 0.</td></tr><tr><td>(xοΌ οΌ(x) )k=1</td></tr><tr><td>for each step of MbPA do</td></tr><tr><td>Calculate β³m(x,ΞΈ +β³total) according to (4)</td></tr><tr><td>β³total ββ³total +β³M(x).</td></tr><tr><td>Output prediction y = g0+β³tota (h)</td></tr></table>
|
| 46 |
+
|
| 47 |
+
of the embedding and output networks. Namely,
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
p _ { \mathrm { t r a i n } } ( y | x , \gamma , \theta ) = g _ { \theta } ( f _ { \gamma } ( x ) ) .
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
In the case of classification, the last layer of $g _ { \theta }$ is a softmax layer. The parameters $\{ \theta , \gamma \}$ are estimated by maximum likelihood estimation. The memory is updated with new entries, as they are seen, however no local adaptation is performed on the model. Figure 1 (left) shows a diagram of the training setting and Algorithm 1 (MbPA-Train) shows the algorithm for updating MbPA during training.
|
| 54 |
+
|
| 55 |
+
On the other hand, at test time, it temporarily adapts the parameters of the output network based upon the current input and the contents of the memory $M$ . That is, it uses the exact same parametrisation as (1), but with a different set of parameters in the output network.
|
| 56 |
+
|
| 57 |
+
Let the context $C$ of an input $x$ be the keys, values and associated weights of the $K$ nearest neighbours to query $q \ = \ f _ { \gamma } ( x )$ in the memory $M$ : $C = \{ ( h _ { k } ^ { ( x ) } , v _ { k } ^ { ( x ) } , \bar { w } _ { k } ^ { ( x ) } ) \} _ { k = 1 } ^ { K }$ The coefficients $w _ { k } ^ { ( x ) } \propto \ker ( h _ { k } ^ { ( x ) } , q )$ are weightings of each of the retrieved neighbours according to their closeness to the query $f _ { \gamma } ( { \boldsymbol { x } } ) . \operatorname { k e r n } ( h , q )$ is a kernel function which, following (Pritzel et al., 2017), we choose as $\begin{array} { r } { \ker ( h , q ) = \frac { 1 } { \epsilon + \lVert h - q \rVert _ { 2 } ^ { 2 } } } \end{array}$ . The parametrisation of the likelihood takes the form,
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\begin{array} { r } { p ( y | x , \theta ^ { x } ) = p ( y | x , \theta ^ { x } , C ) = g _ { \theta ^ { x } } ( f _ { \gamma } ( x ) ) , } \end{array}
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
as opposed to the standard parametric approach $g _ { \theta } ( f _ { \gamma } ( x ) )$ , where $\theta ^ { x } \ = \ \theta + \Delta _ { M } ( x , \theta )$ with $\Delta _ { M } \bar { ( \boldsymbol { x } , \boldsymbol { \theta } ) }$ being a contextual (it is based upon the input $x$ ) update of the parameters of the output network. The MbPA adaptation corresponds to decreasing the weighted average negative loglikelihood over the retrieved neighbours in $C$ . Figure 1 (right) shows a diagram of the testing setting and Algorithm 1(MbPA-Test) shows the algorithm for using MbPA during testing.
|
| 64 |
+
|
| 65 |
+
An interesting property of the model is that the correction $\Delta _ { M } ( x , \theta )$ is such that, as the parametric model becomes better at fitting the training data (and consequently the episodic memories), it selfregulates and diminishes. In the CLS theory, this process is referred to as consolidation, when the parametric model can reliably perform predictions without relying on episodic memories.
|
| 66 |
+
|
| 67 |
+
# 2.1 MAXIMUM A POSTERIORI INTERPRETATION OF MBPA
|
| 68 |
+
|
| 69 |
+
We can now derive $\Delta _ { M } ( x , \theta )$ , motivated by considering the posterior distribution on the parameters $\theta ^ { x }$ . Let $x$ correspond to the input with context $C = \{ h _ { k } , v _ { k } , w _ { k } ^ { ( x ) } \} _ { k = 1 } ^ { K }$ w(x)k }Kk=1. The maximum a posteriori over the context $C$ , given the parameters obtained after training $\theta$ , can be written as:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\operatorname* { m a x } _ { \theta ^ { x } } \log p ( \theta ^ { x } | \theta ) + \sum _ { k = 1 } ^ { K } w _ { k } ^ { ( x ) } \log p ( v _ { k } ^ { ( x ) } | h _ { k } ^ { ( x ) } , \theta ^ { x } , x ) ,
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where the second term is a weighted likelihood of the data in C and log p(ΞΈx|ΞΈ) β β ||ΞΈxβΞΈ||222Ξ±M ( i.e. a Gaussian prior on $\theta ^ { x }$ centred at $\theta$ ) can be thought as a regularisation term that prevents overfitting. See Appendix $\mathrm { D }$ for details of this derivation.
|
| 76 |
+
|
| 77 |
+

|
| 78 |
+
Figure 2: Illustrative diagram of the local fitting on a regression task. Given a query (blue), we retrieve the context from memory showed in red.
|
| 79 |
+
|
| 80 |
+
Equation (3) does not have a closed form solution, and requires fitting a large number of parameters at inference time. This can be costly and susceptible to overfitting. We can avoid this problem by adapting the reference parameters $\theta$ . Specifically, we perform a fixed number of gradient descent steps to minimise (3). One step of gradient descent to the loss in (3) with respect to $\theta ^ { x }$ yields
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
{ \Delta } _ { M } ( x , \theta ) = - \alpha _ { M } \left. \nabla _ { \theta } \sum _ { k = 1 } ^ { K } w _ { k } ^ { ( x ) } \log p ( v _ { k } ^ { ( x ) } | h _ { k } ^ { ( x ) } , \theta ^ { x } , x ) \right| _ { \theta } - \beta ( \theta - \theta ^ { x } ) ,
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
where $\beta$ is a scalar hyper-parameter. These adapted parameters are used for output computation but discarded thereafter, as described in Algorithm 1.
|
| 87 |
+
|
| 88 |
+
# 2.2 FROM ATTENTION TO LOCAL FITTING
|
| 89 |
+
|
| 90 |
+
A standard formulation of memory augmented networks is in the form of attention (Bahdanau et al., 2014), i.e. query memory to use a weighted average based on some similarity metric.
|
| 91 |
+
|
| 92 |
+
We can now show that an attention-based procedure is a particular case of local adaptation or MbPA. The details of this are discussed in Appendix E. Effectively, attention can be viewed as fitting a constant function the neighbourhood of memories, whereas MbPA generalises to fit a function parameterised by the output network of our model.
|
| 93 |
+
|
| 94 |
+
The diagram in Figure 2 illustrates an example in a regression task for simplicity. Given a query (blue), the retrieved memories and their corresponding values are depicted in red. The predictions of an attention based model are shown in orange. We can see that the prediction is biased towards the value of the neighbours with higher functional value. In magenta we represent the predictions made by the model $g _ { \theta }$ . We can see that it is not able to explain all memories equally well. This could be either because the problem is too difficult, poor training, or because the a prediction needs to be made while assimilating new information. The green curve show the prediction obtained after adapting the parameters to better explain the episodic memories.
|
| 95 |
+
|
| 96 |
+
# 3 RELATED WORK
|
| 97 |
+
|
| 98 |
+
A key component of MbPA is the non-parametric, episodic memory. Many recent works have looked at augmenting neural network systems with memories to allow for fast adaptation or incorporation of new knowledge. Variants of this architecture have been successfully used in the context of classification (Vinyals et al., 2016; Santoro et al., 2016; Kaiser et al., 2017), language modelling (Merity et al., 2016; Grave et al., 2016), reinforcement learning (Blundell et al., 2016; Pritzel et al., 2017), machine translation (Bahdanau et al., 2014), and question answering (Weston et al., 2014), to name a few. For the MbPA experiments below, we use a memory architecture similar to the Differentiable Neural Dictionary (DND) used in Neural Episodic Control (NEC) (Pritzel et al., 2017). One key difference is that we do not train the embedding network through the gradients from the memories (as they are not used at training time).
|
| 99 |
+
|
| 100 |
+
While many of these approaches share a contextual memory lookup system, MbPA is distinct in the method by which the memories are used. Matching Networks (Vinyals et al., 2016) use a nonparametric network to map from a few examples to a target class via a kernel weighted average. Prototypical Networks (Snell et al., 2017) extend this and use a linear model instead of a nearest neighbour method.
|
| 101 |
+
|
| 102 |
+
MbPA is further related to meta-learning approaches for few shot learning. In the context of learning invariant representations for object recognition, Anselmi et al. (2014) proposed a method that can invariantly and discriminatively represent objects using a single sample, even of a new class. In their method, instead of training via gradient descent, image templates are stored in the weights of simple-complex cell networks while objects undergo transformations. Optimisation as a model of few shot learning (Ravi & Larochelle, 2016) proposes using a meta-learner LSTM to control the gradient updates of another network, while Model-Agnostic Meta-Learning (MAML Finn et al. (2017)) proposes a way of doing meta-learning over a distribution of tasks. These methods extend the classic fine-tuning technique used in domain adaptation type of ideas (e.g. fit a given neural network to a small set of new data). The MAML algorithm (particularly related to our work) aims at learning an easily adaptable set of weights, such that given a small amount of training data for a given task following the training distribution, the fine-tuning procedure would effectively adapt the weights to this particular task. Their work does not use any memory or per-example adaptation and is not based on a continual (life-long) learning setting. In contrast, our work, aims at augmenting a powerful neural network with a fine-tuning procedure that is used at inference only. The idea is to enhance the performance of the parametric model while maintaining its full training.
|
| 103 |
+
|
| 104 |
+
Recent approaches to addressing the continual learning problem have included elastic weight consolidation (Kirkpatrick et al., 2017), where a penalty term is added to the loss for deviations far from previous weights, and learning without forgetting (Li & Hoiem, 2016; Furlanello et al., 2016), where distillation (Hinton et al., 2015) from previously trained models is used to keep old knowledge available. Gradient Episodic Memory for Continual Learning (Lopez-Paz & Ranzato, 2017) attempts to solve the problem by storing data from previous tasks and taking gradient updates when learning new tasks that do not increase the training loss on examples stored in memory.
|
| 105 |
+
|
| 106 |
+
There has been recent work in applying attention to quickly adapt a subset of fast weights (Ba et al., 2016). A number of recent works in language modelling have augmented prediction with attention over recent examples to account for the distributional shift between training and testing settings. Works in this direction include neural cache (Grave et al., 2016) and pointer sentinel networks (Merity et al., 2016). Learning to remember rare events (Kaiser et al., 2017) augments an LSTM with a key-value memory structure, and meta networks (Munkhdalai & Yu, 2017) combines fast weights with regular weights. Our model shares this flavour of attention and fast weights, while providing a model agnostic memory-based method that applies beyond language modelling.
|
| 107 |
+
|
| 108 |
+
Works in the context of machine translation relate to MbPA. Gu et al. (2017) explore how to incorporate information from memory into the final model predictions. The authors find that shallow mixing works best. We show in this paper that MbPA is another competitive strategy to shallow mixing, and often working better (PTB for language modelling, ImageNet for image classification). The work by Li et al. (2016) shares the focus on fast-adaptation during inference with our work. Given a test example, the translation model is fine-tuned by fitting similar sentences from the training set. MbPA can be viewed as a generalisation of such approach: it relies on an episodic memory (rather than the training set), contextual lookup and similarity based weighting scheme to fine-tune the original model. Collectively, these allow MbPA to be a powerful domain-agnostic algorithm, which allows it to handle continual and incremental learning.
|
| 109 |
+
|
| 110 |
+
Finally, we mention that our work is closely related to the local regression and adaptive coefficient models literature, see Loader (2006) and references therein. Locally adaptive methods achieved relatively modest success in high-dimensional classification problems, as fitting many parameters to a few neighbours often leads to over fitting. We attempt to counter this with contextual lookups and a local modification of only a subset of model parameters.
|
| 111 |
+
|
| 112 |
+
# 4 EXPERIMENTS AND RESULTS
|
| 113 |
+
|
| 114 |
+
Our scheme unifies elements from traditional approaches to continual, one-shot, and incremental or life-long learning. Models that solve these problems must have certain fundamental attributes in common: the ability to negate the effects of catastrophic forgetting, unbalanced and scarce data, while displaying rapid acquisition of knowledge and good generalisation.
|
| 115 |
+
|
| 116 |
+
In essence, these problems require the ability to deal with changes and shifts in data distributions. We demonstrate that MbPA provides a way to address this. More concretely, due to the robustness of the local adaptation, the model can deal with shifts in domain distribution (e.g. train vs test set in language), the task label set (e.g. incremental learning) or sequential distributional shifts (e.g. continual learning). Further, MbPA is agnostic to both task domain (e.g. image or language) and choice of underlying parametric model, e.g. convolutional neural networks (LeCun et al., 1998) or LSTM (Hochreiter & Schmidhuber, 1997).
|
| 117 |
+
|
| 118 |
+
To this end, our experiments focus on displaying the advantages of MbPA on widely used tasks and datasets, comparing with competing deep learning methods and baselines. We start by looking at the continual learning framework, followed by incremental learning, the problems of unbalanced data and test time distributional changes.
|
| 119 |
+
|
| 120 |
+
# 4.1 CONTINUAL LEARNING: SEQUENTIAL DISTRIBUTIONAL SHIFT
|
| 121 |
+
|
| 122 |
+
In this set of experiments, we explored the effects of MbPA on continual learning, i.e. when dealing with the problem of sequentially learning multiple tasks without the ability to revisit a task.
|
| 123 |
+
|
| 124 |
+
We considered the permuted MNIST setup (Goodfellow et al., 2013). In this setting, each task was given by a different random permutation of the pixels of the MNIST dataset. We explored a chaining of 20 different tasks (20 different permutations) trained sequentially. The model was tested on all tasks it had been trained on thus far.
|
| 125 |
+
|
| 126 |
+
We trained all models using 10,000 examples per task, comparing to elastic weight consolidation (EWC; Kirkpatrick et al., 2017) and regular gradient descent training. In all cases we rely on a two layer MLP and use Adam (Kingma & Ba, 2014) as the optimiser. The EWC penalty cost was chosen using a grid search, as was the local MbPA learning rate (between 0.0 and 1.0) and number of optimisation steps for MbPA (between 1 and 20).
|
| 127 |
+
|
| 128 |
+
Figure 3 compares our approach with that of the baselines. For this particular task we worked directly on pixels as our embedding, i.e. $f _ { \gamma }$ is the identity function, and explored regimes where the episodic memory is small. A key takeaway of this experiment is that once a task is catastrophically forgotten, we find that only a few gradient steps on carefully selected data from memory are sufficient to recover performance, as MbPA does. Considering the number of updates required to reach the solution from random initialisation, this fact itself might seem surprising. MbPA provides a principled and effective way of performing these updates. The naive approach of performing updates on memories chosen at random from the entire memory is considerably less useful.
|
| 129 |
+
|
| 130 |
+
We outperformed the MLP, and were superior to EWC for all but one memory size (when storing only a 100 examples per task). Further, the performance of our model grew with the number of examples stored, ceteris paribus. Crucially, our memory requirements are much lower than that of EWC, which requires storing model parameters and Fisher matrices for all tasks seen so far. Unlike EWC we do not store any tasks identifiers, merely appending the memory with a few examples. Further, MbPA does not use knowledge of exact task boundaries or identities of tasks switched to, unlike EWC and other methods. This allows for frequent switches that would otherwise hamper the Fisher calculations needed for models like EWC.
|
| 131 |
+
|
| 132 |
+
Our method can be combined with any other algorithm such as standard replay from the memory buffer or EWC, providing further improvement. In Figure 3 (right) we combine MbPA and EWC.
|
| 133 |
+
|
| 134 |
+
4.2 INCREMENTAL LEARNING: SHIFTS IN TASK LABEL DISTRIBUTIONS
|
| 135 |
+
|
| 136 |
+
The goal of this section was to evaluate the model in the context of incremental learning. We considered a classification scenario where a model pre-trained on a subset of classes, was introduced to novel, previously unseen classes. The aim was to incorporate the new related knowledge, as quickly as possible, while preserving knowledge from the previous set. This was as opposed to the continual learning problem where there are distinct tasks without the ability to revisit old data.
|
| 137 |
+
|
| 138 |
+

|
| 139 |
+
Figure 3: (Left) Results on Permuted MNIST comparing baselines with MbPA using different memory sizes. (Right) Results augmenting MbPA with EWC, showing the flexibility and complementarity of MbPA.
|
| 140 |
+
|
| 141 |
+
Specifically we considered the problem of image classification on the ImageNet dataset (Russakovsky et al., 2015). As a parametric model we used a ResnetV1 model (He et al., 2016). This was pre-trained on a random subset of the ImageNet dataset containing half of the classes. We then presented all 1000 classes and evaluated how quickly the network can acquire this knowledge (i.e. perform well across all 1000 classes).
|
| 142 |
+
|
| 143 |
+
For MbPA, we used the penultimate layer of the network as the embedding network $f _ { \gamma }$ , forming the key $h$ and query $q$ for our episodic memory $M$ . The last fully connected layer was used to initialise the parametric model $g _ { \theta }$ . MbPA was applied at test time, using RMSprop with a local learning rate $\alpha _ { M }$ and the number of optimisation steps (as in Algorithm 1) tuned as hyper-parameters.
|
| 144 |
+
|
| 145 |
+
A natural baseline was to simply fine-tune the last layer of the parametric model with the new training set. We also evaluated a mixture model, combining the classifications of the parametric model and the non-parametric model at decision level in the following manner:
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
p ( y | q ) = \lambda p _ { \mathrm { p a r a m } } ( y | q ) + ( 1 - \lambda ) p _ { \mathrm { m e m } } ( y | q ) ,
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
where the parameter $\lambda \in [ 0 , 1 ]$ controls the contribution of each model (this model was proposed by Grave et al. (2016) in the context of language modelling). We created five random splits in new and old classes. Hyperparameters were tuned for all models using the first split and the validation set, and we report the average performance on the remaining splits evaluated on the test set.
|
| 152 |
+
|
| 153 |
+
Figure 4 shows the test set performance for all models, split by new and old classes.
|
| 154 |
+
|
| 155 |
+
While the mixture model provides a large improvement over the plain parametric model, MbPA significantly outperforms both of them both in speed and performance. This is particularly noticeable in the new classes, where MbPA acquires knowledge from very few examples. Table 1 shows a quantitative analysis of these observations. After around 30 epoches the parametric model matches the performance of MbPA. In the appendix we explore sensitivity of MbPA on this task to various hyperparameters (memory size, learning rate).
|
| 156 |
+
|
| 157 |
+
# 4.2.1 UNBALANCED DATASETS
|
| 158 |
+
|
| 159 |
+
We further explored the incremental introduction of new classes, specifically in the context of unbalanced datasets. Most real world data are unbalanced, whereas standard datasets (like ImageNet) are artificially balanced to play well with deep learning methods.
|
| 160 |
+
|
| 161 |
+
We replicated the setting from the ImageNet experiments in the previous section, where new classes were introduced to a pre-trained model. However, we only showed a tenth of the data for half the new classes and all data for the other half. We report performance on the full balanced validation set. Once again, we compared the parametric model with MbPA and a memory based mixture model.
|
| 162 |
+
|
| 163 |
+
Results are summarised in Figure 5 (left). After 20 epochs of training, MbPA outperformed both baselines, with a wider gap in performance than the previous experiment. Further, the mixture model, though equipped with memory, did significantly worse than MbPA, leading us to conclude that the inductive bias in the local adaptation process was well suited to deal with data scarcity.
|
| 164 |
+
|
| 165 |
+
Table 1: Quantitative evaluation of the learning dynamics for the Imagenet experiment. We compare a parametric model, non-parametric model (prediction based on memory only (9)), a mixture model and MbPA. We report the top 1 accuracy as well as the area under the curve (AUC) at different points in training.
|
| 166 |
+
|
| 167 |
+
<table><tr><td rowspan="2">Subset</td><td rowspan="2">Model</td><td colspan="3">Top 1 (at epochs)</td><td colspan="3">AUC (at epochs)</td></tr><tr><td>0.1</td><td>1</td><td>3</td><td>0.1</td><td>1</td><td>3</td></tr><tr><td rowspan="4">Novel</td><td>MbPA</td><td>46.2 %</td><td>64.5 %</td><td>65.7 %</td><td>27.4 %</td><td>57.7 %</td><td>63.0 %</td></tr><tr><td>Non-Parametric</td><td>40.0 %</td><td>53.3 %</td><td>52.9 %</td><td>28.3 %</td><td>47.9 %</td><td>51.8 %</td></tr><tr><td>Mixture</td><td>31.6 %</td><td>56.0 %</td><td>59.1 %</td><td>18.6 %</td><td>47.4 %</td><td>54.7 %</td></tr><tr><td>Parametric</td><td>16.2 %</td><td>53.6 %</td><td>57.9 %</td><td>5.7 %</td><td>41.7 %</td><td>51.9 %</td></tr><tr><td rowspan="4">Pre Trained</td><td>MbPA</td><td>68.5 %</td><td>70.9 %</td><td>70.9 %</td><td>71.4 %</td><td>70.3 %</td><td>70.3 %</td></tr><tr><td>Non-Parametric</td><td>62.7 %</td><td>69.4 %</td><td>70.0 %</td><td>45.9 %</td><td>65.8 %</td><td>68.7 %</td></tr><tr><td>Mixture</td><td>71.9 %</td><td>70.3 %</td><td>70.2 %</td><td>74.8 %</td><td>70.6 %</td><td>70.1 %</td></tr><tr><td>Parametric</td><td>71.4 %</td><td>68.1 %</td><td>68.8 %</td><td>76.0 %</td><td>68.6 %</td><td>68.3 %</td></tr></table>
|
| 168 |
+
|
| 169 |
+

|
| 170 |
+
Figure 4: The figure compares the performance of MbPA (blue) against two baselines: the parametric model (green) and the mixture of experts (red). (Left) Aggregated performance (Right) disentangled performance evaluated on new (dashed) and old (solid) classes.
|
| 171 |
+
|
| 172 |
+
# 4.3 LANGUAGE MODELLING: DOMAIN SHIFTS
|
| 173 |
+
|
| 174 |
+
Finally we considered how MbPA can be used at test time to further improve the performance of language modelling. Given the general formulation of MbPA, this could be applied to any problem where there is a shift in distribution at test time β we focus on language modelling, where using recent information has proved promising, such as neural cache and dynamic evaluation (Grave et al., 2016; Krause et al., 2017).
|
| 175 |
+
|
| 176 |
+
We considered two datasets with established performance benchmarks, Penn Treebank (PTB; Marcus et al., 1993) and WikiText-2 (Merity et al., 2016). We pre-trained an LSTM and apply MbPA to the weights and biases of the output softmax layer. The memory stores the past LSTM outputs and associated class labels observed during evaluation. Full model details and hyper-parameters are detailed in Appendix B.
|
| 177 |
+
|
| 178 |
+
Penn Treebank is a small text corpus containing 887,521 train tokens, 70,390 validation tokens, and 78,669 test tokens; with a vocabulary size of 10,000. The LSTM obtained a test perplexity of 59.6 and this dropped by 4.3 points when interpolated with the neural cache. When we interpolated an LSTM with MbPA we were able to improve on the LSTM baseline by 5.3 points (an additional one from the cache model). We also attempted a dynamic evaluation scheme in a similar style to Krause et al. (2017), where we loaded the Adam optimisation parameters obtained during training and evaluated with training of the LSTM enabled, using a BPTT window of 5 steps. However we did not manage to obtain gains above 1 perplexity from baseline, and so we did not try it for WikiText-2.
|
| 179 |
+
|
| 180 |
+
WikiText-2 is a larger text corpus than PTB, derived from Wikipedia articles. It contains 2,088,628 train tokens, 217,646 validation tokens, and 245,569 test tokens, with a vocabulary of 33,278. Our LSTM baseline obtained a test perplexity of 65.9, and this is improved by 14.6 points when mixed with a neural cache. Combining the baseline LSTM with an LSTM fit with MbPA we see a drop of 9.9 points, however the combination of all three models (LSTM baseline $+ \mathrm { M b P A } +$ cache) produced
|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
Figure 5: (Left) MbPA outperformed both parametric and memory-based mixture baselines, in the presence of unbalanced data on previously unseen classes (dashed lines). (Right) Example of MbPA. Query (shown larger in the top-right corner) of class βTVβ and neighbourhood (all other images) for a specific case. Mixture and parametric models fail to classify the image while MbPA succeeds. 8 different classes in the closest 20 neighbours (e.g. βdesktop computerβ, βmonitorβ, βCRT screenβ). Accuracy went from $2 5 \%$ to $7 5 \%$ after local adaptation.
|
| 184 |
+
|
| 185 |
+
the largest drop of 15.9 points. Comparing the perplexity word-by-word between LSTM $^ +$ cache and LSTM $^ +$ cache $^ +$ MbPA, we see that MbPA improves predictions for rarer words (Figure 8).
|
| 186 |
+
|
| 187 |
+
<table><tr><td></td><td>Valid</td><td>PTB Test β³Test</td><td></td><td>WikiText-2 Valid Test</td><td></td><td>β³Test</td></tr><tr><td>CharCNN (Zhang et al., 2015) Variational LSTM (Aharoni et al., 2017) LSTM + cache (Grave et al., 2016) LSTM (Melis et al., 2017) AWD-LSTM (Merity et al., 2017) AWD-LSTM + cache (Merity et al., 2017) AWD-LSTM (reprod.) (Krause et al., 2017) AWD-LSTM+ dyn eval (Krause et al., 2017)</td><td>74.6 60.9 60.0 53.9 59.8 51.6</td><td>78.9 61.7 72.1 58.3 57.3 52.8 57.7 51.1</td><td>- 4.5 - 6.6</td><td>72.1 69.1 68.6 53.8 68.9 46.4</td><td>68.9 65.9 65.8 52.0 66.1 44.3</td><td>- 13.8 - 21.8</td></tr><tr><td>LSTM (ours) LSTM + cache (ours) LSTM+MbPA LSTM+MbPA+cache</td><td>61.8 55.7 54.8 54.8</td><td>59.6 55.3 54.3 54.4</td><td>-4.3 -5.3 -5.2</td><td>69.3 53.2 58.4 51.8</td><td>65.9 51.3 56.0 49.4</td><td>-14.6 -9.9 -16.5</td></tr></table>
|
| 188 |
+
|
| 189 |
+
Table 2: Table with PTB and WikiText-2 perplexities. $\Delta$ Test denotes improvement of model on the test set relative to the corresponding baseline.
|
| 190 |
+
|
| 191 |
+
# 5 CONCLUSION
|
| 192 |
+
|
| 193 |
+
We have described Memory-based Parameter Adaptation (MbPA), a scheme for using an episodic memory structure to locally adapt the parameters of a neural network based upon the current input context. MbPA works well on a wide range of supervised learning tasks in several incremental, lifelong learning settings: image classification, language modelling. Our experiments show that MbPA improves performance in continual learning experiments, comparable to or in many cases exceeding the performance of EWC. We also demonstrated that MbPA allows neural networks to rapidly adapt to previously unseen classes in large-scale image classification problems using the ImageNet dataset. Furthermore, MbPA can use the local, contextual updates from memory to counter and alleviate the effect of imbalanced classification data, where some new classes are over-represented at train time whilst others are underrepresented. Finally we demonstrated on two language modelling tasks that MbPA is able to adapts to shifts in word distribution common in language modelling tasks, achieving significant improvements in performance compared to LSTMs and building on methods like neural cache (Grave et al., 2016).
|
| 194 |
+
|
| 195 |
+
# ACKNOWLEDGMENTS
|
| 196 |
+
|
| 197 |
+
We would like to thank Gabor Melis for providing the LSTM baselines on the language tasks. We would also like to thank Dharshan Kumaran, Jonathan Hunt, Olivier Tieleman, Koray Kavukcuoglu, Daan Wierstra, Sam Ritter, Jane Wang, Alistair Muldal, Nando de Frietas, Tim Harley, Jacob Menick and Steven Hansen for many helpful comments and invigorating discussions.
|
| 198 |
+
|
| 199 |
+
# REFERENCES
|
| 200 |
+
|
| 201 |
+
Aharoni, Ziv, Rattner, Gal, and Permuter, Haim. Gradual learning of deep recurrent neural networks. arXiv preprint arXiv:1708.08863, 2017.
|
| 202 |
+
|
| 203 |
+
Anselmi, Fabio, Leibo, Joel Z, Rosasco, Lorenzo, Mutch, Jim, Tacchetti, Andrea, and Poggio, Tomaso. Unsupervised learning of invariant representations with low sample complexity: the magic of sensory cortex or a new framework for machine learning? 2014.
|
| 204 |
+
|
| 205 |
+
Ba, Jimmy, Hinton, Geoffrey E, Mnih, Volodymyr, Leibo, Joel Z, and Ionescu, Catalin. Using fast weights to attend to the recent past. In Advances In Neural Information Processing Systems, pp. 4331β4339, 2016.
|
| 206 |
+
|
| 207 |
+
Bahdanau, Dzmitry, Cho, Kyunghyun, and Bengio, Yoshua. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
|
| 208 |
+
|
| 209 |
+
Blundell, Charles, Uria, Benigno, Pritzel, Alexander, Li, Yazhe, Ruderman, Avraham, Leibo, Joel Z, Rae, Jack, Wierstra, Daan, and Hassabis, Demis. Model-free episodic control. arXiv preprint arXiv:1606.04460, 2016.
|
| 210 |
+
|
| 211 |
+
Finn, Chelsea, Abbeel, Pieter, and Levine, Sergey. Model-agnostic meta-learning for fast adaptation of deep networks. arXiv preprint arXiv:1703.03400, 2017.
|
| 212 |
+
|
| 213 |
+
Fortunato, Meire, Blundell, Charles, and Vinyals, Oriol. Bayesian recurrent neural networks. arXiv preprint arXiv:1704.02798, 2017.
|
| 214 |
+
|
| 215 |
+
French, Robert M. Catastrophic forgetting in connectionist networks. Trends in cognitive sciences, 3(4):128β135, 1999.
|
| 216 |
+
|
| 217 |
+
Furlanello, Tommaso, Zhao, Jiaping, Saxe, Andrew M, Itti, Laurent, and Tjan, Bosco S. Active long term memory networks. arXiv preprint arXiv:1606.02355, 2016.
|
| 218 |
+
|
| 219 |
+
Goodfellow, Ian J, Warde-Farley, David, Mirza, Mehdi, Courville, Aaron, and Bengio, Yoshua. Maxout networks. arXiv preprint arXiv:1302.4389, 2013.
|
| 220 |
+
|
| 221 |
+
Grave, Edouard, Joulin, Armand, and Usunier, Nicolas. Improving neural language models with a continuous cache. arXiv preprint arXiv:1612.04426, 2016.
|
| 222 |
+
|
| 223 |
+
Gu, Jiatao, Wang, Yong, Cho, Kyunghyun, and Li, Victor OK. Search engine guided non-parametric neural machine translation. arXiv preprint arXiv:1705.07267, 2017.
|
| 224 |
+
|
| 225 |
+
He, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770β778, 2016.
|
| 226 |
+
|
| 227 |
+
Hinton, Geoffrey, Vinyals, Oriol, and Dean, Jeff. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
|
| 228 |
+
|
| 229 |
+
Hochreiter, Sepp and Schmidhuber, Jurgen. Long short-term memory. Β¨ Neural computation, 9(8): 1735β1780, 1997.
|
| 230 |
+
|
| 231 |
+
Kaiser, Εukasz, Nachum, Ofir, Roy, Aurko, and Bengio, Samy. Learning to remember rare events. arXiv preprint arXiv:1703.03129, 2017.
|
| 232 |
+
|
| 233 |
+
Kingma, Diederik and Ba, Jimmy. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 234 |
+
|
| 235 |
+
Kirkpatrick, James, Pascanu, Razvan, Rabinowitz, Neil, Veness, Joel, Desjardins, Guillaume, Rusu, Andrei A, Milan, Kieran, Quan, John, Ramalho, Tiago, Grabska-Barwinska, Agnieszka, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, pp. 201611835, 2017.
|
| 236 |
+
|
| 237 |
+
Krause, Ben, Kahembwe, Emmanuel, Murray, Iain, and Renals, Steve. Dynamic evaluation of neural sequence models. arXiv preprint arXiv:1709.07432, 2017.
|
| 238 |
+
|
| 239 |
+
Krizhevsky, Alex, Sutskever, Ilya, and Hinton, Geoffrey E. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097β1105, 2012.
|
| 240 |
+
|
| 241 |
+
Kumaran, Dharshan, Hassabis, Demis, and McClelland, James L. What learning systems do intelligent agents need? complementary learning systems theory updated. Trends in cognitive sciences, 20(7):512β534, 2016.
|
| 242 |
+
|
| 243 |
+
LeCun, Yann, Bottou, Leon, Bengio, Yoshua, and Haffner, Patrick. Gradient-based learning applied Β΄ to document recognition. Proceedings of the IEEE, 86(11):2278β2324, 1998.
|
| 244 |
+
|
| 245 |
+
Leibo, Joel Z, Cornebise, Julien, Gomez, Sergio, and Hassabis, Demis. Approximate hubel-wiesel Β΄ modules and the data structures of neural computation. arXiv preprint arXiv:1512.08457, 2015.
|
| 246 |
+
|
| 247 |
+
Li, Xiaoqing, Zhang, Jiajun, and Zong, Chengqing. One sentence one model for neural machine translation. CoRR, abs/1609.06490, 2016. URL http://arxiv.org/abs/1609.06490.
|
| 248 |
+
|
| 249 |
+
Li, Zhizhong and Hoiem, Derek. Learning Without Forgetting, pp. 614β629. 2016.
|
| 250 |
+
|
| 251 |
+
Loader, Clive. Local regression and likelihood. Springer Science & Business Media, 2006.
|
| 252 |
+
|
| 253 |
+
Lopez-Paz, David and Ranzato, MarcβAurelio. Gradient episodic memory for continuum learning. arXiv preprint arXiv:1706.08840, 2017.
|
| 254 |
+
|
| 255 |
+
Marcus, Mitchell P, Marcinkiewicz, Mary Ann, and Santorini, Beatrice. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313β330, 1993.
|
| 256 |
+
|
| 257 |
+
McClelland, James L, McNaughton, Bruce L, and Oβreilly, Randall C. Why there are complementary learning systems in the hippocampus and neocortex: insights from the successes and failures of connectionist models of learning and memory. Psychological review, 102(3):419, 1995.
|
| 258 |
+
|
| 259 |
+
McCloskey, Michael and Cohen, Neal J. Catastrophic interference in connectionist networks: The sequential learning problem. Psychology of learning and motivation, 24:109β165, 1989.
|
| 260 |
+
|
| 261 |
+
Melis, Gabor, Dyer, Chris, and Blunsom, Phil. On the state of the art of evaluation in neural language Β΄ models. arXiv preprint arXiv:1707.05589, 2017.
|
| 262 |
+
|
| 263 |
+
Merity, Stephen, Xiong, Caiming, Bradbury, James, and Socher, Richard. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016.
|
| 264 |
+
|
| 265 |
+
Merity, Stephen, Keskar, Nitish Shirish, and Socher, Richard. Regularizing and optimizing lstm language models. arXiv preprint arXiv:1708.02182, 2017.
|
| 266 |
+
|
| 267 |
+
Mnih, Volodymyr, Kavukcuoglu, Koray, Silver, David, Rusu, Andrei A, Veness, Joel, Bellemare, Marc G, Graves, Alex, Riedmiller, Martin, Fidjeland, Andreas K, Ostrovski, Georg, et al. Humanlevel control through deep reinforcement learning. Nature, 518(7540):529β533, 2015.
|
| 268 |
+
|
| 269 |
+
Munkhdalai, Tsendsuren and Yu, Hong. Meta networks. arXiv preprint arXiv:1703.00837, 2017.
|
| 270 |
+
|
| 271 |
+
Oord, Aaron van den, Dieleman, Sander, Zen, Heiga, Simonyan, Karen, Vinyals, Oriol, Graves, Alex, Kalchbrenner, Nal, Senior, Andrew, and Kavukcuoglu, Koray. Wavenet: A generative model for raw audio. arXiv preprint arXiv:1609.03499, 2016.
|
| 272 |
+
|
| 273 |
+
Pritzel, Alexander, Uria, Benigno, Srinivasan, Sriram, Puigdomenech, Adri \` a, Vinyals, Oriol, Hass-\` abis, Demis, Wierstra, Daan, and Blundell, Charles. Neural episodic control. ICML, 2017.
|
| 274 |
+
|
| 275 |
+
Ravi, Sachin and Larochelle, Hugo. Optimization as a model for few-shot learning. ICLR, 2016.
|
| 276 |
+
|
| 277 |
+
Russakovsky, Olga, Deng, Jia, Su, Hao, Krause, Jonathan, Satheesh, Sanjeev, Ma, Sean, Huang, Zhiheng, Karpathy, Andrej, Khosla, Aditya, Bernstein, Michael, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211β252, 2015.
|
| 278 |
+
|
| 279 |
+
Santoro, Adam, Bartunov, Sergey, Botvinick, Matthew, Wierstra, Daan, and Lillicrap, Timothy. One-shot learning with memory-augmented neural networks. arXiv preprint arXiv:1605.06065, 2016.
|
| 280 |
+
|
| 281 |
+
Silver, David, Schrittwieser, Julian, Simonyan, Karen, Antonoglou, Ioannis, Huang, Aja, Guez, Arthur, Hubert, Thomas, Baker, Lucas, Lai, Matthew, Bolton, Adrian, Chen, Yutian Chen, Lillicrap, Timothy, Hui, Fan Hui, Sifre, Laurent, van den Driessche, George, Graepel, Thore, and Hassabis, Demis. Mastering the game of go without human knowledge. Nature, 550(7676): 354β359, 2017.
|
| 282 |
+
|
| 283 |
+
Snell, Jake, Swersky, Kevin, and Zemel, Richard S. Prototypical networks for few-shot learning. arXiv preprint arXiv:1703.05175, 2017.
|
| 284 |
+
|
| 285 |
+
Vinyals, Oriol, Blundell, Charles, Lillicrap, Tim, Wierstra, Daan, et al. Matching networks for one shot learning. In Advances in Neural Information Processing Systems, pp. 3630β3638, 2016.
|
| 286 |
+
|
| 287 |
+
Weston, Jason, Chopra, Sumit, and Bordes, Antoine. Memory networks. arXiv preprint arXiv:1410.3916, 2014.
|
| 288 |
+
|
| 289 |
+
Wu, Yonghui, Schuster, Mike, Chen, Zhifeng, Le, Quoc V, Norouzi, Mohammad, Macherey, Wolfgang, Krikun, Maxim, Cao, Yuan, Gao, Qin, Macherey, Klaus, et al. Googleβs neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016.
|
| 290 |
+
|
| 291 |
+
Zhang, Xiang, Zhao, Junbo, and LeCun, Yann. Character-level convolutional networks for text classification. In Advances in neural information processing systems, pp. 649β657, 2015.
|
| 292 |
+
|
| 293 |
+
# A MBPA HYPERPARAMETERS FOR INCREMENTAL LEARNING IMAGENET TASK
|
| 294 |
+
|
| 295 |
+
MbPA was robust and the inductive bias of the MbPA correction adapts the performance of the model on novel classes. This is shown in Figure 6 (right) where MbPA manages to achieve high performance almost at the same rate, regardless of the learning rate of the underlying parametric component.
|
| 296 |
+
|
| 297 |
+
In Figure 6 (left) we explore the influence in performance when changing the size of the episodic memory. We can see that the performance on the new classes is more sensitive to this parameter but it quickly saturates after about 400,000 entries. We repeat the above experiment by changing now the number of neighbours retrieved. The results are shown in Figure 7. We can observe that using more neighbours is better, but again, performance saturates quickly after 50 neighbours.
|
| 298 |
+
|
| 299 |
+

|
| 300 |
+
Figure 6: Left: Performance of MbPA when varying the dictionary size. Right: Performance of the parametric, mixture and MbPA models varying the learning rate of the parametric model. The colour code is the same as in Figure 4 and the thickness of the lines indicate the learning rate used.
|
| 301 |
+
|
| 302 |
+

|
| 303 |
+
Figure 7: Performance of MbPA when varying the number of nearest neighours used for performing the local adaptation.
|
| 304 |
+
|
| 305 |
+
# B MODEL DETAILS LANGUAGE MODELLING TASKS
|
| 306 |
+
|
| 307 |
+
For both datasets we used a single-layer LSTM baseline trained with Adam (Kingma & Ba, 2014) using the regularisation techniques described in Melis et al. (2017).
|
| 308 |
+
|
| 309 |
+
In this application of MbPA the test set is small (e.g. $< 8 0 { , } 0 0 0$ words for PTB), and so it was easy to overfit to the retrieved points. To remedy this, we tuned an L2 penalty $\beta | | \theta ^ { x } - \theta | | _ { 2 }$ term in our MbPA loss (7), where $\theta$ were the parameters derived from the training set and $\beta$ was a scalar hyper-parameter.
|
| 310 |
+
|
| 311 |
+
We swept over the following hyper-parameters:
|
| 312 |
+
|
| 313 |
+
β’ Memory size: $N \in \{ 5 0 0 , 1 0 0 0 , 5 0 0 0 \}$ β’ Nearest neighbours: $K \in \{ 2 5 6 , 5 1 2 \}$ β’ Cache interpolation: $\lambda _ { c a c h e } \in \{ 0 , 0 . 0 5 , 0 . 1 , 0 . 1 5 \}$ β’ MbPA interpolation: $\lambda _ { m b p a } \in \{ 0 , 0 . 0 5 , 0 . 1 , 0 . 1 5 \}$ β’ Number of MbPA optimisation steps: $T \in \{ 1 , 5 , 1 0 \}$ β’ MbPA optimization learning rate: $\alpha \in \{ 0 . 0 1 , 0 . 1 , 0 . 1 5 , 0 . 2 , 0 . 5 , 1 \}$
|
| 314 |
+
|
| 315 |
+
Where memory size refers to both the MbPA memory size, and the size of the neural cache for comparison, and the $\lambda$ interpolation parameters refer to the mixing of model outputs, alike to Eq. 5. The optimal parameters were: $N = 5 0 0 0$ , $K = 2 5 6$ , $\lambda _ { c a c h e } = 0 . 1 5$ , $\lambda _ { m b p a } = 0 . 1$ , $T = 1$ , $\alpha =$ 0.15.
|
| 316 |
+
|
| 317 |
+
For Penn Treebank, we used a pre-trained LSTM baseline containing roughly $1 0 M$ parameters with a hidden size of 1194 and a word embedding size of 268. For WikiText-2, we used a pretrained LSTM baseline containing roughly 24M parameters with a hidden size of 1,853 and a word embedding size of 241.
|
| 318 |
+
|
| 319 |
+
# C COMPARISON OF CACHE VS MBPA FOR WIKITEXT-2
|
| 320 |
+
|
| 321 |
+
The comparative benefit of MbPA is investigated, when combined with the $\mathrm { L S T M + }$ cache model. By computing the perplexity on a per-word basis and comparing whether the inclusion of MbPA improves (lowers) the perplexity, we can understand what types of words are better predicted. Anecdotal samples were not sufficient to understand the trend, however when the words were bucketed by their training frequency, we see a tend of improved performance for less frequent words.
|
| 322 |
+
|
| 323 |
+
This improved performance for rare words may be because the cache model has a prior to boost all recent words. Specifically, the cache probabilities are obtained from summing the attention for each instance of a word in memory, and so frequently occurring recent words that are not very contextually relevant will still be boosted. As MbPA does not do this, it appears to be more sensitive to infrequently occurring words.
|
| 324 |
+
|
| 325 |
+

|
| 326 |
+
Figure 8: Percent improvement when MbPA is included with the LSTM baseline and neural cache, split by training word frequency into five equally sized buckets. The bucket 1 contains the most frequent words, and bucket 5 contains the least frequent words. The average improvement $\pm 1$ standard deviation are shown. MbPA provides a directional improvement for less frequent words.
|
| 327 |
+
|
| 328 |
+
# D MAP INTERPRETATION OF MBPA AND DERIVATION OF CONTEXTUAL UPDATE
|
| 329 |
+
|
| 330 |
+
Let $x _ { c }$ correspond to the input of the $h _ { c } , v _ { c }$ key-value pair in the context $C$ of a given input $x$ . In other words, $h _ { c }$ was computed by feeding $x _ { c }$ to the embedding network. Then the posterior given
|
| 331 |
+
|
| 332 |
+
this pair and the parameter obtained after training $\theta$ , can be written as:
|
| 333 |
+
|
| 334 |
+
$$
|
| 335 |
+
p ( \theta ^ { x } | \theta , x _ { c } , v _ { c } , x ) = \frac { p ( v _ { c } | x _ { c } , \theta ^ { x } , x ) p ( \theta ^ { x } | \theta ) } { p ( v _ { c } | \theta , x _ { c } , x ) } .
|
| 336 |
+
$$
|
| 337 |
+
|
| 338 |
+
If we maximise the posterior over the context $C$ with respect to $\theta ^ { x }$ .
|
| 339 |
+
|
| 340 |
+
$$
|
| 341 |
+
\begin{array} { r l } { \arg \underset { \theta ^ { \alpha } } { \operatorname* { m a x } } \mathbb { E } _ { C } \left\{ \log p ( \theta ^ { x } | \theta , x _ { c } , v _ { c } , x ) \right\} = \arg \underset { \theta ^ { x } } { \operatorname* { m a x } } } & { \log p ( \theta ^ { x } | \theta ) + \mathbb { E } _ { C } \left\{ \log p ( v _ { c } | x _ { c } , \theta ^ { x } , x ) \right\} } \\ & { \qquad = \arg \underset { \theta ^ { \alpha } } { \operatorname* { m a x } } \log p ( \theta ^ { x } | \theta ) + \displaystyle \sum _ { k = 1 } ^ { K } w _ { k } ^ { ( x ) } \log p ( v _ { k } ^ { ( x ) } | h _ { k } ^ { ( x ) } , \theta ^ { x } , x ) . } \end{array}
|
| 342 |
+
$$
|
| 343 |
+
|
| 344 |
+
Let $\begin{array} { r } { \log p ( \theta ^ { x } | \theta ) \propto - \frac { | | \theta ^ { x } - \theta | | _ { 2 } ^ { 2 } } { 2 \alpha _ { M } } } \end{array}$ (i.e. a Gaussian prior on $\theta ^ { x }$ centred at $\theta$ ) be thought as a regularisation term that prevents the local adaptation to move $\theta ^ { x }$ too far from $\theta$ , preventing overfitting.
|
| 345 |
+
|
| 346 |
+
Another interpretation of (7) is that when the prior is taken to be a Gaussian, it is a form of elastic weight regularisation (similar to Kirkpatrick et al. (2017)) and the second term corresponds to the log likelihood of $\theta ^ { x }$ on the data in the context $C$ . This can also be seen as posterior sharpening (Fortunato et al., 2017), where we can think of the second term as an approximation of log $p ( \boldsymbol { y } _ { t } | \boldsymbol { x } _ { t } , \boldsymbol { \theta } )$ . Thus a view of MbPA is it is a form of local elastic weight consolidation on a context dataset $C$ .
|
| 347 |
+
|
| 348 |
+
Equation (7) does not have a closed form solution, and requires fitting a large number of parameters at inference time. This can be costly and susceptible to overfitting. We can avoid this problem by simply adapting the reference parameters $\theta$ . Specifically, we perform a fixed number of gradient descent steps (or any of its popular variants) to minimise (7). One step of gradient descent to the loss in (7) with respect to $\theta ^ { x }$ yields
|
| 349 |
+
|
| 350 |
+
$$
|
| 351 |
+
{ \Delta } _ { M } ( x , \theta ) = - \alpha _ { M } \left. \nabla _ { \theta } \sum _ { k = 1 } ^ { K } w _ { k } ^ { ( x ) } \log p ( v _ { k } ^ { ( x ) } | h _ { k } ^ { ( x ) } , \theta ^ { x } , x ) \right| _ { \theta } - \beta ( \theta - \theta ^ { x } ) ,
|
| 352 |
+
$$
|
| 353 |
+
|
| 354 |
+
where $\beta$ is a scalar hyper-parameter. These adapted parameters are used for output computation but discarded thereafter.
|
| 355 |
+
|
| 356 |
+
# E ATTENTION AS A SPECIAL CASE OF MBPA
|
| 357 |
+
|
| 358 |
+
Let $C = \{ ( w _ { i } , h _ { i } , v _ { i } ) \} _ { i = 1 } ^ { k }$ be the neighbourhood retrieved from memory given a query $q$ . The likelihood prediction based on attention is given by
|
| 359 |
+
|
| 360 |
+
$$
|
| 361 |
+
p _ { \mathrm { m e m } } ( y = j | q ) = \frac { \sum _ { i = 1 } ^ { k } w _ { i } \delta ( v _ { i } = j ) } { \sum _ { i = 1 } ^ { k } w _ { i } } ,
|
| 362 |
+
$$
|
| 363 |
+
|
| 364 |
+
where the Kronecker $\delta$ is one when the equality holds and zero otherwise. We now show how the attention-based prediction given in (9) can be seen as particular case of local adaptation.
|
| 365 |
+
|
| 366 |
+
For classification with $c$ classes, we parameterise $p _ { \mathrm { m e m } }$ via its logits, $z \in \mathbb { R } ^ { c }$ , with $p _ { \mathrm { m e m } } ( v | q ) =$ softmax $( z )$ . One good candidate $z$ is the one that is the most consistent with context $C$ . Specifically, the logit vector that minimises the weighted average negative log-likelihood (NLL) of the memories in context $C$ :
|
| 367 |
+
|
| 368 |
+
$$
|
| 369 |
+
z _ { q } = \underset { z } { \operatorname { a r g m i n } } \sum _ { i = 1 } ^ { N } w _ { i } \left( z _ { v _ { i } } - \log ( \sum _ { k = 1 } ^ { c } e ^ { z _ { k } } ) \right) .
|
| 370 |
+
$$
|
| 371 |
+
|
| 372 |
+
The attention weights scale the importance of each memory in the neighbour given its similarity to the query. This matches the loss (7) (ignoring the prior term). If we differentiate the above equation with respect to a $z _ { j }$ and set to zero, we obtain exactly the same expression as in (9).
|
| 373 |
+
|
| 374 |
+
Effectively, in (10) we are fitting a constant function to the context retrieved from the episodic memory. This is a particular case of a local likelihood model (Loader, 2006). The update also is the same as applying a k-nn, see Figure 2.
|
| 375 |
+
|
| 376 |
+
Note that this interpretation is not limited to classification tasks, the exact same reasoning (and result) could be done for a regression task, simply by changing the loss function to be Mean Squared Error (MSE).
|
| 377 |
+
|
| 378 |
+
In this context, we can think of MbPA as a generalisation of the attention mechanism, in which the function used for the local fitting is given by the output network. Moreover, the parameters of the model are used as a prior for solving the local fitting problem and only change slightly to prevent overfitting.
|
parse/train/rkfOvGbCW/rkfOvGbCW_content_list.json
ADDED
|
@@ -0,0 +1,1983 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Pablo Sprechmann\\*, Siddhant M. Jayakumar\\*, Jack W. Rae, Alexander Pritzel \nAdria Puigdom \\` enech Badia, Benigno Uria, Oriol Vinyals \\` \nDemis Hassabis, Razvan Pascanu, Charles Blundell \nDeepMind \nLondon, UK \n{psprechmann, sidmj, jwrae, apritzel, \nadriap, buria, vinyals, \ndhcontact, razp, cblundell}@google.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
143,
|
| 20 |
+
738,
|
| 21 |
+
257
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
292,
|
| 32 |
+
544,
|
| 33 |
+
308
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Deep neural networks have excelled on a wide range of problems, from vision to language and game playing. Neural networks very gradually incorporate information into weights as they process data, requiring very low learning rates. If the training distribution shifts, the network is slow to adapt, and when it does adapt, it typically performs badly on the training distribution before the shift. Our method, Memory-based Parameter Adaptation, stores examples in memory and then uses a context-based lookup to directly modify the weights of a neural network. Much higher learning rates can be used for this local adaptation, reneging the need for many iterations over similar data before good predictions can be made. As our method is memory-based, it alleviates several shortcomings of neural networks, such as catastrophic forgetting, fast, stable acquisition of new knowledge, learning with an imbalanced class labels, and fast learning during evaluation. We demonstrate this on a range of supervised tasks: large-scale image classification and language modelling. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
324,
|
| 43 |
+
764,
|
| 44 |
+
518
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
542,
|
| 55 |
+
336,
|
| 56 |
+
559
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Neural networks have been proven to be powerful function approximators, as shown in a long list of successful applications: image classification (e.g. Krizhevsky et al., 2012), audio processing (e.g. Oord et al., 2016), game playing (e.g. Mnih et al., 2015; Silver et al., 2017), and machine translation (e.g. Wu et al., 2016). Typically these applications apply batch training to large or near-infinite data sets, requiring many iterations to obtain satisfactory performance. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
574,
|
| 66 |
+
823,
|
| 67 |
+
643
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Humans and animals are able to incorporate new knowledge quickly from single examples, continually throughout much of their lifetime. In contrast, neural network-based models rely on the data distribution being stationary and the training procedure using low learning rates and many passes through the training data to obtain good generalisation. This limits their application to life-long learning or dynamic environments and tasks. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
651,
|
| 77 |
+
823,
|
| 78 |
+
720
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Problems in continual learning with neural networks commonly manifest as the phenomenon of catastrophic forgetting (McCloskey & Cohen, 1989; French, 1999): a neural network performs badly on old tasks having been trained to perform well on a new task. Several recent approaches have proven promising at overcoming this, such as elastic weight consolidation (Kirkpatrick et al., 2017). Recent work in language modelling has demonstrated how popular neural language models may appropriately be adapted to take advantage of rare, recently seen words, as in the neural cache (Grave et al., 2016), pointer sentinel networks (Merity et al., 2016) and learning to remember rare events (Kaiser et al., 2017). Our work generalises these approaches and we present experimental results where we apply our model to both continual or incremental learning tasks, as well as language modelling. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
728,
|
| 88 |
+
825,
|
| 89 |
+
867
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "We propose Memory-based Parameter Adaptation (MbPA), a method for augmenting neural networks with an episodic memory to allow for rapid acquisition of new knowledge while preserving the high performance and good generalisation of standard deep models. It combines desirable properties of many existing few-shot, continual learning and language models. We draw inspiration from the theory of complementary learning systems (CLS: McClelland et al., 1995; Leibo et al., 2015; Kumaran et al., 2016), where effective continual, life-long learning necessitates two complementary systems: one that allows for the gradual acquisition of structured knowledge, and another that allows rapid learning of the specifics of individual experiences. As such, MbPA consists of two components: a parametric component (a standard neural network) and a non-parametric component (a neural network augmented with a memory containing previous problem instances). The parametric component learns slowly but generalises well, whereas the non-parametric component rapidly adapts the weights of the parametric component. The non-parametric, instance-based adaptation of the weights is local, in the sense the modification is directly dictated by the inputs to the parametric component. The local adaptation is discarded after the model produces its output, avoiding long term consequences of strong local adaptation (such as overfitting), allowing the weights of the parametric model to learn slowly leading to strong performance and generalisation. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
873,
|
| 99 |
+
823,
|
| 100 |
+
902
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/bf5b55954aebbcf68a9dff8d751a4460e5d644785664fd22a45c2c3cf7131728.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: Architecture for the MbPA model. Left: Training usage. The parametric network is used directly and experiences are stored in the memory. Right: Testing setting. The embedding is used to query the episodic memory, the retrieved context is used to adapt the parameters of the output network. "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
196,
|
| 113 |
+
97,
|
| 114 |
+
802,
|
| 115 |
+
250
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
343,
|
| 125 |
+
825,
|
| 126 |
+
539
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "The contributions of our work are: $( i )$ proposing an architecture for enhancing powerful parametric models with a fast adaptation mechanism to efficiently cope with changes in the task at hand; (ii) establish connections between our method and attention mechanisms frequently used for querying memories; (iii) present a Bayesian interpretation of the method allowing a principled form of regularisation; $( i \\nu )$ evaluating the method on a range of different tasks: continual learning, incremental learning and data distribution shifts, obtaining promising results. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
545,
|
| 136 |
+
825,
|
| 137 |
+
628
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "2 MODEL-BASED PARAMETER ADAPTATION ",
|
| 144 |
+
"text_level": 1,
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
648,
|
| 148 |
+
557,
|
| 149 |
+
665
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "Our models consist of three components: an embedding network, $f _ { \\gamma }$ , a memory $M$ and an output network $g _ { \\theta }$ . The embedding network, $f _ { \\gamma }$ , and the output network, $g _ { \\theta }$ , are standard parametric (feed forward or recurrent) neural networks with parameters $\\gamma$ and $\\theta$ , respectively. The memory $M$ is a dynamically-sized memory module that stores key and value pairs, $M = \\{ ( h _ { i } , v _ { i } ) \\}$ . Keys $\\{ h _ { i } \\}$ are given by the embedding network. The values $\\dot { \\{ { v } _ { i } \\} }$ correspond to the desired output $y _ { i }$ . For classification, $y _ { i }$ would simply be the true class label, whereas for regression, $y _ { i }$ would be the true regression target. Hence, upon observing the $j$ -th example, we append the pair $( h _ { j } , v _ { j } )$ to the memory $M$ , where: ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
173,
|
| 158 |
+
679,
|
| 159 |
+
825,
|
| 160 |
+
792
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "equation",
|
| 166 |
+
"img_path": "images/2a26b5cf89949dc2dff4e59a2844b14092469742968dca1c7aab38a6df16ca5b.jpg",
|
| 167 |
+
"text": "$$\n\\begin{array} { l } { h _ { j } f _ { \\gamma } ( x _ { j } ) , } \\\\ { v _ { j } y _ { j } . } \\end{array}\n$$",
|
| 168 |
+
"text_format": "latex",
|
| 169 |
+
"bbox": [
|
| 170 |
+
449,
|
| 171 |
+
797,
|
| 172 |
+
545,
|
| 173 |
+
835
|
| 174 |
+
],
|
| 175 |
+
"page_idx": 1
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"type": "text",
|
| 179 |
+
"text": "The memory has a fixed size and acts as a circular buffer: when it is full, the oldest data is overwritten first. Retrieval from the memory $M$ uses $K$ -nearest neighbour search on the keys $\\{ h _ { i } \\}$ with Euclidean distance to obtain the $K$ most similar keys and associated values. ",
|
| 180 |
+
"bbox": [
|
| 181 |
+
174,
|
| 182 |
+
845,
|
| 183 |
+
823,
|
| 184 |
+
888
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "Our model is used differently in the training and testing phases. During training, for a given input $x$ , we parametrise the conditional likelihood with a deep neural network given by the composition ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
173,
|
| 193 |
+
895,
|
| 194 |
+
821,
|
| 195 |
+
924
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "Algorithm 1 Model-based Parameter Adaptation ",
|
| 202 |
+
"text_level": 1,
|
| 203 |
+
"bbox": [
|
| 204 |
+
176,
|
| 205 |
+
103,
|
| 206 |
+
495,
|
| 207 |
+
118
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 2
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "table",
|
| 213 |
+
"img_path": "images/8135d76b27889baea49bba51a98d8d3f8a367bceb8adef996707a4f0fa3959b8.jpg",
|
| 214 |
+
"table_caption": [],
|
| 215 |
+
"table_footnote": [],
|
| 216 |
+
"table_body": "<table><tr><td>Aigoritnm1Model-basedParameterAdaptation procedure MBPA-TRAIN</td></tr><tr><td>Sample mini-batch of training examples B = {(xb, yb)}b from training data.</td></tr><tr><td>Calculate the embedded mini-batch B'= {(fΞ³(xb),yb) : xb,yb βB}.</td></tr><tr><td>Update 0,Ξ³ by maximising the likelihood (1) of ΞΈ and Ξ³ with respect to mini-batch B</td></tr><tr><td>Add the embedded mini-batch examples B' to memory M: M β MU B'.</td></tr><tr><td>procedure MBPA-TEST(test input: x, output prediction: y)</td></tr><tr><td>Calculate embedding q = fΞ³(x),and β³total β 0.</td></tr><tr><td>(xοΌ οΌ(x) )k=1</td></tr><tr><td>for each step of MbPA do</td></tr><tr><td>Calculate β³m(x,ΞΈ +β³total) according to (4)</td></tr><tr><td>β³total ββ³total +β³M(x).</td></tr><tr><td>Output prediction y = g0+β³tota (h)</td></tr></table>",
|
| 217 |
+
"bbox": [
|
| 218 |
+
176,
|
| 219 |
+
109,
|
| 220 |
+
799,
|
| 221 |
+
301
|
| 222 |
+
],
|
| 223 |
+
"page_idx": 2
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"type": "text",
|
| 227 |
+
"text": "of the embedding and output networks. Namely, ",
|
| 228 |
+
"bbox": [
|
| 229 |
+
173,
|
| 230 |
+
327,
|
| 231 |
+
490,
|
| 232 |
+
342
|
| 233 |
+
],
|
| 234 |
+
"page_idx": 2
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"type": "equation",
|
| 238 |
+
"img_path": "images/88c902b34ff122d5497b466ad260f5bdf0d17e88cccd4c4ba14d555778d593d2.jpg",
|
| 239 |
+
"text": "$$\np _ { \\mathrm { t r a i n } } ( y | x , \\gamma , \\theta ) = g _ { \\theta } ( f _ { \\gamma } ( x ) ) .\n$$",
|
| 240 |
+
"text_format": "latex",
|
| 241 |
+
"bbox": [
|
| 242 |
+
401,
|
| 243 |
+
345,
|
| 244 |
+
596,
|
| 245 |
+
363
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 2
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "In the case of classification, the last layer of $g _ { \\theta }$ is a softmax layer. The parameters $\\{ \\theta , \\gamma \\}$ are estimated by maximum likelihood estimation. The memory is updated with new entries, as they are seen, however no local adaptation is performed on the model. Figure 1 (left) shows a diagram of the training setting and Algorithm 1 (MbPA-Train) shows the algorithm for updating MbPA during training. ",
|
| 252 |
+
"bbox": [
|
| 253 |
+
173,
|
| 254 |
+
366,
|
| 255 |
+
825,
|
| 256 |
+
438
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 2
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "text",
|
| 262 |
+
"text": "On the other hand, at test time, it temporarily adapts the parameters of the output network based upon the current input and the contents of the memory $M$ . That is, it uses the exact same parametrisation as (1), but with a different set of parameters in the output network. ",
|
| 263 |
+
"bbox": [
|
| 264 |
+
173,
|
| 265 |
+
443,
|
| 266 |
+
825,
|
| 267 |
+
486
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 2
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"text": "Let the context $C$ of an input $x$ be the keys, values and associated weights of the $K$ nearest neighbours to query $q \\ = \\ f _ { \\gamma } ( x )$ in the memory $M$ : $C = \\{ ( h _ { k } ^ { ( x ) } , v _ { k } ^ { ( x ) } , \\bar { w } _ { k } ^ { ( x ) } ) \\} _ { k = 1 } ^ { K }$ The coefficients $w _ { k } ^ { ( x ) } \\propto \\ker ( h _ { k } ^ { ( x ) } , q )$ are weightings of each of the retrieved neighbours according to their closeness to the query $f _ { \\gamma } ( { \\boldsymbol { x } } ) . \\operatorname { k e r n } ( h , q )$ is a kernel function which, following (Pritzel et al., 2017), we choose as $\\begin{array} { r } { \\ker ( h , q ) = \\frac { 1 } { \\epsilon + \\lVert h - q \\rVert _ { 2 } ^ { 2 } } } \\end{array}$ . The parametrisation of the likelihood takes the form, ",
|
| 274 |
+
"bbox": [
|
| 275 |
+
173,
|
| 276 |
+
492,
|
| 277 |
+
825,
|
| 278 |
+
575
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 2
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "equation",
|
| 284 |
+
"img_path": "images/42813a0dd295386a636ca7795db365b04cc3f41f7d878219932618a0eb974015.jpg",
|
| 285 |
+
"text": "$$\n\\begin{array} { r } { p ( y | x , \\theta ^ { x } ) = p ( y | x , \\theta ^ { x } , C ) = g _ { \\theta ^ { x } } ( f _ { \\gamma } ( x ) ) , } \\end{array}\n$$",
|
| 286 |
+
"text_format": "latex",
|
| 287 |
+
"bbox": [
|
| 288 |
+
357,
|
| 289 |
+
580,
|
| 290 |
+
637,
|
| 291 |
+
598
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 2
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "text",
|
| 297 |
+
"text": "as opposed to the standard parametric approach $g _ { \\theta } ( f _ { \\gamma } ( x ) )$ , where $\\theta ^ { x } \\ = \\ \\theta + \\Delta _ { M } ( x , \\theta )$ with $\\Delta _ { M } \\bar { ( \\boldsymbol { x } , \\boldsymbol { \\theta } ) }$ being a contextual (it is based upon the input $x$ ) update of the parameters of the output network. The MbPA adaptation corresponds to decreasing the weighted average negative loglikelihood over the retrieved neighbours in $C$ . Figure 1 (right) shows a diagram of the testing setting and Algorithm 1(MbPA-Test) shows the algorithm for using MbPA during testing. ",
|
| 298 |
+
"bbox": [
|
| 299 |
+
173,
|
| 300 |
+
601,
|
| 301 |
+
825,
|
| 302 |
+
672
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 2
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "text",
|
| 308 |
+
"text": "An interesting property of the model is that the correction $\\Delta _ { M } ( x , \\theta )$ is such that, as the parametric model becomes better at fitting the training data (and consequently the episodic memories), it selfregulates and diminishes. In the CLS theory, this process is referred to as consolidation, when the parametric model can reliably perform predictions without relying on episodic memories. ",
|
| 309 |
+
"bbox": [
|
| 310 |
+
173,
|
| 311 |
+
678,
|
| 312 |
+
825,
|
| 313 |
+
736
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 2
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "text",
|
| 319 |
+
"text": "2.1 MAXIMUM A POSTERIORI INTERPRETATION OF MBPA ",
|
| 320 |
+
"text_level": 1,
|
| 321 |
+
"bbox": [
|
| 322 |
+
173,
|
| 323 |
+
751,
|
| 324 |
+
593,
|
| 325 |
+
766
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 2
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "text",
|
| 331 |
+
"text": "We can now derive $\\Delta _ { M } ( x , \\theta )$ , motivated by considering the posterior distribution on the parameters $\\theta ^ { x }$ . Let $x$ correspond to the input with context $C = \\{ h _ { k } , v _ { k } , w _ { k } ^ { ( x ) } \\} _ { k = 1 } ^ { K }$ w(x)k }Kk=1. The maximum a posteriori over the context $C$ , given the parameters obtained after training $\\theta$ , can be written as: ",
|
| 332 |
+
"bbox": [
|
| 333 |
+
173,
|
| 334 |
+
776,
|
| 335 |
+
826,
|
| 336 |
+
824
|
| 337 |
+
],
|
| 338 |
+
"page_idx": 2
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"type": "equation",
|
| 342 |
+
"img_path": "images/100d0dcca61d39bddf5081f857152111cc0a7e0d41794611e07179b8baa2a817.jpg",
|
| 343 |
+
"text": "$$\n\\operatorname* { m a x } _ { \\theta ^ { x } } \\log p ( \\theta ^ { x } | \\theta ) + \\sum _ { k = 1 } ^ { K } w _ { k } ^ { ( x ) } \\log p ( v _ { k } ^ { ( x ) } | h _ { k } ^ { ( x ) } , \\theta ^ { x } , x ) ,\n$$",
|
| 344 |
+
"text_format": "latex",
|
| 345 |
+
"bbox": [
|
| 346 |
+
325,
|
| 347 |
+
827,
|
| 348 |
+
669,
|
| 349 |
+
871
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 2
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "text",
|
| 355 |
+
"text": "where the second term is a weighted likelihood of the data in C and log p(ΞΈx|ΞΈ) β β ||ΞΈxβΞΈ||222Ξ±M ( i.e. a Gaussian prior on $\\theta ^ { x }$ centred at $\\theta$ ) can be thought as a regularisation term that prevents overfitting. See Appendix $\\mathrm { D }$ for details of this derivation. ",
|
| 356 |
+
"bbox": [
|
| 357 |
+
174,
|
| 358 |
+
875,
|
| 359 |
+
825,
|
| 360 |
+
924
|
| 361 |
+
],
|
| 362 |
+
"page_idx": 2
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"type": "image",
|
| 366 |
+
"img_path": "images/49827038181af68573ad0a8242f56be9014f4ca296954e0177473e0a3499cf4b.jpg",
|
| 367 |
+
"image_caption": [
|
| 368 |
+
"Figure 2: Illustrative diagram of the local fitting on a regression task. Given a query (blue), we retrieve the context from memory showed in red. "
|
| 369 |
+
],
|
| 370 |
+
"image_footnote": [],
|
| 371 |
+
"bbox": [
|
| 372 |
+
366,
|
| 373 |
+
99,
|
| 374 |
+
627,
|
| 375 |
+
247
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 3
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "text",
|
| 381 |
+
"text": "Equation (3) does not have a closed form solution, and requires fitting a large number of parameters at inference time. This can be costly and susceptible to overfitting. We can avoid this problem by adapting the reference parameters $\\theta$ . Specifically, we perform a fixed number of gradient descent steps to minimise (3). One step of gradient descent to the loss in (3) with respect to $\\theta ^ { x }$ yields ",
|
| 382 |
+
"bbox": [
|
| 383 |
+
174,
|
| 384 |
+
314,
|
| 385 |
+
825,
|
| 386 |
+
369
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 3
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "equation",
|
| 392 |
+
"img_path": "images/6af173c29bae8db4056e431d772e408d1ab4de3ac7de6ce6a06ebe7661cf592e.jpg",
|
| 393 |
+
"text": "$$\n{ \\Delta } _ { M } ( x , \\theta ) = - \\alpha _ { M } \\left. \\nabla _ { \\theta } \\sum _ { k = 1 } ^ { K } w _ { k } ^ { ( x ) } \\log p ( v _ { k } ^ { ( x ) } | h _ { k } ^ { ( x ) } , \\theta ^ { x } , x ) \\right| _ { \\theta } - \\beta ( \\theta - \\theta ^ { x } ) ,\n$$",
|
| 394 |
+
"text_format": "latex",
|
| 395 |
+
"bbox": [
|
| 396 |
+
266,
|
| 397 |
+
372,
|
| 398 |
+
730,
|
| 399 |
+
416
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "where $\\beta$ is a scalar hyper-parameter. These adapted parameters are used for output computation but discarded thereafter, as described in Algorithm 1. ",
|
| 406 |
+
"bbox": [
|
| 407 |
+
174,
|
| 408 |
+
419,
|
| 409 |
+
823,
|
| 410 |
+
446
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "2.2 FROM ATTENTION TO LOCAL FITTING ",
|
| 417 |
+
"text_level": 1,
|
| 418 |
+
"bbox": [
|
| 419 |
+
176,
|
| 420 |
+
463,
|
| 421 |
+
473,
|
| 422 |
+
478
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 3
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "A standard formulation of memory augmented networks is in the form of attention (Bahdanau et al., 2014), i.e. query memory to use a weighted average based on some similarity metric. ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
171,
|
| 431 |
+
489,
|
| 432 |
+
821,
|
| 433 |
+
518
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "We can now show that an attention-based procedure is a particular case of local adaptation or MbPA. The details of this are discussed in Appendix E. Effectively, attention can be viewed as fitting a constant function the neighbourhood of memories, whereas MbPA generalises to fit a function parameterised by the output network of our model. ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
525,
|
| 443 |
+
825,
|
| 444 |
+
580
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "The diagram in Figure 2 illustrates an example in a regression task for simplicity. Given a query (blue), the retrieved memories and their corresponding values are depicted in red. The predictions of an attention based model are shown in orange. We can see that the prediction is biased towards the value of the neighbours with higher functional value. In magenta we represent the predictions made by the model $g _ { \\theta }$ . We can see that it is not able to explain all memories equally well. This could be either because the problem is too difficult, poor training, or because the a prediction needs to be made while assimilating new information. The green curve show the prediction obtained after adapting the parameters to better explain the episodic memories. ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
174,
|
| 453 |
+
587,
|
| 454 |
+
825,
|
| 455 |
+
699
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 3
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "3 RELATED WORK ",
|
| 462 |
+
"text_level": 1,
|
| 463 |
+
"bbox": [
|
| 464 |
+
176,
|
| 465 |
+
718,
|
| 466 |
+
341,
|
| 467 |
+
734
|
| 468 |
+
],
|
| 469 |
+
"page_idx": 3
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "text",
|
| 473 |
+
"text": "A key component of MbPA is the non-parametric, episodic memory. Many recent works have looked at augmenting neural network systems with memories to allow for fast adaptation or incorporation of new knowledge. Variants of this architecture have been successfully used in the context of classification (Vinyals et al., 2016; Santoro et al., 2016; Kaiser et al., 2017), language modelling (Merity et al., 2016; Grave et al., 2016), reinforcement learning (Blundell et al., 2016; Pritzel et al., 2017), machine translation (Bahdanau et al., 2014), and question answering (Weston et al., 2014), to name a few. For the MbPA experiments below, we use a memory architecture similar to the Differentiable Neural Dictionary (DND) used in Neural Episodic Control (NEC) (Pritzel et al., 2017). One key difference is that we do not train the embedding network through the gradients from the memories (as they are not used at training time). ",
|
| 474 |
+
"bbox": [
|
| 475 |
+
174,
|
| 476 |
+
750,
|
| 477 |
+
825,
|
| 478 |
+
888
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 3
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "While many of these approaches share a contextual memory lookup system, MbPA is distinct in the method by which the memories are used. Matching Networks (Vinyals et al., 2016) use a nonparametric network to map from a few examples to a target class via a kernel weighted average. Prototypical Networks (Snell et al., 2017) extend this and use a linear model instead of a nearest neighbour method. ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
173,
|
| 487 |
+
895,
|
| 488 |
+
823,
|
| 489 |
+
924
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 3
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "",
|
| 496 |
+
"bbox": [
|
| 497 |
+
176,
|
| 498 |
+
103,
|
| 499 |
+
821,
|
| 500 |
+
145
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 4
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "MbPA is further related to meta-learning approaches for few shot learning. In the context of learning invariant representations for object recognition, Anselmi et al. (2014) proposed a method that can invariantly and discriminatively represent objects using a single sample, even of a new class. In their method, instead of training via gradient descent, image templates are stored in the weights of simple-complex cell networks while objects undergo transformations. Optimisation as a model of few shot learning (Ravi & Larochelle, 2016) proposes using a meta-learner LSTM to control the gradient updates of another network, while Model-Agnostic Meta-Learning (MAML Finn et al. (2017)) proposes a way of doing meta-learning over a distribution of tasks. These methods extend the classic fine-tuning technique used in domain adaptation type of ideas (e.g. fit a given neural network to a small set of new data). The MAML algorithm (particularly related to our work) aims at learning an easily adaptable set of weights, such that given a small amount of training data for a given task following the training distribution, the fine-tuning procedure would effectively adapt the weights to this particular task. Their work does not use any memory or per-example adaptation and is not based on a continual (life-long) learning setting. In contrast, our work, aims at augmenting a powerful neural network with a fine-tuning procedure that is used at inference only. The idea is to enhance the performance of the parametric model while maintaining its full training. ",
|
| 507 |
+
"bbox": [
|
| 508 |
+
174,
|
| 509 |
+
154,
|
| 510 |
+
825,
|
| 511 |
+
375
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 4
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "Recent approaches to addressing the continual learning problem have included elastic weight consolidation (Kirkpatrick et al., 2017), where a penalty term is added to the loss for deviations far from previous weights, and learning without forgetting (Li & Hoiem, 2016; Furlanello et al., 2016), where distillation (Hinton et al., 2015) from previously trained models is used to keep old knowledge available. Gradient Episodic Memory for Continual Learning (Lopez-Paz & Ranzato, 2017) attempts to solve the problem by storing data from previous tasks and taking gradient updates when learning new tasks that do not increase the training loss on examples stored in memory. ",
|
| 518 |
+
"bbox": [
|
| 519 |
+
174,
|
| 520 |
+
382,
|
| 521 |
+
825,
|
| 522 |
+
478
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 4
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "There has been recent work in applying attention to quickly adapt a subset of fast weights (Ba et al., 2016). A number of recent works in language modelling have augmented prediction with attention over recent examples to account for the distributional shift between training and testing settings. Works in this direction include neural cache (Grave et al., 2016) and pointer sentinel networks (Merity et al., 2016). Learning to remember rare events (Kaiser et al., 2017) augments an LSTM with a key-value memory structure, and meta networks (Munkhdalai & Yu, 2017) combines fast weights with regular weights. Our model shares this flavour of attention and fast weights, while providing a model agnostic memory-based method that applies beyond language modelling. ",
|
| 529 |
+
"bbox": [
|
| 530 |
+
174,
|
| 531 |
+
486,
|
| 532 |
+
825,
|
| 533 |
+
597
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 4
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "Works in the context of machine translation relate to MbPA. Gu et al. (2017) explore how to incorporate information from memory into the final model predictions. The authors find that shallow mixing works best. We show in this paper that MbPA is another competitive strategy to shallow mixing, and often working better (PTB for language modelling, ImageNet for image classification). The work by Li et al. (2016) shares the focus on fast-adaptation during inference with our work. Given a test example, the translation model is fine-tuned by fitting similar sentences from the training set. MbPA can be viewed as a generalisation of such approach: it relies on an episodic memory (rather than the training set), contextual lookup and similarity based weighting scheme to fine-tune the original model. Collectively, these allow MbPA to be a powerful domain-agnostic algorithm, which allows it to handle continual and incremental learning. ",
|
| 540 |
+
"bbox": [
|
| 541 |
+
174,
|
| 542 |
+
604,
|
| 543 |
+
825,
|
| 544 |
+
743
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 4
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "Finally, we mention that our work is closely related to the local regression and adaptive coefficient models literature, see Loader (2006) and references therein. Locally adaptive methods achieved relatively modest success in high-dimensional classification problems, as fitting many parameters to a few neighbours often leads to over fitting. We attempt to counter this with contextual lookups and a local modification of only a subset of model parameters. ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
174,
|
| 553 |
+
751,
|
| 554 |
+
823,
|
| 555 |
+
820
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 4
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "4 EXPERIMENTS AND RESULTS ",
|
| 562 |
+
"text_level": 1,
|
| 563 |
+
"bbox": [
|
| 564 |
+
176,
|
| 565 |
+
854,
|
| 566 |
+
447,
|
| 567 |
+
871
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 4
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": "Our scheme unifies elements from traditional approaches to continual, one-shot, and incremental or life-long learning. Models that solve these problems must have certain fundamental attributes in common: the ability to negate the effects of catastrophic forgetting, unbalanced and scarce data, while displaying rapid acquisition of knowledge and good generalisation. ",
|
| 574 |
+
"bbox": [
|
| 575 |
+
173,
|
| 576 |
+
895,
|
| 577 |
+
823,
|
| 578 |
+
922
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 4
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "text",
|
| 584 |
+
"text": "",
|
| 585 |
+
"bbox": [
|
| 586 |
+
171,
|
| 587 |
+
103,
|
| 588 |
+
821,
|
| 589 |
+
132
|
| 590 |
+
],
|
| 591 |
+
"page_idx": 5
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"type": "text",
|
| 595 |
+
"text": "In essence, these problems require the ability to deal with changes and shifts in data distributions. We demonstrate that MbPA provides a way to address this. More concretely, due to the robustness of the local adaptation, the model can deal with shifts in domain distribution (e.g. train vs test set in language), the task label set (e.g. incremental learning) or sequential distributional shifts (e.g. continual learning). Further, MbPA is agnostic to both task domain (e.g. image or language) and choice of underlying parametric model, e.g. convolutional neural networks (LeCun et al., 1998) or LSTM (Hochreiter & Schmidhuber, 1997). ",
|
| 596 |
+
"bbox": [
|
| 597 |
+
174,
|
| 598 |
+
138,
|
| 599 |
+
825,
|
| 600 |
+
236
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 5
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "To this end, our experiments focus on displaying the advantages of MbPA on widely used tasks and datasets, comparing with competing deep learning methods and baselines. We start by looking at the continual learning framework, followed by incremental learning, the problems of unbalanced data and test time distributional changes. ",
|
| 607 |
+
"bbox": [
|
| 608 |
+
174,
|
| 609 |
+
243,
|
| 610 |
+
825,
|
| 611 |
+
299
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 5
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "text",
|
| 617 |
+
"text": "4.1 CONTINUAL LEARNING: SEQUENTIAL DISTRIBUTIONAL SHIFT ",
|
| 618 |
+
"text_level": 1,
|
| 619 |
+
"bbox": [
|
| 620 |
+
174,
|
| 621 |
+
327,
|
| 622 |
+
645,
|
| 623 |
+
340
|
| 624 |
+
],
|
| 625 |
+
"page_idx": 5
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "text",
|
| 629 |
+
"text": "In this set of experiments, we explored the effects of MbPA on continual learning, i.e. when dealing with the problem of sequentially learning multiple tasks without the ability to revisit a task. ",
|
| 630 |
+
"bbox": [
|
| 631 |
+
173,
|
| 632 |
+
356,
|
| 633 |
+
823,
|
| 634 |
+
385
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 5
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"text": "We considered the permuted MNIST setup (Goodfellow et al., 2013). In this setting, each task was given by a different random permutation of the pixels of the MNIST dataset. We explored a chaining of 20 different tasks (20 different permutations) trained sequentially. The model was tested on all tasks it had been trained on thus far. ",
|
| 641 |
+
"bbox": [
|
| 642 |
+
174,
|
| 643 |
+
391,
|
| 644 |
+
823,
|
| 645 |
+
446
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 5
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"text": "We trained all models using 10,000 examples per task, comparing to elastic weight consolidation (EWC; Kirkpatrick et al., 2017) and regular gradient descent training. In all cases we rely on a two layer MLP and use Adam (Kingma & Ba, 2014) as the optimiser. The EWC penalty cost was chosen using a grid search, as was the local MbPA learning rate (between 0.0 and 1.0) and number of optimisation steps for MbPA (between 1 and 20). ",
|
| 652 |
+
"bbox": [
|
| 653 |
+
174,
|
| 654 |
+
455,
|
| 655 |
+
825,
|
| 656 |
+
525
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 5
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"text": "Figure 3 compares our approach with that of the baselines. For this particular task we worked directly on pixels as our embedding, i.e. $f _ { \\gamma }$ is the identity function, and explored regimes where the episodic memory is small. A key takeaway of this experiment is that once a task is catastrophically forgotten, we find that only a few gradient steps on carefully selected data from memory are sufficient to recover performance, as MbPA does. Considering the number of updates required to reach the solution from random initialisation, this fact itself might seem surprising. MbPA provides a principled and effective way of performing these updates. The naive approach of performing updates on memories chosen at random from the entire memory is considerably less useful. ",
|
| 663 |
+
"bbox": [
|
| 664 |
+
174,
|
| 665 |
+
531,
|
| 666 |
+
823,
|
| 667 |
+
642
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 5
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "We outperformed the MLP, and were superior to EWC for all but one memory size (when storing only a 100 examples per task). Further, the performance of our model grew with the number of examples stored, ceteris paribus. Crucially, our memory requirements are much lower than that of EWC, which requires storing model parameters and Fisher matrices for all tasks seen so far. Unlike EWC we do not store any tasks identifiers, merely appending the memory with a few examples. Further, MbPA does not use knowledge of exact task boundaries or identities of tasks switched to, unlike EWC and other methods. This allows for frequent switches that would otherwise hamper the Fisher calculations needed for models like EWC. ",
|
| 674 |
+
"bbox": [
|
| 675 |
+
174,
|
| 676 |
+
650,
|
| 677 |
+
825,
|
| 678 |
+
761
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 5
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "Our method can be combined with any other algorithm such as standard replay from the memory buffer or EWC, providing further improvement. In Figure 3 (right) we combine MbPA and EWC. ",
|
| 685 |
+
"bbox": [
|
| 686 |
+
174,
|
| 687 |
+
768,
|
| 688 |
+
821,
|
| 689 |
+
796
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 5
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "4.2 INCREMENTAL LEARNING: SHIFTS IN TASK LABEL DISTRIBUTIONS ",
|
| 696 |
+
"bbox": [
|
| 697 |
+
174,
|
| 698 |
+
824,
|
| 699 |
+
681,
|
| 700 |
+
838
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 5
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "The goal of this section was to evaluate the model in the context of incremental learning. We considered a classification scenario where a model pre-trained on a subset of classes, was introduced to novel, previously unseen classes. The aim was to incorporate the new related knowledge, as quickly as possible, while preserving knowledge from the previous set. This was as opposed to the continual learning problem where there are distinct tasks without the ability to revisit old data. ",
|
| 707 |
+
"bbox": [
|
| 708 |
+
174,
|
| 709 |
+
854,
|
| 710 |
+
823,
|
| 711 |
+
922
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 5
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "image",
|
| 717 |
+
"img_path": "images/2cbcd709adb66ca8bb71574fd1fa498a3aa36147913e630b30df692412fe95b6.jpg",
|
| 718 |
+
"image_caption": [
|
| 719 |
+
"Figure 3: (Left) Results on Permuted MNIST comparing baselines with MbPA using different memory sizes. (Right) Results augmenting MbPA with EWC, showing the flexibility and complementarity of MbPA. "
|
| 720 |
+
],
|
| 721 |
+
"image_footnote": [],
|
| 722 |
+
"bbox": [
|
| 723 |
+
194,
|
| 724 |
+
107,
|
| 725 |
+
800,
|
| 726 |
+
252
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 6
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "text",
|
| 732 |
+
"text": "Specifically we considered the problem of image classification on the ImageNet dataset (Russakovsky et al., 2015). As a parametric model we used a ResnetV1 model (He et al., 2016). This was pre-trained on a random subset of the ImageNet dataset containing half of the classes. We then presented all 1000 classes and evaluated how quickly the network can acquire this knowledge (i.e. perform well across all 1000 classes). ",
|
| 733 |
+
"bbox": [
|
| 734 |
+
174,
|
| 735 |
+
340,
|
| 736 |
+
825,
|
| 737 |
+
410
|
| 738 |
+
],
|
| 739 |
+
"page_idx": 6
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"type": "text",
|
| 743 |
+
"text": "For MbPA, we used the penultimate layer of the network as the embedding network $f _ { \\gamma }$ , forming the key $h$ and query $q$ for our episodic memory $M$ . The last fully connected layer was used to initialise the parametric model $g _ { \\theta }$ . MbPA was applied at test time, using RMSprop with a local learning rate $\\alpha _ { M }$ and the number of optimisation steps (as in Algorithm 1) tuned as hyper-parameters. ",
|
| 744 |
+
"bbox": [
|
| 745 |
+
173,
|
| 746 |
+
417,
|
| 747 |
+
825,
|
| 748 |
+
473
|
| 749 |
+
],
|
| 750 |
+
"page_idx": 6
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"type": "text",
|
| 754 |
+
"text": "A natural baseline was to simply fine-tune the last layer of the parametric model with the new training set. We also evaluated a mixture model, combining the classifications of the parametric model and the non-parametric model at decision level in the following manner: ",
|
| 755 |
+
"bbox": [
|
| 756 |
+
174,
|
| 757 |
+
479,
|
| 758 |
+
821,
|
| 759 |
+
522
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 6
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "equation",
|
| 765 |
+
"img_path": "images/c51e28aa4f694e7b13af291a101f5a2d2be0dddbe3dfe4f753c83a115bf9c0ce.jpg",
|
| 766 |
+
"text": "$$\np ( y | q ) = \\lambda p _ { \\mathrm { p a r a m } } ( y | q ) + ( 1 - \\lambda ) p _ { \\mathrm { m e m } } ( y | q ) ,\n$$",
|
| 767 |
+
"text_format": "latex",
|
| 768 |
+
"bbox": [
|
| 769 |
+
354,
|
| 770 |
+
526,
|
| 771 |
+
642,
|
| 772 |
+
545
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 6
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "where the parameter $\\lambda \\in [ 0 , 1 ]$ controls the contribution of each model (this model was proposed by Grave et al. (2016) in the context of language modelling). We created five random splits in new and old classes. Hyperparameters were tuned for all models using the first split and the validation set, and we report the average performance on the remaining splits evaluated on the test set. ",
|
| 779 |
+
"bbox": [
|
| 780 |
+
173,
|
| 781 |
+
547,
|
| 782 |
+
825,
|
| 783 |
+
604
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 6
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "Figure 4 shows the test set performance for all models, split by new and old classes. ",
|
| 790 |
+
"bbox": [
|
| 791 |
+
173,
|
| 792 |
+
611,
|
| 793 |
+
722,
|
| 794 |
+
626
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 6
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "While the mixture model provides a large improvement over the plain parametric model, MbPA significantly outperforms both of them both in speed and performance. This is particularly noticeable in the new classes, where MbPA acquires knowledge from very few examples. Table 1 shows a quantitative analysis of these observations. After around 30 epoches the parametric model matches the performance of MbPA. In the appendix we explore sensitivity of MbPA on this task to various hyperparameters (memory size, learning rate). ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
174,
|
| 803 |
+
632,
|
| 804 |
+
825,
|
| 805 |
+
717
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 6
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "4.2.1 UNBALANCED DATASETS ",
|
| 812 |
+
"text_level": 1,
|
| 813 |
+
"bbox": [
|
| 814 |
+
176,
|
| 815 |
+
731,
|
| 816 |
+
401,
|
| 817 |
+
746
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 6
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "text",
|
| 823 |
+
"text": "We further explored the incremental introduction of new classes, specifically in the context of unbalanced datasets. Most real world data are unbalanced, whereas standard datasets (like ImageNet) are artificially balanced to play well with deep learning methods. ",
|
| 824 |
+
"bbox": [
|
| 825 |
+
176,
|
| 826 |
+
756,
|
| 827 |
+
825,
|
| 828 |
+
799
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 6
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "text",
|
| 834 |
+
"text": "We replicated the setting from the ImageNet experiments in the previous section, where new classes were introduced to a pre-trained model. However, we only showed a tenth of the data for half the new classes and all data for the other half. We report performance on the full balanced validation set. Once again, we compared the parametric model with MbPA and a memory based mixture model. ",
|
| 835 |
+
"bbox": [
|
| 836 |
+
174,
|
| 837 |
+
804,
|
| 838 |
+
825,
|
| 839 |
+
861
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 6
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "text",
|
| 845 |
+
"text": "Results are summarised in Figure 5 (left). After 20 epochs of training, MbPA outperformed both baselines, with a wider gap in performance than the previous experiment. Further, the mixture model, though equipped with memory, did significantly worse than MbPA, leading us to conclude that the inductive bias in the local adaptation process was well suited to deal with data scarcity. ",
|
| 846 |
+
"bbox": [
|
| 847 |
+
174,
|
| 848 |
+
867,
|
| 849 |
+
823,
|
| 850 |
+
924
|
| 851 |
+
],
|
| 852 |
+
"page_idx": 6
|
| 853 |
+
},
|
| 854 |
+
{
|
| 855 |
+
"type": "table",
|
| 856 |
+
"img_path": "images/99497f1b12644cc7e86512b2bc4122a11791cdf6e6e98e4b373a67551a68c716.jpg",
|
| 857 |
+
"table_caption": [
|
| 858 |
+
"Table 1: Quantitative evaluation of the learning dynamics for the Imagenet experiment. We compare a parametric model, non-parametric model (prediction based on memory only (9)), a mixture model and MbPA. We report the top 1 accuracy as well as the area under the curve (AUC) at different points in training. "
|
| 859 |
+
],
|
| 860 |
+
"table_footnote": [],
|
| 861 |
+
"table_body": "<table><tr><td rowspan=\"2\">Subset</td><td rowspan=\"2\">Model</td><td colspan=\"3\">Top 1 (at epochs)</td><td colspan=\"3\">AUC (at epochs)</td></tr><tr><td>0.1</td><td>1</td><td>3</td><td>0.1</td><td>1</td><td>3</td></tr><tr><td rowspan=\"4\">Novel</td><td>MbPA</td><td>46.2 %</td><td>64.5 %</td><td>65.7 %</td><td>27.4 %</td><td>57.7 %</td><td>63.0 %</td></tr><tr><td>Non-Parametric</td><td>40.0 %</td><td>53.3 %</td><td>52.9 %</td><td>28.3 %</td><td>47.9 %</td><td>51.8 %</td></tr><tr><td>Mixture</td><td>31.6 %</td><td>56.0 %</td><td>59.1 %</td><td>18.6 %</td><td>47.4 %</td><td>54.7 %</td></tr><tr><td>Parametric</td><td>16.2 %</td><td>53.6 %</td><td>57.9 %</td><td>5.7 %</td><td>41.7 %</td><td>51.9 %</td></tr><tr><td rowspan=\"4\">Pre Trained</td><td>MbPA</td><td>68.5 %</td><td>70.9 %</td><td>70.9 %</td><td>71.4 %</td><td>70.3 %</td><td>70.3 %</td></tr><tr><td>Non-Parametric</td><td>62.7 %</td><td>69.4 %</td><td>70.0 %</td><td>45.9 %</td><td>65.8 %</td><td>68.7 %</td></tr><tr><td>Mixture</td><td>71.9 %</td><td>70.3 %</td><td>70.2 %</td><td>74.8 %</td><td>70.6 %</td><td>70.1 %</td></tr><tr><td>Parametric</td><td>71.4 %</td><td>68.1 %</td><td>68.8 %</td><td>76.0 %</td><td>68.6 %</td><td>68.3 %</td></tr></table>",
|
| 862 |
+
"bbox": [
|
| 863 |
+
184,
|
| 864 |
+
99,
|
| 865 |
+
808,
|
| 866 |
+
243
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 7
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "image",
|
| 872 |
+
"img_path": "images/c5cc3b65b2160373872d43edecda7c4405134c93ce04e390e100a6f22e2a9201.jpg",
|
| 873 |
+
"image_caption": [
|
| 874 |
+
"Figure 4: The figure compares the performance of MbPA (blue) against two baselines: the parametric model (green) and the mixture of experts (red). (Left) Aggregated performance (Right) disentangled performance evaluated on new (dashed) and old (solid) classes. "
|
| 875 |
+
],
|
| 876 |
+
"image_footnote": [],
|
| 877 |
+
"bbox": [
|
| 878 |
+
204,
|
| 879 |
+
335,
|
| 880 |
+
789,
|
| 881 |
+
473
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 7
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "4.3 LANGUAGE MODELLING: DOMAIN SHIFTS ",
|
| 888 |
+
"text_level": 1,
|
| 889 |
+
"bbox": [
|
| 890 |
+
178,
|
| 891 |
+
553,
|
| 892 |
+
508,
|
| 893 |
+
568
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 7
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "Finally we considered how MbPA can be used at test time to further improve the performance of language modelling. Given the general formulation of MbPA, this could be applied to any problem where there is a shift in distribution at test time β we focus on language modelling, where using recent information has proved promising, such as neural cache and dynamic evaluation (Grave et al., 2016; Krause et al., 2017). ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
174,
|
| 902 |
+
582,
|
| 903 |
+
825,
|
| 904 |
+
651
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 7
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "We considered two datasets with established performance benchmarks, Penn Treebank (PTB; Marcus et al., 1993) and WikiText-2 (Merity et al., 2016). We pre-trained an LSTM and apply MbPA to the weights and biases of the output softmax layer. The memory stores the past LSTM outputs and associated class labels observed during evaluation. Full model details and hyper-parameters are detailed in Appendix B. ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
174,
|
| 913 |
+
659,
|
| 914 |
+
825,
|
| 915 |
+
728
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 7
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "Penn Treebank is a small text corpus containing 887,521 train tokens, 70,390 validation tokens, and 78,669 test tokens; with a vocabulary size of 10,000. The LSTM obtained a test perplexity of 59.6 and this dropped by 4.3 points when interpolated with the neural cache. When we interpolated an LSTM with MbPA we were able to improve on the LSTM baseline by 5.3 points (an additional one from the cache model). We also attempted a dynamic evaluation scheme in a similar style to Krause et al. (2017), where we loaded the Adam optimisation parameters obtained during training and evaluated with training of the LSTM enabled, using a BPTT window of 5 steps. However we did not manage to obtain gains above 1 perplexity from baseline, and so we did not try it for WikiText-2. ",
|
| 922 |
+
"bbox": [
|
| 923 |
+
173,
|
| 924 |
+
734,
|
| 925 |
+
825,
|
| 926 |
+
848
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 7
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "WikiText-2 is a larger text corpus than PTB, derived from Wikipedia articles. It contains 2,088,628 train tokens, 217,646 validation tokens, and 245,569 test tokens, with a vocabulary of 33,278. Our LSTM baseline obtained a test perplexity of 65.9, and this is improved by 14.6 points when mixed with a neural cache. Combining the baseline LSTM with an LSTM fit with MbPA we see a drop of 9.9 points, however the combination of all three models (LSTM baseline $+ \\mathrm { M b P A } +$ cache) produced ",
|
| 933 |
+
"bbox": [
|
| 934 |
+
174,
|
| 935 |
+
853,
|
| 936 |
+
825,
|
| 937 |
+
924
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 7
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "image",
|
| 943 |
+
"img_path": "images/c41b5c92fb5bee6179520c30df8f051177432b71df5f70a6ac505a33db4aacce.jpg",
|
| 944 |
+
"image_caption": [
|
| 945 |
+
"Figure 5: (Left) MbPA outperformed both parametric and memory-based mixture baselines, in the presence of unbalanced data on previously unseen classes (dashed lines). (Right) Example of MbPA. Query (shown larger in the top-right corner) of class βTVβ and neighbourhood (all other images) for a specific case. Mixture and parametric models fail to classify the image while MbPA succeeds. 8 different classes in the closest 20 neighbours (e.g. βdesktop computerβ, βmonitorβ, βCRT screenβ). Accuracy went from $2 5 \\%$ to $7 5 \\%$ after local adaptation. "
|
| 946 |
+
],
|
| 947 |
+
"image_footnote": [],
|
| 948 |
+
"bbox": [
|
| 949 |
+
186,
|
| 950 |
+
109,
|
| 951 |
+
812,
|
| 952 |
+
260
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 8
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "table",
|
| 958 |
+
"img_path": "images/c3f7e93b44563e06c85ee44cb1c0ce7ad0017050a10703e7a9161807d8ebe7e8.jpg",
|
| 959 |
+
"table_caption": [
|
| 960 |
+
"the largest drop of 15.9 points. Comparing the perplexity word-by-word between LSTM $^ +$ cache and LSTM $^ +$ cache $^ +$ MbPA, we see that MbPA improves predictions for rarer words (Figure 8). "
|
| 961 |
+
],
|
| 962 |
+
"table_footnote": [
|
| 963 |
+
"Table 2: Table with PTB and WikiText-2 perplexities. $\\Delta$ Test denotes improvement of model on the test set relative to the corresponding baseline. "
|
| 964 |
+
],
|
| 965 |
+
"table_body": "<table><tr><td></td><td>Valid</td><td>PTB Test β³Test</td><td></td><td>WikiText-2 Valid Test</td><td></td><td>β³Test</td></tr><tr><td>CharCNN (Zhang et al., 2015) Variational LSTM (Aharoni et al., 2017) LSTM + cache (Grave et al., 2016) LSTM (Melis et al., 2017) AWD-LSTM (Merity et al., 2017) AWD-LSTM + cache (Merity et al., 2017) AWD-LSTM (reprod.) (Krause et al., 2017) AWD-LSTM+ dyn eval (Krause et al., 2017)</td><td>74.6 60.9 60.0 53.9 59.8 51.6</td><td>78.9 61.7 72.1 58.3 57.3 52.8 57.7 51.1</td><td>- 4.5 - 6.6</td><td>72.1 69.1 68.6 53.8 68.9 46.4</td><td>68.9 65.9 65.8 52.0 66.1 44.3</td><td>- 13.8 - 21.8</td></tr><tr><td>LSTM (ours) LSTM + cache (ours) LSTM+MbPA LSTM+MbPA+cache</td><td>61.8 55.7 54.8 54.8</td><td>59.6 55.3 54.3 54.4</td><td>-4.3 -5.3 -5.2</td><td>69.3 53.2 58.4 51.8</td><td>65.9 51.3 56.0 49.4</td><td>-14.6 -9.9 -16.5</td></tr></table>",
|
| 966 |
+
"bbox": [
|
| 967 |
+
174,
|
| 968 |
+
424,
|
| 969 |
+
825,
|
| 970 |
+
652
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 8
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "5 CONCLUSION ",
|
| 977 |
+
"text_level": 1,
|
| 978 |
+
"bbox": [
|
| 979 |
+
176,
|
| 980 |
+
712,
|
| 981 |
+
318,
|
| 982 |
+
728
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 8
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"text": "We have described Memory-based Parameter Adaptation (MbPA), a scheme for using an episodic memory structure to locally adapt the parameters of a neural network based upon the current input context. MbPA works well on a wide range of supervised learning tasks in several incremental, lifelong learning settings: image classification, language modelling. Our experiments show that MbPA improves performance in continual learning experiments, comparable to or in many cases exceeding the performance of EWC. We also demonstrated that MbPA allows neural networks to rapidly adapt to previously unseen classes in large-scale image classification problems using the ImageNet dataset. Furthermore, MbPA can use the local, contextual updates from memory to counter and alleviate the effect of imbalanced classification data, where some new classes are over-represented at train time whilst others are underrepresented. Finally we demonstrated on two language modelling tasks that MbPA is able to adapts to shifts in word distribution common in language modelling tasks, achieving significant improvements in performance compared to LSTMs and building on methods like neural cache (Grave et al., 2016). ",
|
| 989 |
+
"bbox": [
|
| 990 |
+
173,
|
| 991 |
+
743,
|
| 992 |
+
825,
|
| 993 |
+
924
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 8
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 1000 |
+
"text_level": 1,
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
176,
|
| 1003 |
+
104,
|
| 1004 |
+
326,
|
| 1005 |
+
117
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 9
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "We would like to thank Gabor Melis for providing the LSTM baselines on the language tasks. We would also like to thank Dharshan Kumaran, Jonathan Hunt, Olivier Tieleman, Koray Kavukcuoglu, Daan Wierstra, Sam Ritter, Jane Wang, Alistair Muldal, Nando de Frietas, Tim Harley, Jacob Menick and Steven Hansen for many helpful comments and invigorating discussions. ",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
174,
|
| 1014 |
+
128,
|
| 1015 |
+
825,
|
| 1016 |
+
184
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 9
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "REFERENCES ",
|
| 1023 |
+
"text_level": 1,
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
174,
|
| 1026 |
+
205,
|
| 1027 |
+
285,
|
| 1028 |
+
220
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 9
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Aharoni, Ziv, Rattner, Gal, and Permuter, Haim. Gradual learning of deep recurrent neural networks. arXiv preprint arXiv:1708.08863, 2017. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
171,
|
| 1037 |
+
228,
|
| 1038 |
+
823,
|
| 1039 |
+
257
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 9
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "Anselmi, Fabio, Leibo, Joel Z, Rosasco, Lorenzo, Mutch, Jim, Tacchetti, Andrea, and Poggio, Tomaso. Unsupervised learning of invariant representations with low sample complexity: the magic of sensory cortex or a new framework for machine learning? 2014. ",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
174,
|
| 1048 |
+
266,
|
| 1049 |
+
823,
|
| 1050 |
+
309
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 9
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "Ba, Jimmy, Hinton, Geoffrey E, Mnih, Volodymyr, Leibo, Joel Z, and Ionescu, Catalin. Using fast weights to attend to the recent past. In Advances In Neural Information Processing Systems, pp. 4331β4339, 2016. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
173,
|
| 1059 |
+
318,
|
| 1060 |
+
821,
|
| 1061 |
+
361
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 9
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Bahdanau, Dzmitry, Cho, Kyunghyun, and Bengio, Yoshua. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
173,
|
| 1070 |
+
369,
|
| 1071 |
+
823,
|
| 1072 |
+
400
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 9
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "Blundell, Charles, Uria, Benigno, Pritzel, Alexander, Li, Yazhe, Ruderman, Avraham, Leibo, Joel Z, Rae, Jack, Wierstra, Daan, and Hassabis, Demis. Model-free episodic control. arXiv preprint arXiv:1606.04460, 2016. ",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
176,
|
| 1081 |
+
409,
|
| 1082 |
+
823,
|
| 1083 |
+
452
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 9
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Finn, Chelsea, Abbeel, Pieter, and Levine, Sergey. Model-agnostic meta-learning for fast adaptation of deep networks. arXiv preprint arXiv:1703.03400, 2017. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
171,
|
| 1092 |
+
460,
|
| 1093 |
+
825,
|
| 1094 |
+
489
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 9
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "Fortunato, Meire, Blundell, Charles, and Vinyals, Oriol. Bayesian recurrent neural networks. arXiv preprint arXiv:1704.02798, 2017. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
174,
|
| 1103 |
+
500,
|
| 1104 |
+
823,
|
| 1105 |
+
527
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 9
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "French, Robert M. Catastrophic forgetting in connectionist networks. Trends in cognitive sciences, 3(4):128β135, 1999. ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
173,
|
| 1114 |
+
537,
|
| 1115 |
+
823,
|
| 1116 |
+
566
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 9
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Furlanello, Tommaso, Zhao, Jiaping, Saxe, Andrew M, Itti, Laurent, and Tjan, Bosco S. Active long term memory networks. arXiv preprint arXiv:1606.02355, 2016. ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
173,
|
| 1125 |
+
575,
|
| 1126 |
+
823,
|
| 1127 |
+
604
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 9
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "Goodfellow, Ian J, Warde-Farley, David, Mirza, Mehdi, Courville, Aaron, and Bengio, Yoshua. Maxout networks. arXiv preprint arXiv:1302.4389, 2013. ",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
173,
|
| 1136 |
+
613,
|
| 1137 |
+
823,
|
| 1138 |
+
643
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 9
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "Grave, Edouard, Joulin, Armand, and Usunier, Nicolas. Improving neural language models with a continuous cache. arXiv preprint arXiv:1612.04426, 2016. ",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
171,
|
| 1147 |
+
651,
|
| 1148 |
+
823,
|
| 1149 |
+
681
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 9
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "Gu, Jiatao, Wang, Yong, Cho, Kyunghyun, and Li, Victor OK. Search engine guided non-parametric neural machine translation. arXiv preprint arXiv:1705.07267, 2017. ",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
173,
|
| 1158 |
+
689,
|
| 1159 |
+
823,
|
| 1160 |
+
719
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 9
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "He, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770β778, 2016. ",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
173,
|
| 1169 |
+
728,
|
| 1170 |
+
825,
|
| 1171 |
+
771
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 9
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "Hinton, Geoffrey, Vinyals, Oriol, and Dean, Jeff. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. ",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
169,
|
| 1180 |
+
780,
|
| 1181 |
+
823,
|
| 1182 |
+
809
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 9
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "Hochreiter, Sepp and Schmidhuber, Jurgen. Long short-term memory. Β¨ Neural computation, 9(8): 1735β1780, 1997. ",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
169,
|
| 1191 |
+
819,
|
| 1192 |
+
823,
|
| 1193 |
+
847
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 9
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "Kaiser, Εukasz, Nachum, Ofir, Roy, Aurko, and Bengio, Samy. Learning to remember rare events. arXiv preprint arXiv:1703.03129, 2017. ",
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
173,
|
| 1202 |
+
857,
|
| 1203 |
+
821,
|
| 1204 |
+
886
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 9
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "Kingma, Diederik and Ba, Jimmy. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1211 |
+
"bbox": [
|
| 1212 |
+
173,
|
| 1213 |
+
895,
|
| 1214 |
+
821,
|
| 1215 |
+
924
|
| 1216 |
+
],
|
| 1217 |
+
"page_idx": 9
|
| 1218 |
+
},
|
| 1219 |
+
{
|
| 1220 |
+
"type": "text",
|
| 1221 |
+
"text": "Kirkpatrick, James, Pascanu, Razvan, Rabinowitz, Neil, Veness, Joel, Desjardins, Guillaume, Rusu, Andrei A, Milan, Kieran, Quan, John, Ramalho, Tiago, Grabska-Barwinska, Agnieszka, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, pp. 201611835, 2017. ",
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
174,
|
| 1224 |
+
103,
|
| 1225 |
+
826,
|
| 1226 |
+
160
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 10
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "text",
|
| 1232 |
+
"text": "Krause, Ben, Kahembwe, Emmanuel, Murray, Iain, and Renals, Steve. Dynamic evaluation of neural sequence models. arXiv preprint arXiv:1709.07432, 2017. ",
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
169,
|
| 1235 |
+
167,
|
| 1236 |
+
823,
|
| 1237 |
+
198
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 10
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "Krizhevsky, Alex, Sutskever, Ilya, and Hinton, Geoffrey E. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097β1105, 2012. ",
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
176,
|
| 1246 |
+
205,
|
| 1247 |
+
823,
|
| 1248 |
+
248
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 10
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "text",
|
| 1254 |
+
"text": "Kumaran, Dharshan, Hassabis, Demis, and McClelland, James L. What learning systems do intelligent agents need? complementary learning systems theory updated. Trends in cognitive sciences, 20(7):512β534, 2016. ",
|
| 1255 |
+
"bbox": [
|
| 1256 |
+
173,
|
| 1257 |
+
257,
|
| 1258 |
+
823,
|
| 1259 |
+
300
|
| 1260 |
+
],
|
| 1261 |
+
"page_idx": 10
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"type": "text",
|
| 1265 |
+
"text": "LeCun, Yann, Bottou, Leon, Bengio, Yoshua, and Haffner, Patrick. Gradient-based learning applied Β΄ to document recognition. Proceedings of the IEEE, 86(11):2278β2324, 1998. ",
|
| 1266 |
+
"bbox": [
|
| 1267 |
+
173,
|
| 1268 |
+
308,
|
| 1269 |
+
821,
|
| 1270 |
+
338
|
| 1271 |
+
],
|
| 1272 |
+
"page_idx": 10
|
| 1273 |
+
},
|
| 1274 |
+
{
|
| 1275 |
+
"type": "text",
|
| 1276 |
+
"text": "Leibo, Joel Z, Cornebise, Julien, Gomez, Sergio, and Hassabis, Demis. Approximate hubel-wiesel Β΄ modules and the data structures of neural computation. arXiv preprint arXiv:1512.08457, 2015. ",
|
| 1277 |
+
"bbox": [
|
| 1278 |
+
173,
|
| 1279 |
+
345,
|
| 1280 |
+
821,
|
| 1281 |
+
376
|
| 1282 |
+
],
|
| 1283 |
+
"page_idx": 10
|
| 1284 |
+
},
|
| 1285 |
+
{
|
| 1286 |
+
"type": "text",
|
| 1287 |
+
"text": "Li, Xiaoqing, Zhang, Jiajun, and Zong, Chengqing. One sentence one model for neural machine translation. CoRR, abs/1609.06490, 2016. URL http://arxiv.org/abs/1609.06490. ",
|
| 1288 |
+
"bbox": [
|
| 1289 |
+
174,
|
| 1290 |
+
383,
|
| 1291 |
+
823,
|
| 1292 |
+
412
|
| 1293 |
+
],
|
| 1294 |
+
"page_idx": 10
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"type": "text",
|
| 1298 |
+
"text": "Li, Zhizhong and Hoiem, Derek. Learning Without Forgetting, pp. 614β629. 2016. ",
|
| 1299 |
+
"bbox": [
|
| 1300 |
+
173,
|
| 1301 |
+
421,
|
| 1302 |
+
720,
|
| 1303 |
+
438
|
| 1304 |
+
],
|
| 1305 |
+
"page_idx": 10
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"type": "text",
|
| 1309 |
+
"text": "Loader, Clive. Local regression and likelihood. Springer Science & Business Media, 2006. ",
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
171,
|
| 1312 |
+
444,
|
| 1313 |
+
771,
|
| 1314 |
+
460
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 10
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "text",
|
| 1320 |
+
"text": "Lopez-Paz, David and Ranzato, MarcβAurelio. Gradient episodic memory for continuum learning. arXiv preprint arXiv:1706.08840, 2017. ",
|
| 1321 |
+
"bbox": [
|
| 1322 |
+
169,
|
| 1323 |
+
468,
|
| 1324 |
+
820,
|
| 1325 |
+
497
|
| 1326 |
+
],
|
| 1327 |
+
"page_idx": 10
|
| 1328 |
+
},
|
| 1329 |
+
{
|
| 1330 |
+
"type": "text",
|
| 1331 |
+
"text": "Marcus, Mitchell P, Marcinkiewicz, Mary Ann, and Santorini, Beatrice. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313β330, 1993. ",
|
| 1332 |
+
"bbox": [
|
| 1333 |
+
173,
|
| 1334 |
+
506,
|
| 1335 |
+
821,
|
| 1336 |
+
536
|
| 1337 |
+
],
|
| 1338 |
+
"page_idx": 10
|
| 1339 |
+
},
|
| 1340 |
+
{
|
| 1341 |
+
"type": "text",
|
| 1342 |
+
"text": "McClelland, James L, McNaughton, Bruce L, and Oβreilly, Randall C. Why there are complementary learning systems in the hippocampus and neocortex: insights from the successes and failures of connectionist models of learning and memory. Psychological review, 102(3):419, 1995. ",
|
| 1343 |
+
"bbox": [
|
| 1344 |
+
173,
|
| 1345 |
+
542,
|
| 1346 |
+
821,
|
| 1347 |
+
587
|
| 1348 |
+
],
|
| 1349 |
+
"page_idx": 10
|
| 1350 |
+
},
|
| 1351 |
+
{
|
| 1352 |
+
"type": "text",
|
| 1353 |
+
"text": "McCloskey, Michael and Cohen, Neal J. Catastrophic interference in connectionist networks: The sequential learning problem. Psychology of learning and motivation, 24:109β165, 1989. ",
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
173,
|
| 1356 |
+
594,
|
| 1357 |
+
823,
|
| 1358 |
+
625
|
| 1359 |
+
],
|
| 1360 |
+
"page_idx": 10
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"type": "text",
|
| 1364 |
+
"text": "Melis, Gabor, Dyer, Chris, and Blunsom, Phil. On the state of the art of evaluation in neural language Β΄ models. arXiv preprint arXiv:1707.05589, 2017. ",
|
| 1365 |
+
"bbox": [
|
| 1366 |
+
173,
|
| 1367 |
+
632,
|
| 1368 |
+
821,
|
| 1369 |
+
661
|
| 1370 |
+
],
|
| 1371 |
+
"page_idx": 10
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"type": "text",
|
| 1375 |
+
"text": "Merity, Stephen, Xiong, Caiming, Bradbury, James, and Socher, Richard. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016. ",
|
| 1376 |
+
"bbox": [
|
| 1377 |
+
173,
|
| 1378 |
+
670,
|
| 1379 |
+
821,
|
| 1380 |
+
699
|
| 1381 |
+
],
|
| 1382 |
+
"page_idx": 10
|
| 1383 |
+
},
|
| 1384 |
+
{
|
| 1385 |
+
"type": "text",
|
| 1386 |
+
"text": "Merity, Stephen, Keskar, Nitish Shirish, and Socher, Richard. Regularizing and optimizing lstm language models. arXiv preprint arXiv:1708.02182, 2017. ",
|
| 1387 |
+
"bbox": [
|
| 1388 |
+
171,
|
| 1389 |
+
707,
|
| 1390 |
+
823,
|
| 1391 |
+
737
|
| 1392 |
+
],
|
| 1393 |
+
"page_idx": 10
|
| 1394 |
+
},
|
| 1395 |
+
{
|
| 1396 |
+
"type": "text",
|
| 1397 |
+
"text": "Mnih, Volodymyr, Kavukcuoglu, Koray, Silver, David, Rusu, Andrei A, Veness, Joel, Bellemare, Marc G, Graves, Alex, Riedmiller, Martin, Fidjeland, Andreas K, Ostrovski, Georg, et al. Humanlevel control through deep reinforcement learning. Nature, 518(7540):529β533, 2015. ",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
173,
|
| 1400 |
+
744,
|
| 1401 |
+
823,
|
| 1402 |
+
789
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 10
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "text",
|
| 1408 |
+
"text": "Munkhdalai, Tsendsuren and Yu, Hong. Meta networks. arXiv preprint arXiv:1703.00837, 2017. ",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
171,
|
| 1411 |
+
796,
|
| 1412 |
+
808,
|
| 1413 |
+
813
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 10
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "text",
|
| 1419 |
+
"text": "Oord, Aaron van den, Dieleman, Sander, Zen, Heiga, Simonyan, Karen, Vinyals, Oriol, Graves, Alex, Kalchbrenner, Nal, Senior, Andrew, and Kavukcuoglu, Koray. Wavenet: A generative model for raw audio. arXiv preprint arXiv:1609.03499, 2016. ",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
173,
|
| 1422 |
+
820,
|
| 1423 |
+
821,
|
| 1424 |
+
863
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 10
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "text",
|
| 1430 |
+
"text": "Pritzel, Alexander, Uria, Benigno, Srinivasan, Sriram, Puigdomenech, Adri \\` a, Vinyals, Oriol, Hass-\\` abis, Demis, Wierstra, Daan, and Blundell, Charles. Neural episodic control. ICML, 2017. ",
|
| 1431 |
+
"bbox": [
|
| 1432 |
+
173,
|
| 1433 |
+
872,
|
| 1434 |
+
820,
|
| 1435 |
+
900
|
| 1436 |
+
],
|
| 1437 |
+
"page_idx": 10
|
| 1438 |
+
},
|
| 1439 |
+
{
|
| 1440 |
+
"type": "text",
|
| 1441 |
+
"text": "Ravi, Sachin and Larochelle, Hugo. Optimization as a model for few-shot learning. ICLR, 2016. ",
|
| 1442 |
+
"bbox": [
|
| 1443 |
+
171,
|
| 1444 |
+
909,
|
| 1445 |
+
805,
|
| 1446 |
+
924
|
| 1447 |
+
],
|
| 1448 |
+
"page_idx": 10
|
| 1449 |
+
},
|
| 1450 |
+
{
|
| 1451 |
+
"type": "text",
|
| 1452 |
+
"text": "Russakovsky, Olga, Deng, Jia, Su, Hao, Krause, Jonathan, Satheesh, Sanjeev, Ma, Sean, Huang, Zhiheng, Karpathy, Andrej, Khosla, Aditya, Bernstein, Michael, et al. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211β252, 2015. ",
|
| 1453 |
+
"bbox": [
|
| 1454 |
+
176,
|
| 1455 |
+
103,
|
| 1456 |
+
821,
|
| 1457 |
+
146
|
| 1458 |
+
],
|
| 1459 |
+
"page_idx": 11
|
| 1460 |
+
},
|
| 1461 |
+
{
|
| 1462 |
+
"type": "text",
|
| 1463 |
+
"text": "Santoro, Adam, Bartunov, Sergey, Botvinick, Matthew, Wierstra, Daan, and Lillicrap, Timothy. One-shot learning with memory-augmented neural networks. arXiv preprint arXiv:1605.06065, 2016. ",
|
| 1464 |
+
"bbox": [
|
| 1465 |
+
176,
|
| 1466 |
+
155,
|
| 1467 |
+
823,
|
| 1468 |
+
196
|
| 1469 |
+
],
|
| 1470 |
+
"page_idx": 11
|
| 1471 |
+
},
|
| 1472 |
+
{
|
| 1473 |
+
"type": "text",
|
| 1474 |
+
"text": "Silver, David, Schrittwieser, Julian, Simonyan, Karen, Antonoglou, Ioannis, Huang, Aja, Guez, Arthur, Hubert, Thomas, Baker, Lucas, Lai, Matthew, Bolton, Adrian, Chen, Yutian Chen, Lillicrap, Timothy, Hui, Fan Hui, Sifre, Laurent, van den Driessche, George, Graepel, Thore, and Hassabis, Demis. Mastering the game of go without human knowledge. Nature, 550(7676): 354β359, 2017. ",
|
| 1475 |
+
"bbox": [
|
| 1476 |
+
173,
|
| 1477 |
+
205,
|
| 1478 |
+
826,
|
| 1479 |
+
276
|
| 1480 |
+
],
|
| 1481 |
+
"page_idx": 11
|
| 1482 |
+
},
|
| 1483 |
+
{
|
| 1484 |
+
"type": "text",
|
| 1485 |
+
"text": "Snell, Jake, Swersky, Kevin, and Zemel, Richard S. Prototypical networks for few-shot learning. arXiv preprint arXiv:1703.05175, 2017. ",
|
| 1486 |
+
"bbox": [
|
| 1487 |
+
173,
|
| 1488 |
+
285,
|
| 1489 |
+
823,
|
| 1490 |
+
315
|
| 1491 |
+
],
|
| 1492 |
+
"page_idx": 11
|
| 1493 |
+
},
|
| 1494 |
+
{
|
| 1495 |
+
"type": "text",
|
| 1496 |
+
"text": "Vinyals, Oriol, Blundell, Charles, Lillicrap, Tim, Wierstra, Daan, et al. Matching networks for one shot learning. In Advances in Neural Information Processing Systems, pp. 3630β3638, 2016. ",
|
| 1497 |
+
"bbox": [
|
| 1498 |
+
173,
|
| 1499 |
+
323,
|
| 1500 |
+
823,
|
| 1501 |
+
353
|
| 1502 |
+
],
|
| 1503 |
+
"page_idx": 11
|
| 1504 |
+
},
|
| 1505 |
+
{
|
| 1506 |
+
"type": "text",
|
| 1507 |
+
"text": "Weston, Jason, Chopra, Sumit, and Bordes, Antoine. Memory networks. arXiv preprint arXiv:1410.3916, 2014. ",
|
| 1508 |
+
"bbox": [
|
| 1509 |
+
173,
|
| 1510 |
+
361,
|
| 1511 |
+
823,
|
| 1512 |
+
390
|
| 1513 |
+
],
|
| 1514 |
+
"page_idx": 11
|
| 1515 |
+
},
|
| 1516 |
+
{
|
| 1517 |
+
"type": "text",
|
| 1518 |
+
"text": "Wu, Yonghui, Schuster, Mike, Chen, Zhifeng, Le, Quoc V, Norouzi, Mohammad, Macherey, Wolfgang, Krikun, Maxim, Cao, Yuan, Gao, Qin, Macherey, Klaus, et al. Googleβs neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144, 2016. ",
|
| 1519 |
+
"bbox": [
|
| 1520 |
+
173,
|
| 1521 |
+
398,
|
| 1522 |
+
823,
|
| 1523 |
+
455
|
| 1524 |
+
],
|
| 1525 |
+
"page_idx": 11
|
| 1526 |
+
},
|
| 1527 |
+
{
|
| 1528 |
+
"type": "text",
|
| 1529 |
+
"text": "Zhang, Xiang, Zhao, Junbo, and LeCun, Yann. Character-level convolutional networks for text classification. In Advances in neural information processing systems, pp. 649β657, 2015. ",
|
| 1530 |
+
"bbox": [
|
| 1531 |
+
171,
|
| 1532 |
+
464,
|
| 1533 |
+
823,
|
| 1534 |
+
494
|
| 1535 |
+
],
|
| 1536 |
+
"page_idx": 11
|
| 1537 |
+
},
|
| 1538 |
+
{
|
| 1539 |
+
"type": "text",
|
| 1540 |
+
"text": "A MBPA HYPERPARAMETERS FOR INCREMENTAL LEARNING IMAGENET TASK ",
|
| 1541 |
+
"text_level": 1,
|
| 1542 |
+
"bbox": [
|
| 1543 |
+
171,
|
| 1544 |
+
102,
|
| 1545 |
+
799,
|
| 1546 |
+
135
|
| 1547 |
+
],
|
| 1548 |
+
"page_idx": 12
|
| 1549 |
+
},
|
| 1550 |
+
{
|
| 1551 |
+
"type": "text",
|
| 1552 |
+
"text": "MbPA was robust and the inductive bias of the MbPA correction adapts the performance of the model on novel classes. This is shown in Figure 6 (right) where MbPA manages to achieve high performance almost at the same rate, regardless of the learning rate of the underlying parametric component. ",
|
| 1553 |
+
"bbox": [
|
| 1554 |
+
173,
|
| 1555 |
+
150,
|
| 1556 |
+
825,
|
| 1557 |
+
207
|
| 1558 |
+
],
|
| 1559 |
+
"page_idx": 12
|
| 1560 |
+
},
|
| 1561 |
+
{
|
| 1562 |
+
"type": "text",
|
| 1563 |
+
"text": "In Figure 6 (left) we explore the influence in performance when changing the size of the episodic memory. We can see that the performance on the new classes is more sensitive to this parameter but it quickly saturates after about 400,000 entries. We repeat the above experiment by changing now the number of neighbours retrieved. The results are shown in Figure 7. We can observe that using more neighbours is better, but again, performance saturates quickly after 50 neighbours. ",
|
| 1564 |
+
"bbox": [
|
| 1565 |
+
173,
|
| 1566 |
+
214,
|
| 1567 |
+
825,
|
| 1568 |
+
285
|
| 1569 |
+
],
|
| 1570 |
+
"page_idx": 12
|
| 1571 |
+
},
|
| 1572 |
+
{
|
| 1573 |
+
"type": "image",
|
| 1574 |
+
"img_path": "images/ab01ba261a99d787dd0def5a6ca5ee84d38dade4234cd054cb9fc310f6986fc4.jpg",
|
| 1575 |
+
"image_caption": [
|
| 1576 |
+
"Figure 6: Left: Performance of MbPA when varying the dictionary size. Right: Performance of the parametric, mixture and MbPA models varying the learning rate of the parametric model. The colour code is the same as in Figure 4 and the thickness of the lines indicate the learning rate used. "
|
| 1577 |
+
],
|
| 1578 |
+
"image_footnote": [],
|
| 1579 |
+
"bbox": [
|
| 1580 |
+
187,
|
| 1581 |
+
304,
|
| 1582 |
+
794,
|
| 1583 |
+
450
|
| 1584 |
+
],
|
| 1585 |
+
"page_idx": 12
|
| 1586 |
+
},
|
| 1587 |
+
{
|
| 1588 |
+
"type": "image",
|
| 1589 |
+
"img_path": "images/be4e608fd488811d04262abc34f0deb32ad3937ac3b4f8fbba0d1e59efe44179.jpg",
|
| 1590 |
+
"image_caption": [
|
| 1591 |
+
"Figure 7: Performance of MbPA when varying the number of nearest neighours used for performing the local adaptation. "
|
| 1592 |
+
],
|
| 1593 |
+
"image_footnote": [],
|
| 1594 |
+
"bbox": [
|
| 1595 |
+
359,
|
| 1596 |
+
535,
|
| 1597 |
+
630,
|
| 1598 |
+
671
|
| 1599 |
+
],
|
| 1600 |
+
"page_idx": 12
|
| 1601 |
+
},
|
| 1602 |
+
{
|
| 1603 |
+
"type": "text",
|
| 1604 |
+
"text": "B MODEL DETAILS LANGUAGE MODELLING TASKS ",
|
| 1605 |
+
"text_level": 1,
|
| 1606 |
+
"bbox": [
|
| 1607 |
+
174,
|
| 1608 |
+
752,
|
| 1609 |
+
622,
|
| 1610 |
+
768
|
| 1611 |
+
],
|
| 1612 |
+
"page_idx": 12
|
| 1613 |
+
},
|
| 1614 |
+
{
|
| 1615 |
+
"type": "text",
|
| 1616 |
+
"text": "For both datasets we used a single-layer LSTM baseline trained with Adam (Kingma & Ba, 2014) using the regularisation techniques described in Melis et al. (2017). ",
|
| 1617 |
+
"bbox": [
|
| 1618 |
+
174,
|
| 1619 |
+
784,
|
| 1620 |
+
821,
|
| 1621 |
+
813
|
| 1622 |
+
],
|
| 1623 |
+
"page_idx": 12
|
| 1624 |
+
},
|
| 1625 |
+
{
|
| 1626 |
+
"type": "text",
|
| 1627 |
+
"text": "In this application of MbPA the test set is small (e.g. $< 8 0 { , } 0 0 0$ words for PTB), and so it was easy to overfit to the retrieved points. To remedy this, we tuned an L2 penalty $\\beta | | \\theta ^ { x } - \\theta | | _ { 2 }$ term in our MbPA loss (7), where $\\theta$ were the parameters derived from the training set and $\\beta$ was a scalar hyper-parameter. ",
|
| 1628 |
+
"bbox": [
|
| 1629 |
+
174,
|
| 1630 |
+
819,
|
| 1631 |
+
825,
|
| 1632 |
+
876
|
| 1633 |
+
],
|
| 1634 |
+
"page_idx": 12
|
| 1635 |
+
},
|
| 1636 |
+
{
|
| 1637 |
+
"type": "text",
|
| 1638 |
+
"text": "We swept over the following hyper-parameters: ",
|
| 1639 |
+
"bbox": [
|
| 1640 |
+
176,
|
| 1641 |
+
882,
|
| 1642 |
+
485,
|
| 1643 |
+
898
|
| 1644 |
+
],
|
| 1645 |
+
"page_idx": 12
|
| 1646 |
+
},
|
| 1647 |
+
{
|
| 1648 |
+
"type": "text",
|
| 1649 |
+
"text": "β’ Memory size: $N \\in \\{ 5 0 0 , 1 0 0 0 , 5 0 0 0 \\}$ β’ Nearest neighbours: $K \\in \\{ 2 5 6 , 5 1 2 \\}$ β’ Cache interpolation: $\\lambda _ { c a c h e } \\in \\{ 0 , 0 . 0 5 , 0 . 1 , 0 . 1 5 \\}$ β’ MbPA interpolation: $\\lambda _ { m b p a } \\in \\{ 0 , 0 . 0 5 , 0 . 1 , 0 . 1 5 \\}$ β’ Number of MbPA optimisation steps: $T \\in \\{ 1 , 5 , 1 0 \\}$ β’ MbPA optimization learning rate: $\\alpha \\in \\{ 0 . 0 1 , 0 . 1 , 0 . 1 5 , 0 . 2 , 0 . 5 , 1 \\}$ ",
|
| 1650 |
+
"bbox": [
|
| 1651 |
+
217,
|
| 1652 |
+
909,
|
| 1653 |
+
483,
|
| 1654 |
+
924
|
| 1655 |
+
],
|
| 1656 |
+
"page_idx": 12
|
| 1657 |
+
},
|
| 1658 |
+
{
|
| 1659 |
+
"type": "text",
|
| 1660 |
+
"text": "",
|
| 1661 |
+
"bbox": [
|
| 1662 |
+
215,
|
| 1663 |
+
102,
|
| 1664 |
+
669,
|
| 1665 |
+
199
|
| 1666 |
+
],
|
| 1667 |
+
"page_idx": 13
|
| 1668 |
+
},
|
| 1669 |
+
{
|
| 1670 |
+
"type": "text",
|
| 1671 |
+
"text": "Where memory size refers to both the MbPA memory size, and the size of the neural cache for comparison, and the $\\lambda$ interpolation parameters refer to the mixing of model outputs, alike to Eq. 5. The optimal parameters were: $N = 5 0 0 0$ , $K = 2 5 6$ , $\\lambda _ { c a c h e } = 0 . 1 5$ , $\\lambda _ { m b p a } = 0 . 1$ , $T = 1$ , $\\alpha =$ 0.15. ",
|
| 1672 |
+
"bbox": [
|
| 1673 |
+
176,
|
| 1674 |
+
210,
|
| 1675 |
+
821,
|
| 1676 |
+
266
|
| 1677 |
+
],
|
| 1678 |
+
"page_idx": 13
|
| 1679 |
+
},
|
| 1680 |
+
{
|
| 1681 |
+
"type": "text",
|
| 1682 |
+
"text": "For Penn Treebank, we used a pre-trained LSTM baseline containing roughly $1 0 M$ parameters with a hidden size of 1194 and a word embedding size of 268. For WikiText-2, we used a pretrained LSTM baseline containing roughly 24M parameters with a hidden size of 1,853 and a word embedding size of 241. ",
|
| 1683 |
+
"bbox": [
|
| 1684 |
+
173,
|
| 1685 |
+
272,
|
| 1686 |
+
825,
|
| 1687 |
+
329
|
| 1688 |
+
],
|
| 1689 |
+
"page_idx": 13
|
| 1690 |
+
},
|
| 1691 |
+
{
|
| 1692 |
+
"type": "text",
|
| 1693 |
+
"text": "C COMPARISON OF CACHE VS MBPA FOR WIKITEXT-2 ",
|
| 1694 |
+
"text_level": 1,
|
| 1695 |
+
"bbox": [
|
| 1696 |
+
174,
|
| 1697 |
+
349,
|
| 1698 |
+
651,
|
| 1699 |
+
366
|
| 1700 |
+
],
|
| 1701 |
+
"page_idx": 13
|
| 1702 |
+
},
|
| 1703 |
+
{
|
| 1704 |
+
"type": "text",
|
| 1705 |
+
"text": "The comparative benefit of MbPA is investigated, when combined with the $\\mathrm { L S T M + }$ cache model. By computing the perplexity on a per-word basis and comparing whether the inclusion of MbPA improves (lowers) the perplexity, we can understand what types of words are better predicted. Anecdotal samples were not sufficient to understand the trend, however when the words were bucketed by their training frequency, we see a tend of improved performance for less frequent words. ",
|
| 1706 |
+
"bbox": [
|
| 1707 |
+
174,
|
| 1708 |
+
381,
|
| 1709 |
+
825,
|
| 1710 |
+
452
|
| 1711 |
+
],
|
| 1712 |
+
"page_idx": 13
|
| 1713 |
+
},
|
| 1714 |
+
{
|
| 1715 |
+
"type": "text",
|
| 1716 |
+
"text": "This improved performance for rare words may be because the cache model has a prior to boost all recent words. Specifically, the cache probabilities are obtained from summing the attention for each instance of a word in memory, and so frequently occurring recent words that are not very contextually relevant will still be boosted. As MbPA does not do this, it appears to be more sensitive to infrequently occurring words. ",
|
| 1717 |
+
"bbox": [
|
| 1718 |
+
173,
|
| 1719 |
+
459,
|
| 1720 |
+
825,
|
| 1721 |
+
529
|
| 1722 |
+
],
|
| 1723 |
+
"page_idx": 13
|
| 1724 |
+
},
|
| 1725 |
+
{
|
| 1726 |
+
"type": "image",
|
| 1727 |
+
"img_path": "images/838d5f5049ec97c6771c3354bf946be0c2a2c765025d883590e0205c1abe7b0e.jpg",
|
| 1728 |
+
"image_caption": [
|
| 1729 |
+
"Figure 8: Percent improvement when MbPA is included with the LSTM baseline and neural cache, split by training word frequency into five equally sized buckets. The bucket 1 contains the most frequent words, and bucket 5 contains the least frequent words. The average improvement $\\pm 1$ standard deviation are shown. MbPA provides a directional improvement for less frequent words. "
|
| 1730 |
+
],
|
| 1731 |
+
"image_footnote": [],
|
| 1732 |
+
"bbox": [
|
| 1733 |
+
310,
|
| 1734 |
+
550,
|
| 1735 |
+
653,
|
| 1736 |
+
746
|
| 1737 |
+
],
|
| 1738 |
+
"page_idx": 13
|
| 1739 |
+
},
|
| 1740 |
+
{
|
| 1741 |
+
"type": "text",
|
| 1742 |
+
"text": "D MAP INTERPRETATION OF MBPA AND DERIVATION OF CONTEXTUAL UPDATE ",
|
| 1743 |
+
"text_level": 1,
|
| 1744 |
+
"bbox": [
|
| 1745 |
+
173,
|
| 1746 |
+
844,
|
| 1747 |
+
787,
|
| 1748 |
+
878
|
| 1749 |
+
],
|
| 1750 |
+
"page_idx": 13
|
| 1751 |
+
},
|
| 1752 |
+
{
|
| 1753 |
+
"type": "text",
|
| 1754 |
+
"text": "Let $x _ { c }$ correspond to the input of the $h _ { c } , v _ { c }$ key-value pair in the context $C$ of a given input $x$ . In other words, $h _ { c }$ was computed by feeding $x _ { c }$ to the embedding network. Then the posterior given ",
|
| 1755 |
+
"bbox": [
|
| 1756 |
+
173,
|
| 1757 |
+
895,
|
| 1758 |
+
825,
|
| 1759 |
+
924
|
| 1760 |
+
],
|
| 1761 |
+
"page_idx": 13
|
| 1762 |
+
},
|
| 1763 |
+
{
|
| 1764 |
+
"type": "text",
|
| 1765 |
+
"text": "this pair and the parameter obtained after training $\\theta$ , can be written as: ",
|
| 1766 |
+
"bbox": [
|
| 1767 |
+
173,
|
| 1768 |
+
103,
|
| 1769 |
+
633,
|
| 1770 |
+
119
|
| 1771 |
+
],
|
| 1772 |
+
"page_idx": 14
|
| 1773 |
+
},
|
| 1774 |
+
{
|
| 1775 |
+
"type": "equation",
|
| 1776 |
+
"img_path": "images/471b6a16a99d208af3a333aedabd52a3def0822ddf52f78530eaf115d9726864.jpg",
|
| 1777 |
+
"text": "$$\np ( \\theta ^ { x } | \\theta , x _ { c } , v _ { c } , x ) = \\frac { p ( v _ { c } | x _ { c } , \\theta ^ { x } , x ) p ( \\theta ^ { x } | \\theta ) } { p ( v _ { c } | \\theta , x _ { c } , x ) } .\n$$",
|
| 1778 |
+
"text_format": "latex",
|
| 1779 |
+
"bbox": [
|
| 1780 |
+
352,
|
| 1781 |
+
126,
|
| 1782 |
+
645,
|
| 1783 |
+
161
|
| 1784 |
+
],
|
| 1785 |
+
"page_idx": 14
|
| 1786 |
+
},
|
| 1787 |
+
{
|
| 1788 |
+
"type": "text",
|
| 1789 |
+
"text": "If we maximise the posterior over the context $C$ with respect to $\\theta ^ { x }$ . ",
|
| 1790 |
+
"bbox": [
|
| 1791 |
+
173,
|
| 1792 |
+
167,
|
| 1793 |
+
614,
|
| 1794 |
+
183
|
| 1795 |
+
],
|
| 1796 |
+
"page_idx": 14
|
| 1797 |
+
},
|
| 1798 |
+
{
|
| 1799 |
+
"type": "equation",
|
| 1800 |
+
"img_path": "images/db10435e2ad640445039da641296f12f4039d5a053d9d73298177c4254c4d2a3.jpg",
|
| 1801 |
+
"text": "$$\n\\begin{array} { r l } { \\arg \\underset { \\theta ^ { \\alpha } } { \\operatorname* { m a x } } \\mathbb { E } _ { C } \\left\\{ \\log p ( \\theta ^ { x } | \\theta , x _ { c } , v _ { c } , x ) \\right\\} = \\arg \\underset { \\theta ^ { x } } { \\operatorname* { m a x } } } & { \\log p ( \\theta ^ { x } | \\theta ) + \\mathbb { E } _ { C } \\left\\{ \\log p ( v _ { c } | x _ { c } , \\theta ^ { x } , x ) \\right\\} } \\\\ & { \\qquad = \\arg \\underset { \\theta ^ { \\alpha } } { \\operatorname* { m a x } } \\log p ( \\theta ^ { x } | \\theta ) + \\displaystyle \\sum _ { k = 1 } ^ { K } w _ { k } ^ { ( x ) } \\log p ( v _ { k } ^ { ( x ) } | h _ { k } ^ { ( x ) } , \\theta ^ { x } , x ) . } \\end{array}\n$$",
|
| 1802 |
+
"text_format": "latex",
|
| 1803 |
+
"bbox": [
|
| 1804 |
+
184,
|
| 1805 |
+
189,
|
| 1806 |
+
812,
|
| 1807 |
+
258
|
| 1808 |
+
],
|
| 1809 |
+
"page_idx": 14
|
| 1810 |
+
},
|
| 1811 |
+
{
|
| 1812 |
+
"type": "text",
|
| 1813 |
+
"text": "Let $\\begin{array} { r } { \\log p ( \\theta ^ { x } | \\theta ) \\propto - \\frac { | | \\theta ^ { x } - \\theta | | _ { 2 } ^ { 2 } } { 2 \\alpha _ { M } } } \\end{array}$ (i.e. a Gaussian prior on $\\theta ^ { x }$ centred at $\\theta$ ) be thought as a regularisation term that prevents the local adaptation to move $\\theta ^ { x }$ too far from $\\theta$ , preventing overfitting. ",
|
| 1814 |
+
"bbox": [
|
| 1815 |
+
176,
|
| 1816 |
+
281,
|
| 1817 |
+
825,
|
| 1818 |
+
316
|
| 1819 |
+
],
|
| 1820 |
+
"page_idx": 14
|
| 1821 |
+
},
|
| 1822 |
+
{
|
| 1823 |
+
"type": "text",
|
| 1824 |
+
"text": "Another interpretation of (7) is that when the prior is taken to be a Gaussian, it is a form of elastic weight regularisation (similar to Kirkpatrick et al. (2017)) and the second term corresponds to the log likelihood of $\\theta ^ { x }$ on the data in the context $C$ . This can also be seen as posterior sharpening (Fortunato et al., 2017), where we can think of the second term as an approximation of log $p ( \\boldsymbol { y } _ { t } | \\boldsymbol { x } _ { t } , \\boldsymbol { \\theta } )$ . Thus a view of MbPA is it is a form of local elastic weight consolidation on a context dataset $C$ . ",
|
| 1825 |
+
"bbox": [
|
| 1826 |
+
174,
|
| 1827 |
+
321,
|
| 1828 |
+
825,
|
| 1829 |
+
393
|
| 1830 |
+
],
|
| 1831 |
+
"page_idx": 14
|
| 1832 |
+
},
|
| 1833 |
+
{
|
| 1834 |
+
"type": "text",
|
| 1835 |
+
"text": "Equation (7) does not have a closed form solution, and requires fitting a large number of parameters at inference time. This can be costly and susceptible to overfitting. We can avoid this problem by simply adapting the reference parameters $\\theta$ . Specifically, we perform a fixed number of gradient descent steps (or any of its popular variants) to minimise (7). One step of gradient descent to the loss in (7) with respect to $\\theta ^ { x }$ yields ",
|
| 1836 |
+
"bbox": [
|
| 1837 |
+
173,
|
| 1838 |
+
398,
|
| 1839 |
+
825,
|
| 1840 |
+
470
|
| 1841 |
+
],
|
| 1842 |
+
"page_idx": 14
|
| 1843 |
+
},
|
| 1844 |
+
{
|
| 1845 |
+
"type": "equation",
|
| 1846 |
+
"img_path": "images/a301b79939a87fccff6028effe1f529f9d7de35c16e178c5631f8f3c6b0121dd.jpg",
|
| 1847 |
+
"text": "$$\n{ \\Delta } _ { M } ( x , \\theta ) = - \\alpha _ { M } \\left. \\nabla _ { \\theta } \\sum _ { k = 1 } ^ { K } w _ { k } ^ { ( x ) } \\log p ( v _ { k } ^ { ( x ) } | h _ { k } ^ { ( x ) } , \\theta ^ { x } , x ) \\right| _ { \\theta } - \\beta ( \\theta - \\theta ^ { x } ) ,\n$$",
|
| 1848 |
+
"text_format": "latex",
|
| 1849 |
+
"bbox": [
|
| 1850 |
+
266,
|
| 1851 |
+
478,
|
| 1852 |
+
730,
|
| 1853 |
+
522
|
| 1854 |
+
],
|
| 1855 |
+
"page_idx": 14
|
| 1856 |
+
},
|
| 1857 |
+
{
|
| 1858 |
+
"type": "text",
|
| 1859 |
+
"text": "where $\\beta$ is a scalar hyper-parameter. These adapted parameters are used for output computation but discarded thereafter. ",
|
| 1860 |
+
"bbox": [
|
| 1861 |
+
173,
|
| 1862 |
+
529,
|
| 1863 |
+
825,
|
| 1864 |
+
558
|
| 1865 |
+
],
|
| 1866 |
+
"page_idx": 14
|
| 1867 |
+
},
|
| 1868 |
+
{
|
| 1869 |
+
"type": "text",
|
| 1870 |
+
"text": "E ATTENTION AS A SPECIAL CASE OF MBPA ",
|
| 1871 |
+
"text_level": 1,
|
| 1872 |
+
"bbox": [
|
| 1873 |
+
173,
|
| 1874 |
+
579,
|
| 1875 |
+
560,
|
| 1876 |
+
597
|
| 1877 |
+
],
|
| 1878 |
+
"page_idx": 14
|
| 1879 |
+
},
|
| 1880 |
+
{
|
| 1881 |
+
"type": "text",
|
| 1882 |
+
"text": "Let $C = \\{ ( w _ { i } , h _ { i } , v _ { i } ) \\} _ { i = 1 } ^ { k }$ be the neighbourhood retrieved from memory given a query $q$ . The likelihood prediction based on attention is given by ",
|
| 1883 |
+
"bbox": [
|
| 1884 |
+
174,
|
| 1885 |
+
611,
|
| 1886 |
+
821,
|
| 1887 |
+
641
|
| 1888 |
+
],
|
| 1889 |
+
"page_idx": 14
|
| 1890 |
+
},
|
| 1891 |
+
{
|
| 1892 |
+
"type": "equation",
|
| 1893 |
+
"img_path": "images/4125b3abe2d229a4776ade99e7badf301e7af07f0f9db97642ea250154c21431.jpg",
|
| 1894 |
+
"text": "$$\np _ { \\mathrm { m e m } } ( y = j | q ) = \\frac { \\sum _ { i = 1 } ^ { k } w _ { i } \\delta ( v _ { i } = j ) } { \\sum _ { i = 1 } ^ { k } w _ { i } } ,\n$$",
|
| 1895 |
+
"text_format": "latex",
|
| 1896 |
+
"bbox": [
|
| 1897 |
+
372,
|
| 1898 |
+
647,
|
| 1899 |
+
622,
|
| 1900 |
+
689
|
| 1901 |
+
],
|
| 1902 |
+
"page_idx": 14
|
| 1903 |
+
},
|
| 1904 |
+
{
|
| 1905 |
+
"type": "text",
|
| 1906 |
+
"text": "where the Kronecker $\\delta$ is one when the equality holds and zero otherwise. We now show how the attention-based prediction given in (9) can be seen as particular case of local adaptation. ",
|
| 1907 |
+
"bbox": [
|
| 1908 |
+
173,
|
| 1909 |
+
695,
|
| 1910 |
+
821,
|
| 1911 |
+
724
|
| 1912 |
+
],
|
| 1913 |
+
"page_idx": 14
|
| 1914 |
+
},
|
| 1915 |
+
{
|
| 1916 |
+
"type": "text",
|
| 1917 |
+
"text": "For classification with $c$ classes, we parameterise $p _ { \\mathrm { m e m } }$ via its logits, $z \\in \\mathbb { R } ^ { c }$ , with $p _ { \\mathrm { m e m } } ( v | q ) =$ softmax $( z )$ . One good candidate $z$ is the one that is the most consistent with context $C$ . Specifically, the logit vector that minimises the weighted average negative log-likelihood (NLL) of the memories in context $C$ : ",
|
| 1918 |
+
"bbox": [
|
| 1919 |
+
173,
|
| 1920 |
+
731,
|
| 1921 |
+
825,
|
| 1922 |
+
786
|
| 1923 |
+
],
|
| 1924 |
+
"page_idx": 14
|
| 1925 |
+
},
|
| 1926 |
+
{
|
| 1927 |
+
"type": "equation",
|
| 1928 |
+
"img_path": "images/9b53940a47c00e8d1f2848625b43856ba914fb5de12cc56c26f20ed3e495413b.jpg",
|
| 1929 |
+
"text": "$$\nz _ { q } = \\underset { z } { \\operatorname { a r g m i n } } \\sum _ { i = 1 } ^ { N } w _ { i } \\left( z _ { v _ { i } } - \\log ( \\sum _ { k = 1 } ^ { c } e ^ { z _ { k } } ) \\right) .\n$$",
|
| 1930 |
+
"text_format": "latex",
|
| 1931 |
+
"bbox": [
|
| 1932 |
+
349,
|
| 1933 |
+
785,
|
| 1934 |
+
648,
|
| 1935 |
+
829
|
| 1936 |
+
],
|
| 1937 |
+
"page_idx": 14
|
| 1938 |
+
},
|
| 1939 |
+
{
|
| 1940 |
+
"type": "text",
|
| 1941 |
+
"text": "The attention weights scale the importance of each memory in the neighbour given its similarity to the query. This matches the loss (7) (ignoring the prior term). If we differentiate the above equation with respect to a $z _ { j }$ and set to zero, we obtain exactly the same expression as in (9). ",
|
| 1942 |
+
"bbox": [
|
| 1943 |
+
174,
|
| 1944 |
+
832,
|
| 1945 |
+
825,
|
| 1946 |
+
876
|
| 1947 |
+
],
|
| 1948 |
+
"page_idx": 14
|
| 1949 |
+
},
|
| 1950 |
+
{
|
| 1951 |
+
"type": "text",
|
| 1952 |
+
"text": "Effectively, in (10) we are fitting a constant function to the context retrieved from the episodic memory. This is a particular case of a local likelihood model (Loader, 2006). The update also is the same as applying a k-nn, see Figure 2. ",
|
| 1953 |
+
"bbox": [
|
| 1954 |
+
174,
|
| 1955 |
+
881,
|
| 1956 |
+
825,
|
| 1957 |
+
924
|
| 1958 |
+
],
|
| 1959 |
+
"page_idx": 14
|
| 1960 |
+
},
|
| 1961 |
+
{
|
| 1962 |
+
"type": "text",
|
| 1963 |
+
"text": "Note that this interpretation is not limited to classification tasks, the exact same reasoning (and result) could be done for a regression task, simply by changing the loss function to be Mean Squared Error (MSE). ",
|
| 1964 |
+
"bbox": [
|
| 1965 |
+
174,
|
| 1966 |
+
103,
|
| 1967 |
+
823,
|
| 1968 |
+
145
|
| 1969 |
+
],
|
| 1970 |
+
"page_idx": 15
|
| 1971 |
+
},
|
| 1972 |
+
{
|
| 1973 |
+
"type": "text",
|
| 1974 |
+
"text": "In this context, we can think of MbPA as a generalisation of the attention mechanism, in which the function used for the local fitting is given by the output network. Moreover, the parameters of the model are used as a prior for solving the local fitting problem and only change slightly to prevent overfitting. ",
|
| 1975 |
+
"bbox": [
|
| 1976 |
+
174,
|
| 1977 |
+
152,
|
| 1978 |
+
825,
|
| 1979 |
+
208
|
| 1980 |
+
],
|
| 1981 |
+
"page_idx": 15
|
| 1982 |
+
}
|
| 1983 |
+
]
|
parse/train/rkfOvGbCW/rkfOvGbCW_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkfOvGbCW/rkfOvGbCW_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/yhjpeuWepoj/yhjpeuWepoj.md
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Exploiting the Intrinsic Neighborhood Structure for Source-free Domain Adaptation
|
| 2 |
+
|
| 3 |
+
Shiqi Yang1, Yaxing Wang1,2β, Joost van de Weijer1, Luis Herranz1, Shangling Jui3 1 Computer Vision Center, Universitat Autonoma de Barcelona, Barcelona, Spain 2 PCALab, Nanjing University of Science and Technology, China 3 Huawei Kirin Solution, Shanghai, China
|
| 4 |
+
{syang,yaxing,joost,lherranz}@cvc.uab.es, jui.shangling@huawei.com
|
| 5 |
+
|
| 6 |
+
# Abstract
|
| 7 |
+
|
| 8 |
+
Domain adaptation (DA) aims to alleviate the domain shift between source domain and target domain. Most DA methods require access to the source data, but often that is not possible (e.g. due to data privacy or intellectual property). In this paper, we address the challenging source-free domain adaptation (SFDA) problem, where the source pretrained model is adapted to the target domain in the absence of source data. Our method is based on the observation that target data, which might no longer align with the source domain classifier, still forms clear clusters. We capture this intrinsic structure by defining local affinity of the target data, and encourage label consistency among data with high local affinity. We observe that higher affinity should be assigned to reciprocal neighbors, and propose a self regularization loss to decrease the negative impact of noisy neighbors. Furthermore, to aggregate information with more context, we consider expanded neighborhoods with small affinity values. In the experimental results we verify that the inherent structure of the target features is an important source of information for domain adaptation. We demonstrate that this local structure can be efficiently captured by considering the local neighbors, the reciprocal neighbors, and the expanded neighborhood. Finally, we achieve state-of-the-art performance on several 2D image and 3D point cloud recognition datasets. Code is available in https://github.com/Albert0147/SFDA_neighbors.
|
| 9 |
+
|
| 10 |
+
# 1 Introduction
|
| 11 |
+
|
| 12 |
+
Most deep learning methods rely on training on large amount of labeled data, while they cannot generalize well to a related yet different domain. One research direction to address this issue is Domain Adaptation (DA), which aims to transfer learned knowledge from a source to a target domain. Most existing DA methods demand labeled source data during the adaptation period, however, it is often not practical that source data are always accessible, such as when applied on data with privacy or property restrictions. Therefore, recently, there have emerged a few works [16, 17, 20, 21] tackling a new challenging DA scenario where instead of source data only the source pretrained model is available for adapting, i.e., source-free domain adaptation (SFDA). Among these methods, USFDA [16] addresses universal DA [57] and SF [17] addresses open-set DA [36]. In both universal and open-set DA the label set is different for source and target domains. SHOT [21] and 3C-GAN [20] are for closed-set DA where source and target domains have the same categories. 3C-GAN [20] is based on target-style image generation with a conditional GAN, and SHOT [21] is based on mutual information maximization and pseudo labeling. Finally, BAIT [56] extends MCD [35] to the SFDA setting. However, these methods ignore the intrinsic neighborhood structure of the target data in feature space which can be very valuable to tackle SFDA.
|
| 13 |
+
|
| 14 |
+

|
| 15 |
+
Figure 1: (a) t-SNE visualization of target features by source model. (b) Ratio of different type of nearest neighbor features of which: the predicted label is the same as the feature, K is the number of nearest neighbors. The features in (a) and (b) are on task $\mathrm { A r } { } \mathrm { R w }$ of Office-Home. (c) Illustration of our method. In the left shows we distinguish reciprocal and non-reciprocal neighbors. The adaptation is achieved by pushed the features towards reciprocal neighbors heavily.
|
| 16 |
+
|
| 17 |
+
In this paper, we focus on closed-set source-free domain adaptation. Our main observation is that current DA methods do not exploit the intrinsic neighborhood structure of the target data. We use this term to refer to the fact that, even though the target data might have shifted in the feature space (due to the covariance shift), target data of the same class is still expected to form a cluster in the embedding space. This can be implied to some degree from the t-SNE visualization of target features on the source model which suggests that significant cluster structure is preserved (see Fig. 1 (a)). This assumption is implicitly adopted by most DA methods, as instantiated by a recent DA work [42]. A well-established way to assess the structure of points in high-dimensional spaces is by considering the nearest neighbors of points, which are expected to belong to the same class. However, this assumption is not true for all points; the blue curve in Figure 1(b) shows that around $7 5 \%$ of the nearest neighbors has the correct label. In this paper, we observe that this problem can be mitigated by considering reciprocal nearest neighbors (RNN); the reciprocal neighbors of a point have the point as their neighbor. Reciprocal neighbors have been studied before in different contexts [14, 31, 60]. The reason why reciprocal neighbors are more trustworthy is illustrated in Fig. 1(c). Fig. 1(b) shows the ratio of neighbors which have the correct prediction for different kinds of nearest neighbors. The curves show that reciprocal neighbors indeed have more chances to predict the true label than non-reciprocal nearest neighbors (nRNN).
|
| 18 |
+
|
| 19 |
+
The above observation and analysis motivate us to assign different weights to the supervision from nearest neighbors. Our method, called Neighborhood Reciprocity Clustering (NRC), achieves sourcefree domain adaptation by encouraging reciprocal neighbors to concord in their label prediction. In addition, we will also consider a weaker connection to the non-reciprocal neighbors. We define affinity values to describe the degree of connectivity between each data point and its neighbors, which is also utilized to encourage class-consistency between neighbors, and we propose to use a self-regularization to decrease the negative impact of potential noisy neighbors. Furthermore, inspired by recent graph based methods [1, 3, 61] which show that the higher order neighbors can provide relevant context, and also considering neighbors of neighbors is more likely to provide datapoints that are close on the data manifold [43]. Thus, to aggregate wider local information, we further retrieve the expanded neighbors, i.e, neighbor of the nearest neighbors, for auxiliary supervision.
|
| 20 |
+
|
| 21 |
+
Our contributions can be summarized as follows, to achieve source-free domain adaptation: (i) we explicitly exploit the fact that same-class data forms cluster in the target embedding space, we do this by considering the predictions of neighbors and reciprocal neighbors, (ii) we further show that considering an extended neighborhood of data points further improves results (iii) the experiments results on three 2D image datasets and one 3D point cloud dataset show that our method achieves state-of-the-art performance compared with related methods.
|
| 22 |
+
|
| 23 |
+
# 2 Related Work
|
| 24 |
+
|
| 25 |
+
Domain Adaptation. Most DA methods tackle domain shift by aligning the feature distributions. Early DA methods such as [23, 41, 45] adopt moment matching to align feature distributions. And in recent years, plenty of works have emerged that achieve alignment by adversarial training. DANN [7] formulates domain adaptation as an adversarial two-player game. The adversarial training of CDAN [24] is conditioned on several sources of information. DIRT-T [40] performs domain adversarial training with an added term that penalizes violations of the cluster assumption. Additionally, [18, 26, 35] adopts prediction diversity between multiple learnable classifiers to achieve local or category-level feature alignment between source and target domains. AFN [52] shows that the erratic discrimination of target features stems from much smaller norms than those found in the source features. SRDC [42] proposes to directly uncover the intrinsic target discrimination via discriminative clustering to achieve adaptation. More related, [27] resorts to K-means clustering for open-set adaptation while considering global structure. Our method instead only focuses on nearest neighbors (local structure) for source-free adaptation.
|
| 26 |
+
|
| 27 |
+
Source-free Domain Adaptation. Source-present methods need supervision from the source domain during adaptation. Recently, there are several methods investigating source-free domain adaptation. USFDA [16] and FS [17] explore source-free universal DA [57] and open-set DA [36], and they propose to synthesize extra training samples to make the decision boundary compact, thereby allowing to recognise the open classes. For closed-set DA setting. SHOT [21] proposes to fix the source classifier and match the target features to the fixed classifier by maximizing mutual information and a proposed pseudo label strategy which considers global structure. 3C-GAN [20] synthesizes labeled target-style training images based on the conditional GAN to provide supervision for adaptation. Finally, SFDA [22] is for segmentation based on synthesizing fake source samples.
|
| 28 |
+
|
| 29 |
+
Graph Clustering. Our method shares some similarities with graph clustering work such as [38, 48, 54, 55] by utilizing neighborhood information. However, our methods are fundamentally different. Unlike those works which require labeled data to train the graph network for estimating the affinity, we instead adopt reciprocity to assign affinity.
|
| 30 |
+
|
| 31 |
+
# 3 Method
|
| 32 |
+
|
| 33 |
+
Notation. We denote the labeled source domain data with $n _ { s }$ samples as $\mathcal { D } _ { s } = \{ ( x _ { i } ^ { s } , y _ { i } ^ { s } ) \} _ { i = 1 } ^ { n _ { s } }$ , where $y _ { i } ^ { s }$ orresponding label of . Both domains have t $x _ { i } ^ { s }$ , andsame e unlabeled target domain data with classes (closed-set setting). Under the $n _ { t }$ samples asFDA setting $\mathcal { D } _ { t } \overset { \vartriangle } { = } \{ x _ { j } ^ { t } \} _ { j = 1 } ^ { n _ { t } }$ $C$ $\mathcal { D } _ { s }$ is only available for model pretraining. Our method is based on a neural network, which we split into two parts: a feature extractor $f$ , and a classifier $g$ . The feature output by the feature extractor is denoted as $z ( x ) = f \left( x \right)$ , the output of network is denoted as $p ( x ) = \bar { \delta } ( g ( \dot { z } ) ) \in \mathcal { R } ^ { C }$ where $\delta$ is the softmax function, for readability we will abandon the input and use $z , p$ in the following sections.
|
| 34 |
+
|
| 35 |
+
Overview. We assume that the source pretrained model has already been trained. As discusses in the introduction, the target features output by the source model form clusters. We exploit this intrinsic structure of the target data for SFDA by considering the neighborhood information, and the adaptation is achieved with the following objective:
|
| 36 |
+
|
| 37 |
+
$$
|
| 38 |
+
\mathcal { L } = - \frac { 1 } { n _ { t } } \sum _ { x _ { i } \in \mathcal { D } _ { t } } \sum _ { x _ { j } \in \mathrm { N e i g h } ( x _ { i } ) } \frac { D _ { s i m } ( p _ { i } , p _ { j } ) } { D _ { d i s } ( x _ { i } , x _ { j } ) }
|
| 39 |
+
$$
|
| 40 |
+
|
| 41 |
+
where the $\mathrm { { N e i g h } } ( x _ { i } )$ means the nearest neighbors of $x _ { i }$ , $D _ { s i m }$ computes the similarity between predictions, and $D _ { d i s }$ is a constant measuring the semantic distance (dissimilarity) between data. The principle behind the objective is to push the data towards their semantically close neighbors by encouraging similar predictions. In the next sections, we will define $D _ { s i m }$ and $D _ { d i s }$ .
|
| 42 |
+
|
| 43 |
+
# 3.1 Encouraging Class-Consistency with Neighborhood Affinity
|
| 44 |
+
|
| 45 |
+
To achieve adaptation without source data, we use the prediction of the nearest neighbor to encourage prediction consistency. While the target features from the source model are not necessarily totally intrinsic discriminative, meaning some neighbors belong to different class and will provide the wrong supervision. To decrease the potentially negative impact of those neighbors, we propose to weigh the supervision from neighbors according to the connectivity (semantic similarity). We define affinity values to signify the connectivity between the neighbor and the feature, which corresponds to the $\frac { 1 } { D _ { d i s } }$ in Eq. 1 indicating the semantic similarity.
|
| 46 |
+
|
| 47 |
+
To retrieve the nearest neighbors for batch training, similar to [33, 50, 62], we build two memory banks: $\mathcal { F }$ stores all target features, and $s$ stores corresponding prediction scores:
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\mathcal { F } = [ z _ { 1 } , z _ { 2 } , \dotsc , z _ { n _ { t } } ] \mathrm { a n d } \ S = [ p _ { 1 } , p _ { 2 } , \dotsc , p _ { n _ { t } } ]
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
We use the cosine similarity for nearest neighbors retrieving. The difference between ours and [33, 50] lies in the fact that we utilize the memory bank to retrieve nearest neighbors while [33, 50] adopts the memory bank to compute the instance discrimination loss. Before every mini-batch training, we simply update the old items in the memory banks corresponding to current mini-batch. Note that updating the memory bank is only done to replace the old low-dimension vectors with new ones computed by the model, and does not require any additional computation.
|
| 54 |
+
|
| 55 |
+
We then use the prediction of the neighbors to supervise the training weighted by the affinity values, with the following objective adapted from Eq. 1:
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\mathcal { L } _ { \mathcal { N } } = - \frac { 1 } { n _ { t } } \sum _ { i } \sum _ { k \in \mathcal { N } _ { K } ^ { i } } A _ { i k } \boldsymbol { S } _ { k } ^ { \top } \boldsymbol { p } _ { i }
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
where we use the dot product to compute the similarity between predictions, corresponding to $D _ { s i m }$ in Eq.1, the $k$ is the index of the $k$ -th nearest neighbors of $z _ { i }$ , $\scriptstyle { S _ { k } }$ is the $k$ -th item in memory bank $s$ , $A _ { i k }$ is the affinity value of $k$ -th nearest neighbors of feature $z _ { i }$ . Here the $\mathcal { N } _ { K } ^ { i }$ is the index $\mathrm { { \dot { s e t } } } ^ { 2 }$ of the $K$ -nearest neighbors of feature $z _ { i }$ . Note that all neighbors are retrieved from the feature bank $\mathcal { F }$ . With the affinity value as weight, this objective pushes the features to their neighbors with strong connectivity and to a lesser degree to those with weak connectivity.
|
| 62 |
+
|
| 63 |
+
To assign larger affinity values to semantic similar neighbors, we divide the nearest neighbors retrieved into two groups: reciprocal nearest neighbors (RNN) and non-reciprocal nearest neighbors (nRNN). The feature $z _ { j }$ is regarded as the RNN of the feature $z _ { i }$ if it meets the following condition:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
j \in \mathcal { N } _ { K } ^ { i } \wedge i \in \mathcal { N } _ { M } ^ { j }
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
Other neighbors which do not meet the above condition are nRNN. Note that the normal definition of reciprocal nearest neighbors [31] applies $K = M$ , while in this paper $K$ and $M$ can be different. We find that reciprocal neighbors have a higher potential to belong to the same cluster as the feature (Fig. 1(b)). Thus, we assign a high affinity value to the RNN features. Specifically for feature $z _ { i }$ , the affinity value of its $j$ -th $\mathrm { K }$ -nearest neighbor is defined as:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
A _ { i , j } = { \left\{ \begin{array} { l l } { 1 } & { { \mathrm { i f ~ } } j \in { \mathcal { N } } _ { K } ^ { i } \land i \in { \mathcal { N } } _ { M } ^ { j } } \\ { r } & { { \mathrm { o t h e r w i s e . } } } \end{array} \right. }
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where $r$ is a hyperparameter. If not specified $r$ is set to 0.1.
|
| 76 |
+
|
| 77 |
+
To further reduce the potential impact of noisy neighbors in $\mathcal { N } _ { K }$ , which belong to the different class but still are RNN, we propose a simply yet effective way dubbed self-regularization, that is, to not ignore the current prediction of ego feature:
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\mathcal { L } _ { s e l f } = - \frac { 1 } { n _ { t } } \sum _ { i } ^ { n _ { t } } S _ { i } ^ { \top } p _ { i }
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
where $s _ { i }$ means the stored prediction in the memory bank, note this term is a constant vector and is identical to the $p _ { i }$ since we update the memory banks before the training, here the loss is only back-propagated for variable $p _ { i }$ .
|
| 84 |
+
|
| 85 |
+
Require: $\mathcal { D } _ { s }$ (only for source model training), $\mathcal { D } _ { t }$
|
| 86 |
+
|
| 87 |
+
1: Pre-train model on $\mathcal { D } _ { s }$
|
| 88 |
+
2: Build feature bank $\mathcal { F }$ and score bank $s$ for $\mathcal { D } _ { t }$
|
| 89 |
+
3: while Adaptation do
|
| 90 |
+
4: Sample batch $\tau$ from $\mathcal { D } _ { t }$
|
| 91 |
+
5: Update $\mathcal { F }$ and $s$ corresponding to current batch $\tau$
|
| 92 |
+
6: Retrieve nearest neighbors $\mathcal { N }$ for each of $\tau$
|
| 93 |
+
7: Compute affinity value $A$
|
| 94 |
+
8: Retrieve expanded neighborhoods $E$ for each of $\mathcal { N }$
|
| 95 |
+
9: Compute loss and update the model
|
| 96 |
+
10: end while
|
| 97 |
+
|
| 98 |
+
. Eq.5 . Eq. 9
|
| 99 |
+
|
| 100 |
+
To avoid the degenerated solution [8, 39] where the model predicts all data as some specific classes (and does not predict other classes for any of the target data), we encourage the prediction to be balanced. We adopt the prediction diversity loss which is widely used in clustering [8, 9, 13] and also in several domain adaptation works [21, 39, 42]:
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
\mathcal { L } _ { d i v } = \sum _ { c = 1 } ^ { C } \mathrm { K L } ( \bar { p } _ { c } | | q _ { c } ) , \mathrm { w i t h } \bar { p } _ { c } = \frac { 1 } { n _ { t } } \sum _ { i } p _ { i } ^ { ( c ) } , \mathrm { a n d } q _ { \{ c = 1 , . . , C \} } = \frac { 1 } { C }
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
where the $p _ { i } ^ { ( c ) }$ is the score of the $c$ -th class and $\bar { p } _ { c }$ is the empirical label distribution, it represents the predicted possibility of class $c$ and q is a uniform distribution.
|
| 107 |
+
|
| 108 |
+
# 3.2 Expanded Neighborhood Affinity
|
| 109 |
+
|
| 110 |
+
As mentioned in Sec. 1, a simple way to achieve the aggregation of more information is by considering more nearest neighbors. However, a drawback is that larger neighborhoods are expected to contain more datapoint from multiple classes, defying the purpose of class consistency. A better way to include more target features is by considering the $M$ -nearest neighbor of each neighbor in $\mathcal { N } _ { K }$ of $z _ { i }$ in Eq. 4, i.e., the expanded neighbors. These target features are expected to be closer on the target data manifold than the features that are included by considering a larger number of nearest neighbors [43]. The expanded neighbors of feature $z _ { i }$ are defined as $\bar { E _ { M } } ( z _ { i } ) \bar { = } \mathcal { N } _ { M } ( z _ { j } ) \forall j \in \mathcal { N } _ { K } ( z _ { i } \bar { ) }$ , note that $E _ { M } ( z _ { i } )$ is still an index set and $i$ (ego feature) $\not \in E _ { M } ( z _ { i } )$ . We directly assign a small affinity value $r$ to those expanded neighbors, since they are further than nearest neighbors and may contain noise. We utilize the prediction of those expanded neighborhoods for training:
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
\mathcal { L } _ { E } = - \frac { 1 } { n _ { t } } \sum _ { i } \sum _ { k \in \mathcal { N } _ { K } ^ { i } } \sum _ { m \in E _ { M } ^ { k } } r \mathcal { S } _ { m } ^ { \top } p _ { i }
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
where $E _ { M } ^ { k }$ contain the $M$ -nearest neighbors of neighbor $k$ in $\mathcal { N } _ { K }$
|
| 117 |
+
|
| 118 |
+
Although the affinity values of all expanded neighbors are the same, it does not necessarily mean that they have equal importance. Taking a closer look at the expanded neighbors $E _ { M } ( z _ { i } )$ , some neighbors will show up more than once, for example $z _ { m }$ can be the nearest neighbor of both $z _ { h }$ and $z _ { j }$ where $h , j \in \mathcal N _ { K } ( \bar { z } _ { i } )$ , and the nearest neighbors can also serve as expanded neighbor. It implies that those neighbors form compact cluster, and we posit that those duplicated expanded neighbors have potential to be semantically closer to the ego-feature $z _ { i }$ . Thus, we do not remove duplicated features in $E _ { M } ( z _ { i } )$ , as those can lead to actually larger affinity value for those expanded neighbors. This is one advantage of utilizing expanded neighbors instead of more nearest neighbors, we will verify the importance of maintaining the duplicated features in the experimental section.
|
| 119 |
+
|
| 120 |
+
Final objective. Our method, called Neighborhood Reciprocity Clustering (NRC), is illustrated in Algorithm. 1. The final objective for adaptation is:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\mathcal { L } = \mathcal { L } _ { d i v } + \mathcal { L } _ { \mathcal { N } } + \mathcal { L } _ { E } + \mathcal { L } _ { s e l f } .
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
# 4 Experiments
|
| 127 |
+
|
| 128 |
+
Datasets. We use three 2D image benchmark datasets and a 3D point cloud recognition dataset.
|
| 129 |
+
Office-31 [32] contains 3 domains (Amazon, Webcam, DSLR) with 31 classes and 4,652 images.
|
| 130 |
+
|
| 131 |
+
Table 1: Accuracies $( \% )$ on Office-31 for ResNet50-based methods.
|
| 132 |
+
|
| 133 |
+
<table><tr><td>Method</td><td>SF</td><td>AβD</td><td>AβW</td><td>DβW</td><td>WβD</td><td>DβA</td><td>WβA</td><td>Avg</td></tr><tr><td>MCD [35]</td><td>X</td><td>92.2</td><td>88.6</td><td>98.5</td><td>100.0</td><td>69.5</td><td>69.7</td><td>86.5</td></tr><tr><td>CDAN [24]</td><td>X</td><td>92.9</td><td>94.1</td><td>98.6</td><td>100.0</td><td>71.0</td><td>69.3</td><td>87.7</td></tr><tr><td>MDD [59]</td><td>X</td><td>90.4</td><td>90.4</td><td>98.7</td><td>99.9</td><td>75.0</td><td>73.7</td><td>88.0</td></tr><tr><td>BNM[4]</td><td>X</td><td>90.3</td><td>91.5</td><td>98.5</td><td>100.0</td><td>70.9</td><td>71.6</td><td>87.1</td></tr><tr><td>DMRL [49]</td><td>X</td><td>93.4</td><td>90.8</td><td>99.0</td><td>100.0</td><td>73.0</td><td>71.2</td><td>87.9</td></tr><tr><td>BDG[53]</td><td>X</td><td>93.6</td><td>93.6</td><td>99.0</td><td>100.0</td><td>73.2</td><td>72.0</td><td>88.5</td></tr><tr><td>MCC[15]</td><td>X</td><td>95.6</td><td>95.4</td><td>98.6</td><td>100.0</td><td>72.6</td><td>73.9</td><td>89.4</td></tr><tr><td>SRDC[42]</td><td>X</td><td>95.8</td><td>95.7</td><td>99.2</td><td>100.0</td><td>76.7</td><td>77.1</td><td>90.8</td></tr><tr><td>RWOT[51]</td><td>X</td><td>94.5</td><td>95.1</td><td>99.5</td><td>100.0</td><td>77.5</td><td>77.9</td><td>90.8</td></tr><tr><td>RSDA-MSTN[10]</td><td>X</td><td>95.8</td><td>96.1</td><td>99.3</td><td>100.0</td><td>77.4</td><td>78.9</td><td>91.1</td></tr><tr><td>SHOT [21]</td><td>β</td><td>94.0</td><td>90.1</td><td>98.4</td><td>99.9</td><td>74.7</td><td>74.3</td><td>88.6</td></tr><tr><td>3C-GAN[20]</td><td>γ</td><td>92.7</td><td>93.7</td><td>98.5</td><td>99.8</td><td>75.3</td><td>77.8</td><td>89.6</td></tr><tr><td>NRC</td><td></td><td>96.0</td><td>90.8</td><td>99.0</td><td>100.0</td><td>75.3</td><td>75.0</td><td>89.4</td></tr></table>
|
| 134 |
+
|
| 135 |
+
Table 2: Accuracies $( \% )$ on Office-Home for ResNet50-based methods.
|
| 136 |
+
|
| 137 |
+
<table><tr><td>Method</td><td></td><td>SFAr->CIAr-βPrAr-βRwC1-βArCI-βPrCI-β>RwPr-βArPr-β>CIPr-βRwRw-βArRw-βCIRw-βPrAvg</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>MCD [35]</td><td>xxxxxxxxxx</td><td>48.9 68.3</td><td>74.6</td><td>61.3</td><td>67.6</td><td>68.8</td><td>57.0</td><td>47.1</td><td>75.1</td><td>69.1</td><td>52.2</td><td>79.6</td><td>64.1</td></tr><tr><td>CDAN [24]</td><td></td><td>50.7</td><td>70.6 76.0</td><td>57.6</td><td>70.0</td><td>70.0</td><td>57.4</td><td>50.9</td><td>77.3</td><td>70.9</td><td>56.7</td><td>81.6</td><td>65.8</td></tr><tr><td>SAFN [52]</td><td></td><td>52.0</td><td>71.7 76.3</td><td>64.2</td><td>69.9</td><td>71.9</td><td>63.7</td><td>51.4</td><td>77.1</td><td>70.9</td><td>57.1</td><td>81.5</td><td>67.3</td></tr><tr><td>Symnets [58]</td><td></td><td>47.7 72.9</td><td>78.5</td><td>64.2</td><td>71.3</td><td>74.2</td><td>64.2</td><td>48.8</td><td>79.5</td><td>74.5</td><td>52.6</td><td>82.7</td><td>67.6</td></tr><tr><td>MDD [59]</td><td></td><td>54.9 73.7</td><td>77.8</td><td>60.0</td><td>71.4</td><td>71.8</td><td>61.2</td><td>53.6</td><td>78.1</td><td>72.5</td><td>60.2</td><td>82.3</td><td>68.1</td></tr><tr><td>TADA [47]</td><td></td><td>53.1</td><td>72.3 77.2</td><td>59.1</td><td>71.2</td><td>72.1</td><td>59.7</td><td>53.1</td><td>78.4</td><td>72.4</td><td>60.0</td><td>82.9</td><td>67.6</td></tr><tr><td>BNM[4]</td><td></td><td>52.3</td><td>73.9 80.0</td><td>63.3</td><td>72.9</td><td>74.9</td><td>61.7</td><td>49.5</td><td>79.7</td><td>70.5</td><td>53.6</td><td>82.2</td><td>67.9</td></tr><tr><td>BDG [53]</td><td></td><td>51.5 73.4</td><td>78.7</td><td>65.3</td><td>71.5</td><td>73.7</td><td>65.1</td><td>49.7</td><td>81.1</td><td>74.6</td><td>55.1</td><td>84.8</td><td>68.7</td></tr><tr><td>SRDC [42]</td><td></td><td>52.3 76.3</td><td>81.0</td><td>69.5</td><td>76.2</td><td>78.0</td><td>68.7</td><td>53.8</td><td>81.7</td><td>76.3</td><td>57.1</td><td>85.0</td><td>71.3</td></tr><tr><td>RSDA-MSTN[10]</td><td></td><td>53.2</td><td>77.7 81.3</td><td>66.4</td><td>74.0</td><td>76.5</td><td>67.9</td><td>53.0</td><td>82.0</td><td>75.8</td><td>57.8</td><td>85.4</td><td>70.9</td></tr><tr><td>SHOT [21]</td><td></td><td>57.1</td><td>78.1 81.5</td><td>68.0</td><td>78.2</td><td>78.1</td><td>67.4</td><td>54.9</td><td>82.2</td><td>73.3</td><td>58.8</td><td>84.3</td><td>71.8</td></tr><tr><td>NRC</td><td>εΊ</td><td>57.7</td><td>80.3 82.0</td><td>68.1</td><td>79.8</td><td>78.6</td><td>65.3</td><td>56.4</td><td>83.0</td><td>71.0</td><td>58.6</td><td>85.6</td><td>72.2</td></tr></table>
|
| 138 |
+
|
| 139 |
+
Office-Home [46] contains 4 domains (Real, Clipart, Art, Product) with 65 classes and a total of 15,500 images. VisDA [28] is a more challenging dataset, with 12-class synthetic-to-real object recognition tasks, its source domain contains of $1 5 2 \mathrm { k }$ synthetic images while the target domain has 55k real object images. PointDA-10 [30] is the first 3D point cloud benchmark specifically designed for domain adaptation, it has 3 domains with 10 classes, denoted as ModelNet-10, ShapeNet-10 and ScanNet-10, containing approximately $2 7 . 7 \mathrm { k }$ training and 5.1k testing images together.
|
| 140 |
+
|
| 141 |
+
Evaluation. We compare with existing source-present and source-free DA methods. All results are the average on three random runs. SF in the tables denotes source-free.
|
| 142 |
+
|
| 143 |
+
Model details. For fair comparison with related methods, we also adopt the backbone of ResNet-50 [11] for Office-Home and ResNet-101 for VisDA, and PointNet [29] for PointDA10. Specifically, for 2D image datasets, we use the same network architecture as SHOT [21], i.e., the final part of the network is: fully connected layer β Batch Normalization [12] β fully connected layer with weight normalization [37]. And for PointDA-10 [29], we use the code released by the authors for fair comparison with PointDAN [29], and only use the backbone without any of their proposed modules. To train the source model, we also adopt label smoothing as SHOT does. We adopt SGD with momentum 0.9 and batch size of 64 for all 2D datasets, and Adam for PointDA-10. The learning rate for Office-31 and Office-Home is set to 1e-3 for all layers, except for the last two newly added fc layers, where we apply 1e-2. Learning rates are set 10 times smaller for VisDA. Learning rate for PointDA-10 is set to 1e-6. We train 30 epochs for Office-31 and OfficeHome while 15 epochs for VisDA, and 100 for PointDA-10. For the number of nearest neighbors (K) and expanded neighborhoods (M), we use 3,2 for Office-31, Office-Home and PointDA-10, since VisDA is much larger we set K, M to 5. Experiments are conducted on a TITAN Xp.
|
| 144 |
+
|
| 145 |
+
# 4.1 Results
|
| 146 |
+
|
| 147 |
+
2D image datasets. We first evaluate the target performance of our method compared with existing DA and SFDA methods on three 2D image datasets. As shown in Table 1-3, the top part shows results for the source-present methods with access to source data during adaptation. The bottom shows results for the source-free DA methods. On Office-31, our method gets similar results compared with source-free method 3C-GAN and lower than source-present method RSDA-MSTN. And our method achieves state-of-the-art performance on Office-Home and VisDA, especially on VisDA our method surpasses the source-free method SHOT and source-present method RWOT by a wide margin $3 \%$ and $1 . 9 \%$ respectively). The reported results clearly demonstrate the efficiency of the proposed method for source-free domain adaptation. Interestingly, like already observed in the SHOT paper, source-free methods outperform methods that have access to source data during adaptation.
|
| 148 |
+
|
| 149 |
+
Table 3: Accuracies $( \% )$ on VisDA-C (Synthesis Real) for ResNet101-based methods.
|
| 150 |
+
|
| 151 |
+
<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>SF</td><td rowspan=1 colspan=1>[SF|plane bcycl bus car horse knife mcycl person plant sktbrd train truck Per-class</td></tr><tr><td rowspan=5 colspan=1>ADR [34]CDAN [24]CDAN+BSP[2]SAFN [52]SWD[19]MDD [59]DMRL [49]MCC[15]STAR [26]RWOT[51]</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>94.248.584.0 72.990.174.292.6 72.580.861.882.2 28.8 73.5</td></tr><tr><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>85.266.983.0 50.884.274.988.1 74.583.476.081.9 38.0 73.9</td></tr><tr><td rowspan=3 colspan=1>Γ</td><td rowspan=2 colspan=1>61.081.0 57.5 89.080.690.1 77.084.277.982.1 38.4 75.9</td></tr><tr><td rowspan=1 colspan=1>92.493.690.8</td></tr><tr><td rowspan=1 colspan=1>93.661.384.1 70.6 94.179.091.8 79.689.955.689.0 24.4 76.190.882.5 81.7 70.5 91.769.586.3 77.587.463.685.6 29.2 76.4- 1 1 1 1 1 1 1 1 - 1 1 74.6- = = = = = = = = 75.588.780.3 80.5 71.5 90.1 93.285.0 71.689.473.8 85.0 36.9 78.895.084.084.6 73.0 91.691.885.9 78.494.484.787.0 42.2 82.795.180.383.7 90.092.468.092.5 82.287.978.490.4 68.2 84.0</td></tr><tr><td rowspan=3 colspan=1>3C-GAN [20]SHOT[21]NRC</td><td rowspan=1 colspan=1>β</td><td rowspan=1 colspan=1>94.873.468.8 74.893.195.488.6 84.7 89.184.783.5 48.1 81.6</td></tr><tr><td rowspan=1 colspan=1>β</td><td rowspan=1 colspan=1>94.388.580.1 57.3 93.194.980.7 80.391.589.186.3 58.2 82.9</td></tr><tr><td rowspan=1 colspan=1>β</td><td rowspan=1 colspan=1>96.891.382.4 62.4 96.295.986.1 80.694.894.190.4 59.7 85.9</td></tr></table>
|
| 152 |
+
|
| 153 |
+
Table 4: Accuracies $( \% )$ on PointDA-10. The results except ours are from PointDAN [30].
|
| 154 |
+
|
| 155 |
+
<table><tr><td colspan="2"></td><td colspan="4">|SF|Model-βShape Model-βScan Shape-βModel Shape->Scan ScanβModel Scan-βShape Avg</td></tr><tr><td>MMD [25]</td><td></td><td>57.5 27.9</td><td>40.7</td><td>26.7</td><td>47.3</td><td>54.8</td><td>42.5</td></tr><tr><td>DANN [6]</td><td>xxxxx</td><td>58.7 29.4</td><td>42.3</td><td>30.5</td><td>48.1</td><td>56.7</td><td>44.2</td></tr><tr><td>ADDA [44]</td><td></td><td>61.0 30.5</td><td>40.4</td><td>29.3</td><td>48.9</td><td>51.1</td><td>43.5</td></tr><tr><td>MCD [35]</td><td></td><td>62.0 31.0</td><td>41.4</td><td>31.3</td><td>46.8</td><td>59.3</td><td>45.3</td></tr><tr><td>PointDAN [30]</td><td></td><td>64.2 33.0</td><td>47.6</td><td>33.9</td><td>49.1</td><td>64.1</td><td>48.7</td></tr><tr><td>Source-only</td><td></td><td>43.1</td><td>17.3 40.0</td><td>15.0</td><td>33.9</td><td>47.1</td><td>32.7</td></tr><tr><td>NRC</td><td><</td><td>64.8</td><td>25.8 59.8</td><td>26.9</td><td>70.1</td><td>68.1</td><td>52.6</td></tr></table>
|
| 156 |
+
|
| 157 |
+
3D point cloud dataset. We also report the result for the PointDA-10. As shown in Table 4, our method outperforms PointDA [30], which demands source data for adaptation and is specifically tailored for point cloud data with extra attention modules, by a large margin $(4 \% )$ .
|
| 158 |
+
|
| 159 |
+
# 4.2 Analysis
|
| 160 |
+
|
| 161 |
+
Ablation study on neighbors $\mathcal { N }$ , $E$ and affinity $A$ . In the first two tables of Table 5, we conduct the ablation study on Office-Home and VisDA. The 1-st row contains results from the source model and the 2-nd row from only training with the diversity loss $\mathcal { L } _ { d i v }$ . From the remaining rows, several conclusions can be drawn.
|
| 162 |
+
|
| 163 |
+
First, the original supervision, which considers all neighbors equally can lead to a decent performance (67.1 on Office-Home). Second, considering higher affinity values for reciprocal neighbors leads to a large performance gain (69.1 on Office-Home). Last but not the least, the expanded neighborhoods can also be helpful, but only when combined with the affinity values $A$ (72.2 on Office-Home). Using expanded neighborhoods without affinity obtains bad performance (65,2 on Office-Home). We conjecture that those expanded neighborhoods, especially those neighbors of nRNN, may be noisy as discussed in Sec. 3.2. Removing the affinity $A$ means we treat all those neighbors equally, which is not reasonable.
|
| 164 |
+
|
| 165 |
+
Table 5: Ablation study of different modules on Office-Home (left) and VisDA (middle), comparison between using expanded neighbors and larger nearest neighbors (right).
|
| 166 |
+
|
| 167 |
+
<table><tr><td>Ldiv</td><td>LN</td><td>LE LEA</td><td>Avg</td><td>Ldiv</td><td>LN</td><td></td><td>LE LEA</td><td></td><td>Acc</td></tr><tr><td></td><td></td><td></td><td>59.5</td><td></td><td></td><td></td><td></td><td></td><td>44.6</td></tr><tr><td></td><td></td><td></td><td>62.1</td><td></td><td></td><td></td><td></td><td></td><td>47.8</td></tr><tr><td></td><td></td><td></td><td>67.1</td><td></td><td></td><td></td><td></td><td></td><td>74.6</td></tr><tr><td></td><td></td><td></td><td>β 69.1</td><td></td><td></td><td></td><td></td><td>β</td><td>81.5</td></tr><tr><td></td><td></td><td></td><td>65.2</td><td></td><td></td><td></td><td></td><td></td><td>61.2</td></tr><tr><td></td><td></td><td></td><td>72.2</td><td></td><td></td><td></td><td></td><td>οΌ</td><td>85.9</td></tr><tr><td></td><td></td><td></td><td>69.1 [</td><td></td><td></td><td></td><td></td><td></td><td>82.0</td></tr></table>
|
| 168 |
+
|
| 169 |
+
<table><tr><td rowspan=1 colspan=1>Method&Dataset</td><td rowspan=1 colspan=1>Acc</td></tr><tr><td rowspan=1 colspan=1>VisDA (K=M=5)VisDA w/o E (K=30)</td><td rowspan=1 colspan=1>85.984.0</td></tr><tr><td rowspan=1 colspan=1>OH(K=3,M=2)OH w/o E (K=9)</td><td rowspan=1 colspan=1>72.269.5</td></tr></table>
|
| 170 |
+
|
| 171 |
+
Table 6: Runtime analysis on SHOT and our method. For SHOT, pseudo labels are computed at each epoch. $20 \%$ , $10 \%$ and $5 \%$ denote the percentage of target features which are stored in the memory bank.
|
| 172 |
+
|
| 173 |
+
<table><tr><td>VisDA</td><td colspan="2">Runtime (s/epoch)Per-class (%)</td></tr><tr><td>SHOT</td><td>618.82</td><td>82.9</td></tr><tr><td>NRC</td><td>540.89</td><td>85.9</td></tr><tr><td>NRC(20%) 6formemorybank)</td><td>507.15</td><td>85.3</td></tr><tr><td>NRC(10% for memory bank)</td><td>499.49</td><td>85.2</td></tr><tr><td>NRC(5% for memory bank)</td><td>499.28</td><td>85.1</td></tr></table>
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
Figure 2: (Left and middle) Ablation study of $\mathcal { L } _ { s e l f }$ on Office-Home and VisDA respectively. (Right) Performance with different $r$ on VisDA.
|
| 177 |
+
|
| 178 |
+
We also show that duplication in the expanded neighbors is important in the last row of Table 5, where the $\mathcal { L } _ { \hat { E } }$ means we remove duplication in Eq. 8. The results show that the performance will degrade significantly when removing them, implying that the duplicated expanded neighbors are indeed more important than others.
|
| 179 |
+
|
| 180 |
+
Next we ablate the importance of the expanded neighborhood in the right of Table5. We show that if we increase the number of datapoints considered for class-consistency by simply considering a larger K, we obtain significantly lower scores. We have chosen $K$ so that the total number of points considered is equal to our method (i.e. $5 { + } 5 ^ { * } 5 { = } 3 0$ and $3 + 3 ^ { * } 2 { = } 9 ,$ ). Considering neighbors of neighbors is more likely to provide datapoints that are close on the data manifold [43], and are therefore more likely to share the class label with the ego feature.
|
| 181 |
+
|
| 182 |
+
Runtime analysis. Instead of storing all feature vectors in the memory bank, we follow the same memory bank setting as in [5] which is for nearest neighbor retrieval. The method only stores a fixed number of target features, we update the memory bank at the end of each iteration by taking the $n$ (batch size) embeddings from the current training iteration and concatenating them at the end of the memory bank, and discard the oldest $n$ elements from the memory bank. We report the results with this type of memory bank of different buffer size in the Table 6. The results show that indeed this could be an efficient way to reduce computation on very large datasets.
|
| 183 |
+
|
| 184 |
+
Ablation study on self-regularization. In the left and middle of Fig 2, we show the results with and without self-regularization $\mathcal { L } _ { s e l f }$ . The $\mathcal { L } _ { s e l f }$ can improve the performance when adopting only nearest neighbors $\mathcal { N }$ or all neighbors $\mathcal { N } + E$ . The results imply that self-regularization can effectively reduce the negative impact of the potential noisy neighbors, especially on the Office-Home dataset.
|
| 185 |
+
|
| 186 |
+
Sensitivity to hyperparameter. There are three hyperparameters in our method: K and M which are the number of nearest neighbors and expanded neighbors, $r$ which is the affinity value assigned to nRNN. We show the results with different $r$ in the right of Fig. 2. Note we keep the affinity of expanded neighbors as 0.1. $r = 1$ means no affinity. $r = - 1$ means treating supervision of nRNN feature as totally wrong, which is not always the case and will lead to quite lower result. $r = 0$ can also achieve good performance, signifying RNN can already work well. Results with $r = 0 . 1 / 0 . 1 5 / 0 . 2$ show that our method is not sensitive to the choice of a reasonable $r$ . Note in DA, there is no validation set for hyperparameter tuning, we show the results varying the number of neighbors in the right of Tab. 3, demonstrating the robustness to the choice of $K$ and $M$ .
|
| 187 |
+
|
| 188 |
+

|
| 189 |
+
Figure 3: (Left) The three curves are (on VisDA): target accuracy (Blue), ratio of features which have 5-nearest neighbors all sharing the same predicted label (dashed Red), and ratio of features which have 5-nearest neighbors all sharing the same and correct predicted label (dashed Black). (Right) Ablation study on choice of K and M on VisDA.
|
| 190 |
+
|
| 191 |
+

|
| 192 |
+
Figure 4: (Left) Ratio of different type of nearest neighbor features which have the correct predicted label, before and after adaptation. (Right) Visualization of target features after adaptation.
|
| 193 |
+
|
| 194 |
+
Training curve. We show the evolution of several statistics during adaptation on VisDA in the left of Tab. 3. The blue curve is the target accuracy. The dashed red and black curves are the ratio of features which have 5-nearest neighbors all sharing the same (dashed Red), or the same and also correct (dashed Black) predicted label. The curves show that the target features are clustering during the training. Another interesting finding is that the curve βPer Sharedβ correlates with the accuracy curve, which might therefore be used to determine training convergence.
|
| 195 |
+
|
| 196 |
+
Accuracy of supervision from neighbors. We also show the accuracy of supervision from neighbors on task $\mathrm { A r } { } \mathrm { R w }$ of Office-Home in Fig. 4(left). It shows that after adaptation, the ratio of all types of neighbors having more correct predicted label, proving the effectiveness of the method.
|
| 197 |
+
|
| 198 |
+
t-SNE visualization. We show the t-SNE feature visualization on task $\mathrm { A r } { } \mathrm { R w }$ of target features before (Fig. 1(a)) and after (Fig. 4(right)) adaptation. After adaptation, the features are more compactly clustered.
|
| 199 |
+
|
| 200 |
+
# 5 Conclusions
|
| 201 |
+
|
| 202 |
+
We introduce a source-free domain adaptation (SFDA) method by uncovering the intrinsic target data structure. We propose to achieve the adaptation by encouraging label consistency among local target features. We differentiate between nearest neighbors, reciprocal neighbors and expanded neighborhood. Experimental results verify the importance of considering the local structure of the target features. Finally, our experimental results on both 2D image and 3D point cloud datasets testify the efficacy of our method.
|
| 203 |
+
|
| 204 |
+
Acknowledgement We acknowledge the support from Huawei Kirin Solution, and the project PID2019-104174GB-I00 (MINECO, Spain) and RTI2018-102285-A-I00 (MICINN, Spain), RamΓ³n y Cajal fellowship RYC2019-027020-I, and the CERCA Programme of Generalitat de Catalunya.
|
| 205 |
+
|
| 206 |
+
# References
|
| 207 |
+
|
| 208 |
+
[1] Kristen M Altenburger and Johan Ugander. Monophily in social networks introduces similarity among friends-of-friends. Nature human behaviour, 2(4):284β290, 2018.
|
| 209 |
+
[2] Xinyang Chen, Sinan Wang, Mingsheng Long, and Jianmin Wang. Transferability vs. discriminability: Batch spectral penalization for adversarial domain adaptation. In International Conference on Machine Learning, pages 1081β1090, 2019.
|
| 210 |
+
[3] Alex Chin, Yatong Chen, Kristen M. Altenburger, and Johan Ugander. Decoupled smoothing on graphs. In The World Wide Web Conference, pages 263β272, 2019.
|
| 211 |
+
[4] Shuhao Cui, Shuhui Wang, Junbao Zhuo, Liang Li, Qingming Huang, and Qi Tian. Towards discriminability and diversity: Batch nuclear-norm maximization under label insufficient situations. CVPR, 2020.
|
| 212 |
+
[5] Debidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet, and Andrew Zisserman. With a little help from my friends: Nearest-neighbor contrastive learning of visual representations. ICCV, 2021.
|
| 213 |
+
[6] Yaroslav Ganin and Victor Lempitsky. Unsupervised domain adaptation by backpropagation. arXiv preprint arXiv:1409.7495, 2014.
|
| 214 |
+
[7] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, FranΓ§ois Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. The Journal of Machine Learning Research, 17(1):2096β2030, 2016.
|
| 215 |
+
[8] Kamran Ghasedi Dizaji, Amirhossein Herandi, Cheng Deng, Weidong Cai, and Heng Huang. Deep clustering via joint convolutional autoencoder embedding and relative entropy minimization. In Proceedings of the IEEE international conference on computer vision, pages 5736β5745, 2017.
|
| 216 |
+
[9] Ryan Gomes, Andreas Krause, and Pietro Perona. Discriminative clustering by regularized information maximization. 2010.
|
| 217 |
+
[10] Xiang Gu, Jian Sun, and Zongben Xu. Spherical space domain adaptation with robust pseudo-label loss. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9101β9110, 2020.
|
| 218 |
+
[11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770β778, 2016.
|
| 219 |
+
[12] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
|
| 220 |
+
[13] Mohammed Jabi, Marco Pedersoli, Amar Mitiche, and Ismail Ben Ayed. Deep clustering: On the link between discriminative models and k-means. IEEE transactions on pattern analysis and machine intelligence, 2019.
|
| 221 |
+
[14] Herve Jegou, Hedi Harzallah, and Cordelia Schmid. A contextual dissimilarity measure for accurate and efficient image search. In 2007 IEEE Conference on Computer Vision and Pattern Recognition, pages 1β8. IEEE, 2007.
|
| 222 |
+
[15] Ying Jin, Ximei Wang, Mingsheng Long, and Jianmin Wang. Minimum class confusion for versatile domain adaptation. ECCV, 2020.
|
| 223 |
+
[16] Jogendra Nath Kundu, Naveen Venkat, and R Venkatesh Babu. Universal source-free domain adaptation. CVPR, 2020.
|
| 224 |
+
[17] Jogendra Nath Kundu, Naveen Venkat, Ambareesh Revanur, R Venkatesh Babu, et al. Towards inheritable models for open-set domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12376β12385, 2020.
|
| 225 |
+
[18] Chen-Yu Lee, Tanmay Batra, Mohammad Haris Baig, and Daniel Ulbricht. Sliced wasserstein discrepancy for unsupervised domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
|
| 226 |
+
[19] Chen-Yu Lee, Tanmay Batra, Mohammad Haris Baig, and Daniel Ulbricht. Sliced wasserstein discrepancy for unsupervised domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10285β10295, 2019.
|
| 227 |
+
[20] Rui Li, Qianfen Jiao, Wenming Cao, Hau-San Wong, and Si Wu. Model adaptation: Unsupervised domain adaptation without source data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9641β9650, 2020.
|
| 228 |
+
[21] Jian Liang, Dapeng Hu, and Jiashi Feng. Do we really need to access the source data? source hypothesis transfer for unsupervised domain adaptation. ICML, 2020.
|
| 229 |
+
[22] Yuang Liu, Wei Zhang, and Jun Wang. Source-free domain adaptation for semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1215β1224, 2021.
|
| 230 |
+
[23] Mingsheng Long, Yue Cao, Jianmin Wang, and Michael I Jordan. Learning transferable features with deep adaptation networks. ICML, 2015.
|
| 231 |
+
[24] Mingsheng Long, Zhangjie Cao, Jianmin Wang, and Michael I Jordan. Conditional adversarial domain adaptation. In Advances in Neural Information Processing Systems, pages 1647β1657, 2018.
|
| 232 |
+
[25] Mingsheng Long, Jianmin Wang, Guiguang Ding, Jiaguang Sun, and Philip S Yu. Transfer feature learning with joint distribution adaptation. In Proceedings of the IEEE international conference on computer vision, pages 2200β2207, 2013.
|
| 233 |
+
[26] Zhihe Lu, Yongxin Yang, Xiatian Zhu, Cong Liu, Yi-Zhe Song, and Tao Xiang. Stochastic classifiers for unsupervised domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9111β9120, 2020.
|
| 234 |
+
[27] Yingwei Pan, Ting Yao, Yehao Li, Chong-Wah Ngo, and Tao Mei. Exploring category-agnostic clusters for open-set domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13867β13875, 2020.
|
| 235 |
+
[28] Xingchao Peng, Ben Usman, Neela Kaushik, Judy Hoffman, Dequan Wang, and Kate Saenko. Visda: The visual domain adaptation challenge. arXiv preprint arXiv:1710.06924, 2017.
|
| 236 |
+
[29] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 652β660, 2017.
|
| 237 |
+
[30] Can Qin, Haoxuan You, Lichen Wang, C-C Jay Kuo, and Yun Fu. Pointdan: A multi-scale 3d domain adaption network for point cloud representation. Advances in Neural Information Processing Systems, 32:7192β7203, 2019.
|
| 238 |
+
[31] Danfeng Qin, Stephan Gammeter, Lukas Bossard, Till Quack, and Luc Van Gool. Hello neighbor: Accurate object retrieval with k-reciprocal nearest neighbors. In CVPR 2011, pages 777β784. IEEE, 2011.
|
| 239 |
+
[32] Kate Saenko, Brian Kulis, Mario Fritz, and Trevor Darrell. Adapting visual category models to new domains. In European conference on computer vision, pages 213β226. Springer, 2010.
|
| 240 |
+
[33] Kuniaki Saito, Donghyun Kim, Stan Sclaroff, and Kate Saenko. Universal domain adaptation through self supervision. Advances in Neural Information Processing Systems, 33, 2020.
|
| 241 |
+
[34] Kuniaki Saito, Yoshitaka Ushiku, Tatsuya Harada, and Kate Saenko. Adversarial dropout regularization. ICLR, 2018.
|
| 242 |
+
[35] Kuniaki Saito, Kohei Watanabe, Yoshitaka Ushiku, and Tatsuya Harada. Maximum classifier discrepancy for unsupervised domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3723β3732, 2018.
|
| 243 |
+
[36] Kuniaki Saito, Shohei Yamamoto, Yoshitaka Ushiku, and Tatsuya Harada. Open set domain adaptation by backpropagation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 153β168, 2018.
|
| 244 |
+
[37] Tim Salimans and Diederik P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. arXiv preprint arXiv:1602.07868, 2016.
|
| 245 |
+
[38] Saquib Sarfraz, Vivek Sharma, and Rainer Stiefelhagen. Efficient parameter-free clustering using first neighbor relations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8934β8943, 2019.
|
| 246 |
+
[39] Yuan Shi and Fei Sha. Information-theoretical learning of discriminative clusters for unsupervised domain adaptation. In Proceedings of the 29th International Coference on International Conference on Machine Learning, pages 1275β1282, 2012.
|
| 247 |
+
[40] Rui Shu, Hung H Bui, Hirokazu Narui, and Stefano Ermon. A dirt-t approach to unsupervised domain adaptation. ICLR, 2018.
|
| 248 |
+
[41] Baochen Sun, Jiashi Feng, and Kate Saenko. Return of frustratingly easy domain adaptation. In Thirtieth AAAI Conference on Artificial Intelligence, 2016.
|
| 249 |
+
[42] Hui Tang, Ke Chen, and Kui Jia. Unsupervised domain adaptation via structurally regularized deep clustering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8725β8735, 2020.
|
| 250 |
+
[43] Joshua B Tenenbaum, Vin De Silva, and John C Langford. A global geometric framework for nonlinear dimensionality reduction. science, 290(5500):2319β2323, 2000.
|
| 251 |
+
[44] Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. Adversarial discriminative domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7167β7176, 2017.
|
| 252 |
+
[45] Eric Tzeng, Judy Hoffman, Ning Zhang, Kate Saenko, and Trevor Darrell. Deep domain confusion: Maximizing for domain invariance. arXiv preprint arXiv:1412.3474, 2014.
|
| 253 |
+
[46] Hemanth Venkateswara, Jose Eusebio, Shayok Chakraborty, and Sethuraman Panchanathan. Deep hashing network for unsupervised domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5018β5027, 2017.
|
| 254 |
+
[47] Ximei Wang, Liang Li, Weirui Ye, Mingsheng Long, and Jianmin Wang. Transferable attention for domain adaptation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 5345β5352, 2019.
|
| 255 |
+
[48] Zhongdao Wang, Liang Zheng, Yali Li, and Shengjin Wang. Linkage based face clustering via graph convolution network. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1117β1125, 2019.
|
| 256 |
+
[49] Yuan Wu, Diana Inkpen, and Ahmed El-Roby. Dual mixup regularized learning for adversarial domain adaptation. ECCV, 2020.
|
| 257 |
+
[50] Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via nonparametric instance discrimination. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3733β3742, 2018.
|
| 258 |
+
[51] Renjun Xu, Pelen Liu, Liyan Wang, Chao Chen, and Jindong Wang. Reliable weighted optimal transport for unsupervised domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4394β4403, 2020.
|
| 259 |
+
[52] Ruijia Xu, Guanbin Li, Jihan Yang, and Liang Lin. Larger norm more transferable: An adaptive feature norm approach for unsupervised domain adaptation. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
|
| 260 |
+
[53] Guanglei Yang, Haifeng Xia, Mingli Ding, and Zhengming Ding. Bi-directional generation for unsupervised domain adaptation. In AAAI, pages 6615β6622, 2020.
|
| 261 |
+
[54] Lei Yang, Dapeng Chen, Xiaohang Zhan, Rui Zhao, Chen Change Loy, and Dahua Lin. Learning to cluster faces via confidence and connectivity estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13369β13378, 2020.
|
| 262 |
+
[55] Lei Yang, Xiaohang Zhan, Dapeng Chen, Junjie Yan, Chen Change Loy, and Dahua Lin. Learning to cluster faces on an affinity graph. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2298β2306, 2019.
|
| 263 |
+
[56] Shiqi Yang, Yaxing Wang, Joost van de Weijer, Luis Herranz, and Shangling Jui. Unsupervised domain adaptation without source data by casting a bait. arXiv preprint arXiv:2010.12427, 2020.
|
| 264 |
+
[57] Kaichao You, Mingsheng Long, Zhangjie Cao, Jianmin Wang, and Michael I Jordan. Universal domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2720β2729, 2019.
|
| 265 |
+
[58] Yabin Zhang, Hui Tang, Kui Jia, and Mingkui Tan. Domain-symmetric networks for adversarial domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5031β5040, 2019.
|
| 266 |
+
[59] Yuchen Zhang, Tianle Liu, Mingsheng Long, and Michael Jordan. Bridging theory and algorithm for domain adaptation. In International Conference on Machine Learning, pages 7404β7413, 2019.
|
| 267 |
+
[60] Zhun Zhong, Liang Zheng, Donglin Cao, and Shaozi Li. Re-ranking person re-identification with kreciprocal encoding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1318β1327, 2017.
|
| 268 |
+
[61] Jiong Zhu, Yujun Yan, Lingxiao Zhao, Mark Heimann, Leman Akoglu, and Danai Koutra. Beyond homophily in graph neural networks: Current limitations and effective designs. Advances in Neural Information Processing Systems, 33, 2020.
|
| 269 |
+
[62] Chengxu Zhuang, Alex Lin Zhai, and Daniel Yamins. Local aggregation for unsupervised learning of visual embeddings. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 6002β6012, 2019.
|
| 270 |
+
|
| 271 |
+
# Checklist
|
| 272 |
+
|
| 273 |
+
1. For all authors...
|
| 274 |
+
|
| 275 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paperβs contributions and scope? [Yes]
|
| 276 |
+
(b) Did you describe the limitations of your work? [No]
|
| 277 |
+
(c) Did you discuss any potential negative societal impacts of your work? [No]
|
| 278 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 279 |
+
|
| 280 |
+
2. If you are including theoretical results...
|
| 281 |
+
|
| 282 |
+
(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
|
| 283 |
+
|
| 284 |
+
3. If you ran experiments...
|
| 285 |
+
|
| 286 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We attach the code in the supplemental material.
|
| 287 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] As in the model details in Sec.4
|
| 288 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] All main results are average over three running with random seeds.
|
| 289 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes]
|
| 290 |
+
|
| 291 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 292 |
+
|
| 293 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes]
|
| 294 |
+
(b) Did you mention the license of the assets? [No]
|
| 295 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [No]
|
| 296 |
+
(d) Did you discuss whether and how consent was obtained from people whose data youβre using/curating? [No]
|
| 297 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No]
|
| 298 |
+
|
| 299 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 300 |
+
|
| 301 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 302 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 303 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/yhjpeuWepoj/yhjpeuWepoj_content_list.json
ADDED
|
@@ -0,0 +1,1193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Exploiting the Intrinsic Neighborhood Structure for Source-free Domain Adaptation ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
186,
|
| 8 |
+
122,
|
| 9 |
+
813,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Shiqi Yang1, Yaxing Wang1,2β, Joost van de Weijer1, Luis Herranz1, Shangling Jui3 1 Computer Vision Center, Universitat Autonoma de Barcelona, Barcelona, Spain 2 PCALab, Nanjing University of Science and Technology, China 3 Huawei Kirin Solution, Shanghai, China \n{syang,yaxing,joost,lherranz}@cvc.uab.es, jui.shangling@huawei.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
207,
|
| 19 |
+
224,
|
| 20 |
+
787,
|
| 21 |
+
297
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
333,
|
| 32 |
+
535,
|
| 33 |
+
349
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Domain adaptation (DA) aims to alleviate the domain shift between source domain and target domain. Most DA methods require access to the source data, but often that is not possible (e.g. due to data privacy or intellectual property). In this paper, we address the challenging source-free domain adaptation (SFDA) problem, where the source pretrained model is adapted to the target domain in the absence of source data. Our method is based on the observation that target data, which might no longer align with the source domain classifier, still forms clear clusters. We capture this intrinsic structure by defining local affinity of the target data, and encourage label consistency among data with high local affinity. We observe that higher affinity should be assigned to reciprocal neighbors, and propose a self regularization loss to decrease the negative impact of noisy neighbors. Furthermore, to aggregate information with more context, we consider expanded neighborhoods with small affinity values. In the experimental results we verify that the inherent structure of the target features is an important source of information for domain adaptation. We demonstrate that this local structure can be efficiently captured by considering the local neighbors, the reciprocal neighbors, and the expanded neighborhood. Finally, we achieve state-of-the-art performance on several 2D image and 3D point cloud recognition datasets. Code is available in https://github.com/Albert0147/SFDA_neighbors. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
232,
|
| 42 |
+
366,
|
| 43 |
+
766,
|
| 44 |
+
627
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
657,
|
| 55 |
+
310,
|
| 56 |
+
675
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Most deep learning methods rely on training on large amount of labeled data, while they cannot generalize well to a related yet different domain. One research direction to address this issue is Domain Adaptation (DA), which aims to transfer learned knowledge from a source to a target domain. Most existing DA methods demand labeled source data during the adaptation period, however, it is often not practical that source data are always accessible, such as when applied on data with privacy or property restrictions. Therefore, recently, there have emerged a few works [16, 17, 20, 21] tackling a new challenging DA scenario where instead of source data only the source pretrained model is available for adapting, i.e., source-free domain adaptation (SFDA). Among these methods, USFDA [16] addresses universal DA [57] and SF [17] addresses open-set DA [36]. In both universal and open-set DA the label set is different for source and target domains. SHOT [21] and 3C-GAN [20] are for closed-set DA where source and target domains have the same categories. 3C-GAN [20] is based on target-style image generation with a conditional GAN, and SHOT [21] is based on mutual information maximization and pseudo labeling. Finally, BAIT [56] extends MCD [35] to the SFDA setting. However, these methods ignore the intrinsic neighborhood structure of the target data in feature space which can be very valuable to tackle SFDA. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
690,
|
| 66 |
+
825,
|
| 67 |
+
871
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "image",
|
| 73 |
+
"img_path": "images/343b4b429f7a34d25d762b61bf6977f13ba8eaac4be276860b5d2170fa2f18be.jpg",
|
| 74 |
+
"image_caption": [
|
| 75 |
+
"Figure 1: (a) t-SNE visualization of target features by source model. (b) Ratio of different type of nearest neighbor features of which: the predicted label is the same as the feature, K is the number of nearest neighbors. The features in (a) and (b) are on task $\\mathrm { A r } { } \\mathrm { R w }$ of Office-Home. (c) Illustration of our method. In the left shows we distinguish reciprocal and non-reciprocal neighbors. The adaptation is achieved by pushed the features towards reciprocal neighbors heavily. "
|
| 76 |
+
],
|
| 77 |
+
"image_footnote": [],
|
| 78 |
+
"bbox": [
|
| 79 |
+
209,
|
| 80 |
+
90,
|
| 81 |
+
787,
|
| 82 |
+
348
|
| 83 |
+
],
|
| 84 |
+
"page_idx": 1
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"type": "text",
|
| 88 |
+
"text": "",
|
| 89 |
+
"bbox": [
|
| 90 |
+
174,
|
| 91 |
+
449,
|
| 92 |
+
823,
|
| 93 |
+
477
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 1
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "In this paper, we focus on closed-set source-free domain adaptation. Our main observation is that current DA methods do not exploit the intrinsic neighborhood structure of the target data. We use this term to refer to the fact that, even though the target data might have shifted in the feature space (due to the covariance shift), target data of the same class is still expected to form a cluster in the embedding space. This can be implied to some degree from the t-SNE visualization of target features on the source model which suggests that significant cluster structure is preserved (see Fig. 1 (a)). This assumption is implicitly adopted by most DA methods, as instantiated by a recent DA work [42]. A well-established way to assess the structure of points in high-dimensional spaces is by considering the nearest neighbors of points, which are expected to belong to the same class. However, this assumption is not true for all points; the blue curve in Figure 1(b) shows that around $7 5 \\%$ of the nearest neighbors has the correct label. In this paper, we observe that this problem can be mitigated by considering reciprocal nearest neighbors (RNN); the reciprocal neighbors of a point have the point as their neighbor. Reciprocal neighbors have been studied before in different contexts [14, 31, 60]. The reason why reciprocal neighbors are more trustworthy is illustrated in Fig. 1(c). Fig. 1(b) shows the ratio of neighbors which have the correct prediction for different kinds of nearest neighbors. The curves show that reciprocal neighbors indeed have more chances to predict the true label than non-reciprocal nearest neighbors (nRNN). ",
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
484,
|
| 103 |
+
825,
|
| 104 |
+
718
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "The above observation and analysis motivate us to assign different weights to the supervision from nearest neighbors. Our method, called Neighborhood Reciprocity Clustering (NRC), achieves sourcefree domain adaptation by encouraging reciprocal neighbors to concord in their label prediction. In addition, we will also consider a weaker connection to the non-reciprocal neighbors. We define affinity values to describe the degree of connectivity between each data point and its neighbors, which is also utilized to encourage class-consistency between neighbors, and we propose to use a self-regularization to decrease the negative impact of potential noisy neighbors. Furthermore, inspired by recent graph based methods [1, 3, 61] which show that the higher order neighbors can provide relevant context, and also considering neighbors of neighbors is more likely to provide datapoints that are close on the data manifold [43]. Thus, to aggregate wider local information, we further retrieve the expanded neighbors, i.e, neighbor of the nearest neighbors, for auxiliary supervision. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
724,
|
| 114 |
+
825,
|
| 115 |
+
877
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Our contributions can be summarized as follows, to achieve source-free domain adaptation: (i) we explicitly exploit the fact that same-class data forms cluster in the target embedding space, we do this by considering the predictions of neighbors and reciprocal neighbors, (ii) we further show that considering an extended neighborhood of data points further improves results (iii) the experiments results on three 2D image datasets and one 3D point cloud dataset show that our method achieves state-of-the-art performance compared with related methods. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
883,
|
| 125 |
+
821,
|
| 126 |
+
911
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
90,
|
| 136 |
+
825,
|
| 137 |
+
147
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 2
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "2 Related Work ",
|
| 144 |
+
"text_level": 1,
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
170,
|
| 148 |
+
321,
|
| 149 |
+
186
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 2
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "Domain Adaptation. Most DA methods tackle domain shift by aligning the feature distributions. Early DA methods such as [23, 41, 45] adopt moment matching to align feature distributions. And in recent years, plenty of works have emerged that achieve alignment by adversarial training. DANN [7] formulates domain adaptation as an adversarial two-player game. The adversarial training of CDAN [24] is conditioned on several sources of information. DIRT-T [40] performs domain adversarial training with an added term that penalizes violations of the cluster assumption. Additionally, [18, 26, 35] adopts prediction diversity between multiple learnable classifiers to achieve local or category-level feature alignment between source and target domains. AFN [52] shows that the erratic discrimination of target features stems from much smaller norms than those found in the source features. SRDC [42] proposes to directly uncover the intrinsic target discrimination via discriminative clustering to achieve adaptation. More related, [27] resorts to K-means clustering for open-set adaptation while considering global structure. Our method instead only focuses on nearest neighbors (local structure) for source-free adaptation. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
203,
|
| 159 |
+
826,
|
| 160 |
+
383
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 2
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Source-free Domain Adaptation. Source-present methods need supervision from the source domain during adaptation. Recently, there are several methods investigating source-free domain adaptation. USFDA [16] and FS [17] explore source-free universal DA [57] and open-set DA [36], and they propose to synthesize extra training samples to make the decision boundary compact, thereby allowing to recognise the open classes. For closed-set DA setting. SHOT [21] proposes to fix the source classifier and match the target features to the fixed classifier by maximizing mutual information and a proposed pseudo label strategy which considers global structure. 3C-GAN [20] synthesizes labeled target-style training images based on the conditional GAN to provide supervision for adaptation. Finally, SFDA [22] is for segmentation based on synthesizing fake source samples. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
388,
|
| 170 |
+
825,
|
| 171 |
+
515
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 2
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "Graph Clustering. Our method shares some similarities with graph clustering work such as [38, 48, 54, 55] by utilizing neighborhood information. However, our methods are fundamentally different. Unlike those works which require labeled data to train the graph network for estimating the affinity, we instead adopt reciprocity to assign affinity. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
520,
|
| 181 |
+
825,
|
| 182 |
+
577
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "3 Method ",
|
| 189 |
+
"text_level": 1,
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
599,
|
| 193 |
+
271,
|
| 194 |
+
616
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Notation. We denote the labeled source domain data with $n _ { s }$ samples as $\\mathcal { D } _ { s } = \\{ ( x _ { i } ^ { s } , y _ { i } ^ { s } ) \\} _ { i = 1 } ^ { n _ { s } }$ , where $y _ { i } ^ { s }$ orresponding label of . Both domains have t $x _ { i } ^ { s }$ , andsame e unlabeled target domain data with classes (closed-set setting). Under the $n _ { t }$ samples asFDA setting $\\mathcal { D } _ { t } \\overset { \\vartriangle } { = } \\{ x _ { j } ^ { t } \\} _ { j = 1 } ^ { n _ { t } }$ $C$ $\\mathcal { D } _ { s }$ is only available for model pretraining. Our method is based on a neural network, which we split into two parts: a feature extractor $f$ , and a classifier $g$ . The feature output by the feature extractor is denoted as $z ( x ) = f \\left( x \\right)$ , the output of network is denoted as $p ( x ) = \\bar { \\delta } ( g ( \\dot { z } ) ) \\in \\mathcal { R } ^ { C }$ where $\\delta$ is the softmax function, for readability we will abandon the input and use $z , p$ in the following sections. ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
173,
|
| 203 |
+
632,
|
| 204 |
+
825,
|
| 205 |
+
732
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "Overview. We assume that the source pretrained model has already been trained. As discusses in the introduction, the target features output by the source model form clusters. We exploit this intrinsic structure of the target data for SFDA by considering the neighborhood information, and the adaptation is achieved with the following objective: ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
174,
|
| 214 |
+
738,
|
| 215 |
+
825,
|
| 216 |
+
794
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 2
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "equation",
|
| 222 |
+
"img_path": "images/f5201ec763543d11770c0d5cb15e97a623ee3202a252898dd2e123a078de00d7.jpg",
|
| 223 |
+
"text": "$$\n\\mathcal { L } = - \\frac { 1 } { n _ { t } } \\sum _ { x _ { i } \\in \\mathcal { D } _ { t } } \\sum _ { x _ { j } \\in \\mathrm { N e i g h } ( x _ { i } ) } \\frac { D _ { s i m } ( p _ { i } , p _ { j } ) } { D _ { d i s } ( x _ { i } , x _ { j } ) }\n$$",
|
| 224 |
+
"text_format": "latex",
|
| 225 |
+
"bbox": [
|
| 226 |
+
343,
|
| 227 |
+
803,
|
| 228 |
+
620,
|
| 229 |
+
844
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 2
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "where the $\\mathrm { { N e i g h } } ( x _ { i } )$ means the nearest neighbors of $x _ { i }$ , $D _ { s i m }$ computes the similarity between predictions, and $D _ { d i s }$ is a constant measuring the semantic distance (dissimilarity) between data. The principle behind the objective is to push the data towards their semantically close neighbors by encouraging similar predictions. In the next sections, we will define $D _ { s i m }$ and $D _ { d i s }$ . ",
|
| 236 |
+
"bbox": [
|
| 237 |
+
174,
|
| 238 |
+
854,
|
| 239 |
+
825,
|
| 240 |
+
911
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 2
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "text",
|
| 246 |
+
"text": "3.1 Encouraging Class-Consistency with Neighborhood Affinity ",
|
| 247 |
+
"text_level": 1,
|
| 248 |
+
"bbox": [
|
| 249 |
+
173,
|
| 250 |
+
90,
|
| 251 |
+
629,
|
| 252 |
+
106
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 3
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "To achieve adaptation without source data, we use the prediction of the nearest neighbor to encourage prediction consistency. While the target features from the source model are not necessarily totally intrinsic discriminative, meaning some neighbors belong to different class and will provide the wrong supervision. To decrease the potentially negative impact of those neighbors, we propose to weigh the supervision from neighbors according to the connectivity (semantic similarity). We define affinity values to signify the connectivity between the neighbor and the feature, which corresponds to the $\\frac { 1 } { D _ { d i s } }$ in Eq. 1 indicating the semantic similarity. ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
173,
|
| 261 |
+
116,
|
| 262 |
+
825,
|
| 263 |
+
215
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 3
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "To retrieve the nearest neighbors for batch training, similar to [33, 50, 62], we build two memory banks: $\\mathcal { F }$ stores all target features, and $s$ stores corresponding prediction scores: ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
173,
|
| 272 |
+
220,
|
| 273 |
+
823,
|
| 274 |
+
251
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 3
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "equation",
|
| 280 |
+
"img_path": "images/77d28a00bc4b339a6c125a9e814ebeed0f4f2af38733b940ab6aa2d9c7ee636a.jpg",
|
| 281 |
+
"text": "$$\n\\mathcal { F } = [ z _ { 1 } , z _ { 2 } , \\dotsc , z _ { n _ { t } } ] \\mathrm { a n d } \\ S = [ p _ { 1 } , p _ { 2 } , \\dotsc , p _ { n _ { t } } ]\n$$",
|
| 282 |
+
"text_format": "latex",
|
| 283 |
+
"bbox": [
|
| 284 |
+
326,
|
| 285 |
+
256,
|
| 286 |
+
638,
|
| 287 |
+
273
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 3
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "We use the cosine similarity for nearest neighbors retrieving. The difference between ours and [33, 50] lies in the fact that we utilize the memory bank to retrieve nearest neighbors while [33, 50] adopts the memory bank to compute the instance discrimination loss. Before every mini-batch training, we simply update the old items in the memory banks corresponding to current mini-batch. Note that updating the memory bank is only done to replace the old low-dimension vectors with new ones computed by the model, and does not require any additional computation. ",
|
| 294 |
+
"bbox": [
|
| 295 |
+
173,
|
| 296 |
+
279,
|
| 297 |
+
825,
|
| 298 |
+
363
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 3
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "We then use the prediction of the neighbors to supervise the training weighted by the affinity values, with the following objective adapted from Eq. 1: ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
171,
|
| 307 |
+
368,
|
| 308 |
+
823,
|
| 309 |
+
397
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 3
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "equation",
|
| 315 |
+
"img_path": "images/ba2c563d21377f4062e4a0eb8b3c9ea39a500ab7b58d34337af1aa5687d187a1.jpg",
|
| 316 |
+
"text": "$$\n\\mathcal { L } _ { \\mathcal { N } } = - \\frac { 1 } { n _ { t } } \\sum _ { i } \\sum _ { k \\in \\mathcal { N } _ { K } ^ { i } } A _ { i k } \\boldsymbol { S } _ { k } ^ { \\top } \\boldsymbol { p } _ { i }\n$$",
|
| 317 |
+
"text_format": "latex",
|
| 318 |
+
"bbox": [
|
| 319 |
+
375,
|
| 320 |
+
402,
|
| 321 |
+
588,
|
| 322 |
+
444
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 3
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "where we use the dot product to compute the similarity between predictions, corresponding to $D _ { s i m }$ in Eq.1, the $k$ is the index of the $k$ -th nearest neighbors of $z _ { i }$ , $\\scriptstyle { S _ { k } }$ is the $k$ -th item in memory bank $s$ , $A _ { i k }$ is the affinity value of $k$ -th nearest neighbors of feature $z _ { i }$ . Here the $\\mathcal { N } _ { K } ^ { i }$ is the index $\\mathrm { { \\dot { s e t } } } ^ { 2 }$ of the $K$ -nearest neighbors of feature $z _ { i }$ . Note that all neighbors are retrieved from the feature bank $\\mathcal { F }$ . With the affinity value as weight, this objective pushes the features to their neighbors with strong connectivity and to a lesser degree to those with weak connectivity. ",
|
| 329 |
+
"bbox": [
|
| 330 |
+
173,
|
| 331 |
+
449,
|
| 332 |
+
825,
|
| 333 |
+
535
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 3
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "To assign larger affinity values to semantic similar neighbors, we divide the nearest neighbors retrieved into two groups: reciprocal nearest neighbors (RNN) and non-reciprocal nearest neighbors (nRNN). The feature $z _ { j }$ is regarded as the RNN of the feature $z _ { i }$ if it meets the following condition: ",
|
| 340 |
+
"bbox": [
|
| 341 |
+
173,
|
| 342 |
+
539,
|
| 343 |
+
825,
|
| 344 |
+
582
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 3
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "equation",
|
| 350 |
+
"img_path": "images/a9d9b4a442e9d237d920ac30ca38baaa15d164bc7139d9d474453e1248ee9ec9.jpg",
|
| 351 |
+
"text": "$$\nj \\in \\mathcal { N } _ { K } ^ { i } \\wedge i \\in \\mathcal { N } _ { M } ^ { j }\n$$",
|
| 352 |
+
"text_format": "latex",
|
| 353 |
+
"bbox": [
|
| 354 |
+
418,
|
| 355 |
+
589,
|
| 356 |
+
547,
|
| 357 |
+
608
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 3
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "Other neighbors which do not meet the above condition are nRNN. Note that the normal definition of reciprocal nearest neighbors [31] applies $K = M$ , while in this paper $K$ and $M$ can be different. We find that reciprocal neighbors have a higher potential to belong to the same cluster as the feature (Fig. 1(b)). Thus, we assign a high affinity value to the RNN features. Specifically for feature $z _ { i }$ , the affinity value of its $j$ -th $\\mathrm { K }$ -nearest neighbor is defined as: ",
|
| 364 |
+
"bbox": [
|
| 365 |
+
173,
|
| 366 |
+
613,
|
| 367 |
+
825,
|
| 368 |
+
684
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 3
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "equation",
|
| 374 |
+
"img_path": "images/7c68533c93cb96b6505a8381ce377b48d20e35c00d1231df58593a8ccd6a27f2.jpg",
|
| 375 |
+
"text": "$$\nA _ { i , j } = { \\left\\{ \\begin{array} { l l } { 1 } & { { \\mathrm { i f ~ } } j \\in { \\mathcal { N } } _ { K } ^ { i } \\land i \\in { \\mathcal { N } } _ { M } ^ { j } } \\\\ { r } & { { \\mathrm { o t h e r w i s e . } } } \\end{array} \\right. }\n$$",
|
| 376 |
+
"text_format": "latex",
|
| 377 |
+
"bbox": [
|
| 378 |
+
374,
|
| 379 |
+
690,
|
| 380 |
+
589,
|
| 381 |
+
724
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 3
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "where $r$ is a hyperparameter. If not specified $r$ is set to 0.1. ",
|
| 388 |
+
"bbox": [
|
| 389 |
+
173,
|
| 390 |
+
729,
|
| 391 |
+
560,
|
| 392 |
+
744
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 3
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "To further reduce the potential impact of noisy neighbors in $\\mathcal { N } _ { K }$ , which belong to the different class but still are RNN, we propose a simply yet effective way dubbed self-regularization, that is, to not ignore the current prediction of ego feature: ",
|
| 399 |
+
"bbox": [
|
| 400 |
+
173,
|
| 401 |
+
751,
|
| 402 |
+
825,
|
| 403 |
+
792
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 3
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "equation",
|
| 409 |
+
"img_path": "images/06558638152092a6f3c523e045df68d43ae228dd6b46d434df06a6d7d21bf3ce.jpg",
|
| 410 |
+
"text": "$$\n\\mathcal { L } _ { s e l f } = - \\frac { 1 } { n _ { t } } \\sum _ { i } ^ { n _ { t } } S _ { i } ^ { \\top } p _ { i }\n$$",
|
| 411 |
+
"text_format": "latex",
|
| 412 |
+
"bbox": [
|
| 413 |
+
401,
|
| 414 |
+
799,
|
| 415 |
+
562,
|
| 416 |
+
839
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 3
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "text",
|
| 422 |
+
"text": "where $s _ { i }$ means the stored prediction in the memory bank, note this term is a constant vector and is identical to the $p _ { i }$ since we update the memory banks before the training, here the loss is only back-propagated for variable $p _ { i }$ . ",
|
| 423 |
+
"bbox": [
|
| 424 |
+
174,
|
| 425 |
+
845,
|
| 426 |
+
825,
|
| 427 |
+
888
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 3
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "Require: $\\mathcal { D } _ { s }$ (only for source model training), $\\mathcal { D } _ { t }$ ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
176,
|
| 436 |
+
111,
|
| 437 |
+
472,
|
| 438 |
+
123
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 4
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "1: Pre-train model on $\\mathcal { D } _ { s }$ \n2: Build feature bank $\\mathcal { F }$ and score bank $s$ for $\\mathcal { D } _ { t }$ \n3: while Adaptation do \n4: Sample batch $\\tau$ from $\\mathcal { D } _ { t }$ \n5: Update $\\mathcal { F }$ and $s$ corresponding to current batch $\\tau$ \n6: Retrieve nearest neighbors $\\mathcal { N }$ for each of $\\tau$ \n7: Compute affinity value $A$ \n8: Retrieve expanded neighborhoods $E$ for each of $\\mathcal { N }$ \n9: Compute loss and update the model \n10: end while ",
|
| 445 |
+
"bbox": [
|
| 446 |
+
178,
|
| 447 |
+
122,
|
| 448 |
+
524,
|
| 449 |
+
246
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 4
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": ". Eq.5 . Eq. 9 ",
|
| 456 |
+
"bbox": [
|
| 457 |
+
781,
|
| 458 |
+
199,
|
| 459 |
+
823,
|
| 460 |
+
212
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 4
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "text",
|
| 466 |
+
"text": "",
|
| 467 |
+
"bbox": [
|
| 468 |
+
779,
|
| 469 |
+
223,
|
| 470 |
+
823,
|
| 471 |
+
237
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 4
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "To avoid the degenerated solution [8, 39] where the model predicts all data as some specific classes (and does not predict other classes for any of the target data), we encourage the prediction to be balanced. We adopt the prediction diversity loss which is widely used in clustering [8, 9, 13] and also in several domain adaptation works [21, 39, 42]: ",
|
| 478 |
+
"bbox": [
|
| 479 |
+
173,
|
| 480 |
+
273,
|
| 481 |
+
825,
|
| 482 |
+
330
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 4
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "equation",
|
| 488 |
+
"img_path": "images/573d90daac2f84185a8ae91be8ed3864534da43c9506209ed0e2158432214e91.jpg",
|
| 489 |
+
"text": "$$\n\\mathcal { L } _ { d i v } = \\sum _ { c = 1 } ^ { C } \\mathrm { K L } ( \\bar { p } _ { c } | | q _ { c } ) , \\mathrm { w i t h } \\bar { p } _ { c } = \\frac { 1 } { n _ { t } } \\sum _ { i } p _ { i } ^ { ( c ) } , \\mathrm { a n d } q _ { \\{ c = 1 , . . , C \\} } = \\frac { 1 } { C }\n$$",
|
| 490 |
+
"text_format": "latex",
|
| 491 |
+
"bbox": [
|
| 492 |
+
256,
|
| 493 |
+
333,
|
| 494 |
+
709,
|
| 495 |
+
376
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 4
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "where the $p _ { i } ^ { ( c ) }$ is the score of the $c$ -th class and $\\bar { p } _ { c }$ is the empirical label distribution, it represents the predicted possibility of class $c$ and q is a uniform distribution. ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
174,
|
| 504 |
+
382,
|
| 505 |
+
820,
|
| 506 |
+
411
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 4
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "3.2 Expanded Neighborhood Affinity ",
|
| 513 |
+
"text_level": 1,
|
| 514 |
+
"bbox": [
|
| 515 |
+
176,
|
| 516 |
+
419,
|
| 517 |
+
444,
|
| 518 |
+
434
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 4
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "text",
|
| 524 |
+
"text": "As mentioned in Sec. 1, a simple way to achieve the aggregation of more information is by considering more nearest neighbors. However, a drawback is that larger neighborhoods are expected to contain more datapoint from multiple classes, defying the purpose of class consistency. A better way to include more target features is by considering the $M$ -nearest neighbor of each neighbor in $\\mathcal { N } _ { K }$ of $z _ { i }$ in Eq. 4, i.e., the expanded neighbors. These target features are expected to be closer on the target data manifold than the features that are included by considering a larger number of nearest neighbors [43]. The expanded neighbors of feature $z _ { i }$ are defined as $\\bar { E _ { M } } ( z _ { i } ) \\bar { = } \\mathcal { N } _ { M } ( z _ { j } ) \\forall j \\in \\mathcal { N } _ { K } ( z _ { i } \\bar { ) }$ , note that $E _ { M } ( z _ { i } )$ is still an index set and $i$ (ego feature) $\\not \\in E _ { M } ( z _ { i } )$ . We directly assign a small affinity value $r$ to those expanded neighbors, since they are further than nearest neighbors and may contain noise. We utilize the prediction of those expanded neighborhoods for training: ",
|
| 525 |
+
"bbox": [
|
| 526 |
+
173,
|
| 527 |
+
444,
|
| 528 |
+
826,
|
| 529 |
+
583
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 4
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "equation",
|
| 535 |
+
"img_path": "images/191bdd0d5b01784262feba9ccaf69858692f4d6b2b63d4147a304c98893c147e.jpg",
|
| 536 |
+
"text": "$$\n\\mathcal { L } _ { E } = - \\frac { 1 } { n _ { t } } \\sum _ { i } \\sum _ { k \\in \\mathcal { N } _ { K } ^ { i } } \\sum _ { m \\in E _ { M } ^ { k } } r \\mathcal { S } _ { m } ^ { \\top } p _ { i }\n$$",
|
| 537 |
+
"text_format": "latex",
|
| 538 |
+
"bbox": [
|
| 539 |
+
364,
|
| 540 |
+
585,
|
| 541 |
+
602,
|
| 542 |
+
627
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 4
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "where $E _ { M } ^ { k }$ contain the $M$ -nearest neighbors of neighbor $k$ in $\\mathcal { N } _ { K }$ ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
173,
|
| 551 |
+
631,
|
| 552 |
+
606,
|
| 553 |
+
646
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "Although the affinity values of all expanded neighbors are the same, it does not necessarily mean that they have equal importance. Taking a closer look at the expanded neighbors $E _ { M } ( z _ { i } )$ , some neighbors will show up more than once, for example $z _ { m }$ can be the nearest neighbor of both $z _ { h }$ and $z _ { j }$ where $h , j \\in \\mathcal N _ { K } ( \\bar { z } _ { i } )$ , and the nearest neighbors can also serve as expanded neighbor. It implies that those neighbors form compact cluster, and we posit that those duplicated expanded neighbors have potential to be semantically closer to the ego-feature $z _ { i }$ . Thus, we do not remove duplicated features in $E _ { M } ( z _ { i } )$ , as those can lead to actually larger affinity value for those expanded neighbors. This is one advantage of utilizing expanded neighbors instead of more nearest neighbors, we will verify the importance of maintaining the duplicated features in the experimental section. ",
|
| 560 |
+
"bbox": [
|
| 561 |
+
173,
|
| 562 |
+
651,
|
| 563 |
+
825,
|
| 564 |
+
777
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 4
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "Final objective. Our method, called Neighborhood Reciprocity Clustering (NRC), is illustrated in Algorithm. 1. The final objective for adaptation is: ",
|
| 571 |
+
"bbox": [
|
| 572 |
+
171,
|
| 573 |
+
782,
|
| 574 |
+
821,
|
| 575 |
+
810
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 4
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "equation",
|
| 581 |
+
"img_path": "images/ae8aa11a8013cac6ffb5c6ceca6f5aefe7cec77b25048817ebdc48852e90b837.jpg",
|
| 582 |
+
"text": "$$\n\\mathcal { L } = \\mathcal { L } _ { d i v } + \\mathcal { L } _ { \\mathcal { N } } + \\mathcal { L } _ { E } + \\mathcal { L } _ { s e l f } .\n$$",
|
| 583 |
+
"text_format": "latex",
|
| 584 |
+
"bbox": [
|
| 585 |
+
375,
|
| 586 |
+
814,
|
| 587 |
+
589,
|
| 588 |
+
832
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 4
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"text": "4 Experiments ",
|
| 595 |
+
"text_level": 1,
|
| 596 |
+
"bbox": [
|
| 597 |
+
174,
|
| 598 |
+
852,
|
| 599 |
+
312,
|
| 600 |
+
869
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 4
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "Datasets. We use three 2D image benchmark datasets and a 3D point cloud recognition dataset. \nOffice-31 [32] contains 3 domains (Amazon, Webcam, DSLR) with 31 classes and 4,652 images. ",
|
| 607 |
+
"bbox": [
|
| 608 |
+
173,
|
| 609 |
+
882,
|
| 610 |
+
825,
|
| 611 |
+
911
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 4
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "table",
|
| 617 |
+
"img_path": "images/d30542c42975f40b60b9b182d2926ef49a24c6a1af57e99813de1d1fb8002c91.jpg",
|
| 618 |
+
"table_caption": [
|
| 619 |
+
"Table 1: Accuracies $( \\% )$ on Office-31 for ResNet50-based methods. "
|
| 620 |
+
],
|
| 621 |
+
"table_footnote": [],
|
| 622 |
+
"table_body": "<table><tr><td>Method</td><td>SF</td><td>AβD</td><td>AβW</td><td>DβW</td><td>WβD</td><td>DβA</td><td>WβA</td><td>Avg</td></tr><tr><td>MCD [35]</td><td>X</td><td>92.2</td><td>88.6</td><td>98.5</td><td>100.0</td><td>69.5</td><td>69.7</td><td>86.5</td></tr><tr><td>CDAN [24]</td><td>X</td><td>92.9</td><td>94.1</td><td>98.6</td><td>100.0</td><td>71.0</td><td>69.3</td><td>87.7</td></tr><tr><td>MDD [59]</td><td>X</td><td>90.4</td><td>90.4</td><td>98.7</td><td>99.9</td><td>75.0</td><td>73.7</td><td>88.0</td></tr><tr><td>BNM[4]</td><td>X</td><td>90.3</td><td>91.5</td><td>98.5</td><td>100.0</td><td>70.9</td><td>71.6</td><td>87.1</td></tr><tr><td>DMRL [49]</td><td>X</td><td>93.4</td><td>90.8</td><td>99.0</td><td>100.0</td><td>73.0</td><td>71.2</td><td>87.9</td></tr><tr><td>BDG[53]</td><td>X</td><td>93.6</td><td>93.6</td><td>99.0</td><td>100.0</td><td>73.2</td><td>72.0</td><td>88.5</td></tr><tr><td>MCC[15]</td><td>X</td><td>95.6</td><td>95.4</td><td>98.6</td><td>100.0</td><td>72.6</td><td>73.9</td><td>89.4</td></tr><tr><td>SRDC[42]</td><td>X</td><td>95.8</td><td>95.7</td><td>99.2</td><td>100.0</td><td>76.7</td><td>77.1</td><td>90.8</td></tr><tr><td>RWOT[51]</td><td>X</td><td>94.5</td><td>95.1</td><td>99.5</td><td>100.0</td><td>77.5</td><td>77.9</td><td>90.8</td></tr><tr><td>RSDA-MSTN[10]</td><td>X</td><td>95.8</td><td>96.1</td><td>99.3</td><td>100.0</td><td>77.4</td><td>78.9</td><td>91.1</td></tr><tr><td>SHOT [21]</td><td>β</td><td>94.0</td><td>90.1</td><td>98.4</td><td>99.9</td><td>74.7</td><td>74.3</td><td>88.6</td></tr><tr><td>3C-GAN[20]</td><td>γ</td><td>92.7</td><td>93.7</td><td>98.5</td><td>99.8</td><td>75.3</td><td>77.8</td><td>89.6</td></tr><tr><td>NRC</td><td></td><td>96.0</td><td>90.8</td><td>99.0</td><td>100.0</td><td>75.3</td><td>75.0</td><td>89.4</td></tr></table>",
|
| 623 |
+
"bbox": [
|
| 624 |
+
209,
|
| 625 |
+
116,
|
| 626 |
+
789,
|
| 627 |
+
292
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 5
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "table",
|
| 633 |
+
"img_path": "images/0cdd1c9003321317d28d8b4559d03bcd25da016f57b307b23642e9f94c25ffba.jpg",
|
| 634 |
+
"table_caption": [
|
| 635 |
+
"Table 2: Accuracies $( \\% )$ on Office-Home for ResNet50-based methods. "
|
| 636 |
+
],
|
| 637 |
+
"table_footnote": [],
|
| 638 |
+
"table_body": "<table><tr><td>Method</td><td></td><td>SFAr->CIAr-βPrAr-βRwC1-βArCI-βPrCI-β>RwPr-βArPr-β>CIPr-βRwRw-βArRw-βCIRw-βPrAvg</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>MCD [35]</td><td>xxxxxxxxxx</td><td>48.9 68.3</td><td>74.6</td><td>61.3</td><td>67.6</td><td>68.8</td><td>57.0</td><td>47.1</td><td>75.1</td><td>69.1</td><td>52.2</td><td>79.6</td><td>64.1</td></tr><tr><td>CDAN [24]</td><td></td><td>50.7</td><td>70.6 76.0</td><td>57.6</td><td>70.0</td><td>70.0</td><td>57.4</td><td>50.9</td><td>77.3</td><td>70.9</td><td>56.7</td><td>81.6</td><td>65.8</td></tr><tr><td>SAFN [52]</td><td></td><td>52.0</td><td>71.7 76.3</td><td>64.2</td><td>69.9</td><td>71.9</td><td>63.7</td><td>51.4</td><td>77.1</td><td>70.9</td><td>57.1</td><td>81.5</td><td>67.3</td></tr><tr><td>Symnets [58]</td><td></td><td>47.7 72.9</td><td>78.5</td><td>64.2</td><td>71.3</td><td>74.2</td><td>64.2</td><td>48.8</td><td>79.5</td><td>74.5</td><td>52.6</td><td>82.7</td><td>67.6</td></tr><tr><td>MDD [59]</td><td></td><td>54.9 73.7</td><td>77.8</td><td>60.0</td><td>71.4</td><td>71.8</td><td>61.2</td><td>53.6</td><td>78.1</td><td>72.5</td><td>60.2</td><td>82.3</td><td>68.1</td></tr><tr><td>TADA [47]</td><td></td><td>53.1</td><td>72.3 77.2</td><td>59.1</td><td>71.2</td><td>72.1</td><td>59.7</td><td>53.1</td><td>78.4</td><td>72.4</td><td>60.0</td><td>82.9</td><td>67.6</td></tr><tr><td>BNM[4]</td><td></td><td>52.3</td><td>73.9 80.0</td><td>63.3</td><td>72.9</td><td>74.9</td><td>61.7</td><td>49.5</td><td>79.7</td><td>70.5</td><td>53.6</td><td>82.2</td><td>67.9</td></tr><tr><td>BDG [53]</td><td></td><td>51.5 73.4</td><td>78.7</td><td>65.3</td><td>71.5</td><td>73.7</td><td>65.1</td><td>49.7</td><td>81.1</td><td>74.6</td><td>55.1</td><td>84.8</td><td>68.7</td></tr><tr><td>SRDC [42]</td><td></td><td>52.3 76.3</td><td>81.0</td><td>69.5</td><td>76.2</td><td>78.0</td><td>68.7</td><td>53.8</td><td>81.7</td><td>76.3</td><td>57.1</td><td>85.0</td><td>71.3</td></tr><tr><td>RSDA-MSTN[10]</td><td></td><td>53.2</td><td>77.7 81.3</td><td>66.4</td><td>74.0</td><td>76.5</td><td>67.9</td><td>53.0</td><td>82.0</td><td>75.8</td><td>57.8</td><td>85.4</td><td>70.9</td></tr><tr><td>SHOT [21]</td><td></td><td>57.1</td><td>78.1 81.5</td><td>68.0</td><td>78.2</td><td>78.1</td><td>67.4</td><td>54.9</td><td>82.2</td><td>73.3</td><td>58.8</td><td>84.3</td><td>71.8</td></tr><tr><td>NRC</td><td>εΊ</td><td>57.7</td><td>80.3 82.0</td><td>68.1</td><td>79.8</td><td>78.6</td><td>65.3</td><td>56.4</td><td>83.0</td><td>71.0</td><td>58.6</td><td>85.6</td><td>72.2</td></tr></table>",
|
| 639 |
+
"bbox": [
|
| 640 |
+
178,
|
| 641 |
+
319,
|
| 642 |
+
823,
|
| 643 |
+
473
|
| 644 |
+
],
|
| 645 |
+
"page_idx": 5
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "text",
|
| 649 |
+
"text": "Office-Home [46] contains 4 domains (Real, Clipart, Art, Product) with 65 classes and a total of 15,500 images. VisDA [28] is a more challenging dataset, with 12-class synthetic-to-real object recognition tasks, its source domain contains of $1 5 2 \\mathrm { k }$ synthetic images while the target domain has 55k real object images. PointDA-10 [30] is the first 3D point cloud benchmark specifically designed for domain adaptation, it has 3 domains with 10 classes, denoted as ModelNet-10, ShapeNet-10 and ScanNet-10, containing approximately $2 7 . 7 \\mathrm { k }$ training and 5.1k testing images together. ",
|
| 650 |
+
"bbox": [
|
| 651 |
+
173,
|
| 652 |
+
493,
|
| 653 |
+
825,
|
| 654 |
+
577
|
| 655 |
+
],
|
| 656 |
+
"page_idx": 5
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "text",
|
| 660 |
+
"text": "Evaluation. We compare with existing source-present and source-free DA methods. All results are the average on three random runs. SF in the tables denotes source-free. ",
|
| 661 |
+
"bbox": [
|
| 662 |
+
174,
|
| 663 |
+
583,
|
| 664 |
+
821,
|
| 665 |
+
611
|
| 666 |
+
],
|
| 667 |
+
"page_idx": 5
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"type": "text",
|
| 671 |
+
"text": "Model details. For fair comparison with related methods, we also adopt the backbone of ResNet-50 [11] for Office-Home and ResNet-101 for VisDA, and PointNet [29] for PointDA10. Specifically, for 2D image datasets, we use the same network architecture as SHOT [21], i.e., the final part of the network is: fully connected layer β Batch Normalization [12] β fully connected layer with weight normalization [37]. And for PointDA-10 [29], we use the code released by the authors for fair comparison with PointDAN [29], and only use the backbone without any of their proposed modules. To train the source model, we also adopt label smoothing as SHOT does. We adopt SGD with momentum 0.9 and batch size of 64 for all 2D datasets, and Adam for PointDA-10. The learning rate for Office-31 and Office-Home is set to 1e-3 for all layers, except for the last two newly added fc layers, where we apply 1e-2. Learning rates are set 10 times smaller for VisDA. Learning rate for PointDA-10 is set to 1e-6. We train 30 epochs for Office-31 and OfficeHome while 15 epochs for VisDA, and 100 for PointDA-10. For the number of nearest neighbors (K) and expanded neighborhoods (M), we use 3,2 for Office-31, Office-Home and PointDA-10, since VisDA is much larger we set K, M to 5. Experiments are conducted on a TITAN Xp. ",
|
| 672 |
+
"bbox": [
|
| 673 |
+
173,
|
| 674 |
+
617,
|
| 675 |
+
826,
|
| 676 |
+
810
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 5
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "4.1 Results ",
|
| 683 |
+
"text_level": 1,
|
| 684 |
+
"bbox": [
|
| 685 |
+
174,
|
| 686 |
+
829,
|
| 687 |
+
263,
|
| 688 |
+
843
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 5
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "2D image datasets. We first evaluate the target performance of our method compared with existing DA and SFDA methods on three 2D image datasets. As shown in Table 1-3, the top part shows results for the source-present methods with access to source data during adaptation. The bottom shows results for the source-free DA methods. On Office-31, our method gets similar results compared with source-free method 3C-GAN and lower than source-present method RSDA-MSTN. And our method achieves state-of-the-art performance on Office-Home and VisDA, especially on VisDA our method surpasses the source-free method SHOT and source-present method RWOT by a wide margin $3 \\%$ and $1 . 9 \\%$ respectively). The reported results clearly demonstrate the efficiency of the proposed method for source-free domain adaptation. Interestingly, like already observed in the SHOT paper, source-free methods outperform methods that have access to source data during adaptation. ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
176,
|
| 697 |
+
856,
|
| 698 |
+
823,
|
| 699 |
+
911
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 5
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "table",
|
| 705 |
+
"img_path": "images/6a311b2328d40c53ef20883419217b4dd44bd0f693fb7b8a722536b379b6e88c.jpg",
|
| 706 |
+
"table_caption": [
|
| 707 |
+
"Table 3: Accuracies $( \\% )$ on VisDA-C (Synthesis Real) for ResNet101-based methods. "
|
| 708 |
+
],
|
| 709 |
+
"table_footnote": [],
|
| 710 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>SF</td><td rowspan=1 colspan=1>[SF|plane bcycl bus car horse knife mcycl person plant sktbrd train truck Per-class</td></tr><tr><td rowspan=5 colspan=1>ADR [34]CDAN [24]CDAN+BSP[2]SAFN [52]SWD[19]MDD [59]DMRL [49]MCC[15]STAR [26]RWOT[51]</td><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>94.248.584.0 72.990.174.292.6 72.580.861.882.2 28.8 73.5</td></tr><tr><td rowspan=1 colspan=1>X</td><td rowspan=1 colspan=1>85.266.983.0 50.884.274.988.1 74.583.476.081.9 38.0 73.9</td></tr><tr><td rowspan=3 colspan=1>Γ</td><td rowspan=2 colspan=1>61.081.0 57.5 89.080.690.1 77.084.277.982.1 38.4 75.9</td></tr><tr><td rowspan=1 colspan=1>92.493.690.8</td></tr><tr><td rowspan=1 colspan=1>93.661.384.1 70.6 94.179.091.8 79.689.955.689.0 24.4 76.190.882.5 81.7 70.5 91.769.586.3 77.587.463.685.6 29.2 76.4- 1 1 1 1 1 1 1 1 - 1 1 74.6- = = = = = = = = 75.588.780.3 80.5 71.5 90.1 93.285.0 71.689.473.8 85.0 36.9 78.895.084.084.6 73.0 91.691.885.9 78.494.484.787.0 42.2 82.795.180.383.7 90.092.468.092.5 82.287.978.490.4 68.2 84.0</td></tr><tr><td rowspan=3 colspan=1>3C-GAN [20]SHOT[21]NRC</td><td rowspan=1 colspan=1>β</td><td rowspan=1 colspan=1>94.873.468.8 74.893.195.488.6 84.7 89.184.783.5 48.1 81.6</td></tr><tr><td rowspan=1 colspan=1>β</td><td rowspan=1 colspan=1>94.388.580.1 57.3 93.194.980.7 80.391.589.186.3 58.2 82.9</td></tr><tr><td rowspan=1 colspan=1>β</td><td rowspan=1 colspan=1>96.891.382.4 62.4 96.295.986.1 80.694.894.190.4 59.7 85.9</td></tr></table>",
|
| 711 |
+
"bbox": [
|
| 712 |
+
179,
|
| 713 |
+
116,
|
| 714 |
+
818,
|
| 715 |
+
308
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 6
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "table",
|
| 721 |
+
"img_path": "images/332a783b5902ad7cfa38d86058bd58c58d53c04b7c617a4ab838c6053a0fe857.jpg",
|
| 722 |
+
"table_caption": [
|
| 723 |
+
"Table 4: Accuracies $( \\% )$ on PointDA-10. The results except ours are from PointDAN [30]. "
|
| 724 |
+
],
|
| 725 |
+
"table_footnote": [],
|
| 726 |
+
"table_body": "<table><tr><td colspan=\"2\"></td><td colspan=\"4\">|SF|Model-βShape Model-βScan Shape-βModel Shape->Scan ScanβModel Scan-βShape Avg</td></tr><tr><td>MMD [25]</td><td></td><td>57.5 27.9</td><td>40.7</td><td>26.7</td><td>47.3</td><td>54.8</td><td>42.5</td></tr><tr><td>DANN [6]</td><td>xxxxx</td><td>58.7 29.4</td><td>42.3</td><td>30.5</td><td>48.1</td><td>56.7</td><td>44.2</td></tr><tr><td>ADDA [44]</td><td></td><td>61.0 30.5</td><td>40.4</td><td>29.3</td><td>48.9</td><td>51.1</td><td>43.5</td></tr><tr><td>MCD [35]</td><td></td><td>62.0 31.0</td><td>41.4</td><td>31.3</td><td>46.8</td><td>59.3</td><td>45.3</td></tr><tr><td>PointDAN [30]</td><td></td><td>64.2 33.0</td><td>47.6</td><td>33.9</td><td>49.1</td><td>64.1</td><td>48.7</td></tr><tr><td>Source-only</td><td></td><td>43.1</td><td>17.3 40.0</td><td>15.0</td><td>33.9</td><td>47.1</td><td>32.7</td></tr><tr><td>NRC</td><td><</td><td>64.8</td><td>25.8 59.8</td><td>26.9</td><td>70.1</td><td>68.1</td><td>52.6</td></tr></table>",
|
| 727 |
+
"bbox": [
|
| 728 |
+
181,
|
| 729 |
+
329,
|
| 730 |
+
816,
|
| 731 |
+
435
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 6
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "",
|
| 738 |
+
"bbox": [
|
| 739 |
+
174,
|
| 740 |
+
454,
|
| 741 |
+
825,
|
| 742 |
+
537
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 6
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "3D point cloud dataset. We also report the result for the PointDA-10. As shown in Table 4, our method outperforms PointDA [30], which demands source data for adaptation and is specifically tailored for point cloud data with extra attention modules, by a large margin $(4 \\% )$ . ",
|
| 749 |
+
"bbox": [
|
| 750 |
+
174,
|
| 751 |
+
544,
|
| 752 |
+
825,
|
| 753 |
+
587
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 6
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "4.2 Analysis ",
|
| 760 |
+
"text_level": 1,
|
| 761 |
+
"bbox": [
|
| 762 |
+
174,
|
| 763 |
+
604,
|
| 764 |
+
271,
|
| 765 |
+
618
|
| 766 |
+
],
|
| 767 |
+
"page_idx": 6
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"type": "text",
|
| 771 |
+
"text": "Ablation study on neighbors $\\mathcal { N }$ , $E$ and affinity $A$ . In the first two tables of Table 5, we conduct the ablation study on Office-Home and VisDA. The 1-st row contains results from the source model and the 2-nd row from only training with the diversity loss $\\mathcal { L } _ { d i v }$ . From the remaining rows, several conclusions can be drawn. ",
|
| 772 |
+
"bbox": [
|
| 773 |
+
174,
|
| 774 |
+
630,
|
| 775 |
+
825,
|
| 776 |
+
685
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 6
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "First, the original supervision, which considers all neighbors equally can lead to a decent performance (67.1 on Office-Home). Second, considering higher affinity values for reciprocal neighbors leads to a large performance gain (69.1 on Office-Home). Last but not the least, the expanded neighborhoods can also be helpful, but only when combined with the affinity values $A$ (72.2 on Office-Home). Using expanded neighborhoods without affinity obtains bad performance (65,2 on Office-Home). We conjecture that those expanded neighborhoods, especially those neighbors of nRNN, may be noisy as discussed in Sec. 3.2. Removing the affinity $A$ means we treat all those neighbors equally, which is not reasonable. ",
|
| 783 |
+
"bbox": [
|
| 784 |
+
174,
|
| 785 |
+
691,
|
| 786 |
+
821,
|
| 787 |
+
734
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 6
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "table",
|
| 793 |
+
"img_path": "images/83cbcee8914a7e800eb1b8208228d67d3d85ccbbfa65a9ddc5cc8f8ec7844b0b.jpg",
|
| 794 |
+
"table_caption": [
|
| 795 |
+
"Table 5: Ablation study of different modules on Office-Home (left) and VisDA (middle), comparison between using expanded neighbors and larger nearest neighbors (right). "
|
| 796 |
+
],
|
| 797 |
+
"table_footnote": [],
|
| 798 |
+
"table_body": "<table><tr><td>Ldiv</td><td>LN</td><td>LE LEA</td><td>Avg</td><td>Ldiv</td><td>LN</td><td></td><td>LE LEA</td><td></td><td>Acc</td></tr><tr><td></td><td></td><td></td><td>59.5</td><td></td><td></td><td></td><td></td><td></td><td>44.6</td></tr><tr><td></td><td></td><td></td><td>62.1</td><td></td><td></td><td></td><td></td><td></td><td>47.8</td></tr><tr><td></td><td></td><td></td><td>67.1</td><td></td><td></td><td></td><td></td><td></td><td>74.6</td></tr><tr><td></td><td></td><td></td><td>β 69.1</td><td></td><td></td><td></td><td></td><td>β</td><td>81.5</td></tr><tr><td></td><td></td><td></td><td>65.2</td><td></td><td></td><td></td><td></td><td></td><td>61.2</td></tr><tr><td></td><td></td><td></td><td>72.2</td><td></td><td></td><td></td><td></td><td>οΌ</td><td>85.9</td></tr><tr><td></td><td></td><td></td><td>69.1 [</td><td></td><td></td><td></td><td></td><td></td><td>82.0</td></tr></table>",
|
| 799 |
+
"bbox": [
|
| 800 |
+
173,
|
| 801 |
+
795,
|
| 802 |
+
607,
|
| 803 |
+
910
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 6
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "table",
|
| 809 |
+
"img_path": "images/44438cf371738d92e8be5fefc0be79bb8f1bec382548c3366a0fe1e6aacd4bba.jpg",
|
| 810 |
+
"table_caption": [],
|
| 811 |
+
"table_footnote": [],
|
| 812 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Method&Dataset</td><td rowspan=1 colspan=1>Acc</td></tr><tr><td rowspan=1 colspan=1>VisDA (K=M=5)VisDA w/o E (K=30)</td><td rowspan=1 colspan=1>85.984.0</td></tr><tr><td rowspan=1 colspan=1>OH(K=3,M=2)OH w/o E (K=9)</td><td rowspan=1 colspan=1>72.269.5</td></tr></table>",
|
| 813 |
+
"bbox": [
|
| 814 |
+
633,
|
| 815 |
+
815,
|
| 816 |
+
831,
|
| 817 |
+
888
|
| 818 |
+
],
|
| 819 |
+
"page_idx": 6
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"type": "table",
|
| 823 |
+
"img_path": "images/84a0df3fa2021c0d9528204175fa9c78feacdd9407706d9d82014cc0299e96ee.jpg",
|
| 824 |
+
"table_caption": [
|
| 825 |
+
"Table 6: Runtime analysis on SHOT and our method. For SHOT, pseudo labels are computed at each epoch. $20 \\%$ , $10 \\%$ and $5 \\%$ denote the percentage of target features which are stored in the memory bank. "
|
| 826 |
+
],
|
| 827 |
+
"table_footnote": [],
|
| 828 |
+
"table_body": "<table><tr><td>VisDA</td><td colspan=\"2\">Runtime (s/epoch)Per-class (%)</td></tr><tr><td>SHOT</td><td>618.82</td><td>82.9</td></tr><tr><td>NRC</td><td>540.89</td><td>85.9</td></tr><tr><td>NRC(20%) 6formemorybank)</td><td>507.15</td><td>85.3</td></tr><tr><td>NRC(10% for memory bank)</td><td>499.49</td><td>85.2</td></tr><tr><td>NRC(5% for memory bank)</td><td>499.28</td><td>85.1</td></tr></table>",
|
| 829 |
+
"bbox": [
|
| 830 |
+
294,
|
| 831 |
+
141,
|
| 832 |
+
699,
|
| 833 |
+
228
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 7
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "image",
|
| 839 |
+
"img_path": "images/e1748829bba37f8f3b6d43d90dfdbea6be91a7b5cbb5e87bd18f0bf9bd522aa6.jpg",
|
| 840 |
+
"image_caption": [
|
| 841 |
+
"Figure 2: (Left and middle) Ablation study of $\\mathcal { L } _ { s e l f }$ on Office-Home and VisDA respectively. (Right) Performance with different $r$ on VisDA. "
|
| 842 |
+
],
|
| 843 |
+
"image_footnote": [],
|
| 844 |
+
"bbox": [
|
| 845 |
+
181,
|
| 846 |
+
247,
|
| 847 |
+
820,
|
| 848 |
+
381
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 7
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "text",
|
| 854 |
+
"text": "",
|
| 855 |
+
"bbox": [
|
| 856 |
+
174,
|
| 857 |
+
435,
|
| 858 |
+
825,
|
| 859 |
+
505
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 7
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "We also show that duplication in the expanded neighbors is important in the last row of Table 5, where the $\\mathcal { L } _ { \\hat { E } }$ means we remove duplication in Eq. 8. The results show that the performance will degrade significantly when removing them, implying that the duplicated expanded neighbors are indeed more important than others. ",
|
| 866 |
+
"bbox": [
|
| 867 |
+
174,
|
| 868 |
+
511,
|
| 869 |
+
825,
|
| 870 |
+
566
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 7
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "Next we ablate the importance of the expanded neighborhood in the right of Table5. We show that if we increase the number of datapoints considered for class-consistency by simply considering a larger K, we obtain significantly lower scores. We have chosen $K$ so that the total number of points considered is equal to our method (i.e. $5 { + } 5 ^ { * } 5 { = } 3 0$ and $3 + 3 ^ { * } 2 { = } 9 ,$ ). Considering neighbors of neighbors is more likely to provide datapoints that are close on the data manifold [43], and are therefore more likely to share the class label with the ego feature. ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
174,
|
| 879 |
+
573,
|
| 880 |
+
825,
|
| 881 |
+
656
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 7
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "Runtime analysis. Instead of storing all feature vectors in the memory bank, we follow the same memory bank setting as in [5] which is for nearest neighbor retrieval. The method only stores a fixed number of target features, we update the memory bank at the end of each iteration by taking the $n$ (batch size) embeddings from the current training iteration and concatenating them at the end of the memory bank, and discard the oldest $n$ elements from the memory bank. We report the results with this type of memory bank of different buffer size in the Table 6. The results show that indeed this could be an efficient way to reduce computation on very large datasets. ",
|
| 888 |
+
"bbox": [
|
| 889 |
+
174,
|
| 890 |
+
662,
|
| 891 |
+
825,
|
| 892 |
+
761
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 7
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "Ablation study on self-regularization. In the left and middle of Fig 2, we show the results with and without self-regularization $\\mathcal { L } _ { s e l f }$ . The $\\mathcal { L } _ { s e l f }$ can improve the performance when adopting only nearest neighbors $\\mathcal { N }$ or all neighbors $\\mathcal { N } + E$ . The results imply that self-regularization can effectively reduce the negative impact of the potential noisy neighbors, especially on the Office-Home dataset. ",
|
| 899 |
+
"bbox": [
|
| 900 |
+
174,
|
| 901 |
+
766,
|
| 902 |
+
825,
|
| 903 |
+
821
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 7
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "Sensitivity to hyperparameter. There are three hyperparameters in our method: K and M which are the number of nearest neighbors and expanded neighbors, $r$ which is the affinity value assigned to nRNN. We show the results with different $r$ in the right of Fig. 2. Note we keep the affinity of expanded neighbors as 0.1. $r = 1$ means no affinity. $r = - 1$ means treating supervision of nRNN feature as totally wrong, which is not always the case and will lead to quite lower result. $r = 0$ can also achieve good performance, signifying RNN can already work well. Results with $r = 0 . 1 / 0 . 1 5 / 0 . 2$ show that our method is not sensitive to the choice of a reasonable $r$ . Note in DA, there is no validation set for hyperparameter tuning, we show the results varying the number of neighbors in the right of Tab. 3, demonstrating the robustness to the choice of $K$ and $M$ . ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
174,
|
| 912 |
+
828,
|
| 913 |
+
825,
|
| 914 |
+
911
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 7
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "image",
|
| 920 |
+
"img_path": "images/52c51cde4275a75094e8c62c8d4fd77f70977cdffb6dcc8e5fcf1796cfa99e42.jpg",
|
| 921 |
+
"image_caption": [
|
| 922 |
+
"Figure 3: (Left) The three curves are (on VisDA): target accuracy (Blue), ratio of features which have 5-nearest neighbors all sharing the same predicted label (dashed Red), and ratio of features which have 5-nearest neighbors all sharing the same and correct predicted label (dashed Black). (Right) Ablation study on choice of K and M on VisDA. "
|
| 923 |
+
],
|
| 924 |
+
"image_footnote": [],
|
| 925 |
+
"bbox": [
|
| 926 |
+
205,
|
| 927 |
+
89,
|
| 928 |
+
785,
|
| 929 |
+
234
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 8
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "image",
|
| 935 |
+
"img_path": "images/fd8c9cc81f0a4968ed7f3124861b6deeb77a38f4952bd4cbfedaa30cfe215f98.jpg",
|
| 936 |
+
"image_caption": [
|
| 937 |
+
"Figure 4: (Left) Ratio of different type of nearest neighbor features which have the correct predicted label, before and after adaptation. (Right) Visualization of target features after adaptation. "
|
| 938 |
+
],
|
| 939 |
+
"image_footnote": [],
|
| 940 |
+
"bbox": [
|
| 941 |
+
189,
|
| 942 |
+
301,
|
| 943 |
+
795,
|
| 944 |
+
436
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 8
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "text",
|
| 950 |
+
"text": "",
|
| 951 |
+
"bbox": [
|
| 952 |
+
174,
|
| 953 |
+
488,
|
| 954 |
+
825,
|
| 955 |
+
530
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 8
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "Training curve. We show the evolution of several statistics during adaptation on VisDA in the left of Tab. 3. The blue curve is the target accuracy. The dashed red and black curves are the ratio of features which have 5-nearest neighbors all sharing the same (dashed Red), or the same and also correct (dashed Black) predicted label. The curves show that the target features are clustering during the training. Another interesting finding is that the curve βPer Sharedβ correlates with the accuracy curve, which might therefore be used to determine training convergence. ",
|
| 962 |
+
"bbox": [
|
| 963 |
+
174,
|
| 964 |
+
536,
|
| 965 |
+
825,
|
| 966 |
+
619
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 8
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "Accuracy of supervision from neighbors. We also show the accuracy of supervision from neighbors on task $\\mathrm { A r } { } \\mathrm { R w }$ of Office-Home in Fig. 4(left). It shows that after adaptation, the ratio of all types of neighbors having more correct predicted label, proving the effectiveness of the method. ",
|
| 973 |
+
"bbox": [
|
| 974 |
+
174,
|
| 975 |
+
626,
|
| 976 |
+
821,
|
| 977 |
+
667
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 8
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "t-SNE visualization. We show the t-SNE feature visualization on task $\\mathrm { A r } { } \\mathrm { R w }$ of target features before (Fig. 1(a)) and after (Fig. 4(right)) adaptation. After adaptation, the features are more compactly clustered. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
173,
|
| 986 |
+
674,
|
| 987 |
+
825,
|
| 988 |
+
717
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 8
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "5 Conclusions ",
|
| 995 |
+
"text_level": 1,
|
| 996 |
+
"bbox": [
|
| 997 |
+
174,
|
| 998 |
+
743,
|
| 999 |
+
307,
|
| 1000 |
+
761
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 8
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "We introduce a source-free domain adaptation (SFDA) method by uncovering the intrinsic target data structure. We propose to achieve the adaptation by encouraging label consistency among local target features. We differentiate between nearest neighbors, reciprocal neighbors and expanded neighborhood. Experimental results verify the importance of considering the local structure of the target features. Finally, our experimental results on both 2D image and 3D point cloud datasets testify the efficacy of our method. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
174,
|
| 1009 |
+
779,
|
| 1010 |
+
825,
|
| 1011 |
+
863
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 8
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Acknowledgement We acknowledge the support from Huawei Kirin Solution, and the project PID2019-104174GB-I00 (MINECO, Spain) and RTI2018-102285-A-I00 (MICINN, Spain), RamΓ³n y Cajal fellowship RYC2019-027020-I, and the CERCA Programme of Generalitat de Catalunya. ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
174,
|
| 1020 |
+
869,
|
| 1021 |
+
825,
|
| 1022 |
+
911
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 8
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "References ",
|
| 1029 |
+
"text_level": 1,
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
174,
|
| 1032 |
+
90,
|
| 1033 |
+
266,
|
| 1034 |
+
106
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 9
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "[1] Kristen M Altenburger and Johan Ugander. Monophily in social networks introduces similarity among friends-of-friends. Nature human behaviour, 2(4):284β290, 2018. \n[2] Xinyang Chen, Sinan Wang, Mingsheng Long, and Jianmin Wang. Transferability vs. discriminability: Batch spectral penalization for adversarial domain adaptation. In International Conference on Machine Learning, pages 1081β1090, 2019. \n[3] Alex Chin, Yatong Chen, Kristen M. Altenburger, and Johan Ugander. Decoupled smoothing on graphs. In The World Wide Web Conference, pages 263β272, 2019. \n[4] Shuhao Cui, Shuhui Wang, Junbao Zhuo, Liang Li, Qingming Huang, and Qi Tian. Towards discriminability and diversity: Batch nuclear-norm maximization under label insufficient situations. CVPR, 2020. \n[5] Debidatta Dwibedi, Yusuf Aytar, Jonathan Tompson, Pierre Sermanet, and Andrew Zisserman. With a little help from my friends: Nearest-neighbor contrastive learning of visual representations. ICCV, 2021. \n[6] Yaroslav Ganin and Victor Lempitsky. Unsupervised domain adaptation by backpropagation. arXiv preprint arXiv:1409.7495, 2014. \n[7] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, FranΓ§ois Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. The Journal of Machine Learning Research, 17(1):2096β2030, 2016. \n[8] Kamran Ghasedi Dizaji, Amirhossein Herandi, Cheng Deng, Weidong Cai, and Heng Huang. Deep clustering via joint convolutional autoencoder embedding and relative entropy minimization. In Proceedings of the IEEE international conference on computer vision, pages 5736β5745, 2017. \n[9] Ryan Gomes, Andreas Krause, and Pietro Perona. Discriminative clustering by regularized information maximization. 2010. \n[10] Xiang Gu, Jian Sun, and Zongben Xu. Spherical space domain adaptation with robust pseudo-label loss. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9101β9110, 2020. \n[11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770β778, 2016. \n[12] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. \n[13] Mohammed Jabi, Marco Pedersoli, Amar Mitiche, and Ismail Ben Ayed. Deep clustering: On the link between discriminative models and k-means. IEEE transactions on pattern analysis and machine intelligence, 2019. \n[14] Herve Jegou, Hedi Harzallah, and Cordelia Schmid. A contextual dissimilarity measure for accurate and efficient image search. In 2007 IEEE Conference on Computer Vision and Pattern Recognition, pages 1β8. IEEE, 2007. \n[15] Ying Jin, Ximei Wang, Mingsheng Long, and Jianmin Wang. Minimum class confusion for versatile domain adaptation. ECCV, 2020. \n[16] Jogendra Nath Kundu, Naveen Venkat, and R Venkatesh Babu. Universal source-free domain adaptation. CVPR, 2020. \n[17] Jogendra Nath Kundu, Naveen Venkat, Ambareesh Revanur, R Venkatesh Babu, et al. Towards inheritable models for open-set domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12376β12385, 2020. \n[18] Chen-Yu Lee, Tanmay Batra, Mohammad Haris Baig, and Daniel Ulbricht. Sliced wasserstein discrepancy for unsupervised domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. \n[19] Chen-Yu Lee, Tanmay Batra, Mohammad Haris Baig, and Daniel Ulbricht. Sliced wasserstein discrepancy for unsupervised domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 10285β10295, 2019. \n[20] Rui Li, Qianfen Jiao, Wenming Cao, Hau-San Wong, and Si Wu. Model adaptation: Unsupervised domain adaptation without source data. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9641β9650, 2020. \n[21] Jian Liang, Dapeng Hu, and Jiashi Feng. Do we really need to access the source data? source hypothesis transfer for unsupervised domain adaptation. ICML, 2020. \n[22] Yuang Liu, Wei Zhang, and Jun Wang. Source-free domain adaptation for semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1215β1224, 2021. \n[23] Mingsheng Long, Yue Cao, Jianmin Wang, and Michael I Jordan. Learning transferable features with deep adaptation networks. ICML, 2015. \n[24] Mingsheng Long, Zhangjie Cao, Jianmin Wang, and Michael I Jordan. Conditional adversarial domain adaptation. In Advances in Neural Information Processing Systems, pages 1647β1657, 2018. \n[25] Mingsheng Long, Jianmin Wang, Guiguang Ding, Jiaguang Sun, and Philip S Yu. Transfer feature learning with joint distribution adaptation. In Proceedings of the IEEE international conference on computer vision, pages 2200β2207, 2013. \n[26] Zhihe Lu, Yongxin Yang, Xiatian Zhu, Cong Liu, Yi-Zhe Song, and Tao Xiang. Stochastic classifiers for unsupervised domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9111β9120, 2020. \n[27] Yingwei Pan, Ting Yao, Yehao Li, Chong-Wah Ngo, and Tao Mei. Exploring category-agnostic clusters for open-set domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13867β13875, 2020. \n[28] Xingchao Peng, Ben Usman, Neela Kaushik, Judy Hoffman, Dequan Wang, and Kate Saenko. Visda: The visual domain adaptation challenge. arXiv preprint arXiv:1710.06924, 2017. \n[29] Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 652β660, 2017. \n[30] Can Qin, Haoxuan You, Lichen Wang, C-C Jay Kuo, and Yun Fu. Pointdan: A multi-scale 3d domain adaption network for point cloud representation. Advances in Neural Information Processing Systems, 32:7192β7203, 2019. \n[31] Danfeng Qin, Stephan Gammeter, Lukas Bossard, Till Quack, and Luc Van Gool. Hello neighbor: Accurate object retrieval with k-reciprocal nearest neighbors. In CVPR 2011, pages 777β784. IEEE, 2011. \n[32] Kate Saenko, Brian Kulis, Mario Fritz, and Trevor Darrell. Adapting visual category models to new domains. In European conference on computer vision, pages 213β226. Springer, 2010. \n[33] Kuniaki Saito, Donghyun Kim, Stan Sclaroff, and Kate Saenko. Universal domain adaptation through self supervision. Advances in Neural Information Processing Systems, 33, 2020. \n[34] Kuniaki Saito, Yoshitaka Ushiku, Tatsuya Harada, and Kate Saenko. Adversarial dropout regularization. ICLR, 2018. \n[35] Kuniaki Saito, Kohei Watanabe, Yoshitaka Ushiku, and Tatsuya Harada. Maximum classifier discrepancy for unsupervised domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3723β3732, 2018. \n[36] Kuniaki Saito, Shohei Yamamoto, Yoshitaka Ushiku, and Tatsuya Harada. Open set domain adaptation by backpropagation. In Proceedings of the European Conference on Computer Vision (ECCV), pages 153β168, 2018. \n[37] Tim Salimans and Diederik P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. arXiv preprint arXiv:1602.07868, 2016. \n[38] Saquib Sarfraz, Vivek Sharma, and Rainer Stiefelhagen. Efficient parameter-free clustering using first neighbor relations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8934β8943, 2019. \n[39] Yuan Shi and Fei Sha. Information-theoretical learning of discriminative clusters for unsupervised domain adaptation. In Proceedings of the 29th International Coference on International Conference on Machine Learning, pages 1275β1282, 2012. \n[40] Rui Shu, Hung H Bui, Hirokazu Narui, and Stefano Ermon. A dirt-t approach to unsupervised domain adaptation. ICLR, 2018. \n[41] Baochen Sun, Jiashi Feng, and Kate Saenko. Return of frustratingly easy domain adaptation. In Thirtieth AAAI Conference on Artificial Intelligence, 2016. \n[42] Hui Tang, Ke Chen, and Kui Jia. Unsupervised domain adaptation via structurally regularized deep clustering. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8725β8735, 2020. \n[43] Joshua B Tenenbaum, Vin De Silva, and John C Langford. A global geometric framework for nonlinear dimensionality reduction. science, 290(5500):2319β2323, 2000. \n[44] Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. Adversarial discriminative domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7167β7176, 2017. \n[45] Eric Tzeng, Judy Hoffman, Ning Zhang, Kate Saenko, and Trevor Darrell. Deep domain confusion: Maximizing for domain invariance. arXiv preprint arXiv:1412.3474, 2014. \n[46] Hemanth Venkateswara, Jose Eusebio, Shayok Chakraborty, and Sethuraman Panchanathan. Deep hashing network for unsupervised domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5018β5027, 2017. \n[47] Ximei Wang, Liang Li, Weirui Ye, Mingsheng Long, and Jianmin Wang. Transferable attention for domain adaptation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 5345β5352, 2019. \n[48] Zhongdao Wang, Liang Zheng, Yali Li, and Shengjin Wang. Linkage based face clustering via graph convolution network. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1117β1125, 2019. \n[49] Yuan Wu, Diana Inkpen, and Ahmed El-Roby. Dual mixup regularized learning for adversarial domain adaptation. ECCV, 2020. \n[50] Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via nonparametric instance discrimination. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3733β3742, 2018. \n[51] Renjun Xu, Pelen Liu, Liyan Wang, Chao Chen, and Jindong Wang. Reliable weighted optimal transport for unsupervised domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4394β4403, 2020. \n[52] Ruijia Xu, Guanbin Li, Jihan Yang, and Liang Lin. Larger norm more transferable: An adaptive feature norm approach for unsupervised domain adaptation. In The IEEE International Conference on Computer Vision (ICCV), October 2019. \n[53] Guanglei Yang, Haifeng Xia, Mingli Ding, and Zhengming Ding. Bi-directional generation for unsupervised domain adaptation. In AAAI, pages 6615β6622, 2020. \n[54] Lei Yang, Dapeng Chen, Xiaohang Zhan, Rui Zhao, Chen Change Loy, and Dahua Lin. Learning to cluster faces via confidence and connectivity estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13369β13378, 2020. \n[55] Lei Yang, Xiaohang Zhan, Dapeng Chen, Junjie Yan, Chen Change Loy, and Dahua Lin. Learning to cluster faces on an affinity graph. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2298β2306, 2019. \n[56] Shiqi Yang, Yaxing Wang, Joost van de Weijer, Luis Herranz, and Shangling Jui. Unsupervised domain adaptation without source data by casting a bait. arXiv preprint arXiv:2010.12427, 2020. \n[57] Kaichao You, Mingsheng Long, Zhangjie Cao, Jianmin Wang, and Michael I Jordan. Universal domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2720β2729, 2019. \n[58] Yabin Zhang, Hui Tang, Kui Jia, and Mingkui Tan. Domain-symmetric networks for adversarial domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5031β5040, 2019. \n[59] Yuchen Zhang, Tianle Liu, Mingsheng Long, and Michael Jordan. Bridging theory and algorithm for domain adaptation. In International Conference on Machine Learning, pages 7404β7413, 2019. \n[60] Zhun Zhong, Liang Zheng, Donglin Cao, and Shaozi Li. Re-ranking person re-identification with kreciprocal encoding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1318β1327, 2017. \n[61] Jiong Zhu, Yujun Yan, Lingxiao Zhao, Mark Heimann, Leman Akoglu, and Danai Koutra. Beyond homophily in graph neural networks: Current limitations and effective designs. Advances in Neural Information Processing Systems, 33, 2020. \n[62] Chengxu Zhuang, Alex Lin Zhai, and Daniel Yamins. Local aggregation for unsupervised learning of visual embeddings. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 6002β6012, 2019. ",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
171,
|
| 1043 |
+
109,
|
| 1044 |
+
828,
|
| 1045 |
+
914
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 9
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
171,
|
| 1054 |
+
54,
|
| 1055 |
+
828,
|
| 1056 |
+
917
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 10
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
171,
|
| 1065 |
+
92,
|
| 1066 |
+
826,
|
| 1067 |
+
763
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 11
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "Checklist ",
|
| 1074 |
+
"text_level": 1,
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
174,
|
| 1077 |
+
777,
|
| 1078 |
+
254,
|
| 1079 |
+
794
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 11
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "1. For all authors... ",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
214,
|
| 1088 |
+
804,
|
| 1089 |
+
339,
|
| 1090 |
+
818
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 11
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paperβs contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [No] \n(c) Did you discuss any potential negative societal impacts of your work? [No] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
238,
|
| 1099 |
+
821,
|
| 1100 |
+
825,
|
| 1101 |
+
912
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 11
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "2. If you are including theoretical results... ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
214,
|
| 1110 |
+
92,
|
| 1111 |
+
493,
|
| 1112 |
+
106
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 12
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
238,
|
| 1121 |
+
109,
|
| 1122 |
+
738,
|
| 1123 |
+
141
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 12
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "3. If you ran experiments... ",
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
212,
|
| 1132 |
+
145,
|
| 1133 |
+
393,
|
| 1134 |
+
160
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 12
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "text",
|
| 1140 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] We attach the code in the supplemental material. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] As in the model details in Sec.4 \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] All main results are average over three running with random seeds. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] ",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
238,
|
| 1143 |
+
165,
|
| 1144 |
+
825,
|
| 1145 |
+
310
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 12
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "text",
|
| 1151 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
222,
|
| 1154 |
+
314,
|
| 1155 |
+
823,
|
| 1156 |
+
329
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 12
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] \n(b) Did you mention the license of the assets? [No] \n(c) Did you include any new assets either in the supplemental material or as a URL? [No] \n(d) Did you discuss whether and how consent was obtained from people whose data youβre using/curating? [No] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [No] ",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
238,
|
| 1165 |
+
333,
|
| 1166 |
+
823,
|
| 1167 |
+
440
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 12
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
214,
|
| 1176 |
+
444,
|
| 1177 |
+
705,
|
| 1178 |
+
459
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 12
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
238,
|
| 1187 |
+
463,
|
| 1188 |
+
825,
|
| 1189 |
+
553
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 12
|
| 1192 |
+
}
|
| 1193 |
+
]
|
parse/train/yhjpeuWepoj/yhjpeuWepoj_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/yhjpeuWepoj/yhjpeuWepoj_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|