Title: FINDING A JACK-OF-ALL-TRADES: AN EXAMINATION OF SEMI-SUPERVISED LEARNING IN READING COMPREHENSION

Abstract: Deep learning has proven useful on many NLP tasks including reading comprehension. However, it requires large amounts of training data which are not available in some domains of application. Hence we examine the possibility of using data-rich domains to pre-train models and then apply them in domains where training data are harder to get. Specifically, we train a neural-network-based model on two context-question-answer datasets, the BookTest and CNN/Daily Mail, and we monitor transfer to subsets of bAbI, a set of artificial tasks designed to test specific reasoning abilities, and of SQuAD, a question-answering dataset which is much closer to real-world applications. Our experiments show very limited transfer if the model is not shown any training examples from the target domain however the results are encouraging if the model is shown at least a few target-domain examples. Furthermore we show that the effect of pre-training is not limited to word embeddings.

1. INTRODUCTION:

Machine intelligence has had some notable successes, however often in narrow domains which are sometimes of little practical use to humans -for instance games like chess (Campbell et al., 2002) or Go (Silver et al., 2016) . If we aimed to build a general AI that would be able to efficiently assist humans in a wide range of settings, we would want it to have a much larger set of skills -among them would be an ability to understand human language, to perform common-sense reasoning and to be able to generalize its abilities to new situations like humans do.

If we want to achieve this goal through Machine Learning, we need data to learn from. A lot of data if the task at hand is complex -which is the case for many useful tasks. One way to achieve wide applicability would be to provide training data for each specific task we would like the machine to perform. However it is unrealistic to obtain a sufficient amount of training data for some domains -it may for instance require expensive human annotation or all domains of application may be difficult to predict in advance -while the amount of training data in other domains is practically unlimited, (e.g. in language modelling or Cloze-style question answering).

The way to bridge this gap -and to achieve the aforementioned adaptability -is transfer learning (Pan & Yang, 2010) and closely related semi-supervised learning (Zhu & Goldberg, 2009 ) which allow the system to acquire a set of skills on domains where data are abundant and then use these skills to succeed on previously unseen domains. Despite how important generalization is for general AI, a lot of research keeps focusing on solving narrow tasks.

In this paper we would like to examine transfer of learnt skills and knowledge within the domain of text comprehension, a field that has lately attracted a lot of attention within the NLP community (Hermann et al., 2015; Hill et al., 2015; Kobayashi et al., 2016; Kadlec et al., 2016b; Chen et al., 2016; Sordoni et al., 2016; Dhingra et al., 2016; Trischler et al., 2016; Weissenborn, 2016; Cui et al., 2016b; a; Li et al., 2016; Shen et al., 2016) . Specifically, we would like to address the following research questions:

1. Whether we could train models on natural-language tasks where data are abundant and transfer the learnt skills to tasks where in-domain training data may be difficult to obtain. We will first look into what reasoning abilities a model learns from two large-scale readingcomprehension datasets using artificial tasks, and then check whether it can transfer its skills to real world tasks. Spoiler: both these transfers are very poor if we allow no training at all on the target task.

2. Whether pre-training on large-scale datasets does help if we allow the model to train on a small sample of examples from the target tasks. Here the results are much more positive.

3. Finally we examine whether the benefits of pre-training are concentrated in any particular part of the model -namely the word-embedding part or the context encoder (the reasoning part). It turns out that pre-training is useful for both components.

Although our results do not improve current state of the art in any of the studied tasks, they show a clear positive effect of large-dataset pre-training on the performance of our baseline machine-learning model. Previous studies of transfer learning and semi-supervised learning in NLP focused on text classification (Dai & Le, 2015; Mou et al., 2016) and various parsing tasks (Collobert et al., 2011; Hashimoto et al., 2016) . To our knowledge this work is the first study of transfer learning in reading comprehension, and we hope it will stimulate further work in this important area.

We will first briefly introduce the datasets we will be using on the pre-training and target sides, then our baseline model and afterwards in turn describe the method and results of each of the three experiments.

2. DATASETS 2.1 PRE-TRAINING DATASETS:

We have mentioned that for the model pre-training we would want to use a task where training data are abundant. An example of such task is context-dependent cloze-style-question answering since the training data for this task can be generated automatically from a suitable corpus. We will use two such pre-training datasets in our experiments: the BookTest (Bajgar et al., 2016) and the CNN/Daily Mail (CNN/DM) news dataset (Hermann et al., 2015) .

The task associated with both datasets is to answer a cloze-style question (i.e. fill in a blank in a sentence) the answer to which needs to be inferred from a context document provided with the question.

2.1.1. BOOKTEST:

In the BookTest dataset, the context document is formed from 20 consecutive sentences from a book. The question is then formed by omitting a common noun or a named entity from the subsequent 21 st sentence. Among datasets of this kind, the BookTest is among the largest with more than 14 million training examples coming from 3555 copyright-free books avalable thanks to Project Gutenberg.

