Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/66H4g_OHdnl/66H4g_OHdnl.md +0 -0
- parse/train/66H4g_OHdnl/66H4g_OHdnl_content_list.json +0 -0
- parse/train/66H4g_OHdnl/66H4g_OHdnl_middle.json +0 -0
- parse/train/66H4g_OHdnl/66H4g_OHdnl_model.json +0 -0
- parse/train/B1-q5Pqxl/B1-q5Pqxl.md +307 -0
- parse/train/B1-q5Pqxl/B1-q5Pqxl_content_list.json +1633 -0
- parse/train/B1-q5Pqxl/B1-q5Pqxl_middle.json +0 -0
- parse/train/B1-q5Pqxl/B1-q5Pqxl_model.json +0 -0
- parse/train/BJO-BuT1g/BJO-BuT1g.md +357 -0
- parse/train/BJO-BuT1g/BJO-BuT1g_content_list.json +1951 -0
- parse/train/BJO-BuT1g/BJO-BuT1g_middle.json +0 -0
- parse/train/BJO-BuT1g/BJO-BuT1g_model.json +0 -0
- parse/train/HyjC5yWCW/HyjC5yWCW.md +0 -0
- parse/train/HyjC5yWCW/HyjC5yWCW_content_list.json +0 -0
- parse/train/HyjC5yWCW/HyjC5yWCW_middle.json +0 -0
- parse/train/HyjC5yWCW/HyjC5yWCW_model.json +0 -0
- parse/train/UFGEelJkLu5/UFGEelJkLu5.md +550 -0
- parse/train/UFGEelJkLu5/UFGEelJkLu5_content_list.json +0 -0
- parse/train/hvdKKV2yt7T/hvdKKV2yt7T_content_list.json +0 -0
- parse/train/hvdKKV2yt7T/hvdKKV2yt7T_middle.json +0 -0
parse/train/66H4g_OHdnl/66H4g_OHdnl.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/66H4g_OHdnl/66H4g_OHdnl_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/66H4g_OHdnl/66H4g_OHdnl_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/66H4g_OHdnl/66H4g_OHdnl_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1-q5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School of Information Systems Singapore Management University jingjiang@smu.edu.sg
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Machine comprehension of text is an important problem in natural language processing. A recently released dataset, the Stanford Question Answering Dataset (SQuAD), offers a large number of real questions and their answers created by humans through crowdsourcing. SQuAD provides a challenging testbed for evaluating machine comprehension algorithms, partly because compared with previous datasets, in SQuAD the answers do not come from a small set of candidate answers and they have variable lengths. We propose an end-to-end neural architecture for the task. The architecture is based on match-LSTM, a model we proposed previously for textual entailment, and Pointer Net, a sequence-to-sequence model proposed by Vinyals et al. (2015) to constrain the output tokens to be from the input sequences. We propose two ways of using Pointer Net for our tasks. Our experiments show that both of our two models substantially outperform the best results obtained by Rajpurkar et al. (2016) using logistic regression and manually crafted features. Besides, our boundary model also achieves the best performance on the MSMARCO dataset (Nguyen et al., 2016).
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Machine comprehension of text is one of the ultimate goals of natural language processing. While the ability of a machine to understand text can be assessed in many different ways, in recent years, several benchmark datasets have been created to focus on answering questions as a way to evaluate machine comprehension (Richardson et al., 2013; Hermann et al., 2015; Hill et al., 2016; Weston et al., 2016; Rajpurkar et al., 2016; Nguyen et al., 2016). In this setup, typically the machine is first presented with a piece of text such as a news article or a story. The machine is then expected to answer one or multiple questions related to the text.
|
| 16 |
+
|
| 17 |
+
In most of the benchmark datasets, a question can be treated as a multiple choice question, whose correct answer is to be chosen from a set of provided candidate answers (Richardson et al., 2013; Hill et al., 2016). Presumably, questions with more given candidate answers are more challenging. The Stanford Question Answering Dataset (SQuAD) introduced recently by Rajpurkar et al. (2016) contains such more challenging questions whose correct answers can be any sequence of tokens from the given text. Moreover, unlike some other datasets whose questions and answers were created automatically in Cloze style (Hermann et al., 2015; Hill et al., 2016), the questions and answers in SQuAD were created by humans through crowdsourcing, which makes the dataset more realistic. Another real dataset, the Human-Generated MAchine Reading COmprehension dataset (MSMARCO) (Nguyen et al., 2016), provided a query together with several related documents collected from Bing Index. The answer to the query is generated by human and the answer words can not only come from the given text.
|
| 18 |
+
|
| 19 |
+
Given these advantages of the SQuAD and MSMARCO datasets, in this paper, we focus on these new datasets to study machine comprehension of text. A sample piece of text and three of its associated questions from SQuAD are shown in Table 1. Traditional solutions to this kind of question answering tasks rely on NLP pipelines that involve multiple steps of linguistic analyses and feature engineering, including syntactic parsing, named entity recognition, question classification, semantic parsing, etc. Recently, with the advances of applying neural network models in NLP, there has been much interest in building end-to-end neural architectures for various NLP tasks, including several pieces of work on machine comprehension (Hermann et al., 2015; Hill et al., 2016; Yin et al., 2016; Kadlec et al., 2016; Cui et al., 2016). However, given the properties of previous machine comprehension datasets, existing end-to-end neural architectures for the task either rely on the candidate answers (Hill et al., 2016; Yin et al., 2016) or assume that the answer is a single token (Hermann et al., 2015; Kadlec et al., 2016; Cui et al., 2016), which make these methods unsuitable for the SQuAD/MSMARCO dataset. In this paper, we propose a new end-to-end neural architecture to address the machine comprehension problem as defined in the SQuAD/MSMARCO dataset. And for the MSMARCO dataset, we will only make use of the words in the given text to generate the answer.
|
| 20 |
+
|
| 21 |
+
Table 1: A paragraph from Wikipedia and three associated questions together with their answers, taken from the $\mathrm { S Q u A D }$ dataset. The tokens in bold in the paragraph are our predicted answers while the texts next to the questions are the ground truth answers.
|
| 22 |
+
|
| 23 |
+
<table><tr><td colspan="2">In 1870,Tesla moved to Karlovac,to attend school at the Higher Real Gymnasium,where he was profoundly influenced by a math teacher Martin Sekulic. The classes were held in German,as it was a school within the Austro-Hungarian Military Frontier.Tesla was able to perform integral calculus in his head,which prompted his teachers to believe that he was cheating.He finished a four-year term in three</td></tr><tr><td>years,graduating in 1873. 1.In what language were the classes given? 2.Who was Tesla's main influence in Karlovac? 3.Why did Tesla go to Karlovac?</td><td>German Martin Sekulic attend school at the Higher Real Gymnasium</td></tr></table>
|
| 24 |
+
|
| 25 |
+
Specifically, observing that in the SQuAD/MSMARCO dataset many questions could be entailed from some sentences in the original text, we adopt a match-LSTM model that we developed earlier for textual entailment (Wang & Jiang, 2016) as one layer of our model. We build a bi-directional match-LSTM on the given passage with attentions on the question for each word so that each position in the paragraph will have a hidden representation reflecting its relation to the question. Then we further adopt the Pointer Net (Ptr-Net) model developed by Vinyals et al. (2015) to select the words in these positions based on the hidden representations built by match-LSTM as an answer. We propose two ways to apply the Ptr-Net model for our task: a sequence model which selects the answer word by word, and a boundary model which only selects the start and end points of the answer span. Experiments on the SQuAD dataset show that our two models both outperform the best performance reported by Rajpurkar et al. (2016). Moreover, using an ensemble of several of our models, we can achieve very competitive performance on SQuAD. For the MSMARCO dataset, a real query based problem, our boundary model outperforms our sequence model with a big margin. It also outperforms the golden passage baseline.
|
| 26 |
+
|
| 27 |
+
Our contributions can be summarized as follows: (1) We propose two new end-to-end neural network models for machine comprehension, which combine match-LSTM and $\mathrm { P t r }$ -Net to handle the special properties of the SQuAD dataset. To the best of our knowledge, we are the first to propose the boundary model which is more suitable to the SQuAD/MSMARCO tasks. And we are the first to integrate the attention-based word pair matching into machine comprehension tasks. (2) We have achieved the performance of an exact match score of $7 1 . 3 \%$ and an F1 score of $8 0 . 8 \%$ on the unseen SQuAD test dataset, which is much better than the feature-engineered solution (Rajpurkar et al., 2016). Our performance is also close to the state of the art on SQuAD, which is $7 4 . 8 \%$ in terms of exact match and $8 2 . 2 \%$ in terms of F1 collected from the SQuAD Leaderboard 1. Besides, our boundary model achieves the state-of-art performance on the MSMARCO dataset with BLUE$1 / 2 / 3 / 4 4 0 . 7 / 3 3 . 9 / 3 0 . 6 / 2 8 . 7$ and Rouge-L $3 7 . { \bar { 3 } } ^ { 2 }$ . (3) Our further visualization of the models reveals some useful insights of the attention mechanism for reasoning the questions. And we also show that the boundary model can overcome the early stop prediction problem in the sequence model. Besides, we also made our code available online 3.
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
Figure 1: An overview of our two models. Both models consist of an LSTM preprocessing layer, a match-LSTM layer and an Answer Pointer layer. For each match-LSTM in a particular direction, $\bar { h } _ { i } ^ { \mathrm { q } }$ , which is defined as $\mathbf { H } ^ { \mathrm { q } } \alpha _ { i } ^ { \mathsf { T } }$ , is computed using the $\alpha$ in the corresponding direction, as described in Eqn. (2)
|
| 31 |
+
|
| 32 |
+
# 2 METHOD
|
| 33 |
+
|
| 34 |
+
In this section, we first briefly review match-LSTM and Pointer Net. These two pieces of existing work lay the foundation of our method. We then present our end-to-end neural architecture for machine comprehension.
|
| 35 |
+
|
| 36 |
+
# 2.1 MATCH-LSTM
|
| 37 |
+
|
| 38 |
+
In a recent work on learning natural language inference, we proposed a match-LSTM model for predicting textual entailment (Wang & Jiang, 2016). In textual entailment, two sentences are given where one is a premise and the other is a hypothesis. To predict whether the premise entails the hypothesis, the match-LSTM model goes through the tokens of the hypothesis sequentially. At each position of the hypothesis, attention mechanism is used to obtain a weighted vector representation of the premise. This weighted premise is then to be combined with a vector representation of the current token of the hypothesis and fed into an LSTM, which we call the match-LSTM. The matchLSTM essentially sequentially aggregates the matching of the attention-weighted premise to each token of the hypothesis and uses the aggregated matching result to make a final prediction.
|
| 39 |
+
|
| 40 |
+
# 2.2 POINTER NET
|
| 41 |
+
|
| 42 |
+
Vinyals et al. (2015) proposed a Pointer Network (Ptr-Net) model to solve a special kind of problems where we want to generate an output sequence whose tokens must come from the input sequence. Instead of picking an output token from a fixed vocabulary, Ptr-Net uses attention mechanism as a pointer to select a position from the input sequence as an output symbol. The pointer mechanism has inspired some recent work on language processing (Gu et al., 2016; Kadlec et al., 2016). Here we adopt Ptr-Net in order to construct answers using tokens from the input text.
|
| 43 |
+
|
| 44 |
+
# 2.3 OUR METHOD
|
| 45 |
+
|
| 46 |
+
Formally, the problem we are trying to solve can be formulated as follows. We are given a piece of text, which we refer to as a passage, and a question related to the passage. The passage is represented by matrix $\mathbf { P } \in \mathbb { R } ^ { d \times P }$ , where $P$ is the length (number of tokens) of the passage and $d$ is the dimensionality of word embeddings. Similarly, the question is represented by matrix $\breve { \mathbf { Q } } \in \mathbb { R } ^ { d \times Q }$ where $Q$ is the length of the question. Our goal is to identify a subsequence from the passage as the answer to the question.
|
| 47 |
+
|
| 48 |
+
As pointed out earlier, since the output tokens are from the input, we would like to adopt the Pointer Net for this problem. A straightforward way of applying Ptr-Net here is to treat an answer as a sequence of tokens from the input passage but ignore the fact that these tokens are consecutive in the original passage, because Ptr-Net does not make the consecutivity assumption. Specifically, we represent the answer as a sequence of integers $\mathbf { a } = ( a _ { 1 } , a _ { 2 } , . . . )$ , where each $a _ { i }$ is an integer between 1 and $P$ , indicating a certain position in the passage.
|
| 49 |
+
|
| 50 |
+
Alternatively, if we want to ensure consecutivity, that is, if we want to ensure that we indeed select a subsequence from the passage as an answer, we can use the Ptr-Net to predict only the start and the end of an answer. In this case, the Ptr-Net only needs to select two tokens from the input passage, and all the tokens between these two tokens in the passage are treated as the answer. Specifically, we can represent the answer to be predicted as two integers $\mathbf { a } = ( a _ { \mathrm { s } } , a _ { \mathrm { e } } )$ , where $a _ { s }$ an $a _ { \mathrm { e } }$ are integers between 1 and $P$ .
|
| 51 |
+
|
| 52 |
+
We refer to the first setting above as a sequence model and the second setting above as a boundary model. For either model, we assume that a set of training examples in the form of triplets $\{ ( \mathbf { P } _ { n } , \mathbf { Q } _ { n } , \mathbf { a } _ { n } ) \} _ { n = 1 } ^ { N }$ are given.
|
| 53 |
+
|
| 54 |
+
An overview of the two neural network models are shown in Figure 1. Both models consist of three layers: (1) An LSTM preprocessing layer that preprocesses the passage and the question using LSTMs. (2) A match-LSTM layer that tries to match the passage against the question. (3) An Answer Pointer (Ans-Ptr) layer that uses Ptr-Net to select a set of tokens from the passage as the answer. The difference between the two models only lies in the third layer.
|
| 55 |
+
|
| 56 |
+
# LSTM Preprocessing Layer
|
| 57 |
+
|
| 58 |
+
The purpose for the LSTM preprocessing layer is to incorporate contextual information into the representation of each token in the passage and the question. We use a standard one-directional LSTM (Hochreiter & Schmidhuber, 1997) to process the passage 4 and the question separately, as shown below:
|
| 59 |
+
|
| 60 |
+
$$
|
| 61 |
+
{ \bf H } ^ { \mathrm { p } } = \overrightarrow { L S T M } ( { \bf P } ) , ~ { \bf H } ^ { \mathrm { q } } = \overrightarrow { L S T M } ( { \bf Q } ) .
|
| 62 |
+
$$
|
| 63 |
+
|
| 64 |
+
The resulting matrices $\mathbf { H } ^ { \mathrm { p } } \in \mathbb { R } ^ { l \times P }$ and $\mathbf { H } ^ { \mathrm { q } } \in \mathbb { R } ^ { l \times Q }$ are hidden representations of the passage and the question, where $l$ is the dimensionality of the hidden vectors. In other words, the $i ^ { \mathrm { { t h } } }$ column vector $\mathbf { h } _ { i } ^ { \mathrm { p } }$ (or $\mathbf { h } _ { i . } ^ { \mathrm { q } . }$ ) in $\mathbf { H } ^ { \mathrm { p } }$ (or $\mathbf { H } ^ { \mathrm { q } }$ ) represents the $i ^ { \mathrm { { t h } } }$ token in the passage (or the question) together with some contextual information from the left.
|
| 65 |
+
|
| 66 |
+
# Match-LSTM Layer
|
| 67 |
+
|
| 68 |
+
We apply the match-LSTM model (Wang & Jiang, 2016) proposed for textual entailment to our machine comprehension problem by treating the question as a premise and the passage as a hypothesis. The match-LSTM sequentially goes through the passage. At position $i$ of the passage, it first uses the standard word-by-word attention mechanism to obtain attention weight vector $\vec { \alpha } _ { i } \in \mathbb { R } ^ { 1 \times Q }$ as follows:
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
\begin{array} { r c l } { \overrightarrow { \mathbf { G } } _ { i } } & { = } & { \mathrm { t a n h } ( \mathbf { W } ^ { \ P } \mathbf { H } ^ { \ P } + ( \mathbf { W } ^ { \ P } \mathbf { h } _ { i } ^ { \ P } + \mathbf { W } ^ { \Gamma } \overrightarrow { \mathbf { h } } _ { i - 1 } ^ { \top } + \mathbf { b } ^ { \ P } ) \otimes \mathbf { e } _ { Q } ) , } \\ { \overrightarrow { \alpha } _ { i } } & { = } & { \mathrm { s o f t m a x } ( \mathbf { w } ^ { \top } \overrightarrow { \mathbf { G } } _ { i } + b \otimes \mathbf { e } _ { Q } ) , } \end{array}
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
where $\mathbf { W } ^ { \mathrm { q } } , \mathbf { W } ^ { \mathrm { p } } , \mathbf { W } ^ { \mathrm { r } } \in \mathbb { R } _ { \cdot } ^ { l \times l }$ , $\mathbf { b } ^ { \mathrm { p } }$ , $\mathbf { w } \in \mathbb { R } ^ { l \times 1 }$ and $b \in \mathbb { R }$ are parameters to be learned, $\vec { \bf G } _ { i } \in \mathbb { R } ^ { l \times Q }$ is the intermediate result, $\vec { \bf h } _ { i - 1 } ^ { \mathrm { r } } \in \mathbb { R } ^ { l \times 1 }$ is the hidden vector of the one-directional match-LSTM (to be explained below) at position $i - 1$ , and the outer product $\left( \cdot \otimes \mathbf { e } _ { Q } \right)$ produces a matrix or row vector by repeating the vector or scalar on the left for $Q$ times.
|
| 75 |
+
|
| 76 |
+
Essentially, the resulting attention weight $\overrightarrow { \alpha } _ { i , j }$ above indicates the degree of matching between the $i ^ { \mathrm { { t h } } }$ token in the passage with the $j ^ { \mathrm { t h } }$ token in the question. Next, we use the attention weight vector $\vec { \alpha _ { i } }$ to obtain a weighted version of the question and combine it with the current token of the passage to form a vector $\overline { { \mathbf { z } } } _ { i }$ :
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
\begin{array} { r } { \vec { \bf z } _ { i } = \left[ \frac { { \bf h } _ { i } ^ { \mathrm { p } } } { { \bf H } ^ { \mathrm { q } } \vec { \alpha } _ { i } ^ { \top } } \right] , } \end{array}
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
where $\mathbf { H } ^ { \mathrm { q } } \ \in \ \mathbb { R } ^ { l \times Q } , \ \vec { \alpha } _ { i } \ \in \ \mathbb { R } ^ { 1 \times Q }$ and $\mathbf { h } _ { i } ^ { \mathsf { p } } \in \mathbb { R } ^ { l \times 1 }$ . This vector $\vec { \textbf { z } } _ { i }$ is fed into a standard onedirectional LSTM to form our so-called match-LSTM:
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\begin{array} { r l r } { \overrightarrow { \mathbf { h } } _ { i } ^ { \mathrm { r } } } & { = } & { \overrightarrow { L S T M } ( \overrightarrow { \mathbf { z } } _ { i } , \overrightarrow { \mathbf { h } } _ { i - 1 } ^ { \mathrm { r } } ) , } \end{array}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
where $\vec { \bf h } _ { i } ^ { \mathrm { r } } \in \mathbb { R } ^ { l \times 1 }$
|
| 89 |
+
|
| 90 |
+
We further build a similar match-LSTM in the reverse direction. The purpose is to obtain a representation that encodes the contexts from both directions for each token in the passage.
|
| 91 |
+
|
| 92 |
+
Let $\vec { \bf H ^ { r } } \in \mathbb { R } ^ { l \times P }$ represent the hidden states $[ \vec { \bf h } _ { 1 } ^ { \mathrm { r } } , \vec { \bf h } _ { 2 } ^ { \mathrm { r } } , \ldots , \vec { \bf h } _ { P } ^ { \mathrm { r } } ]$ and $\smash { \mathbf { \overleftarrow { H } ^ { r } } } \in \mathbb { R } ^ { l \times P }$ represent $[ \overleftarrow { \mathbf { h } } _ { 1 } ^ { \mathrm { r } } , \overleftarrow { \mathbf { h } } _ { 2 } ^ { \mathrm { r } } , \ldots , \overleftarrow { \mathbf { h } } _ { P } ^ { \mathrm { r } } ]$ , the hidden states of match-LSTM in the reverse direction. We define ${ \bf H } ^ { \mathrm { r } } \in { \bf \Phi }$ $\mathbb { R } ^ { 2 l \times P }$ as the concatenation of the two:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\begin{array} { r l r } { \bf { H } ^ { \mathrm { r } } } & { = } & { \left[ \begin{array} { l } { \vec { \bf { H } } ^ { \mathrm { r } } } \\ { \vec { \bf { H } } ^ { \mathrm { r } } } \end{array} \right] . } \end{array}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
# Answer Pointer Layer
|
| 99 |
+
|
| 100 |
+
The top layer, the Answer Pointer (Ans-Ptr) layer, is motivated by the Pointer Net introduced by Vinyals et al. (2015). This layer uses the sequence $\mathbf { H } ^ { \mathrm { r } }$ as input. Recall that we have two different models: The sequence model produces a sequence of answer tokens but these tokens may not be consecutive in the original passage. The boundary model produces only the start token and the end token of the answer, and then all the tokens between these two in the original passage are considered to be the answer. We now explain the two models separately.
|
| 101 |
+
|
| 102 |
+
The Sequence Model: Recall that in the sequence model, the answer is represented by a sequence of integers $\mathbf { a } = ( a _ { 1 } , a _ { 2 } , \ldots )$ indicating the positions of the selected tokens in the original passage. The Ans-Ptr layer models the generation of these integers in a sequential manner. Because the length of an answer is not fixed, in order to stop generating answer tokens at certain point, we allow each $a _ { k }$ to take up an integer value between 1 and $P + 1$ , where $P + 1$ is a special value indicating the end of the answer. Once $a _ { k }$ is set to be $P + 1$ , the generation of the answer stops.
|
| 103 |
+
|
| 104 |
+
In order to generate the $k ^ { \mathrm { { t h } } }$ answer token indicated by $a _ { k }$ , first, the attention mechanism is used again to obtain an attention weight vector $\beta _ { k } \ \in \ \mathbb { R } ^ { 1 \times \bar { ( } P + 1 ) }$ , where $\beta _ { k , j }$ $( 1 \leq j \leq P + 1 )$ is the probability of selecting the $j ^ { \mathrm { t h } }$ token from the passage as the $k ^ { \mathrm { { t h } } }$ token in the answer, and $\beta _ { k , ( P + 1 ) }$ is the probability of stopping the answer generation at position $k$ . $\beta _ { k }$ is modeled as follows:
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\begin{array} { r c l } { \mathbf { F } _ { k } } & { = } & { \operatorname { t a n h } ( \mathbf { V } \widetilde { \mathbf { H } } ^ { \mathrm { r } } + ( \mathbf { W } ^ { \mathrm { a } } \mathbf { h } _ { k - 1 } ^ { \mathrm { a } } + \mathbf { b } ^ { a } ) \otimes \mathbf { e } _ { ( P + 1 ) } ) , } \\ { \beta _ { k } } & { = } & { \operatorname { s o f t m a x } ( \mathbf { v } ^ { \mathsf { T } } \mathbf { F } _ { k } + c \otimes \mathbf { e } _ { ( P + 1 ) } ) , } \end{array}
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
where $\widetilde { \mathbf { H } } ^ { \mathrm { r } } \in \mathbb { R } ^ { 2 l \times ( P + 1 ) }$ is the concatenation of $\mathbf { H } ^ { \mathrm { r } }$ with a zero vector, defined as $\widetilde { \bf H } ^ { \mathrm { r } } = [ { \bf H } ^ { \mathrm { r } } ; { \bf 0 } ]$ , $\mathbf { V } \in \mathbb { R } ^ { l \times 2 l } , \mathbf { W } ^ { \mathrm { a } } \in \mathbb { R } ^ { l \times l } , \mathbf { b } ^ { a } , \mathbf { v } \in \mathbb { R } ^ { l \times 1 }$ and $c \in \mathbb { R }$ are parameters to be learned, $\mathbf { F } _ { k } \in \mathbb { R } ^ { l \times ( P + 1 ) }$ is the intermediate result, $\left( \cdot \otimes { \mathbf e } _ { \left( P + 1 \right) } \right)$ follows the same definition as before, and $\mathbf { h } _ { k - 1 } ^ { \mathrm { a } } \in \mathbb { R } ^ { l \times 1 }$ is the hidden vector at position $k - 1$ of an answer LSTM as defined below:
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
\mathbf { h } _ { k } ^ { \mathrm { a } } = \overrightarrow { L S T M } ( \widetilde { \mathbf { H } } ^ { \mathrm { r } } \beta _ { k } ^ { \intercal } , \mathbf { h } _ { k - 1 } ^ { \mathrm { a } } ) .
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
We can then model the probability of generating the answer sequence as
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
\begin{array} { l l l } { p ( { \bf a } | { \bf H ^ { r } } ) } & { = } & { \displaystyle \prod _ { k } p ( a _ { k } | a _ { 1 } , a _ { 2 } , \ldots , a _ { k - 1 } , { \bf H ^ { r } } ) , } \end{array}
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
and
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
\begin{array} { r c l } { p ( a _ { k } = j | a _ { 1 } , a _ { 2 } , \ldots , a _ { k - 1 } , \mathbf { H } ^ { \mathrm { r } } ) } & { = } & { \beta _ { k , j } . } \end{array}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
To train the model, we minimize the following loss function based on the training examples:
|
| 129 |
+
|
| 130 |
+
$$
|
| 131 |
+
- \sum _ { n = 1 } ^ { N } \log p ( \mathbf { a } _ { n } | \mathbf { P } _ { n } , \mathbf { Q } _ { n } ) .
|
| 132 |
+
$$
|
| 133 |
+
|
| 134 |
+
The Boundary Model: The boundary model works in a way very similar to the sequence model above, except that instead of predicting a sequence of indices $a _ { 1 } , a _ { 2 } , \dotsc$ , we only need to predict two indices $a _ { s }$ and $a _ { \mathrm { e } }$ . So the main difference from the sequence model above is that in the boundary model we do not need to add the zero padding to $\mathbf { H } ^ { \mathrm { r } }$ , and the probability of generating an answer is simply modeled as
|
| 135 |
+
|
| 136 |
+
$$
|
| 137 |
+
\begin{array} { r l r } { p ( { \bf a } | { \bf H ^ { r } } ) } & { = } & { p ( a _ { \mathrm { s } } | { \bf H ^ { r } } ) p ( a _ { \mathrm { e } } | a _ { \mathrm { s } } , { \bf H ^ { r } } ) . } \end{array}
|
| 138 |
+
$$
|
| 139 |
+
|
| 140 |
+
As this boundary model could point to a span covering too many tokens without any restriction, we try to manually limit the length of the predicted span and then search the span with the highest probability computed by $p ( \mathbf { a } _ { s } ) \times p ( \mathbf { a } _ { e } | \mathbf { a } _ { s } )$ as the answer.
|
| 141 |
+
|
| 142 |
+
# 3 EXPERIMENTS
|
| 143 |
+
|
| 144 |
+
In this section, we present our experiment results and perform some analyses to better understand how our models works.
|
| 145 |
+
|
| 146 |
+
# 3.1 DATA
|
| 147 |
+
|
| 148 |
+
We use the Stanford Question Answering Dataset (SQuAD) v1.1 and the human-generated Microsoft MAchine Reading COmprehension (MSMARCO) dataset v1.1 to conduct our experiments.
|
| 149 |
+
|
| 150 |
+
Passages in SQuAD come from 536 articles in Wikipedia covering a wide range of topics. Each passage is a single paragraph from a Wikipedia article, and each passage has around 5 questions associated with it. In total, there are 23,215 passages and 107,785 questions. The data has been split into a training set (with 87,599 question-answer pairs), a development set (with 10,570 questionanswer pairs) and a hidden test set.
|
| 151 |
+
|
| 152 |
+
For the MSMARCO dataset, the questions are user queries issued to the Bing search engine, the context passages are real Web documents and the answers are human-generated. We select the span that has the highest F1 score with the gold standard answer for training and only predict the span in the passages during evaluation. The data has been split into a training set (82326 pairs), a development set (10047 pairs) and a test set (9650 pairs).
|
| 153 |
+
|
| 154 |
+
# 3.2 EXPERIMENT SETTINGS
|
| 155 |
+
|
| 156 |
+
We first tokenize all the passages, questions and answers. We use word embeddings from GloVe (Pennington et al., 2014) to initialize the model. Words not found in GloVe are initialized as zero vectors. The word embeddings are not updated during the training of the model.
|
| 157 |
+
|
| 158 |
+
The dimensionality $l$ of the hidden layers is set to be 150. We use ADAMAX (Kingma & Ba, 2015) with the coefficients $\beta _ { 1 } = 0 . 9$ and $\beta _ { 2 } = 0 . 9 9 9$ to optimize the model. Each update is computed through a minibatch of 30 instances. We do not use L2-regularization.
|
| 159 |
+
|
| 160 |
+
For the SQuAD dataset, the performance is measured by two metrics: percentage of exact match with the ground truth answers and word-level F1 score when comparing the tokens in the predicted answers with the tokens in the ground truth answers. Note that in the development set and the test set each question has around three ground truth answers. F1 scores with the best matching answers are used to compute the average F1 score. For the MSMARCO dataset, the metrics in the official tool of MSMARCO evaluation are BLEU-1/2/3/4 and Rouge-L, which are widely used in many domains.
|
| 161 |
+
|
| 162 |
+
# 3.3 RESULTS
|
| 163 |
+
|
| 164 |
+
The SQuAD and MSMARCO results of our models as well as the results of the baselines (Rajpurkar et al., 2016; Yu et al., 2016) are shown in Table 2. For the “LSTM with Ans-Ptr” models, they are the experiments with the ablation of attention mechanism in match-LSTM. Specifically, we use the final representation of the question to replace the weighted sum of the question representations. For the MSMARCO dataset, as the context for each question is consisted of around 10 documents, the “Golden Passage” is to directly use the human labeled document which could answer the question as the prediction.
|
| 165 |
+
|
| 166 |
+
Table 2: Experiment Results on SQuAD and MSMARCO datasets. Here “LSTM with Ans-Ptr” removes the attention mechanism in match-LSTM (mLSTM) by using the final state of the LSTM for the question to replace the weighted sum of all the states. Our best boundary model is the further tuned model and its ablation study is shown in Table 4. “en” refers to ensemble method.
|
| 167 |
+
|
| 168 |
+
<table><tr><td></td><td colspan="4">SQuAD</td><td>MSMARCO</td></tr><tr><td></td><td colspan="2">Exact Match</td><td colspan="2">F1</td><td>BLEU1/2/3/4 /Rouge-L</td></tr><tr><td></td><td>Dev</td><td>Test</td><td>Dev</td><td>Test</td><td>Dev&Test</td></tr><tr><td>Human</td><td>80.3</td><td>77.0</td><td>90.5</td><td>86.8</td><td>-& 46/-l-l- /47</td></tr><tr><td>Golden Passage</td><td>-</td><td>-</td><td>-</td><td>1</td><td>19.6/18.8/18.1/17.5/32.3&-</td></tr><tr><td>LR (Rajpurkar et al., 2016)</td><td>40.0</td><td>40.4</td><td>51.0</td><td>51.0</td><td></td></tr><tr><td>DCR (Yu et al., 2016)</td><td>62.5</td><td>62.5</td><td>71.2</td><td>71.0</td><td></td></tr><tr><td>LSTM with Ans-Ptr (Sequence)</td><td>37.7</td><td>-</td><td>48.5</td><td>-</td><td>10.3/7.2 /5.6 /4.6 /21.6&-</td></tr><tr><td>LSTM with Ans-Ptr (Boundary)</td><td>45.2</td><td></td><td>55.3</td><td></td><td>32.0 /25.3/22.2/20.4/32.3&-</td></tr><tr><td>mLSTM with Ans-Ptr (Sequence)</td><td>54.4</td><td>=</td><td>68.2</td><td>1</td><td>12.5 /9.2 /7.5 /6.5 /22.5 & -</td></tr><tr><td>mLSTM with Ans-Ptr (Boundary)</td><td>63.0</td><td></td><td>72.7</td><td>=</td><td>32.9 /26.4/23.2/21.6/33.8&-</td></tr><tr><td>Our best boundary model</td><td>67.0</td><td>66.9</td><td>77.2</td><td>77.1</td><td>40.1/33.3/30.1/28.2/37.2 & 40.7 / 33.9 / 30.6 /28.7 / 37.3</td></tr><tr><td>mLSTM with Ans-Ptr (Boundary+en)</td><td>67.6</td><td>67.9</td><td></td><td></td><td></td></tr><tr><td>Our best boundary model (en)</td><td>71.3</td><td>72.6</td><td>76.8 80.0</td><td>77.0 80.8</td><td></td></tr></table>
|
| 169 |
+
|
| 170 |
+
Table 3: Statistical analysis on the development datasets. #w: number of words on average; P: passage; Q: question; A: answer; raw: raw data from the development dataset; seq/bou: the answers generated by the sequence/boundary models with match-LSTM.
|
| 171 |
+
|
| 172 |
+
<table><tr><td>SQuAD #w in A/Q/P</td><td></td><td>MSMARCO #w in A/Q/P</td></tr><tr><td>raw</td><td>3.1/11/141</td><td>16.3/6/667</td></tr><tr><td>seq</td><td>2.4/-/-</td><td>6.7 /-/-</td></tr><tr><td>bou</td><td>3.0/-/-</td><td>15.7/ -/ -</td></tr></table>
|
| 173 |
+
|
| 174 |
+
Table 4: Ablation study for our best boundary model on the development datasets. Our best model is a further tuned boundary model by considering “bi-Ans-Ptr” which adds bidirectional answer pointer, “deep” which adds another twolayer bi-directional LSTMs between the match-LSTM and the Answer Pointer layers, and “elem” which adds elementwise comparison , $( \mathbf { h } _ { i } ^ { \mathrm { p } } - \mathbf { H } ^ { \mathrm { q } } \alpha _ { i } ^ { \mathsf { T } } )$ and $( \mathbf { h } _ { i } ^ { \mathrm { p } } \odot \mathbf { H } ^ { \mathrm { q } } \alpha _ { i } ^ { \mathsf { T } } )$ , into Eqn 3. “-pre-LSTM” refers to removing the pre-processing layer.
|
| 175 |
+
|
| 176 |
+
<table><tr><td></td><td>SQuAD EM&F1</td><td>MSMARCO BLEU1/2/3/4&Rouge-L</td></tr><tr><td>Best model</td><td>67.0 & 77.2</td><td>40.1/33.3/30.1/28.2 & 37.2</td></tr><tr><td>-bi-Ans-Ptr</td><td>66.5 & 76.8</td><td>39.9/32.8/29.6/27.9 & 36.7</td></tr><tr><td>-deep</td><td>65.9 & 75.8</td><td>39.6/32.6/29.4/27.4& 35.9</td></tr><tr><td>-elem</td><td>65.2 & 75.4</td><td>38.1/31.4/28.3/26.5 & 35.5</td></tr><tr><td>-pre-LSTM</td><td>64.0 & 72.9</td><td>39.6/32.8/29.8/27.7& 36.3</td></tr></table>
|
| 177 |
+
|
| 178 |
+
From the results in Table 2, we can see that the boundary model could clearly outperform the sequence model in a big margin on both datasets. We hypothesis that the sequence model is more likely to stop word generation earlier, and the boundary model can somehow overcome this problem. We have a statistical analysis on the answers generated by our sequence and boundary models shown in Table 3. We can see that the length of the answers generated by the sequence model is much shorter than the ground truth. Especially for the MSMARCO task where the answers are usually much longer, the sequence model could only generate 7 words on average, while the ground truth answers are 16 on average and the boundary model could generate nearly the same number of words with the ground truth. Several answers generated by our models are shown in Appendix A. From Table 2, we can also see that the performance gets poorer by removing the attention mechanism in match-LSTM, while for the MSMARCO dataset, the attention mechanism effects less, with no more than 2 percent reduction in BLEU and Rouge-L scores by attention mechanism ablation.
|
| 179 |
+
|
| 180 |
+
Based on the effectiveness of boundary pointer and match-LSTM, we conduct further exploration of the boundary model by adding element-wise comparison $( \mathbf { h } _ { i } ^ { \mathrm { p } } { - } \mathbf { H } ^ { \mathrm { q } } \alpha _ { i } ^ { \mathsf { T } } )$ and $( \mathbf { h } _ { i } ^ { \mathrm { p } } \odot \mathbf { H } ^ { \mathrm { q } } \alpha _ { i } ^ { \mathsf { T } } )$ into Eqn 3 in match-LSTM layer, adding 2 more bi-directional LSTM layers between match-LSTM and Ans-Ptr layers, and adding bi-directional Ans-Ptr. We show the ablation study of this further tuned model in Table 4. We can see that adding element-wise matching could make the biggest improvement for our boundary model. We also try to remove the phrase-level representation by removing the pre-process LSTM and using the word-level representations as the inputs of match-LSTM. Interestingly, we find the phrase-level representation effects little on the MSMARCO task.
|
| 181 |
+
|
| 182 |
+
Overall, we can see that both of our match-LSTM models have clearly outperformed the logistic regression model by Rajpurkar et al. (2016), which relies on carefully designed features. The improvement of our models over the logistic regression model shows that our end-to-end neural network models without much feature engineering are very effective on these tasks and datasets. Our boundary model also outperformed the DCR model (Yu et al., 2016), which maximizes the probability of the gold standard span from all the candidate spans through a neural network structure.
|
| 183 |
+
|
| 184 |
+
# 3.4 FURTHER ANALYSES
|
| 185 |
+
|
| 186 |
+

|
| 187 |
+
Figure 2: Performance breakdown by answer lengths and question types on SQuAD development dataset. Top: Plot (1) shows the performance of our two models (where $s$ refers to the sequence model , $^ b$ refers to the boundary model, and $e$ refers to the ensemble boundary model) over answers with different lengths. Plot (2) shows the numbers of answers with different lengths. Bottom: Plot (3) shows the performance our the two models on different types of questions. Plot (4) shows the numbers of different types of questions.
|
| 188 |
+
|
| 189 |
+
To better understand the strengths and weaknesses of our models, we perform some further analyses of the results below.
|
| 190 |
+
|
| 191 |
+
First, we suspect that longer answers are harder to predict. To verify this hypothesis, we analysed the performance in terms of both exact match and F1 score with respect to the answer length on the development set, as shown in Figure 2. For example, for questions whose answers contain more than 9 tokens, the F1 score of the boundary model drops to around $55 \%$ and the exact match score drops to only around $30 \%$ , compared to the F1 score and exact match score of close to $72 \%$ and $67 \%$ , respectively, for questions with single-token answers. And that supports our hypothesis.
|
| 192 |
+
|
| 193 |
+

|
| 194 |
+
|
| 195 |
+

|
| 196 |
+
Answer: European Parliament and the Council of the European Union
|
| 197 |
+
Figure 3: Visualization of the attention weights $\alpha$ for four questions. The first three questions share the same paragraph. The title is the answer predicted by our model.
|
| 198 |
+
|
| 199 |
+
Next, we analyze the performance of our models on different groups of questions, as shown in Figure 2. We use a crude way to split the questions into different groups based on a set of question words we have defined, including “what,” “how,” “who,” “when,” “which,” “where,” and “why.” These different question words roughly refer to questions with different types of answers. For example, “when” questions look for temporal expressions as answers, whereas “where” questions look for locations as answers. According to the performance on the development dataset, our models work the best for “when” questions. This may be because in this dataset temporal expressions are relatively easier to recognize. Other groups of questions whose answers are noun phrases, such as “what” questions, “which” questions and “where” questions, also get relatively better results. On the other hand, “why” questions are the hardest to answer. This is not surprising because the answers to “why” questions can be very diverse, and they are not restricted to any certain type of phrases.
|
| 200 |
+
|
| 201 |
+
Finally, we would like to check whether the attention mechanism used in the match-LSTM layer is effective in helping the model locate the answer. We show the attention weights $\alpha$ in Figure 3. In the figure the darker the color is the higher the weight is. We can see that some words have been well aligned based on the attention weights. For example, the word “German” in the passage is aligned well to the word “language” in the first question, and the model successfully predicts “German” as the answer to the question. For the question word “who” in the second question, the word “teacher” actually receives relatively higher attention weight, and the model has predicted the phrase “Martin Sekulic” after that as the answer, which is correct. For the third question that starts with “why”, the attention weights are more evenly distributed and it is not clear which words have been aligned to “why”. For the last question, we can see that the word knowledge needed for generating the answer can also be detected by match-LSTM. For example, the words “European”, “Parliament”, “Council”, “European” and “Union” have higher attention weights on “governing” in the question. Even though our models can solve this type of questions, they are still not able to solve the questions that need multi-sentences reasoning. More answers generated by our models for the questions related to different kinds of reasoning are shown in Appendix B.
|
| 202 |
+
|
| 203 |
+
# 4 RELATED WORK
|
| 204 |
+
|
| 205 |
+
Machine comprehension of text has gained much attention in recent years, and increasingly researchers are building data-drive, end-to-end neural network models for the task. We will first review the recently released datasets and then some end-to-end models on this task.
|
| 206 |
+
|
| 207 |
+
# 4.1 DATASETS
|
| 208 |
+
|
| 209 |
+
A number of datasets for studying machine comprehension were created in Cloze style by removing a single token from a sentence in the original corpus, and the task is to predict the missing word. For example, Hermann et al. (2015) created questions in Cloze style from CNN and Daily Mail highlights. Hill et al. (2016) created the Children’s Book Test dataset, which is based on children’s stories. Cui et al. (2016) released two similar datasets in Chinese, the People Daily dataset and the Children’s Fairy Tale dataset.
|
| 210 |
+
|
| 211 |
+
Instead of creating questions in Cloze style, a number of other datasets rely on human annotators to create real questions. Richardson et al. (2013) created the well-known MCTest dataset and Tapaswi et al. (2016) created the MovieQA dataset. In these datasets, candidate answers are provided for each question. Similar to these two datasets, the SQuAD dataset (Rajpurkar et al., 2016) was also created by human annotators. Different from the previous two, however, the SQuAD dataset does not provide candidate answers, and thus all possible subsequences from the given passage have to be considered as candidate answers.
|
| 212 |
+
|
| 213 |
+
Besides the datasets above, there are also a few other datasets created for machine comprehension, such as WikiReading dataset (Hewlett et al., 2016) and bAbI dataset (Weston et al., 2016), but they are quite different from the datasets above in nature.
|
| 214 |
+
|
| 215 |
+
# 4.2 END-TO-END NEURAL NETWORK MODELS FOR MACHINE COMPREHENSION
|
| 216 |
+
|
| 217 |
+
There have been a number of studies proposing end-to-end neural network models for machine comprehension. A common approach is to use recurrent neural networks (RNNs) to process the given text and the question in order to predict or generate the answers (Hermann et al., 2015). Attention mechanism is also widely used on top of RNNs in order to match the question with the given passage (Hermann et al., 2015; Chen et al., 2016). Given that answers often come from the given passage, Pointer Network has been adopted in a few studies in order to copy tokens from the given passage as answers (Kadlec et al., 2016; Trischler et al., 2016). Compared with existing work, we use match-LSTM to match a question and a given passage, and we use Pointer Network in a different way such that we can generate answers that contain multiple tokens from the given passage.
|
| 218 |
+
|
| 219 |
+
Memory Networks (Weston et al., 2015) have also been applied to machine comprehension (Sukhbaatar et al., 2015; Kumar et al., 2016; Hill et al., 2016), but its scalability when applied to a large dataset is still an issue. In this work, we did not consider memory networks for the SQuAD/MSMARCO datasets.
|
| 220 |
+
|
| 221 |
+
The setting of visual question answering (Antol et al., 2015) is quite similar to machine comprehension, while their answers are usually very short. So the sequence order of the word-level attention representation used to align the figure and the question(Xu & Saenko, 2016; Fukui et al., 2016; Lu et al., 2016), are not used in VQA. While our model focus on the word-by-word attention and use
|
| 222 |
+
|
| 223 |
+
LSTM to concatenate the aligned pairs and that would be helpful to generate a longer sequence as answer.
|
| 224 |
+
|
| 225 |
+
# 5 CONCLUSIONS
|
| 226 |
+
|
| 227 |
+
In this paper, We developed two models for the machine comprehension problem defined in the Stanford Question Answering (SQuAD) and A Human-Generated MAchine Reading COmprehension (MSMARCO) datasets, both making use of match-LSTM and Pointer Network. Experiments on the SQuAD and MSMARCO datasets showed that our second model, the boundary model, could achieve a performance close to the state-of-the-art performance on the SQuAD dataset and achieved the state-of-the-art on the MSMARCO dataset. We also show the boundary model could overcome the early stop prediction problem of the sequence model.
|
| 228 |
+
|
| 229 |
+
In the future, we plan to look further into the different types of questions and focus on those questions which currently have low performance, such as the “why’ questions and multi-sentences related questions. We also plan to test how our models could be applied to other machine comprehension datasets.
|
| 230 |
+
|
| 231 |
+
# 6 ACKNOWLEDGMENTS
|
| 232 |
+
|
| 233 |
+
This research is supported by the National Research Foundation, Prime Ministers Office, Singapore under its International Research Centres in Singapore Funding Initiative.
|
| 234 |
+
|
| 235 |
+
We thank Pranav Rajpurkar for testing our model on the hidden test dataset and Percy Liang for helping us with the Dockerfile for Codalab.
|
| 236 |
+
|
| 237 |
+
# REFERENCES
|
| 238 |
+
|
| 239 |
+
Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2425–2433, 2015.
|
| 240 |
+
|
| 241 |
+
Danqi Chen, Jason Bolton, and Christopher D. Manning. A thorough examination of the CNN/Daily Mail reading comprehension task. In Proceedings of the Conference on Association for Computational Linguistics, 2016.
|
| 242 |
+
|
| 243 |
+
Yiming Cui, Ting Liu, Zhipeng Chen, Shijin Wang, and Guoping Hu. Consensus attention-based neural networks for chinese reading comprehension. In arXiv preprint arXiv:1607.02250, 2016.
|
| 244 |
+
|
| 245 |
+
Akira Fukui, Dong Huk Park, Daylen Yang, Anna Rohrbach, Trevor Darrell, and Marcus Rohrbach. Multimodal compact bilinear pooling for visual question answering and visual grounding. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2016.
|
| 246 |
+
|
| 247 |
+
Jiatao Gu, Zhengdong Lu, Hang Li, and Victor O.K. Li. Incorporating copying mechanism in sequence-to-sequence learning. In Proceedings of the Conference on Association for Computational Linguistics, 2016.
|
| 248 |
+
|
| 249 |
+
Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In Proceedings of the Conference on Advances in Neural Information Processing Systems, pp. 1693–1701, 2015.
|
| 250 |
+
|
| 251 |
+
Daniel Hewlett, Alexandre Lacoste, Llion Jones, Illia Polosukhin, Andrew Fandrianto, Jay Han, Matthew Kelcey, and David Berthelot. WIKIREADING: A novel large-scale language understanding task over wikipedia. In Proceedings of the Conference on Association for Computational Linguistics, 2016.
|
| 252 |
+
|
| 253 |
+
Felix Hill, Antoine Bordes, Sumit Chopra, and Jason Weston. The Goldilocks principle: Reading children’s books with explicit memory representations. In Proceedings of the International Conference on Learning Representations, 2016.
|
| 254 |
+
|
| 255 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
|
| 256 |
+
|
| 257 |
+
Rudolf Kadlec, Martin Schmid, Ondrej Bajgar, and Jan Kleindienst. Text understanding with the attention sum reader network. In Proceedings of the Conference on Association for Computational Linguistics, 2016.
|
| 258 |
+
|
| 259 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of the International Conference on Learning Representations, 2015.
|
| 260 |
+
|
| 261 |
+
Ankit Kumar, Ozan Irsoy, Jonathan Su, James Bradbury, Robert English, Brian Pierce, Peter Ondruska, Ishaan Gulrajani, and Richard Socher. Ask me anything: Dynamic memory networks for natural language processing. In Proceedings of the International Conference on Machine Learning, 2016.
|
| 262 |
+
|
| 263 |
+
Jiasen Lu, Jianwei Yang, Dhruv Batra, and Devi Parikh. Hierarchical question-image co-attention for visual question answering. In Proceedings of the Conference on Advances in Neural Information Processing Systems, 2016.
|
| 264 |
+
|
| 265 |
+
Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, Rangan Majumder, and Li Deng. MS MARCO: a human generated machine reading comprehension dataset. arXiv preprint arXiv:1611.09268, 2016.
|
| 266 |
+
|
| 267 |
+
Jeffrey Pennington, Richard Socher, and Christopher D Manning. GloVe: Global vectors for word representation. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2014.
|
| 268 |
+
|
| 269 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: $1 0 0 { , } 0 0 0 { + }$ questions for machine comprehension of text. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2016.
|
| 270 |
+
|
| 271 |
+
Matthew Richardson, Christopher JC Burges, and Erin Renshaw. MCTest: A challenge dataset for the open-domain machine comprehension of text. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2013.
|
| 272 |
+
|
| 273 |
+
Sainbayar Sukhbaatar, Jason Weston, Rob Fergus, et al. End-to-end memory networks. In Proceedings of the Conference on Advances in neural information processing systems, 2015.
|
| 274 |
+
|
| 275 |
+
Makarand Tapaswi, Yukun Zhu, Rainer Stiefelhagen, Antonio Torralba, Raquel Urtasun, and Sanja Fidler. MovieQA: Understanding stories in movies through question-answering. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, 2016.
|
| 276 |
+
|
| 277 |
+
Adam Trischler, Zheng Ye, Xingdi Yuan, and Kaheer Suleman. Natural language comprehension with the EpiReader. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2016.
|
| 278 |
+
|
| 279 |
+
Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Proceedings of the Conference on Advances in Neural Information Processing Systems, 2015.
|
| 280 |
+
|
| 281 |
+
Shuohang Wang and Jing Jiang. Learning natural language inference with LSTM. In Proceedings of the Conference on the North American Chapter of the Association for Computational Linguistics, 2016.
|
| 282 |
+
|
| 283 |
+
Jason Weston, Sumit Chopra, and Antoine Bordes. Memory networks. In Proceedings of the International Conference on Learning Representations, 2015.
|
| 284 |
+
|
| 285 |
+
Jason Weston, Antoine Bordes, Sumit Chopra, Alexander M Rush, Bart van Merrienboer, Armand ¨ Joulin, and Tomas Mikolov. Towards AI-complete question answering: A set of prerequisite toy tasks. In Proceedings of the International Conference on Learning Representations, 2016.
|
| 286 |
+
|
| 287 |
+
Huijuan Xu and Kate Saenko. Ask, attend and answer: Exploring question-guided spatial attention for visual question answering. In Proceedings of the IEEE International Conference on Computer Vision, 2016.
|
| 288 |
+
|
| 289 |
+
Wenpeng Yin, Sebastian Ebert, and Hinrich Schutze. Attention-based convolutional neural network ¨ for machine comprehension. arXiv preprint arXiv:1602.04341, 2016.
|
| 290 |
+
|
| 291 |
+
Yang Yu, Wei Zhang, Kazi Hasan, Mo Yu, Bing Xiang, and Bowen Zhou. End-to-end answer chunk extraction and ranking for reading comprehension. arXiv preprint arXiv:1610.09996, 2016.
|
| 292 |
+
|
| 293 |
+
# A APPENDIX
|
| 294 |
+
|
| 295 |
+
We show the predictions our boundary and sequence models on two cases from two datasets in Table 5. It can be seen that the sequence model is more likely to predict a shorter sequence which is the problem of early stop prediction.
|
| 296 |
+
|
| 297 |
+
<table><tr><td>(1) Context</td><td>Asopposed to broadcasts of primetime series,CBS broadcast special episodes of its late night talk shows as its lead-out programs for Super Bowl 5O, beginning with a special episode of The Late Show with Stephen Colbert following the game.</td></tr><tr><td>Question (Syntactic) Golden Anwser match-LSTM (Sequence)</td><td>What CBS show followed the Super Bowl? The Late Show with Stephen Colbert The Late Show The Late Show with Stephen Colbert</td></tr><tr><td>match-LSTM (Boundary) (2) Context</td><td>Urinalysis is a test that evaluates a sample of your urine.Urinalysis is used to detect and assess a wide range of disorders,such as uri- nary tract infection, kidney disease and diabetes. Urinalysis involves examining the appearance,concentration and content of urine.Abnor- mal urinalysis results may point to a disease or illness.For example,</td></tr><tr><td>Query</td><td>a urinary tract infection can make urine look cloudy instead of clear. Increased levels of protein in urine can be a sign of kidney disease. what can urinalysis detect?</td></tr><tr><td>Golden Anwser</td><td>Detect and assess a wide range of disorders,such as urinary tract infec- tion, kidney disease and diabetes.</td></tr><tr><td>match-LSTM (Sequence) match-LSTM (Boundary)</td><td>Urinalysis Urinalysis is used to detect and assess a wide range of disorders,such as urinary tract infection,kidney disease and diabetes</td></tr></table>
|
| 298 |
+
|
| 299 |
+
Table 5: Prediction samples for sequence and boundary models. The first case is sampled from SQuAD dataset and the second is sampled from MSMARCO dataset.
|
| 300 |
+
|
| 301 |
+
# B APPENDIX
|
| 302 |
+
|
| 303 |
+
We show how four different models work on different type of questions in SQuAD dataset through Table 6. After the analysis of a hundred cases, we see that our models are not able to solve the questions that need multi-sentences reasoning. And the model without attention mechanism has less power to identify the important key word like the third case shown in Table 6.
|
| 304 |
+
|
| 305 |
+
Table 6: Different types of reasoning samples in SQuAD dataset. “match-LSTM” refers to the “match-LSTM with Ans-Ptr” and “LSTM” refers to the “LSTM with Ans-Ptr” which is the ablation of attention mechanism in match-LSTM.
|
| 306 |
+
|
| 307 |
+
<table><tr><td>(1) Context</td><td>The Rankine cycle is sometimes referred to as a practical Carnot cycle be- cause,when an efficient turbine is used, the TS diagram begins to resemble the</td></tr><tr><td>Question (Synonymy) Golden Anwser</td><td>Carnot cycle. What is the Rankine cycle sometimes called? practical Carnot cycle</td></tr><tr><td>LSTM (Sequence) match-LSTM (Sequence)</td><td>Carnot cycle</td></tr><tr><td>LSTM (Boundary) match-LSTM (Boundary)</td><td>Carnot cycle practical Carnot cycle</td></tr><tr><td>(2) Context</td><td>Carnot cycle</td></tr><tr><td></td><td>While the Commission has a monopoly on initiating legislation,the European Parliament and the Council of the European Union have powers of amend-</td></tr><tr><td></td><td>ment and veto during the legislative process.</td></tr><tr><td>Question (Knowledge) Golden Anwser</td><td>Which two governing bodies have legislative veto power? the European Parliament and the Council of the European Union</td></tr><tr><td>LSTM (Sequence)</td><td>European Parliament and the Council of the European Union</td></tr><tr><td>match-LSTM (Sequence) LSTM (Boundary)</td><td>European Parliament and the Council of the European Union</td></tr><tr><td>match-LSTM (Boundary)</td><td>European Parliament and the Council of the European Union</td></tr><tr><td>(3) Context</td><td>European Parliament and the Council of the European Union</td></tr><tr><td></td><td>Current faculty include the anthropologist Marshall Sahlins, historian Dipesh Chakrabarty,... Shakespeare scholar David Bevington, and renowned political</td></tr><tr><td>Question (Syntactic) Golden Anwser</td><td>scientists John Mearsheimer and Robert Pape. What Shakespeare scholar is currently on the university's faculty?</td></tr><tr><td>LSTM (Sequence)</td><td>David Bevington Marshall Sahlins</td></tr><tr><td>match-LSTM (Sequence) LSTM(Boundary)</td><td>David Bevington Marshall Sahlins</td></tr><tr><td>match-LSTM (Boundary) (4) Context</td><td>David Bevington</td></tr><tr><td></td><td>The V&A Theatre & Performance galleries,formerly the Theatre Museum, opened in March 2Oo9.The collections are stored by the V&A,and are available for research,exhibitions and other shows.They hold the UK's biggest national</td></tr><tr><td></td><td>collection of material about live performance in the UK since Shakespeare's day,covering drama, dance,musical theatre, circus,music hall,rock and pop, and most other forms of live entertainment.</td></tr><tr><td>Question (Reasoning) Golden Anwser</td><td>What collection does the V&A Theatre & Performance galleries hold? material about live performance</td></tr><tr><td>LSTM (Sequence) match-LSTM (Sequence) LSTM (Boundary)</td><td>Theatre the Theatre Museum</td></tr><tr><td>match-LSTM (Boundary)</td><td>research,exhibitions and other shows</td></tr><tr><td></td><td>Theatre Museum</td></tr><tr><td></td><td></td></tr><tr><td>(5) Context</td><td>Along with giving the offender his "just deserts",achieving crime control via</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td>Question (Ambiguous)</td><td>incapacitation and deterrence is a major goal of criminal punishment.</td></tr><tr><td></td><td></td></tr><tr><td>Golden Anwser</td><td>What is the main goal of criminal punishment of civil disobedients ?</td></tr><tr><td></td><td></td></tr><tr><td></td><td>achieving crime control via incapacitation and deterrence</td></tr><tr><td>LSTM (Sequence)</td><td></td></tr><tr><td></td><td>deterrence</td></tr><tr><td>match-LSTM (Sequence) LSTM (Boundary)</td><td>just deserts incapacitation and deterrence</td></tr></table>
|
parse/train/B1-q5Pqxl/B1-q5Pqxl_content_list.json
ADDED
|
@@ -0,0 +1,1633 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "MACHINE COMPREHENSION USING MATCH-LSTM AND ANSWER POINTER ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Jing Jiang ",
|
| 17 |
+
"text_level": 1,
|
| 18 |
+
"bbox": [
|
| 19 |
+
531,
|
| 20 |
+
171,
|
| 21 |
+
604,
|
| 22 |
+
185
|
| 23 |
+
],
|
| 24 |
+
"page_idx": 0
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"type": "text",
|
| 28 |
+
"text": "Shuohang Wang School of Information Systems Singapore Management University shwang.2014@phdis.smu.edu.sg ",
|
| 29 |
+
"bbox": [
|
| 30 |
+
184,
|
| 31 |
+
170,
|
| 32 |
+
459,
|
| 33 |
+
227
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "School of Information Systems Singapore Management University jingjiang@smu.edu.sg ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
531,
|
| 42 |
+
185,
|
| 43 |
+
759,
|
| 44 |
+
227
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "ABSTRACT ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
454,
|
| 54 |
+
262,
|
| 55 |
+
544,
|
| 56 |
+
277
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Machine comprehension of text is an important problem in natural language processing. A recently released dataset, the Stanford Question Answering Dataset (SQuAD), offers a large number of real questions and their answers created by humans through crowdsourcing. SQuAD provides a challenging testbed for evaluating machine comprehension algorithms, partly because compared with previous datasets, in SQuAD the answers do not come from a small set of candidate answers and they have variable lengths. We propose an end-to-end neural architecture for the task. The architecture is based on match-LSTM, a model we proposed previously for textual entailment, and Pointer Net, a sequence-to-sequence model proposed by Vinyals et al. (2015) to constrain the output tokens to be from the input sequences. We propose two ways of using Pointer Net for our tasks. Our experiments show that both of our two models substantially outperform the best results obtained by Rajpurkar et al. (2016) using logistic regression and manually crafted features. Besides, our boundary model also achieves the best performance on the MSMARCO dataset (Nguyen et al., 2016). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
233,
|
| 65 |
+
295,
|
| 66 |
+
764,
|
| 67 |
+
502
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "1 INTRODUCTION ",
|
| 74 |
+
"text_level": 1,
|
| 75 |
+
"bbox": [
|
| 76 |
+
176,
|
| 77 |
+
530,
|
| 78 |
+
334,
|
| 79 |
+
546
|
| 80 |
+
],
|
| 81 |
+
"page_idx": 0
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"type": "text",
|
| 85 |
+
"text": "Machine comprehension of text is one of the ultimate goals of natural language processing. While the ability of a machine to understand text can be assessed in many different ways, in recent years, several benchmark datasets have been created to focus on answering questions as a way to evaluate machine comprehension (Richardson et al., 2013; Hermann et al., 2015; Hill et al., 2016; Weston et al., 2016; Rajpurkar et al., 2016; Nguyen et al., 2016). In this setup, typically the machine is first presented with a piece of text such as a news article or a story. The machine is then expected to answer one or multiple questions related to the text. ",
|
| 86 |
+
"bbox": [
|
| 87 |
+
174,
|
| 88 |
+
563,
|
| 89 |
+
825,
|
| 90 |
+
659
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "In most of the benchmark datasets, a question can be treated as a multiple choice question, whose correct answer is to be chosen from a set of provided candidate answers (Richardson et al., 2013; Hill et al., 2016). Presumably, questions with more given candidate answers are more challenging. The Stanford Question Answering Dataset (SQuAD) introduced recently by Rajpurkar et al. (2016) contains such more challenging questions whose correct answers can be any sequence of tokens from the given text. Moreover, unlike some other datasets whose questions and answers were created automatically in Cloze style (Hermann et al., 2015; Hill et al., 2016), the questions and answers in SQuAD were created by humans through crowdsourcing, which makes the dataset more realistic. Another real dataset, the Human-Generated MAchine Reading COmprehension dataset (MSMARCO) (Nguyen et al., 2016), provided a query together with several related documents collected from Bing Index. The answer to the query is generated by human and the answer words can not only come from the given text. ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
174,
|
| 99 |
+
666,
|
| 100 |
+
825,
|
| 101 |
+
833
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "Given these advantages of the SQuAD and MSMARCO datasets, in this paper, we focus on these new datasets to study machine comprehension of text. A sample piece of text and three of its associated questions from SQuAD are shown in Table 1. Traditional solutions to this kind of question answering tasks rely on NLP pipelines that involve multiple steps of linguistic analyses and feature engineering, including syntactic parsing, named entity recognition, question classification, semantic parsing, etc. Recently, with the advances of applying neural network models in NLP, there has been much interest in building end-to-end neural architectures for various NLP tasks, including several pieces of work on machine comprehension (Hermann et al., 2015; Hill et al., 2016; Yin et al., 2016; Kadlec et al., 2016; Cui et al., 2016). However, given the properties of previous machine comprehension datasets, existing end-to-end neural architectures for the task either rely on the candidate answers (Hill et al., 2016; Yin et al., 2016) or assume that the answer is a single token (Hermann et al., 2015; Kadlec et al., 2016; Cui et al., 2016), which make these methods unsuitable for the SQuAD/MSMARCO dataset. In this paper, we propose a new end-to-end neural architecture to address the machine comprehension problem as defined in the SQuAD/MSMARCO dataset. And for the MSMARCO dataset, we will only make use of the words in the given text to generate the answer. ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
840,
|
| 111 |
+
823,
|
| 112 |
+
924
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 0
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "table",
|
| 118 |
+
"img_path": "images/a180153f0d140ba3c4ea05e734b5a44317d614c0823277b09cd38cb3c7fe9be3.jpg",
|
| 119 |
+
"table_caption": [
|
| 120 |
+
"Table 1: A paragraph from Wikipedia and three associated questions together with their answers, taken from the $\\mathrm { S Q u A D }$ dataset. The tokens in bold in the paragraph are our predicted answers while the texts next to the questions are the ground truth answers. "
|
| 121 |
+
],
|
| 122 |
+
"table_footnote": [],
|
| 123 |
+
"table_body": "<table><tr><td colspan=\"2\">In 1870,Tesla moved to Karlovac,to attend school at the Higher Real Gymnasium,where he was profoundly influenced by a math teacher Martin Sekulic. The classes were held in German,as it was a school within the Austro-Hungarian Military Frontier.Tesla was able to perform integral calculus in his head,which prompted his teachers to believe that he was cheating.He finished a four-year term in three</td></tr><tr><td>years,graduating in 1873. 1.In what language were the classes given? 2.Who was Tesla's main influence in Karlovac? 3.Why did Tesla go to Karlovac?</td><td>German Martin Sekulic attend school at the Higher Real Gymnasium</td></tr></table>",
|
| 124 |
+
"bbox": [
|
| 125 |
+
176,
|
| 126 |
+
102,
|
| 127 |
+
821,
|
| 128 |
+
218
|
| 129 |
+
],
|
| 130 |
+
"page_idx": 1
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"type": "text",
|
| 134 |
+
"text": "",
|
| 135 |
+
"bbox": [
|
| 136 |
+
174,
|
| 137 |
+
309,
|
| 138 |
+
825,
|
| 139 |
+
448
|
| 140 |
+
],
|
| 141 |
+
"page_idx": 1
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"type": "text",
|
| 145 |
+
"text": "Specifically, observing that in the SQuAD/MSMARCO dataset many questions could be entailed from some sentences in the original text, we adopt a match-LSTM model that we developed earlier for textual entailment (Wang & Jiang, 2016) as one layer of our model. We build a bi-directional match-LSTM on the given passage with attentions on the question for each word so that each position in the paragraph will have a hidden representation reflecting its relation to the question. Then we further adopt the Pointer Net (Ptr-Net) model developed by Vinyals et al. (2015) to select the words in these positions based on the hidden representations built by match-LSTM as an answer. We propose two ways to apply the Ptr-Net model for our task: a sequence model which selects the answer word by word, and a boundary model which only selects the start and end points of the answer span. Experiments on the SQuAD dataset show that our two models both outperform the best performance reported by Rajpurkar et al. (2016). Moreover, using an ensemble of several of our models, we can achieve very competitive performance on SQuAD. For the MSMARCO dataset, a real query based problem, our boundary model outperforms our sequence model with a big margin. It also outperforms the golden passage baseline. ",
|
| 146 |
+
"bbox": [
|
| 147 |
+
174,
|
| 148 |
+
455,
|
| 149 |
+
825,
|
| 150 |
+
648
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "Our contributions can be summarized as follows: (1) We propose two new end-to-end neural network models for machine comprehension, which combine match-LSTM and $\\mathrm { P t r }$ -Net to handle the special properties of the SQuAD dataset. To the best of our knowledge, we are the first to propose the boundary model which is more suitable to the SQuAD/MSMARCO tasks. And we are the first to integrate the attention-based word pair matching into machine comprehension tasks. (2) We have achieved the performance of an exact match score of $7 1 . 3 \\%$ and an F1 score of $8 0 . 8 \\%$ on the unseen SQuAD test dataset, which is much better than the feature-engineered solution (Rajpurkar et al., 2016). Our performance is also close to the state of the art on SQuAD, which is $7 4 . 8 \\%$ in terms of exact match and $8 2 . 2 \\%$ in terms of F1 collected from the SQuAD Leaderboard 1. Besides, our boundary model achieves the state-of-art performance on the MSMARCO dataset with BLUE$1 / 2 / 3 / 4 4 0 . 7 / 3 3 . 9 / 3 0 . 6 / 2 8 . 7$ and Rouge-L $3 7 . { \\bar { 3 } } ^ { 2 }$ . (3) Our further visualization of the models reveals some useful insights of the attention mechanism for reasoning the questions. And we also show that the boundary model can overcome the early stop prediction problem in the sequence model. Besides, we also made our code available online 3. ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
174,
|
| 159 |
+
656,
|
| 160 |
+
825,
|
| 161 |
+
849
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "image",
|
| 167 |
+
"img_path": "images/f0257a3f1eb62a4fe298cadd284177e42c85bb65ae55acc03d90347e8c89aee8.jpg",
|
| 168 |
+
"image_caption": [
|
| 169 |
+
"Figure 1: An overview of our two models. Both models consist of an LSTM preprocessing layer, a match-LSTM layer and an Answer Pointer layer. For each match-LSTM in a particular direction, $\\bar { h } _ { i } ^ { \\mathrm { q } }$ , which is defined as $\\mathbf { H } ^ { \\mathrm { q } } \\alpha _ { i } ^ { \\mathsf { T } }$ , is computed using the $\\alpha$ in the corresponding direction, as described in Eqn. (2) "
|
| 170 |
+
],
|
| 171 |
+
"image_footnote": [],
|
| 172 |
+
"bbox": [
|
| 173 |
+
176,
|
| 174 |
+
102,
|
| 175 |
+
818,
|
| 176 |
+
381
|
| 177 |
+
],
|
| 178 |
+
"page_idx": 2
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"type": "text",
|
| 182 |
+
"text": "2 METHOD ",
|
| 183 |
+
"text_level": 1,
|
| 184 |
+
"bbox": [
|
| 185 |
+
174,
|
| 186 |
+
478,
|
| 187 |
+
281,
|
| 188 |
+
494
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 2
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "text",
|
| 194 |
+
"text": "In this section, we first briefly review match-LSTM and Pointer Net. These two pieces of existing work lay the foundation of our method. We then present our end-to-end neural architecture for machine comprehension. ",
|
| 195 |
+
"bbox": [
|
| 196 |
+
176,
|
| 197 |
+
511,
|
| 198 |
+
825,
|
| 199 |
+
554
|
| 200 |
+
],
|
| 201 |
+
"page_idx": 2
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "text",
|
| 205 |
+
"text": "2.1 MATCH-LSTM ",
|
| 206 |
+
"text_level": 1,
|
| 207 |
+
"bbox": [
|
| 208 |
+
174,
|
| 209 |
+
571,
|
| 210 |
+
321,
|
| 211 |
+
585
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 2
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "text",
|
| 217 |
+
"text": "In a recent work on learning natural language inference, we proposed a match-LSTM model for predicting textual entailment (Wang & Jiang, 2016). In textual entailment, two sentences are given where one is a premise and the other is a hypothesis. To predict whether the premise entails the hypothesis, the match-LSTM model goes through the tokens of the hypothesis sequentially. At each position of the hypothesis, attention mechanism is used to obtain a weighted vector representation of the premise. This weighted premise is then to be combined with a vector representation of the current token of the hypothesis and fed into an LSTM, which we call the match-LSTM. The matchLSTM essentially sequentially aggregates the matching of the attention-weighted premise to each token of the hypothesis and uses the aggregated matching result to make a final prediction. ",
|
| 218 |
+
"bbox": [
|
| 219 |
+
174,
|
| 220 |
+
598,
|
| 221 |
+
825,
|
| 222 |
+
723
|
| 223 |
+
],
|
| 224 |
+
"page_idx": 2
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"type": "text",
|
| 228 |
+
"text": "2.2 POINTER NET ",
|
| 229 |
+
"text_level": 1,
|
| 230 |
+
"bbox": [
|
| 231 |
+
174,
|
| 232 |
+
741,
|
| 233 |
+
312,
|
| 234 |
+
756
|
| 235 |
+
],
|
| 236 |
+
"page_idx": 2
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"type": "text",
|
| 240 |
+
"text": "Vinyals et al. (2015) proposed a Pointer Network (Ptr-Net) model to solve a special kind of problems where we want to generate an output sequence whose tokens must come from the input sequence. Instead of picking an output token from a fixed vocabulary, Ptr-Net uses attention mechanism as a pointer to select a position from the input sequence as an output symbol. The pointer mechanism has inspired some recent work on language processing (Gu et al., 2016; Kadlec et al., 2016). Here we adopt Ptr-Net in order to construct answers using tokens from the input text. ",
|
| 241 |
+
"bbox": [
|
| 242 |
+
174,
|
| 243 |
+
767,
|
| 244 |
+
825,
|
| 245 |
+
852
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 2
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "2.3 OUR METHOD ",
|
| 252 |
+
"text_level": 1,
|
| 253 |
+
"bbox": [
|
| 254 |
+
174,
|
| 255 |
+
868,
|
| 256 |
+
313,
|
| 257 |
+
882
|
| 258 |
+
],
|
| 259 |
+
"page_idx": 2
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"type": "text",
|
| 263 |
+
"text": "Formally, the problem we are trying to solve can be formulated as follows. We are given a piece of text, which we refer to as a passage, and a question related to the passage. The passage is represented by matrix $\\mathbf { P } \\in \\mathbb { R } ^ { d \\times P }$ , where $P$ is the length (number of tokens) of the passage and $d$ is the dimensionality of word embeddings. Similarly, the question is represented by matrix $\\breve { \\mathbf { Q } } \\in \\mathbb { R } ^ { d \\times Q }$ where $Q$ is the length of the question. Our goal is to identify a subsequence from the passage as the answer to the question. ",
|
| 264 |
+
"bbox": [
|
| 265 |
+
174,
|
| 266 |
+
895,
|
| 267 |
+
823,
|
| 268 |
+
924
|
| 269 |
+
],
|
| 270 |
+
"page_idx": 2
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"type": "text",
|
| 274 |
+
"text": "",
|
| 275 |
+
"bbox": [
|
| 276 |
+
174,
|
| 277 |
+
102,
|
| 278 |
+
825,
|
| 279 |
+
160
|
| 280 |
+
],
|
| 281 |
+
"page_idx": 3
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"type": "text",
|
| 285 |
+
"text": "As pointed out earlier, since the output tokens are from the input, we would like to adopt the Pointer Net for this problem. A straightforward way of applying Ptr-Net here is to treat an answer as a sequence of tokens from the input passage but ignore the fact that these tokens are consecutive in the original passage, because Ptr-Net does not make the consecutivity assumption. Specifically, we represent the answer as a sequence of integers $\\mathbf { a } = ( a _ { 1 } , a _ { 2 } , . . . )$ , where each $a _ { i }$ is an integer between 1 and $P$ , indicating a certain position in the passage. ",
|
| 286 |
+
"bbox": [
|
| 287 |
+
173,
|
| 288 |
+
166,
|
| 289 |
+
825,
|
| 290 |
+
251
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 3
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "Alternatively, if we want to ensure consecutivity, that is, if we want to ensure that we indeed select a subsequence from the passage as an answer, we can use the Ptr-Net to predict only the start and the end of an answer. In this case, the Ptr-Net only needs to select two tokens from the input passage, and all the tokens between these two tokens in the passage are treated as the answer. Specifically, we can represent the answer to be predicted as two integers $\\mathbf { a } = ( a _ { \\mathrm { s } } , a _ { \\mathrm { e } } )$ , where $a _ { s }$ an $a _ { \\mathrm { e } }$ are integers between 1 and $P$ . ",
|
| 297 |
+
"bbox": [
|
| 298 |
+
174,
|
| 299 |
+
257,
|
| 300 |
+
825,
|
| 301 |
+
340
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 3
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "text",
|
| 307 |
+
"text": "We refer to the first setting above as a sequence model and the second setting above as a boundary model. For either model, we assume that a set of training examples in the form of triplets $\\{ ( \\mathbf { P } _ { n } , \\mathbf { Q } _ { n } , \\mathbf { a } _ { n } ) \\} _ { n = 1 } ^ { N }$ are given. ",
|
| 308 |
+
"bbox": [
|
| 309 |
+
174,
|
| 310 |
+
348,
|
| 311 |
+
825,
|
| 312 |
+
391
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 3
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "An overview of the two neural network models are shown in Figure 1. Both models consist of three layers: (1) An LSTM preprocessing layer that preprocesses the passage and the question using LSTMs. (2) A match-LSTM layer that tries to match the passage against the question. (3) An Answer Pointer (Ans-Ptr) layer that uses Ptr-Net to select a set of tokens from the passage as the answer. The difference between the two models only lies in the third layer. ",
|
| 319 |
+
"bbox": [
|
| 320 |
+
173,
|
| 321 |
+
396,
|
| 322 |
+
825,
|
| 323 |
+
467
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 3
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "text",
|
| 329 |
+
"text": "LSTM Preprocessing Layer ",
|
| 330 |
+
"text_level": 1,
|
| 331 |
+
"bbox": [
|
| 332 |
+
174,
|
| 333 |
+
473,
|
| 334 |
+
369,
|
| 335 |
+
488
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 3
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "The purpose for the LSTM preprocessing layer is to incorporate contextual information into the representation of each token in the passage and the question. We use a standard one-directional LSTM (Hochreiter & Schmidhuber, 1997) to process the passage 4 and the question separately, as shown below: ",
|
| 342 |
+
"bbox": [
|
| 343 |
+
173,
|
| 344 |
+
494,
|
| 345 |
+
825,
|
| 346 |
+
549
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "equation",
|
| 352 |
+
"img_path": "images/3f9cd4df82b63f2ffd05b19720a358baf36abb54931dce857110d2c0f3d68670.jpg",
|
| 353 |
+
"text": "$$\n{ \\bf H } ^ { \\mathrm { p } } = \\overrightarrow { L S T M } ( { \\bf P } ) , ~ { \\bf H } ^ { \\mathrm { q } } = \\overrightarrow { L S T M } ( { \\bf Q } ) .\n$$",
|
| 354 |
+
"text_format": "latex",
|
| 355 |
+
"bbox": [
|
| 356 |
+
374,
|
| 357 |
+
546,
|
| 358 |
+
622,
|
| 359 |
+
569
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 3
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "text",
|
| 365 |
+
"text": "The resulting matrices $\\mathbf { H } ^ { \\mathrm { p } } \\in \\mathbb { R } ^ { l \\times P }$ and $\\mathbf { H } ^ { \\mathrm { q } } \\in \\mathbb { R } ^ { l \\times Q }$ are hidden representations of the passage and the question, where $l$ is the dimensionality of the hidden vectors. In other words, the $i ^ { \\mathrm { { t h } } }$ column vector $\\mathbf { h } _ { i } ^ { \\mathrm { p } }$ (or $\\mathbf { h } _ { i . } ^ { \\mathrm { q } . }$ ) in $\\mathbf { H } ^ { \\mathrm { p } }$ (or $\\mathbf { H } ^ { \\mathrm { q } }$ ) represents the $i ^ { \\mathrm { { t h } } }$ token in the passage (or the question) together with some contextual information from the left. ",
|
| 366 |
+
"bbox": [
|
| 367 |
+
173,
|
| 368 |
+
573,
|
| 369 |
+
825,
|
| 370 |
+
631
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 3
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "text",
|
| 376 |
+
"text": "Match-LSTM Layer ",
|
| 377 |
+
"text_level": 1,
|
| 378 |
+
"bbox": [
|
| 379 |
+
174,
|
| 380 |
+
637,
|
| 381 |
+
318,
|
| 382 |
+
652
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 3
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "text",
|
| 388 |
+
"text": "We apply the match-LSTM model (Wang & Jiang, 2016) proposed for textual entailment to our machine comprehension problem by treating the question as a premise and the passage as a hypothesis. The match-LSTM sequentially goes through the passage. At position $i$ of the passage, it first uses the standard word-by-word attention mechanism to obtain attention weight vector $\\vec { \\alpha } _ { i } \\in \\mathbb { R } ^ { 1 \\times Q }$ as follows: ",
|
| 389 |
+
"bbox": [
|
| 390 |
+
174,
|
| 391 |
+
659,
|
| 392 |
+
825,
|
| 393 |
+
729
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 3
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "equation",
|
| 399 |
+
"img_path": "images/85f7afb64261507a6b46f2180c82d05bb73a439fec1f5318c85afd9c817e635b.jpg",
|
| 400 |
+
"text": "$$\n\\begin{array} { r c l } { \\overrightarrow { \\mathbf { G } } _ { i } } & { = } & { \\mathrm { t a n h } ( \\mathbf { W } ^ { \\ P } \\mathbf { H } ^ { \\ P } + ( \\mathbf { W } ^ { \\ P } \\mathbf { h } _ { i } ^ { \\ P } + \\mathbf { W } ^ { \\Gamma } \\overrightarrow { \\mathbf { h } } _ { i - 1 } ^ { \\top } + \\mathbf { b } ^ { \\ P } ) \\otimes \\mathbf { e } _ { Q } ) , } \\\\ { \\overrightarrow { \\alpha } _ { i } } & { = } & { \\mathrm { s o f t m a x } ( \\mathbf { w } ^ { \\top } \\overrightarrow { \\mathbf { G } } _ { i } + b \\otimes \\mathbf { e } _ { Q } ) , } \\end{array}\n$$",
|
| 401 |
+
"text_format": "latex",
|
| 402 |
+
"bbox": [
|
| 403 |
+
297,
|
| 404 |
+
731,
|
| 405 |
+
696,
|
| 406 |
+
780
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 3
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "where $\\mathbf { W } ^ { \\mathrm { q } } , \\mathbf { W } ^ { \\mathrm { p } } , \\mathbf { W } ^ { \\mathrm { r } } \\in \\mathbb { R } _ { \\cdot } ^ { l \\times l }$ , $\\mathbf { b } ^ { \\mathrm { p } }$ , $\\mathbf { w } \\in \\mathbb { R } ^ { l \\times 1 }$ and $b \\in \\mathbb { R }$ are parameters to be learned, $\\vec { \\bf G } _ { i } \\in \\mathbb { R } ^ { l \\times Q }$ is the intermediate result, $\\vec { \\bf h } _ { i - 1 } ^ { \\mathrm { r } } \\in \\mathbb { R } ^ { l \\times 1 }$ is the hidden vector of the one-directional match-LSTM (to be explained below) at position $i - 1$ , and the outer product $\\left( \\cdot \\otimes \\mathbf { e } _ { Q } \\right)$ produces a matrix or row vector by repeating the vector or scalar on the left for $Q$ times. ",
|
| 413 |
+
"bbox": [
|
| 414 |
+
173,
|
| 415 |
+
786,
|
| 416 |
+
825,
|
| 417 |
+
849
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 3
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "text",
|
| 423 |
+
"text": "Essentially, the resulting attention weight $\\overrightarrow { \\alpha } _ { i , j }$ above indicates the degree of matching between the $i ^ { \\mathrm { { t h } } }$ token in the passage with the $j ^ { \\mathrm { t h } }$ token in the question. Next, we use the attention weight vector $\\vec { \\alpha _ { i } }$ to obtain a weighted version of the question and combine it with the current token of the passage to form a vector $\\overline { { \\mathbf { z } } } _ { i }$ : ",
|
| 424 |
+
"bbox": [
|
| 425 |
+
174,
|
| 426 |
+
853,
|
| 427 |
+
823,
|
| 428 |
+
886
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 3
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "",
|
| 435 |
+
"bbox": [
|
| 436 |
+
171,
|
| 437 |
+
102,
|
| 438 |
+
825,
|
| 439 |
+
133
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 4
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "equation",
|
| 445 |
+
"img_path": "images/ad4e851c43d11f470f83820054d3db8a981c4051a48d7f6eedc81045d29b882f.jpg",
|
| 446 |
+
"text": "$$\n\\begin{array} { r } { \\vec { \\bf z } _ { i } = \\left[ \\frac { { \\bf h } _ { i } ^ { \\mathrm { p } } } { { \\bf H } ^ { \\mathrm { q } } \\vec { \\alpha } _ { i } ^ { \\top } } \\right] , } \\end{array}\n$$",
|
| 447 |
+
"text_format": "latex",
|
| 448 |
+
"bbox": [
|
| 449 |
+
424,
|
| 450 |
+
154,
|
| 451 |
+
539,
|
| 452 |
+
190
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 4
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "where $\\mathbf { H } ^ { \\mathrm { q } } \\ \\in \\ \\mathbb { R } ^ { l \\times Q } , \\ \\vec { \\alpha } _ { i } \\ \\in \\ \\mathbb { R } ^ { 1 \\times Q }$ and $\\mathbf { h } _ { i } ^ { \\mathsf { p } } \\in \\mathbb { R } ^ { l \\times 1 }$ . This vector $\\vec { \\textbf { z } } _ { i }$ is fed into a standard onedirectional LSTM to form our so-called match-LSTM: ",
|
| 459 |
+
"bbox": [
|
| 460 |
+
173,
|
| 461 |
+
200,
|
| 462 |
+
825,
|
| 463 |
+
231
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 4
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "equation",
|
| 469 |
+
"img_path": "images/402b8b6826adbd8b294f810ac51cf4b6949c576ae0e1128f22e003c37310533b.jpg",
|
| 470 |
+
"text": "$$\n\\begin{array} { r l r } { \\overrightarrow { \\mathbf { h } } _ { i } ^ { \\mathrm { r } } } & { = } & { \\overrightarrow { L S T M } ( \\overrightarrow { \\mathbf { z } } _ { i } , \\overrightarrow { \\mathbf { h } } _ { i - 1 } ^ { \\mathrm { r } } ) , } \\end{array}\n$$",
|
| 471 |
+
"text_format": "latex",
|
| 472 |
+
"bbox": [
|
| 473 |
+
400,
|
| 474 |
+
231,
|
| 475 |
+
596,
|
| 476 |
+
253
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 4
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "where $\\vec { \\bf h } _ { i } ^ { \\mathrm { r } } \\in \\mathbb { R } ^ { l \\times 1 }$ ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
174,
|
| 485 |
+
257,
|
| 486 |
+
299,
|
| 487 |
+
277
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 4
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "text",
|
| 493 |
+
"text": "We further build a similar match-LSTM in the reverse direction. The purpose is to obtain a representation that encodes the contexts from both directions for each token in the passage. ",
|
| 494 |
+
"bbox": [
|
| 495 |
+
174,
|
| 496 |
+
282,
|
| 497 |
+
823,
|
| 498 |
+
313
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 4
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "Let $\\vec { \\bf H ^ { r } } \\in \\mathbb { R } ^ { l \\times P }$ represent the hidden states $[ \\vec { \\bf h } _ { 1 } ^ { \\mathrm { r } } , \\vec { \\bf h } _ { 2 } ^ { \\mathrm { r } } , \\ldots , \\vec { \\bf h } _ { P } ^ { \\mathrm { r } } ]$ and $\\smash { \\mathbf { \\overleftarrow { H } ^ { r } } } \\in \\mathbb { R } ^ { l \\times P }$ represent $[ \\overleftarrow { \\mathbf { h } } _ { 1 } ^ { \\mathrm { r } } , \\overleftarrow { \\mathbf { h } } _ { 2 } ^ { \\mathrm { r } } , \\ldots , \\overleftarrow { \\mathbf { h } } _ { P } ^ { \\mathrm { r } } ]$ , the hidden states of match-LSTM in the reverse direction. We define ${ \\bf H } ^ { \\mathrm { r } } \\in { \\bf \\Phi }$ $\\mathbb { R } ^ { 2 l \\times P }$ as the concatenation of the two: ",
|
| 505 |
+
"bbox": [
|
| 506 |
+
173,
|
| 507 |
+
316,
|
| 508 |
+
825,
|
| 509 |
+
369
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 4
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "equation",
|
| 515 |
+
"img_path": "images/c7d08d45a72385d65f2e1ca6402ab62a222098691c3f07bf1b8dbe214a84b991.jpg",
|
| 516 |
+
"text": "$$\n\\begin{array} { r l r } { \\bf { H } ^ { \\mathrm { r } } } & { = } & { \\left[ \\begin{array} { l } { \\vec { \\bf { H } } ^ { \\mathrm { r } } } \\\\ { \\vec { \\bf { H } } ^ { \\mathrm { r } } } \\end{array} \\right] . } \\end{array}\n$$",
|
| 517 |
+
"text_format": "latex",
|
| 518 |
+
"bbox": [
|
| 519 |
+
441,
|
| 520 |
+
371,
|
| 521 |
+
557,
|
| 522 |
+
415
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 4
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "Answer Pointer Layer ",
|
| 529 |
+
"text_level": 1,
|
| 530 |
+
"bbox": [
|
| 531 |
+
174,
|
| 532 |
+
424,
|
| 533 |
+
331,
|
| 534 |
+
439
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 4
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "text",
|
| 540 |
+
"text": "The top layer, the Answer Pointer (Ans-Ptr) layer, is motivated by the Pointer Net introduced by Vinyals et al. (2015). This layer uses the sequence $\\mathbf { H } ^ { \\mathrm { r } }$ as input. Recall that we have two different models: The sequence model produces a sequence of answer tokens but these tokens may not be consecutive in the original passage. The boundary model produces only the start token and the end token of the answer, and then all the tokens between these two in the original passage are considered to be the answer. We now explain the two models separately. ",
|
| 541 |
+
"bbox": [
|
| 542 |
+
173,
|
| 543 |
+
445,
|
| 544 |
+
825,
|
| 545 |
+
530
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 4
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "The Sequence Model: Recall that in the sequence model, the answer is represented by a sequence of integers $\\mathbf { a } = ( a _ { 1 } , a _ { 2 } , \\ldots )$ indicating the positions of the selected tokens in the original passage. The Ans-Ptr layer models the generation of these integers in a sequential manner. Because the length of an answer is not fixed, in order to stop generating answer tokens at certain point, we allow each $a _ { k }$ to take up an integer value between 1 and $P + 1$ , where $P + 1$ is a special value indicating the end of the answer. Once $a _ { k }$ is set to be $P + 1$ , the generation of the answer stops. ",
|
| 552 |
+
"bbox": [
|
| 553 |
+
173,
|
| 554 |
+
536,
|
| 555 |
+
825,
|
| 556 |
+
622
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 4
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "In order to generate the $k ^ { \\mathrm { { t h } } }$ answer token indicated by $a _ { k }$ , first, the attention mechanism is used again to obtain an attention weight vector $\\beta _ { k } \\ \\in \\ \\mathbb { R } ^ { 1 \\times \\bar { ( } P + 1 ) }$ , where $\\beta _ { k , j }$ $( 1 \\leq j \\leq P + 1 )$ is the probability of selecting the $j ^ { \\mathrm { t h } }$ token from the passage as the $k ^ { \\mathrm { { t h } } }$ token in the answer, and $\\beta _ { k , ( P + 1 ) }$ is the probability of stopping the answer generation at position $k$ . $\\beta _ { k }$ is modeled as follows: ",
|
| 563 |
+
"bbox": [
|
| 564 |
+
174,
|
| 565 |
+
627,
|
| 566 |
+
825,
|
| 567 |
+
688
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 4
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "equation",
|
| 573 |
+
"img_path": "images/0b0551b6d8c0c3e9ceace7f2beb10b0e541b2db8093eaf5e13c6657cb124a49d.jpg",
|
| 574 |
+
"text": "$$\n\\begin{array} { r c l } { \\mathbf { F } _ { k } } & { = } & { \\operatorname { t a n h } ( \\mathbf { V } \\widetilde { \\mathbf { H } } ^ { \\mathrm { r } } + ( \\mathbf { W } ^ { \\mathrm { a } } \\mathbf { h } _ { k - 1 } ^ { \\mathrm { a } } + \\mathbf { b } ^ { a } ) \\otimes \\mathbf { e } _ { ( P + 1 ) } ) , } \\\\ { \\beta _ { k } } & { = } & { \\operatorname { s o f t m a x } ( \\mathbf { v } ^ { \\mathsf { T } } \\mathbf { F } _ { k } + c \\otimes \\mathbf { e } _ { ( P + 1 ) } ) , } \\end{array}\n$$",
|
| 575 |
+
"text_format": "latex",
|
| 576 |
+
"bbox": [
|
| 577 |
+
325,
|
| 578 |
+
690,
|
| 579 |
+
669,
|
| 580 |
+
732
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 4
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "where $\\widetilde { \\mathbf { H } } ^ { \\mathrm { r } } \\in \\mathbb { R } ^ { 2 l \\times ( P + 1 ) }$ is the concatenation of $\\mathbf { H } ^ { \\mathrm { r } }$ with a zero vector, defined as $\\widetilde { \\bf H } ^ { \\mathrm { r } } = [ { \\bf H } ^ { \\mathrm { r } } ; { \\bf 0 } ]$ , $\\mathbf { V } \\in \\mathbb { R } ^ { l \\times 2 l } , \\mathbf { W } ^ { \\mathrm { a } } \\in \\mathbb { R } ^ { l \\times l } , \\mathbf { b } ^ { a } , \\mathbf { v } \\in \\mathbb { R } ^ { l \\times 1 }$ and $c \\in \\mathbb { R }$ are parameters to be learned, $\\mathbf { F } _ { k } \\in \\mathbb { R } ^ { l \\times ( P + 1 ) }$ is the intermediate result, $\\left( \\cdot \\otimes { \\mathbf e } _ { \\left( P + 1 \\right) } \\right)$ follows the same definition as before, and $\\mathbf { h } _ { k - 1 } ^ { \\mathrm { a } } \\in \\mathbb { R } ^ { l \\times 1 }$ is the hidden vector at position $k - 1$ of an answer LSTM as defined below: ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
173,
|
| 589 |
+
736,
|
| 590 |
+
825,
|
| 591 |
+
796
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 4
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "equation",
|
| 597 |
+
"img_path": "images/3d535e2f9291de4c96efecec12b43810d04842e269511473ee8552d063b5a581.jpg",
|
| 598 |
+
"text": "$$\n\\mathbf { h } _ { k } ^ { \\mathrm { a } } = \\overrightarrow { L S T M } ( \\widetilde { \\mathbf { H } } ^ { \\mathrm { r } } \\beta _ { k } ^ { \\intercal } , \\mathbf { h } _ { k - 1 } ^ { \\mathrm { a } } ) .\n$$",
|
| 599 |
+
"text_format": "latex",
|
| 600 |
+
"bbox": [
|
| 601 |
+
392,
|
| 602 |
+
799,
|
| 603 |
+
573,
|
| 604 |
+
821
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 4
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "text",
|
| 610 |
+
"text": "We can then model the probability of generating the answer sequence as ",
|
| 611 |
+
"bbox": [
|
| 612 |
+
176,
|
| 613 |
+
832,
|
| 614 |
+
647,
|
| 615 |
+
848
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 4
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "equation",
|
| 621 |
+
"img_path": "images/7af02595c4cabfba2eed3ff69c83c808ef375253d0783fee8f78b1891b035f98.jpg",
|
| 622 |
+
"text": "$$\n\\begin{array} { l l l } { p ( { \\bf a } | { \\bf H ^ { r } } ) } & { = } & { \\displaystyle \\prod _ { k } p ( a _ { k } | a _ { 1 } , a _ { 2 } , \\ldots , a _ { k - 1 } , { \\bf H ^ { r } } ) , } \\end{array}\n$$",
|
| 623 |
+
"text_format": "latex",
|
| 624 |
+
"bbox": [
|
| 625 |
+
343,
|
| 626 |
+
852,
|
| 627 |
+
651,
|
| 628 |
+
886
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 4
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "and ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
173,
|
| 637 |
+
890,
|
| 638 |
+
200,
|
| 639 |
+
904
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 4
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "equation",
|
| 645 |
+
"img_path": "images/2a6d21719e8af2bb784842c098c3ea59cd124fe6e4403fd0c9f1336359ad17ee.jpg",
|
| 646 |
+
"text": "$$\n\\begin{array} { r c l } { p ( a _ { k } = j | a _ { 1 } , a _ { 2 } , \\ldots , a _ { k - 1 } , \\mathbf { H } ^ { \\mathrm { r } } ) } & { = } & { \\beta _ { k , j } . } \\end{array}\n$$",
|
| 647 |
+
"text_format": "latex",
|
| 648 |
+
"bbox": [
|
| 649 |
+
354,
|
| 650 |
+
906,
|
| 651 |
+
642,
|
| 652 |
+
928
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 4
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "To train the model, we minimize the following loss function based on the training examples: ",
|
| 659 |
+
"bbox": [
|
| 660 |
+
169,
|
| 661 |
+
103,
|
| 662 |
+
776,
|
| 663 |
+
118
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 5
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "equation",
|
| 669 |
+
"img_path": "images/0f2e784d1470c2da81246f67876aac0bdd1271025ec52b638baf190189ad6f48.jpg",
|
| 670 |
+
"text": "$$\n- \\sum _ { n = 1 } ^ { N } \\log p ( \\mathbf { a } _ { n } | \\mathbf { P } _ { n } , \\mathbf { Q } _ { n } ) .\n$$",
|
| 671 |
+
"text_format": "latex",
|
| 672 |
+
"bbox": [
|
| 673 |
+
393,
|
| 674 |
+
122,
|
| 675 |
+
566,
|
| 676 |
+
166
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 5
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "The Boundary Model: The boundary model works in a way very similar to the sequence model above, except that instead of predicting a sequence of indices $a _ { 1 } , a _ { 2 } , \\dotsc$ , we only need to predict two indices $a _ { s }$ and $a _ { \\mathrm { e } }$ . So the main difference from the sequence model above is that in the boundary model we do not need to add the zero padding to $\\mathbf { H } ^ { \\mathrm { r } }$ , and the probability of generating an answer is simply modeled as ",
|
| 683 |
+
"bbox": [
|
| 684 |
+
173,
|
| 685 |
+
176,
|
| 686 |
+
825,
|
| 687 |
+
247
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 5
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "equation",
|
| 693 |
+
"img_path": "images/742afdd819bc2d74e7c83309e5ec27d174a32206f583fdec326ed9cc6af5a0f3.jpg",
|
| 694 |
+
"text": "$$\n\\begin{array} { r l r } { p ( { \\bf a } | { \\bf H ^ { r } } ) } & { = } & { p ( a _ { \\mathrm { s } } | { \\bf H ^ { r } } ) p ( a _ { \\mathrm { e } } | a _ { \\mathrm { s } } , { \\bf H ^ { r } } ) . } \\end{array}\n$$",
|
| 695 |
+
"text_format": "latex",
|
| 696 |
+
"bbox": [
|
| 697 |
+
375,
|
| 698 |
+
251,
|
| 699 |
+
622,
|
| 700 |
+
272
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 5
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "As this boundary model could point to a span covering too many tokens without any restriction, we try to manually limit the length of the predicted span and then search the span with the highest probability computed by $p ( \\mathbf { a } _ { s } ) \\times p ( \\mathbf { a } _ { e } | \\mathbf { a } _ { s } )$ as the answer. ",
|
| 707 |
+
"bbox": [
|
| 708 |
+
174,
|
| 709 |
+
281,
|
| 710 |
+
825,
|
| 711 |
+
325
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 5
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "3 EXPERIMENTS ",
|
| 718 |
+
"text_level": 1,
|
| 719 |
+
"bbox": [
|
| 720 |
+
174,
|
| 721 |
+
344,
|
| 722 |
+
326,
|
| 723 |
+
359
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 5
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "In this section, we present our experiment results and perform some analyses to better understand how our models works. ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
174,
|
| 732 |
+
376,
|
| 733 |
+
823,
|
| 734 |
+
404
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 5
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "3.1 DATA ",
|
| 741 |
+
"text_level": 1,
|
| 742 |
+
"bbox": [
|
| 743 |
+
174,
|
| 744 |
+
420,
|
| 745 |
+
253,
|
| 746 |
+
434
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 5
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "We use the Stanford Question Answering Dataset (SQuAD) v1.1 and the human-generated Microsoft MAchine Reading COmprehension (MSMARCO) dataset v1.1 to conduct our experiments. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
176,
|
| 755 |
+
445,
|
| 756 |
+
821,
|
| 757 |
+
474
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 5
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "Passages in SQuAD come from 536 articles in Wikipedia covering a wide range of topics. Each passage is a single paragraph from a Wikipedia article, and each passage has around 5 questions associated with it. In total, there are 23,215 passages and 107,785 questions. The data has been split into a training set (with 87,599 question-answer pairs), a development set (with 10,570 questionanswer pairs) and a hidden test set. ",
|
| 764 |
+
"bbox": [
|
| 765 |
+
174,
|
| 766 |
+
481,
|
| 767 |
+
825,
|
| 768 |
+
551
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 5
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "For the MSMARCO dataset, the questions are user queries issued to the Bing search engine, the context passages are real Web documents and the answers are human-generated. We select the span that has the highest F1 score with the gold standard answer for training and only predict the span in the passages during evaluation. The data has been split into a training set (82326 pairs), a development set (10047 pairs) and a test set (9650 pairs). ",
|
| 775 |
+
"bbox": [
|
| 776 |
+
174,
|
| 777 |
+
559,
|
| 778 |
+
825,
|
| 779 |
+
628
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 5
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "3.2 EXPERIMENT SETTINGS ",
|
| 786 |
+
"text_level": 1,
|
| 787 |
+
"bbox": [
|
| 788 |
+
174,
|
| 789 |
+
645,
|
| 790 |
+
382,
|
| 791 |
+
659
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 5
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "We first tokenize all the passages, questions and answers. We use word embeddings from GloVe (Pennington et al., 2014) to initialize the model. Words not found in GloVe are initialized as zero vectors. The word embeddings are not updated during the training of the model. ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
176,
|
| 800 |
+
670,
|
| 801 |
+
825,
|
| 802 |
+
713
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 5
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "The dimensionality $l$ of the hidden layers is set to be 150. We use ADAMAX (Kingma & Ba, 2015) with the coefficients $\\beta _ { 1 } = 0 . 9$ and $\\beta _ { 2 } = 0 . 9 9 9$ to optimize the model. Each update is computed through a minibatch of 30 instances. We do not use L2-regularization. ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
174,
|
| 811 |
+
719,
|
| 812 |
+
825,
|
| 813 |
+
762
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 5
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "For the SQuAD dataset, the performance is measured by two metrics: percentage of exact match with the ground truth answers and word-level F1 score when comparing the tokens in the predicted answers with the tokens in the ground truth answers. Note that in the development set and the test set each question has around three ground truth answers. F1 scores with the best matching answers are used to compute the average F1 score. For the MSMARCO dataset, the metrics in the official tool of MSMARCO evaluation are BLEU-1/2/3/4 and Rouge-L, which are widely used in many domains. ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
174,
|
| 822 |
+
768,
|
| 823 |
+
825,
|
| 824 |
+
853
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 5
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "3.3 RESULTS ",
|
| 831 |
+
"text_level": 1,
|
| 832 |
+
"bbox": [
|
| 833 |
+
174,
|
| 834 |
+
869,
|
| 835 |
+
277,
|
| 836 |
+
883
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 5
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "The SQuAD and MSMARCO results of our models as well as the results of the baselines (Rajpurkar et al., 2016; Yu et al., 2016) are shown in Table 2. For the “LSTM with Ans-Ptr” models, they are the experiments with the ablation of attention mechanism in match-LSTM. Specifically, we use the final representation of the question to replace the weighted sum of the question representations. For the MSMARCO dataset, as the context for each question is consisted of around 10 documents, the “Golden Passage” is to directly use the human labeled document which could answer the question as the prediction. ",
|
| 843 |
+
"bbox": [
|
| 844 |
+
173,
|
| 845 |
+
895,
|
| 846 |
+
823,
|
| 847 |
+
922
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 5
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "table",
|
| 853 |
+
"img_path": "images/56f436d905695a601721ea66352f6537f9516eb9215c34fe7400d842fea8e4f8.jpg",
|
| 854 |
+
"table_caption": [
|
| 855 |
+
"Table 2: Experiment Results on SQuAD and MSMARCO datasets. Here “LSTM with Ans-Ptr” removes the attention mechanism in match-LSTM (mLSTM) by using the final state of the LSTM for the question to replace the weighted sum of all the states. Our best boundary model is the further tuned model and its ablation study is shown in Table 4. “en” refers to ensemble method. "
|
| 856 |
+
],
|
| 857 |
+
"table_footnote": [],
|
| 858 |
+
"table_body": "<table><tr><td></td><td colspan=\"4\">SQuAD</td><td>MSMARCO</td></tr><tr><td></td><td colspan=\"2\">Exact Match</td><td colspan=\"2\">F1</td><td>BLEU1/2/3/4 /Rouge-L</td></tr><tr><td></td><td>Dev</td><td>Test</td><td>Dev</td><td>Test</td><td>Dev&Test</td></tr><tr><td>Human</td><td>80.3</td><td>77.0</td><td>90.5</td><td>86.8</td><td>-& 46/-l-l- /47</td></tr><tr><td>Golden Passage</td><td>-</td><td>-</td><td>-</td><td>1</td><td>19.6/18.8/18.1/17.5/32.3&-</td></tr><tr><td>LR (Rajpurkar et al., 2016)</td><td>40.0</td><td>40.4</td><td>51.0</td><td>51.0</td><td></td></tr><tr><td>DCR (Yu et al., 2016)</td><td>62.5</td><td>62.5</td><td>71.2</td><td>71.0</td><td></td></tr><tr><td>LSTM with Ans-Ptr (Sequence)</td><td>37.7</td><td>-</td><td>48.5</td><td>-</td><td>10.3/7.2 /5.6 /4.6 /21.6&-</td></tr><tr><td>LSTM with Ans-Ptr (Boundary)</td><td>45.2</td><td></td><td>55.3</td><td></td><td>32.0 /25.3/22.2/20.4/32.3&-</td></tr><tr><td>mLSTM with Ans-Ptr (Sequence)</td><td>54.4</td><td>=</td><td>68.2</td><td>1</td><td>12.5 /9.2 /7.5 /6.5 /22.5 & -</td></tr><tr><td>mLSTM with Ans-Ptr (Boundary)</td><td>63.0</td><td></td><td>72.7</td><td>=</td><td>32.9 /26.4/23.2/21.6/33.8&-</td></tr><tr><td>Our best boundary model</td><td>67.0</td><td>66.9</td><td>77.2</td><td>77.1</td><td>40.1/33.3/30.1/28.2/37.2 & 40.7 / 33.9 / 30.6 /28.7 / 37.3</td></tr><tr><td>mLSTM with Ans-Ptr (Boundary+en)</td><td>67.6</td><td>67.9</td><td></td><td></td><td></td></tr><tr><td>Our best boundary model (en)</td><td>71.3</td><td>72.6</td><td>76.8 80.0</td><td>77.0 80.8</td><td></td></tr></table>",
|
| 859 |
+
"bbox": [
|
| 860 |
+
173,
|
| 861 |
+
101,
|
| 862 |
+
823,
|
| 863 |
+
319
|
| 864 |
+
],
|
| 865 |
+
"page_idx": 6
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"type": "table",
|
| 869 |
+
"img_path": "images/126b7f50d861ff2b24261f0ed8a17729f946a6a75d973aa153a6a0f68b3cfd0b.jpg",
|
| 870 |
+
"table_caption": [
|
| 871 |
+
"Table 3: Statistical analysis on the development datasets. #w: number of words on average; P: passage; Q: question; A: answer; raw: raw data from the development dataset; seq/bou: the answers generated by the sequence/boundary models with match-LSTM. "
|
| 872 |
+
],
|
| 873 |
+
"table_footnote": [],
|
| 874 |
+
"table_body": "<table><tr><td>SQuAD #w in A/Q/P</td><td></td><td>MSMARCO #w in A/Q/P</td></tr><tr><td>raw</td><td>3.1/11/141</td><td>16.3/6/667</td></tr><tr><td>seq</td><td>2.4/-/-</td><td>6.7 /-/-</td></tr><tr><td>bou</td><td>3.0/-/-</td><td>15.7/ -/ -</td></tr></table>",
|
| 875 |
+
"bbox": [
|
| 876 |
+
174,
|
| 877 |
+
425,
|
| 878 |
+
416,
|
| 879 |
+
505
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 6
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "table",
|
| 885 |
+
"img_path": "images/f546fa9d4125fbaaf1f1ae87f3a7c44ed8d8e80ad539ebd9437c377b266ed13a.jpg",
|
| 886 |
+
"table_caption": [
|
| 887 |
+
"Table 4: Ablation study for our best boundary model on the development datasets. Our best model is a further tuned boundary model by considering “bi-Ans-Ptr” which adds bidirectional answer pointer, “deep” which adds another twolayer bi-directional LSTMs between the match-LSTM and the Answer Pointer layers, and “elem” which adds elementwise comparison , $( \\mathbf { h } _ { i } ^ { \\mathrm { p } } - \\mathbf { H } ^ { \\mathrm { q } } \\alpha _ { i } ^ { \\mathsf { T } } )$ and $( \\mathbf { h } _ { i } ^ { \\mathrm { p } } \\odot \\mathbf { H } ^ { \\mathrm { q } } \\alpha _ { i } ^ { \\mathsf { T } } )$ , into Eqn 3. “-pre-LSTM” refers to removing the pre-processing layer. "
|
| 888 |
+
],
|
| 889 |
+
"table_footnote": [],
|
| 890 |
+
"table_body": "<table><tr><td></td><td>SQuAD EM&F1</td><td>MSMARCO BLEU1/2/3/4&Rouge-L</td></tr><tr><td>Best model</td><td>67.0 & 77.2</td><td>40.1/33.3/30.1/28.2 & 37.2</td></tr><tr><td>-bi-Ans-Ptr</td><td>66.5 & 76.8</td><td>39.9/32.8/29.6/27.9 & 36.7</td></tr><tr><td>-deep</td><td>65.9 & 75.8</td><td>39.6/32.6/29.4/27.4& 35.9</td></tr><tr><td>-elem</td><td>65.2 & 75.4</td><td>38.1/31.4/28.3/26.5 & 35.5</td></tr><tr><td>-pre-LSTM</td><td>64.0 & 72.9</td><td>39.6/32.8/29.8/27.7& 36.3</td></tr></table>",
|
| 891 |
+
"bbox": [
|
| 892 |
+
449,
|
| 893 |
+
412,
|
| 894 |
+
808,
|
| 895 |
+
517
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 6
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "",
|
| 902 |
+
"bbox": [
|
| 903 |
+
174,
|
| 904 |
+
680,
|
| 905 |
+
825,
|
| 906 |
+
750
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 6
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "From the results in Table 2, we can see that the boundary model could clearly outperform the sequence model in a big margin on both datasets. We hypothesis that the sequence model is more likely to stop word generation earlier, and the boundary model can somehow overcome this problem. We have a statistical analysis on the answers generated by our sequence and boundary models shown in Table 3. We can see that the length of the answers generated by the sequence model is much shorter than the ground truth. Especially for the MSMARCO task where the answers are usually much longer, the sequence model could only generate 7 words on average, while the ground truth answers are 16 on average and the boundary model could generate nearly the same number of words with the ground truth. Several answers generated by our models are shown in Appendix A. From Table 2, we can also see that the performance gets poorer by removing the attention mechanism in match-LSTM, while for the MSMARCO dataset, the attention mechanism effects less, with no more than 2 percent reduction in BLEU and Rouge-L scores by attention mechanism ablation. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
174,
|
| 915 |
+
757,
|
| 916 |
+
825,
|
| 917 |
+
924
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 6
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "Based on the effectiveness of boundary pointer and match-LSTM, we conduct further exploration of the boundary model by adding element-wise comparison $( \\mathbf { h } _ { i } ^ { \\mathrm { p } } { - } \\mathbf { H } ^ { \\mathrm { q } } \\alpha _ { i } ^ { \\mathsf { T } } )$ and $( \\mathbf { h } _ { i } ^ { \\mathrm { p } } \\odot \\mathbf { H } ^ { \\mathrm { q } } \\alpha _ { i } ^ { \\mathsf { T } } )$ into Eqn 3 in match-LSTM layer, adding 2 more bi-directional LSTM layers between match-LSTM and Ans-Ptr layers, and adding bi-directional Ans-Ptr. We show the ablation study of this further tuned model in Table 4. We can see that adding element-wise matching could make the biggest improvement for our boundary model. We also try to remove the phrase-level representation by removing the pre-process LSTM and using the word-level representations as the inputs of match-LSTM. Interestingly, we find the phrase-level representation effects little on the MSMARCO task. ",
|
| 924 |
+
"bbox": [
|
| 925 |
+
174,
|
| 926 |
+
103,
|
| 927 |
+
825,
|
| 928 |
+
214
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 7
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "Overall, we can see that both of our match-LSTM models have clearly outperformed the logistic regression model by Rajpurkar et al. (2016), which relies on carefully designed features. The improvement of our models over the logistic regression model shows that our end-to-end neural network models without much feature engineering are very effective on these tasks and datasets. Our boundary model also outperformed the DCR model (Yu et al., 2016), which maximizes the probability of the gold standard span from all the candidate spans through a neural network structure. ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
174,
|
| 937 |
+
222,
|
| 938 |
+
825,
|
| 939 |
+
305
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 7
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "text",
|
| 945 |
+
"text": "3.4 FURTHER ANALYSES ",
|
| 946 |
+
"text_level": 1,
|
| 947 |
+
"bbox": [
|
| 948 |
+
174,
|
| 949 |
+
332,
|
| 950 |
+
359,
|
| 951 |
+
344
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 7
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "image",
|
| 957 |
+
"img_path": "images/864acbb39a507e6729b31bfe92a1fcef705d8bb019c02b3fba961e7dcf7aa7e5.jpg",
|
| 958 |
+
"image_caption": [
|
| 959 |
+
"Figure 2: Performance breakdown by answer lengths and question types on SQuAD development dataset. Top: Plot (1) shows the performance of our two models (where $s$ refers to the sequence model , $^ b$ refers to the boundary model, and $e$ refers to the ensemble boundary model) over answers with different lengths. Plot (2) shows the numbers of answers with different lengths. Bottom: Plot (3) shows the performance our the two models on different types of questions. Plot (4) shows the numbers of different types of questions. "
|
| 960 |
+
],
|
| 961 |
+
"image_footnote": [],
|
| 962 |
+
"bbox": [
|
| 963 |
+
183,
|
| 964 |
+
376,
|
| 965 |
+
808,
|
| 966 |
+
676
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 7
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "To better understand the strengths and weaknesses of our models, we perform some further analyses of the results below. ",
|
| 973 |
+
"bbox": [
|
| 974 |
+
173,
|
| 975 |
+
805,
|
| 976 |
+
823,
|
| 977 |
+
833
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 7
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "First, we suspect that longer answers are harder to predict. To verify this hypothesis, we analysed the performance in terms of both exact match and F1 score with respect to the answer length on the development set, as shown in Figure 2. For example, for questions whose answers contain more than 9 tokens, the F1 score of the boundary model drops to around $55 \\%$ and the exact match score drops to only around $30 \\%$ , compared to the F1 score and exact match score of close to $72 \\%$ and $67 \\%$ , respectively, for questions with single-token answers. And that supports our hypothesis. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
174,
|
| 986 |
+
840,
|
| 987 |
+
825,
|
| 988 |
+
924
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 7
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "image",
|
| 994 |
+
"img_path": "images/eb921479c5383e25d5c35305dd8dad9a57ee199afeccc9f323e1c272c7d45db1.jpg",
|
| 995 |
+
"image_caption": [],
|
| 996 |
+
"image_footnote": [],
|
| 997 |
+
"bbox": [
|
| 998 |
+
183,
|
| 999 |
+
106,
|
| 1000 |
+
816,
|
| 1001 |
+
435
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 8
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "image",
|
| 1007 |
+
"img_path": "images/cea1279cd9a9594b6feb7c27a9741a652cf6131a826623c46358ea527f2b9fd8.jpg",
|
| 1008 |
+
"image_caption": [
|
| 1009 |
+
"Answer: European Parliament and the Council of the European Union ",
|
| 1010 |
+
"Figure 3: Visualization of the attention weights $\\alpha$ for four questions. The first three questions share the same paragraph. The title is the answer predicted by our model. "
|
| 1011 |
+
],
|
| 1012 |
+
"image_footnote": [],
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
183,
|
| 1015 |
+
458,
|
| 1016 |
+
816,
|
| 1017 |
+
594
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 8
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "Next, we analyze the performance of our models on different groups of questions, as shown in Figure 2. We use a crude way to split the questions into different groups based on a set of question words we have defined, including “what,” “how,” “who,” “when,” “which,” “where,” and “why.” These different question words roughly refer to questions with different types of answers. For example, “when” questions look for temporal expressions as answers, whereas “where” questions look for locations as answers. According to the performance on the development dataset, our models work the best for “when” questions. This may be because in this dataset temporal expressions are relatively easier to recognize. Other groups of questions whose answers are noun phrases, such as “what” questions, “which” questions and “where” questions, also get relatively better results. On the other hand, “why” questions are the hardest to answer. This is not surprising because the answers to “why” questions can be very diverse, and they are not restricted to any certain type of phrases. ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
174,
|
| 1026 |
+
680,
|
| 1027 |
+
825,
|
| 1028 |
+
833
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 8
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Finally, we would like to check whether the attention mechanism used in the match-LSTM layer is effective in helping the model locate the answer. We show the attention weights $\\alpha$ in Figure 3. In the figure the darker the color is the higher the weight is. We can see that some words have been well aligned based on the attention weights. For example, the word “German” in the passage is aligned well to the word “language” in the first question, and the model successfully predicts “German” as the answer to the question. For the question word “who” in the second question, the word “teacher” actually receives relatively higher attention weight, and the model has predicted the phrase “Martin Sekulic” after that as the answer, which is correct. For the third question that starts with “why”, the attention weights are more evenly distributed and it is not clear which words have been aligned to “why”. For the last question, we can see that the word knowledge needed for generating the answer can also be detected by match-LSTM. For example, the words “European”, “Parliament”, “Council”, “European” and “Union” have higher attention weights on “governing” in the question. Even though our models can solve this type of questions, they are still not able to solve the questions that need multi-sentences reasoning. More answers generated by our models for the questions related to different kinds of reasoning are shown in Appendix B. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
174,
|
| 1037 |
+
840,
|
| 1038 |
+
825,
|
| 1039 |
+
924
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 8
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
174,
|
| 1048 |
+
103,
|
| 1049 |
+
825,
|
| 1050 |
+
229
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 9
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "4 RELATED WORK ",
|
| 1057 |
+
"text_level": 1,
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
176,
|
| 1060 |
+
251,
|
| 1061 |
+
343,
|
| 1062 |
+
267
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 9
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Machine comprehension of text has gained much attention in recent years, and increasingly researchers are building data-drive, end-to-end neural network models for the task. We will first review the recently released datasets and then some end-to-end models on this task. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
176,
|
| 1071 |
+
285,
|
| 1072 |
+
823,
|
| 1073 |
+
327
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 9
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "4.1 DATASETS ",
|
| 1080 |
+
"text_level": 1,
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
174,
|
| 1083 |
+
348,
|
| 1084 |
+
287,
|
| 1085 |
+
362
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 9
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "A number of datasets for studying machine comprehension were created in Cloze style by removing a single token from a sentence in the original corpus, and the task is to predict the missing word. For example, Hermann et al. (2015) created questions in Cloze style from CNN and Daily Mail highlights. Hill et al. (2016) created the Children’s Book Test dataset, which is based on children’s stories. Cui et al. (2016) released two similar datasets in Chinese, the People Daily dataset and the Children’s Fairy Tale dataset. ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
174,
|
| 1094 |
+
375,
|
| 1095 |
+
825,
|
| 1096 |
+
458
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 9
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "Instead of creating questions in Cloze style, a number of other datasets rely on human annotators to create real questions. Richardson et al. (2013) created the well-known MCTest dataset and Tapaswi et al. (2016) created the MovieQA dataset. In these datasets, candidate answers are provided for each question. Similar to these two datasets, the SQuAD dataset (Rajpurkar et al., 2016) was also created by human annotators. Different from the previous two, however, the SQuAD dataset does not provide candidate answers, and thus all possible subsequences from the given passage have to be considered as candidate answers. ",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
174,
|
| 1105 |
+
465,
|
| 1106 |
+
823,
|
| 1107 |
+
563
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 9
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "Besides the datasets above, there are also a few other datasets created for machine comprehension, such as WikiReading dataset (Hewlett et al., 2016) and bAbI dataset (Weston et al., 2016), but they are quite different from the datasets above in nature. ",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
176,
|
| 1116 |
+
570,
|
| 1117 |
+
823,
|
| 1118 |
+
611
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 9
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "4.2 END-TO-END NEURAL NETWORK MODELS FOR MACHINE COMPREHENSION ",
|
| 1125 |
+
"text_level": 1,
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
178,
|
| 1128 |
+
631,
|
| 1129 |
+
743,
|
| 1130 |
+
646
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 9
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "There have been a number of studies proposing end-to-end neural network models for machine comprehension. A common approach is to use recurrent neural networks (RNNs) to process the given text and the question in order to predict or generate the answers (Hermann et al., 2015). Attention mechanism is also widely used on top of RNNs in order to match the question with the given passage (Hermann et al., 2015; Chen et al., 2016). Given that answers often come from the given passage, Pointer Network has been adopted in a few studies in order to copy tokens from the given passage as answers (Kadlec et al., 2016; Trischler et al., 2016). Compared with existing work, we use match-LSTM to match a question and a given passage, and we use Pointer Network in a different way such that we can generate answers that contain multiple tokens from the given passage. ",
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
174,
|
| 1139 |
+
659,
|
| 1140 |
+
825,
|
| 1141 |
+
797
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 9
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "Memory Networks (Weston et al., 2015) have also been applied to machine comprehension (Sukhbaatar et al., 2015; Kumar et al., 2016; Hill et al., 2016), but its scalability when applied to a large dataset is still an issue. In this work, we did not consider memory networks for the SQuAD/MSMARCO datasets. ",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
174,
|
| 1150 |
+
805,
|
| 1151 |
+
823,
|
| 1152 |
+
861
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 9
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "The setting of visual question answering (Antol et al., 2015) is quite similar to machine comprehension, while their answers are usually very short. So the sequence order of the word-level attention representation used to align the figure and the question(Xu & Saenko, 2016; Fukui et al., 2016; Lu et al., 2016), are not used in VQA. While our model focus on the word-by-word attention and use ",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
174,
|
| 1161 |
+
867,
|
| 1162 |
+
823,
|
| 1163 |
+
922
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 9
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "text",
|
| 1169 |
+
"text": "LSTM to concatenate the aligned pairs and that would be helpful to generate a longer sequence as answer. ",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
173,
|
| 1172 |
+
103,
|
| 1173 |
+
823,
|
| 1174 |
+
132
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 10
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "5 CONCLUSIONS ",
|
| 1181 |
+
"text_level": 1,
|
| 1182 |
+
"bbox": [
|
| 1183 |
+
176,
|
| 1184 |
+
152,
|
| 1185 |
+
328,
|
| 1186 |
+
170
|
| 1187 |
+
],
|
| 1188 |
+
"page_idx": 10
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "text",
|
| 1192 |
+
"text": "In this paper, We developed two models for the machine comprehension problem defined in the Stanford Question Answering (SQuAD) and A Human-Generated MAchine Reading COmprehension (MSMARCO) datasets, both making use of match-LSTM and Pointer Network. Experiments on the SQuAD and MSMARCO datasets showed that our second model, the boundary model, could achieve a performance close to the state-of-the-art performance on the SQuAD dataset and achieved the state-of-the-art on the MSMARCO dataset. We also show the boundary model could overcome the early stop prediction problem of the sequence model. ",
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
174,
|
| 1195 |
+
185,
|
| 1196 |
+
825,
|
| 1197 |
+
284
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 10
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"text": "In the future, we plan to look further into the different types of questions and focus on those questions which currently have low performance, such as the “why’ questions and multi-sentences related questions. We also plan to test how our models could be applied to other machine comprehension datasets. ",
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
174,
|
| 1206 |
+
290,
|
| 1207 |
+
825,
|
| 1208 |
+
345
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 10
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "6 ACKNOWLEDGMENTS ",
|
| 1215 |
+
"text_level": 1,
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
174,
|
| 1218 |
+
367,
|
| 1219 |
+
387,
|
| 1220 |
+
383
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 10
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "text",
|
| 1226 |
+
"text": "This research is supported by the National Research Foundation, Prime Ministers Office, Singapore under its International Research Centres in Singapore Funding Initiative. ",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
174,
|
| 1229 |
+
398,
|
| 1230 |
+
823,
|
| 1231 |
+
428
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 10
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "We thank Pranav Rajpurkar for testing our model on the hidden test dataset and Percy Liang for helping us with the Dockerfile for Codalab. ",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
174,
|
| 1240 |
+
434,
|
| 1241 |
+
823,
|
| 1242 |
+
462
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 10
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "text",
|
| 1248 |
+
"text": "REFERENCES ",
|
| 1249 |
+
"text_level": 1,
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
174,
|
| 1252 |
+
484,
|
| 1253 |
+
287,
|
| 1254 |
+
500
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 10
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2425–2433, 2015. ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
174,
|
| 1263 |
+
508,
|
| 1264 |
+
825,
|
| 1265 |
+
551
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 10
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "Danqi Chen, Jason Bolton, and Christopher D. Manning. A thorough examination of the CNN/Daily Mail reading comprehension task. In Proceedings of the Conference on Association for Computational Linguistics, 2016. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
174,
|
| 1274 |
+
561,
|
| 1275 |
+
825,
|
| 1276 |
+
604
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 10
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Yiming Cui, Ting Liu, Zhipeng Chen, Shijin Wang, and Guoping Hu. Consensus attention-based neural networks for chinese reading comprehension. In arXiv preprint arXiv:1607.02250, 2016. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
171,
|
| 1285 |
+
614,
|
| 1286 |
+
823,
|
| 1287 |
+
645
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 10
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Akira Fukui, Dong Huk Park, Daylen Yang, Anna Rohrbach, Trevor Darrell, and Marcus Rohrbach. Multimodal compact bilinear pooling for visual question answering and visual grounding. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2016. ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
176,
|
| 1296 |
+
654,
|
| 1297 |
+
823,
|
| 1298 |
+
696
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 10
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Jiatao Gu, Zhengdong Lu, Hang Li, and Victor O.K. Li. Incorporating copying mechanism in sequence-to-sequence learning. In Proceedings of the Conference on Association for Computational Linguistics, 2016. ",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
174,
|
| 1307 |
+
707,
|
| 1308 |
+
825,
|
| 1309 |
+
750
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 10
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In Proceedings of the Conference on Advances in Neural Information Processing Systems, pp. 1693–1701, 2015. ",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
174,
|
| 1318 |
+
761,
|
| 1319 |
+
825,
|
| 1320 |
+
804
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 10
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "Daniel Hewlett, Alexandre Lacoste, Llion Jones, Illia Polosukhin, Andrew Fandrianto, Jay Han, Matthew Kelcey, and David Berthelot. WIKIREADING: A novel large-scale language understanding task over wikipedia. In Proceedings of the Conference on Association for Computational Linguistics, 2016. ",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
174,
|
| 1329 |
+
814,
|
| 1330 |
+
825,
|
| 1331 |
+
869
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 10
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Felix Hill, Antoine Bordes, Sumit Chopra, and Jason Weston. The Goldilocks principle: Reading children’s books with explicit memory representations. In Proceedings of the International Conference on Learning Representations, 2016. ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
176,
|
| 1340 |
+
882,
|
| 1341 |
+
823,
|
| 1342 |
+
924
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 10
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997. ",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
173,
|
| 1351 |
+
103,
|
| 1352 |
+
823,
|
| 1353 |
+
132
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 11
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "Rudolf Kadlec, Martin Schmid, Ondrej Bajgar, and Jan Kleindienst. Text understanding with the attention sum reader network. In Proceedings of the Conference on Association for Computational Linguistics, 2016. ",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
173,
|
| 1362 |
+
141,
|
| 1363 |
+
823,
|
| 1364 |
+
184
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 11
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of the International Conference on Learning Representations, 2015. ",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
171,
|
| 1373 |
+
194,
|
| 1374 |
+
825,
|
| 1375 |
+
223
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 11
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "text",
|
| 1381 |
+
"text": "Ankit Kumar, Ozan Irsoy, Jonathan Su, James Bradbury, Robert English, Brian Pierce, Peter Ondruska, Ishaan Gulrajani, and Richard Socher. Ask me anything: Dynamic memory networks for natural language processing. In Proceedings of the International Conference on Machine Learning, 2016. ",
|
| 1382 |
+
"bbox": [
|
| 1383 |
+
173,
|
| 1384 |
+
231,
|
| 1385 |
+
826,
|
| 1386 |
+
289
|
| 1387 |
+
],
|
| 1388 |
+
"page_idx": 11
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"type": "text",
|
| 1392 |
+
"text": "Jiasen Lu, Jianwei Yang, Dhruv Batra, and Devi Parikh. Hierarchical question-image co-attention for visual question answering. In Proceedings of the Conference on Advances in Neural Information Processing Systems, 2016. ",
|
| 1393 |
+
"bbox": [
|
| 1394 |
+
173,
|
| 1395 |
+
297,
|
| 1396 |
+
825,
|
| 1397 |
+
340
|
| 1398 |
+
],
|
| 1399 |
+
"page_idx": 11
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"text": "Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, Rangan Majumder, and Li Deng. MS MARCO: a human generated machine reading comprehension dataset. arXiv preprint arXiv:1611.09268, 2016. ",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
173,
|
| 1406 |
+
349,
|
| 1407 |
+
825,
|
| 1408 |
+
392
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 11
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "Jeffrey Pennington, Richard Socher, and Christopher D Manning. GloVe: Global vectors for word representation. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2014. ",
|
| 1415 |
+
"bbox": [
|
| 1416 |
+
173,
|
| 1417 |
+
401,
|
| 1418 |
+
823,
|
| 1419 |
+
444
|
| 1420 |
+
],
|
| 1421 |
+
"page_idx": 11
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"type": "text",
|
| 1425 |
+
"text": "Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: $1 0 0 { , } 0 0 0 { + }$ questions for machine comprehension of text. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2016. ",
|
| 1426 |
+
"bbox": [
|
| 1427 |
+
174,
|
| 1428 |
+
454,
|
| 1429 |
+
823,
|
| 1430 |
+
497
|
| 1431 |
+
],
|
| 1432 |
+
"page_idx": 11
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"type": "text",
|
| 1436 |
+
"text": "Matthew Richardson, Christopher JC Burges, and Erin Renshaw. MCTest: A challenge dataset for the open-domain machine comprehension of text. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2013. ",
|
| 1437 |
+
"bbox": [
|
| 1438 |
+
173,
|
| 1439 |
+
506,
|
| 1440 |
+
825,
|
| 1441 |
+
549
|
| 1442 |
+
],
|
| 1443 |
+
"page_idx": 11
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"type": "text",
|
| 1447 |
+
"text": "Sainbayar Sukhbaatar, Jason Weston, Rob Fergus, et al. End-to-end memory networks. In Proceedings of the Conference on Advances in neural information processing systems, 2015. ",
|
| 1448 |
+
"bbox": [
|
| 1449 |
+
173,
|
| 1450 |
+
558,
|
| 1451 |
+
821,
|
| 1452 |
+
587
|
| 1453 |
+
],
|
| 1454 |
+
"page_idx": 11
|
| 1455 |
+
},
|
| 1456 |
+
{
|
| 1457 |
+
"type": "text",
|
| 1458 |
+
"text": "Makarand Tapaswi, Yukun Zhu, Rainer Stiefelhagen, Antonio Torralba, Raquel Urtasun, and Sanja Fidler. MovieQA: Understanding stories in movies through question-answering. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, 2016. ",
|
| 1459 |
+
"bbox": [
|
| 1460 |
+
174,
|
| 1461 |
+
595,
|
| 1462 |
+
825,
|
| 1463 |
+
638
|
| 1464 |
+
],
|
| 1465 |
+
"page_idx": 11
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"type": "text",
|
| 1469 |
+
"text": "Adam Trischler, Zheng Ye, Xingdi Yuan, and Kaheer Suleman. Natural language comprehension with the EpiReader. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2016. ",
|
| 1470 |
+
"bbox": [
|
| 1471 |
+
173,
|
| 1472 |
+
648,
|
| 1473 |
+
825,
|
| 1474 |
+
691
|
| 1475 |
+
],
|
| 1476 |
+
"page_idx": 11
|
| 1477 |
+
},
|
| 1478 |
+
{
|
| 1479 |
+
"type": "text",
|
| 1480 |
+
"text": "Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In Proceedings of the Conference on Advances in Neural Information Processing Systems, 2015. ",
|
| 1481 |
+
"bbox": [
|
| 1482 |
+
173,
|
| 1483 |
+
700,
|
| 1484 |
+
825,
|
| 1485 |
+
729
|
| 1486 |
+
],
|
| 1487 |
+
"page_idx": 11
|
| 1488 |
+
},
|
| 1489 |
+
{
|
| 1490 |
+
"type": "text",
|
| 1491 |
+
"text": "Shuohang Wang and Jing Jiang. Learning natural language inference with LSTM. In Proceedings of the Conference on the North American Chapter of the Association for Computational Linguistics, 2016. ",
|
| 1492 |
+
"bbox": [
|
| 1493 |
+
174,
|
| 1494 |
+
738,
|
| 1495 |
+
825,
|
| 1496 |
+
781
|
| 1497 |
+
],
|
| 1498 |
+
"page_idx": 11
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"type": "text",
|
| 1502 |
+
"text": "Jason Weston, Sumit Chopra, and Antoine Bordes. Memory networks. In Proceedings of the International Conference on Learning Representations, 2015. ",
|
| 1503 |
+
"bbox": [
|
| 1504 |
+
166,
|
| 1505 |
+
790,
|
| 1506 |
+
823,
|
| 1507 |
+
820
|
| 1508 |
+
],
|
| 1509 |
+
"page_idx": 11
|
| 1510 |
+
},
|
| 1511 |
+
{
|
| 1512 |
+
"type": "text",
|
| 1513 |
+
"text": "Jason Weston, Antoine Bordes, Sumit Chopra, Alexander M Rush, Bart van Merrienboer, Armand ¨ Joulin, and Tomas Mikolov. Towards AI-complete question answering: A set of prerequisite toy tasks. In Proceedings of the International Conference on Learning Representations, 2016. ",
|
| 1514 |
+
"bbox": [
|
| 1515 |
+
174,
|
| 1516 |
+
829,
|
| 1517 |
+
823,
|
| 1518 |
+
872
|
| 1519 |
+
],
|
| 1520 |
+
"page_idx": 11
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"type": "text",
|
| 1524 |
+
"text": "Huijuan Xu and Kate Saenko. Ask, attend and answer: Exploring question-guided spatial attention for visual question answering. In Proceedings of the IEEE International Conference on Computer Vision, 2016. ",
|
| 1525 |
+
"bbox": [
|
| 1526 |
+
174,
|
| 1527 |
+
881,
|
| 1528 |
+
825,
|
| 1529 |
+
924
|
| 1530 |
+
],
|
| 1531 |
+
"page_idx": 11
|
| 1532 |
+
},
|
| 1533 |
+
{
|
| 1534 |
+
"type": "text",
|
| 1535 |
+
"text": "Wenpeng Yin, Sebastian Ebert, and Hinrich Schutze. Attention-based convolutional neural network ¨ for machine comprehension. arXiv preprint arXiv:1602.04341, 2016. ",
|
| 1536 |
+
"bbox": [
|
| 1537 |
+
173,
|
| 1538 |
+
103,
|
| 1539 |
+
823,
|
| 1540 |
+
132
|
| 1541 |
+
],
|
| 1542 |
+
"page_idx": 12
|
| 1543 |
+
},
|
| 1544 |
+
{
|
| 1545 |
+
"type": "text",
|
| 1546 |
+
"text": "Yang Yu, Wei Zhang, Kazi Hasan, Mo Yu, Bing Xiang, and Bowen Zhou. End-to-end answer chunk extraction and ranking for reading comprehension. arXiv preprint arXiv:1610.09996, 2016. ",
|
| 1547 |
+
"bbox": [
|
| 1548 |
+
176,
|
| 1549 |
+
140,
|
| 1550 |
+
823,
|
| 1551 |
+
170
|
| 1552 |
+
],
|
| 1553 |
+
"page_idx": 12
|
| 1554 |
+
},
|
| 1555 |
+
{
|
| 1556 |
+
"type": "text",
|
| 1557 |
+
"text": "A APPENDIX ",
|
| 1558 |
+
"text_level": 1,
|
| 1559 |
+
"bbox": [
|
| 1560 |
+
176,
|
| 1561 |
+
102,
|
| 1562 |
+
297,
|
| 1563 |
+
117
|
| 1564 |
+
],
|
| 1565 |
+
"page_idx": 13
|
| 1566 |
+
},
|
| 1567 |
+
{
|
| 1568 |
+
"type": "text",
|
| 1569 |
+
"text": "We show the predictions our boundary and sequence models on two cases from two datasets in Table 5. It can be seen that the sequence model is more likely to predict a shorter sequence which is the problem of early stop prediction. ",
|
| 1570 |
+
"bbox": [
|
| 1571 |
+
174,
|
| 1572 |
+
133,
|
| 1573 |
+
826,
|
| 1574 |
+
176
|
| 1575 |
+
],
|
| 1576 |
+
"page_idx": 13
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"type": "table",
|
| 1580 |
+
"img_path": "images/39d7f833d8f92ef64474da80edfe2befc97be4747fec0ea0c8880c1546f4ba15.jpg",
|
| 1581 |
+
"table_caption": [],
|
| 1582 |
+
"table_footnote": [
|
| 1583 |
+
"Table 5: Prediction samples for sequence and boundary models. The first case is sampled from SQuAD dataset and the second is sampled from MSMARCO dataset. "
|
| 1584 |
+
],
|
| 1585 |
+
"table_body": "<table><tr><td>(1) Context</td><td>Asopposed to broadcasts of primetime series,CBS broadcast special episodes of its late night talk shows as its lead-out programs for Super Bowl 5O, beginning with a special episode of The Late Show with Stephen Colbert following the game.</td></tr><tr><td>Question (Syntactic) Golden Anwser match-LSTM (Sequence)</td><td>What CBS show followed the Super Bowl? The Late Show with Stephen Colbert The Late Show The Late Show with Stephen Colbert</td></tr><tr><td>match-LSTM (Boundary) (2) Context</td><td>Urinalysis is a test that evaluates a sample of your urine.Urinalysis is used to detect and assess a wide range of disorders,such as uri- nary tract infection, kidney disease and diabetes. Urinalysis involves examining the appearance,concentration and content of urine.Abnor- mal urinalysis results may point to a disease or illness.For example,</td></tr><tr><td>Query</td><td>a urinary tract infection can make urine look cloudy instead of clear. Increased levels of protein in urine can be a sign of kidney disease. what can urinalysis detect?</td></tr><tr><td>Golden Anwser</td><td>Detect and assess a wide range of disorders,such as urinary tract infec- tion, kidney disease and diabetes.</td></tr><tr><td>match-LSTM (Sequence) match-LSTM (Boundary)</td><td>Urinalysis Urinalysis is used to detect and assess a wide range of disorders,such as urinary tract infection,kidney disease and diabetes</td></tr></table>",
|
| 1586 |
+
"bbox": [
|
| 1587 |
+
174,
|
| 1588 |
+
188,
|
| 1589 |
+
843,
|
| 1590 |
+
496
|
| 1591 |
+
],
|
| 1592 |
+
"page_idx": 13
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "text",
|
| 1596 |
+
"text": "B APPENDIX ",
|
| 1597 |
+
"text_level": 1,
|
| 1598 |
+
"bbox": [
|
| 1599 |
+
174,
|
| 1600 |
+
102,
|
| 1601 |
+
295,
|
| 1602 |
+
117
|
| 1603 |
+
],
|
| 1604 |
+
"page_idx": 14
|
| 1605 |
+
},
|
| 1606 |
+
{
|
| 1607 |
+
"type": "text",
|
| 1608 |
+
"text": "We show how four different models work on different type of questions in SQuAD dataset through Table 6. After the analysis of a hundred cases, we see that our models are not able to solve the questions that need multi-sentences reasoning. And the model without attention mechanism has less power to identify the important key word like the third case shown in Table 6. ",
|
| 1609 |
+
"bbox": [
|
| 1610 |
+
173,
|
| 1611 |
+
133,
|
| 1612 |
+
825,
|
| 1613 |
+
189
|
| 1614 |
+
],
|
| 1615 |
+
"page_idx": 14
|
| 1616 |
+
},
|
| 1617 |
+
{
|
| 1618 |
+
"type": "table",
|
| 1619 |
+
"img_path": "images/67bfb16ece01e51aa5431192d4d4d569a73f4ea205b3b1e600285fca4b21868b.jpg",
|
| 1620 |
+
"table_caption": [
|
| 1621 |
+
"Table 6: Different types of reasoning samples in SQuAD dataset. “match-LSTM” refers to the “match-LSTM with Ans-Ptr” and “LSTM” refers to the “LSTM with Ans-Ptr” which is the ablation of attention mechanism in match-LSTM. "
|
| 1622 |
+
],
|
| 1623 |
+
"table_footnote": [],
|
| 1624 |
+
"table_body": "<table><tr><td>(1) Context</td><td>The Rankine cycle is sometimes referred to as a practical Carnot cycle be- cause,when an efficient turbine is used, the TS diagram begins to resemble the</td></tr><tr><td>Question (Synonymy) Golden Anwser</td><td>Carnot cycle. What is the Rankine cycle sometimes called? practical Carnot cycle</td></tr><tr><td>LSTM (Sequence) match-LSTM (Sequence)</td><td>Carnot cycle</td></tr><tr><td>LSTM (Boundary) match-LSTM (Boundary)</td><td>Carnot cycle practical Carnot cycle</td></tr><tr><td>(2) Context</td><td>Carnot cycle</td></tr><tr><td></td><td>While the Commission has a monopoly on initiating legislation,the European Parliament and the Council of the European Union have powers of amend-</td></tr><tr><td></td><td>ment and veto during the legislative process.</td></tr><tr><td>Question (Knowledge) Golden Anwser</td><td>Which two governing bodies have legislative veto power? the European Parliament and the Council of the European Union</td></tr><tr><td>LSTM (Sequence)</td><td>European Parliament and the Council of the European Union</td></tr><tr><td>match-LSTM (Sequence) LSTM (Boundary)</td><td>European Parliament and the Council of the European Union</td></tr><tr><td>match-LSTM (Boundary)</td><td>European Parliament and the Council of the European Union</td></tr><tr><td>(3) Context</td><td>European Parliament and the Council of the European Union</td></tr><tr><td></td><td>Current faculty include the anthropologist Marshall Sahlins, historian Dipesh Chakrabarty,... Shakespeare scholar David Bevington, and renowned political</td></tr><tr><td>Question (Syntactic) Golden Anwser</td><td>scientists John Mearsheimer and Robert Pape. What Shakespeare scholar is currently on the university's faculty?</td></tr><tr><td>LSTM (Sequence)</td><td>David Bevington Marshall Sahlins</td></tr><tr><td>match-LSTM (Sequence) LSTM(Boundary)</td><td>David Bevington Marshall Sahlins</td></tr><tr><td>match-LSTM (Boundary) (4) Context</td><td>David Bevington</td></tr><tr><td></td><td>The V&A Theatre & Performance galleries,formerly the Theatre Museum, opened in March 2Oo9.The collections are stored by the V&A,and are available for research,exhibitions and other shows.They hold the UK's biggest national</td></tr><tr><td></td><td>collection of material about live performance in the UK since Shakespeare's day,covering drama, dance,musical theatre, circus,music hall,rock and pop, and most other forms of live entertainment.</td></tr><tr><td>Question (Reasoning) Golden Anwser</td><td>What collection does the V&A Theatre & Performance galleries hold? material about live performance</td></tr><tr><td>LSTM (Sequence) match-LSTM (Sequence) LSTM (Boundary)</td><td>Theatre the Theatre Museum</td></tr><tr><td>match-LSTM (Boundary)</td><td>research,exhibitions and other shows</td></tr><tr><td></td><td>Theatre Museum</td></tr><tr><td></td><td></td></tr><tr><td>(5) Context</td><td>Along with giving the offender his "just deserts",achieving crime control via</td></tr><tr><td></td><td></td></tr><tr><td></td><td></td></tr><tr><td>Question (Ambiguous)</td><td>incapacitation and deterrence is a major goal of criminal punishment.</td></tr><tr><td></td><td></td></tr><tr><td>Golden Anwser</td><td>What is the main goal of criminal punishment of civil disobedients ?</td></tr><tr><td></td><td></td></tr><tr><td></td><td>achieving crime control via incapacitation and deterrence</td></tr><tr><td>LSTM (Sequence)</td><td></td></tr><tr><td></td><td>deterrence</td></tr><tr><td>match-LSTM (Sequence) LSTM (Boundary)</td><td>just deserts incapacitation and deterrence</td></tr></table>",
|
| 1625 |
+
"bbox": [
|
| 1626 |
+
174,
|
| 1627 |
+
198,
|
| 1628 |
+
826,
|
| 1629 |
+
830
|
| 1630 |
+
],
|
| 1631 |
+
"page_idx": 14
|
| 1632 |
+
}
|
| 1633 |
+
]
|
parse/train/B1-q5Pqxl/B1-q5Pqxl_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1-q5Pqxl/B1-q5Pqxl_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJO-BuT1g/BJO-BuT1g.md
ADDED
|
@@ -0,0 +1,357 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A LEARNED REPRESENTATION FOR ARTISTIC STYLE
|
| 2 |
+
|
| 3 |
+
Vincent Dumoulin & Jonathon Shlens & Manjunath Kudlur
|
| 4 |
+
|
| 5 |
+
Google Brain, Mountain View, CA
|
| 6 |
+
|
| 7 |
+
vi.dumoulin@gmail.com, shlens@google.com, keveman@google.com
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
The diversity of painting styles represents a rich visual vocabulary for the construction of an image. The degree to which one may learn and parsimoniously capture this visual vocabulary measures our understanding of the higher level features of paintings, if not images in general. In this work we investigate the construction of a single, scalable deep network that can parsimoniously capture the artistic style of a diversity of paintings. We demonstrate that such a network generalizes across a diversity of artistic styles by reducing a painting to a point in an embedding space. Importantly, this model permits a user to explore new painting styles by arbitrarily combining the styles learned from individual paintings. We hope that this work provides a useful step towards building rich models of paintings and offers a window on to the structure of the learned representation of artistic style.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
A pastiche is an artistic work that imitates the style of another one. Computer vision and more recently machine learning have a history of trying to automate pastiche, that is, render an image in the style of another one. This task is called style transfer, and is closely related to the texture synthesis task. While the latter tries to capture the statistical relationship between the pixels of a source image which is assumed to have a stationary distribution at some scale, the former does so while also attempting to preserve some notion of content.
|
| 16 |
+
|
| 17 |
+
On the computer vision side, Efros & Leung (1999) and Wei & Levoy (2000) attempt to “grow” textures one pixel at a time using non-parametric sampling of pixels in an examplar image. Efros & Freeman (2001) and Liang et al. (2001) extend this idea to “growing” textures one patch at a time, and Efros & Freeman (2001) uses the approach to implement “texture transfer”, i.e. transfering the texture of an object onto another one. Kwatra et al. (2005) approaches the texture synthesis problem from an energy minimization perspective, progressively refining the texture using an EMlike algorithm. Hertzmann et al. (2001) introduces the concept of “image analogies”: given a pair of “unfiltered” and “filtered” versions of an examplar image, a target image is processed to create an analogous “filtered” result. More recently, Frigo et al. (2016) treats style transfer as a local texture transfer (using an adaptive patch partition) followed by a global color transfer, and Elad & Milanfar (2016) extends Kwatra’s energy-based method into a style transfer algorithm by taking content similarity into account.
|
| 18 |
+
|
| 19 |
+
On the machine learning side, it has been shown that a trained classifier can be used as a feature extractor to drive texture synthesis and style transfer. Gatys et al. (2015a) uses the VGG-19 network (Simonyan & Zisserman, 2014) to extract features from a texture image and a synthesized texture. The two sets of features are compared and the synthesized texture is modified by gradient descent so that the two sets of features are as close as possible. Gatys et al. (2015b) extends this idea to style transfer by adding the constraint that the synthesized image also be close to a content image with respect to another set of features extracted by the trained VGG-19 classifier.
|
| 20 |
+
|
| 21 |
+
While very flexible, this algorithm is expensive to run due to the optimization loop being carried. Ulyanov et al. (2016a), Li & Wand (2016) and Johnson et al. (2016) tackle this problem by introducing a feedforward style transfer network, which is trained to go from content to pastiche image in one pass. However, in doing so some of the flexibility of the original algorithm is lost: the style transfer network is tied to a single style, which means that separate networks have to be trained (a) With conditional instance normalization, a single style transfer network can capture 32 styles at the same time, five of which are shown here. All 32 styles in this single model are in the Appendix. Golden Gate Bridge photograph by Rich Niewiroski Jr.
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
|
| 27 |
+
(b) The style representation learned via conditional instance normalization permits the arbitrary combination of artistic styles. Each pastiche in the sequence corresponds to a different step in interpolating between the $\gamma$ and $\beta$ values associated with two styles the model was trained on.
|
| 28 |
+
|
| 29 |
+
Figure 1: Pastiches produced by a style transfer network trained on 32 styles chosen for their variety.
|
| 30 |
+
|
| 31 |
+
for every style being modeled. Subsequent work has brought some performance improvements to style transfer networks, e.g. with respect to color preservation (Gatys et al., 2016a) or style transfer quality (Ulyanov et al., 2016b), but to our knowledge the problem of the single-purpose nature of style transfer networks remains untackled.
|
| 32 |
+
|
| 33 |
+
We think this is an important problem that, if solved, would have both scientific and practical importance. First, style transfer has already found use in mobile applications, for which on-device processing is contingent upon the models having a reasonable memory footprint. More broadly, building a separate network for each style ignores the fact that individual paintings share many common visual elements and a true model that captures artistic style would be able to exploit and learn from such regularities. Furthermore, the degree to which an artistic styling model might generalize across painting styles would directly measure our ability to build systems that parsimoniously capture the higher level features and statistics of photographs and images (Simoncelli & Olshausen, 2001).
|
| 34 |
+
|
| 35 |
+
In this work, we show that a simple modification of the style transfer network, namely the introduction of conditional instance normalization, allows it to learn multiple styles (Figure 1a).We demonstrate that this approach is flexible yet comparable to single-purpose style transfer networks, both qualitatively and in terms of convergence properties. This model reduces each style image into a point in an embedding space. Furthermore, this model provides a generic representation for artistic styles that seems flexible enough to capture new artistic styles much faster than a single-purpose network. Finally, we show that the embeddding space representation permits one to arbitrarily combine artistic styles in novel ways not previously observed (Figure 1b).
|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
Figure 2: Style transfer network training diagram (Johnson et al., 2016; Ulyanov et al., 2016a). A pastiche image is produced by feeding a content image through the style transfer network. The two images, along with a style image, are passed through a trained classifier, and the resulting intermediate representations are used to compute the content loss $\mathcal { L } _ { c }$ and style loss $\mathcal { L } _ { s }$ . The parameters of the classifier are kept fixed throughout training.
|
| 39 |
+
|
| 40 |
+
# 2 STYLE TRANSFER WITH DEEP NETWORKS
|
| 41 |
+
|
| 42 |
+
Style transfer can be defined as finding a pastiche image $p$ whose content is similar to that of a content image $c$ but whose style is similar to that of a style image $s$ . This objective is by nature vaguely defined, because similarity in content and style are themselves vaguely defined.
|
| 43 |
+
|
| 44 |
+
The neural algorithm of artistic style proposes the following definitions:
|
| 45 |
+
|
| 46 |
+
• Two images are similar in content if their high-level features as extracted by a trained classifier are close in Euclidian distance.
|
| 47 |
+
• Two images are similar in style if their low-level features as extracted by a trained classifier share the same statistics or, more concretely, if the difference between the features’ Gram matrices has a small Frobenius norm.
|
| 48 |
+
|
| 49 |
+
The first point is motivated by the empirical observation that high-level features in classifiers tend to correspond to higher levels of abstractions (see Zeiler & Fergus (2014) for visualizations; see Johnson et al. (2016) for style transfer features). The second point is motivated by the observation that the artistic style of a painting may be interpreted as a visual texture (Gatys et al., 2015a). A visual texture is conjectured to be spatially homogenous and consist of repeated structural motifs whose minimal sufficient statistics are captured by lower order statistical measurements (Julesz, 1962; Portilla & Simoncelli, 1999).
|
| 50 |
+
|
| 51 |
+
In its original formulation, the neural algorithm of artistic style proceeds as follows: starting from some initialization of $p$ (e.g. $c$ , or some random initialization), the algorithm adapts $p$ to minimize the loss function
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\begin{array} { r } { \mathcal { L } ( s , c , p ) = \lambda _ { s } \mathcal { L } _ { s } ( p ) + \lambda _ { c } \mathcal { L } _ { c } ( p ) , } \end{array}
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
where $\mathcal { L } _ { s } ( p )$ is the style loss, $\mathcal { L } _ { c } ( p )$ is the content loss and $\lambda _ { s } , \lambda _ { c }$ are scaling hyperparameters. Given a set of “style layers” $s$ and a set of “content layers” $\mathcal { C }$ , the style and content losses are themselves defined as
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\begin{array} { c } { { \mathcal { L } _ { s } ( p ) = \displaystyle \sum _ { i \in \mathcal { S } } \frac { 1 } { U _ { i } } \parallel G ( \phi _ { i } ( p ) ) - G ( \phi _ { i } ( s ) ) \parallel _ { F } ^ { 2 } } } \\ { { \mathcal { L } _ { c } ( p ) = \displaystyle \sum _ { j \in \mathcal { C } } \frac { 1 } { U _ { j } } \parallel \phi _ { j } ( p ) - \phi _ { j } ( c ) \parallel _ { 2 } ^ { 2 } } } \end{array}
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
where $\phi _ { l } ( x )$ are the classifier activations at layer $l$ , $U _ { l }$ is the total number of units at layer $l$ and $G ( \phi _ { l } ( x ) )$ is the Gram matrix associated with the layer $l$ activations. In practice, we set $\lambda _ { c } = 1 . 0$ and and leave $\lambda _ { s }$ as a free hyper-parameter.
|
| 64 |
+
|
| 65 |
+
In order to speed up the procedure outlined above, a feed-forward convolutional network, termed a style transfer network $T$ , is introduced to learn the transformation (Johnson et al., 2016; Li & Wand, 2016; Ulyanov et al., 2016a). It takes as input a content image $c$ and outputs the pastiche image $p$ directly (Figure 2). The network is trained on many content images (Deng et al., 2009) using the same loss function as above, i.e.
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\begin{array} { r } { \mathcal { L } ( s , c ) = \lambda _ { s } \mathcal { L } _ { s } ( T ( c ) ) + \lambda _ { c } \mathcal { L } _ { c } ( T ( c ) ) . } \end{array}
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
While feedforward style transfer networks solve the problem of speed at test-time, they also suffer from the fact that the network $T$ is tied to one specific painting style. This means that a separate network $T$ has to be trained for every style to be imitated. The real-world impact of this limitation is that it becomes prohibitive to implement a style transfer application on a memory-limited device, such as a smartphone.
|
| 72 |
+
|
| 73 |
+
# 2.1 N-STYLES FEEDFORWARD STYLE TRANSFER NETWORKS
|
| 74 |
+
|
| 75 |
+
Our work stems from the intuition that many styles probably share some degree of computation, and that this sharing is thrown away by training $N$ networks from scratch when building an $N .$ - styles style transfer system. For instance, many impressionist paintings share similar paint strokes but differ in the color palette being used. In that case, it seems very wasteful to treat a set of $N$ impressionist paintings as completely separate styles.
|
| 76 |
+
|
| 77 |
+
To take this into account, we propose to train a single conditional style transfer network $T ( c , s )$ for $N$ styles. The conditional network is given both a content image and the identity of the style to apply and produces a pastiche corresponding to that style. While the idea is straightforward on paper, there remains the open question of how conditioning should be done. In exploring this question, we found a very surprising fact about the role of normalization in style transfer networks: to model a style, it is sufficient to specialize scaling and shifting parameters after normalization to each specific style. In other words, all convolutional weights of a style transfer network can be shared across many styles, and it is sufficient to tune parameters for an affine transformation after normalization for each style.
|
| 78 |
+
|
| 79 |
+
We call this approach conditional instance normalization. The goal of the procedure is transform a layer’s activations $x$ into a normalized activation $z$ specific to painting style $s$ . Building off the instance normalization technique proposed in Ulyanov et al. (2016b), we augment the $\gamma$ and $\beta$ parameters so that they’re $N \times C$ matrices, where $N$ is the number of styles being modeled and $C$ is the number of output feature maps. Conditioning on a style is achieved as follows:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
z = \gamma _ { s } \left( \frac { x - \mu } { \sigma } \right) + \beta _ { s }
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where $\mu$ and $\sigma$ are $x$ ’s mean and standard deviation taken across spatial axes and $\gamma _ { s }$ and $\beta _ { s }$ are obtained by selecting the row corresponding to $s$ in the $\gamma$ and $\beta$ matrices (Figure 3). One added benefit of this approach is that one can stylize a single image into $N$ painting styles with a single feed forward pass of the network with a batch size of $N$ . In constrast, a single-style network requires $N$ feed forward passes to perform $N$ style transfers (Johnson et al., 2016; Li & Wand, 2016; Ulyanov et al., 2016a).
|
| 86 |
+
|
| 87 |
+
Because conditional instance normalization only acts on the scaling and shifting parameters, training a style transfer network on $N$ styles requires fewer parameters than the naive approach of training $N$ separate networks. In a typical network setup, the model consists of roughly 1.6M parameters, only around 3K (or $0 . 2 \%$ ) of which specify individual artistic styles. In fact, because the size of $\gamma$ and $\beta$ grows linearly with respect to the number of feature maps in the network, this approach requires $O ( N \times L )$ parameters, where $L$ is the total number of feature maps in the network.
|
| 88 |
+
|
| 89 |
+
In addition, as is discussed in subsection 3.4, conditional instance normalization presents the advantage that integrating an $N + 1 ^ { t h }$ style to the network is cheap because of the very small number of parameters to train.
|
| 90 |
+
|
| 91 |
+

|
| 92 |
+
Figure 3: Conditional instance normalization. The input activation $x$ is normalized across both spatial dimensions and subsequently scaled and shifted using style-dependent parameter vectors $\gamma _ { s } , \beta _ { s }$ where $s$ indexes the style label.
|
| 93 |
+
|
| 94 |
+
# 3 EXPERIMENTAL RESULTS
|
| 95 |
+
|
| 96 |
+
# 3.1 METHODOLOGY
|
| 97 |
+
|
| 98 |
+
Unless noted otherwise, all style transfer networks were trained using the hyperparameters outlined in the Appendix’s Table 1.
|
| 99 |
+
|
| 100 |
+
We used the same network architecture as in Johnson et al. (2016), except for two key details: zero-padding is replaced with mirror-padding, and transposed convolutions (also sometimes called deconvolutions) are replaced with nearest-neighbor upsampling followed by a convolution. The use of mirror-padding avoids border patterns sometimes caused by zero-padding in SAME-padded convolutions, while the replacement for transposed convolutions avoids checkerboard patterning, as discussed in in Odena et al. (2016). We find that with these two improvements training the network no longer requires a total variation loss that was previously employed to remove high frequency noise as proposed in Johnson et al. (2016).
|
| 101 |
+
|
| 102 |
+
Our training procedure follows Johnson et al. (2016). Briefly, we employ the ImageNet dataset (Deng et al., 2009) as a corpus of training content images. We train the $N$ -style network with stochastic gradient descent using the Adam optimizer (Kingma & Ba, 2014). Details of the model architecture are in the Appendix. A complete implementation of the model in TensorFlow (Abadi et al., 2016) as well as a pretrained model are available for download 1. The evaluation images used for this work were resized such that their smaller side has size 512. Their stylized versions were then center-cropped to 512x512 pixels for display.
|
| 103 |
+
|
| 104 |
+
# 3.2 TRAINING A SINGLE NETWORK ON N STYLES PRODUCES STYLIZATIONS COMPARABLETO INDEPENDENTLY-TRAINED MODELS
|
| 105 |
+
|
| 106 |
+
As a first test, we trained a 10-styles model on stylistically similar images, namely 10 impressionist paintings from Claude Monet. Figure 4 shows the result of applying the trained network on evaluation images for a subset of the styles, with the full results being displayed in the Appendix. The model captures different color palettes and textures. We emphasize that $9 9 . 8 \%$ of the parameters are shared across all styles in contrast to $0 . 2 \%$ of the parameters which are unique to each painting style.
|
| 107 |
+
|
| 108 |
+
To get a sense of what is being traded off by folding 10 styles into a single network, we trained a separate, single-style network on each style and compared them to the 10-styles network in terms of style transfer quality and training speed (Figure 5).
|
| 109 |
+
|
| 110 |
+
The left column compares the learning curves for style and content losses between the single-style networks and the 10-styles network. The losses were averaged over 32 random batches of content images. By visual inspection, we observe that the 10-styles network converges as quickly as the single-style networks in terms of style loss, but lags slightly behind in terms of content loss.
|
| 111 |
+
|
| 112 |
+
In order to quantify this observation, we compare the final losses for 10-styles and single-style models (center column). The 10-styles network’s content loss is around $8 . 7 \pm 3 . 9 \%$ higher than its single-style counterparts, while the difference in style losses $( 8 . 9 \pm 1 6 . 5 \%$ lower) is insignificant. While the $N$ -styles network suffers from a slight decrease in content loss convergence speed, this may not be a fair comparison, given that it takes $N$ times more parameter updates to train $N$ singlestyle networks separately than to train them with an $N$ -styles network.
|
| 113 |
+
|
| 114 |
+

|
| 115 |
+
Figure 4: A single style transfer network was trained to capture the style of 10 Monet paintings, five of which are shown here. All 10 styles in this single model are in the Appendix. Golden Gate Bridge photograph by Rich Niewiroski Jr.
|
| 116 |
+
|
| 117 |
+
The right column shows a comparison between the pastiches produced by the 10-styles network and the ones produced by the single-style networks. We see that both results are qualitatively similar.
|
| 118 |
+
|
| 119 |
+
# 3.3 THE N-STYLES MODEL IS FLEXIBLE ENOUGH TO CAPTURE VERY DIFFERENT STYLES
|
| 120 |
+
|
| 121 |
+
We evaluated the flexibility of the $N$ -styles model by training a style transfer network on 32 works of art chosen for their diversity. Figure 1a shows the result of applying the trained network on evaluation images for a subset of the styles. Once again, the full results are displayed in the Appendix. The model appears to be capable of modeling all 32 styles in spite of the tremendous variation in color palette and the spatial scale of the painting styles.
|
| 122 |
+
|
| 123 |
+
# 3.4 THE TRAINED NETWORK GENERALIZES ACROSS PAINTING STYLES
|
| 124 |
+
|
| 125 |
+
Since all weights in the transformer network are shared between styles, one way to incorporate a new style to a trained network is to keep the trained weights fixed and learn a new set of $\gamma$ and $\beta$ parameters. To test the efficiency of this approach, we used it to incrementally incorporate Monet’s Plum Trees in Blossom painting to the network trained on 32 varied styles. Figure 6 shows that doing so is much faster than training a new network from scratch (left) while yielding comparable pastiches: even after eight times fewer parameter updates than its single-style counterpart, the finetuned model produces comparable pastiches (right).
|
| 126 |
+
|
| 127 |
+
# 3.5 THE TRAINED NETWORK CAN ARBITRARILY COMBINE PAINTING STYLES
|
| 128 |
+
|
| 129 |
+
The conditional instance normalization approach raises some interesting questions about style representation. In learning a different set of $\gamma$ and $\beta$ parameters for every style, we are in some sense learning an embedding of styles.
|
| 130 |
+
|
| 131 |
+

|
| 132 |
+
Figure 5: The $N$ -styles model exhibits learning dynamics comparable to individual models. (Left column) The N-styles model converges slightly slower in terms of content loss (top) and as fast in terms of style loss (bottom) than individual models. Training on a single Monet painting is represented by two curves with the same color. The dashed curve represents the $N$ -styles model, and the full curves represent individual models. Emphasis has been added on the styles for Vetheuil (1902) (teal) and Water Lilies (purple) for visualization purposes; remaining colors correspond to other Monet paintings (see Appendix). (Center column) The N-styles model reaches a slightly higher final content loss than (top, $8 . 7 \pm 3 . 9 \%$ increase) and a final style loss comparable to (bottom, $8 . 9 \pm 1 6 . 5 \%$ decrease) individual models. (Right column) Pastiches produced by the $N$ -styles network are qualitatively comparable to those produced by individual networks.
|
| 133 |
+
|
| 134 |
+

|
| 135 |
+
Figure 6: The trained network is efficient at learning new styles. (Left column) Learning $\gamma$ and $\beta$ from a trained style transfer network converges much faster than training a model from scratch. (Right) Learning $\gamma$ and $\beta$ for 5,000 steps from a trained style transfer network produces pastiches comparable to that of a single network trained from scratch for 40,000 steps. Conversely, 5,000 step of training from scratch produces leads to a poor pastiche.
|
| 136 |
+
|
| 137 |
+
Previous work suggested that cleverly balancing optimization strategies offers an opportunity to blend painting styles 2. To probe the utility of this embedding, we tried convex combinations of the $\gamma$ and $\beta$ values to blend very distinct painting styles (Figure 1b; Figure 7, left column). Employing a single convex combination produces a smooth transition from one style to the other. Suppose $( \gamma _ { 1 } , \beta _ { 1 } )$ and $( \gamma _ { 2 } , \beta _ { 2 } )$ are the parameters corresponding to two different styles. We use $\gamma = \alpha \times \gamma _ { 1 } +$ $( 1 - \alpha ) \times \gamma _ { 2 }$ and $\beta = \alpha \times \beta _ { 1 } + ( 1 - \alpha ) \times \beta _ { 2 }$ to stylize an image. Employing convex combinations may be extended to an arbitrary number of styles 3. Figure 7 (right column) shows the style loss from the transformer network for a given source image, with respect to the Bicentennial Print and Head of a Clown paintings, as we vary $\alpha$ from 0 to 1. As $\alpha$ increases, the style loss with respect to Bicentennial Print increases, which explains the smooth fading out of that style’s artifact in the transformed image.
|
| 138 |
+
|
| 139 |
+

|
| 140 |
+
Figure 7: The $N$ -styles network can arbitrarily combine artistic styles. (Left) Combining four styles, shown in the corners. Each pastiche corresponds to a different convex combination of the four styles’ $\gamma$ and $\beta$ values. (Right) As we transition from one style to another (Bicentennial Print and Head of a Clown in this case), the style losses vary monotonically.
|
| 141 |
+
|
| 142 |
+
# 4 DISCUSSION
|
| 143 |
+
|
| 144 |
+
It seems surprising that such a small proportion of the network’s parameters can have such an impact on the overall process of style transfer. A similar intuition has been observed in auto-regressive models of images (van den Oord et al., 2016b) and audio (van den Oord et al., 2016a) where the conditioning process is mediated by adjusting the biases for subsequent samples from the model. That said, in the case of art stylization when posed as a feedforward network, it could be that the specific network architecture is unable to take full advantage of its capacity. We see evidence for this behavior in that pruning the architecture leads to qualitatively similar results. Another interpretation could be that the convolutional weights of the style transfer network encode transformations that represent “elements of style”. The scaling and shifting factors would then provide a way for each style to inhibit or enhance the expression of various elements of style to form a global identity of style. While this work does not attempt to verify this hypothesis, we think that this would constitute a very promising direction of research in understanding the computation behind style transfer networks as well as the representation of images in general.
|
| 145 |
+
|
| 146 |
+
Concurrent to this work, Gatys et al. (2016b) demonstrated exciting new methods for revising the loss to selectively adjust the spatial scale, color information and spatial localization of the artistic style information. These methods are complementary to the results in this paper and present an interesting direction for exploring how spatial and color information uniquely factor into artistic style representation.
|
| 147 |
+
|
| 148 |
+
The question of how predictive each style image is of its corresponding style representation is also of great interest. If it is the case that the style representation can easily be predicted from a style image, one could imagine building a transformer network which skips learning an individual conditional embedding and instead learn to produce a pastiche directly from a style and a content image, much like in the original neural algorithm of artistic style, but without any optimization loop at test time.
|
| 149 |
+
|
| 150 |
+
Finally, the learned style representation opens the door to generative models of style: by modeling enough paintings of a given artistic movement (e.g. impressionism), one could build a collection of style embeddings upon which a generative model could be trained. At test time, a style representation would be sampled from the generative model and used in conjunction with the style transfer network to produce a random pastiche of that artistic movement.
|
| 151 |
+
|
| 152 |
+
In summary, we demonstrated that conditional instance normalization constitutes a simple, efficient and scalable modification of style transfer networks that allows them to model multiple styles at the same time. A practical consequence of this approach is that a new painting style may be transmitted to and stored on a mobile device with a small number of parameters. We showed that despite its simplicity, the method is flexible enough to capture very different styles while having very little impact on training time and final performance of the trained network. Finally, we showed that the learned representation of style is useful in arbitrarily combining artistic styles. This work suggests the existence of a learned representation for artistic styles whose vocabulary is flexible enough to capture a diversity of the painted world.
|
| 153 |
+
|
| 154 |
+
# ACKNOWLEDGMENTS
|
| 155 |
+
|
| 156 |
+
We would like to thank Fred Bertsch, Douglas Eck, Cinjon Resnick and the rest of the Google Magenta team for their feedback; Peyman Milanfar, Michael Elad, Feng Yang, Jon Barron, Bhavik Singh, Jennifer Daniel as well as the the Google Brain team for their crucial suggestions and advice; an anonymous reviewer for helpful suggestions about applying this model in a mobile domain. Finally, we would like to thank the Google Cultural Institute, whose curated collection of art photographs was very helpful in finding exciting style images to train on.
|
| 157 |
+
|
| 158 |
+
# REFERENCES
|
| 159 |
+
|
| 160 |
+
Martın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016.
|
| 161 |
+
|
| 162 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 248–255. IEEE, 2009.
|
| 163 |
+
|
| 164 |
+
Alexei A Efros and William T Freeman. Image quilting for texture synthesis and transfer. In Proceedings of the 28th annual conference on Computer graphics and interactive techniques, pp. 341–346. ACM, 2001.
|
| 165 |
+
|
| 166 |
+
Alexei A Efros and Thomas K Leung. Texture synthesis by non-parametric sampling. In Computer Vision, 1999. The Proceedings of the Seventh IEEE International Conference on, volume 2, pp. 1033–1038. IEEE, 1999.
|
| 167 |
+
|
| 168 |
+
Michael Elad and Peyman Milanfar. Style-transfer via texture-synthesis. arXiv preprint arXiv:1609.03057, 2016.
|
| 169 |
+
|
| 170 |
+
Oriel Frigo, Neus Sabater, Julie Delon, and Pierre Hellier. Split and match: Example-based adaptive patch sampling for unsupervised style transfer. 2016.
|
| 171 |
+
|
| 172 |
+
Leon Gatys, Alexander S Ecker, and Matthias Bethge. Texture synthesis using convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 262–270, 2015a.
|
| 173 |
+
|
| 174 |
+
Leon A Gatys, Alexander S Ecker, and Matthias Bethge. A neural algorithm of artistic style. arXiv preprint arXiv:1508.06576, 2015b.
|
| 175 |
+
|
| 176 |
+
Leon A Gatys, Matthias Bethge, Aaron Hertzmann, and Eli Shechtman. Preserving color in neural artistic style transfer. arXiv preprint arXiv:1606.05897, 2016a.
|
| 177 |
+
|
| 178 |
+
Leon A. Gatys, Alexander S. Ecker, Matthias Bethge, Aaron Hertzmann, and Eli Shechtman. Controlling perceptual factors in neural style transfer. CoRR, abs/1611.07865, 2016b. URL http://arxiv.org/abs/1611.07865.
|
| 179 |
+
|
| 180 |
+
Aaron Hertzmann, Charles E Jacobs, Nuria Oliver, Brian Curless, and David H Salesin. Image analogies. In Proceedings of the 28th annual conference on Computer graphics and interactive techniques, pp. 327–340. ACM, 2001.
|
| 181 |
+
|
| 182 |
+
Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. arXiv preprint arXiv:1603.08155, 2016.
|
| 183 |
+
|
| 184 |
+
Bela Julesz. Visual pattern discrimination. IRE Trans. Info Theory, 8:84–92, 1962.
|
| 185 |
+
|
| 186 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 187 |
+
|
| 188 |
+
Vivek Kwatra, Irfan Essa, Aaron Bobick, and Nipun Kwatra. Texture optimization for examplebased synthesis. ACM Transactions on Graphics (ToG), 24(3):795–802, 2005.
|
| 189 |
+
|
| 190 |
+
Chuan Li and Michael Wand. Precomputed real-time texture synthesis with markovian generative adversarial networks. ECCV, 2016. URL http://arxiv.org/abs/1604.04382.
|
| 191 |
+
|
| 192 |
+
Lin Liang, Ce Liu, Ying-Qing Xu, Baining Guo, and Heung-Yeung Shum. Real-time texture synthesis by patch-based sampling. ACM Transactions on Graphics (ToG), 20(3):127–150, 2001.
|
| 193 |
+
|
| 194 |
+
Augustus Odena, Christopher Olah, and Vincent Dumoulin. Avoiding checkerboard artifacts in neural networks. Distill, 2016.
|
| 195 |
+
|
| 196 |
+
Javier Portilla and Eero Simoncelli. A parametric texture model based on joint statistics of complex wavelet coefficients. International Journal of Computer Vision, 40:49–71, 1999.
|
| 197 |
+
|
| 198 |
+
Eero Simoncelli and Bruno Olshausen. Natural image statistics and neural representation. Annual Review of Neuroscience, 24:1193–1216, 2001.
|
| 199 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 200 |
+
Dmitry Ulyanov, Vadim Lebedev, Andrea Vedaldi, and Victor Lempitsky. Texture networks: Feedforward synthesis of textures and stylized images. arXiv preprint arXiv:1603.03417, 2016a.
|
| 201 |
+
Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016b.
|
| 202 |
+
Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, ¨ Nal Kalchbrenner, Andrew W. Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. CoRR, abs/1609.03499, 2016a. URL http://arxiv.org/abs/1609.03499.
|
| 203 |
+
Aaron van den Oord, Nal Kalchbrenner, Oriol Vinyals, Lasse Espeholt, Alex Graves, and Koray ¨ Kavukcuoglu. Conditional image generation with pixelcnn decoders. CoRR, abs/1606.05328, 2016b. URL http://arxiv.org/abs/1606.05328.
|
| 204 |
+
Li-Yi Wei and Marc Levoy. Fast texture synthesis using tree-structured vector quantization. In Proceedings of the 27th annual conference on Computer graphics and interactive techniques, pp. 479–488. ACM Press/Addison-Wesley Publishing Co., 2000.
|
| 205 |
+
Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In European Conference on Computer Vision, pp. 818–833. Springer, 2014.
|
| 206 |
+
|
| 207 |
+
# APPENDIX
|
| 208 |
+
|
| 209 |
+
HYPERPARAMETERS
|
| 210 |
+
Table 1: Style transfer network hyperparameters.
|
| 211 |
+
|
| 212 |
+
<table><tr><td></td><td></td><td></td><td>OperationKernel sizeStrideFeature mapsPaddingNonlinearity</td><td></td><td></td></tr><tr><td>Network-256 × 256× 3 input</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Convolution</td><td>9</td><td>1</td><td>32</td><td>SAME</td><td>ReLU</td></tr><tr><td>Convolution</td><td>3</td><td>2</td><td>64</td><td>SAME</td><td>ReLU</td></tr><tr><td>Convolution</td><td>3</td><td>2</td><td>128</td><td>SAME</td><td>ReLU</td></tr><tr><td>Residual block</td><td></td><td></td><td>128</td><td></td><td></td></tr><tr><td>Residual block</td><td></td><td></td><td>128</td><td></td><td></td></tr><tr><td>Residual block</td><td></td><td></td><td>128</td><td></td><td></td></tr><tr><td>Residual block</td><td></td><td></td><td>128</td><td></td><td></td></tr><tr><td>Residual block</td><td></td><td></td><td>128</td><td></td><td></td></tr><tr><td>Upsampling</td><td></td><td></td><td>64</td><td></td><td></td></tr><tr><td>Upsampling</td><td></td><td></td><td>32</td><td></td><td></td></tr><tr><td>Convolution</td><td>9</td><td>1</td><td>3</td><td>SAME</td><td>Sigmoid</td></tr><tr><td>Residual block - C feature maps</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Convolution</td><td>3</td><td>1</td><td>C</td><td>SAME</td><td>ReLU</td></tr><tr><td>Convolution</td><td>3</td><td>1</td><td>C</td><td>SAME</td><td>Linear</td></tr><tr><td></td><td>Add the input and the output</td><td></td><td></td><td></td><td></td></tr><tr><td>Upsampling- C feature maps</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td>Nearest-neighbor interpolation,factor 2</td><td></td><td></td></tr><tr><td>Convolution</td><td>3</td><td>1</td><td>C</td><td>SAME</td><td>ReLU</td></tr><tr><td></td><td>Padding mode REFLECT</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Normalization Conditional instance normalization after every convolution</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Optimizer Adam (Kingma & Ba,2014) (α = 0.001, β1 = 0.9, β2 = 0.999)</td><td></td><td></td><td></td><td></td></tr><tr><td>Parameter updates 40,000</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Batch size 16</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Weight initialization Isotropic gaussian (μ = O,σ = 0.01)</td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 213 |
+
|
| 214 |
+
# MONET PASTICHES
|
| 215 |
+
|
| 216 |
+

|
| 217 |
+
|
| 218 |
+
Claude Monet, Grainstacks at Giverny; the Evening Sun (1888/1889).
|
| 219 |
+
|
| 220 |
+

|
| 221 |
+
Claude Monet, Plum Trees in Blossom (1879).
|
| 222 |
+
|
| 223 |
+

|
| 224 |
+
Claude Monet, Poppy Field (1873).
|
| 225 |
+
|
| 226 |
+

|
| 227 |
+
Claude Monet, Rouen Cathedral, West Fac¸ade (1894).
|
| 228 |
+
|
| 229 |
+

|
| 230 |
+
Claude Monet, Sunrise (Marine) (1873).
|
| 231 |
+
|
| 232 |
+

|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
Claude Monet, Three Fishing Boats (1886).
|
| 236 |
+
|
| 237 |
+

|
| 238 |
+
|
| 239 |
+
Claude Monet, Vetheuil ´ (1879).
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
|
| 243 |
+
Claude Monet, Vetheuil ´ (1902).
|
| 244 |
+
|
| 245 |
+

|
| 246 |
+
|
| 247 |
+
Claude Monet, Water Lilies (ca. 1914-1917).
|
| 248 |
+
|
| 249 |
+
# VARIED PASTICHES
|
| 250 |
+
|
| 251 |
+

|
| 252 |
+
|
| 253 |
+
Roy Lichtenstein, Bicentennial Print (1975).
|
| 254 |
+
|
| 255 |
+

|
| 256 |
+
|
| 257 |
+
Ernst Ludwig Kirchner, Boy with Sweets (1918).
|
| 258 |
+
|
| 259 |
+

|
| 260 |
+
Paul Signac, Cassis, Cap Lombard, Opus 196 (1889).
|
| 261 |
+
|
| 262 |
+

|
| 263 |
+
Paul Klee, Colors from a Distance (1932).
|
| 264 |
+
|
| 265 |
+

|
| 266 |
+
|
| 267 |
+

|
| 268 |
+
|
| 269 |
+
Jamini Roy, Crucifixion.
|
| 270 |
+
|
| 271 |
+

|
| 272 |
+
Henri de Toulouse-Lautrec, Divan Japonais (1893).
|
| 273 |
+
|
| 274 |
+

|
| 275 |
+
Egon Schiele, Edith with Striped Dress, Sitting (1915).
|
| 276 |
+
|
| 277 |
+

|
| 278 |
+
|
| 279 |
+
Georges Rouault, Head of a Clown (ca. 1907-1908).
|
| 280 |
+
|
| 281 |
+

|
| 282 |
+
William Hoare, Henry Hoare, ”The Magnificent”, of Stourhead (about 1750-1760).
|
| 283 |
+
|
| 284 |
+

|
| 285 |
+
|
| 286 |
+
Giorgio de Chirico, Horses on the seashore (1927/1928).
|
| 287 |
+
|
| 288 |
+

|
| 289 |
+
Vincent van Gogh, Landscape at Saint-Remy (Enclosed Field with Peasant) ´ (1889).
|
| 290 |
+
|
| 291 |
+

|
| 292 |
+
Nicolas Poussin, Landscape with a Calm (1650-1651).
|
| 293 |
+
|
| 294 |
+

|
| 295 |
+
|
| 296 |
+
Bernardino Fungai, Madonna and Child with Two Hermit Saints (early 1480s).
|
| 297 |
+
|
| 298 |
+

|
| 299 |
+
Max Hermann Maxy, Portrait of a Friend (1926).
|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
Juan Gris, Portrait of Pablo Picasso (1912).
|
| 303 |
+
|
| 304 |
+

|
| 305 |
+
|
| 306 |
+
Severini Gino, Ritmo plastico del 14 luglio (1913).
|
| 307 |
+
|
| 308 |
+

|
| 309 |
+
|
| 310 |
+
Richard Diebenkorn, Seawall (1957).
|
| 311 |
+
|
| 312 |
+

|
| 313 |
+
Alice Bailly, Self-Portrait (1917).
|
| 314 |
+
|
| 315 |
+

|
| 316 |
+
Grayson Perry, The Annunciation of the Virgin Deal (2012).
|
| 317 |
+
|
| 318 |
+

|
| 319 |
+
William Glackens, The Green Boathouse (ca. 1922).
|
| 320 |
+
|
| 321 |
+

|
| 322 |
+
|
| 323 |
+
Edvard Munch, The Scream (1910).
|
| 324 |
+
|
| 325 |
+

|
| 326 |
+
|
| 327 |
+
Vincent van Gogh, The Starry Night (1889).
|
| 328 |
+
|
| 329 |
+

|
| 330 |
+
Pieter Bruegel the Elder, The Tower of Babel (1563).
|
| 331 |
+
|
| 332 |
+

|
| 333 |
+
Wolfgang Lettl, The Trial (1981).
|
| 334 |
+
|
| 335 |
+

|
| 336 |
+
|
| 337 |
+
Douglas Coupland, Thomson No. 5 (Yellow Sunset) (2011).
|
| 338 |
+
|
| 339 |
+

|
| 340 |
+
Claude Monet, Three Fishing Boats (1886).
|
| 341 |
+
|
| 342 |
+

|
| 343 |
+
John Ruskin, Trees in a Lane (1847).
|
| 344 |
+
|
| 345 |
+

|
| 346 |
+
Giuseppe Cades, Tullia about to Ride over the Body of Her Father in Her Chariot (about 1770-1775).
|
| 347 |
+
|
| 348 |
+

|
| 349 |
+
Berthe Morisot, Under the Orange Tree (1889).
|
| 350 |
+
|
| 351 |
+

|
| 352 |
+
|
| 353 |
+
Giulio Romano (Giulio Pippi), Victory, Janus, Chronos and Gaea (about 1532-1534).
|
| 354 |
+
|
| 355 |
+

|
| 356 |
+
|
| 357 |
+
Wassily Kandinsky, White Zig Zags (1922).
|
parse/train/BJO-BuT1g/BJO-BuT1g_content_list.json
ADDED
|
@@ -0,0 +1,1951 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
+
808,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Vincent Dumoulin & Jonathon Shlens & Manjunath Kudlur ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
143,
|
| 20 |
+
604,
|
| 21 |
+
160
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Google Brain, Mountain View, CA ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
162,
|
| 31 |
+
415,
|
| 32 |
+
178
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "vi.dumoulin@gmail.com, shlens@google.com, keveman@google.com ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
186,
|
| 41 |
+
183,
|
| 42 |
+
772,
|
| 43 |
+
195
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "ABSTRACT ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
454,
|
| 53 |
+
233,
|
| 54 |
+
544,
|
| 55 |
+
248
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "The diversity of painting styles represents a rich visual vocabulary for the construction of an image. The degree to which one may learn and parsimoniously capture this visual vocabulary measures our understanding of the higher level features of paintings, if not images in general. In this work we investigate the construction of a single, scalable deep network that can parsimoniously capture the artistic style of a diversity of paintings. We demonstrate that such a network generalizes across a diversity of artistic styles by reducing a painting to a point in an embedding space. Importantly, this model permits a user to explore new painting styles by arbitrarily combining the styles learned from individual paintings. We hope that this work provides a useful step towards building rich models of paintings and offers a window on to the structure of the learned representation of artistic style. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
263,
|
| 65 |
+
764,
|
| 66 |
+
429
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 INTRODUCTION ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
454,
|
| 77 |
+
336,
|
| 78 |
+
469
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "A pastiche is an artistic work that imitates the style of another one. Computer vision and more recently machine learning have a history of trying to automate pastiche, that is, render an image in the style of another one. This task is called style transfer, and is closely related to the texture synthesis task. While the latter tries to capture the statistical relationship between the pixels of a source image which is assumed to have a stationary distribution at some scale, the former does so while also attempting to preserve some notion of content. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
484,
|
| 88 |
+
825,
|
| 89 |
+
569
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "On the computer vision side, Efros & Leung (1999) and Wei & Levoy (2000) attempt to “grow” textures one pixel at a time using non-parametric sampling of pixels in an examplar image. Efros & Freeman (2001) and Liang et al. (2001) extend this idea to “growing” textures one patch at a time, and Efros & Freeman (2001) uses the approach to implement “texture transfer”, i.e. transfering the texture of an object onto another one. Kwatra et al. (2005) approaches the texture synthesis problem from an energy minimization perspective, progressively refining the texture using an EMlike algorithm. Hertzmann et al. (2001) introduces the concept of “image analogies”: given a pair of “unfiltered” and “filtered” versions of an examplar image, a target image is processed to create an analogous “filtered” result. More recently, Frigo et al. (2016) treats style transfer as a local texture transfer (using an adaptive patch partition) followed by a global color transfer, and Elad & Milanfar (2016) extends Kwatra’s energy-based method into a style transfer algorithm by taking content similarity into account. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
575,
|
| 99 |
+
825,
|
| 100 |
+
742
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "On the machine learning side, it has been shown that a trained classifier can be used as a feature extractor to drive texture synthesis and style transfer. Gatys et al. (2015a) uses the VGG-19 network (Simonyan & Zisserman, 2014) to extract features from a texture image and a synthesized texture. The two sets of features are compared and the synthesized texture is modified by gradient descent so that the two sets of features are as close as possible. Gatys et al. (2015b) extends this idea to style transfer by adding the constraint that the synthesized image also be close to a content image with respect to another set of features extracted by the trained VGG-19 classifier. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
750,
|
| 110 |
+
823,
|
| 111 |
+
847
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "While very flexible, this algorithm is expensive to run due to the optimization loop being carried. Ulyanov et al. (2016a), Li & Wand (2016) and Johnson et al. (2016) tackle this problem by introducing a feedforward style transfer network, which is trained to go from content to pastiche image in one pass. However, in doing so some of the flexibility of the original algorithm is lost: the style transfer network is tied to a single style, which means that separate networks have to be trained (a) With conditional instance normalization, a single style transfer network can capture 32 styles at the same time, five of which are shown here. All 32 styles in this single model are in the Appendix. Golden Gate Bridge photograph by Rich Niewiroski Jr. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
176,
|
| 120 |
+
854,
|
| 121 |
+
823,
|
| 122 |
+
924
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "image",
|
| 128 |
+
"img_path": "images/df8e77998ba668f5d97412f63335585b1a01cc4b4f8f262b9725f9f6146654c5.jpg",
|
| 129 |
+
"image_caption": [],
|
| 130 |
+
"image_footnote": [],
|
| 131 |
+
"bbox": [
|
| 132 |
+
196,
|
| 133 |
+
101,
|
| 134 |
+
802,
|
| 135 |
+
406
|
| 136 |
+
],
|
| 137 |
+
"page_idx": 1
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"type": "text",
|
| 141 |
+
"text": "",
|
| 142 |
+
"bbox": [
|
| 143 |
+
178,
|
| 144 |
+
412,
|
| 145 |
+
821,
|
| 146 |
+
450
|
| 147 |
+
],
|
| 148 |
+
"page_idx": 1
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"type": "image",
|
| 152 |
+
"img_path": "images/50a38ae6ebd099da9d49ab3f5cbfa8115049178cb65b68608a1bc48f441354bf.jpg",
|
| 153 |
+
"image_caption": [],
|
| 154 |
+
"image_footnote": [],
|
| 155 |
+
"bbox": [
|
| 156 |
+
196,
|
| 157 |
+
458,
|
| 158 |
+
803,
|
| 159 |
+
535
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "(b) The style representation learned via conditional instance normalization permits the arbitrary combination of artistic styles. Each pastiche in the sequence corresponds to a different step in interpolating between the $\\gamma$ and $\\beta$ values associated with two styles the model was trained on. ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
176,
|
| 168 |
+
541,
|
| 169 |
+
821,
|
| 170 |
+
579
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Figure 1: Pastiches produced by a style transfer network trained on 32 styles chosen for their variety. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
174,
|
| 179 |
+
590,
|
| 180 |
+
821,
|
| 181 |
+
606
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "for every style being modeled. Subsequent work has brought some performance improvements to style transfer networks, e.g. with respect to color preservation (Gatys et al., 2016a) or style transfer quality (Ulyanov et al., 2016b), but to our knowledge the problem of the single-purpose nature of style transfer networks remains untackled. ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
174,
|
| 190 |
+
645,
|
| 191 |
+
825,
|
| 192 |
+
700
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "We think this is an important problem that, if solved, would have both scientific and practical importance. First, style transfer has already found use in mobile applications, for which on-device processing is contingent upon the models having a reasonable memory footprint. More broadly, building a separate network for each style ignores the fact that individual paintings share many common visual elements and a true model that captures artistic style would be able to exploit and learn from such regularities. Furthermore, the degree to which an artistic styling model might generalize across painting styles would directly measure our ability to build systems that parsimoniously capture the higher level features and statistics of photographs and images (Simoncelli & Olshausen, 2001). ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
174,
|
| 201 |
+
708,
|
| 202 |
+
825,
|
| 203 |
+
833
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "In this work, we show that a simple modification of the style transfer network, namely the introduction of conditional instance normalization, allows it to learn multiple styles (Figure 1a).We demonstrate that this approach is flexible yet comparable to single-purpose style transfer networks, both qualitatively and in terms of convergence properties. This model reduces each style image into a point in an embedding space. Furthermore, this model provides a generic representation for artistic styles that seems flexible enough to capture new artistic styles much faster than a single-purpose network. Finally, we show that the embeddding space representation permits one to arbitrarily combine artistic styles in novel ways not previously observed (Figure 1b). ",
|
| 210 |
+
"bbox": [
|
| 211 |
+
174,
|
| 212 |
+
840,
|
| 213 |
+
825,
|
| 214 |
+
924
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "image",
|
| 220 |
+
"img_path": "images/23dbff951ee44413419bcb12434cdfe94df7fafcc770f5259c992a3cf285b0ff.jpg",
|
| 221 |
+
"image_caption": [
|
| 222 |
+
"Figure 2: Style transfer network training diagram (Johnson et al., 2016; Ulyanov et al., 2016a). A pastiche image is produced by feeding a content image through the style transfer network. The two images, along with a style image, are passed through a trained classifier, and the resulting intermediate representations are used to compute the content loss $\\mathcal { L } _ { c }$ and style loss $\\mathcal { L } _ { s }$ . The parameters of the classifier are kept fixed throughout training. "
|
| 223 |
+
],
|
| 224 |
+
"image_footnote": [],
|
| 225 |
+
"bbox": [
|
| 226 |
+
205,
|
| 227 |
+
99,
|
| 228 |
+
784,
|
| 229 |
+
248
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 2
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "",
|
| 236 |
+
"bbox": [
|
| 237 |
+
174,
|
| 238 |
+
361,
|
| 239 |
+
823,
|
| 240 |
+
390
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 2
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "text",
|
| 246 |
+
"text": "2 STYLE TRANSFER WITH DEEP NETWORKS ",
|
| 247 |
+
"text_level": 1,
|
| 248 |
+
"bbox": [
|
| 249 |
+
174,
|
| 250 |
+
410,
|
| 251 |
+
552,
|
| 252 |
+
425
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "Style transfer can be defined as finding a pastiche image $p$ whose content is similar to that of a content image $c$ but whose style is similar to that of a style image $s$ . This objective is by nature vaguely defined, because similarity in content and style are themselves vaguely defined. ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
176,
|
| 261 |
+
440,
|
| 262 |
+
825,
|
| 263 |
+
483
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "The neural algorithm of artistic style proposes the following definitions: ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
174,
|
| 272 |
+
489,
|
| 273 |
+
643,
|
| 274 |
+
505
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "• Two images are similar in content if their high-level features as extracted by a trained classifier are close in Euclidian distance. \n• Two images are similar in style if their low-level features as extracted by a trained classifier share the same statistics or, more concretely, if the difference between the features’ Gram matrices has a small Frobenius norm. ",
|
| 281 |
+
"bbox": [
|
| 282 |
+
215,
|
| 283 |
+
515,
|
| 284 |
+
825,
|
| 285 |
+
589
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "text",
|
| 291 |
+
"text": "The first point is motivated by the empirical observation that high-level features in classifiers tend to correspond to higher levels of abstractions (see Zeiler & Fergus (2014) for visualizations; see Johnson et al. (2016) for style transfer features). The second point is motivated by the observation that the artistic style of a painting may be interpreted as a visual texture (Gatys et al., 2015a). A visual texture is conjectured to be spatially homogenous and consist of repeated structural motifs whose minimal sufficient statistics are captured by lower order statistical measurements (Julesz, 1962; Portilla & Simoncelli, 1999). ",
|
| 292 |
+
"bbox": [
|
| 293 |
+
173,
|
| 294 |
+
601,
|
| 295 |
+
825,
|
| 296 |
+
699
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "In its original formulation, the neural algorithm of artistic style proceeds as follows: starting from some initialization of $p$ (e.g. $c$ , or some random initialization), the algorithm adapts $p$ to minimize the loss function ",
|
| 303 |
+
"bbox": [
|
| 304 |
+
176,
|
| 305 |
+
704,
|
| 306 |
+
821,
|
| 307 |
+
746
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "equation",
|
| 313 |
+
"img_path": "images/00a00421cbe5977097c28f53806d2a74917843cf5305459a6dde91a509304bb1.jpg",
|
| 314 |
+
"text": "$$\n\\begin{array} { r } { \\mathcal { L } ( s , c , p ) = \\lambda _ { s } \\mathcal { L } _ { s } ( p ) + \\lambda _ { c } \\mathcal { L } _ { c } ( p ) , } \\end{array}\n$$",
|
| 315 |
+
"text_format": "latex",
|
| 316 |
+
"bbox": [
|
| 317 |
+
387,
|
| 318 |
+
746,
|
| 319 |
+
609,
|
| 320 |
+
762
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 2
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "where $\\mathcal { L } _ { s } ( p )$ is the style loss, $\\mathcal { L } _ { c } ( p )$ is the content loss and $\\lambda _ { s } , \\lambda _ { c }$ are scaling hyperparameters. Given a set of “style layers” $s$ and a set of “content layers” $\\mathcal { C }$ , the style and content losses are themselves defined as ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
176,
|
| 329 |
+
765,
|
| 330 |
+
825,
|
| 331 |
+
804
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 2
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "equation",
|
| 337 |
+
"img_path": "images/83019f2d4a5722e35a4285b39a6ded4edce52137c536b9ac64da50c8ea5de18f.jpg",
|
| 338 |
+
"text": "$$\n\\begin{array} { c } { { \\mathcal { L } _ { s } ( p ) = \\displaystyle \\sum _ { i \\in \\mathcal { S } } \\frac { 1 } { U _ { i } } \\parallel G ( \\phi _ { i } ( p ) ) - G ( \\phi _ { i } ( s ) ) \\parallel _ { F } ^ { 2 } } } \\\\ { { \\mathcal { L } _ { c } ( p ) = \\displaystyle \\sum _ { j \\in \\mathcal { C } } \\frac { 1 } { U _ { j } } \\parallel \\phi _ { j } ( p ) - \\phi _ { j } ( c ) \\parallel _ { 2 } ^ { 2 } } } \\end{array}\n$$",
|
| 339 |
+
"text_format": "latex",
|
| 340 |
+
"bbox": [
|
| 341 |
+
349,
|
| 342 |
+
801,
|
| 343 |
+
648,
|
| 344 |
+
880
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "where $\\phi _ { l } ( x )$ are the classifier activations at layer $l$ , $U _ { l }$ is the total number of units at layer $l$ and $G ( \\phi _ { l } ( x ) )$ is the Gram matrix associated with the layer $l$ activations. In practice, we set $\\lambda _ { c } = 1 . 0$ and and leave $\\lambda _ { s }$ as a free hyper-parameter. ",
|
| 351 |
+
"bbox": [
|
| 352 |
+
176,
|
| 353 |
+
881,
|
| 354 |
+
825,
|
| 355 |
+
924
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 2
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"text": "In order to speed up the procedure outlined above, a feed-forward convolutional network, termed a style transfer network $T$ , is introduced to learn the transformation (Johnson et al., 2016; Li & Wand, 2016; Ulyanov et al., 2016a). It takes as input a content image $c$ and outputs the pastiche image $p$ directly (Figure 2). The network is trained on many content images (Deng et al., 2009) using the same loss function as above, i.e. ",
|
| 362 |
+
"bbox": [
|
| 363 |
+
174,
|
| 364 |
+
103,
|
| 365 |
+
825,
|
| 366 |
+
174
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 3
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "equation",
|
| 372 |
+
"img_path": "images/1de61632c3286fdd3971e31bc03a0d04d4856ad89a06a63e72af98508d8e7ddf.jpg",
|
| 373 |
+
"text": "$$\n\\begin{array} { r } { \\mathcal { L } ( s , c ) = \\lambda _ { s } \\mathcal { L } _ { s } ( T ( c ) ) + \\lambda _ { c } \\mathcal { L } _ { c } ( T ( c ) ) . } \\end{array}\n$$",
|
| 374 |
+
"text_format": "latex",
|
| 375 |
+
"bbox": [
|
| 376 |
+
370,
|
| 377 |
+
191,
|
| 378 |
+
625,
|
| 379 |
+
209
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 3
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "While feedforward style transfer networks solve the problem of speed at test-time, they also suffer from the fact that the network $T$ is tied to one specific painting style. This means that a separate network $T$ has to be trained for every style to be imitated. The real-world impact of this limitation is that it becomes prohibitive to implement a style transfer application on a memory-limited device, such as a smartphone. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
173,
|
| 388 |
+
234,
|
| 389 |
+
825,
|
| 390 |
+
305
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "2.1 N-STYLES FEEDFORWARD STYLE TRANSFER NETWORKS ",
|
| 397 |
+
"text_level": 1,
|
| 398 |
+
"bbox": [
|
| 399 |
+
174,
|
| 400 |
+
335,
|
| 401 |
+
604,
|
| 402 |
+
348
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 3
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "text",
|
| 408 |
+
"text": "Our work stems from the intuition that many styles probably share some degree of computation, and that this sharing is thrown away by training $N$ networks from scratch when building an $N .$ - styles style transfer system. For instance, many impressionist paintings share similar paint strokes but differ in the color palette being used. In that case, it seems very wasteful to treat a set of $N$ impressionist paintings as completely separate styles. ",
|
| 409 |
+
"bbox": [
|
| 410 |
+
174,
|
| 411 |
+
364,
|
| 412 |
+
825,
|
| 413 |
+
435
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "To take this into account, we propose to train a single conditional style transfer network $T ( c , s )$ for $N$ styles. The conditional network is given both a content image and the identity of the style to apply and produces a pastiche corresponding to that style. While the idea is straightforward on paper, there remains the open question of how conditioning should be done. In exploring this question, we found a very surprising fact about the role of normalization in style transfer networks: to model a style, it is sufficient to specialize scaling and shifting parameters after normalization to each specific style. In other words, all convolutional weights of a style transfer network can be shared across many styles, and it is sufficient to tune parameters for an affine transformation after normalization for each style. ",
|
| 420 |
+
"bbox": [
|
| 421 |
+
173,
|
| 422 |
+
441,
|
| 423 |
+
825,
|
| 424 |
+
554
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 3
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "We call this approach conditional instance normalization. The goal of the procedure is transform a layer’s activations $x$ into a normalized activation $z$ specific to painting style $s$ . Building off the instance normalization technique proposed in Ulyanov et al. (2016b), we augment the $\\gamma$ and $\\beta$ parameters so that they’re $N \\times C$ matrices, where $N$ is the number of styles being modeled and $C$ is the number of output feature maps. Conditioning on a style is achieved as follows: ",
|
| 431 |
+
"bbox": [
|
| 432 |
+
174,
|
| 433 |
+
560,
|
| 434 |
+
825,
|
| 435 |
+
631
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 3
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "equation",
|
| 441 |
+
"img_path": "images/8903aee416ada28dd7ba8bfc886485d76c4f96f6f14434e6ca9c93143592e6b6.jpg",
|
| 442 |
+
"text": "$$\nz = \\gamma _ { s } \\left( \\frac { x - \\mu } { \\sigma } \\right) + \\beta _ { s }\n$$",
|
| 443 |
+
"text_format": "latex",
|
| 444 |
+
"bbox": [
|
| 445 |
+
421,
|
| 446 |
+
648,
|
| 447 |
+
576,
|
| 448 |
+
683
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 3
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "where $\\mu$ and $\\sigma$ are $x$ ’s mean and standard deviation taken across spatial axes and $\\gamma _ { s }$ and $\\beta _ { s }$ are obtained by selecting the row corresponding to $s$ in the $\\gamma$ and $\\beta$ matrices (Figure 3). One added benefit of this approach is that one can stylize a single image into $N$ painting styles with a single feed forward pass of the network with a batch size of $N$ . In constrast, a single-style network requires $N$ feed forward passes to perform $N$ style transfers (Johnson et al., 2016; Li & Wand, 2016; Ulyanov et al., 2016a). ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
173,
|
| 457 |
+
700,
|
| 458 |
+
825,
|
| 459 |
+
785
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 3
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "Because conditional instance normalization only acts on the scaling and shifting parameters, training a style transfer network on $N$ styles requires fewer parameters than the naive approach of training $N$ separate networks. In a typical network setup, the model consists of roughly 1.6M parameters, only around 3K (or $0 . 2 \\%$ ) of which specify individual artistic styles. In fact, because the size of $\\gamma$ and $\\beta$ grows linearly with respect to the number of feature maps in the network, this approach requires $O ( N \\times L )$ parameters, where $L$ is the total number of feature maps in the network. ",
|
| 466 |
+
"bbox": [
|
| 467 |
+
173,
|
| 468 |
+
790,
|
| 469 |
+
825,
|
| 470 |
+
875
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 3
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "In addition, as is discussed in subsection 3.4, conditional instance normalization presents the advantage that integrating an $N + 1 ^ { t h }$ style to the network is cheap because of the very small number of parameters to train. ",
|
| 477 |
+
"bbox": [
|
| 478 |
+
176,
|
| 479 |
+
881,
|
| 480 |
+
823,
|
| 481 |
+
924
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 3
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "image",
|
| 487 |
+
"img_path": "images/5d34eef4793ed46349bc8a8ae998f4fce40d761e4769158dcfb694d0ece57307.jpg",
|
| 488 |
+
"image_caption": [
|
| 489 |
+
"Figure 3: Conditional instance normalization. The input activation $x$ is normalized across both spatial dimensions and subsequently scaled and shifted using style-dependent parameter vectors $\\gamma _ { s } , \\beta _ { s }$ where $s$ indexes the style label. "
|
| 490 |
+
],
|
| 491 |
+
"image_footnote": [],
|
| 492 |
+
"bbox": [
|
| 493 |
+
307,
|
| 494 |
+
102,
|
| 495 |
+
694,
|
| 496 |
+
222
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 4
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "3 EXPERIMENTAL RESULTS ",
|
| 503 |
+
"text_level": 1,
|
| 504 |
+
"bbox": [
|
| 505 |
+
176,
|
| 506 |
+
305,
|
| 507 |
+
415,
|
| 508 |
+
320
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 4
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "3.1 METHODOLOGY ",
|
| 515 |
+
"text_level": 1,
|
| 516 |
+
"bbox": [
|
| 517 |
+
176,
|
| 518 |
+
335,
|
| 519 |
+
328,
|
| 520 |
+
351
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 4
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "Unless noted otherwise, all style transfer networks were trained using the hyperparameters outlined in the Appendix’s Table 1. ",
|
| 527 |
+
"bbox": [
|
| 528 |
+
176,
|
| 529 |
+
362,
|
| 530 |
+
823,
|
| 531 |
+
390
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 4
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "We used the same network architecture as in Johnson et al. (2016), except for two key details: zero-padding is replaced with mirror-padding, and transposed convolutions (also sometimes called deconvolutions) are replaced with nearest-neighbor upsampling followed by a convolution. The use of mirror-padding avoids border patterns sometimes caused by zero-padding in SAME-padded convolutions, while the replacement for transposed convolutions avoids checkerboard patterning, as discussed in in Odena et al. (2016). We find that with these two improvements training the network no longer requires a total variation loss that was previously employed to remove high frequency noise as proposed in Johnson et al. (2016). ",
|
| 538 |
+
"bbox": [
|
| 539 |
+
174,
|
| 540 |
+
397,
|
| 541 |
+
825,
|
| 542 |
+
508
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 4
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "Our training procedure follows Johnson et al. (2016). Briefly, we employ the ImageNet dataset (Deng et al., 2009) as a corpus of training content images. We train the $N$ -style network with stochastic gradient descent using the Adam optimizer (Kingma & Ba, 2014). Details of the model architecture are in the Appendix. A complete implementation of the model in TensorFlow (Abadi et al., 2016) as well as a pretrained model are available for download 1. The evaluation images used for this work were resized such that their smaller side has size 512. Their stylized versions were then center-cropped to 512x512 pixels for display. ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
174,
|
| 551 |
+
515,
|
| 552 |
+
825,
|
| 553 |
+
613
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "text",
|
| 559 |
+
"text": "3.2 TRAINING A SINGLE NETWORK ON N STYLES PRODUCES STYLIZATIONS COMPARABLETO INDEPENDENTLY-TRAINED MODELS",
|
| 560 |
+
"text_level": 1,
|
| 561 |
+
"bbox": [
|
| 562 |
+
176,
|
| 563 |
+
630,
|
| 564 |
+
810,
|
| 565 |
+
657
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 4
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "As a first test, we trained a 10-styles model on stylistically similar images, namely 10 impressionist paintings from Claude Monet. Figure 4 shows the result of applying the trained network on evaluation images for a subset of the styles, with the full results being displayed in the Appendix. The model captures different color palettes and textures. We emphasize that $9 9 . 8 \\%$ of the parameters are shared across all styles in contrast to $0 . 2 \\%$ of the parameters which are unique to each painting style. ",
|
| 572 |
+
"bbox": [
|
| 573 |
+
174,
|
| 574 |
+
670,
|
| 575 |
+
825,
|
| 576 |
+
752
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 4
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "text",
|
| 582 |
+
"text": "To get a sense of what is being traded off by folding 10 styles into a single network, we trained a separate, single-style network on each style and compared them to the 10-styles network in terms of style transfer quality and training speed (Figure 5). ",
|
| 583 |
+
"bbox": [
|
| 584 |
+
176,
|
| 585 |
+
760,
|
| 586 |
+
825,
|
| 587 |
+
803
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 4
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "The left column compares the learning curves for style and content losses between the single-style networks and the 10-styles network. The losses were averaged over 32 random batches of content images. By visual inspection, we observe that the 10-styles network converges as quickly as the single-style networks in terms of style loss, but lags slightly behind in terms of content loss. ",
|
| 594 |
+
"bbox": [
|
| 595 |
+
176,
|
| 596 |
+
809,
|
| 597 |
+
825,
|
| 598 |
+
864
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 4
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "In order to quantify this observation, we compare the final losses for 10-styles and single-style models (center column). The 10-styles network’s content loss is around $8 . 7 \\pm 3 . 9 \\%$ higher than its single-style counterparts, while the difference in style losses $( 8 . 9 \\pm 1 6 . 5 \\%$ lower) is insignificant. While the $N$ -styles network suffers from a slight decrease in content loss convergence speed, this may not be a fair comparison, given that it takes $N$ times more parameter updates to train $N$ singlestyle networks separately than to train them with an $N$ -styles network. ",
|
| 605 |
+
"bbox": [
|
| 606 |
+
176,
|
| 607 |
+
872,
|
| 608 |
+
825,
|
| 609 |
+
900
|
| 610 |
+
],
|
| 611 |
+
"page_idx": 4
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"type": "image",
|
| 615 |
+
"img_path": "images/3c5729c7b2bbd4a39f2057d4bf138e57b2e103bb7ee497a54c2ee0d1a0ff906c.jpg",
|
| 616 |
+
"image_caption": [
|
| 617 |
+
"Figure 4: A single style transfer network was trained to capture the style of 10 Monet paintings, five of which are shown here. All 10 styles in this single model are in the Appendix. Golden Gate Bridge photograph by Rich Niewiroski Jr. "
|
| 618 |
+
],
|
| 619 |
+
"image_footnote": [],
|
| 620 |
+
"bbox": [
|
| 621 |
+
196,
|
| 622 |
+
101,
|
| 623 |
+
802,
|
| 624 |
+
406
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 5
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "",
|
| 631 |
+
"bbox": [
|
| 632 |
+
174,
|
| 633 |
+
493,
|
| 634 |
+
825,
|
| 635 |
+
549
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 5
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "The right column shows a comparison between the pastiches produced by the 10-styles network and the ones produced by the single-style networks. We see that both results are qualitatively similar. ",
|
| 642 |
+
"bbox": [
|
| 643 |
+
171,
|
| 644 |
+
556,
|
| 645 |
+
823,
|
| 646 |
+
584
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 5
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "text",
|
| 652 |
+
"text": "3.3 THE N-STYLES MODEL IS FLEXIBLE ENOUGH TO CAPTURE VERY DIFFERENT STYLES ",
|
| 653 |
+
"text_level": 1,
|
| 654 |
+
"bbox": [
|
| 655 |
+
173,
|
| 656 |
+
602,
|
| 657 |
+
799,
|
| 658 |
+
616
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 5
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "We evaluated the flexibility of the $N$ -styles model by training a style transfer network on 32 works of art chosen for their diversity. Figure 1a shows the result of applying the trained network on evaluation images for a subset of the styles. Once again, the full results are displayed in the Appendix. The model appears to be capable of modeling all 32 styles in spite of the tremendous variation in color palette and the spatial scale of the painting styles. ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
174,
|
| 667 |
+
627,
|
| 668 |
+
825,
|
| 669 |
+
698
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 5
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "3.4 THE TRAINED NETWORK GENERALIZES ACROSS PAINTING STYLES ",
|
| 676 |
+
"text_level": 1,
|
| 677 |
+
"bbox": [
|
| 678 |
+
176,
|
| 679 |
+
715,
|
| 680 |
+
673,
|
| 681 |
+
729
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 5
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "Since all weights in the transformer network are shared between styles, one way to incorporate a new style to a trained network is to keep the trained weights fixed and learn a new set of $\\gamma$ and $\\beta$ parameters. To test the efficiency of this approach, we used it to incrementally incorporate Monet’s Plum Trees in Blossom painting to the network trained on 32 varied styles. Figure 6 shows that doing so is much faster than training a new network from scratch (left) while yielding comparable pastiches: even after eight times fewer parameter updates than its single-style counterpart, the finetuned model produces comparable pastiches (right). ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
174,
|
| 690 |
+
741,
|
| 691 |
+
825,
|
| 692 |
+
838
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 5
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "3.5 THE TRAINED NETWORK CAN ARBITRARILY COMBINE PAINTING STYLES ",
|
| 699 |
+
"text_level": 1,
|
| 700 |
+
"bbox": [
|
| 701 |
+
176,
|
| 702 |
+
856,
|
| 703 |
+
717,
|
| 704 |
+
869
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 5
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "The conditional instance normalization approach raises some interesting questions about style representation. In learning a different set of $\\gamma$ and $\\beta$ parameters for every style, we are in some sense learning an embedding of styles. ",
|
| 711 |
+
"bbox": [
|
| 712 |
+
176,
|
| 713 |
+
882,
|
| 714 |
+
823,
|
| 715 |
+
924
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 5
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "image",
|
| 721 |
+
"img_path": "images/43fb7c853f97127dad9e4e0405b6f98bfe1d3a2006653d22136ceb81910ffd64.jpg",
|
| 722 |
+
"image_caption": [
|
| 723 |
+
"Figure 5: The $N$ -styles model exhibits learning dynamics comparable to individual models. (Left column) The N-styles model converges slightly slower in terms of content loss (top) and as fast in terms of style loss (bottom) than individual models. Training on a single Monet painting is represented by two curves with the same color. The dashed curve represents the $N$ -styles model, and the full curves represent individual models. Emphasis has been added on the styles for Vetheuil (1902) (teal) and Water Lilies (purple) for visualization purposes; remaining colors correspond to other Monet paintings (see Appendix). (Center column) The N-styles model reaches a slightly higher final content loss than (top, $8 . 7 \\pm 3 . 9 \\%$ increase) and a final style loss comparable to (bottom, $8 . 9 \\pm 1 6 . 5 \\%$ decrease) individual models. (Right column) Pastiches produced by the $N$ -styles network are qualitatively comparable to those produced by individual networks. "
|
| 724 |
+
],
|
| 725 |
+
"image_footnote": [],
|
| 726 |
+
"bbox": [
|
| 727 |
+
174,
|
| 728 |
+
101,
|
| 729 |
+
792,
|
| 730 |
+
359
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 6
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "image",
|
| 736 |
+
"img_path": "images/8899f6aa7fa60a1c9656b32856001f87278c6c1e7c9bed920d5bd7fd2235a517.jpg",
|
| 737 |
+
"image_caption": [
|
| 738 |
+
"Figure 6: The trained network is efficient at learning new styles. (Left column) Learning $\\gamma$ and $\\beta$ from a trained style transfer network converges much faster than training a model from scratch. (Right) Learning $\\gamma$ and $\\beta$ for 5,000 steps from a trained style transfer network produces pastiches comparable to that of a single network trained from scratch for 40,000 steps. Conversely, 5,000 step of training from scratch produces leads to a poor pastiche. "
|
| 739 |
+
],
|
| 740 |
+
"image_footnote": [],
|
| 741 |
+
"bbox": [
|
| 742 |
+
209,
|
| 743 |
+
534,
|
| 744 |
+
792,
|
| 745 |
+
746
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 6
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "Previous work suggested that cleverly balancing optimization strategies offers an opportunity to blend painting styles 2. To probe the utility of this embedding, we tried convex combinations of the $\\gamma$ and $\\beta$ values to blend very distinct painting styles (Figure 1b; Figure 7, left column). Employing a single convex combination produces a smooth transition from one style to the other. Suppose $( \\gamma _ { 1 } , \\beta _ { 1 } )$ and $( \\gamma _ { 2 } , \\beta _ { 2 } )$ are the parameters corresponding to two different styles. We use $\\gamma = \\alpha \\times \\gamma _ { 1 } +$ $( 1 - \\alpha ) \\times \\gamma _ { 2 }$ and $\\beta = \\alpha \\times \\beta _ { 1 } + ( 1 - \\alpha ) \\times \\beta _ { 2 }$ to stylize an image. Employing convex combinations may be extended to an arbitrary number of styles 3. Figure 7 (right column) shows the style loss from the transformer network for a given source image, with respect to the Bicentennial Print and Head of a Clown paintings, as we vary $\\alpha$ from 0 to 1. As $\\alpha$ increases, the style loss with respect to Bicentennial Print increases, which explains the smooth fading out of that style’s artifact in the transformed image. ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
178,
|
| 754 |
+
866,
|
| 755 |
+
823,
|
| 756 |
+
895
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 6
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "image",
|
| 762 |
+
"img_path": "images/bb45f4fb381de4e4436efa8b66c33a60449587edf33af2513d572b08d254a1d6.jpg",
|
| 763 |
+
"image_caption": [
|
| 764 |
+
"Figure 7: The $N$ -styles network can arbitrarily combine artistic styles. (Left) Combining four styles, shown in the corners. Each pastiche corresponds to a different convex combination of the four styles’ $\\gamma$ and $\\beta$ values. (Right) As we transition from one style to another (Bicentennial Print and Head of a Clown in this case), the style losses vary monotonically. "
|
| 765 |
+
],
|
| 766 |
+
"image_footnote": [],
|
| 767 |
+
"bbox": [
|
| 768 |
+
173,
|
| 769 |
+
101,
|
| 770 |
+
812,
|
| 771 |
+
316
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 7
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "",
|
| 778 |
+
"bbox": [
|
| 779 |
+
174,
|
| 780 |
+
411,
|
| 781 |
+
825,
|
| 782 |
+
537
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 7
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "4 DISCUSSION ",
|
| 789 |
+
"text_level": 1,
|
| 790 |
+
"bbox": [
|
| 791 |
+
176,
|
| 792 |
+
559,
|
| 793 |
+
310,
|
| 794 |
+
575
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 7
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "It seems surprising that such a small proportion of the network’s parameters can have such an impact on the overall process of style transfer. A similar intuition has been observed in auto-regressive models of images (van den Oord et al., 2016b) and audio (van den Oord et al., 2016a) where the conditioning process is mediated by adjusting the biases for subsequent samples from the model. That said, in the case of art stylization when posed as a feedforward network, it could be that the specific network architecture is unable to take full advantage of its capacity. We see evidence for this behavior in that pruning the architecture leads to qualitatively similar results. Another interpretation could be that the convolutional weights of the style transfer network encode transformations that represent “elements of style”. The scaling and shifting factors would then provide a way for each style to inhibit or enhance the expression of various elements of style to form a global identity of style. While this work does not attempt to verify this hypothesis, we think that this would constitute a very promising direction of research in understanding the computation behind style transfer networks as well as the representation of images in general. ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
174,
|
| 803 |
+
592,
|
| 804 |
+
825,
|
| 805 |
+
772
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 7
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "Concurrent to this work, Gatys et al. (2016b) demonstrated exciting new methods for revising the loss to selectively adjust the spatial scale, color information and spatial localization of the artistic style information. These methods are complementary to the results in this paper and present an interesting direction for exploring how spatial and color information uniquely factor into artistic style representation. ",
|
| 812 |
+
"bbox": [
|
| 813 |
+
174,
|
| 814 |
+
780,
|
| 815 |
+
825,
|
| 816 |
+
849
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 7
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "text",
|
| 822 |
+
"text": "The question of how predictive each style image is of its corresponding style representation is also of great interest. If it is the case that the style representation can easily be predicted from a style image, one could imagine building a transformer network which skips learning an individual conditional embedding and instead learn to produce a pastiche directly from a style and a content image, much like in the original neural algorithm of artistic style, but without any optimization loop at test time. ",
|
| 823 |
+
"bbox": [
|
| 824 |
+
176,
|
| 825 |
+
856,
|
| 826 |
+
823,
|
| 827 |
+
885
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 7
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "",
|
| 834 |
+
"bbox": [
|
| 835 |
+
176,
|
| 836 |
+
103,
|
| 837 |
+
823,
|
| 838 |
+
146
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 8
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "Finally, the learned style representation opens the door to generative models of style: by modeling enough paintings of a given artistic movement (e.g. impressionism), one could build a collection of style embeddings upon which a generative model could be trained. At test time, a style representation would be sampled from the generative model and used in conjunction with the style transfer network to produce a random pastiche of that artistic movement. ",
|
| 845 |
+
"bbox": [
|
| 846 |
+
174,
|
| 847 |
+
152,
|
| 848 |
+
825,
|
| 849 |
+
222
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 8
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "In summary, we demonstrated that conditional instance normalization constitutes a simple, efficient and scalable modification of style transfer networks that allows them to model multiple styles at the same time. A practical consequence of this approach is that a new painting style may be transmitted to and stored on a mobile device with a small number of parameters. We showed that despite its simplicity, the method is flexible enough to capture very different styles while having very little impact on training time and final performance of the trained network. Finally, we showed that the learned representation of style is useful in arbitrarily combining artistic styles. This work suggests the existence of a learned representation for artistic styles whose vocabulary is flexible enough to capture a diversity of the painted world. ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
174,
|
| 858 |
+
229,
|
| 859 |
+
825,
|
| 860 |
+
354
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 8
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 867 |
+
"text_level": 1,
|
| 868 |
+
"bbox": [
|
| 869 |
+
176,
|
| 870 |
+
371,
|
| 871 |
+
326,
|
| 872 |
+
383
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 8
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "We would like to thank Fred Bertsch, Douglas Eck, Cinjon Resnick and the rest of the Google Magenta team for their feedback; Peyman Milanfar, Michael Elad, Feng Yang, Jon Barron, Bhavik Singh, Jennifer Daniel as well as the the Google Brain team for their crucial suggestions and advice; an anonymous reviewer for helpful suggestions about applying this model in a mobile domain. Finally, we would like to thank the Google Cultural Institute, whose curated collection of art photographs was very helpful in finding exciting style images to train on. ",
|
| 879 |
+
"bbox": [
|
| 880 |
+
174,
|
| 881 |
+
393,
|
| 882 |
+
825,
|
| 883 |
+
478
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 8
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "REFERENCES ",
|
| 890 |
+
"text_level": 1,
|
| 891 |
+
"bbox": [
|
| 892 |
+
176,
|
| 893 |
+
102,
|
| 894 |
+
287,
|
| 895 |
+
117
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 9
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "Martın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016. ",
|
| 902 |
+
"bbox": [
|
| 903 |
+
176,
|
| 904 |
+
126,
|
| 905 |
+
823,
|
| 906 |
+
169
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 9
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 248–255. IEEE, 2009. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
174,
|
| 915 |
+
178,
|
| 916 |
+
823,
|
| 917 |
+
222
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 9
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "Alexei A Efros and William T Freeman. Image quilting for texture synthesis and transfer. In Proceedings of the 28th annual conference on Computer graphics and interactive techniques, pp. 341–346. ACM, 2001. ",
|
| 924 |
+
"bbox": [
|
| 925 |
+
173,
|
| 926 |
+
231,
|
| 927 |
+
825,
|
| 928 |
+
273
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 9
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "Alexei A Efros and Thomas K Leung. Texture synthesis by non-parametric sampling. In Computer Vision, 1999. The Proceedings of the Seventh IEEE International Conference on, volume 2, pp. 1033–1038. IEEE, 1999. ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
173,
|
| 937 |
+
284,
|
| 938 |
+
825,
|
| 939 |
+
327
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 9
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "text",
|
| 945 |
+
"text": "Michael Elad and Peyman Milanfar. Style-transfer via texture-synthesis. arXiv preprint arXiv:1609.03057, 2016. ",
|
| 946 |
+
"bbox": [
|
| 947 |
+
171,
|
| 948 |
+
337,
|
| 949 |
+
823,
|
| 950 |
+
366
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 9
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "text",
|
| 956 |
+
"text": "Oriel Frigo, Neus Sabater, Julie Delon, and Pierre Hellier. Split and match: Example-based adaptive patch sampling for unsupervised style transfer. 2016. ",
|
| 957 |
+
"bbox": [
|
| 958 |
+
173,
|
| 959 |
+
376,
|
| 960 |
+
823,
|
| 961 |
+
405
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 9
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "Leon Gatys, Alexander S Ecker, and Matthias Bethge. Texture synthesis using convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 262–270, 2015a. ",
|
| 968 |
+
"bbox": [
|
| 969 |
+
171,
|
| 970 |
+
414,
|
| 971 |
+
823,
|
| 972 |
+
444
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 9
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "Leon A Gatys, Alexander S Ecker, and Matthias Bethge. A neural algorithm of artistic style. arXiv preprint arXiv:1508.06576, 2015b. ",
|
| 979 |
+
"bbox": [
|
| 980 |
+
171,
|
| 981 |
+
453,
|
| 982 |
+
823,
|
| 983 |
+
483
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 9
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "Leon A Gatys, Matthias Bethge, Aaron Hertzmann, and Eli Shechtman. Preserving color in neural artistic style transfer. arXiv preprint arXiv:1606.05897, 2016a. ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
171,
|
| 992 |
+
492,
|
| 993 |
+
823,
|
| 994 |
+
522
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 9
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "Leon A. Gatys, Alexander S. Ecker, Matthias Bethge, Aaron Hertzmann, and Eli Shechtman. Controlling perceptual factors in neural style transfer. CoRR, abs/1611.07865, 2016b. URL http://arxiv.org/abs/1611.07865. ",
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
173,
|
| 1003 |
+
531,
|
| 1004 |
+
823,
|
| 1005 |
+
574
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 9
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "Aaron Hertzmann, Charles E Jacobs, Nuria Oliver, Brian Curless, and David H Salesin. Image analogies. In Proceedings of the 28th annual conference on Computer graphics and interactive techniques, pp. 327–340. ACM, 2001. ",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
174,
|
| 1014 |
+
583,
|
| 1015 |
+
825,
|
| 1016 |
+
627
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 9
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. arXiv preprint arXiv:1603.08155, 2016. ",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
173,
|
| 1025 |
+
636,
|
| 1026 |
+
821,
|
| 1027 |
+
666
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 9
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "Bela Julesz. Visual pattern discrimination. IRE Trans. Info Theory, 8:84–92, 1962. ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
173,
|
| 1036 |
+
675,
|
| 1037 |
+
717,
|
| 1038 |
+
691
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 9
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
173,
|
| 1047 |
+
700,
|
| 1048 |
+
823,
|
| 1049 |
+
729
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 9
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "Vivek Kwatra, Irfan Essa, Aaron Bobick, and Nipun Kwatra. Texture optimization for examplebased synthesis. ACM Transactions on Graphics (ToG), 24(3):795–802, 2005. ",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
171,
|
| 1058 |
+
739,
|
| 1059 |
+
821,
|
| 1060 |
+
768
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 9
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "Chuan Li and Michael Wand. Precomputed real-time texture synthesis with markovian generative adversarial networks. ECCV, 2016. URL http://arxiv.org/abs/1604.04382. ",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
173,
|
| 1069 |
+
779,
|
| 1070 |
+
823,
|
| 1071 |
+
808
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 9
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "Lin Liang, Ce Liu, Ying-Qing Xu, Baining Guo, and Heung-Yeung Shum. Real-time texture synthesis by patch-based sampling. ACM Transactions on Graphics (ToG), 20(3):127–150, 2001. ",
|
| 1078 |
+
"bbox": [
|
| 1079 |
+
169,
|
| 1080 |
+
816,
|
| 1081 |
+
823,
|
| 1082 |
+
847
|
| 1083 |
+
],
|
| 1084 |
+
"page_idx": 9
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"type": "text",
|
| 1088 |
+
"text": "Augustus Odena, Christopher Olah, and Vincent Dumoulin. Avoiding checkerboard artifacts in neural networks. Distill, 2016. ",
|
| 1089 |
+
"bbox": [
|
| 1090 |
+
173,
|
| 1091 |
+
856,
|
| 1092 |
+
821,
|
| 1093 |
+
886
|
| 1094 |
+
],
|
| 1095 |
+
"page_idx": 9
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"type": "text",
|
| 1099 |
+
"text": "Javier Portilla and Eero Simoncelli. A parametric texture model based on joint statistics of complex wavelet coefficients. International Journal of Computer Vision, 40:49–71, 1999. ",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
173,
|
| 1102 |
+
895,
|
| 1103 |
+
820,
|
| 1104 |
+
924
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 9
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "Eero Simoncelli and Bruno Olshausen. Natural image statistics and neural representation. Annual Review of Neuroscience, 24:1193–1216, 2001. \nKaren Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. \nDmitry Ulyanov, Vadim Lebedev, Andrea Vedaldi, and Victor Lempitsky. Texture networks: Feedforward synthesis of textures and stylized images. arXiv preprint arXiv:1603.03417, 2016a. \nDmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Instance normalization: The missing ingredient for fast stylization. arXiv preprint arXiv:1607.08022, 2016b. \nAaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, ¨ Nal Kalchbrenner, Andrew W. Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. CoRR, abs/1609.03499, 2016a. URL http://arxiv.org/abs/1609.03499. \nAaron van den Oord, Nal Kalchbrenner, Oriol Vinyals, Lasse Espeholt, Alex Graves, and Koray ¨ Kavukcuoglu. Conditional image generation with pixelcnn decoders. CoRR, abs/1606.05328, 2016b. URL http://arxiv.org/abs/1606.05328. \nLi-Yi Wei and Marc Levoy. Fast texture synthesis using tree-structured vector quantization. In Proceedings of the 27th annual conference on Computer graphics and interactive techniques, pp. 479–488. ACM Press/Addison-Wesley Publishing Co., 2000. \nMatthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In European Conference on Computer Vision, pp. 818–833. Springer, 2014. ",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
171,
|
| 1113 |
+
103,
|
| 1114 |
+
826,
|
| 1115 |
+
440
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 10
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "APPENDIX ",
|
| 1122 |
+
"text_level": 1,
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
176,
|
| 1125 |
+
103,
|
| 1126 |
+
264,
|
| 1127 |
+
117
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 11
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "table",
|
| 1133 |
+
"img_path": "images/af896040ba8cd5a50c4a1f80d0ca8836aec169802f0ad31f55ffee3bcf80092b.jpg",
|
| 1134 |
+
"table_caption": [
|
| 1135 |
+
"HYPERPARAMETERS ",
|
| 1136 |
+
"Table 1: Style transfer network hyperparameters. "
|
| 1137 |
+
],
|
| 1138 |
+
"table_footnote": [],
|
| 1139 |
+
"table_body": "<table><tr><td></td><td></td><td></td><td>OperationKernel sizeStrideFeature mapsPaddingNonlinearity</td><td></td><td></td></tr><tr><td>Network-256 × 256× 3 input</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Convolution</td><td>9</td><td>1</td><td>32</td><td>SAME</td><td>ReLU</td></tr><tr><td>Convolution</td><td>3</td><td>2</td><td>64</td><td>SAME</td><td>ReLU</td></tr><tr><td>Convolution</td><td>3</td><td>2</td><td>128</td><td>SAME</td><td>ReLU</td></tr><tr><td>Residual block</td><td></td><td></td><td>128</td><td></td><td></td></tr><tr><td>Residual block</td><td></td><td></td><td>128</td><td></td><td></td></tr><tr><td>Residual block</td><td></td><td></td><td>128</td><td></td><td></td></tr><tr><td>Residual block</td><td></td><td></td><td>128</td><td></td><td></td></tr><tr><td>Residual block</td><td></td><td></td><td>128</td><td></td><td></td></tr><tr><td>Upsampling</td><td></td><td></td><td>64</td><td></td><td></td></tr><tr><td>Upsampling</td><td></td><td></td><td>32</td><td></td><td></td></tr><tr><td>Convolution</td><td>9</td><td>1</td><td>3</td><td>SAME</td><td>Sigmoid</td></tr><tr><td>Residual block - C feature maps</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Convolution</td><td>3</td><td>1</td><td>C</td><td>SAME</td><td>ReLU</td></tr><tr><td>Convolution</td><td>3</td><td>1</td><td>C</td><td>SAME</td><td>Linear</td></tr><tr><td></td><td>Add the input and the output</td><td></td><td></td><td></td><td></td></tr><tr><td>Upsampling- C feature maps</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td>Nearest-neighbor interpolation,factor 2</td><td></td><td></td></tr><tr><td>Convolution</td><td>3</td><td>1</td><td>C</td><td>SAME</td><td>ReLU</td></tr><tr><td></td><td>Padding mode REFLECT</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Normalization Conditional instance normalization after every convolution</td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>Optimizer Adam (Kingma & Ba,2014) (α = 0.001, β1 = 0.9, β2 = 0.999)</td><td></td><td></td><td></td><td></td></tr><tr><td>Parameter updates 40,000</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Batch size 16</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Weight initialization Isotropic gaussian (μ = O,σ = 0.01)</td><td></td><td></td><td></td><td></td><td></td></tr></table>",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
171,
|
| 1142 |
+
160,
|
| 1143 |
+
828,
|
| 1144 |
+
656
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 11
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "MONET PASTICHES ",
|
| 1151 |
+
"text_level": 1,
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
174,
|
| 1154 |
+
104,
|
| 1155 |
+
310,
|
| 1156 |
+
117
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 12
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "image",
|
| 1162 |
+
"img_path": "images/0e4556708d012d8c03990061a3cafe8f68b3ab1e44354ecc5714a2622aedb1d9.jpg",
|
| 1163 |
+
"image_caption": [],
|
| 1164 |
+
"image_footnote": [],
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
199,
|
| 1167 |
+
133,
|
| 1168 |
+
799,
|
| 1169 |
+
315
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 12
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "Claude Monet, Grainstacks at Giverny; the Evening Sun (1888/1889). ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
267,
|
| 1178 |
+
333,
|
| 1179 |
+
728,
|
| 1180 |
+
348
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 12
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "image",
|
| 1186 |
+
"img_path": "images/b7254fddd8bb880a9cca9ac60f89235fdb0a0736c6e7381ca9c297e52b17a1db.jpg",
|
| 1187 |
+
"image_caption": [
|
| 1188 |
+
"Claude Monet, Plum Trees in Blossom (1879). "
|
| 1189 |
+
],
|
| 1190 |
+
"image_footnote": [],
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
199,
|
| 1193 |
+
371,
|
| 1194 |
+
799,
|
| 1195 |
+
553
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 12
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "image",
|
| 1201 |
+
"img_path": "images/a2e313a3a4f12fde5bcf051a0d174a2e23d551a4603428751061e757025d0657.jpg",
|
| 1202 |
+
"image_caption": [
|
| 1203 |
+
"Claude Monet, Poppy Field (1873). "
|
| 1204 |
+
],
|
| 1205 |
+
"image_footnote": [],
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
199,
|
| 1208 |
+
607,
|
| 1209 |
+
799,
|
| 1210 |
+
790
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 12
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "image",
|
| 1216 |
+
"img_path": "images/4891c29a27c99ebf04263a4b424d986551678694203947ac3167f85dd9a2cfb0.jpg",
|
| 1217 |
+
"image_caption": [
|
| 1218 |
+
"Claude Monet, Rouen Cathedral, West Fac¸ade (1894). "
|
| 1219 |
+
],
|
| 1220 |
+
"image_footnote": [],
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
199,
|
| 1223 |
+
102,
|
| 1224 |
+
799,
|
| 1225 |
+
284
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 13
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "image",
|
| 1231 |
+
"img_path": "images/f87f9a01d727ed3fd886459b2f2fc6528ddfbe26f6b369aaabeb4b6a59da81b0.jpg",
|
| 1232 |
+
"image_caption": [
|
| 1233 |
+
"Claude Monet, Sunrise (Marine) (1873). "
|
| 1234 |
+
],
|
| 1235 |
+
"image_footnote": [],
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
199,
|
| 1238 |
+
338,
|
| 1239 |
+
799,
|
| 1240 |
+
520
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 13
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "image",
|
| 1246 |
+
"img_path": "images/66c2010409c795a148438cd1774f77619391db28812e3b857eca819bcd49cd05.jpg",
|
| 1247 |
+
"image_caption": [],
|
| 1248 |
+
"image_footnote": [],
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
199,
|
| 1251 |
+
574,
|
| 1252 |
+
799,
|
| 1253 |
+
757
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 13
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "image",
|
| 1259 |
+
"img_path": "images/34c7c91b120f90b21c7fdf66a5c012723cbe1de590063844abdb6955a596a25f.jpg",
|
| 1260 |
+
"image_caption": [
|
| 1261 |
+
"Claude Monet, Three Fishing Boats (1886). "
|
| 1262 |
+
],
|
| 1263 |
+
"image_footnote": [],
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
199,
|
| 1266 |
+
102,
|
| 1267 |
+
799,
|
| 1268 |
+
285
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 14
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "image",
|
| 1274 |
+
"img_path": "images/45729b6fb394ffb8ea4701b8bd4d129d61029e1190fe4c05ef66e18d13d30648.jpg",
|
| 1275 |
+
"image_caption": [],
|
| 1276 |
+
"image_footnote": [],
|
| 1277 |
+
"bbox": [
|
| 1278 |
+
199,
|
| 1279 |
+
338,
|
| 1280 |
+
799,
|
| 1281 |
+
520
|
| 1282 |
+
],
|
| 1283 |
+
"page_idx": 14
|
| 1284 |
+
},
|
| 1285 |
+
{
|
| 1286 |
+
"type": "text",
|
| 1287 |
+
"text": "Claude Monet, Vetheuil ´ (1879). ",
|
| 1288 |
+
"bbox": [
|
| 1289 |
+
393,
|
| 1290 |
+
537,
|
| 1291 |
+
604,
|
| 1292 |
+
551
|
| 1293 |
+
],
|
| 1294 |
+
"page_idx": 14
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"type": "image",
|
| 1298 |
+
"img_path": "images/f21ea787fabbbfadb568bb1fae8efa65c277461eb4f858c9e8cd6fc5d11ca0f8.jpg",
|
| 1299 |
+
"image_caption": [],
|
| 1300 |
+
"image_footnote": [],
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
199,
|
| 1303 |
+
574,
|
| 1304 |
+
799,
|
| 1305 |
+
757
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 14
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "text",
|
| 1311 |
+
"text": "Claude Monet, Vetheuil ´ (1902). ",
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
393,
|
| 1314 |
+
773,
|
| 1315 |
+
604,
|
| 1316 |
+
789
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 14
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "image",
|
| 1322 |
+
"img_path": "images/406592e80ffbc54f6bb256b789f453add25661aeaf5c8a154db81f59f57e5b14.jpg",
|
| 1323 |
+
"image_caption": [],
|
| 1324 |
+
"image_footnote": [],
|
| 1325 |
+
"bbox": [
|
| 1326 |
+
199,
|
| 1327 |
+
102,
|
| 1328 |
+
799,
|
| 1329 |
+
284
|
| 1330 |
+
],
|
| 1331 |
+
"page_idx": 15
|
| 1332 |
+
},
|
| 1333 |
+
{
|
| 1334 |
+
"type": "text",
|
| 1335 |
+
"text": "Claude Monet, Water Lilies (ca. 1914-1917). ",
|
| 1336 |
+
"bbox": [
|
| 1337 |
+
351,
|
| 1338 |
+
301,
|
| 1339 |
+
647,
|
| 1340 |
+
315
|
| 1341 |
+
],
|
| 1342 |
+
"page_idx": 15
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "text",
|
| 1346 |
+
"text": "VARIED PASTICHES ",
|
| 1347 |
+
"text_level": 1,
|
| 1348 |
+
"bbox": [
|
| 1349 |
+
174,
|
| 1350 |
+
344,
|
| 1351 |
+
310,
|
| 1352 |
+
358
|
| 1353 |
+
],
|
| 1354 |
+
"page_idx": 15
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"type": "image",
|
| 1358 |
+
"img_path": "images/ddf369be3257ec67a10cee94e4421018a5a6ee03be33f58fef8614987cefd4bc.jpg",
|
| 1359 |
+
"image_caption": [],
|
| 1360 |
+
"image_footnote": [],
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
197,
|
| 1363 |
+
372,
|
| 1364 |
+
800,
|
| 1365 |
+
558
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 15
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"type": "text",
|
| 1371 |
+
"text": "Roy Lichtenstein, Bicentennial Print (1975). ",
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
352,
|
| 1374 |
+
574,
|
| 1375 |
+
645,
|
| 1376 |
+
588
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 15
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "image",
|
| 1382 |
+
"img_path": "images/bd56df5fa654a61edc5e351c2bd82891e3be2e3aacda1aa7e38b64e455c10778.jpg",
|
| 1383 |
+
"image_caption": [],
|
| 1384 |
+
"image_footnote": [],
|
| 1385 |
+
"bbox": [
|
| 1386 |
+
199,
|
| 1387 |
+
611,
|
| 1388 |
+
799,
|
| 1389 |
+
792
|
| 1390 |
+
],
|
| 1391 |
+
"page_idx": 15
|
| 1392 |
+
},
|
| 1393 |
+
{
|
| 1394 |
+
"type": "text",
|
| 1395 |
+
"text": "Ernst Ludwig Kirchner, Boy with Sweets (1918). ",
|
| 1396 |
+
"bbox": [
|
| 1397 |
+
339,
|
| 1398 |
+
810,
|
| 1399 |
+
658,
|
| 1400 |
+
825
|
| 1401 |
+
],
|
| 1402 |
+
"page_idx": 15
|
| 1403 |
+
},
|
| 1404 |
+
{
|
| 1405 |
+
"type": "image",
|
| 1406 |
+
"img_path": "images/04107561e76a5bb1a3fb4130f76cb708478bf5ccf667d1a3659c2b4829195684.jpg",
|
| 1407 |
+
"image_caption": [
|
| 1408 |
+
"Paul Signac, Cassis, Cap Lombard, Opus 196 (1889). "
|
| 1409 |
+
],
|
| 1410 |
+
"image_footnote": [],
|
| 1411 |
+
"bbox": [
|
| 1412 |
+
199,
|
| 1413 |
+
102,
|
| 1414 |
+
799,
|
| 1415 |
+
284
|
| 1416 |
+
],
|
| 1417 |
+
"page_idx": 16
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"type": "image",
|
| 1421 |
+
"img_path": "images/045360bf319faa0982d5730b29f2cbf50c2a76b14fe44610be553dbbd298ee82.jpg",
|
| 1422 |
+
"image_caption": [
|
| 1423 |
+
"Paul Klee, Colors from a Distance (1932). "
|
| 1424 |
+
],
|
| 1425 |
+
"image_footnote": [],
|
| 1426 |
+
"bbox": [
|
| 1427 |
+
199,
|
| 1428 |
+
337,
|
| 1429 |
+
799,
|
| 1430 |
+
520
|
| 1431 |
+
],
|
| 1432 |
+
"page_idx": 16
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"type": "image",
|
| 1436 |
+
"img_path": "images/8e7c8a36c8702938118ee84cc263df7ad99e2076e0f40530e712c20030c8c975.jpg",
|
| 1437 |
+
"image_caption": [],
|
| 1438 |
+
"image_footnote": [],
|
| 1439 |
+
"bbox": [
|
| 1440 |
+
199,
|
| 1441 |
+
574,
|
| 1442 |
+
799,
|
| 1443 |
+
757
|
| 1444 |
+
],
|
| 1445 |
+
"page_idx": 16
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"type": "image",
|
| 1449 |
+
"img_path": "images/b479702380b1e31e4ed2649e780bde4c4c157d09c4cbc68b546f842e1f788b5d.jpg",
|
| 1450 |
+
"image_caption": [],
|
| 1451 |
+
"image_footnote": [],
|
| 1452 |
+
"bbox": [
|
| 1453 |
+
199,
|
| 1454 |
+
102,
|
| 1455 |
+
799,
|
| 1456 |
+
285
|
| 1457 |
+
],
|
| 1458 |
+
"page_idx": 17
|
| 1459 |
+
},
|
| 1460 |
+
{
|
| 1461 |
+
"type": "text",
|
| 1462 |
+
"text": "Jamini Roy, Crucifixion. ",
|
| 1463 |
+
"bbox": [
|
| 1464 |
+
418,
|
| 1465 |
+
301,
|
| 1466 |
+
578,
|
| 1467 |
+
315
|
| 1468 |
+
],
|
| 1469 |
+
"page_idx": 17
|
| 1470 |
+
},
|
| 1471 |
+
{
|
| 1472 |
+
"type": "image",
|
| 1473 |
+
"img_path": "images/1aa9ddf24a34631abe1674f83130c91d35b568d3d0d654d7610d3796bed8b13b.jpg",
|
| 1474 |
+
"image_caption": [
|
| 1475 |
+
"Henri de Toulouse-Lautrec, Divan Japonais (1893). "
|
| 1476 |
+
],
|
| 1477 |
+
"image_footnote": [],
|
| 1478 |
+
"bbox": [
|
| 1479 |
+
199,
|
| 1480 |
+
337,
|
| 1481 |
+
799,
|
| 1482 |
+
520
|
| 1483 |
+
],
|
| 1484 |
+
"page_idx": 17
|
| 1485 |
+
},
|
| 1486 |
+
{
|
| 1487 |
+
"type": "image",
|
| 1488 |
+
"img_path": "images/8db50798d1e09fb4e972beef82a027e82a9e0651c51545566047567ed6c20b44.jpg",
|
| 1489 |
+
"image_caption": [
|
| 1490 |
+
"Egon Schiele, Edith with Striped Dress, Sitting (1915). "
|
| 1491 |
+
],
|
| 1492 |
+
"image_footnote": [],
|
| 1493 |
+
"bbox": [
|
| 1494 |
+
199,
|
| 1495 |
+
574,
|
| 1496 |
+
800,
|
| 1497 |
+
758
|
| 1498 |
+
],
|
| 1499 |
+
"page_idx": 17
|
| 1500 |
+
},
|
| 1501 |
+
{
|
| 1502 |
+
"type": "image",
|
| 1503 |
+
"img_path": "images/a33f87a848646f87ba72325ab751ac96c5df0d57ea53117f3671ebe1de14e0fe.jpg",
|
| 1504 |
+
"image_caption": [],
|
| 1505 |
+
"image_footnote": [],
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
199,
|
| 1508 |
+
102,
|
| 1509 |
+
799,
|
| 1510 |
+
284
|
| 1511 |
+
],
|
| 1512 |
+
"page_idx": 18
|
| 1513 |
+
},
|
| 1514 |
+
{
|
| 1515 |
+
"type": "text",
|
| 1516 |
+
"text": "Georges Rouault, Head of a Clown (ca. 1907-1908). ",
|
| 1517 |
+
"bbox": [
|
| 1518 |
+
326,
|
| 1519 |
+
301,
|
| 1520 |
+
669,
|
| 1521 |
+
315
|
| 1522 |
+
],
|
| 1523 |
+
"page_idx": 18
|
| 1524 |
+
},
|
| 1525 |
+
{
|
| 1526 |
+
"type": "image",
|
| 1527 |
+
"img_path": "images/df9b824a0b36fe04b9ce379134c2aa45d66d9e559d95f31a3153c18c17285043.jpg",
|
| 1528 |
+
"image_caption": [
|
| 1529 |
+
"William Hoare, Henry Hoare, ”The Magnificent”, of Stourhead (about 1750-1760). "
|
| 1530 |
+
],
|
| 1531 |
+
"image_footnote": [],
|
| 1532 |
+
"bbox": [
|
| 1533 |
+
199,
|
| 1534 |
+
338,
|
| 1535 |
+
799,
|
| 1536 |
+
520
|
| 1537 |
+
],
|
| 1538 |
+
"page_idx": 18
|
| 1539 |
+
},
|
| 1540 |
+
{
|
| 1541 |
+
"type": "image",
|
| 1542 |
+
"img_path": "images/460b228369bbb89aa8dff56c44f516e39813126e32fec9e763f5866ee8728ada.jpg",
|
| 1543 |
+
"image_caption": [],
|
| 1544 |
+
"image_footnote": [],
|
| 1545 |
+
"bbox": [
|
| 1546 |
+
199,
|
| 1547 |
+
574,
|
| 1548 |
+
800,
|
| 1549 |
+
757
|
| 1550 |
+
],
|
| 1551 |
+
"page_idx": 18
|
| 1552 |
+
},
|
| 1553 |
+
{
|
| 1554 |
+
"type": "text",
|
| 1555 |
+
"text": "Giorgio de Chirico, Horses on the seashore (1927/1928). ",
|
| 1556 |
+
"bbox": [
|
| 1557 |
+
310,
|
| 1558 |
+
773,
|
| 1559 |
+
686,
|
| 1560 |
+
789
|
| 1561 |
+
],
|
| 1562 |
+
"page_idx": 18
|
| 1563 |
+
},
|
| 1564 |
+
{
|
| 1565 |
+
"type": "image",
|
| 1566 |
+
"img_path": "images/af7deef7c21d10a457dbb91f97859ac1a108f9649b9c5efc89f11207501a9980.jpg",
|
| 1567 |
+
"image_caption": [
|
| 1568 |
+
"Vincent van Gogh, Landscape at Saint-Remy (Enclosed Field with Peasant) ´ (1889). "
|
| 1569 |
+
],
|
| 1570 |
+
"image_footnote": [],
|
| 1571 |
+
"bbox": [
|
| 1572 |
+
199,
|
| 1573 |
+
102,
|
| 1574 |
+
799,
|
| 1575 |
+
284
|
| 1576 |
+
],
|
| 1577 |
+
"page_idx": 19
|
| 1578 |
+
},
|
| 1579 |
+
{
|
| 1580 |
+
"type": "image",
|
| 1581 |
+
"img_path": "images/0599a340ed95b4a6040d04a7fbfbccb9f897c820cc95b4c1af981f90845f1492.jpg",
|
| 1582 |
+
"image_caption": [
|
| 1583 |
+
"Nicolas Poussin, Landscape with a Calm (1650-1651). "
|
| 1584 |
+
],
|
| 1585 |
+
"image_footnote": [],
|
| 1586 |
+
"bbox": [
|
| 1587 |
+
199,
|
| 1588 |
+
338,
|
| 1589 |
+
799,
|
| 1590 |
+
520
|
| 1591 |
+
],
|
| 1592 |
+
"page_idx": 19
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"type": "image",
|
| 1596 |
+
"img_path": "images/9fb38d435921abebe2f7264c52ce12bbe5287e3574b41ae47f9768254053aad1.jpg",
|
| 1597 |
+
"image_caption": [],
|
| 1598 |
+
"image_footnote": [],
|
| 1599 |
+
"bbox": [
|
| 1600 |
+
199,
|
| 1601 |
+
574,
|
| 1602 |
+
799,
|
| 1603 |
+
757
|
| 1604 |
+
],
|
| 1605 |
+
"page_idx": 19
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "text",
|
| 1609 |
+
"text": "Bernardino Fungai, Madonna and Child with Two Hermit Saints (early 1480s). ",
|
| 1610 |
+
"bbox": [
|
| 1611 |
+
238,
|
| 1612 |
+
773,
|
| 1613 |
+
758,
|
| 1614 |
+
789
|
| 1615 |
+
],
|
| 1616 |
+
"page_idx": 19
|
| 1617 |
+
},
|
| 1618 |
+
{
|
| 1619 |
+
"type": "image",
|
| 1620 |
+
"img_path": "images/92067baf1f3204359d5334e2c46086d49d8dd861abd2e925248eb758f502e5bd.jpg",
|
| 1621 |
+
"image_caption": [
|
| 1622 |
+
"Max Hermann Maxy, Portrait of a Friend (1926). "
|
| 1623 |
+
],
|
| 1624 |
+
"image_footnote": [],
|
| 1625 |
+
"bbox": [
|
| 1626 |
+
199,
|
| 1627 |
+
102,
|
| 1628 |
+
799,
|
| 1629 |
+
285
|
| 1630 |
+
],
|
| 1631 |
+
"page_idx": 20
|
| 1632 |
+
},
|
| 1633 |
+
{
|
| 1634 |
+
"type": "image",
|
| 1635 |
+
"img_path": "images/01c20b642e993dd683a0c6e8052a926b9ca3f7ae66faab3c7b0159b1f8c2c9b6.jpg",
|
| 1636 |
+
"image_caption": [
|
| 1637 |
+
"Juan Gris, Portrait of Pablo Picasso (1912). "
|
| 1638 |
+
],
|
| 1639 |
+
"image_footnote": [],
|
| 1640 |
+
"bbox": [
|
| 1641 |
+
199,
|
| 1642 |
+
337,
|
| 1643 |
+
799,
|
| 1644 |
+
520
|
| 1645 |
+
],
|
| 1646 |
+
"page_idx": 20
|
| 1647 |
+
},
|
| 1648 |
+
{
|
| 1649 |
+
"type": "image",
|
| 1650 |
+
"img_path": "images/fe55c4cb28770f07aab4a671691897bfdef1efadfb92dae9e02d23bec383611f.jpg",
|
| 1651 |
+
"image_caption": [],
|
| 1652 |
+
"image_footnote": [],
|
| 1653 |
+
"bbox": [
|
| 1654 |
+
199,
|
| 1655 |
+
578,
|
| 1656 |
+
800,
|
| 1657 |
+
761
|
| 1658 |
+
],
|
| 1659 |
+
"page_idx": 20
|
| 1660 |
+
},
|
| 1661 |
+
{
|
| 1662 |
+
"type": "text",
|
| 1663 |
+
"text": "Severini Gino, Ritmo plastico del 14 luglio (1913). ",
|
| 1664 |
+
"bbox": [
|
| 1665 |
+
331,
|
| 1666 |
+
777,
|
| 1667 |
+
665,
|
| 1668 |
+
792
|
| 1669 |
+
],
|
| 1670 |
+
"page_idx": 20
|
| 1671 |
+
},
|
| 1672 |
+
{
|
| 1673 |
+
"type": "image",
|
| 1674 |
+
"img_path": "images/4225e73062f595a40a94cfa20a22cc16629d1b43be4654aa0af9899369381885.jpg",
|
| 1675 |
+
"image_caption": [],
|
| 1676 |
+
"image_footnote": [],
|
| 1677 |
+
"bbox": [
|
| 1678 |
+
199,
|
| 1679 |
+
102,
|
| 1680 |
+
799,
|
| 1681 |
+
285
|
| 1682 |
+
],
|
| 1683 |
+
"page_idx": 21
|
| 1684 |
+
},
|
| 1685 |
+
{
|
| 1686 |
+
"type": "text",
|
| 1687 |
+
"text": "Richard Diebenkorn, Seawall (1957). ",
|
| 1688 |
+
"bbox": [
|
| 1689 |
+
375,
|
| 1690 |
+
301,
|
| 1691 |
+
622,
|
| 1692 |
+
315
|
| 1693 |
+
],
|
| 1694 |
+
"page_idx": 21
|
| 1695 |
+
},
|
| 1696 |
+
{
|
| 1697 |
+
"type": "image",
|
| 1698 |
+
"img_path": "images/74c01f952f0982ebeac9fae6cb9ff593de3c83b5c0c103ec226c85fcccc5f6c4.jpg",
|
| 1699 |
+
"image_caption": [
|
| 1700 |
+
"Alice Bailly, Self-Portrait (1917). "
|
| 1701 |
+
],
|
| 1702 |
+
"image_footnote": [],
|
| 1703 |
+
"bbox": [
|
| 1704 |
+
199,
|
| 1705 |
+
337,
|
| 1706 |
+
799,
|
| 1707 |
+
520
|
| 1708 |
+
],
|
| 1709 |
+
"page_idx": 21
|
| 1710 |
+
},
|
| 1711 |
+
{
|
| 1712 |
+
"type": "image",
|
| 1713 |
+
"img_path": "images/f21a187de27a5142d27677b472b958358ed7853fc7646193e342e987920d57b4.jpg",
|
| 1714 |
+
"image_caption": [
|
| 1715 |
+
"Grayson Perry, The Annunciation of the Virgin Deal (2012). "
|
| 1716 |
+
],
|
| 1717 |
+
"image_footnote": [],
|
| 1718 |
+
"bbox": [
|
| 1719 |
+
199,
|
| 1720 |
+
574,
|
| 1721 |
+
799,
|
| 1722 |
+
757
|
| 1723 |
+
],
|
| 1724 |
+
"page_idx": 21
|
| 1725 |
+
},
|
| 1726 |
+
{
|
| 1727 |
+
"type": "image",
|
| 1728 |
+
"img_path": "images/903da496e3db87e2012346c87f4816fd9372dc668e773e01cc79c3cfb68ed6f4.jpg",
|
| 1729 |
+
"image_caption": [
|
| 1730 |
+
"William Glackens, The Green Boathouse (ca. 1922). "
|
| 1731 |
+
],
|
| 1732 |
+
"image_footnote": [],
|
| 1733 |
+
"bbox": [
|
| 1734 |
+
199,
|
| 1735 |
+
102,
|
| 1736 |
+
799,
|
| 1737 |
+
284
|
| 1738 |
+
],
|
| 1739 |
+
"page_idx": 22
|
| 1740 |
+
},
|
| 1741 |
+
{
|
| 1742 |
+
"type": "image",
|
| 1743 |
+
"img_path": "images/4f7d375006c2bf53abe818fc35bc6ccdc0e6ecee534762b852717efcfa873fb2.jpg",
|
| 1744 |
+
"image_caption": [],
|
| 1745 |
+
"image_footnote": [],
|
| 1746 |
+
"bbox": [
|
| 1747 |
+
199,
|
| 1748 |
+
337,
|
| 1749 |
+
799,
|
| 1750 |
+
520
|
| 1751 |
+
],
|
| 1752 |
+
"page_idx": 22
|
| 1753 |
+
},
|
| 1754 |
+
{
|
| 1755 |
+
"type": "text",
|
| 1756 |
+
"text": "Edvard Munch, The Scream (1910). ",
|
| 1757 |
+
"bbox": [
|
| 1758 |
+
380,
|
| 1759 |
+
537,
|
| 1760 |
+
616,
|
| 1761 |
+
551
|
| 1762 |
+
],
|
| 1763 |
+
"page_idx": 22
|
| 1764 |
+
},
|
| 1765 |
+
{
|
| 1766 |
+
"type": "image",
|
| 1767 |
+
"img_path": "images/81556932d65a0c19f02c5e8380b827ea8b094e4cdd47068b7b0220d48e57539f.jpg",
|
| 1768 |
+
"image_caption": [],
|
| 1769 |
+
"image_footnote": [],
|
| 1770 |
+
"bbox": [
|
| 1771 |
+
199,
|
| 1772 |
+
574,
|
| 1773 |
+
799,
|
| 1774 |
+
757
|
| 1775 |
+
],
|
| 1776 |
+
"page_idx": 22
|
| 1777 |
+
},
|
| 1778 |
+
{
|
| 1779 |
+
"type": "text",
|
| 1780 |
+
"text": "Vincent van Gogh, The Starry Night (1889). ",
|
| 1781 |
+
"bbox": [
|
| 1782 |
+
354,
|
| 1783 |
+
775,
|
| 1784 |
+
643,
|
| 1785 |
+
789
|
| 1786 |
+
],
|
| 1787 |
+
"page_idx": 22
|
| 1788 |
+
},
|
| 1789 |
+
{
|
| 1790 |
+
"type": "image",
|
| 1791 |
+
"img_path": "images/d366cad0d6630f6007be03e804bf10baf92ff3ccf1d5253a1751c915caa8dc3c.jpg",
|
| 1792 |
+
"image_caption": [
|
| 1793 |
+
"Pieter Bruegel the Elder, The Tower of Babel (1563). "
|
| 1794 |
+
],
|
| 1795 |
+
"image_footnote": [],
|
| 1796 |
+
"bbox": [
|
| 1797 |
+
199,
|
| 1798 |
+
102,
|
| 1799 |
+
799,
|
| 1800 |
+
284
|
| 1801 |
+
],
|
| 1802 |
+
"page_idx": 23
|
| 1803 |
+
},
|
| 1804 |
+
{
|
| 1805 |
+
"type": "image",
|
| 1806 |
+
"img_path": "images/efd7b9cb43a41042fa3860d0842da69410debf099af75af1395ee562e7bd4daf.jpg",
|
| 1807 |
+
"image_caption": [
|
| 1808 |
+
"Wolfgang Lettl, The Trial (1981). "
|
| 1809 |
+
],
|
| 1810 |
+
"image_footnote": [],
|
| 1811 |
+
"bbox": [
|
| 1812 |
+
199,
|
| 1813 |
+
337,
|
| 1814 |
+
799,
|
| 1815 |
+
520
|
| 1816 |
+
],
|
| 1817 |
+
"page_idx": 23
|
| 1818 |
+
},
|
| 1819 |
+
{
|
| 1820 |
+
"type": "image",
|
| 1821 |
+
"img_path": "images/01de4975074ea1d9b2043d923a431a92718bf6f097e7be213e5d3a9389cba382.jpg",
|
| 1822 |
+
"image_caption": [],
|
| 1823 |
+
"image_footnote": [],
|
| 1824 |
+
"bbox": [
|
| 1825 |
+
199,
|
| 1826 |
+
574,
|
| 1827 |
+
799,
|
| 1828 |
+
757
|
| 1829 |
+
],
|
| 1830 |
+
"page_idx": 23
|
| 1831 |
+
},
|
| 1832 |
+
{
|
| 1833 |
+
"type": "text",
|
| 1834 |
+
"text": "Douglas Coupland, Thomson No. 5 (Yellow Sunset) (2011). ",
|
| 1835 |
+
"bbox": [
|
| 1836 |
+
302,
|
| 1837 |
+
773,
|
| 1838 |
+
692,
|
| 1839 |
+
789
|
| 1840 |
+
],
|
| 1841 |
+
"page_idx": 23
|
| 1842 |
+
},
|
| 1843 |
+
{
|
| 1844 |
+
"type": "image",
|
| 1845 |
+
"img_path": "images/cc04e10b127e71be8d5784e160452ea3ca1aded59942c7f191a7174df4aa4e50.jpg",
|
| 1846 |
+
"image_caption": [
|
| 1847 |
+
"Claude Monet, Three Fishing Boats (1886). "
|
| 1848 |
+
],
|
| 1849 |
+
"image_footnote": [],
|
| 1850 |
+
"bbox": [
|
| 1851 |
+
199,
|
| 1852 |
+
102,
|
| 1853 |
+
799,
|
| 1854 |
+
284
|
| 1855 |
+
],
|
| 1856 |
+
"page_idx": 24
|
| 1857 |
+
},
|
| 1858 |
+
{
|
| 1859 |
+
"type": "image",
|
| 1860 |
+
"img_path": "images/b015deece7dfd358b1434f3a0cd791d6ce10020c4bc47899f77a5c75e84af8f9.jpg",
|
| 1861 |
+
"image_caption": [
|
| 1862 |
+
"John Ruskin, Trees in a Lane (1847). "
|
| 1863 |
+
],
|
| 1864 |
+
"image_footnote": [],
|
| 1865 |
+
"bbox": [
|
| 1866 |
+
199,
|
| 1867 |
+
338,
|
| 1868 |
+
799,
|
| 1869 |
+
520
|
| 1870 |
+
],
|
| 1871 |
+
"page_idx": 24
|
| 1872 |
+
},
|
| 1873 |
+
{
|
| 1874 |
+
"type": "image",
|
| 1875 |
+
"img_path": "images/e1f16dbfad13419a156f64328ef972c932af16e621ebf4f18cfc13cd960ca66b.jpg",
|
| 1876 |
+
"image_caption": [
|
| 1877 |
+
"Giuseppe Cades, Tullia about to Ride over the Body of Her Father in Her Chariot (about 1770-1775). "
|
| 1878 |
+
],
|
| 1879 |
+
"image_footnote": [],
|
| 1880 |
+
"bbox": [
|
| 1881 |
+
199,
|
| 1882 |
+
574,
|
| 1883 |
+
799,
|
| 1884 |
+
757
|
| 1885 |
+
],
|
| 1886 |
+
"page_idx": 24
|
| 1887 |
+
},
|
| 1888 |
+
{
|
| 1889 |
+
"type": "image",
|
| 1890 |
+
"img_path": "images/cf4cc7bd4476d956a5ab500311b22a922a59caa742b649cb5a4853541ef87bf6.jpg",
|
| 1891 |
+
"image_caption": [
|
| 1892 |
+
"Berthe Morisot, Under the Orange Tree (1889). "
|
| 1893 |
+
],
|
| 1894 |
+
"image_footnote": [],
|
| 1895 |
+
"bbox": [
|
| 1896 |
+
199,
|
| 1897 |
+
102,
|
| 1898 |
+
799,
|
| 1899 |
+
284
|
| 1900 |
+
],
|
| 1901 |
+
"page_idx": 25
|
| 1902 |
+
},
|
| 1903 |
+
{
|
| 1904 |
+
"type": "image",
|
| 1905 |
+
"img_path": "images/b28313326333f961b7c8b07c4a94f3e292b1aca7f257a36472f303cc48a59c61.jpg",
|
| 1906 |
+
"image_caption": [],
|
| 1907 |
+
"image_footnote": [],
|
| 1908 |
+
"bbox": [
|
| 1909 |
+
199,
|
| 1910 |
+
338,
|
| 1911 |
+
799,
|
| 1912 |
+
520
|
| 1913 |
+
],
|
| 1914 |
+
"page_idx": 25
|
| 1915 |
+
},
|
| 1916 |
+
{
|
| 1917 |
+
"type": "text",
|
| 1918 |
+
"text": "Giulio Romano (Giulio Pippi), Victory, Janus, Chronos and Gaea (about 1532-1534). ",
|
| 1919 |
+
"bbox": [
|
| 1920 |
+
215,
|
| 1921 |
+
536,
|
| 1922 |
+
779,
|
| 1923 |
+
553
|
| 1924 |
+
],
|
| 1925 |
+
"page_idx": 25
|
| 1926 |
+
},
|
| 1927 |
+
{
|
| 1928 |
+
"type": "image",
|
| 1929 |
+
"img_path": "images/c8509f80be29c0b0b52e1ff299215653d6a6641991962417029d6fbaf3e56f05.jpg",
|
| 1930 |
+
"image_caption": [],
|
| 1931 |
+
"image_footnote": [],
|
| 1932 |
+
"bbox": [
|
| 1933 |
+
199,
|
| 1934 |
+
574,
|
| 1935 |
+
800,
|
| 1936 |
+
757
|
| 1937 |
+
],
|
| 1938 |
+
"page_idx": 25
|
| 1939 |
+
},
|
| 1940 |
+
{
|
| 1941 |
+
"type": "text",
|
| 1942 |
+
"text": "Wassily Kandinsky, White Zig Zags (1922). ",
|
| 1943 |
+
"bbox": [
|
| 1944 |
+
356,
|
| 1945 |
+
773,
|
| 1946 |
+
642,
|
| 1947 |
+
790
|
| 1948 |
+
],
|
| 1949 |
+
"page_idx": 25
|
| 1950 |
+
}
|
| 1951 |
+
]
|
parse/train/BJO-BuT1g/BJO-BuT1g_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJO-BuT1g/BJO-BuT1g_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyjC5yWCW/HyjC5yWCW.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyjC5yWCW/HyjC5yWCW_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyjC5yWCW/HyjC5yWCW_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyjC5yWCW/HyjC5yWCW_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/UFGEelJkLu5/UFGEelJkLu5.md
ADDED
|
@@ -0,0 +1,550 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MIXKD: TOWARDS EFFICIENT DISTILLATION OF LARGE-SCALE LANGUAGE MODELS
|
| 2 |
+
|
| 3 |
+
Kevin J Liang1,2∗, Weituo $\mathbf { H a o ^ { 1 * } }$ , Dinghan Shen3, Yufan Zhou4, Weizhu Chen3,
|
| 4 |
+
Changyou Chen4, Lawrence Carin1
|
| 5 |
+
1Duke University 2Facebook AI 3Microsoft Dynamics 365 AI
|
| 6 |
+
4State University of New York at Buffalo
|
| 7 |
+
{kevin.liang, weituo.hao}@duke.edu
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Large-scale language models have recently demonstrated impressive empirical performance. Nevertheless, the improved results are attained at the price of bigger models, more power consumption, and slower inference, which hinder their applicability to low-resource (both memory and computation) platforms. Knowledge distillation (KD) has been demonstrated as an effective framework for compressing such big models. However, large-scale neural network systems are prone to memorize training instances, and thus tend to make inconsistent predictions when the data distribution is altered slightly. Moreover, the student model has few opportunities to request useful information from the teacher model when there is limited task-specific data available. To address these issues, we propose MixKD, a data-agnostic distillation framework that leverages mixup, a simple yet efficient data augmentation approach, to endow the resulting model with stronger generalization ability. Concretely, in addition to the original training examples, the student model is encouraged to mimic the teacher’s behavior on the linear interpolation of example pairs as well. We prove from a theoretical perspective that under reasonable conditions MixKD gives rise to a smaller gap between the generalization error and the empirical error. To verify its effectiveness, we conduct experiments on the GLUE benchmark, where MixKD consistently leads to significant gains over the standard KD training, and outperforms several competitive baselines. Experiments under a limited-data setting and ablation studies further demonstrate the advantages of the proposed approach.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Recent language models (LM) pre-trained on large-scale unlabeled text corpora in a self-supervised manner have significantly advanced the state of the art across a wide variety of natural language processing (NLP) tasks (Devlin et al., 2018; Liu et al., 2019c; Yang et al., 2019; Joshi et al., 2020; Sun et al., 2019b; Clark et al., 2020; Lewis et al., 2019; Bao et al., 2020). After the LM pretraining stage, the resulting parameters can be fine-tuned to different downstream tasks. While these models have yielded impressive results, they typically have millions, if not billions, of parameters, and thus can be very expensive from storage and computational standpoints. Additionally, during deployment, such large models can require a lot of time to process even a single sample. In settings where computation may be limited (e.g. mobile, edge devices), such characteristics may preclude such powerful models from deployment entirely.
|
| 16 |
+
|
| 17 |
+
One promising strategy to compress and accelerate large-scale language models is knowledge distillation (Zhao et al., 2019; Tang et al., 2019; Sun et al., 2020). The key idea is to train a smaller model (a “student”) to mimic the behavior of the larger, stronger-performing, but perhaps less practical model (the “teacher”), thus achieving similar performance with a faster, lighter-weight model. A simple but powerful method of achieving this is to use the output probability logits produced by the teacher model as soft labels for training the student (Hinton et al., 2015). With higher entropy than one-hot labels, these soft labels contain more information for the student model to learn from.
|
| 18 |
+
|
| 19 |
+
Previous efforts on distilling large-scale LMs mainly focus on designing better training objectives, such as matching intermediate representations (Sun et al., 2019a; Mukherjee & Awadallah, 2019), learning multiple tasks together (Liu et al., 2019a), or leveraging the distillation objective during the pre-training stage (Jiao et al., 2019; Sanh et al., 2019). However, much less effort has been made to enrich task-specific data, a potentially vital component of the knowledge distillation procedure. In particular, tasks with fewer data samples provide less opportunity for the student model to learn from the teacher. Even with a well-designed training objective, the student model is still prone to overfitting, despite effectively mimicking the teacher network on the available data.
|
| 20 |
+
|
| 21 |
+
In response to these limitations, we propose improving the value of knowledge distillation by using data augmentation to generate additional samples from the available task-specific data. These augmented samples are further processed by the teacher network to produce additional soft labels, providing the student model more data to learn from a large-scale LM. Intuitively, this is akin to a student learning more from a teacher by asking more questions to further probe the teacher’s answers and thoughts. In particular, we demonstrate that mixup (Zhang et al., 2018) can significantly improve knowledge distillation’s effectiveness, and we show with a theoretical framework why this is the case. We call our framework MixKD.
|
| 22 |
+
|
| 23 |
+
We conduct experiments on 6 GLUE datasets (Wang et al., 2019) across a variety of task types, demonstrating that MixKD significantly outperforms knowledge distillation (Hinton et al., 2015) and other previous methods that compress large-scale language models. In particular, we show that our method is especially effective when the number of available task data samples is small, substantially improving the potency of knowledge distillation. We also visualize representations learned with and without MixKD to show the value of interpolated distillation samples, perform a series of ablation and hyperparameter sensitivity studies, and demonstrate the superiority of MixKD over other BERT data augmentation strategies.
|
| 24 |
+
|
| 25 |
+
# 2 RELATED WORK
|
| 26 |
+
|
| 27 |
+
# 2.1 MODEL COMPRESSION
|
| 28 |
+
|
| 29 |
+
Compressing large-scale language models, such as BERT, has attracted significant attention recently. Knowledge distillation has been demonstrated as an effective approach, which can be leveraged during both the pre-training and task-specific fine-tuning stages. Prior research efforts mainly focus on improving the training objectives to benefit the distillation process. Specifically, Turc et al. (2019) advocate that task-specific knowledge distillation can be improved by first pre-training the student model. It is shown by Clark et al. (2019) that a multi-task BERT model can be learned by distilling from multiple single-task teachers. Liu et al. (2019b) propose learning a stronger student model by distilling knowledge from an ensemble of BERT models. Patient knowledge distillation (PKD), introduced by Sun et al. (2019a), encourages the student model to mimic the teacher’s intermediate layers in addition to output logits. DistilBERT (Sanh et al., 2019) reduces the depth of BERT model by a factor of 2 via knowledge distillation during the pre-training stage. In this work, we evaluate MixKD on the case of task-specific knowledge distillation. Notably, it can be extended to the pre-training stage as well, which we leave for future work. Moreover, our method can be flexibly integrated with different KD training objectives (described above) to obtain even better results. However, we utilize the BERT-base model as the testbed in this paper without loss of generality.
|
| 30 |
+
|
| 31 |
+
# 2.2 DATA AUGMENTATION IN NLP
|
| 32 |
+
|
| 33 |
+
Data augmentation (DA) has been studied extensively in computer vision as a powerful technique to incorporate prior knowledge of invariances and improve the robustness of learned models (Simard et al., 1998; 2003; Krizhevsky et al., 2012). Recently, it has also been applied and shown effective on natural language data. Many approaches can be categorized as label-preserving transformations, which essentially produce neighbors around a training example that maintain its original label. For example, EDA (Wei & Zou, 2019) propose using various rule-based operations such as synonym replacement, word insertion, swap or deletion to obtain augmented samples. Back-translation (Yu et al., 2018; Xie et al., 2019) is another popular approach belonging to this type, which relies on pre-trained translation models. Additionally, methods based on paraphrase generation have also been leveraged from the data augmentation perspective (Kumar et al., 2019). On the other hand, label-altering techniques like mixup (Zhang et al., 2018) have also been proposed for language (Guo et al., 2019; Chen et al., 2020), producing interpolated inputs and labels for the models predict. The proposed MixKD framework leverages the ability of mixup to facilitate the student learning more information from the teacher. It is worth noting that MixKD can be combined with arbitrary labelpreserving DA modules. Back-translation is employed as a special case here, and we believe other advanced label-preserving transformations developed in the future can benefit the MixKD approach as well.
|
| 34 |
+
|
| 35 |
+
# 2.3 MIXUP
|
| 36 |
+
|
| 37 |
+
Mixup (Zhang et al., 2018) is a popular data augmentation strategy to increase model generalizability and robustness by training on convex combinations of pairs of inputs and labels $( x _ { i } , y _ { i } )$ and $( x _ { j } , y _ { j } )$
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\begin{array} { l } { { x ^ { \prime } = \lambda x _ { i } + ( 1 - \lambda ) x _ { j } } } \\ { { y ^ { \prime } = \lambda y _ { i } + ( 1 - \lambda ) y _ { j } } } \end{array}
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
with $\lambda \in [ 0 , 1 ]$ and $( x ^ { \prime } , y ^ { \prime } )$ being the resulting virtual training example. This concept of interpolating samples was later generalized with Manifold mixup (Verma et al., 2019a) and also found to be effective in semi-supervised learning settings (Verma et al., 2019b;c; Berthelot et al., 2019b;a). Other strategies include mixing together samples resulting from chaining together other augmentation techniques (Hendrycks et al., 2020), or replacing linear interpolation with the cutting and pasting of patches (Yun et al., 2019).
|
| 44 |
+
|
| 45 |
+
# 3 METHODOLOGY
|
| 46 |
+
|
| 47 |
+
# 3.1 PRELIMINARIES
|
| 48 |
+
|
| 49 |
+
In NLP, an input sample $i$ is often represented as a vector of tokens $\mathbf { w } _ { i } = \{ w _ { i , 1 } , w _ { i , 2 } , . . . , w _ { i , T } \}$ , with each token $w _ { i , t } \in \mathbb { R } ^ { V }$ a one-hot vector often representing words (but also possibly subwords, punctuation, or special tokens) and $V$ being the vocabulary size. These discrete tokens are then mapped to word embeddings $\mathbf x _ { i } = \{ x _ { i , 1 } , x _ { i , 2 } , . . . , x _ { i , T } \}$ , which serve as input to the machine learning model $f$ . For supervised classification problems, a one-hot label $y _ { i } \in \mathbb { R } ^ { C }$ indicates the ground-truth class of $\mathbf { x } _ { i }$ out of $C$ possible classes. The parameters $\theta$ of $f$ are optimized with some form of stochastic gradient descent so that the output of the model $f ( \mathbf { x } _ { i } ) \in \mathbb { R } ^ { \dot { C } }$ is as close to $y _ { i }$ as possible, with cross-entropy as the most common loss function:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
\mathcal { L } _ { \mathrm { M L E } } = - \frac { 1 } { n } \sum _ { i } ^ { n } y _ { i } \cdot \log ( f ( \mathbf { x } _ { i } ) )
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
where $n$ is the number of samples, and $\cdot$ is the dot product.
|
| 56 |
+
|
| 57 |
+
# 3.2 KNOWLEDGE DISTILLATION FOR BERT
|
| 58 |
+
|
| 59 |
+
Consider two models $f$ and $g$ parameterized by $\theta _ { T }$ and $\theta _ { S }$ , respectively, with $| \theta _ { T } | \gg | \theta _ { S } |$ . Given enough training data and sufficient optimization, $f$ is likely to yield better accuracy than $g$ , due to higher modeling capacity, but may be too bulky or slow for certain applications. Being smaller in size, $g$ is more likely to satisfy operational constraints, but its weaker performance can be seen as a disadvantage. To improve $g$ , we can use the output prediction $f ( \mathbf { x } _ { i } )$ on input $\mathbf { x } _ { i }$ as extra supervision for $g$ to learn from, seeking to match $g ( \mathbf { x } _ { i } )$ with $f ( \mathbf { x } _ { i } )$ . Given these roles, we refer to $g$ as the student model and $f$ as the teacher model.
|
| 60 |
+
|
| 61 |
+
While there are a number of recent large-scale language models driving the state of the art, we focus here on BERT (Devlin et al., 2018) models. Following Sun et al. (2019a), we use the notation $\mathrm { B E R T } _ { k }$ to indicate a BERT model with $k$ Transformer (Vaswani et al., 2017) layers. While powerful, BERT models also tend to be quite large; for example, the default bert-base-uncased $\mathrm { ( B E R T _ { 1 2 } }$ ) has ${ \sim } 1 1 0 \mathbf { M }$ parameters. Reducing the number of layers (e.g. using $\mathrm { B E R T _ { 3 } }$ ) makes such models significantly more portable and efficient, but at the expense of accuracy. With a knowledge distillation set-up, however, we aim to reduce this loss in performance.
|
| 62 |
+
|
| 63 |
+
# 3.3 MIXUP DATA AUGMENTATION FOR KNOWLEDGE DISTILLATION
|
| 64 |
+
|
| 65 |
+
While knowledge distillation can be a powerful technique, if the size of the available data is small, then the student has only limited opportunities to learn from the teacher. This may make it much harder for knowledge distillation to close the gap between student and teacher model performance. To correct this, we propose using data augmentation for knowledge distillation. While data augmentation (Yu et al., 2018; Xie et al., 2019; Yun et al., 2019; Kumar et al., 2019; Hendrycks et al.,
|
| 66 |
+
|
| 67 |
+
2020; Shen et al., 2020; Qu et al., 2020) is a commonly used technique across machine learning for increasing training samples, robustness, and overall performance, a limited modeling capacity constrains the representations the student is capable of learning on its own. Instead, we propose using the augmented samples to further query the teacher model, whose large size often allows it to learn more powerful features.
|
| 68 |
+
|
| 69 |
+
While many different data augmentation strategies have been proposed for NLP, we focus on mixup (Zhang et al., 2018) for generating additional samples to learn from the teacher. Mixup’s vicinal risk minimization tends to result in smoother decision boundaries and better generalization, while also being cheaper to compute than methods such as backtranslation (Yu et al., 2018; Xie et al., 2019). Mixup was initially proposed for continuous data, where interpolations between data points remain in-domain; its efficacy was demonstrated primarily on image data, but examples in speech recognition and tabular data were also shown to demonstrate generality.
|
| 70 |
+
|
| 71 |
+
Directly applying mixup to NLP is not quite as straightforward as it is for images, as language commonly consists of sentences of variable length, each comprised of discrete word tokens. Since performing mixup directly on the word tokens doesn’t result in valid language inputs, we instead perform mixup on the word embeddings at each time step $x _ { i , t }$ (Guo et al., 2019). This can be interpreted as a special case of Manifold mixup Verma et al. (2019a), where the mixing layer is set to the embedding layer. In other words, mixup samples are generated as:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
\begin{array} { r l } & { x _ { i , t } ^ { \prime } = \lambda x _ { i , t } + ( 1 - \lambda ) x _ { j , t } \quad \forall t } \\ & { \quad y _ { i } ^ { \prime } = \lambda y _ { i } + ( 1 - \lambda ) y _ { j } } \end{array}
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
with $\lambda \in [ 0 , 1 ]$ ; random sampling of $\lambda$ from a Uniform or Beta distribution are common choices. Note that we index the augmented sample with $i$ regardless of the value of $\lambda$ . Sentence length variability can be mitigated by grouping mixup pairs by length. Alternatively, padding is a common technique for setting a consistent input length across samples; thus, if $\mathbf { x } ^ { ( i ) }$ contains more word tokens than $\mathbf { x } ^ { ( j ) }$ , then the extra word embeddings are mixed up with zero paddings. We find this approach to be effective, while also being much simpler to implement.
|
| 78 |
+
|
| 79 |
+
We query the teacher model with the generated mixup sample $\mathbf { x } _ { i } ^ { \prime }$ , producing output prediction $f ( \mathbf { x } _ { i } ^ { \prime } )$ The student is encouraged to imitate this prediction on the same input, by minimizing the objective:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\mathcal { L } _ { \mathrm { T M K D } } = d ( f ( \mathbf { x } _ { i } ^ { \prime } ) , g ( \mathbf { x } _ { i } ^ { \prime } ) )
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where $d ( \cdot , \cdot )$ is a distance metric for distillation, with temperature-adjusted cross-entropy and mean square error (MSE) being common choices.
|
| 86 |
+
|
| 87 |
+
Since we have the mixup samples already generated (with an easy-to-generate interpolated pseudolabel $y _ { i } ^ { \prime } )$ , we can also train the student model on these augmented data samples in the usual way, with a cross-entropy objective:
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\mathcal { L } _ { \mathrm { S M } } = - \frac { 1 } { n } \sum _ { i } ^ { n } y _ { i } ^ { \prime } \cdot \log ( g ( \mathbf { x } _ { i } ^ { \prime } ) )
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
Our final objective for $M i x K D$ is a sum of the original data cross-entropy loss, student cross-entropy loss on the mixup samples, and knowledge distillation from the teacher on the mixup samples:
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\mathcal { L } = \mathcal { L } _ { \mathrm { M L E } } + \alpha _ { \mathrm { S M } } \mathcal { L } _ { \mathrm { S M } } + \alpha _ { \mathrm { T M K D } } \mathcal { L } _ { \mathrm { T M K D } }
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
where $\alpha _ { \mathrm { S M } }$ and $\alpha _ { \mathrm { T M K D } }$ are hyperparameters weighting the loss terms.
|
| 100 |
+
|
| 101 |
+
# 3.4 THEORETICAL ANALYSIS
|
| 102 |
+
|
| 103 |
+
We develop a theoretical foundation for the proposed framework. We wish to prove that by adopting data augmentation for knowledge distillation, one can achieve $\ddot { \iota }$ ) a smaller gap between generalization error and empirical error, and $\romannumeral 2$ ) better generalization.
|
| 104 |
+
|
| 105 |
+
To this end, assume the original training data $\{ { \bf x } _ { i } \} _ { i = 1 } ^ { n }$ are sampled i.i.d. from the true data distribution $p ( \mathbf { x } )$ , and the augmented data distribution by mixup is denoted as $q ( \mathbf { x } )$ (apparently $p$ and $q$ are dependent). Let $f$ be the teacher function, and $g \in { \mathcal { G } }$ be the learnable student function. Denote the loss function to learn $g$ as $l ( \cdot , \cdot ) ^ { 1 }$ . The population risk w.r.t. $p ( \mathbf { x } )$ is defined as $\mathcal { R } ( f , g , p ) =$ $\mathbb { E } _ { \mathbf { x } \sim p ( \mathbf { x } ) } \left[ l ( f ( \mathbf { x } ) , g ( \mathbf { x } ) ) \right]$ , and the empirical risk as $\mathcal { R } _ { e m p } ( f , g , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { n } ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } l ( f ( \mathbf { x } _ { i } ) , g ( \mathbf { x } _ { i } ) ) .$ A classic statement for generalization is the following: with at least $1 - \delta$ probability, we have
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\begin{array} { r } { \mathcal { R } ( f , g _ { p } , p ) - \mathcal { R } _ { e m p } ( f , g _ { p } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { n } ) \leq \epsilon , } \end{array}
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
where $\epsilon > 0$ , and we have used $g _ { p }$ to indicate that the function is learned based on $p ( \mathbf { x } )$ . Note different training data would correspond to a different error $\epsilon$ in equation 9. We use $\epsilon _ { p }$ to denote the minimum value over all $\epsilon$ ’s satisfying equation 9. Similarly, we can replace $p$ with $q$ , and $\{ { \bf x } _ { i } \} _ { i = 1 } ^ { n }$ with $\{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b }$ in equation 9 in the data-augmentation case. In this case, the student function is learned based on both the training data and augmented data, which we denote as $g ^ { * }$ . Similarly, we also have a corresponding minimum error, which we denote as $\epsilon ^ { * }$ . Consequently, our goal of better generalization corresponds to proving $\mathcal { R } ( f , g ^ { \ast } , p ) \leq \mathcal { R } ( f , g _ { p } , p )$ , and the goal of a smaller gap corresponds to proving $\epsilon ^ { * } \leq \epsilon _ { p }$ . In our theoretical results, we will give conditions when these goals are achievable. First, we consider the following three cases about the joint data $\mathbf { X } \triangleq \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b }$ and the function class $\mathcal { G }$ :
|
| 112 |
+
|
| 113 |
+
• Case 1: There exists a distribution $\tilde { p }$ such that $\mathbf { X }$ are i.i.d. samples from it2; $\mathcal { G }$ is a finite set.
|
| 114 |
+
• Case 2: There exists $\tilde { p }$ such that $\mathbf { X }$ are i.i.d. samples from it; $\mathcal { G }$ is an infinite set.
|
| 115 |
+
• Case 3: There does not exist a distribution $\tilde { p }$ such that $\mathbf { X }$ are i.i.d. samples from it.
|
| 116 |
+
|
| 117 |
+
Our theoretical results are summarized in Theorems 1-3, which state that with enough augmented data, our method can achieve smaller generalization errors. Proofs are given in the Appendix.
|
| 118 |
+
|
| 119 |
+
Theorem 1 Assume the loss function $l ( \cdot , \cdot )$ is upper bounded by $M > 0$ . Under Case 1, there exists a constant $c > 0$ such that if
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
b \geq \frac { M ^ { 2 } \log ( | \mathcal { G } | / \delta ) } { c } - a
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
then
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\epsilon ^ { * } \leq \epsilon _ { p }
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
where $\epsilon ^ { * }$ and $\epsilon _ { p }$ denote the minimal generalization gaps one can achieve with or without augmented data, with at least $1 - \delta$ probability. If further assuming a better empirical risk with data augmentation (which is usually the case in practice), i.e., $\begin{array} { r } { \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a ^ { - } } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) \leq } \end{array}$ $\mathcal { R } _ { e m p } ( \bar { f } , g _ { p } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { n } )$ , we have
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\mathcal { R } ( f , g ^ { * } , p ) \leq \mathcal { R } ( f , g _ { p } , p )
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
Theorem 2 Assume the loss function $l ( \cdot , \cdot )$ is upper bounded by $M > 0$ and Lipschitz continuous. Fix the probability parameter $\delta$ . Under Case 2, there exists a constant $c > 0$ such that if
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
b \ge \frac { M ^ { 2 } \log ( 1 / \delta ) } { c } - a
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
then
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\epsilon ^ { * } \leq \epsilon _ { p }
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
where $\epsilon ^ { * }$ and $\epsilon _ { p }$ denote the minimal generalization gaps one can achieve with or without augmented data, with at least $1 - \delta$ probability. If further assuming a better empirical risk with data augmentation, i.e., $\mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) \leq \mathcal { R } _ { e m p } ( f , g _ { p } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { n } )$ , we have
|
| 150 |
+
|
| 151 |
+
$$
|
| 152 |
+
\mathcal { R } ( f , g ^ { * } , p ) \leq \mathcal { R } ( f , g _ { p } , p )
|
| 153 |
+
$$
|
| 154 |
+
|
| 155 |
+
A more interesting setting is Case 3. Our result is based on Baxter (2000), which studies learning from different and possibly correlated distributions.
|
| 156 |
+
|
| 157 |
+
Theorem 3 Assume the loss function $l ( \cdot , \cdot )$ is upper bounded. Under Case 3, there exists constants $c _ { 1 } , c _ { 2 } , c _ { 3 } > 0$ such that if
|
| 158 |
+
|
| 159 |
+
$$
|
| 160 |
+
b \geq { \frac { a \log ( 4 / \delta ) } { c _ { 1 } a - c _ { 2 } } } a n d a \geq c _ { 3 }
|
| 161 |
+
$$
|
| 162 |
+
|
| 163 |
+
<table><tr><td>Model</td><td>SST-2</td><td>MRPC</td><td>QQP</td><td>MNLI-m</td><td>QNLI</td><td>RTE</td></tr><tr><td>BERT12</td><td>92.20</td><td>90.53/86.52</td><td>88.21/91.25</td><td>84.12</td><td>91.32</td><td>77.98</td></tr><tr><td>DistilBERT6</td><td>91.3</td><td>87.5/82.4</td><td>-/88.5</td><td>82.2</td><td>89.2</td><td>59.9</td></tr><tr><td>BERT6-FT</td><td>90.94</td><td>88.54/83.82</td><td>87.16/90.43</td><td>81.28</td><td>88.25</td><td>66.43</td></tr><tr><td>BERT6-TMKD</td><td>91.63</td><td>88.93/83.82</td><td>86.60/90.27</td><td>81.49</td><td>88.71</td><td>65.34</td></tr><tr><td>BERT6-SM+TMKD</td><td>91.17</td><td>89.30/84.31</td><td>87.19/90.56</td><td>82.02</td><td>88.63</td><td>65.34</td></tr><tr><td>BERT6-FT+BT</td><td>91.74</td><td>89.60/84.80</td><td>87.06/90.39</td><td>82.10</td><td>87.68</td><td>67.51</td></tr><tr><td>BERT6-TMKD+BT</td><td>91.86</td><td>89.52/84.56</td><td>87.15/90.59</td><td>82.17</td><td>88.38</td><td>69.98</td></tr><tr><td>BERT6-SM+TMKD+BT</td><td>92.09</td><td>89.22/84.07</td><td>87.57/90.78</td><td>82.53</td><td>88.82</td><td>67.87</td></tr><tr><td>BERT3-FT</td><td>87.16</td><td>81.68/71.08</td><td>84.99/88.65</td><td>75.55</td><td>83.98</td><td>58.48</td></tr><tr><td>BERT3-TMKD</td><td>88.76</td><td>81.62/71.08</td><td>83.27/87.80</td><td>75.73</td><td>84.26</td><td>58.48</td></tr><tr><td>BERT3-SM+TMKD</td><td>88.99</td><td>81.73/71.08</td><td>84.47/88.37</td><td>75.52</td><td>84.24</td><td>59.57</td></tr><tr><td>BERT3-FT+BT</td><td>88.88</td><td>83.36/74.26</td><td>85.31/88.81</td><td>76.88</td><td>83.67</td><td>59.21</td></tr><tr><td>BERT3-TMKD+BT</td><td>89.79</td><td>84.46/75.74</td><td>85.17/89.00</td><td>77.19</td><td>84.68</td><td>62.82</td></tr><tr><td>BERT3-SM+TMKD+BT</td><td>90.37</td><td>84.14/75.25</td><td>85.56/89.09</td><td>77.52</td><td>84.83</td><td>60.65</td></tr></table>
|
| 164 |
+
|
| 165 |
+
Table 1: GLUE dev set results. We report the results of our $\mathrm { B E R T _ { 1 2 } }$ teacher model, the 6-layer DistilBERT, and 3- and 6-layer MixKD student models with various ablations. DistilBERT results taken from Sanh et al. (2019). For MRPC and QQP, we report F1/Accuracy.
|
| 166 |
+
|
| 167 |
+
then
|
| 168 |
+
|
| 169 |
+
$$
|
| 170 |
+
\epsilon ^ { * } \leq \epsilon _ { p }
|
| 171 |
+
$$
|
| 172 |
+
|
| 173 |
+
where $\epsilon ^ { * }$ and $\epsilon _ { p }$ denote the minimal generalization gaps one can achieve with or without augmented data, with at least $1 - \delta$ probability. If further assuming a better empirical risk with data augmentation, i.e., $\mathcal { R } _ { e m p } ( f , g ^ { * } , \bar { \{ } \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) \leq \mathcal { R } _ { e m p } ( \bar { f } , g _ { p } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { n } )$ , we have
|
| 174 |
+
|
| 175 |
+
$$
|
| 176 |
+
\mathcal { R } ( f , g ^ { * } , p ) \leq \mathcal { R } ( f , g _ { p } , p )
|
| 177 |
+
$$
|
| 178 |
+
|
| 179 |
+
Remark 4 For Theorem $^ 3$ to hold, based on Baxter (2000), it is enough to ensure $\{ \mathbf { x } _ { i } , \mathbf { x } _ { i } ^ { \prime } \}$ and $\{ \mathbf { x } _ { j } , \mathbf { x } _ { j } ^ { \prime } \}$ to be independent for $i \neq j$ . We achieve this by constructing $\mathbf { x } _ { i } ^ { \prime }$ with $\mathbf { x } _ { i }$ and an extra random sample from the training data. Since all $\left( \mathbf { x } _ { i } , \mathbf { x } _ { j } \right)$ and the extra random samples are independent, the resulting concatenation will also be independent.
|
| 180 |
+
|
| 181 |
+
# 4 EXPERIMENTS
|
| 182 |
+
|
| 183 |
+
We demonstrate the effectiveness of MixKD on a number of GLUE (Wang et al., 2019) dataset tasks: Stanford Sentiment Treebank (SST-2) (Socher et al., 2013), Microsoft Research Paraphrase Corpus (MRPC) (Dolan & Brockett, 2005), Quora Question Pairs $( \mathrm { Q Q P } ) ^ { 3 }$ , Multi-Genre Natural Language Inference (MNLI) (Williams et al., 2018), Question Natural Language Inference (QNLI) (Rajpurkar et al., 2016), and Recognizing Textual Entailment (RTE) (Dagan et al., 2005; Haim et al., 2006; Giampiccolo et al., 2007; Bentivogli et al., 2009). Note that MNLI contains both an in-domain (MNLI-m) and cross-domain (MNLI-mm) evaluation set. These datasets span sentiment analysis, paraphrase similarity matching, and natural language inference types of tasks. We use the Hugging Face Transformers4 implementation of BERT for our experiments.
|
| 184 |
+
|
| 185 |
+
# 4.1 GLUE DATASET EVALUATION
|
| 186 |
+
|
| 187 |
+
We first analyze the contributions of each component of our method, evaluating on the dev set of the GLUE datasets. For the teacher model, we fine-tune a separate 12 Transformer-layer bert-base-uncased $( \mathrm { B E R T _ { 1 2 } } )$ ) for each task. We use the smaller $\mathrm { B E R T _ { 3 } }$ and $\mathrm { B E R T _ { 6 } }$ as the student model. We find that initializing the embeddings and Transformer layers of the student model from the first $k$ layers of the teacher model provides a significant boost to final performance. We use MSE as the knowledge distillation distance metric $d ( \cdot , \cdot )$ . We generate one mixup sample for each original sample in each minibatch (mixup ratio of 1), with $\lambda \sim \operatorname { B e t a } ( 0 . 4 , 0 . 4 )$ . We set hyperparameters weighting the components in the loss term in equation 8 as $\alpha _ { \mathrm { S M } } = \alpha _ { \mathrm { T M K D } } = 1$ .
|
| 188 |
+
|
| 189 |
+
Table 3: GLUE test server results. We show results for the full variants of the 3- and 6-layer MixKD student models $( \mathbf { S } \mathbf { M } \mathbf { + } \mathbf { T } \mathbf { M } \mathbf { K } \mathbf { D } \mathbf { + } \mathbf { B } \mathbf { T } )$ . Knowledge distillation (KD) and Patient Knowledge Distillation (PKD) results are from Sun et al. (2019a).
|
| 190 |
+
|
| 191 |
+
<table><tr><td>Model</td><td>SST-2</td><td>MRPC</td><td>QQP</td><td>MNLI-m</td><td>MNLI-mm</td><td>QNLI</td><td>RTE</td></tr><tr><td>BERT12</td><td>93.5</td><td>88.9/84.8</td><td>71.2/89.2</td><td>84.6</td><td>83.4</td><td>90.5</td><td>66.4</td></tr><tr><td>BERT6-FT</td><td>90.7</td><td>85.9/80.2</td><td>69.2/88.2</td><td>80.4</td><td>79.7</td><td>86.7</td><td>63.6</td></tr><tr><td>BERT6-KD</td><td>91.5</td><td>86.2/80.6</td><td>70.1/88.8</td><td>80.2</td><td>79.8</td><td>88.3</td><td>64.7</td></tr><tr><td>BERT6-PKD</td><td>92.0</td><td>85.0/79.9</td><td>70.7/88.9</td><td>81.5</td><td>81.0</td><td>89.0</td><td>65.5</td></tr><tr><td>BERT6-MixKD</td><td>92.5</td><td>86.4/81.9</td><td>70.5/89.1</td><td>82.2</td><td>81.2</td><td>88.2</td><td>68.3</td></tr><tr><td>BERT3-FT</td><td>86.4</td><td>80.5/72.6</td><td>65.8/86.9</td><td>74.8</td><td>74.3</td><td>84.3</td><td>55.2</td></tr><tr><td>BERT3-KD</td><td>86.9</td><td>79.5/71.1</td><td>67.3/87.6</td><td>75.4</td><td>74.8</td><td>84.0</td><td>56.2</td></tr><tr><td>BERT3-PKD</td><td>87.5</td><td>80.7/72.5</td><td>68.1/87.8</td><td>76.7</td><td>76.3</td><td>84.7</td><td>58.2</td></tr><tr><td>BERT3-MixKD</td><td>89.5</td><td>83.3/75.2</td><td>67.2/87.4</td><td>77.2</td><td>76.8</td><td>84.4</td><td>62.0</td></tr></table>
|
| 192 |
+
|
| 193 |
+
As a baseline, we fine-tune the student model on the task dataset without any distillation or augmentation, which we denote as $\mathrm { B E R T } _ { k }$ -FT. We compare this against MixKD, with both knowledge distillation on the teacher’s predictions $( \mathcal { L } _ { \mathrm { T M K D } } )$ and mixup for the student $( \mathcal { L } _ { \mathrm { S M } } )$ , which we call $\mathrm { B E R T } _ { k }$ -SM+TMKD. We also evaluate an ablated version without the student mixup loss $( \mathrm { B E R T } _ { k }$ - TMKD) to highlight the knowledge distillation component specifically. We note that our method can also easily be combined with other forms of data augmentation. For example, backtranslation (translating an input sequence to the data space of another language and then translating back to the original language) tends to generate varied but semantically similar sequences; these sentences also tend to be of higher quality than masking or word-dropping approaches. We show that our method has an additive effect with other techniques by also testing our method with the dataset augmented with German backtranslation, using the fairseq (Ott et al., 2019) neural machine translation codebase to generate these additional samples. We also compare all of the aforementioned variants with backtranslation samples augmenting the data; we denote these variants with an additional $+ \mathbf { B } \mathrm { T }$ .
|
| 194 |
+
|
| 195 |
+
We report the model accuracy (and $F _ { 1 }$ score, for MRPC and QQP) in Table 1. We also show the performance of the full-scale teacher model $\mathrm { ( B E R T _ { 1 2 } ) }$ ) and DistilBERT (Sanh et al., 2019), which performs basic knowledge distillation during BERT pre-training to a 6-layer model. For our method, we observe that a combination of data augmentation and knowledge
|
| 196 |
+
|
| 197 |
+
Table 2: Computation cost comparison of teacher and student models on SST-2 with batch size of 16 on a Nvidia TITAN X GPU.
|
| 198 |
+
|
| 199 |
+
<table><tr><td>Model</td><td>Inference Speed (samples/second)</td><td># of Parameters</td></tr><tr><td>BERT12Teacher</td><td>115</td><td>109,483,778</td></tr><tr><td>BERT6 Student</td><td>252</td><td>66,956,546</td></tr><tr><td>BERT3 Student</td><td>397</td><td>45,692,930</td></tr></table>
|
| 200 |
+
|
| 201 |
+
distillation leads to significant gains in performance, with the best variant often being the combination of teacher mixup knowledge distillation, student mixup, and backtranslation. In the case of SST-2, for example, $\mathrm { B E R T _ { 6 } }$ - $\mathbf { \cdot S M { + } T M K D { + } B T }$ is able to capture $9 9 . 8 8 \%$ of the performance of the teacher model, closing $9 1 . 2 7 \%$ of the gap between the fine-tuned student model and the teacher, despite using far fewer parameters and having a much faster inference speed (Table 2).
|
| 202 |
+
|
| 203 |
+
After analyzing the contributions of the components of our model on the dev set, we find the $\mathbf { S M + T M K D + B T }$ variant to have the best performance overall and thus focus on this variant. We submit this version of MixKD to the GLUE test server, reporting its results in comparison with fine-tuning (FT), vanilla knowledge distillation (KD) (Hinton et al., 2015), and patient knowledge distillation (PKD) (Sun et al., 2019a) in Table 3. Once again, we observe that our model outperforms the baseline methods on most tasks.
|
| 204 |
+
|
| 205 |
+
# 4.2 LIMITED-DATA SETTINGS
|
| 206 |
+
|
| 207 |
+
One of the primary motivations for using data augmentation for knowledge distillation is to give the student more opportunities to query the teacher model. For datasets with a large enough number of samples relative to the task’s complexity, the original dataset may provide enough chances to learn from the teacher, reducing the relative value of data augmentation.
|
| 208 |
+
|
| 209 |
+
As such, we also evaluate MixKD with a $\mathrm { B E R T _ { 3 } }$ student on downsampled versions of QQP, MNLI (matched and mismatched), and QNLI in Figure 1. We randomly select $\mathrm { \bar { 1 0 \% } }$ and $1 \%$ of the data from these datasets to train both the teacher and student models, using the same subset for all experiments for fair comparison. In this data limited setting, we observe substantial gains from MixKD over the fine-tuned model for QQP $( + 2 . 0 \%$ , $+ 3 . 0 \%$ ), MNLI-m $( + 3 . 9 \%$ , $+ 3 . 4 \%$ ), MNLI-mm $( + 4 . 4 \%$ , $+ 3 . 3 \% )$ , and QNLI $( + 2 . 4 \%$ , $+ 4 . 1 \% )$ for $1 0 \%$ and $1 \%$ of the training data.
|
| 210 |
+
|
| 211 |
+

|
| 212 |
+
Figure 1: Results of limited data case, where both the teacher and student models are learned with only $10 \%$ (left) or $1 \%$ of the training data (right).
|
| 213 |
+
|
| 214 |
+
# 4.3 EMBEDDINGS VISUALIZATION
|
| 215 |
+
|
| 216 |
+
We perform a qualitative examination of the effect of the proposed MixKD by visualizing the latent space between positive and negative samples as encoded by the student model with tSNE plots (Maaten & Hinton, 2008). In Figure 2, we show the shift of the transformer features at the [CLS] token position, with and without mixup data augmentation from the teacher. We randomly select a batch of 100 sentences from the SST-2 dataset, of which 50 are positive sentiment (blue square) and 50 are negative sentiment (red circle). The intermediate mixup neighbours are indicated by triangles with color determined by the closeness to the positive group or negative group. From Figure 2(a) to Figure 2(b), MixKD forces the lin
|
| 217 |
+
|
| 218 |
+

|
| 219 |
+
Figure 2: Latent space of randomly sampled training data and their mixup neighbours encoded by student model (a) learned by standard finetuning (b) learned with MixKD.
|
| 220 |
+
|
| 221 |
+
early interpolated samples to be aligned with the manifold formed by the real training data and leads the student model to explore meaningful regions of the feature space effectively.
|
| 222 |
+
|
| 223 |
+
# 4.4 HYPERPARAMETER SENSITIVITY & FURTHER ANALYSIS
|
| 224 |
+
|
| 225 |
+
Loss Hyperparameters Our final objective in equation 8 has hyperparameters $\alpha _ { \mathrm { S M } }$ and $\alpha _ { \mathrm { T M K D } }$ , which control the weight of the student model’s cross-entropy loss for the mixup samples and the knowledge distillation loss with the teacher’s predictions on the mixup samples, respectively. We demonstrate that the model is fairly stable over a wide range by sweeping both $\alpha _ { \mathrm { S M } }$ and $\alpha _ { \mathrm { T M K D } }$ over the range $\{ 0 . 1 , 0 . 5 , 1 . 0 , 2 . 0 , 1 0 . 0 \}$ . We do this for a $\mathrm { B E R T _ { 3 } }$ student and $\mathrm { B E R T _ { 1 2 } }$ teacher, with SST-2 as the task; we show the results of this sensitivity study, both with and without German backtranslation, in Figure 3. Given the overall consistency, we observe that our method is stable over a wide range of settings.
|
| 226 |
+
|
| 227 |
+
Mixup Ratio We also investigate the effect of the mixup ratio: the number of mixup samples generated for each sample in a minibatch. We run a smaller sweep of $\alpha _ { \mathrm { S M } }$ and $\alpha _ { \mathrm { T M K D } }$ over the range $\{ 0 . 5 , 1 . 0 , 2 . 0 \}$ for mixup ratios of 2 and 3 for a $\mathrm { B E R T _ { 3 } }$ student SST-2, with and without German backtranslation, in Figure 3. We conclude that the mixup ratio does not have a strong effect on overall performance. Given that higher mixup ratio requires more computation (due to more samples over which to compute the forward and backward pass), we find a mixup ratio of 1 to be enough.
|
| 228 |
+
|
| 229 |
+

|
| 230 |
+
Figure 3: Hyperparameter sensitivity analysis regarding the MixKD approach, with different choices of $\alpha _ { \mathrm { T M K D } }$ , $\alpha _ { \mathrm { S M } }$ and the ratio of mixup samples (w.r.t. the original training data).
|
| 231 |
+
|
| 232 |
+
Comparing with TinyBERT’s DA module TinyBERT (Jiao et al., 2019) also utilizes data augmentation for knowledge distillation. Specifically, they adopt a conditional BERT contextual augmentation (Wu et al., 2019) strategy. To further verify the effectiveness of our approach, we use TinyBERT’s released codebase5 to generate augmented samples and make
|
| 233 |
+
|
| 234 |
+
<table><tr><td>Methods</td><td>MNLI</td><td>SST-2</td></tr><tr><td>BERT6</td><td>81.3</td><td>90.9</td></tr><tr><td>BERT6+ TinyBERTDA module</td><td>81.5</td><td>91.3</td></tr><tr><td>BERT6+MixKD</td><td>82.5</td><td>92.1</td></tr></table>
|
| 235 |
+
|
| 236 |
+
Table 4: We compare our approach with the data augmentation module proposed by TinyBert (Jiao et al., 2019).
|
| 237 |
+
|
| 238 |
+
a direct comparison with MixKD. As shown in Table 4, our approach exhibits much stronger results for distilling a 6-layer BERT model (on both MNLI and SST-2 datasets). Notably, TinyBERT’s data augmentation module is much less efficient than mixup’s simple operation, generating 20 times the original data as augmented samples, thus leading to massive computation overhead.
|
| 239 |
+
|
| 240 |
+
# 5 CONCLUSIONS
|
| 241 |
+
|
| 242 |
+
We introduce MixKD, a method that uses data augmentation to significantly increase the value of knowledge distillation for compressing large-scale language models. Intuitively, MixKD allows the student model additional queries to the teacher model, granting it more opportunities to absorb the latter’s richer representations. We analyze MixKD from a theoretical standpoint, proving that our approach results in a smaller gap between generalization error and empirical error, as well as better generalization, under appropriate conditions. Our approach’s success on a variety of GLUE tasks demonstrates its broad applicability, with a thorough set of experiments for validation. We also believe that the MixKD framework can further reduce the gap between student and teacher models with the incorporation of more recent mixup and knowledge distillation techniques (Lee et al., 2020; Wang et al., 2020; Mirzadeh et al., 2019), and we leave this to future work.
|
| 243 |
+
|
| 244 |
+
# ACKNOWLEDGMENTS
|
| 245 |
+
|
| 246 |
+
CC is partly supported by the Verizon Media FREP program.
|
| 247 |
+
|
| 248 |
+
# REFERENCES
|
| 249 |
+
|
| 250 |
+
Hangbo Bao, Li Dong, Furu Wei, Wenhui Wang, Nan Yang, Xiaodong Liu, Yu Wang, Songhao Piao, Jianfeng Gao, Ming Zhou, et al. UniLMv2: Pseudo-masked Language Models for Unified Language Model Pre-training. arXiv preprint arXiv:2002.12804, 2020.
|
| 251 |
+
|
| 252 |
+
J. Baxter. A Model of Inductive Bias Learning. Journal of Artificial Intelligence Research, 2000.
|
| 253 |
+
|
| 254 |
+
Luisa Bentivogli, Peter Clark, Ido Dagan, and Danilo Giampiccolo. The Fifth PASCAL Recognizing Textual Entailment Challenge. TAC, 2009.
|
| 255 |
+
|
| 256 |
+
David Berthelot, Nicholas Carlini, Ekin D Cubuk, Alex Kurakin, Kihyuk Sohn, Han Zhang, and Colin Raffel. ReMixMatch: Semi-Supervised Learning with Distribution Alignment and Augmentation Anchoring. International Conference on Learning Representations, 2019a.
|
| 257 |
+
|
| 258 |
+
David Berthelot, Nicholas Carlini, Ian Goodfellow, Nicolas Papernot, Avital Oliver, and Colin A Raffel. MixMatch: A Holistic Approach to Semi-Supervised Learning. Neural Information Processing Systems, 2019b.
|
| 259 |
+
|
| 260 |
+
Jiaao Chen, Zichao Yang, and Diyi Yang. MixText: Linguistically-Informed Interpolation of Hidden Space for Semi-Supervised Text Classification. Association for Computational Linguistics, July 2020.
|
| 261 |
+
|
| 262 |
+
Kevin Clark, Minh-Thang Luong, Urvashi Khandelwal, Christopher D Manning, and Quoc V Le. BAM! Born-again Multi-task Networks for Natural Language Understanding. arXiv preprint arXiv:1907.04829, 2019.
|
| 263 |
+
|
| 264 |
+
Kevin Clark, Minh-Thang Luong, Quoc V Le, and Christopher D Manning. ELECTRA: Pre-training Text Encoders as Discriminators Rather than Generators. arXiv preprint arXiv:2003.10555, 2020.
|
| 265 |
+
|
| 266 |
+
Ido Dagan, Oren Glickman, and Bernardo Magnini. The PASCAL Recognising Textual Entailment Challenge. Machine Learning Challenges Workshop, 2005.
|
| 267 |
+
|
| 268 |
+
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.
|
| 269 |
+
|
| 270 |
+
William B Dolan and Chris Brockett. Automatically Constructing a Corpus of Sentential Paraphrases. International Workshop on Paraphrasing, 2005.
|
| 271 |
+
|
| 272 |
+
Danilo Giampiccolo, Bernardo Magnini, Ido Dagan, and Bill Dolan. The Third PASCAL Recognizing Textual Entailment Challenge. ACL-PASCAL Workshop on Textual Entailment and Paraphrasing, 2007.
|
| 273 |
+
|
| 274 |
+
Hongyu Guo, Yongyi Mao, and Richong Zhang. Augmenting Data with Mixup for Sentence Classification: An Empirical Study. arXiv preprint arXiv:1905.08941, 2019.
|
| 275 |
+
|
| 276 |
+
R Bar Haim, Ido Dagan, Bill Dolan, Lisa Ferro, Danilo Giampiccolo, Bernardo Magnini, and Idan Szpektor. The Second PASCAL Recognising Textual Entailment Challenge. PASCAL Challenges Workshop on Recognising Textual Entailment, 2006.
|
| 277 |
+
|
| 278 |
+
Dan Hendrycks, Norman Mu, Ekin Dogus Cubuk, Barret Zoph, Justin Gilmer, and Balaji Lakshminarayanan. AugMix: A Simple Method to Improve Robustness and Uncertainty under Data Shift. International Conference on Learning Representations, 2020.
|
| 279 |
+
|
| 280 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the Knowledge in a Neural Network. arXiv preprint arXiv:1503.02531, 2015.
|
| 281 |
+
|
| 282 |
+
Xiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang, Xiao Chen, Linlin Li, Fang Wang, and Qun Liu. TinyBERT: Distilling BERT for Natural Language Understanding. arXiv preprint arXiv:1909.10351, 2019.
|
| 283 |
+
|
| 284 |
+
Mandar Joshi, Danqi Chen, Yinhan Liu, Daniel S Weld, Luke Zettlemoyer, and Omer Levy. SpanBERT: Improving Pre-training by Representing and Predicting Spans. Association for Computational Linguistics, 2020.
|
| 285 |
+
|
| 286 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet Classification with Deep Convolutional Neural Networks. Neural Information Processing Systems, 2012.
|
| 287 |
+
|
| 288 |
+
Ashutosh Kumar, Satwik Bhattamishra, Manik Bhandari, and Partha Talukdar. Submodular Optimization-based Diverse Paraphrasing and Its Effectiveness in Data Augmentation. North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 2019.
|
| 289 |
+
|
| 290 |
+
Saehyung Lee, Hyungyu Lee, and Sungroh Yoon. Adversarial Vertex Mixup: Toward Better Adversarially Robust Generalization. Computer Vision and Pattern Recognition, 2020.
|
| 291 |
+
|
| 292 |
+
Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, and Luke Zettlemoyer. BART: Denoising Sequence-to-sequence Pretraining for Natural Language Generation, Translation, and Comprehension. arXiv preprint arXiv:1910.13461, 2019.
|
| 293 |
+
|
| 294 |
+
Linqing Liu, Huan Wang, Jimmy Lin, Richard Socher, and Caiming Xiong. Attentive Student Meets Multi-task Teacher: Improved Knowledge Distillation for Pretrained Models. arXiv preprint arXiv:1911.03588, 2019a.
|
| 295 |
+
|
| 296 |
+
Xiaodong Liu, Pengcheng He, Weizhu Chen, and Jianfeng Gao. Multi-task Deep Neural Networks for Natural Language Understanding. arXiv preprint arXiv:1901.11504, 2019b.
|
| 297 |
+
|
| 298 |
+
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, 2019c.
|
| 299 |
+
|
| 300 |
+
Laurens van der Maaten and Geoffrey Hinton. Visualizing Data using t-SNE. Journal of Machine Learning Research, 2008.
|
| 301 |
+
|
| 302 |
+
Seyed-Iman Mirzadeh, Mehrdad Farajtabar, Ang Li, Nir Levine, Akihiro Matsukawa, and Hassan Ghasemzadeh. Improved Knowledge Distillation via Teacher Assistant. arXiv preprint arXiv:1902.03393, 2019.
|
| 303 |
+
|
| 304 |
+
Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar. Foundations of Machine Learning. 2018.
|
| 305 |
+
|
| 306 |
+
Subhabrata Mukherjee and Ahmed Hassan Awadallah. Distilling Transformers into Simple Neural Networks with Unlabeled Transfer Data. arXiv preprint arXiv:1910.01769, 2019.
|
| 307 |
+
|
| 308 |
+
Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. fairseq: A Fast, Extensible Toolkit for Sequence Modeling. North American Chapter of the Association for Computational Linguistics: Human Language Technologies: Demonstrations, 2019.
|
| 309 |
+
|
| 310 |
+
Yanru Qu, Dinghan Shen, Yelong Shen, Sandra Sajeev, Jiawei Han, and Weizhu Chen. CoDA: Contrast-enhanced and Diversity-promoting Data Augmentation for Natural Language Understanding. arXiv preprint arXiv:2010.08670, 2020.
|
| 311 |
+
|
| 312 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: $^ { 1 0 0 , 0 0 0 + }$ Questions for Machine Comprehension of Text. Empirical Methods in Natural Language Processing, 2016.
|
| 313 |
+
|
| 314 |
+
Victor Sanh, Lysandre Debut, Julien Chaumond, and Thomas Wolf. DistilBERT, A Distilled Version of BERT: Smaller, Faster, Cheaper and Lighter. arXiv preprint arXiv:1910.01108, 2019.
|
| 315 |
+
|
| 316 |
+
Dinghan Shen, Mingzhi Zheng, Yelong Shen, Yanru Qu, and Weizhu Chen. A Simple but Tough-toBeat Data Augmentation Approach for Natural Language Understanding and Generation. arXiv preprint arXiv:2009.13818, 2020.
|
| 317 |
+
|
| 318 |
+
Patrice Y Simard, Yann A LeCun, John S Denker, and Bernard Victorri. Transformation Invariance in Pattern Recognition–Tangent Distance and Tangent Propagation. Neural Networks: Tricks of the Trade, 1998.
|
| 319 |
+
|
| 320 |
+
PY Simard, D Steinkraus, and JC Platt. Best Practices for Convolutional Neural Networks Applied to Visual Document Analysis. International Conference on Document Analysis and Recognition, 2003.
|
| 321 |
+
|
| 322 |
+
Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew $\mathrm { ~ Y ~ N ~ g ~ } _ { }$ and Christopher Potts. Recursive Deep Models for Semantic Compositionality over a Sentiment Treebank. Empirical Methods in Natural Language Processing, 2013.
|
| 323 |
+
|
| 324 |
+
Siqi Sun, Yu Cheng, Zhe Gan, and Jingjing Liu. Patient Knowledge Distillation for BERT Model Compression. arXiv preprint arXiv:1908.09355, 2019a.
|
| 325 |
+
|
| 326 |
+
Yu Sun, Shuohuan Wang, Yukun Li, Shikun Feng, Xuyi Chen, Han Zhang, Xin Tian, Danxiang Zhu, Hao Tian, and Hua Wu. ERNIE: Enhanced Representation through Knowledge Integration. arXiv preprint arXiv:1904.09223, 2019b.
|
| 327 |
+
|
| 328 |
+
Zhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu, Yiming Yang, and Denny Zhou. MobileBERT: A Compact Task-agnostic BERT for Resource-limited Devices. arXiv preprint arXiv:2004.02984, 2020.
|
| 329 |
+
|
| 330 |
+
Raphael Tang, Yao Lu, Linqing Liu, Lili Mou, Olga Vechtomova, and Jimmy Lin. Distilling Taskspecific Knowledge from BERT into Simple Neural Networks. arXiv preprint arXiv:1903.12136, 2019.
|
| 331 |
+
|
| 332 |
+
Iulia Turc, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Well-read Students Learn Better: On the Importance of Pre-training Compact Models. arXiv preprint arXiv:1908.08962, 2019.
|
| 333 |
+
|
| 334 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is All You Need. Neural Information Processing Systems, 2017.
|
| 335 |
+
|
| 336 |
+
Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David LopezPaz, and Yoshua Bengio. Manifold Mixup: Better Representations by Interpolating Hidden States. International Conference on Machine Learning, 2019a.
|
| 337 |
+
|
| 338 |
+
Vikas Verma, Alex Lamb, Juho Kannala, Yoshua Bengio, and David Lopez-Paz. Interpolation Consistency Training for Semi-supervised Learning. International Joint Conference on Artificial Intelligence, 2019b.
|
| 339 |
+
|
| 340 |
+
Vikas Verma, Meng Qu, Alex Lamb, Yoshua Bengio, Juho Kannala, and Jian Tang. GraphMix: Improved Training of GNNs for Semi-Supervised Learning. arXiv preprint arXiv:1909.11715, 2019c.
|
| 341 |
+
|
| 342 |
+
Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R Bowman. GLUE: A Multi-task Benchmark and Analysis Platform for Natural Language Understanding. International Conference on Learning Representations, 2019.
|
| 343 |
+
|
| 344 |
+
Dongdong Wang, Yandong Li, Liqiang Wang, and Boqing Gong. Neural Networks Are More Productive Teachers Than Human Raters: Active Mixup for Data-Efficient Knowledge Distillation from a Blackbox Model. Computer Vision and Pattern Recognition, 2020.
|
| 345 |
+
|
| 346 |
+
Jason Wei and Kai Zou. EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Tasks. arXiv preprint arXiv:1901.11196, 2019.
|
| 347 |
+
|
| 348 |
+
Adina Williams, Nikita Nangia, and Samuel R Bowman. A Broad-coverage Challenge Corpus for Sentence Understanding through Inference. North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 2018.
|
| 349 |
+
|
| 350 |
+
Xing Wu, Shangwen Lv, Liangjun Zang, Jizhong Han, and Songlin Hu. Conditional BERT Contextual Augmentation. International Conference on Computational Science, 2019.
|
| 351 |
+
|
| 352 |
+
Qizhe Xie, Zihang Dai, Eduard Hovy, Minh-Thang Luong, and Quoc V Le. Unsupervised Data Augmentation for Consistency Training. arXiv preprint arXiv:1904.12848, 2019.
|
| 353 |
+
|
| 354 |
+
Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R Salakhutdinov, and Quoc V Le. XLNet: Generalized Autoregressive Pretraining for Language Understanding. Neural Information Processing Systems, 2019.
|
| 355 |
+
|
| 356 |
+
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.
|
| 357 |
+
|
| 358 |
+
Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Features. International Conference on Computer Vision, 2019.
|
| 359 |
+
|
| 360 |
+
Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond Empirical Risk Minimization. International Conference on Learning Representations, 2018.
|
| 361 |
+
|
| 362 |
+
Sanqiang Zhao, Raghav Gupta, Yang Song, and Denny Zhou. Extreme Language Model Compression with Optimal Subwords and Shared Projections. arXiv preprint arXiv:1909.11687, 2019.
|
| 363 |
+
|
| 364 |
+
# A PROOFS
|
| 365 |
+
|
| 366 |
+
Proof [Proof of Theorem 1] First of all, $\{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b }$ can be regarded as drawn from distribution $r ( \mathbf { x } ) = \frac { a p ( \mathbf { x } ) + b q ( \mathbf { x } ) } { a + b }$
|
| 367 |
+
|
| 368 |
+
Given $\mathcal { G }$ is finite, we have the following theorem
|
| 369 |
+
|
| 370 |
+
Theorem 5 (Mohri et al., 2018) Let $l$ be a bounded loss function, hypothesis set $\mathcal { G }$ is finite. Then for any $\delta > 0$ , with probability at least $1 - \delta$ , the following inequality holds for all $g \in { \mathcal { G } }$ :
|
| 371 |
+
|
| 372 |
+
$$
|
| 373 |
+
\mathcal { R } ( f , g , p ) - \mathcal { R } _ { e m p } ( f , g , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { n } ) \leq M \sqrt { \frac { \log ( | \mathcal { G } | / \delta ) } { 2 n } }
|
| 374 |
+
$$
|
| 375 |
+
|
| 376 |
+
Thus we have in our case:
|
| 377 |
+
|
| 378 |
+
$$
|
| 379 |
+
\mathcal { R } ( f , g _ { p } , p ) - \mathcal { R } _ { e m p } ( f , g _ { p } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { n } ) \leq \epsilon _ { p } \leq M \sqrt { \frac { { \log ( | \mathcal { G } | / \delta ) } } { 2 n } }
|
| 380 |
+
$$
|
| 381 |
+
|
| 382 |
+
and
|
| 383 |
+
|
| 384 |
+
$$
|
| 385 |
+
\begin{array} { r l } { { \mathcal { R } ( f , g ^ { * } , p ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \big \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) } } \\ & { = \mathcal { R } ( f , g ^ { * } , r ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \big \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) + \int l ( f ( \mathbf { x } ) , g ^ { * } ( \mathbf { x } ) ) ( p ( \mathbf { x } ) - r ( \mathbf { x } ) ) d \mathbf { x } } \\ & { = \mathcal { R } ( f , g ^ { * } , r ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \big \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) + \frac { b } { a + b } \int l ( f ( \mathbf { x } ) , g ^ { * } ( \mathbf { x } ) ) ( p ( \mathbf { x } ) - q ( \mathbf { x } ) ) d \mathbf { x } } \\ & { \leq \mathcal { R } ( f , g ^ { * } , r ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \big \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) + \int l ( f ( \mathbf { x } ) , g ^ { * } ( \mathbf { x } ) ) ( p ( \mathbf { x } ) - q ( \mathbf { x } ) ) d \mathbf { x } } \\ & { { \overset { } { \leq } } M \sqrt { \frac { \log ( | \mathcal { G } | / \delta ) } { 2 ( a + b ) } } + \bigtriangleup } & { ( 1 } \end{array}
|
| 386 |
+
$$
|
| 387 |
+
|
| 388 |
+
where $\begin{array} { r } { \triangle = \int l ( f ( \mathbf { x } ) , g ^ { * } ( \mathbf { x } ) ) ( p ( \mathbf { x } ) - q ( \mathbf { x } ) ) d \mathbf { x } } \end{array}$ . If
|
| 389 |
+
|
| 390 |
+
$$
|
| 391 |
+
b \ge \frac { M ^ { 2 } \log ( | \mathcal { G } | / \delta ) } { 2 ( \epsilon _ { p } - \triangle ) ^ { 2 } } - a
|
| 392 |
+
$$
|
| 393 |
+
|
| 394 |
+
then
|
| 395 |
+
|
| 396 |
+
$$
|
| 397 |
+
\begin{array} { r l r } & { } & { 2 ( a + b ) \ge \frac { M ^ { 2 } \log ( | \mathcal { G } | / \delta ) } { ( \epsilon _ { p } - \triangle ) ^ { 2 } } } \\ & { } & { ( \epsilon _ { p } - \triangle ) ^ { 2 } \ge \frac { M ^ { 2 } \log ( | \mathcal { G } | / \delta ) } { 2 ( a + b ) } } \\ & { } & { \epsilon _ { p } \ge M \sqrt { \frac { \log ( | \mathcal { G } | / \delta ) } { 2 ( a + b ) } } + \triangle } \end{array}
|
| 398 |
+
$$
|
| 399 |
+
|
| 400 |
+
Substitute into equation 10, we have
|
| 401 |
+
|
| 402 |
+
$$
|
| 403 |
+
\begin{array} { r } { \mathcal { R } ( f , g ^ { * } , p ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) \leq \epsilon _ { p } } \end{array}
|
| 404 |
+
$$
|
| 405 |
+
|
| 406 |
+
Recall the definition of $\epsilon ^ { * }$ , which is the minimum value of all possible $\epsilon$ satisfying
|
| 407 |
+
|
| 408 |
+
$$
|
| 409 |
+
\mathcal { R } ( f , g ^ { * } , p ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) \leq \epsilon
|
| 410 |
+
$$
|
| 411 |
+
|
| 412 |
+
we know that $\epsilon ^ { * } \leq \epsilon _ { p }$ . Let $c = 2 ( \epsilon _ { p } - \triangle ) ^ { 2 }$ , we can conclude the theorem.
|
| 413 |
+
|
| 414 |
+
Proof [Proof of Theorem 2] First of all, $\{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b }$ can be regarded as drawn from distribution $r ( \mathbf { x } ) = \frac { a p ( \mathbf { x } ) + b q ( \mathbf { x } ) } { a + b }$
|
| 415 |
+
|
| 416 |
+
Theorem 6 (Mohri et al., 2018) Let $l$ be a non-negative loss function upper bounded by $M > 0$ , and for any fixed y, $l ( \mathbf { y } , \mathbf { y } ^ { \prime } )$ is $L$ -Lipschitz for some $L > 0$ , then with probability at least $1 - \delta$ ,
|
| 417 |
+
|
| 418 |
+
$$
|
| 419 |
+
\mathcal { R } ( f , g , p ) - \mathcal { R } _ { e m p } ( f , g , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { n } ) \leq 2 L \Re _ { p } ( \mathcal { G } ) + M \sqrt { \frac { l o g ( 1 / \delta ) } { 2 n } }
|
| 420 |
+
$$
|
| 421 |
+
|
| 422 |
+
Thus we have
|
| 423 |
+
|
| 424 |
+
$$
|
| 425 |
+
\mathcal { R } ( f , g , p ) - \mathcal { R } _ { e m p } ( f , g , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { n } ) \leq \epsilon _ { p } \leq 2 L \Re _ { p } ( \mathcal { G } ) + M \sqrt { \frac { l o g ( 1 / \delta ) } { 2 n } }
|
| 426 |
+
$$
|
| 427 |
+
|
| 428 |
+
where $\Re _ { p } ( \mathcal { G } )$ are Rademacher complexity over all samples of size $n$ samples from $p ( \mathbf { x } )$
|
| 429 |
+
|
| 430 |
+
We also have
|
| 431 |
+
|
| 432 |
+
$$
|
| 433 |
+
\begin{array} { r l r } { { \mathcal { R } ( f , g ^ { * } , p ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \big \{ \mathbf { x } _ { i } \big \} _ { i = 1 } ^ { a } \cup \big \{ \mathbf { x } _ { i } ^ { \prime } \big \} _ { i = 1 } ^ { b } ) } } \\ & { = \mathcal { R } ( f , g ^ { * } , r ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \big \{ \mathbf { x } _ { i } \big \} _ { i = 1 } ^ { a } \cup \big \{ \mathbf { x } _ { i } ^ { \prime } \big \} _ { i = 1 } ^ { b } ) + \int l ( f ( \mathbf { x } ) , g ^ { * } ( \mathbf { x } ) ) ( p ( \mathbf { x } ) - r ( \mathbf { x } ) ) d \mathbf { x } } \\ & { = \mathcal { R } ( f , g ^ { * } , r ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \big \{ \mathbf { x } _ { i } \big \} _ { i = 1 } ^ { a } \cup \big \{ \mathbf { x } _ { i } ^ { \prime } \big \} _ { i = 1 } ^ { b } ) + \frac { b } { a + b } \int l ( f ( \mathbf { x } ) , g ^ { * } ( \mathbf { x } ) ) ( p ( \mathbf { x } ) - q ( \mathbf { x } ) ) d \mathbf { x } } \\ & { \leq \mathcal { R } ( f , g ^ { * } , r ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \big \{ \mathbf { x } _ { i } \big \} _ { i = 1 } ^ { a } \cup \big \{ \mathbf { x } _ { i } ^ { \prime } \big \} _ { i = 1 } ^ { b } ) + \int l ( f ( \mathbf { x } ) , g ^ { * } ( \mathbf { x } ) ) ( p ( \mathbf { x } ) - q ( \mathbf { x } ) ) d \mathbf { x } } \\ & { \leq 2 L \mathfrak { R } _ { r } ( \mathcal { G } ) + M \sqrt { \frac { l o g ( 1 / \delta ) } { 2 ( a + b ) } } + \bigtriangleup } & { ( 1 } \end{array}
|
| 434 |
+
$$
|
| 435 |
+
|
| 436 |
+
where $\begin{array} { r } { \triangle = \int l ( f ( \mathbf { x } ) , g ^ { * } ( \mathbf { x } ) ) ( p ( \mathbf { x } ) - q ( \mathbf { x } ) ) d \mathbf { x } . \Re _ { r } ( \mathcal { G } ) } \end{array}$ are Rademacher complexity over all samples of size $( a + b )$ samples from $r ( \mathbf { x } ) = \frac { a p ( \mathbf { x } ) + b q ( \mathbf { x } ) } { a + b }$
|
| 437 |
+
|
| 438 |
+
If
|
| 439 |
+
|
| 440 |
+
then:
|
| 441 |
+
|
| 442 |
+
$$
|
| 443 |
+
\begin{array} { l } { { b \geq \displaystyle \frac { M ^ { 2 } \log ( 1 / \delta ) } { 2 ( \epsilon _ { p } - \bigtriangleup - 2 L \mathfrak { N } _ { r } ( \mathcal { G } ) ) ^ { 2 } } - a } } \\ { { \mathrm { } } } \\ { { 2 ( a + b ) \geq \displaystyle \frac { M ^ { 2 } \log ( 1 / \delta ) } { ( \epsilon _ { p } - \bigtriangleup - 2 L \mathfrak { N } _ { r } ( \mathcal { G } ) ) ^ { 2 } } } } \\ { { \epsilon _ { p } - \bigtriangleup - 2 L \mathfrak { N } _ { r } ( \mathcal { G } ) \geq M \sqrt { \displaystyle \frac { \log ( 1 / \delta ) } { 2 ( a + b ) } } } } \\ { { \epsilon _ { p } \geq M \sqrt { \displaystyle \frac { \log ( 1 / \delta ) } { 2 ( a + b ) } } + \bigtriangleup + 2 L \mathfrak { N } _ { r } ( \mathcal { G } ) } } \end{array}
|
| 444 |
+
$$
|
| 445 |
+
|
| 446 |
+
Substitute into equation 11, we have:
|
| 447 |
+
|
| 448 |
+
$$
|
| 449 |
+
\begin{array} { r } { \mathcal { R } ( f , g ^ { * } , p ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) \leq \epsilon _ { p } } \end{array}
|
| 450 |
+
$$
|
| 451 |
+
|
| 452 |
+
Recall the definition of $\epsilon ^ { * }$ , which is the minimum value of all possible $\epsilon$ satisfying
|
| 453 |
+
|
| 454 |
+
$$
|
| 455 |
+
\mathcal { R } ( f , g ^ { * } , p ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) \leq \epsilon
|
| 456 |
+
$$
|
| 457 |
+
|
| 458 |
+
we know that $\epsilon ^ { * } \leq \epsilon _ { p }$ . Let $c = 2 ( \epsilon _ { p } - \triangle - 2 L \Re _ { r } ( \mathcal { G } ) ) ^ { 2 }$ , we can conclude the theorem.
|
| 459 |
+
|
| 460 |
+
Proof [Proof of Theorem 3] Similar to previous theorems, we write
|
| 461 |
+
|
| 462 |
+
$$
|
| 463 |
+
\begin{array} { l } { { \displaystyle \mathcal R ( f , g ^ { * } , p ) - \mathcal R _ { e m p } \big ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } \big ) } } \\ { { \displaystyle = \mathcal R \big ( f , g ^ { * } , \frac { a p + b q } { a + b } \big ) - \mathcal R _ { e m p } \big ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } \big ) + \int l ( f ( \mathbf { x } ) , g ^ { * } ( \mathbf { x } ) \big ) \big ( p ( \mathbf { x } ) - \frac { a p ( \mathbf { x } ) + b q ( \mathbf { x } ) } { a + b } \big ) \int l ( f ( \mathbf { x } ) - p ) \big ( f ( \mathbf { x } ) - p ) \big ( f ( \mathbf { x } ) - p \big ) ( f ( \mathbf { x } ) - q ( \mathbf { x } ) \big ) } } \\ { { \displaystyle = \mathcal R \big ( f , g ^ { * } , \frac { a p + b q } { a + b } \big ) - \mathcal R _ { e m p } \big ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \big \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } \big ) + \frac { b } { a + b } \int l ( f ( \mathbf { x } ) , g ^ { * } ( \mathbf { x } ) ) \big ( p ( \mathbf { x } ) - q ( \mathbf { x } ) \big ) d \mathbf { x } \ } } \\ { { \displaystyle \leq \mathcal R \big ( f , g ^ { * } , \frac { a p + b q } { a + b } \big ) - \mathcal R _ { e m p } \big ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \big \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } \big ) + \bigtriangleup } } \end{array}
|
| 464 |
+
$$
|
| 465 |
+
|
| 466 |
+
where $\begin{array} { r l r } { \triangle } & { { } = } & { \int l ( f ( \mathbf { x } ) , g ^ { * } ( \mathbf { x } ) ) ( p ( \mathbf { x } ) - \mathbf { \nabla } q ( \mathbf { x } ) ) d \mathbf { x } } \end{array}$ . For notation consistency, we write $\begin{array} { l } { \displaystyle \mathcal { R } ( f , g ^ { * } , \frac { a p + b q } { a + b } ) = \int l ( f ( \mathbf { x } ) - g ( \mathbf { x } ) ) \frac { a p ( \mathbf { x } ) + b q ( \mathbf { x } ) } { a + b } d \mathbf { x } } \end{array}$ ) d x. However, {xi}ai=1 ∪ {x0i}bi=1 are not drawn from the same distribution (which is r(x) = ap(x) + bq(x) i n previous cases).
|
| 467 |
+
|
| 468 |
+
Let $\gamma = \lfloor \frac { a + b } { a } \rfloor$ , we split $\{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b }$ into $\gamma$ parts that don’t overlap with each other. The first part is $\{ { \bf x } _ { i } \} _ { i = 1 } ^ { a }$ , all the other parts has at least $a$ elements from $\{ { \bf x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b }$ .
|
| 469 |
+
|
| 470 |
+
Let
|
| 471 |
+
|
| 472 |
+
$$
|
| 473 |
+
\lambda = \sqrt { \frac { 6 4 } { b } \log ( 4 / \delta ) + \frac { 6 4 } { a } \log C ( \mathcal { G } ) }
|
| 474 |
+
$$
|
| 475 |
+
|
| 476 |
+
where $C ( \mathcal G )$ is space capacity defined in Definition 4 in Baxter (2000), which depends on $\epsilon ^ { * }$ and $\mathcal { G }$ .
|
| 477 |
+
|
| 478 |
+
By Theorem 4 in Baxter (2000),
|
| 479 |
+
|
| 480 |
+
$$
|
| 481 |
+
\left[ \mathcal { R } ( f , g ^ { * } , \frac { a p + b q } { a + b } ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) \right] ^ { 2 } \leq \operatorname* { m a x } \{ \frac { 6 4 } { \gamma a } \log ( \frac { 4 C ( \mathcal { G } ^ { \gamma } ) } { \delta } ) , \frac { 1 6 } { a } \}
|
| 482 |
+
$$
|
| 483 |
+
|
| 484 |
+
By Theorem 5 in Baxter (2000),
|
| 485 |
+
|
| 486 |
+
$$
|
| 487 |
+
\frac { 6 4 } { \gamma a } \log ( \frac { 4 C ( \mathcal { G } ^ { \gamma } ) } { \delta } ) = \frac { 6 4 } { \gamma a } ( \log ( \frac { 4 } { \delta } ) + \log ( C ( \mathcal { G } ^ { \gamma } ) ) ) \leq \frac { 6 4 } { \gamma a } ( \log ( \frac { 4 } { \delta } ) + \gamma \log ( C ( \mathcal { G } ) ) ) \leq \lambda ^ { 2 }
|
| 488 |
+
$$
|
| 489 |
+
|
| 490 |
+
The last inequality comes from $b \leq \gamma a$ , which is because of $\gamma = \lfloor \frac { a + b } { a } \rfloor$ . Then we have
|
| 491 |
+
|
| 492 |
+
$$
|
| 493 |
+
\mathcal { R } ( f , g ^ { * } , \frac { a p + b q } { a + b } ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) \bigg ] ^ { 2 } \leq \operatorname* { m a x } \{ \frac { 6 4 } { \gamma a } \log ( \frac { 4 C ( Q ^ { \gamma } ) } { \delta } ) , \frac { 1 6 } { a } \} \leq \operatorname* { m a x } \{ \lambda ^ { \gamma } \} ^ { \delta } .
|
| 494 |
+
$$
|
| 495 |
+
|
| 496 |
+
If
|
| 497 |
+
|
| 498 |
+
$$
|
| 499 |
+
b \ge \frac { 6 4 \log ( 4 / \delta ) } { ( \epsilon _ { p } - \triangle ) ^ { 2 } - 6 4 \log C ( \mathcal { G } ) / a }
|
| 500 |
+
$$
|
| 501 |
+
|
| 502 |
+
Then
|
| 503 |
+
|
| 504 |
+
$$
|
| 505 |
+
\lambda ^ { 2 } \leq \frac { 6 4 } { a } \log C ( \mathcal { G } ) + 6 4 \log ( \frac { 4 } { \delta } ) \frac { ( \epsilon _ { p } - \bigtriangleup ) ^ { 2 } - 6 4 \log C ( \mathcal { G } ) / a } { 6 4 \log ( 4 / \delta ) }
|
| 506 |
+
$$
|
| 507 |
+
|
| 508 |
+
$$
|
| 509 |
+
\lambda ^ { 2 } \le ( \epsilon _ { p } - \triangle ) ^ { 2 }
|
| 510 |
+
$$
|
| 511 |
+
|
| 512 |
+
If
|
| 513 |
+
|
| 514 |
+
$$
|
| 515 |
+
\frac { 1 6 } { ( \epsilon _ { p } - \triangle ) ^ { 2 } } \leq a
|
| 516 |
+
$$
|
| 517 |
+
|
| 518 |
+
then
|
| 519 |
+
|
| 520 |
+
$$
|
| 521 |
+
\frac { 1 6 } { a } \leq ( \epsilon _ { p } - \triangle ) ^ { 2 }
|
| 522 |
+
$$
|
| 523 |
+
|
| 524 |
+
Combine equation 13 and equation 14, we have
|
| 525 |
+
|
| 526 |
+
$$
|
| 527 |
+
\mathcal { R } ( f , g ^ { * } , \frac { a p + b q } { a + b } ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) \leq \epsilon _ { p } - \bigtriangleup
|
| 528 |
+
$$
|
| 529 |
+
|
| 530 |
+
Substitute into equation 12, we have:
|
| 531 |
+
|
| 532 |
+
$$
|
| 533 |
+
\begin{array} { r } { \mathcal { R } ( f , g ^ { * } , p ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) \leq \epsilon _ { p } } \end{array}
|
| 534 |
+
$$
|
| 535 |
+
|
| 536 |
+
Recall the definition of $\epsilon ^ { * }$ , which is the minimum value of all possible $\epsilon$ satisfying
|
| 537 |
+
|
| 538 |
+
$$
|
| 539 |
+
\mathcal { R } ( f , g ^ { * } , p ) - \mathcal { R } _ { e m p } ( f , g ^ { * } , \{ \mathbf { x } _ { i } \} _ { i = 1 } ^ { a } \cup \{ \mathbf { x } _ { i } ^ { \prime } \} _ { i = 1 } ^ { b } ) \leq \epsilon
|
| 540 |
+
$$
|
| 541 |
+
|
| 542 |
+
we know that $\epsilon ^ { * } \leq \epsilon _ { p }$
|
| 543 |
+
|
| 544 |
+
# B VARIANCE ANALYSIS
|
| 545 |
+
|
| 546 |
+
For the purpose of getting a sense of variance, we run experiments with additional random seeds on MRPC and RTE, which are relatively smaller datasets, and MNLI and QNLI, which are relatively larger datasets. Mean and standard deviation on the dev set of these GLUE datasets are reported in Table 5. We observe the variance of the same model’s performance to be small, especially on the relatively larger datasets.
|
| 547 |
+
|
| 548 |
+
<table><tr><td>Model</td><td>MRPC</td><td>MNLI-m</td><td>QNLI</td><td>RTE</td></tr><tr><td>BERT6-TMKD+BT BERT6-SM+TMKD+BT</td><td>89.79±0.27/85.04±0.48 89.64±0.38/84.43±0.36</td><td>82.05±0.11 82.41±0.12</td><td>88.42±0.06</td><td>69.37±0.50</td></tr><tr><td>BERT3-TMKD+BT</td><td>84.79±0.33/75.82±0.48</td><td></td><td>88.76±0.15</td><td>68.02±0.11</td></tr><tr><td></td><td></td><td>77.16±0.03</td><td>84.60±0.07</td><td>62.47±0.36</td></tr><tr><td>BERT3-SM+TMKD+BT</td><td>84.53±0.39/75.85±0.60</td><td>77.42±0.11</td><td>84.88±0.06</td><td>60.83±0.18</td></tr></table>
|
| 549 |
+
|
| 550 |
+
Table 5: Mean and variance reported for $\mathrm { B E R T _ { 6 } }$ -TMKD $^ +$ BT,BERT $^ 6$ -SM+TMKD $^ +$ BT,BERT3- TMKD+BT and $\mathrm { B E R T _ { 3 } }$ -SM $+$ TMKD+BT.
|
parse/train/UFGEelJkLu5/UFGEelJkLu5_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/hvdKKV2yt7T/hvdKKV2yt7T_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/hvdKKV2yt7T/hvdKKV2yt7T_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|