2.1.2. CNN/DAILY MAIL:

In the CNN/DM dataset the context document is formed from a news article while the cloze-style question is formed by removing a named entity from one of the short summary sentences which often appear at the top of the article.

To stop the model from using world knowledge from outside the context article (and hence truly test the comprehension of the article), all named entities were replaced by anonymous tags, which are further shuffled for each example. This may make the comprehension more difficult; however, since the answer is always one of the anonymized entities, it also reduces the number of possible answers making guessing easier.

2.2. TARGET DATASETS:



2.2.1. BABI:

The first target dataset are the bAbI tasks (Weston et al., 2016 ) -a set of artificial tasks each of which is designed to test a specific kind of reasoning. This toy dataset will allow us to observe what particular skills the model may be learning from each of the three training datasets.

For our experiments we will be using an architecture designed to select one word from the context document as the answer. Hence we have selected Tasks 1, 2, 3, 4, 5, 11, 12, 13, 14 and 16 which fulfill this requirement and added task 15 which required a slight modification. Furthermore because both pre-training datasets are cloze-style we converted also the bAbI task questions into cloze style (e.g. "Where is John?" to "John is in the XXXXX.").

For the models pre-trained on CNN/DM we also anonymized the tasks in a way similar to the pre-training dataset -i.e. we replaced all names of characters and also all words that can appear as answers for the given task by anonymous tags in the style of CNN/DM. This gives even models that have not seen any training examples from the target domain a chance to answer the questions.

Full details about these alterations can be found in Appendix A.

2.2.2. SQUAD:

Secondly, we will look on transfer to the SQuAD dataset (Rajpurkar et al., 2016) ; here the associated task may be already useful in the real world. Although cloze-style questions have the huge advantage in the possibility of being automatically generated from a suitable corpus -the path taken by CNN/DM and the BookTest -in practice humans would use a proper question, not its cloze-style substitute. This brings us to the need of transfer from the data-rich cloze-style training to the domain of proper questions where data are much scarcer due to the necessary human annotation.

The SQuAD dataset is a great target dataset to use for this. As opposed to the bAbI tasks, the goal of this dataset is actually a problem whose solving would be useful to humans -answering natural questions based on an natural language encyclopedic knowledge base.

For our experiments we selected only a subset of the 

3. MACHINE LEARNING MODEL: AS READER:

We perform our experiments using the Attention Sum Reader (AS Reader) (Kadlec et al., 2016b) model. The AS Reader is simple to implement while it achieves strong performance on several text comprehension tasks (Kadlec et al., 2016b; Bajgar et al., 2016; Chu et al., 2016) . Since the AS Reader is a building block of many recent text-comprehension models (Trischler et al., 2016; Sordoni et al., 2016; Dhingra et al., 2016; Cui et al., 2016b; a; Shen et al., 2016; Munkhdalai & Yu, 2016) it is a good representative of current research in this field.

A high level structure of the AS Reader is shown in Figure 1 . The words from the document and the question are first converted into vector embeddings using a look-up matrix. The document is then read by a bidirectional Gated Recurrent Unit (GRU) network (Cho et al., 2014) . A concatenation of the hidden states of the forward and backward GRUs at each word is then used as a contextual embedding of this word, intuitively representing the context in which the word is appearing. We can also understand it as representing the set of questions to which this word may be an answer.

Similarly the question is read by a bidirectional GRU but in this case only the final hidden states are concatenated to form the question embedding.

The attention over each word in the context is then calculated as the dot product of its contextual embedding with the question embedding. This attention is then normalized by the softmax function and summed across all occurrences of each answer candidate. The candidate with most accumulated attention is selected as the final answer.

For a more detailed description of the model including equations check Kadlec et al. (2016b) . 

4. EXPERIMENTS: TRANSFER LEARNING IN TEXT COMPREHENSION:

Now let us turn in more detail to the three kinds of experiments that we performed.

4.1. PRE-TRAINED WITHOUT TARGET ADJUSTMENT:

In the first experiment we tested how a model trained on one of the large-scale pre-training datasets performs on the bAbI tasks without any opportunity to train on bAbI. Since the BookTest and CNN/DM tasks involve only cloze-style questions, we can't expect a model trained on them to answer natural ?-style questions. Hence we did not study the transfer to SQuAD in this case, only the transfer to the (cloze-converted) bAbI tasks.

4.1.1. METHOD:

First we tested how the AS Reader architecture (Kadlec et al., 2016b) can handle the tasks if trained directly on the bAbI training data for each task. Then we tested the degree of transfer from the BookTest and CNN/DM data to the 11 selected bAbI tasks.

In the first part of the experiment we trained a separate instance of the AS Reader on the 10,000example version of the bAbI training data for each of the 11 tasks (for more details see Appendix B.1). On 8 of them the architecture was able to learn the task with accuracy at least 95% 1 (results for each task can be found in Table 4 in Appendix C). Hence if given appropriate training the AS Reader is capable of the reasoning needed to solve most of the selected bAbI tasks. Now when we know that the AS Reader is powerful enough to learn the target tasks we can turn to transfer from the two large-scale datasets.

The main part of this first experiment was then straightforward: we pre-trained multiple models on the BookTest and CNN/DM datasets and then simply evaluated them on the test datasets of the 11 selected bAbI tasks.

4.1.2. RESULTS:

Table 1 summarizes the results of this experiment. Both the models trained on the BookTest and those trained on the CNN/DM dataset perform quite poorly on bAbI and achieve much lower accuracy than 1 It should be noted that there are several machine learning models that perform better than the AS Reader in the 10k weakly supervised setting, e.g. (Sukhbaatar et al., 2015; Xiong et al., 2016; Graves et al., 2016) , however they often need significant fine-tuning. On the other hand we trained plain AS Reader model without any modifications. Hyperparameter and feature fine-tuning could probably further increase its performance on individual tasks however it goes directly against the idea of generality that is at the heart of this work. For comparison with state of the art we include results of DMN+ (Xiong et al., 2016) in Table 1 which had the best average performance over the original 20 tasks.

Table 1 : The mean performance across 11 bAbI tasks. The first two columns show a random baseline2 and a baseline that selects the most frequent word from the context which also appears as an answer in the training data for the task. The following three columns show performance of the AS Reader trained on different datasets, the last column shows the results of DMN+ (Xiong et al., 2016) the models trained directly on each individual bAbI task. However there is some transfer between the tasks since the AS Reader trained on either the BookTest or CNN/DM outperforms a random baseline 2 and even an improved baseline which selects the most frequent word from the context that also appears as an answer in the training data for this task.

The results also show that the models trained on CNN/DM perform somewhat better on most tasks than the BookTest models. This may be due to the fact that bAbI tasks generally require the model to summarize information from the context document, which is also what the CNN/DM dataset is testing.

On the other hand, the BookTest requires prediction of a possible continuation of a story, where the required kind of reasoning is much less clear but certainly different from pure summarization. Another explanation for better performance of CNN/DM models might be that they solve slightly simpler task since the candidate answers were already pre-selected in the entity anonymization step.

Readers interested in how the training-dataset size affects this kind of transfer can check (Kadlec et al., 2016a) where we show that the target-task performance is a bit better if we use the large BookTest as opposed to its smaller subset, the Children's Book Test (CBT) (Hill et al., 2015) .

Conclusions from this experiment are that the skills learned from two large-scale datasets generalize surprisingly poorly to even simple toy tasks. This may make us ask whether most teams' focus on solving narrow tasks is truly beneficial if the skills learnt on these tasks are hard to apply elsewhere. However it also brings us to our next experiment, where we try to provide some help to the struggling pre-trained models.

4.2. PRE-TRAINED WITH TARGET ADJUSTMENT:

After showing that the skills learnt from the BookTest and CNN/DM datasets are by themselves insufficient for solving the toy tasks, the next natural question is whether they are useful if helped by training on a small sample of examples from the target task. We call this additional phase of training target adjustment. For this experiment we again use the bAbI tasks, however we also test transfer to a subset of the SQuAD dataset, which is much closer to real-world natural-language question answering.

The results presented in this and the following section are based on training 3701 model instances. (a) q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.0 of the task to account for variations between these random samples -which may be substantial given the small sample size.3 bAbI. For each of these models we observed the test accuracy at the best-validation epoch and compared this number between the randomly initialized and pre-trained models. Validation was done using 100 examples which were set aside from the task's original 10k training data. 4 We perform the experiment with models pre-trained on the BookTest and also on CNN/DM.

SQuAD subset. In the SQuAD experiment, we trained the model on a subset of the original training dataset where answers were only single words and its sub-subsets. We report the best-validation accuracy on a development set filtered in the same way. This experiment was performed only with the models pre-trained on BookTest.

The results of these experiments are summarized in Figures 2 and 3 .

q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 Task 1 q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 Task 4 q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 bAbI. Sub-figure 2a shows mean test accuracy of the models that achieved the best validation result for each single task. The results for both BookTest and CNN/DM experiments confirm positive effect of pre-training compared to randomly initialized baseline. Figure 3 shows performance on selected bAbI tasks where pre-training has clearly positive effect, such plot for each of the target tasks is provided in Appendix C.2 (Figure 4 ).

Note that the CNN/DM models cannot be directly compared to BookTest results due to entity anonymization that seems to simplify the task when the model is trained on smaller datasets.

Since our evaluation methodology with different training set sizes is novel, we can compare our result only to MemN2N (Sukhbaatar et al., 2015) trained on a 1k dataset. MemN2N is the only weakly supervised model that reports accuracy when trained on less than 10k examples. MemN2N achieves average accuracy 93.2%5 on the eleven selected tasks. This is substantially better than both our random baseline (78.0%) and the BookTest-pre-trained model (79.5%), however our model is not tuned in any way towards this particular task. One important conceptual difference is that the AS Reader processes the whole context as one sequence of words, whereas MemN2N receives the context split into single sentences, which simplifies the task for the network.

SQuAD subset. The results of SQuAD experiment also confirm positive effect of pre-training, see Sub-figure 2b , for now compare just lines showing performance of the fully pre-trained model and the randomly initialized model -the meaning of the remaining two lines shall become clear in the next section.

More detailed statistics about the results of this experiment can be found in Appendix D.

We should note that performance of our model is not competitive with the state of the art models on this dataset. For instance the DCR model (Yu et al., 2016) trained on our SQuAD subset achieves validation accuracy 74.9% in this task which is better than our randomly initialized (35.4%) and pre-trained (51.6%) models6 . However, the DCR model is designed specifically for the SQuAD task, for instance it utilizes features that are not used by our model.

4.3. PARTIALLY PRE-TRAINED MODEL:

Since our previous experiment confirmed positive effect of pre-training if followed by target-domain adjustment, we wondered which part of the model contains the knowledge transferable to new domains. To examine this we performed the following experiment.

Our machine learning model, the AS Reader, consists of two main parts: the word-embedding look-up and the bidirectional GRUs used to encode the document and question (see Figure 1 ). Therefore a natural question was what the contribution of each of these parts is.

To test this we created two models out of each pre-trained model used in the previous experiment.

The first model variant uses the pre-trained word embeddings from the original model while the GRU encoders are randomly initialized. We say that this model has pre-trained embeddings. The second model variant uses the opposite setting where the word embeddings are randomly initialized while the encoders are taken form a pre-trained model. We call this pre-trained encoders.

bAbI. For this experiment we selected only a subset of tasks with training set of 100 examples where there was significant difference in accuracy between randomly-initialized and pre-trained models. For evaluation we use the same methodology as in the previous experiment, that is, we report accuracy of the best-validation model averaged over 4 training splits.

SQuAD subset. We evaluated both model variants on all training sets from the previous SQuAD experiment using the same methodology. 

bAbI.:

Table 2 shows improvement of pre-trained models over a randomly initialized baseline. In most cases (all except Task 5) the fully pre-trained model achieved the best accuracy.

SQuAD subset. The accuracies of the four model variants are plotted in Figure 2b together with results of the previous SQuAD experiment. The graph shows that both pre-trained embeddings and pre-trained encoders alone improve performance over the randomly initialized baseline, however the fully pre-trained model is always the best.

The overall result of this experiment is that both pre-training of the word embeddings and pre-training of the encoder parameters are important since the fully pre-trained model outperforms both partially pre-trained variants.

5. CONCLUSION:

Our experiments show that transfer from two large cloze-style question-answering datasets to our two target tasks is suprisingly poor, if the models aren't provided with any examples from the target domain. However we show that models that pre-trained models perform significantly better than a randomly initialized model if they are shown at least a few training examples from the target domain.

The usefulness of pre-trained word embeddings is well known in the NLP community however we show that the power of our pre-trained model does not lie just in the embeddings. This suggests that once the text-comprehension community agrees on sufficiently versatile model, much larger parts of the model could start being reused than just the word-embeddings.

The generalization of skills from a training domain to new tasks is an important ingredient of any system we would want to call intelligent. This work is an early step to explore this direction.

A CLOZE STYLE BABI DATASET:

Since our AS Reader architecture is designed to select a single word from the context document as an answer (the task of CBT and BookTest), we selected 10 bAbI tasks that fulfill this requirement out of the original 20. These tasks are: 1. single supporting fact, 2. two supporting facts, 3. three supporting facts, 4. two argument relations, 5. three argument relations, 11. basic coreference, 12. conjunction, 13. compound coreference, 14. time reasoning and 16. basic induction.

Task 15 needed a slight modification to satisfy this requirement: we converted the answers into plural (e.g. "Q: What is Gertrude afraid of? A: wolf." was converted into "A: wolves" which also seems to be the more natural way to formulate the answer to such a question.).

Also since CBT and BookTest train the model for Cloze-style question answering, we modify the original bAbI dataset by reformulating the questions into Cloze-style. For example we translate a question "Where is John ?" to "John is in the XXXXX ."

For the models pre-trained on CNN/DM we also replace two kinds of words by anonymized tags (e.g. "@entity56") in a style similar to the pre-training dataset. Specifically we replace two (largely overlapping) categories of words:

1. Proper names of story characters (e.g. John, Sandra) 2. Any word that can appear as an answer for the particular task (e.g. kitchen, garden if the task is asking about locations).

B METHOD DETAILS B.1 DIRECT TRAINING ON BABI -METHOD:

Here we give a more detailed description of the method we used to arrive to our results. We highlight only facts particular to this experiment. A more detailed general description of training the AS Reader is given in (Kadlec et al., 2016b) .

The results given for AS Reader trained on bAbI are each for a single model with 64 hidden units in each direction of the GRU context encoder and embedding dimension 32 trained on the 10k training data provided with that particular task.

The results for AS Reader trained on the BookTest and the CNN/DM are for a greedy ensemble consisting of 4 models whose predictions were simply averaged. The models and ensemble were all validated on the validation set corresponding to the training dataset. The performance on the bAbI tasks oscillated notably during training however the ensemble averaging does somewhat mitigate this to get more representative numbers. Figure 4 shows the test accuracies of all models that we trained in the target-adjustment experiments as well as lines joining the accuracies of the best-validation models. q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 Task 1 q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 Task 2 q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 Task 3 q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 Task 4 q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 Task 5 q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 Task 11 q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 Task 12 q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 Task 13 q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 Task 14 q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 Task 15 q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q 0.00 

B.2 HYPERPARAMETERS FOR THE TARGET-ADJUSTMENT EXPERIMENTS:



D MEANS, STANDARD DEVIATIONS AND P-VALUES BY EXPERIMENT:

Table 5 shows the mean accuracy across all models trained for each combination of task, pre-training dataset and target-adjustment dataset size. Table 6 shows the corresponding standard deviations.

Table 7 then shows the p-value that whether the expected accuracy of pre-trained models is greater than the expected accuracy of randomly initialized models. This shows that the pre-trained models are statistically significantly better for all target-adjustment set sizes on the SQuAD dataset. On bAbI the BookTest pre-trained models perform convincingly better especially for target-adjustment dataset sizes 100, 500 and 1000, with Task 16 being the main exception to this because the AS Reader struggles to learn it in any setting. For the CNN+DM pre-training the results are not conclusive. 

:

The random baseline selects randomly uniformly between all unique words contained in the context document.

We are planning to release the split training datasets soon.

The other models trained on the full 10k dataset usually use 1000 validation examples(Sukhbaatar et al., 2015;Xiong et al., 2016), however we wanted to focus on low data regime thus we used 10 times less examples.

MemN2N trained on each single task with PE LS RN features, see(Sukhbaatar et al., 2015) for details.

We would like to thankYu et al. (2016) for training their system on our dataset.

Figures and Tables:

Figure 2: Sub-figure (a) shows the average across the 11 bAbI tasks of the best-validation model's test accuracy. (b) shows the test accuracy on SQuAD of each model we trained (the points) and the lines join the accuracies of the best-validation models for each training size.

Figure 3: Example of 3 bAbI tasks where pre-training seems to help. Note that the task may be easier for the CNN/DM models due to answer anonymization which restricts the choice of possible answers.

Figure 4: The test accuracies of all models that we trained in the target-adjustment experiments. The line joins the test accuracies of the best-validation models of each model type.

Figure 5: The average of the mean test accuracies across the 11 bAbI tasks. For the average of the best validation results see Figure 2a.

One-sided p-value whether the mean accuracy of pre-trained models is greater than the accuracy of the randomly initialized ones for each combination of task pre-training dataset. p-values below 0.05 are marked in green.

, the state-of-the-art-model on the bAbI 10k dataset. For more detailed results listing per task accuracies see Appendix C.

Table content: <table><tr><td>Model</td><td>Rnd.</td><td>Most freq. cand.</td><td/><td>AS Reader</td><td/><td>DMN+</td></tr><tr><td>Train dataset</td><td>not trained</td><td>bAbI 10k</td><td>BookTest 14M</td><td>CNN/DM 1.2M</td><td>bAbI 10k</td><td>bAbI 10k</td></tr><tr><td>bAbI mean (11 tasks)</td><td>6.1</td><td>29.9</td><td>34.8</td><td>38.1</td><td>92.7</td><td>95.7</td></tr></table>

The effect of pre-training different components of the model for selected tasks. The first row shows performance (average test accuracy across all trained model instances in each category) of a randomly initialized baseline model. The following three rows show increase in accuracy (measured in percent absolute) when the model is initialized with weights pre-trained on the BookTest. The last line shows results for models initialized with Google News word2vec word embeddings(Mikolov et al., 2013).

Table content: <table><tr><td>```````````M</td><td>Task</td><td/><td colspan="2">bAbI task (100 ex.)</td><td/><td>SQuAD</td></tr><tr><td>odel variant</td><td/><td>1.</td><td>5.</td><td>11.</td><td>14.</td><td>(28k ex.)</td></tr><tr><td>Random init</td><td/><td colspan="4">53% 66% 71% 33%</td><td>31%</td></tr><tr><td>∆ Pre-trained encoders</td><td/><td>+6</td><td>+25</td><td>+4</td><td>+2</td><td>+4</td></tr><tr><td colspan="2">∆ Pre-trained embeddings</td><td>+17</td><td>+6</td><td>+8</td><td>+8</td><td>+10</td></tr><tr><td>∆ Pre-trained full</td><td/><td colspan="4">+34 +22 +14 +13</td><td>+17</td></tr><tr><td colspan="2">∆ Pre-trained word2vec</td><td>-2</td><td>+5</td><td>+1</td><td>-1</td><td>+5</td></tr><tr><td>4.3.2 RESULTS</td><td/><td/><td/><td/><td/></tr></table>



Table content: <table/>

Hyperparameters for both the randomly initialized and the pre-trained models.

Table content: <table><tr><td>Dataset</td><td colspan="4">Hid. Units Emb. L. rate Dropout</td></tr><tr><td>BookTest</td><td>768</td><td>256</td><td>0.0001</td><td>0</td></tr><tr><td>BookTest</td><td>384</td><td>384</td><td>0.0005</td><td>0.2</td></tr><tr><td>BookTest</td><td>384</td><td>384</td><td>0.0005</td><td>0.4</td></tr><tr><td>BookTest</td><td>512</td><td>384</td><td>0.0001</td><td>0</td></tr><tr><td>CNN/DM</td><td>128</td><td>128</td><td>0.001</td><td>0</td></tr><tr><td>CNN/DM</td><td>256</td><td>128</td><td>0.001</td><td>0</td></tr><tr><td>CNN/DM</td><td>384</td><td>128</td><td>0.001</td><td>0</td></tr><tr><td>CNN/DM</td><td>384</td><td>384</td><td>0.001</td><td>0</td></tr><tr><td>C DETAILED RESULTS</td><td/><td/><td/><td/></tr><tr><td colspan="3">C.1 EXPERIMENTS WITHOUT TARGET ADJUSTMENT</td><td/><td/></tr></table>

shows detailed results for the experiments on models which were just pre-trained on one of the pre-training datasets without any target-adjustment. It also shows several baselines and results of a state-of-the-art model.

Table content: <table/>

Performance of the AS Reader when trained on the bAbI 10k, BookTest and CNN/DM datasets and then evaluated on bAbI test data. The Dynamic Memory Network (DMN+) is the state-of-the-art model in a weakly supervised setting on the bAbI 10k dataset. Its results are taken from(Xiong et al., 2016).MemN2N(Sukhbaatar et al., 2015) is the state-of-the-art model on the 1k training dataset; for completeness we also include its results with the 10k training.

Table content: <table><tr><td/><td/><td/><td>DM+CNN</td><td>1.2M</td><td>51.50</td><td>28.90</td><td>27.40</td><td>54.90</td><td>68.10</td><td>20.80</td><td>37.70</td><td>14.00</td><td>50.50</td><td>17.60</td><td>48.00</td><td>38.13</td></tr><tr><td colspan="3">DMN+ ASReader (single)</td><td>bAbI bAbI BookTest</td><td>10k 10k 14M</td><td>100.00 100.00 37.30</td><td>99.70 91.90 25.80</td><td>98.90 86.00 22.20</td><td>100.00 100.00 50.30</td><td>99.50 99.80 67.60</td><td>100.00 100.00 33.00</td><td>100.00 100.00 30.40</td><td>100.00 100.00 33.80</td><td>99.80 95.00 27.60</td><td>100.00 96.70 39.90</td><td>54.70 50.30 15.10</td><td>95.69 92.70 34.82</td></tr><tr><td>MemN2N</td><td>(single)</td><td>(PE LS LW RN)</td><td>bAbI</td><td>10k</td><td>100.00</td><td>99.70</td><td>97.90</td><td>100.00</td><td>99.20</td><td>99.90</td><td>100.00</td><td>100.00</td><td>99.90</td><td>100.00</td><td>48.20</td><td>94.98</td></tr><tr><td>MemN2N</td><td>(single)</td><td>(PE LS RN)</td><td>bAbI</td><td>1k</td><td>100.00</td><td>91.70</td><td>59.70</td><td>97.20</td><td>86.90</td><td>99.10</td><td>99.80</td><td>99.60</td><td>98.30</td><td>100.00</td><td>98.70</td><td>93.73</td></tr><tr><td/><td>Model: Random Rnd cand.</td><td/><td colspan="3">a a a a a a a a a a Test dataset Train dataset not trained 1 Single supporting fact 7.80 bAbI 10k 31.20</td><td>2 Two supporting facts 4.40 26.96</td><td>3 Three supporting facts 3.40 19.14</td><td>4 Two-argument relations 10.50 33.58</td><td>5 Three-argument relations 4.40 21.42</td><td>11 Basic coreference 6.20 30.42</td><td>12 Conjunction 6.70 27.25</td><td>13 Compound coreference 5.60 27.73</td><td>14 Time reasoning 5.00 27.82</td><td>15 Basic deduction 5.20 37.20</td><td>16 Basic induction 7.50 45.65</td><td>bAbI mean (11 tasks) 6.06 29.85</td></tr></table>

Mean test accuracy for each combination of task, model type and target-adjustment set size.

Table content: <table><tr><td>Task</td><td>Pretrain. set</td><td>Model</td><td/><td/><td colspan="2">Target-adjustment set size</td></tr><tr><td/><td/><td>0</td><td>1</td><td>10</td><td>100</td><td>500</td><td>1000 5000 10000 28174</td></tr><tr><td>SQuAD</td><td>BookTest</td><td colspan="5">pre-trained 0.025 0.027 0.049 0.122 NA</td><td>0.245 NA</td><td>0.388 0.484</td></tr><tr><td>SQuAD</td><td>BookTest</td><td colspan="5">rand. init. 0.004 0.006 0.018 0.042 NA</td><td>0.107 NA</td><td>0.214 0.315</td></tr><tr><td>Task 1</td><td>BookTest</td><td colspan="5">pre-trained 0.356 0.383 0.459 0.870 0.992 0.995 0.999 NA</td><td>NA</td></tr><tr><td>Task 1</td><td>BookTest</td><td colspan="5">rand. init. 0.010 0.327 0.431 0.529 0.888 0.916 0.976 NA</td><td>NA</td></tr><tr><td>Task 1</td><td colspan="6">CNN+DM pre-trained 0.295 0.385 0.519 0.689 0.969 0.985 0.990 NA</td><td>NA</td></tr><tr><td>Task 1</td><td>CNN+DM</td><td colspan="5">rand. init. 0.100 0.354 0.450 0.582 0.954 0.941 0.977 NA</td><td>NA</td></tr><tr><td>Task 2</td><td>BookTest</td><td colspan="5">pre-trained 0.206 0.295 0.318 0.339 0.398 0.410 0.755 0.783 NA</td></tr><tr><td>Task 2</td><td>BookTest</td><td colspan="5">rand. init. 0.003 0.225 0.290 0.332 0.358 0.361 0.528 0.645 NA</td></tr><tr><td>Task 2</td><td colspan="6">CNN+DM pre-trained 0.177 0.265 0.288 0.359 0.410 0.398 0.539 0.586 NA</td></tr><tr><td>Task 2</td><td>CNN+DM</td><td colspan="5">rand. init. 0.005 0.280 0.320 0.380 0.371 0.396 0.478 0.469 NA</td></tr><tr><td>Task 3</td><td>BookTest</td><td colspan="5">pre-trained 0.159 0.192 0.227 0.314 0.440 0.508 0.759 0.857 NA</td></tr><tr><td>Task 3</td><td>BookTest</td><td colspan="5">rand. init. 0.005 0.135 0.182 0.219 0.370 0.419 0.542 0.482 NA</td></tr><tr><td>Task 3</td><td colspan="6">CNN+DM pre-trained 0.164 0.213 0.222 0.303 0.450 0.489 0.585 0.687 NA</td></tr><tr><td>Task 3</td><td>CNN+DM</td><td colspan="5">rand. init. 0.001 0.175 0.227 0.272 0.385 0.429 0.551 0.563 NA</td></tr><tr><td>Task 4</td><td>BookTest</td><td colspan="5">pre-trained 0.452 0.490 0.545 0.631 0.986 0.989 1.000 NA</td><td>NA</td></tr><tr><td>Task 4</td><td>BookTest</td><td colspan="5">rand. init. 0.032 0.532 0.556 0.582 0.846 0.982 0.993 NA</td><td>NA</td></tr><tr><td>Task 4</td><td colspan="6">CNN+DM pre-trained 0.323 0.413 0.596 0.766 0.946 0.986 0.992 NA</td><td>NA</td></tr><tr><td>Task 4</td><td>CNN+DM</td><td colspan="5">rand. init. 0.234 0.536 0.554 0.593 0.926 0.990 0.986 NA</td><td>NA</td></tr><tr><td>Task 5</td><td>BookTest</td><td colspan="5">pre-trained 0.601 0.604 0.632 0.877 0.983 0.982 0.991 NA</td><td>NA</td></tr><tr><td>Task 5</td><td>BookTest</td><td colspan="5">rand. init. 0.013 0.162 0.295 0.635 0.964 0.973 0.989 NA</td><td>NA</td></tr><tr><td>Task 5</td><td colspan="6">CNN+DM pre-trained 0.448 0.492 0.581 0.842 0.969 0.984 0.989 NA</td><td>NA</td></tr><tr><td>Task 5</td><td>CNN+DM</td><td colspan="5">rand. init. 0.185 0.252 0.350 0.844 0.982 0.984 0.988 NA</td><td>NA</td></tr><tr><td>Task 11</td><td>BookTest</td><td colspan="5">pre-trained 0.334 0.415 0.620 0.847 0.986 0.988 0.998 NA</td><td>NA</td></tr><tr><td>Task 11</td><td>BookTest</td><td colspan="5">rand. init. 0.008 0.540 0.692 0.711 0.922 0.951 0.974 NA</td><td>NA</td></tr><tr><td>Task 11</td><td colspan="6">CNN+DM pre-trained 0.119 0.492 0.671 0.762 0.820 0.972 0.977 NA</td><td>NA</td></tr><tr><td>Task 11</td><td>CNN+DM</td><td colspan="5">rand. init. 0.207 0.679 0.737 0.734 0.853 0.934 0.980 NA</td><td>NA</td></tr><tr><td>Task 12</td><td>BookTest</td><td colspan="5">pre-trained 0.307 0.429 0.694 0.786 0.988 0.991 0.999 NA</td><td>NA</td></tr><tr><td>Task 12</td><td>BookTest</td><td colspan="5">rand. init. 0.006 0.499 0.705 0.721 0.917 0.966 0.962 NA</td><td>NA</td></tr><tr><td>Task 12</td><td colspan="6">CNN+DM pre-trained 0.236 0.518 0.650 0.779 0.866 0.968 0.970 NA</td><td>NA</td></tr><tr><td>Task 12</td><td>CNN+DM</td><td colspan="5">rand. init. 0.009 0.661 0.765 0.735 0.855 0.921 0.965 NA</td><td>NA</td></tr><tr><td>Task 13</td><td>BookTest</td><td colspan="5">pre-trained 0.330 0.505 0.793 0.944 0.959 0.976 0.998 NA</td><td>NA</td></tr><tr><td>Task 13</td><td>BookTest</td><td colspan="5">rand. init. 0.004 0.617 0.920 0.937 0.950 0.966 0.992 NA</td><td>NA</td></tr><tr><td>Task 13</td><td colspan="6">CNN+DM pre-trained 0.114 0.612 0.830 0.942 0.949 0.946 0.975 NA</td><td>NA</td></tr><tr><td>Task 13</td><td>CNN+DM</td><td colspan="5">rand. init. 0.094 0.828 0.941 0.944 0.951 0.961 0.971 NA</td><td>NA</td></tr><tr><td>Task 14</td><td>BookTest</td><td colspan="5">pre-trained 0.270 0.266 0.273 0.465 0.775 0.807 0.896 0.912 NA</td></tr><tr><td>Task 14</td><td>BookTest</td><td colspan="5">rand. init. 0.007 0.228 0.277 0.328 0.597 0.675 0.852 0.905 NA</td></tr><tr><td>Task 14</td><td colspan="6">CNN+DM pre-trained 0.280 0.314 0.351 0.458 0.677 0.790 0.840 0.904 NA</td></tr><tr><td>Task 14</td><td>CNN+DM</td><td colspan="5">rand. init. 0.054 0.247 0.297 0.337 0.543 0.788 0.901 0.929 NA</td></tr><tr><td>Task 15</td><td>BookTest</td><td colspan="5">pre-trained 0.085 0.417 0.436 0.491 0.544 0.546 0.689 0.853 NA</td></tr><tr><td>Task 15</td><td>BookTest</td><td colspan="5">rand. init. 0.003 0.414 0.430 0.496 0.517 0.523 0.584 0.834 NA</td></tr><tr><td>Task 15</td><td colspan="6">CNN+DM pre-trained 0.563 0.604 0.591 0.608 0.611 0.635 0.644 0.597 NA</td></tr><tr><td>Task 15</td><td>CNN+DM</td><td colspan="5">rand. init. 0.392 0.469 0.534 0.587 0.623 0.630 0.656 0.658 NA</td></tr><tr><td>Task 16</td><td>BookTest</td><td colspan="5">pre-trained 0.036 0.456 0.451 0.465 0.469 0.474 0.528 0.566 NA</td></tr><tr><td>Task 16</td><td>BookTest</td><td colspan="5">rand. init. 0.001 0.363 0.449 0.460 0.469 0.475 0.489 0.519 NA</td></tr><tr><td>Task 16</td><td colspan="6">CNN+DM pre-trained 0.444 0.467 0.468 0.474 0.480 0.505 0.519 0.547 NA</td></tr><tr><td>Task 16</td><td>CNN+DM</td><td colspan="5">rand. init. 0.280 0.428 0.480 0.476 0.483 0.489 0.489 0.496 NA</td></tr></table>

Standard deviation in accuracies for each combination of task, model type and targetadjustment set size.

Table content: <table/>

Peer review (iclr2017):
This work investigates the performance of transfer learning from resource-rich setup (BookTest, CNN/Daily Mail corpora) to low-resource (bAbI, SQuAD benchmarks) settings. Experiments show poor improvements in 0-shot learning. However, when the model is exposed to few training instances some improvements are observed. The claims made here require a more comprehensive analysis. I criticize the use of bAbI as a low-resource real-world scenario. bAbI is designed as a unit test and is far from representing many natural language phenomena. Thus, the claims related to bAbI can only be weak evidence for questioning transfer learning high-resource to low-resource in real-world scenarios. I highly recommend using recently proposed real-world scenarios [1,2]. More importantly, the work does not explain why and how do we get improvement using transfer learning. They remotely address this by hypothesizing the knowledge of transfer is not just encoded in embeddings but also in the model. Considering the related work [3], these claims bring a marginal novelty and still *how and why* should be central in this work. [1] http://www.msmarco.org/dataset.aspx [2] https://datasets.maluuba.com/NewsQA [3] http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.149.8551&rep=rep1&type=pdf