Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/BkSDMA36Z/BkSDMA36Z.md +263 -0
- parse/train/BkSDMA36Z/BkSDMA36Z_content_list.json +1428 -0
- parse/train/BkSDMA36Z/BkSDMA36Z_middle.json +0 -0
- parse/train/BkSDMA36Z/BkSDMA36Z_model.json +0 -0
- parse/train/ByeSdsC9Km/ByeSdsC9Km.md +302 -0
- parse/train/ByeSdsC9Km/ByeSdsC9Km_content_list.json +1676 -0
- parse/train/ByeSdsC9Km/ByeSdsC9Km_middle.json +0 -0
- parse/train/ByeSdsC9Km/ByeSdsC9Km_model.json +0 -0
- parse/train/HJg_ECEKDr/HJg_ECEKDr.md +306 -0
- parse/train/HJg_ECEKDr/HJg_ECEKDr_content_list.json +0 -0
- parse/train/HJg_ECEKDr/HJg_ECEKDr_middle.json +0 -0
- parse/train/HJg_ECEKDr/HJg_ECEKDr_model.json +0 -0
- parse/train/pULTvw9X313/pULTvw9X313.md +347 -0
- parse/train/pULTvw9X313/pULTvw9X313_content_list.json +1917 -0
- parse/train/pULTvw9X313/pULTvw9X313_middle.json +0 -0
- parse/train/pULTvw9X313/pULTvw9X313_model.json +0 -0
- parse/train/r154_g-Rb/r154_g-Rb.md +255 -0
- parse/train/r154_g-Rb/r154_g-Rb_content_list.json +1316 -0
- parse/train/r154_g-Rb/r154_g-Rb_middle.json +0 -0
- parse/train/r154_g-Rb/r154_g-Rb_model.json +0 -0
parse/train/BkSDMA36Z/BkSDMA36Z.md
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A NEW METHOD OF REGION EMBEDDING FOR TEXT CLASSIFICATION
|
| 2 |
+
|
| 3 |
+
Chao $\mathbf { Q } \mathbf { i } \mathbf { a } \mathbf { o } ^ { * \ddagger }$ , Bo Huang†‡, Guocheng $\mathbf { N i u } ^ { \ddag }$ , Daren $\mathbf { L i } ^ { \dagger }$ , Daxiang $\mathbf { D o n g ^ { \ddagger \ S } }$ , Wei $\mathbf { H e } ^ { \ddagger }$ , Dianhai $\mathbf { Y } \mathbf { u } ^ { \ddag \ S }$ , Hua $\mathbf { W _ { u } } ^ { \ddagger \ S }$
|
| 4 |
+
|
| 5 |
+
‡ Baidu Inc., Beijing, China
|
| 6 |
+
§ National Engineering Laboratory of Deep Learning Technology and Application, China
|
| 7 |
+
{qiaochao, huangbo02, niuguocheng, lidaren,
|
| 8 |
+
daxiangdong, hewei06, yudianhai, wu hua}@baidu.com
|
| 9 |
+
|
| 10 |
+
# ABSTRACT
|
| 11 |
+
|
| 12 |
+
To represent a text as a bag of properly identified “phrases” and use the representation for processing the text is proved to be useful. The key question here is how to identify the phrases and represent them. The traditional method of utilizing n-grams can be regarded as an approximation of the approach. Such a method can suffer from data sparsity, however, particularly when the length of n-gram is large. In this paper, we propose a new method of learning and utilizing task-specific distributed representations of n-grams, referred to as “region embeddings”. Without loss of generality we address text classification. We specifically propose two models for region embeddings. In our models, the representation of a word has two parts, the embedding of the word itself, and a weighting matrix to interact with the local context, referred to as local context unit. The region embeddings are learned and used in the classification task, as parameters of the neural network classifier. Experimental results show that our proposed method outperforms existing methods in text classification on several benchmark datasets. The results also indicate that our method can indeed capture the salient phrasal expressions in the texts.
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
Text classification is an important task for many applications, including topic categorization, search query classification, and sentiment analysis, which has been studied for years. A simple yet effective approach for text classification is to represent documents as bag-of-words, and train a classifier on the basis of the representations using methods such as logistic regression, support vector machines (Joachims, 1998; Fan et al., 2008), and naive Bayes (McCallum et al., 1998). Although bag-of-words methods are effective and efficient, they also have limitations. The representations do not take into account the word order information which has been proved to be useful at least in some applications such as sentiment analysis (Pang et al., 2002).
|
| 17 |
+
|
| 18 |
+
To make effective use of word order information for text classification, people have traditionally exploited n-grams, i.e., short sequences of words in the texts. Previous work shows that the use of n-grams is effective in the text classification task (Pang et al., 2002; Wang & Manning, 2012; Joulin et al., 2016). Although n-grams are very useful, they have certain limitations. 1) The number of n-grams increases exponentially when the length of n-gram $n$ increases. This makes it difficult to exploit large n-grams (e.g., $n > 4$ ). 2) Since the number of parameters in an n-gram model is very large, the estimation of the parameters usually suffers from the data sparsity problem.
|
| 19 |
+
|
| 20 |
+
Recently, the method of FastText has been proposed (Joulin et al., 2016), which can learn and use distributed embeddings of n-grams. More specifically, the embedding of an n-gram is defined as a low-dimensional vector representation of the n-gram. Note that the n-grams in a vocabulary can also be represented as one-hot vectors Wang & Manning (2012).
|
| 21 |
+
|
| 22 |
+
In this paper, we propose to learn embeddings of n-grams for a specific task (e.g., classification), which are more compact and thus easy to obtain. We call the embeddings region embeddings, following the work in Johnson & Zhang (2015). Our method significantly differs from their method, however, in the sense that the region embeddings in our method are task-dependent and acquired from supervised learning, while those in their method are task-independent and acquired from unsupervised learning. Our method is also largely different from FastText, as it learns richer models for region embeddings.
|
| 23 |
+
|
| 24 |
+
Intuitively, the meaning of a word is defined by the meaning of itself as well as the meanings of words in the surrounding context. The extended embedding of a word in an n-gram thus consists of two parts, the embedding of the word itself and a matrix to interact with the local context, named “local context unit”. The embedding of a word is a column vector, and the local context unit of a word is a matrix in which the columns are used to interact with words in the local context. The region embedding of an n-gram is then constructed by the extended embeddings of all words in the n-gram. In this paper, we introduce two models for region embeddings.
|
| 25 |
+
|
| 26 |
+
For the text classification task, a document is viewed as a bag of region embeddings, and the bag of region embeddings is fed into a classifier. The parameters of the local context units and word embeddings are trained together with the parameters of the classifier which is a fully connected neural network. Our models achieve better results than the state-of-the-art methods on several benchmark datasets of text classification. Experiments show that our proposed models can really capture important information for the task.
|
| 27 |
+
|
| 28 |
+
# 2 RELATED WORK
|
| 29 |
+
|
| 30 |
+
Text classification has been studied for years, traditional approaches focused on feature engineering and using different types of machine learning algorithms. For feature engineering, bag-of-words features are efficient and popular. In addition, the hand-crafted n-grams or phrases are added to make use of word order in text data, which has been shown effective on Wang & Manning (2012). For machine learning algorithms, linear classifiers are widely used, such as naive bayes (McCallum et al., 1998), logistic regression and support vector machines (Joachims, 1998; Fan et al., 2008). However, these models commonly suffer the data sparsity problem.
|
| 31 |
+
|
| 32 |
+
Recently, several neural models have been proposed, the pre-trained word embeddings of word2vec (Mikolov et al., 2013) have been widely used as inputs to deep neural models such as recursive tensor networks (Socher et al., 2013). On the other hand, some simple and efficient models which can directly learn task specific word embeddings or fine-tune on pre-trained word embeddings have been proposed recently, such as Deep Averaging Networks (Iyyer et al., 2015), FastText (Joulin et al., 2016). Several neural models have been proposed to make use of word order information, most models are based on convolutional neural network (CNN) (Kim, 2014; Johnson & Zhang, 2014; Zhang et al., 2015) and recurrent neural network (RNN) (Tang et al., 2015; Lai et al., 2015; Yogatama et al., 2017). More recently, the Transformer (Vaswani et al., 2017), a sequence transduction model based solely on attention mechanisms has been proposed. Although Transformer was not designed for the text classification task, it has similarities with our work. In the rest of this section, we will briefly introduce FastText, CNN and Transformer, which are the most relevant to our work.
|
| 33 |
+
|
| 34 |
+
FastText FastText averages the word embeddings to represent a document, and uses a full connected linear layer as the classifier. The word embeddings are trained for each task specifically. To utilize the local word order information of small regions, FastText uses hand-crafted n-grams as features in addition to single words. With the simple architecture, FastText has been proved to be effective and highly efficient on text classification tasks. Similarly, our models use bag of region embeddings to represent a document, and use the same linear classifier. Differently, our models directly learn the semantics of regions based on word sequence, hand-crafted features are not required.
|
| 35 |
+
|
| 36 |
+
CNN CNN is a feed-forward network with convolutional layers interleaved with pooling layers, which are originally used for image processing tasks. For natural language processing, words are commonly converted to vectors. CNN directly applies convolutional layer on word vectors, both word vectors and the shared (word independent) kernels are the parameters of CNN, which can be learned to capture the predictive structures of small regions. The essence of CNN is to learn embeddings for small fixed size regions, each kernel of the convolutional layer tries to capture a specific semantic or structural feature. Our purpose is similar with CNN, which tries to learn task specific representations of regions. Unlike CNN, we apply local context units on word vectors, which are word dependent, moreover, the convolution kernels extract the predictive features by applying convolution operation on word sequences, while we use local context units as distinct linear projection functions on context words in corresponding relative positions to get region representations.
|
| 37 |
+
|
| 38 |
+
Transformer Vaswani et al. (2017) proposed a sequence transduction model, the Transformer, based solely on attention mechanisms. Both Transformer and our method can capture word order information without any CNN or RNN component, and the scalar form of context units (introduced in our ablation experiments) can be regarded as a kind of local attention. There are also some differences here: the motivation we proposed local context units is to address word specific influence between word and its context, while Vaswani et al. (2017) has proposed a parallelable sequence transduction framework based entirely on attention; To utilize position information, in our method, words are interacted with context words at different relative positions by corresponding columns in their context units, while Transformer use fixed sin and cos function based position encoding.
|
| 39 |
+
|
| 40 |
+
# 3 METHOD
|
| 41 |
+
|
| 42 |
+
In this paper, we focus on learning the representations of small text regions which preserve the local internal structural information for text classification. The regions in a document can be considered as fixed length contiguous subsequences of the document. More specifically, with $w _ { i }$ standing for the $i$ -th(starting from 0) word of the document, we use region $( i , c )$ to denote the $2 \times c + 1$ length region with middle word $w _ { i }$ . For instance, given a sentence such as The food is not very good in this hotel, region $( 3 , 2 )$ means the subsequence food is not very good.
|
| 43 |
+
|
| 44 |
+
In this work, we use the interactions between words and their local context based on word embeddings as well as the local context units to produce region embeddings. In the rest of this section, we will introduce the local context units firstly, and two architectures to generate the region embeddings through local context units will be introduced, finally we will introduce how we use the region embeddings on text classification.
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 1: Architectures of region embedding using local context units in different perspectives
|
| 48 |
+
|
| 49 |
+
# 3.1 LOCAL CONTEXT UNIT
|
| 50 |
+
|
| 51 |
+
In natural language processing, words are commonly converted to low dimensional vectors(word embeddings) as the inputs to neural networks. More formally, the embedding ${ \bf e } _ { w }$ of word $w$ is represented by a column in a matrix $\mathbf { E } \in \mathcal { R } ^ { h \times v }$ with a look up layer, where $v$ is the size of the vocabulary, $h$ is the embedding size.
|
| 52 |
+
|
| 53 |
+
To utilize the information of words’ relative positions and local context, we learn a local context unit for each word in addition to the word embedding, and both the unit and word embedding are learned as model parameters. Formally, we define the local context unit ${ \bf K } _ { w _ { i } } \in \mathcal { R } ^ { h \times ( 2 \times c + \bar { 1 } ) }$ of $w _ { i }$ as a matrix which can be looked up in the tensor $\mathbf { U } \in \mathcal { R } ^ { h \times ( 2 \times c + 1 ) \times v }$ by $w _ { i }$ ’s index in the vocabulary.
|
| 54 |
+
|
| 55 |
+
Each column in ${ \bf K } _ { w _ { i } }$ can be used to interact with the context word in corresponding relative position of $w _ { i }$ . In fact, the columns of a unit matrix can be regarded as distinctive linear projection functions on the embeddings of words in the local context. The parameters of these projection functions(i.e., columns of each unit matrix) can be learned to capture the semantic and syntactic influence of the word to its context. Word embeddings are used as inputs to the projection functions, and we call the outputs projected word embeddings.
|
| 56 |
+
|
| 57 |
+
Formally, let $\mathbf { p } _ { w _ { i + t } } ^ { i }$ be the projected word embedding of $w _ { i + t }$ in $i$ -th word’s view, and ${ \bf K } _ { w _ { i } , t }$ be the $( c + t )$ -th column in ${ \bf K } _ { w _ { i } }$ $\scriptstyle - c < = t < = c )$ , given the unit ${ \bf K } _ { w _ { i } }$ of $w _ { i }$ and the embedding $\mathbf { e } _ { w _ { i + t } }$ of $w _ { i + t }$ , we use an element-wise multiplication(denoted by $\odot$ ) to compute $\mathbf { p } _ { w _ { i + t } } ^ { i }$ :
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\mathbf { p } _ { w _ { i + t } } ^ { i } = \mathbf { K } _ { w _ { i } , t } \odot \mathbf { e } _ { w _ { i + t } }
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
For a context word in a particular relative position of $w _ { i }$ , there is a corresponding linear projection function(a particular column of ${ \bf K } _ { w _ { i } }$ ), thus our proposed local context units can utilize the local ordered word information in a novel way. Note that the middle column ${ \bf K } _ { w _ { i } , 0 }$ of ${ \bf K } _ { w _ { i } }$ can be regarded as a linear projection function on ${ \bf e } _ { w _ { i } }$ itself, which transforms ${ \bf e } _ { w _ { i } }$ to the same space as other projected embeddings.
|
| 64 |
+
|
| 65 |
+
# 3.2 WORD-CONTEXT REGION EMBEDDING
|
| 66 |
+
|
| 67 |
+
We proposed two architectures to perform the region embedding from different perspectives. We consider the semantics of a given region is derived from the mutual influences of the words in this region. In this paper, the regions can be regarded as snapshots of a window sliding on a document, whose middle words are contiguous, hence we can compose the semantics of a give region only by the middle word’s influences on the context words, or the context words’ influences on the middle word.
|
| 68 |
+
|
| 69 |
+
In the first proposed architecture, we focus on addressing the middle word’s influences on the context words. For example, in the sentence The food is not very good in this hotel, the occurrence of word not might bring a semantic reversal to the local region.
|
| 70 |
+
|
| 71 |
+
We use the local context unit of the middle word and the original word embeddings in a region to perform the projected embeddings in a word-to-context view, where the projected embeddings can reflect the middle word’s influences on the context words. Once the projected embeddings are obtained, a max pooling operation is applied to extract the most predictive features in the region. The output of the max pooling operation can be regarded as a task related region embedding in a word-to-context view, i.e. Word-Context region embedding.
|
| 72 |
+
|
| 73 |
+
Formally, we use the context unit ${ \bf K } _ { w _ { i } }$ of middle word $w _ { i }$ and embeddings of all words in a region region $( i , c )$ to compute the projected embedding matrix by equation (1), then the Word-Context region embedding $\mathbf { r } _ { ( i , c ) }$ can be obtained through a max pooling operation on the projected embedding matrix:
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\mathbf { r } _ { ( i , c ) } = m a x \big ( \big [ \mathbf { p } _ { w _ { i - c } } ^ { i } \quad \mathbf { p } _ { w _ { i - c + 1 } } ^ { i } \quad . . . \quad \mathbf { p } _ { w _ { i + c - 1 } } ^ { i } \quad \mathbf { p } _ { w _ { i + c } } ^ { i } \big ] \big )
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
where $m a x$ standing for the max pooling operation on the column dimension of the input matrix. Finally, we get $\mathbf { r } _ { ( i , c ) }$ as a vector representation of $r e g i o n ( i , c )$ with dimension $h$ . Figure 1a shows the details of the first model architecture.
|
| 80 |
+
|
| 81 |
+
For instance, in the sentence The food is not very good in this hotel, the projected word embeddings in the region $( 3 , 2 )$ are composed by the element-wise multiplications between columns in the local
|
| 82 |
+
|
| 83 |
+
context unit of not and word embeddings of food, is, not, very and good. The embedding $\mathbf { r } _ { 3 , 2 }$ of region $( 3 , 2 )$ can be obtained by max pooling on the projected word embedding matrix.
|
| 84 |
+
|
| 85 |
+
# 3.3 CONTEXT-WORD REGION EMBEDDING
|
| 86 |
+
|
| 87 |
+
The second architecture goes as a different view, which addresses the local context words’ influences on the middle word in the region, and we call this Context-Word region embedding. Similarly, for a $r e g i o n ( i , c )$ , the projected embeddings are computed by the original word embedding of the middle word and the context units of all words in the region, then the Context-Word region embedding can be obtained by a max pooling operation through the column dimension of the projected embedding matrix:
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\mathbf { r } _ { ( i , c ) } = m a x \big ( \big [ \mathbf { p } _ { w _ { i } } ^ { i - c } \quad \mathbf { p } _ { w _ { i } } ^ { i - c + 1 } \quad . . . \quad \mathbf { p } _ { w _ { i } } ^ { i + c - 1 } \quad \mathbf { p } _ { w _ { i } } ^ { i + c } \big ] \big )
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
Figure 1b shows the details of the second model architecture. our two models take different ways to produce the projected word embeddings, the Word-Context model uses context units of middle words and word embeddings of context words, while the Context-Word model uses context units of context words and word embeddings of the middle word.
|
| 94 |
+
|
| 95 |
+
# 3.4 REGION EMBEDDING FOR TEXT CLASSIFICATION
|
| 96 |
+
|
| 97 |
+
For text classification, documents are usually variable-sized, which need to be represented as fixed size vectors. In order to show the effectiveness of our proposed region embedding models, we just sum up the embeddings of all regions to represent a document, and feed it to an upper FullConnected layer for text classification task.
|
| 98 |
+
|
| 99 |
+
Formally, the model can be represented as following:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\mathrm { f } ( \mathbf { x } ; \mathbf { E } , \mathbf { U } , \mathbf { W } , \mathbf { b } ) = \mathbf { g } ( \mathbf { W } \sigma ( \sum _ { i = 0 } ^ { n } \mathbf { r } _ { ( i , c ) } ) + \mathbf { b } )
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
where $\mathbf { x }$ denotes the input text sequence, W and b denote the weight matrix and bias of the fully connected layer respectively, $\mathbf { g }$ denotes the softmax function of the output layer, $\sigma$ denotes the softsign function and $n$ denotes the number of regions in a document, $\mathbf { r }$ is the region embedding which can be computed by the equation (2) or (3). E, U, W and b can be updated in the training period.
|
| 106 |
+
|
| 107 |
+
# 4 EXPERIMENTS
|
| 108 |
+
|
| 109 |
+
We report experiments with proposed models in comparison with previous models.
|
| 110 |
+
|
| 111 |
+
# 4.1 DATASETS
|
| 112 |
+
|
| 113 |
+
We use publicly available datasets from Zhang et al. (2015) to evaluate our models. There are in total 8 text classification datasets, corresponding to sentiment analysis, news classification, questionanswer, ontology extraction tasks, respectively. Table 1 shows the descriptive statistics of datasets used in our experiments. To guarantee comparable indications, same evaluation protocol of Zhang et al. (2015) is employed.
|
| 114 |
+
|
| 115 |
+
# 4.2 BASELINES
|
| 116 |
+
|
| 117 |
+
Our models are compared with several widely used supervised text classification models. We report the n-grams and TFIDF baselines from Zhang et al. (2015), as well as the character level convolutional model (char-CNN) of Zhang & LeCun (2015), the character based convolution recurrent network (char-CRNN) of Xiao & Cho (2016), the very deep convolutional network (VDCNN) of Conneau et al. (2016), the Discriminative LSTM (D-LSTM) of Yogatama et al. (2017) and the bigram FastText (bigram-FastText) of Joulin et al. (2016).
|
| 118 |
+
|
| 119 |
+
Table 1: Statistics of Datasets
|
| 120 |
+
|
| 121 |
+
<table><tr><td>Dataset</td><td>Classes</td><td>Average Lengths</td><td>Train Samples</td><td>Test Samples</td><td>Tasks</td></tr><tr><td>Yelp Review Polarity Yelp Review Full</td><td>2</td><td>156</td><td>560,000</td><td>38,000</td><td rowspan="3">Sentiment Analysis</td></tr><tr><td></td><td>5</td><td>158</td><td>650,000</td><td>50,000</td></tr><tr><td>Amazon Review Polarity Amazon Review Full</td><td>2</td><td>91</td><td>3,000,000</td><td>650,000</td></tr><tr><td>AG's News</td><td>5</td><td>93 44</td><td>3,600,000 120.000</td><td>400,000 7,600</td><td>News</td></tr><tr><td>Sogou News</td><td>4 5</td><td>579</td><td>450,000</td><td>60,000</td><td>Classification</td></tr><tr><td>Yahoo! Answers</td><td>10</td><td>112</td><td>1,400,000</td><td>60,000</td><td>Question Answer</td></tr><tr><td>DBPedia</td><td>14</td><td>55</td><td>560,000</td><td>70,000</td><td>Ontology Extraction</td></tr></table>
|
| 122 |
+
|
| 123 |
+
# 4.3 IMPLEMENTATION DETAILS
|
| 124 |
+
|
| 125 |
+
For data preprocessing, all the texts of datasets are tokenized by Stanford tokenizer and all words are converted to lower case. Words that appear only in one document are treated as out-of-vocabulary (OOV) items, and all stop words as well as symbols are kept. Additionally, length of $c$ padding are added to both the head and tail of each document.
|
| 126 |
+
|
| 127 |
+
For our models, optimal hyperparameters are tuned with $10 \%$ of the training set on Yelp Review Full dataset, and identical hyperparameters are applied to all datasets: the dimension of word embedding is 128, the region size is 7 which means the shape of local context unit matrix of each word is $1 2 8 \times 7$ , the initial learning rate is set to $1 \times 1 0 ^ { - 4 }$ , and the batch size is 16. For optimization, the embeddings of words and the units are randomly initialized with Gaussian Distribution. Adam (Kingma & Ba, 2014) is used as the optimizer. We do not use any extra regularization methods, like L2 normalization or dropout. Algorithms are entirely implemented with TensorFlow and trained on NVIDIA Tesla P40 GPUs. The code 1 is publicly available on the Internet.
|
| 128 |
+
|
| 129 |
+
# 4.4 RESULTS
|
| 130 |
+
|
| 131 |
+
Table 2: Test Set Accuracy $[ \% ]$ Compared to other Methods on several Datasets
|
| 132 |
+
|
| 133 |
+
<table><tr><td>Model</td><td>Yelp P.</td><td>Yelp F.</td><td>Amz. P.</td><td>Amz. F.</td><td>AG</td><td>Sogou</td><td>Yah. A.</td><td>DBP</td></tr><tr><td>BoW</td><td>92.2</td><td>58.0</td><td>90.4</td><td>54.6</td><td>88.8</td><td>92.9</td><td>68.9</td><td>96.6</td></tr><tr><td>ngrams</td><td>95.6</td><td>56.3</td><td>92.0</td><td>54.3</td><td>92.0</td><td>97.1</td><td>68.5</td><td>98.6</td></tr><tr><td>ngrams TFIDF</td><td>95.4</td><td>54.8</td><td>91.5</td><td>52.4</td><td>92.4</td><td>97.2</td><td>68.5</td><td>98.7</td></tr><tr><td>char-CNN</td><td>94.7</td><td>62.0</td><td>94.5</td><td>59.6</td><td>87.2</td><td>95.1</td><td>71.2</td><td>98.3</td></tr><tr><td>char-CRNN</td><td>94.5</td><td>61.8</td><td>94.1</td><td>59.2</td><td>91.4</td><td>95.2</td><td>71.7</td><td>98.6</td></tr><tr><td>bigram-FastText</td><td>95.7</td><td>63.9</td><td>94.6</td><td>60.2</td><td>92.5</td><td>96.8</td><td>72.3</td><td>98.6</td></tr><tr><td>VDCNN</td><td>95.7</td><td>64.7</td><td>95.7</td><td>63.0</td><td>91.3</td><td>96.8</td><td>73.4</td><td>98.7</td></tr><tr><td>D-LSTM</td><td>92.6</td><td>59.6</td><td>1</td><td>-</td><td>92.1</td><td>94.9</td><td>73.7</td><td>98.7</td></tr><tr><td>W.C.region.emb</td><td>96.4</td><td>64.9</td><td>95.1</td><td>60.9</td><td>92.8</td><td>97.6</td><td>73.7</td><td>98.9</td></tr><tr><td>C.W.region.emb</td><td>96.2</td><td>64.5</td><td>95.3</td><td>60.8</td><td>92.8</td><td>97.3</td><td>73.4</td><td>98.9</td></tr></table>
|
| 134 |
+
|
| 135 |
+
Table 2 is the summary of the experimental results. We use underscores to represent the best published results, and bold the best records. On six datasets of eight, our models beat or match the state-of-the-art with a performance gain highest to $0 . 7 \%$ . We beat all the previous models on all datasets except VDCNN, while the latter performs almost best on all classification tasks before. As a result, we slightly win VDCNN on six datasets and lost in two of Amazon datasets. Detailed experimental results including best performance epoch and training time for all listed datasets are reported in Appendix A.
|
| 136 |
+
|
| 137 |
+
Furthermore, the upper layer structure of our models only uses a summing up operation, which is more concise and robust than any other deep or complex models. In fact, both of our two proposed models are effective against previous models.
|
| 138 |
+
|
| 139 |
+
# 4.5 EXPLORATORY EXPERIMENTS
|
| 140 |
+
|
| 141 |
+
In this subsection, we are going to do a set of exploratory experiments to study the effect of each component of our model. Typical cases will be analyzed to validate properties of various aspects of our models. Considering the limitation of paper space, we only analyzed the Word-Context region embedding model in our exploratory experiments.
|
| 142 |
+
|
| 143 |
+
# 4.5.1 EFFECT OF REGION SIZE AND EMBEDDING SIZE
|
| 144 |
+
|
| 145 |
+
Our method uses a fixed size of region as contextual information just like CNN. So the selection of region size really matters. A small region may lose some long distance patterns, whereas large regions will bring into more noises. Luckily, our models seem to be fairly insensitive towards kinds of datasets. Actually, we just use identical region size 7 for all datasets and it is able to outperform the best published results ever.
|
| 146 |
+
|
| 147 |
+
Figure 2a describes the performance on Yelp Review Full with different region sizes, and when the size equals to 1, the result is quite close to unigram FastText(accuracy $6 0 . 7 \%$ ), but still gets a $0 . 6 \%$ promotion. Intuitively, the middle word cannot influence other words except itself when the size equals to 1. The performance increases with the growth of region size up to 7.
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
Figure 2: Effect of the hyperparameters (region size and embedding size) on Yelp Review Full dataset. (a) shows the comparison of single fixed region size 7 and multi sizes combination [3,5,7] and (b) shows the effect of different settings of embedding size among four kinds of models, unigram FastText, bigram FastText, CNN and ours. We use region size 7 for CNN and ours.
|
| 151 |
+
|
| 152 |
+
Furthermore, we experiment our models with the combination of multi region sizes. Here we use the approach of sharing context units among each region, where the parameters of local context units of smaller regions are just the slice of the longest one. Region embeddings of different sizes are concatenated for final classification. In figure 2a, the combination of multi region sizes 3,5,7 is slightly better than the best single region size 7. The effectiveness of multi-size combination can be explained by the difference of influence ranges between words. For example, in sentiment analysis, word very only emphasizes the next word while however may lay stress on a wide range of the following words.
|
| 153 |
+
|
| 154 |
+
In addition to the analysis of region sizes, we further study the influence of word embedding dimensions. Figure 2b lists the comparative results on Yelp Review Full with different embedding dimensions. The result shows that our model is more robust to overfitting than FastText and CNN with the word embedding dimension increasing. In fact, the amount of parameters in our models is relatively large. Since we learn a specific unit for each word, under the same word embedding dimension, our parameter size has been expanded by region size times, the parameters number is $v \times h + v \times ( 2 \times c + 1 ) \times h + h \times m + m$ , where $m$ is the number of classes. Specific numbers parameters for different region sizes are listed in Appendix A. Notice that the sizes of parameters are relatively consistent among $I O 2 4$ in FastText, 1024 in CNN and 128 in ours.
|
| 155 |
+
|
| 156 |
+
# 4.5.2 EFFECT OF CONTEXT UNIT
|
| 157 |
+
|
| 158 |
+
In this section, we explore some comparative experiments to show the effectiveness of our proposed word specific context unit. The experiments are employed based on unigram FastText baseline, which has similar upper layer structure with our models. Table 3 illustrates the results.
|
| 159 |
+
|
| 160 |
+
Table 3: Comparative decomposition results on Yelp Review Full dataset. For FastText(Unigram), embedding dimension is 10. For FastText(Win-pool), W.C.region.emb(Scalar) and W.C.region.emb(our model), region size is 7 and embedding dimension is 128
|
| 161 |
+
|
| 162 |
+
<table><tr><td>Decomposition</td><td>Performance(%)</td></tr><tr><td>FastText(Unigram)</td><td>60.73</td></tr><tr><td>FastText(Win-pool)</td><td>61.01(+0.28)</td></tr><tr><td>W.C.region.emb(Scalar)</td><td>63.18(+2.45)</td></tr><tr><td>W.C.region.emb(Our model)</td><td>64.9(+4.17)</td></tr></table>
|
| 163 |
+
|
| 164 |
+
Firstly, we remove the entire context units from our model, which means it is just a variant version of unigram FastText, we call it FastText(Win-pool). The difference is that FastText sums up the word embeddings directly while FastText(Win-pool) sums up the window pooled embeddings in a stride of 1. It yields a slightly accuracy gain of $0 . 2 8 \%$ than unigram FastText.
|
| 165 |
+
|
| 166 |
+
Secondly, we apply a simplified scalar version of context units to FastText(Win-pool). Distinguishable, the context unit of each word has the shape with $1 \times ( 2 \times c + 1 )$ , hence it can be regarded as a broadcasting operation on corresponding word embeddings of its local context. We name this method W.C.region.emb(Scalar). Compared to the non-scalar method, it yields a huge parameter size reduction, but it already yields a significant gain of $2 . 4 5 \%$ .
|
| 167 |
+
|
| 168 |
+
Furthermore, W.C.region.emb(our model) is the variant version of W.C.region.emb(Scalar) where each column of scalar context unit is expanded to a dense vector. Each word’s context unit has a shape with $h \times ( 2 \times c { + } 1 )$ . Adding the low dimensional dense context unit improves the performance by $4 . 1 7 \%$ . We can sense much from the procedure of decomposition, with the help of context unit, even a simpler scalar version promotes a lot.
|
| 169 |
+
|
| 170 |
+
To have a better understanding of what context unit actually capture, heat maps are plotted for chosen word samples. Representative adversarial conjunctions like however, but, modifiers like very, good, bad and nouns like food, morning are listed in Figure 3.
|
| 171 |
+
|
| 172 |
+
For each row of the figure, the intensity of the surrounding color box reflects the emphasis degree in the view of the middle word. Qualitative but not fully rigorous, a normalized L2-norm of each column in context unit is used to render the shade. Region size 7 is adopted default, annotation $l _ { i } ( \mathrm { i } \le 3 )$ is denoted as left columns of the specific context unit, while $r _ { i } ( \mathrm { i } \leq 3 )$ denoted as the right part.
|
| 173 |
+
|
| 174 |
+
What the figure reflects are consistent with intuitive priors of human beings. In the perspective of however, right contexts play the key role for classification polarity because of the emotional reversal, the color is indeed deeper in $r _ { i }$ than $l _ { i }$ , so does but. For word very, $r _ { 1 }$ is more prominent than the rest of all, which captures some modified patterns like very happy or very sad. For word good, tendencies will be completely different for patterns like not good, very good and not that good, which are intensive negative, intensive positive and slightly hesitated, separately, the position of $l _ { 1 }$ will be strengthened as a result, so does word bad. There are significant differences between two nouns food and morning. The heat map of word food implies patterns like delicious food or food was mediocre, while the word morning has fewer valuable patterns for classification.
|
| 175 |
+
|
| 176 |
+
Actually, from the motivation of word specified context units, we would like to believe this feature helps capture syntactic and semantic influences of words on surrounding words at relative positions.
|
| 177 |
+
|
| 178 |
+
# 4.5.3 VISUALIZATION
|
| 179 |
+
|
| 180 |
+
In this subsection, we will try to visualize the contribution of each word and selected phrase to classification. Detailed visualization techniques have been introduced in Li et al. (2015). Here we generalize it to the color rendering of multi-category version. Notice that for our model, not the original embedding acts here, but the accumulation of the projected embedding of each word on its surrounding words.
|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
Figure 3: Heat maps of chosen words trained on Yelp Review Polarity, which is a binary sentiment analysis dataset. Each row represent the context unit of the middle word. Region size is 7 and embedding size is 128.
|
| 184 |
+
|
| 185 |
+
Table 4: Visualization of chosen samples on Yelp Review Polarity dataset. Green denotes positive contribution while red denotes negative. Two methods are compared without context unit(No C-unit) and with context unit(With C-unit).
|
| 186 |
+
|
| 187 |
+
<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=8>Sentence Samples</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3>Phrase</td></tr><tr><td rowspan=1 colspan=1>No C-unit</td><td rowspan=1 colspan=2>getyour</td><td rowspan=1 colspan=2>wallet</td><td rowspan=1 colspan=1>ready</td><td rowspan=1 colspan=3>theprices</td><td rowspan=1 colspan=1>are</td><td rowspan=1 colspan=1>crazy</td><td rowspan=1 colspan=1>high</td><td rowspan=1 colspan=3> prices are crazy high</td></tr><tr><td rowspan=1 colspan=1>With C-unit</td><td rowspan=1 colspan=4>get your wallet ready</td><td rowspan=1 colspan=4>the prices are crazy</td><td rowspan=1 colspan=1>are</td><td rowspan=1 colspan=1>crazy</td><td rowspan=1 colspan=1>high</td><td rowspan=1 colspan=3> prices are crazy high</td></tr><tr><td rowspan=2 colspan=1>No C-unitWith C-unit</td><td rowspan=2 colspan=1></td><td rowspan=1 colspan=2>nothing</td><td rowspan=1 colspan=3>remarkable</td><td rowspan=1 colspan=1>but</td><td rowspan=1 colspan=1>not</td><td rowspan=1 colspan=1>bad</td><td rowspan=1 colspan=1>either</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>but not bad either</td><td rowspan=2 colspan=1></td></tr><tr><td rowspan=1 colspan=2>nothing</td><td rowspan=1 colspan=4>remarkable but</td><td rowspan=1 colspan=1>not</td><td rowspan=1 colspan=1>bad</td><td rowspan=1 colspan=1>either</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>but not bad either</td></tr></table>
|
| 188 |
+
|
| 189 |
+
For clarity, we choose a binary classification task of sentiment analysis. In Table 4, we list two cases in Yelp Review Polarity dataset, in which our model behaves as expected. Words and artificially selected phrases are highlighted green if they are positive factors, red if they are negative. The intensity of the color indicates the degree of the polarity.
|
| 190 |
+
|
| 191 |
+
To have a better comparison, the results of with and without context unit methods are both visualized. We abbreviate them as With $C$ -unit and No $C$ -unit, respectively. For sentence get your wallet ready, the prices are crazy high, if no context unit is adopted, the word color reflects its word embedding, which is context-free. The polarity of crazy is positive, and high is negative. Because the intensity of crazy is higher than high, the polarity of phrase prices are crazy high is totally positive, which is a mistake. But with context unit, things have changed quite a bit, the polarities of words are context dependent. Under the influence of high, the positive polarity of crazy vanishes and phrase prices are crazy high performs negative overall. For another case nothing remarkable, but not bad either, things seem more interesting. Without context-unit , remarkable is positive, while nothing, not, bad perform negative, respectively. But with context unit, the polarity of the part ahead of but weakens, meanwhile the polarities of not and bad flips. As a result, phrase but not bad either performs positive overall.
|
| 192 |
+
|
| 193 |
+
# 5 CONCLUSION
|
| 194 |
+
|
| 195 |
+
This paper proposed two novel architectures for text classification tasks, which learn task specific region embeddings without hand crafted features. To utilize the word specific influences of each word on its context words, a local context unit for each word is learned in addition to word embedding. Our models achieve state-of-the-art performances on six benchmark text classification datasets, and the visualization experiments show that our proposed local context unit can capture the semantic and syntactic information for each word.
|
| 196 |
+
|
| 197 |
+
Noticed the power of the local context unit on learning task related region embeddings, we are interested in its ability to unsupervised and semi-supervised learning. At the same time, we are also curious about whether we can achieve better results by introducing more complex upper layers on text classification, and other natural language processing tasks.
|
| 198 |
+
|
| 199 |
+
# ACKNOWLEDGMENTS
|
| 200 |
+
|
| 201 |
+
This paper is supported by National Basic Research Program of China (973 program No.2014CB340505). We gratefully thank the anonymous reviewers for their insightful comments.
|
| 202 |
+
|
| 203 |
+
# REFERENCES
|
| 204 |
+
|
| 205 |
+
Alexis Conneau, Holger Schwenk, Lo¨ıc Barrault, and Yann Lecun. Very deep convolutional networks for natural language processing. arXiv preprint arXiv:1606.01781, 2016.
|
| 206 |
+
|
| 207 |
+
Rong-En Fan, Kai-Wei Chang, Cho-Jui Hsieh, Xiang-Rui Wang, and Chih-Jen Lin. Liblinear: A library for large linear classification. Journal of machine learning research, 9(Aug):1871–1874, 2008.
|
| 208 |
+
|
| 209 |
+
Mohit Iyyer, Varun Manjunatha, Jordan Boyd-Graber, and Hal Daume III. Deep unordered compo- ´ sition rivals syntactic methods for text classification. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), volume 1, pp. 1681–1691, 2015.
|
| 210 |
+
|
| 211 |
+
Thorsten Joachims. Making large-scale svm learning practical. Technical report, Technical Report, SFB 475: Komplexitatsreduktion in Multivariaten Datenstrukturen, Universit ¨ at Dortmund, 1998. ¨
|
| 212 |
+
|
| 213 |
+
Rie Johnson and Tong Zhang. Effective use of word order for text categorization with convolutional neural networks. arXiv preprint arXiv:1412.1058, 2014.
|
| 214 |
+
|
| 215 |
+
Rie Johnson and Tong Zhang. Semi-supervised convolutional neural networks for text categorization via region embedding. In Advances in neural information processing systems, pp. 919–927, 2015.
|
| 216 |
+
|
| 217 |
+
Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. Bag of tricks for efficient text classification. arXiv preprint arXiv:1607.01759, 2016.
|
| 218 |
+
|
| 219 |
+
Yoon Kim. Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882, 2014.
|
| 220 |
+
|
| 221 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 222 |
+
|
| 223 |
+
Siwei Lai, Liheng Xu, Kang Liu, and Jun Zhao. Recurrent convolutional neural networks for text classification. In AAAI, volume 333, pp. 2267–2273, 2015.
|
| 224 |
+
|
| 225 |
+
Jiwei Li, Xinlei Chen, Eduard Hovy, and Dan Jurafsky. Visualizing and understanding neural models in nlp. arXiv preprint arXiv:1506.01066, 2015.
|
| 226 |
+
|
| 227 |
+
Andrew McCallum, Kamal Nigam, et al. A comparison of event models for naive bayes text classification. In AAAI-98 workshop on learning for text categorization, volume 752, pp. 41–48. Madison, WI, 1998.
|
| 228 |
+
|
| 229 |
+
Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013.
|
| 230 |
+
|
| 231 |
+
Bo Pang, Lillian Lee, and Shivakumar Vaithyanathan. Thumbs up?: sentiment classification using machine learning techniques. In Proceedings of the ACL-02 conference on Empirical methods in natural language processing-Volume 10, pp. 79–86. Association for Computational Linguistics, 2002.
|
| 232 |
+
|
| 233 |
+
Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew $\mathrm { N g }$ and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pp. 1631–1642, 2013.
|
| 234 |
+
|
| 235 |
+
Duyu Tang, Bing Qin, and Ting Liu. Document modeling with gated recurrent neural network for sentiment classification. In EMNLP, pp. 1422–1432, 2015.
|
| 236 |
+
|
| 237 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. Attention is all you need. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 6000–6010. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/7181-attention-is-all-you-need.pdf.
|
| 238 |
+
|
| 239 |
+
Sida Wang and Christopher D Manning. Baselines and bigrams: Simple, good sentiment and topic classification. In Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics: Short Papers-Volume 2, pp. 90–94. Association for Computational Linguistics, 2012.
|
| 240 |
+
|
| 241 |
+
Yijun Xiao and Kyunghyun Cho. Efficient character-level document classification by combining convolution and recurrent layers. arXiv preprint arXiv:1602.00367, 2016.
|
| 242 |
+
|
| 243 |
+
Dani Yogatama, Chris Dyer, Wang Ling, and Phil Blunsom. Generative and discriminative text classification with recurrent neural networks. stat, 1050:6, 2017.
|
| 244 |
+
|
| 245 |
+
Xiang Zhang and Yann LeCun. Text understanding from scratch. arXiv preprint arXiv:1502.01710, 2015.
|
| 246 |
+
|
| 247 |
+
Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification. In Advances in neural information processing systems, pp. 649–657, 2015.
|
| 248 |
+
|
| 249 |
+
# APPENDIX
|
| 250 |
+
|
| 251 |
+
# A DETAILED EXPERIMENTAL RESULTS
|
| 252 |
+
|
| 253 |
+
To have a further insight about our reported results, we list the training time and best testing performance epoch for kinds of region sizes(5,7,9) in detail. For all the 8 datasets in Table 5, hyperparameters are kept in line with section 4.3. The dimension of word embedding is 128, the region size is 7, the initial learning rate is set to $1 \times 1 0 ^ { - 4 }$ , and the batch size is 16. Epoch index starts from 0 and training time is reported per epoch. We choose the model of word-context region embedding here.
|
| 254 |
+
|
| 255 |
+
Table 5: Experimental detailed records on several datasets
|
| 256 |
+
|
| 257 |
+
<table><tr><td>Dataset</td><td>Vocabulary Size</td><td>W.C Region Size</td><td>Parameters Number</td><td>Best Epoch</td><td>Training Time(Mins)</td><td>Accuracy(%)</td></tr><tr><td rowspan="3">Yelp P.</td><td rowspan="3">115298</td><td>5</td><td>88,549,122</td><td>3</td><td>27</td><td>96.34</td></tr><tr><td>7</td><td>118,065,410</td><td>3</td><td>36</td><td>96.39</td></tr><tr><td>9</td><td>147,581,698</td><td>3</td><td>43</td><td>96.38</td></tr><tr><td rowspan="3">Yelp F.</td><td rowspan="3">124273</td><td>5</td><td>95,442,309</td><td>3</td><td>34</td><td>64.73</td></tr><tr><td>7</td><td>127,256,197</td><td>2</td><td>43</td><td>64.90</td></tr><tr><td>9</td><td>159,070,085</td><td>2</td><td>52</td><td>64.74</td></tr><tr><td rowspan="3">Amz. P.</td><td rowspan="3">394385</td><td>5</td><td>302,887,938</td><td>2</td><td>336</td><td>95.07</td></tr><tr><td>7</td><td>403,850,498</td><td>2</td><td>402</td><td>95.23</td></tr><tr><td>9</td><td>504,813,058</td><td>2</td><td>589</td><td>95.06</td></tr><tr><td rowspan="3">Amz. F.</td><td rowspan="3">356312</td><td>5</td><td>273,648,261</td><td>1</td><td>300</td><td>60.83</td></tr><tr><td>7</td><td>364,864,133</td><td>1</td><td>395</td><td>60.93</td></tr><tr><td>9</td><td>456,080,005</td><td>1</td><td>490</td><td>61.05</td></tr><tr><td rowspan="3">AG</td><td rowspan="3">42783</td><td>5</td><td>32,857,860</td><td>6</td><td>2</td><td>92.81</td></tr><tr><td>7</td><td>43,810,308</td><td>4</td><td>3</td><td>92.89</td></tr><tr><td>9</td><td>54,762,756</td><td>5</td><td>4</td><td>92.82</td></tr><tr><td rowspan="3">Sogou</td><td rowspan="3">99394</td><td>5</td><td>76,335,237</td><td>7</td><td>27</td><td>97.6</td></tr><tr><td>7</td><td>101,780,101</td><td>9</td><td>33</td><td>97.63</td></tr><tr><td>9</td><td>127,224,965</td><td>10</td><td>39</td><td>97.56</td></tr><tr><td rowspan="3">Yah.A.</td><td rowspan="3">361926</td><td>5</td><td>277,960,458</td><td>1</td><td>160</td><td>73.42</td></tr><tr><td>7</td><td>370,613,514</td><td>1</td><td>210</td><td>73.66</td></tr><tr><td>9</td><td>463,266,570</td><td>2</td><td>256</td><td>73.68</td></tr><tr><td rowspan="3">DBP</td><td rowspan="3">227863</td><td>5</td><td>175,000,590</td><td>3</td><td>37</td><td>98.87</td></tr><tr><td>7</td><td>233,333,518</td><td>2</td><td>48</td><td>98.89</td></tr><tr><td>9</td><td>291,666,446</td><td>3</td><td>60</td><td>98.94</td></tr></table>
|
| 258 |
+
|
| 259 |
+
We also report results of several repeated runs in Table 6 to exclude the effect of randomness and ensure reproducibility. Five independent runs are conducted on each dataset of Yelp.P and Yelp.F, where both performance variances are within $0 . 1 1 \%$ on accuracy.
|
| 260 |
+
|
| 261 |
+
Table 6: Performance variances through several repeated runs on Yelp Datasets
|
| 262 |
+
|
| 263 |
+
<table><tr><td>Dataset</td><td>Tries Num.</td><td>W.C region size</td><td>Best Epoch</td><td>Accuracy(%)</td><td>Performance Variance</td></tr><tr><td rowspan="5">Yelp P.</td><td>0</td><td>7</td><td>3</td><td>96.39</td><td rowspan="5">≤%0.11</td></tr><tr><td>1</td><td>7</td><td>4</td><td>96.36</td></tr><tr><td>2</td><td>7</td><td>4</td><td>96.41</td></tr><tr><td>3</td><td>7</td><td>3</td><td>96.38</td></tr><tr><td>4</td><td>7</td><td>2</td><td>96.46</td></tr><tr><td rowspan="5">Yelp F.</td><td>0</td><td>7</td><td>2</td><td>64.90</td><td rowspan="5">≤%0.11</td></tr><tr><td>1</td><td>7</td><td>2</td><td>64.94</td></tr><tr><td>2</td><td>7</td><td>1</td><td>64.87</td></tr><tr><td>3</td><td>7</td><td>1</td><td>64.86</td></tr><tr><td>4</td><td>7</td><td>2</td><td>64.98</td></tr></table>
|
parse/train/BkSDMA36Z/BkSDMA36Z_content_list.json
ADDED
|
@@ -0,0 +1,1428 @@
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "A NEW METHOD OF REGION EMBEDDING FOR TEXT CLASSIFICATION ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
135,
|
| 9 |
+
821,
|
| 10 |
+
175
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Chao $\\mathbf { Q } \\mathbf { i } \\mathbf { a } \\mathbf { o } ^ { * \\ddagger }$ , Bo Huang†‡, Guocheng $\\mathbf { N i u } ^ { \\ddag }$ , Daren $\\mathbf { L i } ^ { \\dagger }$ , Daxiang $\\mathbf { D o n g ^ { \\ddagger \\ S } }$ , Wei $\\mathbf { H e } ^ { \\ddagger }$ , Dianhai $\\mathbf { Y } \\mathbf { u } ^ { \\ddag \\ S }$ , Hua $\\mathbf { W _ { u } } ^ { \\ddagger \\ S }$ ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
197,
|
| 20 |
+
563,
|
| 21 |
+
225
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "‡ Baidu Inc., Beijing, China \n§ National Engineering Laboratory of Deep Learning Technology and Application, China \n{qiaochao, huangbo02, niuguocheng, lidaren, \ndaxiangdong, hewei06, yudianhai, wu hua}@baidu.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
181,
|
| 30 |
+
226,
|
| 31 |
+
773,
|
| 32 |
+
277
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
452,
|
| 42 |
+
311,
|
| 43 |
+
542,
|
| 44 |
+
325
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "To represent a text as a bag of properly identified “phrases” and use the representation for processing the text is proved to be useful. The key question here is how to identify the phrases and represent them. The traditional method of utilizing n-grams can be regarded as an approximation of the approach. Such a method can suffer from data sparsity, however, particularly when the length of n-gram is large. In this paper, we propose a new method of learning and utilizing task-specific distributed representations of n-grams, referred to as “region embeddings”. Without loss of generality we address text classification. We specifically propose two models for region embeddings. In our models, the representation of a word has two parts, the embedding of the word itself, and a weighting matrix to interact with the local context, referred to as local context unit. The region embeddings are learned and used in the classification task, as parameters of the neural network classifier. Experimental results show that our proposed method outperforms existing methods in text classification on several benchmark datasets. The results also indicate that our method can indeed capture the salient phrasal expressions in the texts. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
231,
|
| 53 |
+
343,
|
| 54 |
+
764,
|
| 55 |
+
532
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
562,
|
| 66 |
+
334,
|
| 67 |
+
577
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Text classification is an important task for many applications, including topic categorization, search query classification, and sentiment analysis, which has been studied for years. A simple yet effective approach for text classification is to represent documents as bag-of-words, and train a classifier on the basis of the representations using methods such as logistic regression, support vector machines (Joachims, 1998; Fan et al., 2008), and naive Bayes (McCallum et al., 1998). Although bag-of-words methods are effective and efficient, they also have limitations. The representations do not take into account the word order information which has been proved to be useful at least in some applications such as sentiment analysis (Pang et al., 2002). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
593,
|
| 77 |
+
823,
|
| 78 |
+
695
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "To make effective use of word order information for text classification, people have traditionally exploited n-grams, i.e., short sequences of words in the texts. Previous work shows that the use of n-grams is effective in the text classification task (Pang et al., 2002; Wang & Manning, 2012; Joulin et al., 2016). Although n-grams are very useful, they have certain limitations. 1) The number of n-grams increases exponentially when the length of n-gram $n$ increases. This makes it difficult to exploit large n-grams (e.g., $n > 4$ ). 2) Since the number of parameters in an n-gram model is very large, the estimation of the parameters usually suffers from the data sparsity problem. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
701,
|
| 88 |
+
823,
|
| 89 |
+
790
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Recently, the method of FastText has been proposed (Joulin et al., 2016), which can learn and use distributed embeddings of n-grams. More specifically, the embedding of an n-gram is defined as a low-dimensional vector representation of the n-gram. Note that the n-grams in a vocabulary can also be represented as one-hot vectors Wang & Manning (2012). ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
796,
|
| 99 |
+
823,
|
| 100 |
+
849
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "In this paper, we propose to learn embeddings of n-grams for a specific task (e.g., classification), which are more compact and thus easy to obtain. We call the embeddings region embeddings, following the work in Johnson & Zhang (2015). Our method significantly differs from their method, however, in the sense that the region embeddings in our method are task-dependent and acquired from supervised learning, while those in their method are task-independent and acquired from unsupervised learning. Our method is also largely different from FastText, as it learns richer models for region embeddings. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
173,
|
| 109 |
+
137,
|
| 110 |
+
823,
|
| 111 |
+
226
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Intuitively, the meaning of a word is defined by the meaning of itself as well as the meanings of words in the surrounding context. The extended embedding of a word in an n-gram thus consists of two parts, the embedding of the word itself and a matrix to interact with the local context, named “local context unit”. The embedding of a word is a column vector, and the local context unit of a word is a matrix in which the columns are used to interact with words in the local context. The region embedding of an n-gram is then constructed by the extended embeddings of all words in the n-gram. In this paper, we introduce two models for region embeddings. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
232,
|
| 121 |
+
823,
|
| 122 |
+
321
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "For the text classification task, a document is viewed as a bag of region embeddings, and the bag of region embeddings is fed into a classifier. The parameters of the local context units and word embeddings are trained together with the parameters of the classifier which is a fully connected neural network. Our models achieve better results than the state-of-the-art methods on several benchmark datasets of text classification. Experiments show that our proposed models can really capture important information for the task. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
328,
|
| 132 |
+
823,
|
| 133 |
+
404
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "2 RELATED WORK ",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
425,
|
| 144 |
+
342,
|
| 145 |
+
440
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Text classification has been studied for years, traditional approaches focused on feature engineering and using different types of machine learning algorithms. For feature engineering, bag-of-words features are efficient and popular. In addition, the hand-crafted n-grams or phrases are added to make use of word order in text data, which has been shown effective on Wang & Manning (2012). For machine learning algorithms, linear classifiers are widely used, such as naive bayes (McCallum et al., 1998), logistic regression and support vector machines (Joachims, 1998; Fan et al., 2008). However, these models commonly suffer the data sparsity problem. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
454,
|
| 155 |
+
823,
|
| 156 |
+
543
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Recently, several neural models have been proposed, the pre-trained word embeddings of word2vec (Mikolov et al., 2013) have been widely used as inputs to deep neural models such as recursive tensor networks (Socher et al., 2013). On the other hand, some simple and efficient models which can directly learn task specific word embeddings or fine-tune on pre-trained word embeddings have been proposed recently, such as Deep Averaging Networks (Iyyer et al., 2015), FastText (Joulin et al., 2016). Several neural models have been proposed to make use of word order information, most models are based on convolutional neural network (CNN) (Kim, 2014; Johnson & Zhang, 2014; Zhang et al., 2015) and recurrent neural network (RNN) (Tang et al., 2015; Lai et al., 2015; Yogatama et al., 2017). More recently, the Transformer (Vaswani et al., 2017), a sequence transduction model based solely on attention mechanisms has been proposed. Although Transformer was not designed for the text classification task, it has similarities with our work. In the rest of this section, we will briefly introduce FastText, CNN and Transformer, which are the most relevant to our work. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
173,
|
| 165 |
+
551,
|
| 166 |
+
823,
|
| 167 |
+
714
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "FastText FastText averages the word embeddings to represent a document, and uses a full connected linear layer as the classifier. The word embeddings are trained for each task specifically. To utilize the local word order information of small regions, FastText uses hand-crafted n-grams as features in addition to single words. With the simple architecture, FastText has been proved to be effective and highly efficient on text classification tasks. Similarly, our models use bag of region embeddings to represent a document, and use the same linear classifier. Differently, our models directly learn the semantics of regions based on word sequence, hand-crafted features are not required. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
731,
|
| 177 |
+
823,
|
| 178 |
+
820
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "CNN CNN is a feed-forward network with convolutional layers interleaved with pooling layers, which are originally used for image processing tasks. For natural language processing, words are commonly converted to vectors. CNN directly applies convolutional layer on word vectors, both word vectors and the shared (word independent) kernels are the parameters of CNN, which can be learned to capture the predictive structures of small regions. The essence of CNN is to learn embeddings for small fixed size regions, each kernel of the convolutional layer tries to capture a specific semantic or structural feature. Our purpose is similar with CNN, which tries to learn task specific representations of regions. Unlike CNN, we apply local context units on word vectors, which are word dependent, moreover, the convolution kernels extract the predictive features by applying convolution operation on word sequences, while we use local context units as distinct linear projection functions on context words in corresponding relative positions to get region representations. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
836,
|
| 188 |
+
823,
|
| 189 |
+
887
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "",
|
| 196 |
+
"bbox": [
|
| 197 |
+
173,
|
| 198 |
+
137,
|
| 199 |
+
823,
|
| 200 |
+
226
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 2
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "Transformer Vaswani et al. (2017) proposed a sequence transduction model, the Transformer, based solely on attention mechanisms. Both Transformer and our method can capture word order information without any CNN or RNN component, and the scalar form of context units (introduced in our ablation experiments) can be regarded as a kind of local attention. There are also some differences here: the motivation we proposed local context units is to address word specific influence between word and its context, while Vaswani et al. (2017) has proposed a parallelable sequence transduction framework based entirely on attention; To utilize position information, in our method, words are interacted with context words at different relative positions by corresponding columns in their context units, while Transformer use fixed sin and cos function based position encoding. ",
|
| 207 |
+
"bbox": [
|
| 208 |
+
173,
|
| 209 |
+
241,
|
| 210 |
+
823,
|
| 211 |
+
355
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 2
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "text",
|
| 217 |
+
"text": "3 METHOD ",
|
| 218 |
+
"text_level": 1,
|
| 219 |
+
"bbox": [
|
| 220 |
+
174,
|
| 221 |
+
374,
|
| 222 |
+
280,
|
| 223 |
+
388
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 2
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "text",
|
| 229 |
+
"text": "In this paper, we focus on learning the representations of small text regions which preserve the local internal structural information for text classification. The regions in a document can be considered as fixed length contiguous subsequences of the document. More specifically, with $w _ { i }$ standing for the $i$ -th(starting from 0) word of the document, we use region $( i , c )$ to denote the $2 \\times c + 1$ length region with middle word $w _ { i }$ . For instance, given a sentence such as The food is not very good in this hotel, region $( 3 , 2 )$ means the subsequence food is not very good. ",
|
| 230 |
+
"bbox": [
|
| 231 |
+
174,
|
| 232 |
+
402,
|
| 233 |
+
823,
|
| 234 |
+
479
|
| 235 |
+
],
|
| 236 |
+
"page_idx": 2
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"type": "text",
|
| 240 |
+
"text": "In this work, we use the interactions between words and their local context based on word embeddings as well as the local context units to produce region embeddings. In the rest of this section, we will introduce the local context units firstly, and two architectures to generate the region embeddings through local context units will be introduced, finally we will introduce how we use the region embeddings on text classification. ",
|
| 241 |
+
"bbox": [
|
| 242 |
+
173,
|
| 243 |
+
485,
|
| 244 |
+
821,
|
| 245 |
+
549
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 2
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "image",
|
| 251 |
+
"img_path": "images/cbb613170613bb105975169510719e7d281fcb6e107e0f198c3343b5e22f32c7.jpg",
|
| 252 |
+
"image_caption": [
|
| 253 |
+
"Figure 1: Architectures of region embedding using local context units in different perspectives "
|
| 254 |
+
],
|
| 255 |
+
"image_footnote": [],
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
559,
|
| 259 |
+
778,
|
| 260 |
+
790
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "3.1 LOCAL CONTEXT UNIT ",
|
| 267 |
+
"text_level": 1,
|
| 268 |
+
"bbox": [
|
| 269 |
+
174,
|
| 270 |
+
838,
|
| 271 |
+
371,
|
| 272 |
+
851
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "In natural language processing, words are commonly converted to low dimensional vectors(word embeddings) as the inputs to neural networks. More formally, the embedding ${ \\bf e } _ { w }$ of word $w$ is represented by a column in a matrix $\\mathbf { E } \\in \\mathcal { R } ^ { h \\times v }$ with a look up layer, where $v$ is the size of the vocabulary, $h$ is the embedding size. ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
171,
|
| 281 |
+
862,
|
| 282 |
+
825,
|
| 283 |
+
888
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "",
|
| 290 |
+
"bbox": [
|
| 291 |
+
173,
|
| 292 |
+
136,
|
| 293 |
+
825,
|
| 294 |
+
163
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 3
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "To utilize the information of words’ relative positions and local context, we learn a local context unit for each word in addition to the word embedding, and both the unit and word embedding are learned as model parameters. Formally, we define the local context unit ${ \\bf K } _ { w _ { i } } \\in \\mathcal { R } ^ { h \\times ( 2 \\times c + \\bar { 1 } ) }$ of $w _ { i }$ as a matrix which can be looked up in the tensor $\\mathbf { U } \\in \\mathcal { R } ^ { h \\times ( 2 \\times c + 1 ) \\times v }$ by $w _ { i }$ ’s index in the vocabulary. ",
|
| 301 |
+
"bbox": [
|
| 302 |
+
173,
|
| 303 |
+
169,
|
| 304 |
+
825,
|
| 305 |
+
224
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 3
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "Each column in ${ \\bf K } _ { w _ { i } }$ can be used to interact with the context word in corresponding relative position of $w _ { i }$ . In fact, the columns of a unit matrix can be regarded as distinctive linear projection functions on the embeddings of words in the local context. The parameters of these projection functions(i.e., columns of each unit matrix) can be learned to capture the semantic and syntactic influence of the word to its context. Word embeddings are used as inputs to the projection functions, and we call the outputs projected word embeddings. ",
|
| 312 |
+
"bbox": [
|
| 313 |
+
173,
|
| 314 |
+
229,
|
| 315 |
+
825,
|
| 316 |
+
307
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 3
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "text",
|
| 322 |
+
"text": "Formally, let $\\mathbf { p } _ { w _ { i + t } } ^ { i }$ be the projected word embedding of $w _ { i + t }$ in $i$ -th word’s view, and ${ \\bf K } _ { w _ { i } , t }$ be the $( c + t )$ -th column in ${ \\bf K } _ { w _ { i } }$ $\\scriptstyle - c < = t < = c )$ , given the unit ${ \\bf K } _ { w _ { i } }$ of $w _ { i }$ and the embedding $\\mathbf { e } _ { w _ { i + t } }$ of $w _ { i + t }$ , we use an element-wise multiplication(denoted by $\\odot$ ) to compute $\\mathbf { p } _ { w _ { i + t } } ^ { i }$ : ",
|
| 323 |
+
"bbox": [
|
| 324 |
+
174,
|
| 325 |
+
312,
|
| 326 |
+
823,
|
| 327 |
+
356
|
| 328 |
+
],
|
| 329 |
+
"page_idx": 3
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"type": "equation",
|
| 333 |
+
"img_path": "images/2c19d24d525b5aafc3c95a1a74a09609372d978eceb8acbcd02b2e4846cd3b86.jpg",
|
| 334 |
+
"text": "$$\n\\mathbf { p } _ { w _ { i + t } } ^ { i } = \\mathbf { K } _ { w _ { i } , t } \\odot \\mathbf { e } _ { w _ { i + t } }\n$$",
|
| 335 |
+
"text_format": "latex",
|
| 336 |
+
"bbox": [
|
| 337 |
+
418,
|
| 338 |
+
372,
|
| 339 |
+
578,
|
| 340 |
+
393
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 3
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "For a context word in a particular relative position of $w _ { i }$ , there is a corresponding linear projection function(a particular column of ${ \\bf K } _ { w _ { i } }$ ), thus our proposed local context units can utilize the local ordered word information in a novel way. Note that the middle column ${ \\bf K } _ { w _ { i } , 0 }$ of ${ \\bf K } _ { w _ { i } }$ can be regarded as a linear projection function on ${ \\bf e } _ { w _ { i } }$ itself, which transforms ${ \\bf e } _ { w _ { i } }$ to the same space as other projected embeddings. ",
|
| 347 |
+
"bbox": [
|
| 348 |
+
173,
|
| 349 |
+
402,
|
| 350 |
+
823,
|
| 351 |
+
467
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 3
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "3.2 WORD-CONTEXT REGION EMBEDDING ",
|
| 358 |
+
"text_level": 1,
|
| 359 |
+
"bbox": [
|
| 360 |
+
174,
|
| 361 |
+
483,
|
| 362 |
+
478,
|
| 363 |
+
496
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 3
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "We proposed two architectures to perform the region embedding from different perspectives. We consider the semantics of a given region is derived from the mutual influences of the words in this region. In this paper, the regions can be regarded as snapshots of a window sliding on a document, whose middle words are contiguous, hence we can compose the semantics of a give region only by the middle word’s influences on the context words, or the context words’ influences on the middle word. ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
173,
|
| 372 |
+
507,
|
| 373 |
+
823,
|
| 374 |
+
584
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "In the first proposed architecture, we focus on addressing the middle word’s influences on the context words. For example, in the sentence The food is not very good in this hotel, the occurrence of word not might bring a semantic reversal to the local region. ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
174,
|
| 383 |
+
590,
|
| 384 |
+
823,
|
| 385 |
+
629
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 3
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "We use the local context unit of the middle word and the original word embeddings in a region to perform the projected embeddings in a word-to-context view, where the projected embeddings can reflect the middle word’s influences on the context words. Once the projected embeddings are obtained, a max pooling operation is applied to extract the most predictive features in the region. The output of the max pooling operation can be regarded as a task related region embedding in a word-to-context view, i.e. Word-Context region embedding. ",
|
| 392 |
+
"bbox": [
|
| 393 |
+
173,
|
| 394 |
+
634,
|
| 395 |
+
825,
|
| 396 |
+
712
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 3
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "Formally, we use the context unit ${ \\bf K } _ { w _ { i } }$ of middle word $w _ { i }$ and embeddings of all words in a region region $( i , c )$ to compute the projected embedding matrix by equation (1), then the Word-Context region embedding $\\mathbf { r } _ { ( i , c ) }$ can be obtained through a max pooling operation on the projected embedding matrix: ",
|
| 403 |
+
"bbox": [
|
| 404 |
+
173,
|
| 405 |
+
718,
|
| 406 |
+
823,
|
| 407 |
+
769
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 3
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "equation",
|
| 413 |
+
"img_path": "images/fe86b31badc2aa9e3f7d86684d4c170252376a733dad45baa1eea31e7637650d.jpg",
|
| 414 |
+
"text": "$$\n\\mathbf { r } _ { ( i , c ) } = m a x \\big ( \\big [ \\mathbf { p } _ { w _ { i - c } } ^ { i } \\quad \\mathbf { p } _ { w _ { i - c + 1 } } ^ { i } \\quad . . . \\quad \\mathbf { p } _ { w _ { i + c - 1 } } ^ { i } \\quad \\mathbf { p } _ { w _ { i + c } } ^ { i } \\big ] \\big )\n$$",
|
| 415 |
+
"text_format": "latex",
|
| 416 |
+
"bbox": [
|
| 417 |
+
309,
|
| 418 |
+
786,
|
| 419 |
+
689,
|
| 420 |
+
807
|
| 421 |
+
],
|
| 422 |
+
"page_idx": 3
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"type": "text",
|
| 426 |
+
"text": "where $m a x$ standing for the max pooling operation on the column dimension of the input matrix. Finally, we get $\\mathbf { r } _ { ( i , c ) }$ as a vector representation of $r e g i o n ( i , c )$ with dimension $h$ . Figure 1a shows the details of the first model architecture. ",
|
| 427 |
+
"bbox": [
|
| 428 |
+
174,
|
| 429 |
+
815,
|
| 430 |
+
823,
|
| 431 |
+
856
|
| 432 |
+
],
|
| 433 |
+
"page_idx": 3
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"type": "text",
|
| 437 |
+
"text": "For instance, in the sentence The food is not very good in this hotel, the projected word embeddings in the region $( 3 , 2 )$ are composed by the element-wise multiplications between columns in the local ",
|
| 438 |
+
"bbox": [
|
| 439 |
+
171,
|
| 440 |
+
862,
|
| 441 |
+
825,
|
| 442 |
+
888
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 3
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "context unit of not and word embeddings of food, is, not, very and good. The embedding $\\mathbf { r } _ { 3 , 2 }$ of region $( 3 , 2 )$ can be obtained by max pooling on the projected word embedding matrix. ",
|
| 449 |
+
"bbox": [
|
| 450 |
+
174,
|
| 451 |
+
137,
|
| 452 |
+
826,
|
| 453 |
+
163
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 4
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "3.3 CONTEXT-WORD REGION EMBEDDING ",
|
| 460 |
+
"text_level": 1,
|
| 461 |
+
"bbox": [
|
| 462 |
+
174,
|
| 463 |
+
180,
|
| 464 |
+
477,
|
| 465 |
+
193
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 4
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "The second architecture goes as a different view, which addresses the local context words’ influences on the middle word in the region, and we call this Context-Word region embedding. Similarly, for a $r e g i o n ( i , c )$ , the projected embeddings are computed by the original word embedding of the middle word and the context units of all words in the region, then the Context-Word region embedding can be obtained by a max pooling operation through the column dimension of the projected embedding matrix: ",
|
| 472 |
+
"bbox": [
|
| 473 |
+
173,
|
| 474 |
+
204,
|
| 475 |
+
823,
|
| 476 |
+
281
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 4
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "equation",
|
| 482 |
+
"img_path": "images/43fbf8ef405eead8798654c8305313a3ef61a11bb2002bdd1daec43963e5986d.jpg",
|
| 483 |
+
"text": "$$\n\\mathbf { r } _ { ( i , c ) } = m a x \\big ( \\big [ \\mathbf { p } _ { w _ { i } } ^ { i - c } \\quad \\mathbf { p } _ { w _ { i } } ^ { i - c + 1 } \\quad . . . \\quad \\mathbf { p } _ { w _ { i } } ^ { i + c - 1 } \\quad \\mathbf { p } _ { w _ { i } } ^ { i + c } \\big ] \\big )\n$$",
|
| 484 |
+
"text_format": "latex",
|
| 485 |
+
"bbox": [
|
| 486 |
+
322,
|
| 487 |
+
299,
|
| 488 |
+
673,
|
| 489 |
+
318
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 4
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "Figure 1b shows the details of the second model architecture. our two models take different ways to produce the projected word embeddings, the Word-Context model uses context units of middle words and word embeddings of context words, while the Context-Word model uses context units of context words and word embeddings of the middle word. ",
|
| 496 |
+
"bbox": [
|
| 497 |
+
173,
|
| 498 |
+
327,
|
| 499 |
+
823,
|
| 500 |
+
380
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 4
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "3.4 REGION EMBEDDING FOR TEXT CLASSIFICATION ",
|
| 507 |
+
"text_level": 1,
|
| 508 |
+
"bbox": [
|
| 509 |
+
174,
|
| 510 |
+
397,
|
| 511 |
+
551,
|
| 512 |
+
409
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 4
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "For text classification, documents are usually variable-sized, which need to be represented as fixed size vectors. In order to show the effectiveness of our proposed region embedding models, we just sum up the embeddings of all regions to represent a document, and feed it to an upper FullConnected layer for text classification task. ",
|
| 519 |
+
"bbox": [
|
| 520 |
+
173,
|
| 521 |
+
420,
|
| 522 |
+
823,
|
| 523 |
+
471
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 4
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "Formally, the model can be represented as following: ",
|
| 530 |
+
"bbox": [
|
| 531 |
+
174,
|
| 532 |
+
478,
|
| 533 |
+
519,
|
| 534 |
+
491
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 4
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "equation",
|
| 540 |
+
"img_path": "images/26bf2ac5ba275e0e50ed5c8aacb7e8e54bc93b32801ff92fbb5a4121faf1f50a.jpg",
|
| 541 |
+
"text": "$$\n\\mathrm { f } ( \\mathbf { x } ; \\mathbf { E } , \\mathbf { U } , \\mathbf { W } , \\mathbf { b } ) = \\mathbf { g } ( \\mathbf { W } \\sigma ( \\sum _ { i = 0 } ^ { n } \\mathbf { r } _ { ( i , c ) } ) + \\mathbf { b } )\n$$",
|
| 542 |
+
"text_format": "latex",
|
| 543 |
+
"bbox": [
|
| 544 |
+
351,
|
| 545 |
+
498,
|
| 546 |
+
645,
|
| 547 |
+
536
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 4
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "text",
|
| 553 |
+
"text": "where $\\mathbf { x }$ denotes the input text sequence, W and b denote the weight matrix and bias of the fully connected layer respectively, $\\mathbf { g }$ denotes the softmax function of the output layer, $\\sigma$ denotes the softsign function and $n$ denotes the number of regions in a document, $\\mathbf { r }$ is the region embedding which can be computed by the equation (2) or (3). E, U, W and b can be updated in the training period. ",
|
| 554 |
+
"bbox": [
|
| 555 |
+
173,
|
| 556 |
+
549,
|
| 557 |
+
823,
|
| 558 |
+
602
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 4
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "text",
|
| 564 |
+
"text": "4 EXPERIMENTS ",
|
| 565 |
+
"text_level": 1,
|
| 566 |
+
"bbox": [
|
| 567 |
+
174,
|
| 568 |
+
621,
|
| 569 |
+
326,
|
| 570 |
+
636
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 4
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "We report experiments with proposed models in comparison with previous models. ",
|
| 577 |
+
"bbox": [
|
| 578 |
+
176,
|
| 579 |
+
652,
|
| 580 |
+
714,
|
| 581 |
+
665
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 4
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "4.1 DATASETS ",
|
| 588 |
+
"text_level": 1,
|
| 589 |
+
"bbox": [
|
| 590 |
+
174,
|
| 591 |
+
681,
|
| 592 |
+
287,
|
| 593 |
+
694
|
| 594 |
+
],
|
| 595 |
+
"page_idx": 4
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"type": "text",
|
| 599 |
+
"text": "We use publicly available datasets from Zhang et al. (2015) to evaluate our models. There are in total 8 text classification datasets, corresponding to sentiment analysis, news classification, questionanswer, ontology extraction tasks, respectively. Table 1 shows the descriptive statistics of datasets used in our experiments. To guarantee comparable indications, same evaluation protocol of Zhang et al. (2015) is employed. ",
|
| 600 |
+
"bbox": [
|
| 601 |
+
174,
|
| 602 |
+
705,
|
| 603 |
+
823,
|
| 604 |
+
770
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 4
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "text",
|
| 610 |
+
"text": "4.2 BASELINES",
|
| 611 |
+
"text_level": 1,
|
| 612 |
+
"bbox": [
|
| 613 |
+
174,
|
| 614 |
+
786,
|
| 615 |
+
292,
|
| 616 |
+
799
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 4
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "Our models are compared with several widely used supervised text classification models. We report the n-grams and TFIDF baselines from Zhang et al. (2015), as well as the character level convolutional model (char-CNN) of Zhang & LeCun (2015), the character based convolution recurrent network (char-CRNN) of Xiao & Cho (2016), the very deep convolutional network (VDCNN) of Conneau et al. (2016), the Discriminative LSTM (D-LSTM) of Yogatama et al. (2017) and the bigram FastText (bigram-FastText) of Joulin et al. (2016). ",
|
| 623 |
+
"bbox": [
|
| 624 |
+
173,
|
| 625 |
+
809,
|
| 626 |
+
823,
|
| 627 |
+
888
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 4
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "table",
|
| 633 |
+
"img_path": "images/3694017565e63165bc0ec78d8d1db4c64061fe744dea14ffbfe20d8859d4c263.jpg",
|
| 634 |
+
"table_caption": [
|
| 635 |
+
"Table 1: Statistics of Datasets "
|
| 636 |
+
],
|
| 637 |
+
"table_footnote": [],
|
| 638 |
+
"table_body": "<table><tr><td>Dataset</td><td>Classes</td><td>Average Lengths</td><td>Train Samples</td><td>Test Samples</td><td>Tasks</td></tr><tr><td>Yelp Review Polarity Yelp Review Full</td><td>2</td><td>156</td><td>560,000</td><td>38,000</td><td rowspan=\"3\">Sentiment Analysis</td></tr><tr><td></td><td>5</td><td>158</td><td>650,000</td><td>50,000</td></tr><tr><td>Amazon Review Polarity Amazon Review Full</td><td>2</td><td>91</td><td>3,000,000</td><td>650,000</td></tr><tr><td>AG's News</td><td>5</td><td>93 44</td><td>3,600,000 120.000</td><td>400,000 7,600</td><td>News</td></tr><tr><td>Sogou News</td><td>4 5</td><td>579</td><td>450,000</td><td>60,000</td><td>Classification</td></tr><tr><td>Yahoo! Answers</td><td>10</td><td>112</td><td>1,400,000</td><td>60,000</td><td>Question Answer</td></tr><tr><td>DBPedia</td><td>14</td><td>55</td><td>560,000</td><td>70,000</td><td>Ontology Extraction</td></tr></table>",
|
| 639 |
+
"bbox": [
|
| 640 |
+
189,
|
| 641 |
+
163,
|
| 642 |
+
813,
|
| 643 |
+
324
|
| 644 |
+
],
|
| 645 |
+
"page_idx": 5
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "text",
|
| 649 |
+
"text": "4.3 IMPLEMENTATION DETAILS ",
|
| 650 |
+
"text_level": 1,
|
| 651 |
+
"bbox": [
|
| 652 |
+
174,
|
| 653 |
+
352,
|
| 654 |
+
406,
|
| 655 |
+
365
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 5
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "For data preprocessing, all the texts of datasets are tokenized by Stanford tokenizer and all words are converted to lower case. Words that appear only in one document are treated as out-of-vocabulary (OOV) items, and all stop words as well as symbols are kept. Additionally, length of $c$ padding are added to both the head and tail of each document. ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
173,
|
| 664 |
+
376,
|
| 665 |
+
823,
|
| 666 |
+
427
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 5
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "For our models, optimal hyperparameters are tuned with $10 \\%$ of the training set on Yelp Review Full dataset, and identical hyperparameters are applied to all datasets: the dimension of word embedding is 128, the region size is 7 which means the shape of local context unit matrix of each word is $1 2 8 \\times 7$ , the initial learning rate is set to $1 \\times 1 0 ^ { - 4 }$ , and the batch size is 16. For optimization, the embeddings of words and the units are randomly initialized with Gaussian Distribution. Adam (Kingma & Ba, 2014) is used as the optimizer. We do not use any extra regularization methods, like L2 normalization or dropout. Algorithms are entirely implemented with TensorFlow and trained on NVIDIA Tesla P40 GPUs. The code 1 is publicly available on the Internet. ",
|
| 673 |
+
"bbox": [
|
| 674 |
+
173,
|
| 675 |
+
434,
|
| 676 |
+
825,
|
| 677 |
+
536
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 5
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "4.4 RESULTS ",
|
| 684 |
+
"text_level": 1,
|
| 685 |
+
"bbox": [
|
| 686 |
+
173,
|
| 687 |
+
553,
|
| 688 |
+
277,
|
| 689 |
+
566
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 5
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "table",
|
| 695 |
+
"img_path": "images/15ee1e55605f089d9ad7f86f9861d1d45e7ccad4ff1e6f3664d6fe2e8c8e7cda.jpg",
|
| 696 |
+
"table_caption": [
|
| 697 |
+
"Table 2: Test Set Accuracy $[ \\% ]$ Compared to other Methods on several Datasets "
|
| 698 |
+
],
|
| 699 |
+
"table_footnote": [],
|
| 700 |
+
"table_body": "<table><tr><td>Model</td><td>Yelp P.</td><td>Yelp F.</td><td>Amz. P.</td><td>Amz. F.</td><td>AG</td><td>Sogou</td><td>Yah. A.</td><td>DBP</td></tr><tr><td>BoW</td><td>92.2</td><td>58.0</td><td>90.4</td><td>54.6</td><td>88.8</td><td>92.9</td><td>68.9</td><td>96.6</td></tr><tr><td>ngrams</td><td>95.6</td><td>56.3</td><td>92.0</td><td>54.3</td><td>92.0</td><td>97.1</td><td>68.5</td><td>98.6</td></tr><tr><td>ngrams TFIDF</td><td>95.4</td><td>54.8</td><td>91.5</td><td>52.4</td><td>92.4</td><td>97.2</td><td>68.5</td><td>98.7</td></tr><tr><td>char-CNN</td><td>94.7</td><td>62.0</td><td>94.5</td><td>59.6</td><td>87.2</td><td>95.1</td><td>71.2</td><td>98.3</td></tr><tr><td>char-CRNN</td><td>94.5</td><td>61.8</td><td>94.1</td><td>59.2</td><td>91.4</td><td>95.2</td><td>71.7</td><td>98.6</td></tr><tr><td>bigram-FastText</td><td>95.7</td><td>63.9</td><td>94.6</td><td>60.2</td><td>92.5</td><td>96.8</td><td>72.3</td><td>98.6</td></tr><tr><td>VDCNN</td><td>95.7</td><td>64.7</td><td>95.7</td><td>63.0</td><td>91.3</td><td>96.8</td><td>73.4</td><td>98.7</td></tr><tr><td>D-LSTM</td><td>92.6</td><td>59.6</td><td>1</td><td>-</td><td>92.1</td><td>94.9</td><td>73.7</td><td>98.7</td></tr><tr><td>W.C.region.emb</td><td>96.4</td><td>64.9</td><td>95.1</td><td>60.9</td><td>92.8</td><td>97.6</td><td>73.7</td><td>98.9</td></tr><tr><td>C.W.region.emb</td><td>96.2</td><td>64.5</td><td>95.3</td><td>60.8</td><td>92.8</td><td>97.3</td><td>73.4</td><td>98.9</td></tr></table>",
|
| 701 |
+
"bbox": [
|
| 702 |
+
181,
|
| 703 |
+
609,
|
| 704 |
+
816,
|
| 705 |
+
754
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 5
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "Table 2 is the summary of the experimental results. We use underscores to represent the best published results, and bold the best records. On six datasets of eight, our models beat or match the state-of-the-art with a performance gain highest to $0 . 7 \\%$ . We beat all the previous models on all datasets except VDCNN, while the latter performs almost best on all classification tasks before. As a result, we slightly win VDCNN on six datasets and lost in two of Amazon datasets. Detailed experimental results including best performance epoch and training time for all listed datasets are reported in Appendix A. ",
|
| 712 |
+
"bbox": [
|
| 713 |
+
173,
|
| 714 |
+
775,
|
| 715 |
+
823,
|
| 716 |
+
864
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 5
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "Furthermore, the upper layer structure of our models only uses a summing up operation, which is more concise and robust than any other deep or complex models. In fact, both of our two proposed models are effective against previous models. ",
|
| 723 |
+
"bbox": [
|
| 724 |
+
174,
|
| 725 |
+
137,
|
| 726 |
+
823,
|
| 727 |
+
176
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 6
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "4.5 EXPLORATORY EXPERIMENTS ",
|
| 734 |
+
"text_level": 1,
|
| 735 |
+
"bbox": [
|
| 736 |
+
174,
|
| 737 |
+
192,
|
| 738 |
+
423,
|
| 739 |
+
205
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 6
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "text",
|
| 745 |
+
"text": "In this subsection, we are going to do a set of exploratory experiments to study the effect of each component of our model. Typical cases will be analyzed to validate properties of various aspects of our models. Considering the limitation of paper space, we only analyzed the Word-Context region embedding model in our exploratory experiments. ",
|
| 746 |
+
"bbox": [
|
| 747 |
+
174,
|
| 748 |
+
216,
|
| 749 |
+
823,
|
| 750 |
+
267
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 6
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "4.5.1 EFFECT OF REGION SIZE AND EMBEDDING SIZE ",
|
| 757 |
+
"text_level": 1,
|
| 758 |
+
"bbox": [
|
| 759 |
+
176,
|
| 760 |
+
281,
|
| 761 |
+
552,
|
| 762 |
+
294
|
| 763 |
+
],
|
| 764 |
+
"page_idx": 6
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"type": "text",
|
| 768 |
+
"text": "Our method uses a fixed size of region as contextual information just like CNN. So the selection of region size really matters. A small region may lose some long distance patterns, whereas large regions will bring into more noises. Luckily, our models seem to be fairly insensitive towards kinds of datasets. Actually, we just use identical region size 7 for all datasets and it is able to outperform the best published results ever. ",
|
| 769 |
+
"bbox": [
|
| 770 |
+
174,
|
| 771 |
+
302,
|
| 772 |
+
823,
|
| 773 |
+
366
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 6
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "text",
|
| 779 |
+
"text": "Figure 2a describes the performance on Yelp Review Full with different region sizes, and when the size equals to 1, the result is quite close to unigram FastText(accuracy $6 0 . 7 \\%$ ), but still gets a $0 . 6 \\%$ promotion. Intuitively, the middle word cannot influence other words except itself when the size equals to 1. The performance increases with the growth of region size up to 7. ",
|
| 780 |
+
"bbox": [
|
| 781 |
+
173,
|
| 782 |
+
374,
|
| 783 |
+
823,
|
| 784 |
+
425
|
| 785 |
+
],
|
| 786 |
+
"page_idx": 6
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"type": "image",
|
| 790 |
+
"img_path": "images/39bb20cd81b1b28e61ee38b0e0b72bd1dfaae8572c8dfc73a0815d0a845949ca.jpg",
|
| 791 |
+
"image_caption": [
|
| 792 |
+
"Figure 2: Effect of the hyperparameters (region size and embedding size) on Yelp Review Full dataset. (a) shows the comparison of single fixed region size 7 and multi sizes combination [3,5,7] and (b) shows the effect of different settings of embedding size among four kinds of models, unigram FastText, bigram FastText, CNN and ours. We use region size 7 for CNN and ours. "
|
| 793 |
+
],
|
| 794 |
+
"image_footnote": [],
|
| 795 |
+
"bbox": [
|
| 796 |
+
176,
|
| 797 |
+
440,
|
| 798 |
+
820,
|
| 799 |
+
587
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 6
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "text",
|
| 805 |
+
"text": "Furthermore, we experiment our models with the combination of multi region sizes. Here we use the approach of sharing context units among each region, where the parameters of local context units of smaller regions are just the slice of the longest one. Region embeddings of different sizes are concatenated for final classification. In figure 2a, the combination of multi region sizes 3,5,7 is slightly better than the best single region size 7. The effectiveness of multi-size combination can be explained by the difference of influence ranges between words. For example, in sentiment analysis, word very only emphasizes the next word while however may lay stress on a wide range of the following words. ",
|
| 806 |
+
"bbox": [
|
| 807 |
+
173,
|
| 808 |
+
665,
|
| 809 |
+
823,
|
| 810 |
+
767
|
| 811 |
+
],
|
| 812 |
+
"page_idx": 6
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "text",
|
| 816 |
+
"text": "In addition to the analysis of region sizes, we further study the influence of word embedding dimensions. Figure 2b lists the comparative results on Yelp Review Full with different embedding dimensions. The result shows that our model is more robust to overfitting than FastText and CNN with the word embedding dimension increasing. In fact, the amount of parameters in our models is relatively large. Since we learn a specific unit for each word, under the same word embedding dimension, our parameter size has been expanded by region size times, the parameters number is $v \\times h + v \\times ( 2 \\times c + 1 ) \\times h + h \\times m + m$ , where $m$ is the number of classes. Specific numbers parameters for different region sizes are listed in Appendix A. Notice that the sizes of parameters are relatively consistent among $I O 2 4$ in FastText, 1024 in CNN and 128 in ours. ",
|
| 817 |
+
"bbox": [
|
| 818 |
+
173,
|
| 819 |
+
773,
|
| 820 |
+
823,
|
| 821 |
+
888
|
| 822 |
+
],
|
| 823 |
+
"page_idx": 6
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"type": "text",
|
| 827 |
+
"text": "4.5.2 EFFECT OF CONTEXT UNIT ",
|
| 828 |
+
"text_level": 1,
|
| 829 |
+
"bbox": [
|
| 830 |
+
174,
|
| 831 |
+
137,
|
| 832 |
+
415,
|
| 833 |
+
150
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 7
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "In this section, we explore some comparative experiments to show the effectiveness of our proposed word specific context unit. The experiments are employed based on unigram FastText baseline, which has similar upper layer structure with our models. Table 3 illustrates the results. ",
|
| 840 |
+
"bbox": [
|
| 841 |
+
174,
|
| 842 |
+
160,
|
| 843 |
+
823,
|
| 844 |
+
198
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 7
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "table",
|
| 850 |
+
"img_path": "images/851d4fdfd2dd8c9354ebfbd907f234e2a8cc364ded839f86f4aa23193f6c0599.jpg",
|
| 851 |
+
"table_caption": [
|
| 852 |
+
"Table 3: Comparative decomposition results on Yelp Review Full dataset. For FastText(Unigram), embedding dimension is 10. For FastText(Win-pool), W.C.region.emb(Scalar) and W.C.region.emb(our model), region size is 7 and embedding dimension is 128 "
|
| 853 |
+
],
|
| 854 |
+
"table_footnote": [],
|
| 855 |
+
"table_body": "<table><tr><td>Decomposition</td><td>Performance(%)</td></tr><tr><td>FastText(Unigram)</td><td>60.73</td></tr><tr><td>FastText(Win-pool)</td><td>61.01(+0.28)</td></tr><tr><td>W.C.region.emb(Scalar)</td><td>63.18(+2.45)</td></tr><tr><td>W.C.region.emb(Our model)</td><td>64.9(+4.17)</td></tr></table>",
|
| 856 |
+
"bbox": [
|
| 857 |
+
329,
|
| 858 |
+
267,
|
| 859 |
+
667,
|
| 860 |
+
334
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 7
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "Firstly, we remove the entire context units from our model, which means it is just a variant version of unigram FastText, we call it FastText(Win-pool). The difference is that FastText sums up the word embeddings directly while FastText(Win-pool) sums up the window pooled embeddings in a stride of 1. It yields a slightly accuracy gain of $0 . 2 8 \\%$ than unigram FastText. ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
173,
|
| 869 |
+
352,
|
| 870 |
+
825,
|
| 871 |
+
403
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 7
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "Secondly, we apply a simplified scalar version of context units to FastText(Win-pool). Distinguishable, the context unit of each word has the shape with $1 \\times ( 2 \\times c + 1 )$ , hence it can be regarded as a broadcasting operation on corresponding word embeddings of its local context. We name this method W.C.region.emb(Scalar). Compared to the non-scalar method, it yields a huge parameter size reduction, but it already yields a significant gain of $2 . 4 5 \\%$ . ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
174,
|
| 880 |
+
409,
|
| 881 |
+
823,
|
| 882 |
+
473
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 7
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "Furthermore, W.C.region.emb(our model) is the variant version of W.C.region.emb(Scalar) where each column of scalar context unit is expanded to a dense vector. Each word’s context unit has a shape with $h \\times ( 2 \\times c { + } 1 )$ . Adding the low dimensional dense context unit improves the performance by $4 . 1 7 \\%$ . We can sense much from the procedure of decomposition, with the help of context unit, even a simpler scalar version promotes a lot. ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
174,
|
| 891 |
+
479,
|
| 892 |
+
821,
|
| 893 |
+
543
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 7
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "To have a better understanding of what context unit actually capture, heat maps are plotted for chosen word samples. Representative adversarial conjunctions like however, but, modifiers like very, good, bad and nouns like food, morning are listed in Figure 3. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
173,
|
| 902 |
+
551,
|
| 903 |
+
821,
|
| 904 |
+
589
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 7
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "For each row of the figure, the intensity of the surrounding color box reflects the emphasis degree in the view of the middle word. Qualitative but not fully rigorous, a normalized L2-norm of each column in context unit is used to render the shade. Region size 7 is adopted default, annotation $l _ { i } ( \\mathrm { i } \\le 3 )$ is denoted as left columns of the specific context unit, while $r _ { i } ( \\mathrm { i } \\leq 3 )$ denoted as the right part. ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
173,
|
| 913 |
+
595,
|
| 914 |
+
823,
|
| 915 |
+
659
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 7
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "text",
|
| 921 |
+
"text": "What the figure reflects are consistent with intuitive priors of human beings. In the perspective of however, right contexts play the key role for classification polarity because of the emotional reversal, the color is indeed deeper in $r _ { i }$ than $l _ { i }$ , so does but. For word very, $r _ { 1 }$ is more prominent than the rest of all, which captures some modified patterns like very happy or very sad. For word good, tendencies will be completely different for patterns like not good, very good and not that good, which are intensive negative, intensive positive and slightly hesitated, separately, the position of $l _ { 1 }$ will be strengthened as a result, so does word bad. There are significant differences between two nouns food and morning. The heat map of word food implies patterns like delicious food or food was mediocre, while the word morning has fewer valuable patterns for classification. ",
|
| 922 |
+
"bbox": [
|
| 923 |
+
173,
|
| 924 |
+
665,
|
| 925 |
+
823,
|
| 926 |
+
780
|
| 927 |
+
],
|
| 928 |
+
"page_idx": 7
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"type": "text",
|
| 932 |
+
"text": "Actually, from the motivation of word specified context units, we would like to believe this feature helps capture syntactic and semantic influences of words on surrounding words at relative positions. ",
|
| 933 |
+
"bbox": [
|
| 934 |
+
174,
|
| 935 |
+
786,
|
| 936 |
+
823,
|
| 937 |
+
812
|
| 938 |
+
],
|
| 939 |
+
"page_idx": 7
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"type": "text",
|
| 943 |
+
"text": "4.5.3 VISUALIZATION ",
|
| 944 |
+
"text_level": 1,
|
| 945 |
+
"bbox": [
|
| 946 |
+
174,
|
| 947 |
+
826,
|
| 948 |
+
341,
|
| 949 |
+
839
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 7
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "In this subsection, we will try to visualize the contribution of each word and selected phrase to classification. Detailed visualization techniques have been introduced in Li et al. (2015). Here we generalize it to the color rendering of multi-category version. Notice that for our model, not the original embedding acts here, but the accumulation of the projected embedding of each word on its surrounding words. ",
|
| 956 |
+
"bbox": [
|
| 957 |
+
174,
|
| 958 |
+
849,
|
| 959 |
+
823,
|
| 960 |
+
888
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 7
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "image",
|
| 966 |
+
"img_path": "images/d80f79fd5893ceddc980a9e774ce57d694780e54d6e8c6922edb16fc33afb1b7.jpg",
|
| 967 |
+
"image_caption": [
|
| 968 |
+
"Figure 3: Heat maps of chosen words trained on Yelp Review Polarity, which is a binary sentiment analysis dataset. Each row represent the context unit of the middle word. Region size is 7 and embedding size is 128. "
|
| 969 |
+
],
|
| 970 |
+
"image_footnote": [],
|
| 971 |
+
"bbox": [
|
| 972 |
+
388,
|
| 973 |
+
136,
|
| 974 |
+
608,
|
| 975 |
+
311
|
| 976 |
+
],
|
| 977 |
+
"page_idx": 8
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"type": "text",
|
| 981 |
+
"text": "",
|
| 982 |
+
"bbox": [
|
| 983 |
+
173,
|
| 984 |
+
384,
|
| 985 |
+
821,
|
| 986 |
+
409
|
| 987 |
+
],
|
| 988 |
+
"page_idx": 8
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "table",
|
| 992 |
+
"img_path": "images/4a0a60d315cde0e9390177ea56c2e4e1eb05d45ed4e0c6c601c0b643c7c7d6e8.jpg",
|
| 993 |
+
"table_caption": [
|
| 994 |
+
"Table 4: Visualization of chosen samples on Yelp Review Polarity dataset. Green denotes positive contribution while red denotes negative. Two methods are compared without context unit(No C-unit) and with context unit(With C-unit). "
|
| 995 |
+
],
|
| 996 |
+
"table_footnote": [],
|
| 997 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=8>Sentence Samples</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3>Phrase</td></tr><tr><td rowspan=1 colspan=1>No C-unit</td><td rowspan=1 colspan=2>getyour</td><td rowspan=1 colspan=2>wallet</td><td rowspan=1 colspan=1>ready</td><td rowspan=1 colspan=3>theprices</td><td rowspan=1 colspan=1>are</td><td rowspan=1 colspan=1>crazy</td><td rowspan=1 colspan=1>high</td><td rowspan=1 colspan=3> prices are crazy high</td></tr><tr><td rowspan=1 colspan=1>With C-unit</td><td rowspan=1 colspan=4>get your wallet ready</td><td rowspan=1 colspan=4>the prices are crazy</td><td rowspan=1 colspan=1>are</td><td rowspan=1 colspan=1>crazy</td><td rowspan=1 colspan=1>high</td><td rowspan=1 colspan=3> prices are crazy high</td></tr><tr><td rowspan=2 colspan=1>No C-unitWith C-unit</td><td rowspan=2 colspan=1></td><td rowspan=1 colspan=2>nothing</td><td rowspan=1 colspan=3>remarkable</td><td rowspan=1 colspan=1>but</td><td rowspan=1 colspan=1>not</td><td rowspan=1 colspan=1>bad</td><td rowspan=1 colspan=1>either</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>but not bad either</td><td rowspan=2 colspan=1></td></tr><tr><td rowspan=1 colspan=2>nothing</td><td rowspan=1 colspan=4>remarkable but</td><td rowspan=1 colspan=1>not</td><td rowspan=1 colspan=1>bad</td><td rowspan=1 colspan=1>either</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>but not bad either</td></tr></table>",
|
| 998 |
+
"bbox": [
|
| 999 |
+
173,
|
| 1000 |
+
476,
|
| 1001 |
+
825,
|
| 1002 |
+
562
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 8
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "For clarity, we choose a binary classification task of sentiment analysis. In Table 4, we list two cases in Yelp Review Polarity dataset, in which our model behaves as expected. Words and artificially selected phrases are highlighted green if they are positive factors, red if they are negative. The intensity of the color indicates the degree of the polarity. ",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
174,
|
| 1011 |
+
579,
|
| 1012 |
+
825,
|
| 1013 |
+
631
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 8
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "text",
|
| 1019 |
+
"text": "To have a better comparison, the results of with and without context unit methods are both visualized. We abbreviate them as With $C$ -unit and No $C$ -unit, respectively. For sentence get your wallet ready, the prices are crazy high, if no context unit is adopted, the word color reflects its word embedding, which is context-free. The polarity of crazy is positive, and high is negative. Because the intensity of crazy is higher than high, the polarity of phrase prices are crazy high is totally positive, which is a mistake. But with context unit, things have changed quite a bit, the polarities of words are context dependent. Under the influence of high, the positive polarity of crazy vanishes and phrase prices are crazy high performs negative overall. For another case nothing remarkable, but not bad either, things seem more interesting. Without context-unit , remarkable is positive, while nothing, not, bad perform negative, respectively. But with context unit, the polarity of the part ahead of but weakens, meanwhile the polarities of not and bad flips. As a result, phrase but not bad either performs positive overall. ",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
173,
|
| 1022 |
+
637,
|
| 1023 |
+
823,
|
| 1024 |
+
789
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 8
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "5 CONCLUSION ",
|
| 1031 |
+
"text_level": 1,
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
174,
|
| 1034 |
+
807,
|
| 1035 |
+
317,
|
| 1036 |
+
823
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 8
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "This paper proposed two novel architectures for text classification tasks, which learn task specific region embeddings without hand crafted features. To utilize the word specific influences of each word on its context words, a local context unit for each word is learned in addition to word embedding. Our models achieve state-of-the-art performances on six benchmark text classification datasets, and the visualization experiments show that our proposed local context unit can capture the semantic and syntactic information for each word. ",
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
174,
|
| 1045 |
+
836,
|
| 1046 |
+
823,
|
| 1047 |
+
887
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 8
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "text",
|
| 1053 |
+
"text": "",
|
| 1054 |
+
"bbox": [
|
| 1055 |
+
174,
|
| 1056 |
+
137,
|
| 1057 |
+
823,
|
| 1058 |
+
163
|
| 1059 |
+
],
|
| 1060 |
+
"page_idx": 9
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"type": "text",
|
| 1064 |
+
"text": "Noticed the power of the local context unit on learning task related region embeddings, we are interested in its ability to unsupervised and semi-supervised learning. At the same time, we are also curious about whether we can achieve better results by introducing more complex upper layers on text classification, and other natural language processing tasks. ",
|
| 1065 |
+
"bbox": [
|
| 1066 |
+
174,
|
| 1067 |
+
169,
|
| 1068 |
+
823,
|
| 1069 |
+
220
|
| 1070 |
+
],
|
| 1071 |
+
"page_idx": 9
|
| 1072 |
+
},
|
| 1073 |
+
{
|
| 1074 |
+
"type": "text",
|
| 1075 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 1076 |
+
"text_level": 1,
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
174,
|
| 1079 |
+
239,
|
| 1080 |
+
356,
|
| 1081 |
+
254
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 9
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "This paper is supported by National Basic Research Program of China (973 program No.2014CB340505). We gratefully thank the anonymous reviewers for their insightful comments. ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
173,
|
| 1090 |
+
268,
|
| 1091 |
+
821,
|
| 1092 |
+
293
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 9
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "REFERENCES ",
|
| 1099 |
+
"text_level": 1,
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
174,
|
| 1102 |
+
312,
|
| 1103 |
+
285,
|
| 1104 |
+
326
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 9
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "Alexis Conneau, Holger Schwenk, Lo¨ıc Barrault, and Yann Lecun. Very deep convolutional networks for natural language processing. arXiv preprint arXiv:1606.01781, 2016. ",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
169,
|
| 1113 |
+
333,
|
| 1114 |
+
821,
|
| 1115 |
+
359
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 9
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "Rong-En Fan, Kai-Wei Chang, Cho-Jui Hsieh, Xiang-Rui Wang, and Chih-Jen Lin. Liblinear: A library for large linear classification. Journal of machine learning research, 9(Aug):1871–1874, 2008. ",
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
171,
|
| 1124 |
+
366,
|
| 1125 |
+
821,
|
| 1126 |
+
406
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 9
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "Mohit Iyyer, Varun Manjunatha, Jordan Boyd-Graber, and Hal Daume III. Deep unordered compo- ´ sition rivals syntactic methods for text classification. In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), volume 1, pp. 1681–1691, 2015. ",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
173,
|
| 1135 |
+
413,
|
| 1136 |
+
823,
|
| 1137 |
+
465
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 9
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "Thorsten Joachims. Making large-scale svm learning practical. Technical report, Technical Report, SFB 475: Komplexitatsreduktion in Multivariaten Datenstrukturen, Universit ¨ at Dortmund, 1998. ¨ ",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
174,
|
| 1146 |
+
472,
|
| 1147 |
+
823,
|
| 1148 |
+
500
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 9
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "text",
|
| 1154 |
+
"text": "Rie Johnson and Tong Zhang. Effective use of word order for text categorization with convolutional neural networks. arXiv preprint arXiv:1412.1058, 2014. ",
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
173,
|
| 1157 |
+
505,
|
| 1158 |
+
821,
|
| 1159 |
+
533
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 9
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"text": "Rie Johnson and Tong Zhang. Semi-supervised convolutional neural networks for text categorization via region embedding. In Advances in neural information processing systems, pp. 919–927, 2015. ",
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
173,
|
| 1168 |
+
540,
|
| 1169 |
+
821,
|
| 1170 |
+
567
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 9
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. Bag of tricks for efficient text classification. arXiv preprint arXiv:1607.01759, 2016. ",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
173,
|
| 1179 |
+
573,
|
| 1180 |
+
825,
|
| 1181 |
+
600
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 9
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "text",
|
| 1187 |
+
"text": "Yoon Kim. Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882, 2014. ",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
174,
|
| 1190 |
+
608,
|
| 1191 |
+
823,
|
| 1192 |
+
634
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 9
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
169,
|
| 1201 |
+
641,
|
| 1202 |
+
821,
|
| 1203 |
+
668
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 9
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "Siwei Lai, Liheng Xu, Kang Liu, and Jun Zhao. Recurrent convolutional neural networks for text classification. In AAAI, volume 333, pp. 2267–2273, 2015. ",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
171,
|
| 1212 |
+
675,
|
| 1213 |
+
825,
|
| 1214 |
+
703
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 9
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "Jiwei Li, Xinlei Chen, Eduard Hovy, and Dan Jurafsky. Visualizing and understanding neural models in nlp. arXiv preprint arXiv:1506.01066, 2015. ",
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
171,
|
| 1223 |
+
709,
|
| 1224 |
+
823,
|
| 1225 |
+
736
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 9
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "Andrew McCallum, Kamal Nigam, et al. A comparison of event models for naive bayes text classification. In AAAI-98 workshop on learning for text categorization, volume 752, pp. 41–48. Madison, WI, 1998. ",
|
| 1232 |
+
"bbox": [
|
| 1233 |
+
171,
|
| 1234 |
+
743,
|
| 1235 |
+
821,
|
| 1236 |
+
782
|
| 1237 |
+
],
|
| 1238 |
+
"page_idx": 9
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"type": "text",
|
| 1242 |
+
"text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013. ",
|
| 1243 |
+
"bbox": [
|
| 1244 |
+
168,
|
| 1245 |
+
789,
|
| 1246 |
+
821,
|
| 1247 |
+
828
|
| 1248 |
+
],
|
| 1249 |
+
"page_idx": 9
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"type": "text",
|
| 1253 |
+
"text": "Bo Pang, Lillian Lee, and Shivakumar Vaithyanathan. Thumbs up?: sentiment classification using machine learning techniques. In Proceedings of the ACL-02 conference on Empirical methods in natural language processing-Volume 10, pp. 79–86. Association for Computational Linguistics, 2002. ",
|
| 1254 |
+
"bbox": [
|
| 1255 |
+
173,
|
| 1256 |
+
836,
|
| 1257 |
+
821,
|
| 1258 |
+
887
|
| 1259 |
+
],
|
| 1260 |
+
"page_idx": 9
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"type": "text",
|
| 1264 |
+
"text": "Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew $\\mathrm { N g }$ and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pp. 1631–1642, 2013. ",
|
| 1265 |
+
"bbox": [
|
| 1266 |
+
173,
|
| 1267 |
+
137,
|
| 1268 |
+
823,
|
| 1269 |
+
188
|
| 1270 |
+
],
|
| 1271 |
+
"page_idx": 10
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"text": "Duyu Tang, Bing Qin, and Ting Liu. Document modeling with gated recurrent neural network for sentiment classification. In EMNLP, pp. 1422–1432, 2015. ",
|
| 1276 |
+
"bbox": [
|
| 1277 |
+
171,
|
| 1278 |
+
197,
|
| 1279 |
+
821,
|
| 1280 |
+
224
|
| 1281 |
+
],
|
| 1282 |
+
"page_idx": 10
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. Attention is all you need. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 6000–6010. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/7181-attention-is-all-you-need.pdf. ",
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
174,
|
| 1289 |
+
231,
|
| 1290 |
+
823,
|
| 1291 |
+
295
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 10
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "text",
|
| 1297 |
+
"text": "Sida Wang and Christopher D Manning. Baselines and bigrams: Simple, good sentiment and topic classification. In Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics: Short Papers-Volume 2, pp. 90–94. Association for Computational Linguistics, 2012. ",
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
173,
|
| 1300 |
+
304,
|
| 1301 |
+
823,
|
| 1302 |
+
343
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 10
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "text",
|
| 1308 |
+
"text": "Yijun Xiao and Kyunghyun Cho. Efficient character-level document classification by combining convolution and recurrent layers. arXiv preprint arXiv:1602.00367, 2016. ",
|
| 1309 |
+
"bbox": [
|
| 1310 |
+
174,
|
| 1311 |
+
350,
|
| 1312 |
+
823,
|
| 1313 |
+
377
|
| 1314 |
+
],
|
| 1315 |
+
"page_idx": 10
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "text",
|
| 1319 |
+
"text": "Dani Yogatama, Chris Dyer, Wang Ling, and Phil Blunsom. Generative and discriminative text classification with recurrent neural networks. stat, 1050:6, 2017. ",
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
173,
|
| 1322 |
+
385,
|
| 1323 |
+
821,
|
| 1324 |
+
412
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 10
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "text",
|
| 1330 |
+
"text": "Xiang Zhang and Yann LeCun. Text understanding from scratch. arXiv preprint arXiv:1502.01710, 2015. ",
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
173,
|
| 1333 |
+
420,
|
| 1334 |
+
821,
|
| 1335 |
+
446
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 10
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"text": "Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification. In Advances in neural information processing systems, pp. 649–657, 2015. ",
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
174,
|
| 1344 |
+
454,
|
| 1345 |
+
821,
|
| 1346 |
+
482
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 10
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "text",
|
| 1352 |
+
"text": "APPENDIX ",
|
| 1353 |
+
"text_level": 1,
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
174,
|
| 1356 |
+
135,
|
| 1357 |
+
278,
|
| 1358 |
+
150
|
| 1359 |
+
],
|
| 1360 |
+
"page_idx": 11
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"type": "text",
|
| 1364 |
+
"text": "A DETAILED EXPERIMENTAL RESULTS ",
|
| 1365 |
+
"text_level": 1,
|
| 1366 |
+
"bbox": [
|
| 1367 |
+
176,
|
| 1368 |
+
167,
|
| 1369 |
+
509,
|
| 1370 |
+
181
|
| 1371 |
+
],
|
| 1372 |
+
"page_idx": 11
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"type": "text",
|
| 1376 |
+
"text": "To have a further insight about our reported results, we list the training time and best testing performance epoch for kinds of region sizes(5,7,9) in detail. For all the 8 datasets in Table 5, hyperparameters are kept in line with section 4.3. The dimension of word embedding is 128, the region size is 7, the initial learning rate is set to $1 \\times 1 0 ^ { - 4 }$ , and the batch size is 16. Epoch index starts from 0 and training time is reported per epoch. We choose the model of word-context region embedding here. ",
|
| 1377 |
+
"bbox": [
|
| 1378 |
+
174,
|
| 1379 |
+
195,
|
| 1380 |
+
823,
|
| 1381 |
+
260
|
| 1382 |
+
],
|
| 1383 |
+
"page_idx": 11
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "table",
|
| 1387 |
+
"img_path": "images/c7344c3fadf72816e2973c847a64bdb9fa62b548521438748c2139c022e1a8d7.jpg",
|
| 1388 |
+
"table_caption": [
|
| 1389 |
+
"Table 5: Experimental detailed records on several datasets "
|
| 1390 |
+
],
|
| 1391 |
+
"table_footnote": [],
|
| 1392 |
+
"table_body": "<table><tr><td>Dataset</td><td>Vocabulary Size</td><td>W.C Region Size</td><td>Parameters Number</td><td>Best Epoch</td><td>Training Time(Mins)</td><td>Accuracy(%)</td></tr><tr><td rowspan=\"3\">Yelp P.</td><td rowspan=\"3\">115298</td><td>5</td><td>88,549,122</td><td>3</td><td>27</td><td>96.34</td></tr><tr><td>7</td><td>118,065,410</td><td>3</td><td>36</td><td>96.39</td></tr><tr><td>9</td><td>147,581,698</td><td>3</td><td>43</td><td>96.38</td></tr><tr><td rowspan=\"3\">Yelp F.</td><td rowspan=\"3\">124273</td><td>5</td><td>95,442,309</td><td>3</td><td>34</td><td>64.73</td></tr><tr><td>7</td><td>127,256,197</td><td>2</td><td>43</td><td>64.90</td></tr><tr><td>9</td><td>159,070,085</td><td>2</td><td>52</td><td>64.74</td></tr><tr><td rowspan=\"3\">Amz. P.</td><td rowspan=\"3\">394385</td><td>5</td><td>302,887,938</td><td>2</td><td>336</td><td>95.07</td></tr><tr><td>7</td><td>403,850,498</td><td>2</td><td>402</td><td>95.23</td></tr><tr><td>9</td><td>504,813,058</td><td>2</td><td>589</td><td>95.06</td></tr><tr><td rowspan=\"3\">Amz. F.</td><td rowspan=\"3\">356312</td><td>5</td><td>273,648,261</td><td>1</td><td>300</td><td>60.83</td></tr><tr><td>7</td><td>364,864,133</td><td>1</td><td>395</td><td>60.93</td></tr><tr><td>9</td><td>456,080,005</td><td>1</td><td>490</td><td>61.05</td></tr><tr><td rowspan=\"3\">AG</td><td rowspan=\"3\">42783</td><td>5</td><td>32,857,860</td><td>6</td><td>2</td><td>92.81</td></tr><tr><td>7</td><td>43,810,308</td><td>4</td><td>3</td><td>92.89</td></tr><tr><td>9</td><td>54,762,756</td><td>5</td><td>4</td><td>92.82</td></tr><tr><td rowspan=\"3\">Sogou</td><td rowspan=\"3\">99394</td><td>5</td><td>76,335,237</td><td>7</td><td>27</td><td>97.6</td></tr><tr><td>7</td><td>101,780,101</td><td>9</td><td>33</td><td>97.63</td></tr><tr><td>9</td><td>127,224,965</td><td>10</td><td>39</td><td>97.56</td></tr><tr><td rowspan=\"3\">Yah.A.</td><td rowspan=\"3\">361926</td><td>5</td><td>277,960,458</td><td>1</td><td>160</td><td>73.42</td></tr><tr><td>7</td><td>370,613,514</td><td>1</td><td>210</td><td>73.66</td></tr><tr><td>9</td><td>463,266,570</td><td>2</td><td>256</td><td>73.68</td></tr><tr><td rowspan=\"3\">DBP</td><td rowspan=\"3\">227863</td><td>5</td><td>175,000,590</td><td>3</td><td>37</td><td>98.87</td></tr><tr><td>7</td><td>233,333,518</td><td>2</td><td>48</td><td>98.89</td></tr><tr><td>9</td><td>291,666,446</td><td>3</td><td>60</td><td>98.94</td></tr></table>",
|
| 1393 |
+
"bbox": [
|
| 1394 |
+
179,
|
| 1395 |
+
294,
|
| 1396 |
+
816,
|
| 1397 |
+
630
|
| 1398 |
+
],
|
| 1399 |
+
"page_idx": 11
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"text": "We also report results of several repeated runs in Table 6 to exclude the effect of randomness and ensure reproducibility. Five independent runs are conducted on each dataset of Yelp.P and Yelp.F, where both performance variances are within $0 . 1 1 \\%$ on accuracy. ",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
174,
|
| 1406 |
+
643,
|
| 1407 |
+
823,
|
| 1408 |
+
681
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 11
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "table",
|
| 1414 |
+
"img_path": "images/ae0c82de8dfce76f2770bd1e9d693b1c71160217f8930efc04d49ddca8b3e217.jpg",
|
| 1415 |
+
"table_caption": [
|
| 1416 |
+
"Table 6: Performance variances through several repeated runs on Yelp Datasets "
|
| 1417 |
+
],
|
| 1418 |
+
"table_footnote": [],
|
| 1419 |
+
"table_body": "<table><tr><td>Dataset</td><td>Tries Num.</td><td>W.C region size</td><td>Best Epoch</td><td>Accuracy(%)</td><td>Performance Variance</td></tr><tr><td rowspan=\"5\">Yelp P.</td><td>0</td><td>7</td><td>3</td><td>96.39</td><td rowspan=\"5\">≤%0.11</td></tr><tr><td>1</td><td>7</td><td>4</td><td>96.36</td></tr><tr><td>2</td><td>7</td><td>4</td><td>96.41</td></tr><tr><td>3</td><td>7</td><td>3</td><td>96.38</td></tr><tr><td>4</td><td>7</td><td>2</td><td>96.46</td></tr><tr><td rowspan=\"5\">Yelp F.</td><td>0</td><td>7</td><td>2</td><td>64.90</td><td rowspan=\"5\">≤%0.11</td></tr><tr><td>1</td><td>7</td><td>2</td><td>64.94</td></tr><tr><td>2</td><td>7</td><td>1</td><td>64.87</td></tr><tr><td>3</td><td>7</td><td>1</td><td>64.86</td></tr><tr><td>4</td><td>7</td><td>2</td><td>64.98</td></tr></table>",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
173,
|
| 1422 |
+
723,
|
| 1423 |
+
825,
|
| 1424 |
+
868
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 11
|
| 1427 |
+
}
|
| 1428 |
+
]
|
parse/train/BkSDMA36Z/BkSDMA36Z_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BkSDMA36Z/BkSDMA36Z_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/ByeSdsC9Km/ByeSdsC9Km.md
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ADAPTIVE POSTERIOR LEARNING: FEW-SHOT LEARNING WITH A SURPRISE-BASED MEMORY MODULE
|
| 2 |
+
|
| 3 |
+
Tiago Ramalho
|
| 4 |
+
Cogent Labs
|
| 5 |
+
tramalho@cogent.co.jp
|
| 6 |
+
Marta Garnelo
|
| 7 |
+
DeepMind
|
| 8 |
+
garnelo@google.com
|
| 9 |
+
|
| 10 |
+
# ABSTRACT
|
| 11 |
+
|
| 12 |
+
The ability to generalize quickly from few observations is crucial for intelligent systems. In this paper we introduce APL, an algorithm that approximates probability distributions by remembering the most surprising observations it has encountered. These past observations are recalled from an external memory module and processed by a decoder network that can combine information from different memory slots to generalize beyond direct recall. We show this algorithm can perform as well as state of the art baselines on few-shot classification benchmarks with a smaller memory footprint. In addition, its memory compression allows it to scale to thousands of unknown labels. Finally, we introduce a meta-learning reasoning task which is more challenging than direct classification. In this setting, APL is able to generalize with fewer than one example per class via deductive reasoning.
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
Consider the following sequential decision problem: at every iteration of an episode we are provided with an image of a digit (e.g. MNIST) and an unknown symbol. Our goal is to output a digit $Y = X + S$ where $X$ is the value of the MNIST digit, and $S$ is a numerical value that is randomly assigned to the unknown symbol at the beginning of each episode. After seeing only a single instance of a symbol an intelligent system should not only be able to infer the value $S$ of the symbol but also to correctly generalize the operation associated with the symbol to any other digit in the remaining iterations of that episode.
|
| 17 |
+
|
| 18 |
+
Despite its simplicity, this task emphasizes three cognitive abilities that a generic learning algorithm should display: 1. the algorithm can learn a behaviour and then flexibly apply it to a range of different tasks using only a few context observations at test time; 2. the algorithm can memorize and quickly recall previous experiences for quick adaptation; and 3. the algorithm can process these recalled memories in a non-trivial manner to carry out tasks that require reasoning.
|
| 19 |
+
|
| 20 |
+
The first point is commonly described as “learning to learn” or meta-learning, and represents a new way of looking at statistical inference (Schmidhuber, 1987; Bengio et al., 1990; Bengio & LeCun, 2007). Traditional neural networks are trained to approximate arbitrary probability distributions with great accuracy by parametric adaptation via gradient descent (LeCun et al., 2015; Schmidhuber, 2015). After training that probability distribution is fixed and neural networks can only generalize well when the testing distribution matches the training distribution (Neyshabur et al., 2017). In contrast, meta-learning systems are trained to learn an algorithm that infers a function directly from the observations it receives at test time. This setup is more flexible than the traditional approach and generalizes better to unseen distributions as it incorporates new information even after the training phase is over. It also allows these models to improve their accuracy as they observe more data, unlike models which learn a fixed distribution.
|
| 21 |
+
|
| 22 |
+
The second requirement - being able to memorize and efficiently recall previous experience - is another active area of research. Storing information in a model proves especially challenging as we move beyond small toy-examples to tasks with higher dimensional data or real-world problems.
|
| 23 |
+
|
| 24 |
+
Current methods often work around this by summarizing past experiences in one lower-dimensional representation (Hochreiter & Schmidhuber, 1997; Kingma & Welling, 2013) or using memory modules (Graves et al., 2016). While the former approach can produce good results, the representation and therefore the amount of information we can ultimately encode with such models will be of a fixed and thus limited size. Working with neural memory modules, on the other hand, presents its own challenges as learning to store and keep the right experiences is not trivial. In order to successfully carry out the task defined at the beginning of this paper a model should learn to capture information about a flexible and unbounded number of symbols observed in an episode without storing redundant information.
|
| 25 |
+
|
| 26 |
+
Finally, reasoning requires processing recalled experiences in order to apply the information they contain to the current data point being processed. In simple cases such as classification, it is enough to simply recall memories of similar data points and directly infer the current class by combining them using a weighted average or a simple kernel (Vinyals et al., 2016; Snell et al., 2017), which limits the models to performing interpolation. In the example mentioned above, more complex reasoning is necessary for human-level generalisation.
|
| 27 |
+
|
| 28 |
+
In this paper we introduce Approximate Posterior Learning (APL, pronounced like the fruit), a self-contained model and training procedure that address these challenges. APL learns to carry out few-shot approximation of new probability distributions and to store only as few context points as possible in order to carry out the current task. In addition it learns how to process recalled experiences to carry out tasks of varying degrees of complexity. This sequential algorithm was inspired by Bayesian posterior updating (Jaynes, 2003) in the sense that the output probability distribution is updated as more data is observed.
|
| 29 |
+
|
| 30 |
+
We demonstrate that APL can deliver accuracy comparable to other state-of-the-art algorithms in standard few-shot classification benchmarks while being more data efficient. We also show it can scale to a significantly larger number of classes while retaining good performance. Finally, we apply APL to the reasoning task introduced as motivation and verify that it can perform the strong generalization we desire.
|
| 31 |
+
|
| 32 |
+
The main contributions of this paper are:
|
| 33 |
+
|
| 34 |
+
• A simple memory controller design which uses a surprise-based signal to write the most predictive items to memory. By not needing to learn what to write, we avoid costly backpropagation through memory which makes the setup easier and faster to train. This design also minimizes how much data is stored, making our method more memory efficient. • An integrated external and working memory architecture which can take advantage of the best of both worlds: scalability and sparse access provided by the working memory; and all-to-all attention and reasoning provided by a relational reasoning module. • A training setup which steers the system towards learning an algorithm which approximates the posterior without backpropagating through the whole sequence of data in an episode.
|
| 35 |
+
|
| 36 |
+
# 2 MODEL
|
| 37 |
+
|
| 38 |
+
# 2.1 ARCHITECTURE
|
| 39 |
+
|
| 40 |
+
Our proposed model is composed of a number of parts: an encoder that generates a representation for the incoming query data; an external memory store which contains previously seen representation/ data pairings with writing managed by a memory controller; and a decoder that ingests the query representation as well as data from the memory store to generate a probability distribution over targets. We describe each of the parts in detail below1.
|
| 41 |
+
|
| 42 |
+
Encoder The encoder is a function which takes in arbitrary data $x _ { t }$ and converts it to a representation $e _ { t }$ of (usually) lower dimensionality. In all our experiments $x _ { t }$ is an image, and we therefore choose a convolutional network architecture for the encoder. Architectural details of the encoder used for each of the experiments are provided in the appendix.
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
Figure 1: APL model applied to the the classification of an Omniglot image. The encoded image is compared to the entries of the memory and the most relevant ones are passed through a decoder that outputs a probability distribution over the labels. The dotted line indicates the parts of the graph that are not updated via back-propagation.
|
| 46 |
+
|
| 47 |
+
Memory store The external memory module is a database containing the stored experiences. Each of the columns corresponds to one of the attributes of the data. In the case of classification, for example, we would store two columns: the embedding $e _ { m }$ and the true label $y _ { m }$ . Each of the rows contains the information for one data point. The memory module is queried by finding the k-nearest neighbors between a query and the data in a given column. The full row data for each of the neighbors is returned for later use. The distance metric used to calculate proximity between the points is an open choice, and here we always use euclidean distance.
|
| 48 |
+
|
| 49 |
+
Since we are not backpropagating through the memory, how do we ensure that the neighbors returned by the querying mechanism contain task-relevant information? We expect that class-discriminative embeddings produced by the encoder should cluster together in representation space, and therefore should be close in the sense of euclidean distance. While this is not mathematically necessary, in the following sections we will show that APL as proposed does work and retrieve the correct neighbors which means that in practice our intuition holds true.
|
| 50 |
+
|
| 51 |
+
Memory controller We use a simple memory controller which tries to minimize the amount of data points written to memory. Let us define surprise as the quantity associated with the prediction for label $y _ { t }$ as ${ \bf S } = - l n ( y _ { t } )$ . Intuitively, this means that the higher the probability our model assigns to the true class, the less surprised it will be.
|
| 52 |
+
|
| 53 |
+
This suggests a way of storing the minimal amount of data points in memory which supports maximal classification accuracy. If a data point is ’surprising’, it should be stored in memory; otherwise it can be safely discarded as the model can already classify it correctly.
|
| 54 |
+
|
| 55 |
+
How should the memory controller decide whether a point is ’surprising’? In this work we choose the simplest possible controller: if the surprise is greater than some hyperparameter $\sigma$ , then that data should be stored in memory. For our experiments, we choose $\sigma \propto - \ln ( N )$ where $N$ is the number of classes under classification which means that if the prediction confidence in the correct class is smaller than the probability assigned by a uniform prediction the value should be written to memory. In the appendix we show that after model training model performance is robust to variations in $\sigma$ , as surprise becomes highly bimodal: a new data point tends to be either highly surprising (never seen something similar before) or not very surprising.
|
| 56 |
+
|
| 57 |
+
Conveniently, in the case of classification problems the commonly used cross-entropy loss reduces to our measure of surprise directly, and we therefore use the prediction loss as an input to the memory controller directly.
|
| 58 |
+
|
| 59 |
+
Decoder The decoder takes as input the query representation as well as all the data from the neighbors found in the external memory. We designed a relational feed-forward module with self attention which takes particular advantage of the external memory architecture. In addition we tested two other established decoder architectures: an unrolled relational working memory core and an unrolled LSTM. As all experiments have a classification loss at the end, all the decoders return a vector with logits for the $N$ classes under consideration. Full details of each architecture are provided in the Appendix.
|
| 60 |
+
|
| 61 |
+
• Relational self-attention feed-forward decoder. The relational feed-forward module (see figure 2, left) processes each of the neighbors individually by comparing them with the query, and then does a cross-element comparison with a self-attention module before reducing the activations with an attention vector calculated from neighbor distances.
|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
Figure 2: Two of the three different decoder architectures of APL: relational feed-forward memory (left) and relational working memory (Santoro et al., 2018) (right). In the figure $e _ { t }$ corresponds to the encoded target, $e _ { 1 \dots m }$ to the encoded observations from the memory, $l _ { 1 . . . m } = f ( y _ { 1 . . . m } )$ are the labels processed by an embedding layer and $d _ { 1 \dots m }$ is the distance between $e _ { t }$ and $e _ { 1 \dots m }$ .
|
| 65 |
+
|
| 66 |
+
• Relational working memory decoder (Santoro et al., 2018) The relational working memory module (figure 2, right) takes in the concatenated neighbor embeddings and corresponding label embeddings as its initial memory state. The query is fed a number $N$ times as input to the relational memory core to unroll the computation.
|
| 67 |
+
|
| 68 |
+
• LSTM decoder Finally we also test a vanilla LSTM decoder that takes in the query as the initial memory state and is fed each of the concatenated neighbor embeddings and corresponding label embeddings as its input each time step.
|
| 69 |
+
|
| 70 |
+
# 2.2 TRAINING SETUP
|
| 71 |
+
|
| 72 |
+
Since we are looking for a system which can update its beliefs in an online manner we need a training procedure that reflect this behaviour. We train the system over a sequence of episodes that are composed of sequences of pairs $( x _ { t } , y _ { t } )$ . At the start of every episode the mapping $x _ { t } y _ { t }$ is shuffled in a deterministic manner (the exact details are task dependent and will be outlined in the experiments section). The data is then presented to the model sequentially in a random order. The model’s memory is empty at the beginning of the episode.
|
| 73 |
+
|
| 74 |
+
At each time step, a batch of examples is shown to the model and a prediction is made. We then measure the instantaneous loss $L ( \hat { y } _ { t } , y _ { t } )$ and perform a gradient update step on the network to minimize the loss on that batch alone. The loss is also fed to the memory controller for the network to decide whether to write to memory. In all the experiments below the task is to classify some quantity, therefore we use cross entropy loss throughout.
|
| 75 |
+
|
| 76 |
+

|
| 77 |
+
Figure 3: APL training over several iterations. The encoder $e$ embeds the query image that is compared against the stored experiences in the memory $M$ . Matches are fed alongside the encoded image into a decoder $d$ . Finally, the controller $c$ decides whether the currently observed example should be stored in memory.
|
| 78 |
+
|
| 79 |
+
APL learns a sequential update algorithm, that is, it minimizes the expected loss over an episode consisting of a number of data elements presented sequentially. However we don’t need to backpropagate through the sequence to learn the algorithm. Rather, the model’s parameters are updated to minimize the cross-entropy loss independently at each time step. Therefore the only pressure to learn a sequential algorithm comes from the fact that episodes are kept small so that the decoder is encouraged to read the information coming from the queried neighbors instead of just learning to fit the current episode’s label mapping in its weights after a few steps of gradient descent (which is what happens in the case of MAML (Finn et al., 2017)).
|
| 80 |
+
|
| 81 |
+
# 3 RELATED WORK
|
| 82 |
+
|
| 83 |
+
Meta-learning as a research field covers a large number of areas. The concept of ‘learning to learn’ is not tied to a specific task and thus meta-learning algorithms have been successfully applied to a wide range of challenges like RL (Wang et al., 2016; Finn et al., 2017), program induction (Devlin et al., 2017) few-shot classification (Koch et al., 2015; Vinyals et al., 2016) and scene understanding (Eslami et al., 2018).
|
| 84 |
+
|
| 85 |
+
Some meta learning models generate predictions in an autoregressive fashion by predicting the next target point from the entire prior sequence of consecutive observations (Reed et al., 2018; Mishra et al., 2018). Algorithms of this kind have delivered state-of-the art results in a range of tasks such as supervised learning to classification. Nonetheless their reliance on the full context history in addition to their autoregressive nature hinders parallelization and hurts performance and scalability.
|
| 86 |
+
|
| 87 |
+
Another set of methods is based on the nearest neighbours approach (Koch et al., 2015; Vinyals et al., 2016; Snell et al., 2017). These methods use an encoder to find a suitable embedding and then perform a memory look up based on these representations. The result is a weighted average of the returned labels. As shown in (Mishra et al., 2018) using a pure distance metric to compare neighbors results in worse performance than allowing a network to learn a comparison function. These kinds of methods thus suffer in comparison. Meta Networks (Munkhdalai & Yu, 2017) also use an external memory to enable learning from previous examples combined with a model featuring slow and fast weights to produce the output, enabling them to state-of-the-art performance in several benchmarks.
|
| 88 |
+
|
| 89 |
+
Conditional neural processes (Garnelo et al., 2018) summarize the data into a fixed representation by averaging over the outputs of an encoder. This representation is fed into a decoder together with a query to produce the output. These methods are more space and compute efficient but given the fixed and averaged representation may not scale to very large problems.
|
| 90 |
+
|
| 91 |
+
All of the above methods expect a fixed size context, thereby making life-long learning over large time horizons difficult. To enable this, an algorithm must learn to only write observations into memory when they provide additional predictive power. Memory augmented neural networks (MANN) (Santoro et al., 2016) achieve this by learning a controller to write into a differentiable neural dictionary. However, this requires backpropagating through the entire sequence to learn, which makes credit assignment over long time sequences hard and is computationally expensive. The idea of using an external memory module has been explored in (Kaiser et al., 2017) and shown to produce good results. Compared to that work we introduce a simpler writing mechanism and the idea of a relational decoder to exploit the nearest neighbor structure.
|
| 92 |
+
|
| 93 |
+
# 4 EXPERIMENTS
|
| 94 |
+
|
| 95 |
+
# 4.1 FEW-SHOT OMNIGLOT CLASSIFICATION
|
| 96 |
+
|
| 97 |
+
The Omniglot dataset contains 1623 characters with 20 examples each. 1200 of the character classes are assigned to the train set while the remaining 423 are part of the test set. The examples are presented to the model sequentially in batches of 16 examples. For each episode, we choose $N$ classes and shuffle their labels. We then run an episode for a certain number of steps, which is decreased as the model’s accuracy increases to encourage quick adaptation. This means that the model accuracy and number of memories written to memory is time dependent.
|
| 98 |
+
|
| 99 |
+
We follow an architecture similar to those used in previous work for the image encoder (Vinyals et al., 2016; Mishra et al., 2018), which consists of four convolutional blocks with 3x3 convolutions, relu and batch normalization. We augment the number of classes in the training set by rotating each symbol 90, 180 and 270 degrees as in previous work (Santoro et al., 2016). For this task, we found that all three decoder architectures perform similarly. A detailed comparison and all hyperparameters needed to reproduce this experiment are provided in the Appendix.
|
| 100 |
+
|
| 101 |
+
In Figure 4a we can see the behavior of the algorithm within a single episode. As it sees more examples its performance increases until it saturates at some point, when additional writes don’t help anymore (assuming the exact same data piece won’t be seen again, which is the regime we always assume here). In the simple case of 5-way Omniglot classification, fewer than 2 examples per class are sufficient to saturate performance.
|
| 102 |
+
|
| 103 |
+
In Figure 4b we demonstrate the evolution of the posterior distribution in 20-way classification for 3 different, fixed inputs. For the first step, where the memory is empty APL learns to output a uniform distribution $( p \simeq 1 / N$ with $\mathbf { N }$ the number of classes under classification). As more examples are added to memory, its distribution refines until it sees an informative example for that class, at which point its prediction becomes very confident.
|
| 104 |
+
|
| 105 |
+
In Figure 4c we can see that different numbers of examples are written to memory for different classes, which demonstrates one of the advantages of this framework: we only need to store as many examples as each class requires, therefore if some classes may be more easily classified than others we can optimally use memory. In contrast, other models feed in a fixed context size per class which means they will either suffer in accuracy or use excessive memory.
|
| 106 |
+
|
| 107 |
+

|
| 108 |
+
Figure 4: a) Accuracy and size of memory for 5-way Omniglot. APL stops writing to memory after having 2 examples per class for 5-way classification. b), examples of evolution of posterior distribution for 20-way classification for 3 images. The distribution starts as uniform for the very first step, then starts to change as more items are added to memory. When the correct class is seen, the distribution converges. c), the number of labels stored in memory per class is highly heterogeneous. In this 20-way problem, APL stored 44 items in memory and achieved $9 8 . 5 \%$ accuracy, which is higher than its homogeneous 5-shot accuracy. d) Accuracy vs. number of items written to memory for 1000-way classification. Classification accuracy when only 2000 examples have been written to memory (on average 2 examples per class) surpasses the accuracy for a fixed context size of 5 examples per class.
|
| 109 |
+
|
| 110 |
+
Despite the previous point, it is also worthwhile comparing model accuracy to existing baselines with a fixed context size. To this end, we pre-populate the memory of a trained model with 1 or 5 examples per class and calculate the accuracy over the test set. We emphasize that the model was not trained to do well in this fixed-context scenario, and yet for 1 and 5-shot classification we obtain performance comparable to state-of-the-art models without having extensively tuned hyperparameters. Furthermore we tested our model with a much higher number of classes: 423-way classification where where we can use the whole test set, and 1000-way where the test set is augmented with rotations of the characters as we do in training.
|
| 111 |
+
|
| 112 |
+
Finally, we test how the model fares on a completely new distribution, MNIST. For 1-shot, 10-way MNIST, APL trained on 20-way omniglot classification obtains $61 \%$ accuracy (compared to $72 \%$ cited by (Vinyals et al., 2016)). Testing our model in the sequential regime, we observe that it continues writing examples to memory as it sees surprising observations, which allows it to correct for the distribution shift. After writing 45 examples per class, it reaches an accuracy of $86 \%$ (there are 1000 examples per class in the MNIST test set, so it is not simply memorizing).
|
| 113 |
+
|
| 114 |
+
Table 1: Omniglot test accuracies for fixed context sizes compared to other baselines. († For 1000- way classification rotated pseudoclasses are used.)
|
| 115 |
+
|
| 116 |
+
<table><tr><td rowspan="2"></td><td colspan="2">5-way</td><td colspan="2">20-way</td><td colspan="2">423-way</td><td colspan="2">1000-way†</td></tr><tr><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td></tr><tr><td>Matching nets</td><td>98.1%</td><td>98.9%</td><td>93.8%</td><td>98.5%</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CNP</td><td>95.3%</td><td>98.5%</td><td>89.9%</td><td>96.8%</td><td>-</td><td>-</td><td>-</td><td></td></tr><tr><td>MANN</td><td>82.2%</td><td>94.9%</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>MAML</td><td>98.7%</td><td>99.9%</td><td>95.8%</td><td>98.9%</td><td></td><td>-</td><td>-</td><td></td></tr><tr><td>SNAIL</td><td>99.07%</td><td>99.78%</td><td>97.64%</td><td>99.35%</td><td>-</td><td>-</td><td>1</td><td>-</td></tr><tr><td>APL</td><td>97.9%</td><td>99.9%</td><td>97.2%</td><td>97.6%</td><td>73.5%</td><td>88.0%</td><td>68.9%</td><td>78.9%</td></tr></table>
|
| 117 |
+
|
| 118 |
+
# 4.2 IMAGENET
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
Figure 5: Evolution of top-1 accuracy and number of written examples to memory over a single episode for the Imagenet dataset. Curves are averages over 5 test episodes and smoothed with exponential moving average.
|
| 122 |
+
|
| 123 |
+
We also applied our model to the full scale imagenet dataset. Unlike the above experiments there are no held out classes for testing, as the dataset was not conceived with held out classes in mind. Instead, we rely on shuffling the labels amongst the 1000 Imagenet classes and using the images from the test set for evaluation. This means the generalization results are slightly weaker than in the above sections, but they still provide important insights as to the scalability of our method to thousands of classes and applicability to harder scenarios.
|
| 124 |
+
|
| 125 |
+
As an encoder we use the pretrained Inception-ResNet-v2 (Szegedy et al., 2017) due to computational constraints. For the fixed label case, this network reaches a top-1 accuracy of $8 0 . 4 \%$ . Training the encoder end-to-end might produce better results, an investigation which we leave to later work.
|
| 126 |
+
|
| 127 |
+
In the 20-way classification challenge, our method reaches $8 6 . 7 \%$ top-1 accuracy (average accuracy after 50 iterations). Performance remains very high for 100-way $7 2 . 9 \%$ top-1 accuracy). The model’s performance degrades somewhat $( 5 2 . 6 \%$ top-1 accuracy) for 1000-way classification, where all the classes are shuffled. This highlights that large scale meta-learning on real world datasets remains a challenge even when all the classes have been observed by the encoder, as in this case.
|
| 128 |
+
|
| 129 |
+
# 4.3 NUMBER ANALOGY
|
| 130 |
+
|
| 131 |
+
The number analogy task challenges a meta-learning model to use logic reasoning to generalize with fewer than 1 example per possible class (Figure 6). At each time step the network is shown two pieces of data, a number $X$ and a symbol $S$ . It is asked to classify the result of $X + S$ based only on the current data and its previous experiments. We experiment with two levels of difficulty for this task: in the first, the number values are fixed and correspond to the MNIST digits, while there are
|
| 132 |
+
|
| 133 |
+
10 different symbols with unknown values in each episode; in the second, both digits and symbols have shuffled values. We sample the symbol values in the range $[ - 1 0 , 1 0 ]$ .
|
| 134 |
+
|
| 135 |
+
When querying the memory, we query $k$ neighbors via the number embeddings and $k$ neighbors via the symbol embeddings. This makes sure that any relevant information to the problem is available to the reasoning module. The rest of the training setup is identical to the Omniglot experiments, including the encoder network for the digits.
|
| 136 |
+
|
| 137 |
+
In the case where the numbers are fixed a human would need only see 10 examples, one for each symbol, to be able to correctly generalize for all 100 possible combinations. With one example per symbol, APL reaches $9 7 . 6 \%$ accuracy on the test set.
|
| 138 |
+
|
| 139 |
+
When both numbers and symbols are shuffled each episode, a logical deduction process must be performed to infer the correct symbols. Our model is able to generalize using 50 examples written to memory (Figure 6) which is still fewer than seeing one of all 100 possible combinations.
|
| 140 |
+
|
| 141 |
+
In this complex case, once a symbol’s meaning has been figured out it is no longer necessary to solve the system of equations for that unknown. It would be interesting to explore how a system could additionally store this information in memory for later reuse, a question we leave for later work.
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
Figure 6: Left: Number analogy task. The colored symbols have unknown values that are consistent throughout an episode. Right: Accuracy as a function of number of examples seen for the Analogy task where the number meanings are also shuffled each episode. Curves are averages over 10 test episodes and smoothed with exponential moving average. On the left we fix the decoder (relational self-attention feed-forward module) and vary $k$ . As there are 100 possible combinations of symbols (10 numbers $\times 1 0$ symbols), the thick dashed line corresponds to the performance of a model capable of perfect 1-shot generalization. We can see that for $k = 8$ and $k = 1 6$ the decoder can infer the symbol and number meanings to do better than direct 1-shot classifications. On the right we fix $k = 1 6$ and show that the relational self-attention feed-forward module can generalize better from few examples than other decoder architectures.
|
| 145 |
+
|
| 146 |
+
# 5 CONCLUSION
|
| 147 |
+
|
| 148 |
+
We introduced a self-contained system which can learn to approximate a probability distribution with as little data and as quickly as it can. This is achieved by putting together the training setup which encourages adaptation; an external memory which allows the system to recall past events; a writing system to adapt the memory to uncertain situations; and a working memory architecture which can efficiently compare items retrieved from memory to produce new predictions.
|
| 149 |
+
|
| 150 |
+
We showed that the model can:
|
| 151 |
+
|
| 152 |
+
• Reach state of the art accuracy with a smaller memory footprint than other meta-learning models by efficiently choosing which data points to remember.
|
| 153 |
+
• Scale to very large problem sizes thanks to the use of an external memory module with sparse access.
|
| 154 |
+
• Perform fewer than 1-shot generalization thanks to relational reasoning across neighbors.
|
| 155 |
+
|
| 156 |
+
# ACKNOWLEDGMENTS
|
| 157 |
+
|
| 158 |
+
The authors thank Elco Bakker, Alex Pritzel and David Raposo for insightful discussions; Paul Komarek, Adrià Puigdomènech for help with writing code; and Kevin McKee for revising the manuscript.
|
| 159 |
+
|
| 160 |
+
# REFERENCES
|
| 161 |
+
|
| 162 |
+
Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018.
|
| 163 |
+
|
| 164 |
+
Yoshua Bengio and Yann LeCun. Scaling learning algorithms towards AI. In Large Scale Kernel Machines. MIT Press, 2007.
|
| 165 |
+
|
| 166 |
+
Yoshua Bengio, Samy Bengio, and Jocelyn Cloutier. Learning a synaptic learning rule. Université de Montréal, Département d’informatique et de recherche opérationnelle, 1990.
|
| 167 |
+
|
| 168 |
+
SM Ali Eslami, Danilo Jimenez Rezende, Frederic Besse, Fabio Viola, Ari S Morcos, Marta Garnelo, Avraham Ruderman, Andrei A Rusu, Ivo Danihelka, Karol Gregor, et al. Neural scene representation and rendering. Science, 360(6394):1204–1210, 2018.
|
| 169 |
+
|
| 170 |
+
Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, pp. 1126–1135, 2017.
|
| 171 |
+
|
| 172 |
+
Marta Garnelo, Dan Rosenbaum, Christopher Maddison, Tiago Ramalho, David Saxton, Murray Shanahan, Yee Whye Teh, Danilo Rezende, and SM Ali Eslami. Conditional neural processes. In International Conference on Machine Learning, pp. 1690–1699, 2018.
|
| 173 |
+
|
| 174 |
+
Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio Gómez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, ´ et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538 (7626):471, 2016.
|
| 175 |
+
|
| 176 |
+
Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8): 1735–1780, 1997.
|
| 177 |
+
|
| 178 |
+
Edwin T Jaynes. Probability theory: The logic of science. Cambridge university press, 2003.
|
| 179 |
+
|
| 180 |
+
Łukasz Kaiser, Ofir Nachum, Aurko Roy, and Samy Bengio. Learning to remember rare events. arXiv preprint arXiv:1703.03129, 2017.
|
| 181 |
+
|
| 182 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
|
| 183 |
+
|
| 184 |
+
James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, pp. 201611835, 2017.
|
| 185 |
+
|
| 186 |
+
Gregory Koch, Richard Zemel, and Ruslan Salakhutdinov. Siamese neural networks for one-shot image recognition. In ICML Deep Learning Workshop, volume 2, 2015.
|
| 187 |
+
|
| 188 |
+
Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. nature, 521(7553):436, 2015.
|
| 189 |
+
|
| 190 |
+
Nikhil Mishra, Mostafa Rohaninejad, Xi Chen, and Pieter Abbeel. A simple neural attentive meta-learner. In International Conference on Learning Representations, 2018. URL https: //openreview.net/forum?id $\mathbf { \Psi } = \mathbf { \Psi }$ B1DmUzWAW.
|
| 191 |
+
|
| 192 |
+
Tsendsuren Munkhdalai and Hong Yu. Meta networks. In International Conference on Machine Learning, pp. 2554–2563, 2017.
|
| 193 |
+
|
| 194 |
+
Behnam Neyshabur, Srinadh Bhojanapalli, David McAllester, and Nati Srebro. Exploring generalization in deep learning. In Advances in Neural Information Processing Systems, pp. 5947–5956, 2017.
|
| 195 |
+
|
| 196 |
+
Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. icarl: Incremental classifier and representation learning. In Proc. CVPR, 2017.
|
| 197 |
+
|
| 198 |
+
Scott Reed, Yutian Chen, Thomas Paine, Aäron van den Oord, S. M. Ali Eslami, Danilo Rezende, Oriol Vinyals, and Nando de Freitas. Few-shot autoregressive density estimation: Towards learning to learn distributions. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ r1wEFyWCW.
|
| 199 |
+
|
| 200 |
+
Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016.
|
| 201 |
+
|
| 202 |
+
Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy Lillicrap. Metalearning with memory-augmented neural networks. In International conference on machine learning, pp. 1842–1850, 2016.
|
| 203 |
+
|
| 204 |
+
Adam Santoro, Ryan Faulkner, David Raposo, Jack Rae, Mike Chrzanowski, Theophane Weber, Daan Wierstra, Oriol Vinyals, Razvan Pascanu, and Timothy Lillicrap. Relational recurrent neural networks. arXiv preprint arXiv:1806.01822, 2018.
|
| 205 |
+
|
| 206 |
+
Jürgen Schmidhuber. Evolutionary principles in self-referential learning, or on learning how to learn: the meta-meta-... hook. PhD thesis, Technische Universität München, 1987.
|
| 207 |
+
|
| 208 |
+
Jürgen Schmidhuber. Deep learning in neural networks: An overview. Neural networks, 61:85–117, 2015.
|
| 209 |
+
|
| 210 |
+
Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems, pp. 4077–4087, 2017.
|
| 211 |
+
|
| 212 |
+
Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In AAAI, volume 4, pp. 12, 2017.
|
| 213 |
+
|
| 214 |
+
Oriol Vinyals, Charles Blundell, Tim Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In Advances in Neural Information Processing Systems, pp. 3630–3638, 2016.
|
| 215 |
+
|
| 216 |
+
Jane X Wang, Zeb Kurth-Nelson, Dhruva Tirumala, Hubert Soyer, Joel Z Leibo, Remi Munos, Charles Blundell, Dharshan Kumaran, and Matt Botvinick. Learning to reinforcement learn. arXiv preprint arXiv:1611.05763, 2016.
|
| 217 |
+
|
| 218 |
+
Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. 2018.
|
| 219 |
+
|
| 220 |
+
# 6 SUPPLEMENTARY MATERIAL
|
| 221 |
+
|
| 222 |
+
# 6.1 MODEL ARCHITECTURES AND TRAINING DETAILS
|
| 223 |
+
|
| 224 |
+
For all experiments below we use the same training setup. For each training episode we sample elements from $N$ classes and randomly shuffle them to create training batches. For every batch shown to the model, we do one step of gradient descent with the Adam optimizer. We anneal the learning rate from $1 0 ^ { - 4 }$ to $1 0 ^ { - 5 }$ with exponential decay over 1000 steps (decay rate 0.9).
|
| 225 |
+
|
| 226 |
+
For all experiments, the query data is passed through an embedding network (described below in), and this vector is used to query an external memory module. The memory module contains multiple columns of data, one of which will be the key and the others will contain data associated with that key. The necessary columns for each experiment are outlined below. The memory size is chosen so that elements will never be overwritten in a single episode (i.e. memory size $>$ batch size $\times$ number of iterations).
|
| 227 |
+
|
| 228 |
+
The returned memory contents as well as the query are fed to one of the decoder architectures described in section 6.2.
|
| 229 |
+
|
| 230 |
+
# 6.1.1 OMNIGLOT
|
| 231 |
+
|
| 232 |
+
For omniglot we encode the images with a convolutional network composed of a single first convolution to map the image to 64 feature channels, followed by 12 convolutional blocks. Each block is made up of a step of Batch Normalization, followed by a ReLU activation and a convolutional layer with kernel size 3. Every three blocks the convolution contains a stride 2 to downsample the image. All layers have 64 features. Finally we flatten the activations to a 1D vector and pass it through a Layer Normalization function.
|
| 233 |
+
|
| 234 |
+
For all decoders we use a hidden dimensionality of 512, take their final state and pass it through a linear layer to generate the final logits for classification, using a Cross Entropy loss.
|
| 235 |
+
|
| 236 |
+
# 6.1.2 IMAGENET
|
| 237 |
+
|
| 238 |
+
The encoder is a pretrained Inception-ResNet-v2 network (Szegedy et al., 2017) with the standard preprocessing as described in the paper. We use as embedding the pre-logit activations. All decoders use a hidden dimensionality of 1024. After the decoder step we take their final state and pass it through a linear layer to generate the final logits for classification, using a Cross Entropy loss.
|
| 239 |
+
|
| 240 |
+
# 6.1.3 ANALOGY TASK
|
| 241 |
+
|
| 242 |
+
The encoder for MNIST uses the same convolutional network as described in the Omniglot section. The symbols are one-hot vectors for the first set of experiments. The memory is queried for neighbors both of the digit embeddings as well as the symbols, and found neighbors are concatenated and fed to the decoder.
|
| 243 |
+
|
| 244 |
+
The decoder process is identical to Omniglot. However, the classification target is now the one-shot encoded version of the result of the computation $X + S$ , where $X$ is the digit value and $S$ is the symbol value. As $S \in [ - 5 , 5 ]$ , we sum 5 to all values to obtain valid one-hot encodings (which means there are 20 possible values in all).
|
| 245 |
+
|
| 246 |
+
# 6.2 DECODER ARCHITECTURES COMPARISON
|
| 247 |
+
|
| 248 |
+
# 6.2.1 RELATIONAL SELF-ATTENTION FEED FORWARD MODULE
|
| 249 |
+
|
| 250 |
+
Consider the set $\{ e _ { t } , e _ { 1 . . . m } , l _ { 1 . . . m } , d _ { 1 . . . m } \}$ , where $e _ { t }$ is the encoded target, $e _ { 1 \dots m }$ the encoded observations from the memory, $l _ { 1 . . . m } = f ( y _ { 1 . . . m } )$ are the labels processed by a simple embedding layer to project the classes into a higher dimensional space, and $d _ { 1 \dots m }$ are the euclidean distances between $e _ { t }$ and $e _ { 1 \ldots m }$ . By concatenating all these vectors, we have a set of inputs to a relational block (Battaglia et al., 2018).
|
| 251 |
+
|
| 252 |
+
This tensor (of shape [batch size, $\mathbf { k }$ , sum of all embeddings feature sizes]) is fed to what we call a relational self-attentional block: first the tensor is passed through a multihead attention layer (Figure
|
| 253 |
+
|
| 254 |
+
7), which compares all elements to each other and returns a new tensor of the same shape; then a shared nonlinear layer (ReLU, linear, layer norm) processes each element individually. The selfattentional blocks are repeated 8 times in a residual manner (the dimensionality of the tensor never changes).
|
| 255 |
+
|
| 256 |
+
Finally, we pass the distances between neighbors and query through a softmax layer to generate an attention vector which is multiplied with the activations tensor over the first axis (this has the effect of weighting closer memories more). The tensor is then summed over that first axis to obtain the final representation.
|
| 257 |
+
|
| 258 |
+

|
| 259 |
+
Figure 7: Multihead attention implementation.
|
| 260 |
+
|
| 261 |
+
# 6.2.2 RELATIONAL WORKING MEMORY
|
| 262 |
+
|
| 263 |
+
We use a Relational working memory core as described in (Santoro et al., 2018), (figure 2, right). The memory is initialized with the concatenated vectors $\{ e _ { 1 . . . m } , l _ { 1 . . . m } , d _ { 1 . . . m } \}$ . The query $e _ { t }$ is fed a number $N = 5$ times as input to the relational memory core to unroll the computation. The final memory state is passed through a linear layer to obtain the logits.
|
| 264 |
+
|
| 265 |
+
# 6.2.3 LSTM
|
| 266 |
+
|
| 267 |
+
We use a standard LSTM module, with initial state equal to the query embedding, and at each time step we feed in the neighbor embedding as concatenated with the embedded label. The LSTM is rolled out for $k$ time steps (i.e. the number of neighbors). Its final output state is taken as input to the logits linear layer.
|
| 268 |
+
|
| 269 |
+

|
| 270 |
+
Figure 8: The LSTM decoder for APL.
|
| 271 |
+
|
| 272 |
+
# 6.2.4 DECODER ARCHITECTURE COMPARISON
|
| 273 |
+
|
| 274 |
+
We compared all three decoder architectures for the classification case and found they perform equally well for the classification case, as shown in the figure below.
|
| 275 |
+
|
| 276 |
+
For the analogy task, we found the Relational self-attention feed forward module to work best, as outlined in the main text.
|
| 277 |
+
|
| 278 |
+

|
| 279 |
+
Figure 9: Accuracy as a function of examples written to memory. We compared relational working memory, LSTM and the relational self-attention feed-forward module for omniglot on the 20-way, 423-way and 1000-way tasks.
|
| 280 |
+
|
| 281 |
+

|
| 282 |
+
Figure 10: Accuracy as a function of examples written to memory. Each plot corresponds to a different number $k$ of retrieved nearest neighbors. We compared relational working memory, LSTM and the relational self-attention feed-forward module.
|
| 283 |
+
|
| 284 |
+
# 6.3 EFFECT OF THRESHOLD PARAMETER ON PERFORMANCE
|
| 285 |
+
|
| 286 |
+
How does the choice of parameter $\sigma$ affect the performance of APL? Empirically we have verified that for a large range of $\sigma$ , memory size and accuracy are largely unchanged. This is due to the feedback loop between the number of items stored and classification accuracy: as more items are stored in memory, the more elements are correctly classified and not stored in memory. Therefore the memory storage mechanism is self-regulating, and the number of elements in memory ends up being largely flat.
|
| 287 |
+
|
| 288 |
+
In Fig. 11 we show the final memory size and average accuracy for the last 100 data points after showing APL 2000 unique data points for the case of 200-way classification. In this case the ’natural’ (uniform predictions) $\sigma$ is around 5.2, which seems to be close to optimal for accuracy vs. elements in memory. We can increase the value somewhat but eventually the model can’t write to memory any more and performance tanks. On the other side of the curve, for $\sigma = 0$ where we write everything, performance is slightly higher but at a roughly ${ 8 \mathrm { x } }$ memory cost.
|
| 289 |
+
|
| 290 |
+

|
| 291 |
+
Figure 11: Accuracy as a function of examples written to memory. Each plot corresponds to a different number $k$ of retrieved nearest neighbors. We compared relational working memory, LSTM and the relational self-attention feed-forward module.
|
| 292 |
+
|
| 293 |
+
# 6.4 RELATION TO CONTINUAL LEARNING
|
| 294 |
+
|
| 295 |
+
While we study APL in the few-shot learning setting, the algorithm could also be used in the continual learning setup (Kirkpatrick et al., 2017; Rusu et al., 2016; Yoon et al., 2018; Rebuffi et al., 2017). We consider an experiment where each task consists of learning 10 new and previously unseen classes. For each task we present the models with 200 unique examples, and report the average accuracy for the last 100 examples seen. Examples are drawn from the test set of classes.
|
| 296 |
+
|
| 297 |
+
In the case of progressive networks, one gradient descent step is taken after each example. For each task, a new logits layer is added on top of a convolutional encoder (same architecuture as APL) pretrained on the omniglot training set. APL is run as described in the main text.
|
| 298 |
+
|
| 299 |
+
The results are summarized in figure 12: APL can perform as well or better than a progressive network on this kind of task without needing access to gradient information, as its memory store can provide the requisite information to update its predictions to the new task.
|
| 300 |
+
|
| 301 |
+

|
| 302 |
+
Figure 12: Accuracy of APL on a lifelong learning task where each task corresponds to learning 10 new classes in Omniglot. The baseline is a progressive net where the convolutional encoder is pretrained, and for every task a new logits layer is added and trained to classify the new classes. Results are the average accuracy over 5 runs. While not using any gradient information, APL performs as well or better than progressive networks.
|
parse/train/ByeSdsC9Km/ByeSdsC9Km_content_list.json
ADDED
|
@@ -0,0 +1,1676 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ADAPTIVE POSTERIOR LEARNING: FEW-SHOT LEARNING WITH A SURPRISE-BASED MEMORY MODULE ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
743,
|
| 10 |
+
171
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Tiago Ramalho \nCogent Labs \ntramalho@cogent.co.jp \nMarta Garnelo \nDeepMind \ngarnelo@google.com ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
195,
|
| 20 |
+
392,
|
| 21 |
+
243
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "",
|
| 28 |
+
"bbox": [
|
| 29 |
+
521,
|
| 30 |
+
195,
|
| 31 |
+
700,
|
| 32 |
+
243
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
452,
|
| 42 |
+
280,
|
| 43 |
+
544,
|
| 44 |
+
295
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "The ability to generalize quickly from few observations is crucial for intelligent systems. In this paper we introduce APL, an algorithm that approximates probability distributions by remembering the most surprising observations it has encountered. These past observations are recalled from an external memory module and processed by a decoder network that can combine information from different memory slots to generalize beyond direct recall. We show this algorithm can perform as well as state of the art baselines on few-shot classification benchmarks with a smaller memory footprint. In addition, its memory compression allows it to scale to thousands of unknown labels. Finally, we introduce a meta-learning reasoning task which is more challenging than direct classification. In this setting, APL is able to generalize with fewer than one example per class via deductive reasoning. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
311,
|
| 54 |
+
764,
|
| 55 |
+
478
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
505,
|
| 66 |
+
336,
|
| 67 |
+
521
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Consider the following sequential decision problem: at every iteration of an episode we are provided with an image of a digit (e.g. MNIST) and an unknown symbol. Our goal is to output a digit $Y = X + S$ where $X$ is the value of the MNIST digit, and $S$ is a numerical value that is randomly assigned to the unknown symbol at the beginning of each episode. After seeing only a single instance of a symbol an intelligent system should not only be able to infer the value $S$ of the symbol but also to correctly generalize the operation associated with the symbol to any other digit in the remaining iterations of that episode. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
536,
|
| 77 |
+
825,
|
| 78 |
+
633
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Despite its simplicity, this task emphasizes three cognitive abilities that a generic learning algorithm should display: 1. the algorithm can learn a behaviour and then flexibly apply it to a range of different tasks using only a few context observations at test time; 2. the algorithm can memorize and quickly recall previous experiences for quick adaptation; and 3. the algorithm can process these recalled memories in a non-trivial manner to carry out tasks that require reasoning. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
641,
|
| 88 |
+
825,
|
| 89 |
+
710
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "The first point is commonly described as “learning to learn” or meta-learning, and represents a new way of looking at statistical inference (Schmidhuber, 1987; Bengio et al., 1990; Bengio & LeCun, 2007). Traditional neural networks are trained to approximate arbitrary probability distributions with great accuracy by parametric adaptation via gradient descent (LeCun et al., 2015; Schmidhuber, 2015). After training that probability distribution is fixed and neural networks can only generalize well when the testing distribution matches the training distribution (Neyshabur et al., 2017). In contrast, meta-learning systems are trained to learn an algorithm that infers a function directly from the observations it receives at test time. This setup is more flexible than the traditional approach and generalizes better to unseen distributions as it incorporates new information even after the training phase is over. It also allows these models to improve their accuracy as they observe more data, unlike models which learn a fixed distribution. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
718,
|
| 99 |
+
825,
|
| 100 |
+
871
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "The second requirement - being able to memorize and efficiently recall previous experience - is another active area of research. Storing information in a model proves especially challenging as we move beyond small toy-examples to tasks with higher dimensional data or real-world problems. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
877,
|
| 110 |
+
823,
|
| 111 |
+
920
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Current methods often work around this by summarizing past experiences in one lower-dimensional representation (Hochreiter & Schmidhuber, 1997; Kingma & Welling, 2013) or using memory modules (Graves et al., 2016). While the former approach can produce good results, the representation and therefore the amount of information we can ultimately encode with such models will be of a fixed and thus limited size. Working with neural memory modules, on the other hand, presents its own challenges as learning to store and keep the right experiences is not trivial. In order to successfully carry out the task defined at the beginning of this paper a model should learn to capture information about a flexible and unbounded number of symbols observed in an episode without storing redundant information. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
103,
|
| 121 |
+
825,
|
| 122 |
+
229
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Finally, reasoning requires processing recalled experiences in order to apply the information they contain to the current data point being processed. In simple cases such as classification, it is enough to simply recall memories of similar data points and directly infer the current class by combining them using a weighted average or a simple kernel (Vinyals et al., 2016; Snell et al., 2017), which limits the models to performing interpolation. In the example mentioned above, more complex reasoning is necessary for human-level generalisation. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
236,
|
| 132 |
+
825,
|
| 133 |
+
319
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "In this paper we introduce Approximate Posterior Learning (APL, pronounced like the fruit), a self-contained model and training procedure that address these challenges. APL learns to carry out few-shot approximation of new probability distributions and to store only as few context points as possible in order to carry out the current task. In addition it learns how to process recalled experiences to carry out tasks of varying degrees of complexity. This sequential algorithm was inspired by Bayesian posterior updating (Jaynes, 2003) in the sense that the output probability distribution is updated as more data is observed. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
327,
|
| 143 |
+
825,
|
| 144 |
+
424
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "We demonstrate that APL can deliver accuracy comparable to other state-of-the-art algorithms in standard few-shot classification benchmarks while being more data efficient. We also show it can scale to a significantly larger number of classes while retaining good performance. Finally, we apply APL to the reasoning task introduced as motivation and verify that it can perform the strong generalization we desire. ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
176,
|
| 153 |
+
431,
|
| 154 |
+
825,
|
| 155 |
+
500
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "The main contributions of this paper are: ",
|
| 162 |
+
"bbox": [
|
| 163 |
+
176,
|
| 164 |
+
507,
|
| 165 |
+
441,
|
| 166 |
+
522
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 1
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"text": "• A simple memory controller design which uses a surprise-based signal to write the most predictive items to memory. By not needing to learn what to write, we avoid costly backpropagation through memory which makes the setup easier and faster to train. This design also minimizes how much data is stored, making our method more memory efficient. • An integrated external and working memory architecture which can take advantage of the best of both worlds: scalability and sparse access provided by the working memory; and all-to-all attention and reasoning provided by a relational reasoning module. • A training setup which steers the system towards learning an algorithm which approximates the posterior without backpropagating through the whole sequence of data in an episode. ",
|
| 173 |
+
"bbox": [
|
| 174 |
+
215,
|
| 175 |
+
535,
|
| 176 |
+
825,
|
| 177 |
+
671
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 1
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "text",
|
| 183 |
+
"text": "2 MODEL ",
|
| 184 |
+
"text_level": 1,
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
690,
|
| 188 |
+
269,
|
| 189 |
+
707
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "2.1 ARCHITECTURE ",
|
| 196 |
+
"text_level": 1,
|
| 197 |
+
"bbox": [
|
| 198 |
+
176,
|
| 199 |
+
722,
|
| 200 |
+
326,
|
| 201 |
+
736
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "text",
|
| 207 |
+
"text": "Our proposed model is composed of a number of parts: an encoder that generates a representation for the incoming query data; an external memory store which contains previously seen representation/ data pairings with writing managed by a memory controller; and a decoder that ingests the query representation as well as data from the memory store to generate a probability distribution over targets. We describe each of the parts in detail below1. ",
|
| 208 |
+
"bbox": [
|
| 209 |
+
174,
|
| 210 |
+
748,
|
| 211 |
+
823,
|
| 212 |
+
818
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 1
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "Encoder The encoder is a function which takes in arbitrary data $x _ { t }$ and converts it to a representation $e _ { t }$ of (usually) lower dimensionality. In all our experiments $x _ { t }$ is an image, and we therefore choose a convolutional network architecture for the encoder. Architectural details of the encoder used for each of the experiments are provided in the appendix. ",
|
| 219 |
+
"bbox": [
|
| 220 |
+
174,
|
| 221 |
+
825,
|
| 222 |
+
823,
|
| 223 |
+
881
|
| 224 |
+
],
|
| 225 |
+
"page_idx": 1
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"type": "image",
|
| 229 |
+
"img_path": "images/355aa60c9185cd75d6b6a18b73b967f6ed0eaddd8a357d1f8458d35c4561f9d8.jpg",
|
| 230 |
+
"image_caption": [
|
| 231 |
+
"Figure 1: APL model applied to the the classification of an Omniglot image. The encoded image is compared to the entries of the memory and the most relevant ones are passed through a decoder that outputs a probability distribution over the labels. The dotted line indicates the parts of the graph that are not updated via back-propagation. "
|
| 232 |
+
],
|
| 233 |
+
"image_footnote": [],
|
| 234 |
+
"bbox": [
|
| 235 |
+
235,
|
| 236 |
+
98,
|
| 237 |
+
761,
|
| 238 |
+
195
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "Memory store The external memory module is a database containing the stored experiences. Each of the columns corresponds to one of the attributes of the data. In the case of classification, for example, we would store two columns: the embedding $e _ { m }$ and the true label $y _ { m }$ . Each of the rows contains the information for one data point. The memory module is queried by finding the k-nearest neighbors between a query and the data in a given column. The full row data for each of the neighbors is returned for later use. The distance metric used to calculate proximity between the points is an open choice, and here we always use euclidean distance. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
174,
|
| 247 |
+
295,
|
| 248 |
+
825,
|
| 249 |
+
393
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "Since we are not backpropagating through the memory, how do we ensure that the neighbors returned by the querying mechanism contain task-relevant information? We expect that class-discriminative embeddings produced by the encoder should cluster together in representation space, and therefore should be close in the sense of euclidean distance. While this is not mathematically necessary, in the following sections we will show that APL as proposed does work and retrieve the correct neighbors which means that in practice our intuition holds true. ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
400,
|
| 259 |
+
825,
|
| 260 |
+
483
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "Memory controller We use a simple memory controller which tries to minimize the amount of data points written to memory. Let us define surprise as the quantity associated with the prediction for label $y _ { t }$ as ${ \\bf S } = - l n ( y _ { t } )$ . Intuitively, this means that the higher the probability our model assigns to the true class, the less surprised it will be. ",
|
| 267 |
+
"bbox": [
|
| 268 |
+
174,
|
| 269 |
+
491,
|
| 270 |
+
825,
|
| 271 |
+
546
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 2
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "text",
|
| 277 |
+
"text": "This suggests a way of storing the minimal amount of data points in memory which supports maximal classification accuracy. If a data point is ’surprising’, it should be stored in memory; otherwise it can be safely discarded as the model can already classify it correctly. ",
|
| 278 |
+
"bbox": [
|
| 279 |
+
176,
|
| 280 |
+
553,
|
| 281 |
+
821,
|
| 282 |
+
595
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 2
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "How should the memory controller decide whether a point is ’surprising’? In this work we choose the simplest possible controller: if the surprise is greater than some hyperparameter $\\sigma$ , then that data should be stored in memory. For our experiments, we choose $\\sigma \\propto - \\ln ( N )$ where $N$ is the number of classes under classification which means that if the prediction confidence in the correct class is smaller than the probability assigned by a uniform prediction the value should be written to memory. In the appendix we show that after model training model performance is robust to variations in $\\sigma$ , as surprise becomes highly bimodal: a new data point tends to be either highly surprising (never seen something similar before) or not very surprising. ",
|
| 289 |
+
"bbox": [
|
| 290 |
+
174,
|
| 291 |
+
602,
|
| 292 |
+
825,
|
| 293 |
+
714
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 2
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "Conveniently, in the case of classification problems the commonly used cross-entropy loss reduces to our measure of surprise directly, and we therefore use the prediction loss as an input to the memory controller directly. ",
|
| 300 |
+
"bbox": [
|
| 301 |
+
174,
|
| 302 |
+
720,
|
| 303 |
+
825,
|
| 304 |
+
763
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 2
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "Decoder The decoder takes as input the query representation as well as all the data from the neighbors found in the external memory. We designed a relational feed-forward module with self attention which takes particular advantage of the external memory architecture. In addition we tested two other established decoder architectures: an unrolled relational working memory core and an unrolled LSTM. As all experiments have a classification loss at the end, all the decoders return a vector with logits for the $N$ classes under consideration. Full details of each architecture are provided in the Appendix. ",
|
| 311 |
+
"bbox": [
|
| 312 |
+
174,
|
| 313 |
+
770,
|
| 314 |
+
825,
|
| 315 |
+
867
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 2
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "text",
|
| 321 |
+
"text": "• Relational self-attention feed-forward decoder. The relational feed-forward module (see figure 2, left) processes each of the neighbors individually by comparing them with the query, and then does a cross-element comparison with a self-attention module before reducing the activations with an attention vector calculated from neighbor distances. ",
|
| 322 |
+
"bbox": [
|
| 323 |
+
214,
|
| 324 |
+
881,
|
| 325 |
+
823,
|
| 326 |
+
910
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 2
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "image",
|
| 332 |
+
"img_path": "images/cbfa827ae16bd4a77580ecd8a56b6be593666f81498fc976ee7e7e33bdb298ea.jpg",
|
| 333 |
+
"image_caption": [
|
| 334 |
+
"Figure 2: Two of the three different decoder architectures of APL: relational feed-forward memory (left) and relational working memory (Santoro et al., 2018) (right). In the figure $e _ { t }$ corresponds to the encoded target, $e _ { 1 \\dots m }$ to the encoded observations from the memory, $l _ { 1 . . . m } = f ( y _ { 1 . . . m } )$ are the labels processed by an embedding layer and $d _ { 1 \\dots m }$ is the distance between $e _ { t }$ and $e _ { 1 \\dots m }$ . "
|
| 335 |
+
],
|
| 336 |
+
"image_footnote": [],
|
| 337 |
+
"bbox": [
|
| 338 |
+
181,
|
| 339 |
+
104,
|
| 340 |
+
813,
|
| 341 |
+
189
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "",
|
| 348 |
+
"bbox": [
|
| 349 |
+
225,
|
| 350 |
+
292,
|
| 351 |
+
823,
|
| 352 |
+
321
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 3
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "• Relational working memory decoder (Santoro et al., 2018) The relational working memory module (figure 2, right) takes in the concatenated neighbor embeddings and corresponding label embeddings as its initial memory state. The query is fed a number $N$ times as input to the relational memory core to unroll the computation. ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
217,
|
| 361 |
+
325,
|
| 362 |
+
821,
|
| 363 |
+
382
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 3
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "• LSTM decoder Finally we also test a vanilla LSTM decoder that takes in the query as the initial memory state and is fed each of the concatenated neighbor embeddings and corresponding label embeddings as its input each time step. ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
217,
|
| 372 |
+
386,
|
| 373 |
+
825,
|
| 374 |
+
429
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "2.2 TRAINING SETUP ",
|
| 381 |
+
"text_level": 1,
|
| 382 |
+
"bbox": [
|
| 383 |
+
174,
|
| 384 |
+
444,
|
| 385 |
+
334,
|
| 386 |
+
459
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 3
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"text": "Since we are looking for a system which can update its beliefs in an online manner we need a training procedure that reflect this behaviour. We train the system over a sequence of episodes that are composed of sequences of pairs $( x _ { t } , y _ { t } )$ . At the start of every episode the mapping $x _ { t } y _ { t }$ is shuffled in a deterministic manner (the exact details are task dependent and will be outlined in the experiments section). The data is then presented to the model sequentially in a random order. The model’s memory is empty at the beginning of the episode. ",
|
| 393 |
+
"bbox": [
|
| 394 |
+
173,
|
| 395 |
+
470,
|
| 396 |
+
825,
|
| 397 |
+
554
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 3
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "text",
|
| 403 |
+
"text": "At each time step, a batch of examples is shown to the model and a prediction is made. We then measure the instantaneous loss $L ( \\hat { y } _ { t } , y _ { t } )$ and perform a gradient update step on the network to minimize the loss on that batch alone. The loss is also fed to the memory controller for the network to decide whether to write to memory. In all the experiments below the task is to classify some quantity, therefore we use cross entropy loss throughout. ",
|
| 404 |
+
"bbox": [
|
| 405 |
+
174,
|
| 406 |
+
560,
|
| 407 |
+
825,
|
| 408 |
+
631
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 3
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "image",
|
| 414 |
+
"img_path": "images/d7aad9d64cf23f65f53eb43bab580b91bcd2bf89c273cab89eb5b62d66f32a12.jpg",
|
| 415 |
+
"image_caption": [
|
| 416 |
+
"Figure 3: APL training over several iterations. The encoder $e$ embeds the query image that is compared against the stored experiences in the memory $M$ . Matches are fed alongside the encoded image into a decoder $d$ . Finally, the controller $c$ decides whether the currently observed example should be stored in memory. "
|
| 417 |
+
],
|
| 418 |
+
"image_footnote": [],
|
| 419 |
+
"bbox": [
|
| 420 |
+
300,
|
| 421 |
+
646,
|
| 422 |
+
696,
|
| 423 |
+
779
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "APL learns a sequential update algorithm, that is, it minimizes the expected loss over an episode consisting of a number of data elements presented sequentially. However we don’t need to backpropagate through the sequence to learn the algorithm. Rather, the model’s parameters are updated to minimize the cross-entropy loss independently at each time step. Therefore the only pressure to learn a sequential algorithm comes from the fact that episodes are kept small so that the decoder is encouraged to read the information coming from the queried neighbors instead of just learning to fit the current episode’s label mapping in its weights after a few steps of gradient descent (which is what happens in the case of MAML (Finn et al., 2017)). ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
174,
|
| 432 |
+
867,
|
| 433 |
+
825,
|
| 434 |
+
924
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "",
|
| 441 |
+
"bbox": [
|
| 442 |
+
174,
|
| 443 |
+
103,
|
| 444 |
+
823,
|
| 445 |
+
159
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 4
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "text",
|
| 451 |
+
"text": "3 RELATED WORK ",
|
| 452 |
+
"text_level": 1,
|
| 453 |
+
"bbox": [
|
| 454 |
+
176,
|
| 455 |
+
180,
|
| 456 |
+
341,
|
| 457 |
+
195
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 4
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "Meta-learning as a research field covers a large number of areas. The concept of ‘learning to learn’ is not tied to a specific task and thus meta-learning algorithms have been successfully applied to a wide range of challenges like RL (Wang et al., 2016; Finn et al., 2017), program induction (Devlin et al., 2017) few-shot classification (Koch et al., 2015; Vinyals et al., 2016) and scene understanding (Eslami et al., 2018). ",
|
| 464 |
+
"bbox": [
|
| 465 |
+
174,
|
| 466 |
+
210,
|
| 467 |
+
823,
|
| 468 |
+
281
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 4
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "Some meta learning models generate predictions in an autoregressive fashion by predicting the next target point from the entire prior sequence of consecutive observations (Reed et al., 2018; Mishra et al., 2018). Algorithms of this kind have delivered state-of-the art results in a range of tasks such as supervised learning to classification. Nonetheless their reliance on the full context history in addition to their autoregressive nature hinders parallelization and hurts performance and scalability. ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
174,
|
| 477 |
+
287,
|
| 478 |
+
823,
|
| 479 |
+
358
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 4
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "text",
|
| 485 |
+
"text": "Another set of methods is based on the nearest neighbours approach (Koch et al., 2015; Vinyals et al., 2016; Snell et al., 2017). These methods use an encoder to find a suitable embedding and then perform a memory look up based on these representations. The result is a weighted average of the returned labels. As shown in (Mishra et al., 2018) using a pure distance metric to compare neighbors results in worse performance than allowing a network to learn a comparison function. These kinds of methods thus suffer in comparison. Meta Networks (Munkhdalai & Yu, 2017) also use an external memory to enable learning from previous examples combined with a model featuring slow and fast weights to produce the output, enabling them to state-of-the-art performance in several benchmarks. ",
|
| 486 |
+
"bbox": [
|
| 487 |
+
174,
|
| 488 |
+
364,
|
| 489 |
+
825,
|
| 490 |
+
477
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 4
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "Conditional neural processes (Garnelo et al., 2018) summarize the data into a fixed representation by averaging over the outputs of an encoder. This representation is fed into a decoder together with a query to produce the output. These methods are more space and compute efficient but given the fixed and averaged representation may not scale to very large problems. ",
|
| 497 |
+
"bbox": [
|
| 498 |
+
176,
|
| 499 |
+
483,
|
| 500 |
+
825,
|
| 501 |
+
539
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 4
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "text",
|
| 507 |
+
"text": "All of the above methods expect a fixed size context, thereby making life-long learning over large time horizons difficult. To enable this, an algorithm must learn to only write observations into memory when they provide additional predictive power. Memory augmented neural networks (MANN) (Santoro et al., 2016) achieve this by learning a controller to write into a differentiable neural dictionary. However, this requires backpropagating through the entire sequence to learn, which makes credit assignment over long time sequences hard and is computationally expensive. The idea of using an external memory module has been explored in (Kaiser et al., 2017) and shown to produce good results. Compared to that work we introduce a simpler writing mechanism and the idea of a relational decoder to exploit the nearest neighbor structure. ",
|
| 508 |
+
"bbox": [
|
| 509 |
+
174,
|
| 510 |
+
545,
|
| 511 |
+
825,
|
| 512 |
+
671
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 4
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "4 EXPERIMENTS ",
|
| 519 |
+
"text_level": 1,
|
| 520 |
+
"bbox": [
|
| 521 |
+
176,
|
| 522 |
+
691,
|
| 523 |
+
326,
|
| 524 |
+
707
|
| 525 |
+
],
|
| 526 |
+
"page_idx": 4
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"type": "text",
|
| 530 |
+
"text": "4.1 FEW-SHOT OMNIGLOT CLASSIFICATION ",
|
| 531 |
+
"text_level": 1,
|
| 532 |
+
"bbox": [
|
| 533 |
+
176,
|
| 534 |
+
723,
|
| 535 |
+
488,
|
| 536 |
+
737
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 4
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "The Omniglot dataset contains 1623 characters with 20 examples each. 1200 of the character classes are assigned to the train set while the remaining 423 are part of the test set. The examples are presented to the model sequentially in batches of 16 examples. For each episode, we choose $N$ classes and shuffle their labels. We then run an episode for a certain number of steps, which is decreased as the model’s accuracy increases to encourage quick adaptation. This means that the model accuracy and number of memories written to memory is time dependent. ",
|
| 543 |
+
"bbox": [
|
| 544 |
+
174,
|
| 545 |
+
748,
|
| 546 |
+
823,
|
| 547 |
+
833
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 4
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "text",
|
| 553 |
+
"text": "We follow an architecture similar to those used in previous work for the image encoder (Vinyals et al., 2016; Mishra et al., 2018), which consists of four convolutional blocks with 3x3 convolutions, relu and batch normalization. We augment the number of classes in the training set by rotating each symbol 90, 180 and 270 degrees as in previous work (Santoro et al., 2016). For this task, we found that all three decoder architectures perform similarly. A detailed comparison and all hyperparameters needed to reproduce this experiment are provided in the Appendix. ",
|
| 554 |
+
"bbox": [
|
| 555 |
+
174,
|
| 556 |
+
839,
|
| 557 |
+
825,
|
| 558 |
+
922
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 4
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "text",
|
| 564 |
+
"text": "In Figure 4a we can see the behavior of the algorithm within a single episode. As it sees more examples its performance increases until it saturates at some point, when additional writes don’t help anymore (assuming the exact same data piece won’t be seen again, which is the regime we always assume here). In the simple case of 5-way Omniglot classification, fewer than 2 examples per class are sufficient to saturate performance. ",
|
| 565 |
+
"bbox": [
|
| 566 |
+
174,
|
| 567 |
+
103,
|
| 568 |
+
823,
|
| 569 |
+
174
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 5
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "In Figure 4b we demonstrate the evolution of the posterior distribution in 20-way classification for 3 different, fixed inputs. For the first step, where the memory is empty APL learns to output a uniform distribution $( p \\simeq 1 / N$ with $\\mathbf { N }$ the number of classes under classification). As more examples are added to memory, its distribution refines until it sees an informative example for that class, at which point its prediction becomes very confident. ",
|
| 576 |
+
"bbox": [
|
| 577 |
+
174,
|
| 578 |
+
180,
|
| 579 |
+
825,
|
| 580 |
+
251
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 5
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "In Figure 4c we can see that different numbers of examples are written to memory for different classes, which demonstrates one of the advantages of this framework: we only need to store as many examples as each class requires, therefore if some classes may be more easily classified than others we can optimally use memory. In contrast, other models feed in a fixed context size per class which means they will either suffer in accuracy or use excessive memory. ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
173,
|
| 589 |
+
257,
|
| 590 |
+
825,
|
| 591 |
+
327
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 5
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "image",
|
| 597 |
+
"img_path": "images/a35e3cd15cb2be90e9d7c00eb5e3de8820437e502b78da2c93d1a8eb6c12aaec.jpg",
|
| 598 |
+
"image_caption": [
|
| 599 |
+
"Figure 4: a) Accuracy and size of memory for 5-way Omniglot. APL stops writing to memory after having 2 examples per class for 5-way classification. b), examples of evolution of posterior distribution for 20-way classification for 3 images. The distribution starts as uniform for the very first step, then starts to change as more items are added to memory. When the correct class is seen, the distribution converges. c), the number of labels stored in memory per class is highly heterogeneous. In this 20-way problem, APL stored 44 items in memory and achieved $9 8 . 5 \\%$ accuracy, which is higher than its homogeneous 5-shot accuracy. d) Accuracy vs. number of items written to memory for 1000-way classification. Classification accuracy when only 2000 examples have been written to memory (on average 2 examples per class) surpasses the accuracy for a fixed context size of 5 examples per class. "
|
| 600 |
+
],
|
| 601 |
+
"image_footnote": [],
|
| 602 |
+
"bbox": [
|
| 603 |
+
173,
|
| 604 |
+
335,
|
| 605 |
+
825,
|
| 606 |
+
594
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 5
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "Despite the previous point, it is also worthwhile comparing model accuracy to existing baselines with a fixed context size. To this end, we pre-populate the memory of a trained model with 1 or 5 examples per class and calculate the accuracy over the test set. We emphasize that the model was not trained to do well in this fixed-context scenario, and yet for 1 and 5-shot classification we obtain performance comparable to state-of-the-art models without having extensively tuned hyperparameters. Furthermore we tested our model with a much higher number of classes: 423-way classification where where we can use the whole test set, and 1000-way where the test set is augmented with rotations of the characters as we do in training. ",
|
| 613 |
+
"bbox": [
|
| 614 |
+
174,
|
| 615 |
+
762,
|
| 616 |
+
825,
|
| 617 |
+
875
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 5
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "Finally, we test how the model fares on a completely new distribution, MNIST. For 1-shot, 10-way MNIST, APL trained on 20-way omniglot classification obtains $61 \\%$ accuracy (compared to $72 \\%$ cited by (Vinyals et al., 2016)). Testing our model in the sequential regime, we observe that it continues writing examples to memory as it sees surprising observations, which allows it to correct for the distribution shift. After writing 45 examples per class, it reaches an accuracy of $86 \\%$ (there are 1000 examples per class in the MNIST test set, so it is not simply memorizing). ",
|
| 624 |
+
"bbox": [
|
| 625 |
+
176,
|
| 626 |
+
882,
|
| 627 |
+
823,
|
| 628 |
+
924
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 5
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "table",
|
| 634 |
+
"img_path": "images/30af0e4ae4e8bc231fa8b4d222fc26e3ebeb7e32db5fcc6f9bdc30fbdb1a529e.jpg",
|
| 635 |
+
"table_caption": [
|
| 636 |
+
"Table 1: Omniglot test accuracies for fixed context sizes compared to other baselines. († For 1000- way classification rotated pseudoclasses are used.) "
|
| 637 |
+
],
|
| 638 |
+
"table_footnote": [],
|
| 639 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">5-way</td><td colspan=\"2\">20-way</td><td colspan=\"2\">423-way</td><td colspan=\"2\">1000-way†</td></tr><tr><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td></tr><tr><td>Matching nets</td><td>98.1%</td><td>98.9%</td><td>93.8%</td><td>98.5%</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CNP</td><td>95.3%</td><td>98.5%</td><td>89.9%</td><td>96.8%</td><td>-</td><td>-</td><td>-</td><td></td></tr><tr><td>MANN</td><td>82.2%</td><td>94.9%</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>MAML</td><td>98.7%</td><td>99.9%</td><td>95.8%</td><td>98.9%</td><td></td><td>-</td><td>-</td><td></td></tr><tr><td>SNAIL</td><td>99.07%</td><td>99.78%</td><td>97.64%</td><td>99.35%</td><td>-</td><td>-</td><td>1</td><td>-</td></tr><tr><td>APL</td><td>97.9%</td><td>99.9%</td><td>97.2%</td><td>97.6%</td><td>73.5%</td><td>88.0%</td><td>68.9%</td><td>78.9%</td></tr></table>",
|
| 640 |
+
"bbox": [
|
| 641 |
+
173,
|
| 642 |
+
101,
|
| 643 |
+
825,
|
| 644 |
+
238
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 6
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "",
|
| 651 |
+
"bbox": [
|
| 652 |
+
176,
|
| 653 |
+
303,
|
| 654 |
+
823,
|
| 655 |
+
344
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 6
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "4.2 IMAGENET ",
|
| 662 |
+
"text_level": 1,
|
| 663 |
+
"bbox": [
|
| 664 |
+
174,
|
| 665 |
+
361,
|
| 666 |
+
292,
|
| 667 |
+
375
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 6
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "image",
|
| 673 |
+
"img_path": "images/a8720edcb02b5a0aa7780ee57c5c5b415e2b55707ba55a2c1aaba528ab46766c.jpg",
|
| 674 |
+
"image_caption": [
|
| 675 |
+
"Figure 5: Evolution of top-1 accuracy and number of written examples to memory over a single episode for the Imagenet dataset. Curves are averages over 5 test episodes and smoothed with exponential moving average. "
|
| 676 |
+
],
|
| 677 |
+
"image_footnote": [],
|
| 678 |
+
"bbox": [
|
| 679 |
+
174,
|
| 680 |
+
387,
|
| 681 |
+
826,
|
| 682 |
+
529
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 6
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "We also applied our model to the full scale imagenet dataset. Unlike the above experiments there are no held out classes for testing, as the dataset was not conceived with held out classes in mind. Instead, we rely on shuffling the labels amongst the 1000 Imagenet classes and using the images from the test set for evaluation. This means the generalization results are slightly weaker than in the above sections, but they still provide important insights as to the scalability of our method to thousands of classes and applicability to harder scenarios. ",
|
| 689 |
+
"bbox": [
|
| 690 |
+
174,
|
| 691 |
+
602,
|
| 692 |
+
825,
|
| 693 |
+
685
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 6
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "As an encoder we use the pretrained Inception-ResNet-v2 (Szegedy et al., 2017) due to computational constraints. For the fixed label case, this network reaches a top-1 accuracy of $8 0 . 4 \\%$ . Training the encoder end-to-end might produce better results, an investigation which we leave to later work. ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
176,
|
| 702 |
+
693,
|
| 703 |
+
823,
|
| 704 |
+
734
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 6
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "In the 20-way classification challenge, our method reaches $8 6 . 7 \\%$ top-1 accuracy (average accuracy after 50 iterations). Performance remains very high for 100-way $7 2 . 9 \\%$ top-1 accuracy). The model’s performance degrades somewhat $( 5 2 . 6 \\%$ top-1 accuracy) for 1000-way classification, where all the classes are shuffled. This highlights that large scale meta-learning on real world datasets remains a challenge even when all the classes have been observed by the encoder, as in this case. ",
|
| 711 |
+
"bbox": [
|
| 712 |
+
174,
|
| 713 |
+
741,
|
| 714 |
+
825,
|
| 715 |
+
811
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 6
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "text",
|
| 721 |
+
"text": "4.3 NUMBER ANALOGY ",
|
| 722 |
+
"text_level": 1,
|
| 723 |
+
"bbox": [
|
| 724 |
+
176,
|
| 725 |
+
828,
|
| 726 |
+
349,
|
| 727 |
+
842
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 6
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "The number analogy task challenges a meta-learning model to use logic reasoning to generalize with fewer than 1 example per possible class (Figure 6). At each time step the network is shown two pieces of data, a number $X$ and a symbol $S$ . It is asked to classify the result of $X + S$ based only on the current data and its previous experiments. We experiment with two levels of difficulty for this task: in the first, the number values are fixed and correspond to the MNIST digits, while there are ",
|
| 734 |
+
"bbox": [
|
| 735 |
+
174,
|
| 736 |
+
854,
|
| 737 |
+
823,
|
| 738 |
+
924
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 6
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "10 different symbols with unknown values in each episode; in the second, both digits and symbols have shuffled values. We sample the symbol values in the range $[ - 1 0 , 1 0 ]$ . ",
|
| 745 |
+
"bbox": [
|
| 746 |
+
171,
|
| 747 |
+
103,
|
| 748 |
+
823,
|
| 749 |
+
132
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 7
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "When querying the memory, we query $k$ neighbors via the number embeddings and $k$ neighbors via the symbol embeddings. This makes sure that any relevant information to the problem is available to the reasoning module. The rest of the training setup is identical to the Omniglot experiments, including the encoder network for the digits. ",
|
| 756 |
+
"bbox": [
|
| 757 |
+
174,
|
| 758 |
+
138,
|
| 759 |
+
825,
|
| 760 |
+
194
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 7
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "In the case where the numbers are fixed a human would need only see 10 examples, one for each symbol, to be able to correctly generalize for all 100 possible combinations. With one example per symbol, APL reaches $9 7 . 6 \\%$ accuracy on the test set. ",
|
| 767 |
+
"bbox": [
|
| 768 |
+
174,
|
| 769 |
+
202,
|
| 770 |
+
823,
|
| 771 |
+
244
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 7
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "When both numbers and symbols are shuffled each episode, a logical deduction process must be performed to infer the correct symbols. Our model is able to generalize using 50 examples written to memory (Figure 6) which is still fewer than seeing one of all 100 possible combinations. ",
|
| 778 |
+
"bbox": [
|
| 779 |
+
174,
|
| 780 |
+
251,
|
| 781 |
+
821,
|
| 782 |
+
292
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 7
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "In this complex case, once a symbol’s meaning has been figured out it is no longer necessary to solve the system of equations for that unknown. It would be interesting to explore how a system could additionally store this information in memory for later reuse, a question we leave for later work. ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
173,
|
| 791 |
+
300,
|
| 792 |
+
825,
|
| 793 |
+
342
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 7
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "image",
|
| 799 |
+
"img_path": "images/7c1bcf07a05532ad70c152f3ba9ae1fd0a60a4b9471eff97af48c2059dbc7099.jpg",
|
| 800 |
+
"image_caption": [
|
| 801 |
+
"Figure 6: Left: Number analogy task. The colored symbols have unknown values that are consistent throughout an episode. Right: Accuracy as a function of number of examples seen for the Analogy task where the number meanings are also shuffled each episode. Curves are averages over 10 test episodes and smoothed with exponential moving average. On the left we fix the decoder (relational self-attention feed-forward module) and vary $k$ . As there are 100 possible combinations of symbols (10 numbers $\\times 1 0$ symbols), the thick dashed line corresponds to the performance of a model capable of perfect 1-shot generalization. We can see that for $k = 8$ and $k = 1 6$ the decoder can infer the symbol and number meanings to do better than direct 1-shot classifications. On the right we fix $k = 1 6$ and show that the relational self-attention feed-forward module can generalize better from few examples than other decoder architectures. "
|
| 802 |
+
],
|
| 803 |
+
"image_footnote": [],
|
| 804 |
+
"bbox": [
|
| 805 |
+
174,
|
| 806 |
+
353,
|
| 807 |
+
825,
|
| 808 |
+
489
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 7
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "5 CONCLUSION ",
|
| 815 |
+
"text_level": 1,
|
| 816 |
+
"bbox": [
|
| 817 |
+
176,
|
| 818 |
+
680,
|
| 819 |
+
318,
|
| 820 |
+
696
|
| 821 |
+
],
|
| 822 |
+
"page_idx": 7
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"type": "text",
|
| 826 |
+
"text": "We introduced a self-contained system which can learn to approximate a probability distribution with as little data and as quickly as it can. This is achieved by putting together the training setup which encourages adaptation; an external memory which allows the system to recall past events; a writing system to adapt the memory to uncertain situations; and a working memory architecture which can efficiently compare items retrieved from memory to produce new predictions. ",
|
| 827 |
+
"bbox": [
|
| 828 |
+
174,
|
| 829 |
+
712,
|
| 830 |
+
825,
|
| 831 |
+
782
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 7
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "text",
|
| 837 |
+
"text": "We showed that the model can: ",
|
| 838 |
+
"bbox": [
|
| 839 |
+
174,
|
| 840 |
+
789,
|
| 841 |
+
379,
|
| 842 |
+
804
|
| 843 |
+
],
|
| 844 |
+
"page_idx": 7
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"type": "text",
|
| 848 |
+
"text": "• Reach state of the art accuracy with a smaller memory footprint than other meta-learning models by efficiently choosing which data points to remember. \n• Scale to very large problem sizes thanks to the use of an external memory module with sparse access. \n• Perform fewer than 1-shot generalization thanks to relational reasoning across neighbors. ",
|
| 849 |
+
"bbox": [
|
| 850 |
+
215,
|
| 851 |
+
815,
|
| 852 |
+
825,
|
| 853 |
+
896
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 7
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 860 |
+
"text_level": 1,
|
| 861 |
+
"bbox": [
|
| 862 |
+
176,
|
| 863 |
+
104,
|
| 864 |
+
326,
|
| 865 |
+
117
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 8
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "text",
|
| 871 |
+
"text": "The authors thank Elco Bakker, Alex Pritzel and David Raposo for insightful discussions; Paul Komarek, Adrià Puigdomènech for help with writing code; and Kevin McKee for revising the manuscript. ",
|
| 872 |
+
"bbox": [
|
| 873 |
+
176,
|
| 874 |
+
127,
|
| 875 |
+
823,
|
| 876 |
+
170
|
| 877 |
+
],
|
| 878 |
+
"page_idx": 8
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "text",
|
| 882 |
+
"text": "REFERENCES ",
|
| 883 |
+
"text_level": 1,
|
| 884 |
+
"bbox": [
|
| 885 |
+
176,
|
| 886 |
+
190,
|
| 887 |
+
285,
|
| 888 |
+
205
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 8
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018. ",
|
| 895 |
+
"bbox": [
|
| 896 |
+
174,
|
| 897 |
+
214,
|
| 898 |
+
825,
|
| 899 |
+
270
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 8
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "Yoshua Bengio and Yann LeCun. Scaling learning algorithms towards AI. In Large Scale Kernel Machines. MIT Press, 2007. ",
|
| 906 |
+
"bbox": [
|
| 907 |
+
171,
|
| 908 |
+
280,
|
| 909 |
+
825,
|
| 910 |
+
308
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 8
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "Yoshua Bengio, Samy Bengio, and Jocelyn Cloutier. Learning a synaptic learning rule. Université de Montréal, Département d’informatique et de recherche opérationnelle, 1990. ",
|
| 917 |
+
"bbox": [
|
| 918 |
+
171,
|
| 919 |
+
318,
|
| 920 |
+
823,
|
| 921 |
+
347
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 8
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "SM Ali Eslami, Danilo Jimenez Rezende, Frederic Besse, Fabio Viola, Ari S Morcos, Marta Garnelo, Avraham Ruderman, Andrei A Rusu, Ivo Danihelka, Karol Gregor, et al. Neural scene representation and rendering. Science, 360(6394):1204–1210, 2018. ",
|
| 928 |
+
"bbox": [
|
| 929 |
+
173,
|
| 930 |
+
354,
|
| 931 |
+
823,
|
| 932 |
+
397
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 8
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "text",
|
| 938 |
+
"text": "Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International Conference on Machine Learning, pp. 1126–1135, 2017. ",
|
| 939 |
+
"bbox": [
|
| 940 |
+
173,
|
| 941 |
+
406,
|
| 942 |
+
821,
|
| 943 |
+
435
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 8
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "Marta Garnelo, Dan Rosenbaum, Christopher Maddison, Tiago Ramalho, David Saxton, Murray Shanahan, Yee Whye Teh, Danilo Rezende, and SM Ali Eslami. Conditional neural processes. In International Conference on Machine Learning, pp. 1690–1699, 2018. ",
|
| 950 |
+
"bbox": [
|
| 951 |
+
173,
|
| 952 |
+
444,
|
| 953 |
+
825,
|
| 954 |
+
487
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 8
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio Gómez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, ´ et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538 (7626):471, 2016. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
173,
|
| 963 |
+
494,
|
| 964 |
+
825,
|
| 965 |
+
553
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 8
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8): 1735–1780, 1997. ",
|
| 972 |
+
"bbox": [
|
| 973 |
+
173,
|
| 974 |
+
560,
|
| 975 |
+
823,
|
| 976 |
+
590
|
| 977 |
+
],
|
| 978 |
+
"page_idx": 8
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"type": "text",
|
| 982 |
+
"text": "Edwin T Jaynes. Probability theory: The logic of science. Cambridge university press, 2003. ",
|
| 983 |
+
"bbox": [
|
| 984 |
+
169,
|
| 985 |
+
598,
|
| 986 |
+
784,
|
| 987 |
+
614
|
| 988 |
+
],
|
| 989 |
+
"page_idx": 8
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"type": "text",
|
| 993 |
+
"text": "Łukasz Kaiser, Ofir Nachum, Aurko Roy, and Samy Bengio. Learning to remember rare events. arXiv preprint arXiv:1703.03129, 2017. ",
|
| 994 |
+
"bbox": [
|
| 995 |
+
173,
|
| 996 |
+
622,
|
| 997 |
+
825,
|
| 998 |
+
651
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 8
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "text",
|
| 1004 |
+
"text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. ",
|
| 1005 |
+
"bbox": [
|
| 1006 |
+
173,
|
| 1007 |
+
660,
|
| 1008 |
+
823,
|
| 1009 |
+
689
|
| 1010 |
+
],
|
| 1011 |
+
"page_idx": 8
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"type": "text",
|
| 1015 |
+
"text": "James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences, pp. 201611835, 2017. ",
|
| 1016 |
+
"bbox": [
|
| 1017 |
+
173,
|
| 1018 |
+
698,
|
| 1019 |
+
825,
|
| 1020 |
+
755
|
| 1021 |
+
],
|
| 1022 |
+
"page_idx": 8
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"type": "text",
|
| 1026 |
+
"text": "Gregory Koch, Richard Zemel, and Ruslan Salakhutdinov. Siamese neural networks for one-shot image recognition. In ICML Deep Learning Workshop, volume 2, 2015. ",
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
173,
|
| 1029 |
+
763,
|
| 1030 |
+
823,
|
| 1031 |
+
792
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 8
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. nature, 521(7553):436, 2015. ",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
173,
|
| 1040 |
+
801,
|
| 1041 |
+
810,
|
| 1042 |
+
816
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 8
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "Nikhil Mishra, Mostafa Rohaninejad, Xi Chen, and Pieter Abbeel. A simple neural attentive meta-learner. In International Conference on Learning Representations, 2018. URL https: //openreview.net/forum?id $\\mathbf { \\Psi } = \\mathbf { \\Psi }$ B1DmUzWAW. ",
|
| 1049 |
+
"bbox": [
|
| 1050 |
+
173,
|
| 1051 |
+
825,
|
| 1052 |
+
821,
|
| 1053 |
+
867
|
| 1054 |
+
],
|
| 1055 |
+
"page_idx": 8
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"type": "text",
|
| 1059 |
+
"text": "Tsendsuren Munkhdalai and Hong Yu. Meta networks. In International Conference on Machine Learning, pp. 2554–2563, 2017. ",
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
173,
|
| 1062 |
+
877,
|
| 1063 |
+
823,
|
| 1064 |
+
905
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 8
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "Behnam Neyshabur, Srinadh Bhojanapalli, David McAllester, and Nati Srebro. Exploring generalization in deep learning. In Advances in Neural Information Processing Systems, pp. 5947–5956, 2017. ",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
176,
|
| 1073 |
+
103,
|
| 1074 |
+
821,
|
| 1075 |
+
146
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 9
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "text",
|
| 1081 |
+
"text": "Sylvestre-Alvise Rebuffi, Alexander Kolesnikov, Georg Sperl, and Christoph H Lampert. icarl: Incremental classifier and representation learning. In Proc. CVPR, 2017. ",
|
| 1082 |
+
"bbox": [
|
| 1083 |
+
173,
|
| 1084 |
+
155,
|
| 1085 |
+
823,
|
| 1086 |
+
184
|
| 1087 |
+
],
|
| 1088 |
+
"page_idx": 9
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"type": "text",
|
| 1092 |
+
"text": "Scott Reed, Yutian Chen, Thomas Paine, Aäron van den Oord, S. M. Ali Eslami, Danilo Rezende, Oriol Vinyals, and Nando de Freitas. Few-shot autoregressive density estimation: Towards learning to learn distributions. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ r1wEFyWCW. ",
|
| 1093 |
+
"bbox": [
|
| 1094 |
+
174,
|
| 1095 |
+
193,
|
| 1096 |
+
825,
|
| 1097 |
+
250
|
| 1098 |
+
],
|
| 1099 |
+
"page_idx": 9
|
| 1100 |
+
},
|
| 1101 |
+
{
|
| 1102 |
+
"type": "text",
|
| 1103 |
+
"text": "Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016. ",
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
174,
|
| 1106 |
+
257,
|
| 1107 |
+
825,
|
| 1108 |
+
300
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 9
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "text",
|
| 1114 |
+
"text": "Adam Santoro, Sergey Bartunov, Matthew Botvinick, Daan Wierstra, and Timothy Lillicrap. Metalearning with memory-augmented neural networks. In International conference on machine learning, pp. 1842–1850, 2016. ",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
174,
|
| 1117 |
+
309,
|
| 1118 |
+
825,
|
| 1119 |
+
352
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 9
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "Adam Santoro, Ryan Faulkner, David Raposo, Jack Rae, Mike Chrzanowski, Theophane Weber, Daan Wierstra, Oriol Vinyals, Razvan Pascanu, and Timothy Lillicrap. Relational recurrent neural networks. arXiv preprint arXiv:1806.01822, 2018. ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
174,
|
| 1128 |
+
361,
|
| 1129 |
+
825,
|
| 1130 |
+
404
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 9
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "Jürgen Schmidhuber. Evolutionary principles in self-referential learning, or on learning how to learn: the meta-meta-... hook. PhD thesis, Technische Universität München, 1987. ",
|
| 1137 |
+
"bbox": [
|
| 1138 |
+
173,
|
| 1139 |
+
412,
|
| 1140 |
+
823,
|
| 1141 |
+
441
|
| 1142 |
+
],
|
| 1143 |
+
"page_idx": 9
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"type": "text",
|
| 1147 |
+
"text": "Jürgen Schmidhuber. Deep learning in neural networks: An overview. Neural networks, 61:85–117, 2015. ",
|
| 1148 |
+
"bbox": [
|
| 1149 |
+
174,
|
| 1150 |
+
450,
|
| 1151 |
+
823,
|
| 1152 |
+
478
|
| 1153 |
+
],
|
| 1154 |
+
"page_idx": 9
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"type": "text",
|
| 1158 |
+
"text": "Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems, pp. 4077–4087, 2017. ",
|
| 1159 |
+
"bbox": [
|
| 1160 |
+
173,
|
| 1161 |
+
488,
|
| 1162 |
+
823,
|
| 1163 |
+
517
|
| 1164 |
+
],
|
| 1165 |
+
"page_idx": 9
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"type": "text",
|
| 1169 |
+
"text": "Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In AAAI, volume 4, pp. 12, 2017. ",
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
171,
|
| 1172 |
+
526,
|
| 1173 |
+
823,
|
| 1174 |
+
569
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 9
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "Oriol Vinyals, Charles Blundell, Tim Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In Advances in Neural Information Processing Systems, pp. 3630–3638, 2016. ",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
168,
|
| 1183 |
+
577,
|
| 1184 |
+
825,
|
| 1185 |
+
607
|
| 1186 |
+
],
|
| 1187 |
+
"page_idx": 9
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"type": "text",
|
| 1191 |
+
"text": "Jane X Wang, Zeb Kurth-Nelson, Dhruva Tirumala, Hubert Soyer, Joel Z Leibo, Remi Munos, Charles Blundell, Dharshan Kumaran, and Matt Botvinick. Learning to reinforcement learn. arXiv preprint arXiv:1611.05763, 2016. ",
|
| 1192 |
+
"bbox": [
|
| 1193 |
+
173,
|
| 1194 |
+
614,
|
| 1195 |
+
823,
|
| 1196 |
+
659
|
| 1197 |
+
],
|
| 1198 |
+
"page_idx": 9
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"type": "text",
|
| 1202 |
+
"text": "Jaehong Yoon, Eunho Yang, Jeongtae Lee, and Sung Ju Hwang. Lifelong learning with dynamically expandable networks. 2018. ",
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
168,
|
| 1205 |
+
666,
|
| 1206 |
+
823,
|
| 1207 |
+
695
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 9
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "6 SUPPLEMENTARY MATERIAL ",
|
| 1214 |
+
"text_level": 1,
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
176,
|
| 1217 |
+
102,
|
| 1218 |
+
442,
|
| 1219 |
+
117
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 10
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "text",
|
| 1225 |
+
"text": "6.1 MODEL ARCHITECTURES AND TRAINING DETAILS ",
|
| 1226 |
+
"text_level": 1,
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
173,
|
| 1229 |
+
133,
|
| 1230 |
+
560,
|
| 1231 |
+
147
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 10
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "For all experiments below we use the same training setup. For each training episode we sample elements from $N$ classes and randomly shuffle them to create training batches. For every batch shown to the model, we do one step of gradient descent with the Adam optimizer. We anneal the learning rate from $1 0 ^ { - 4 }$ to $1 0 ^ { - 5 }$ with exponential decay over 1000 steps (decay rate 0.9). ",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
174,
|
| 1240 |
+
159,
|
| 1241 |
+
825,
|
| 1242 |
+
214
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 10
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "text",
|
| 1248 |
+
"text": "For all experiments, the query data is passed through an embedding network (described below in), and this vector is used to query an external memory module. The memory module contains multiple columns of data, one of which will be the key and the others will contain data associated with that key. The necessary columns for each experiment are outlined below. The memory size is chosen so that elements will never be overwritten in a single episode (i.e. memory size $>$ batch size $\\times$ number of iterations). ",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
174,
|
| 1251 |
+
222,
|
| 1252 |
+
825,
|
| 1253 |
+
305
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 10
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "The returned memory contents as well as the query are fed to one of the decoder architectures described in section 6.2. ",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
174,
|
| 1262 |
+
313,
|
| 1263 |
+
823,
|
| 1264 |
+
340
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 10
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "text",
|
| 1270 |
+
"text": "6.1.1 OMNIGLOT ",
|
| 1271 |
+
"text_level": 1,
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
174,
|
| 1274 |
+
356,
|
| 1275 |
+
307,
|
| 1276 |
+
369
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 10
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "For omniglot we encode the images with a convolutional network composed of a single first convolution to map the image to 64 feature channels, followed by 12 convolutional blocks. Each block is made up of a step of Batch Normalization, followed by a ReLU activation and a convolutional layer with kernel size 3. Every three blocks the convolution contains a stride 2 to downsample the image. All layers have 64 features. Finally we flatten the activations to a 1D vector and pass it through a Layer Normalization function. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
174,
|
| 1285 |
+
380,
|
| 1286 |
+
825,
|
| 1287 |
+
463
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 10
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "For all decoders we use a hidden dimensionality of 512, take their final state and pass it through a linear layer to generate the final logits for classification, using a Cross Entropy loss. ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
176,
|
| 1296 |
+
470,
|
| 1297 |
+
821,
|
| 1298 |
+
498
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 10
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "6.1.2 IMAGENET ",
|
| 1305 |
+
"text_level": 1,
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
174,
|
| 1308 |
+
513,
|
| 1309 |
+
307,
|
| 1310 |
+
527
|
| 1311 |
+
],
|
| 1312 |
+
"page_idx": 10
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"type": "text",
|
| 1316 |
+
"text": "The encoder is a pretrained Inception-ResNet-v2 network (Szegedy et al., 2017) with the standard preprocessing as described in the paper. We use as embedding the pre-logit activations. All decoders use a hidden dimensionality of 1024. After the decoder step we take their final state and pass it through a linear layer to generate the final logits for classification, using a Cross Entropy loss. ",
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
174,
|
| 1319 |
+
537,
|
| 1320 |
+
825,
|
| 1321 |
+
594
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 10
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"text": "6.1.3 ANALOGY TASK ",
|
| 1328 |
+
"text_level": 1,
|
| 1329 |
+
"bbox": [
|
| 1330 |
+
176,
|
| 1331 |
+
608,
|
| 1332 |
+
341,
|
| 1333 |
+
622
|
| 1334 |
+
],
|
| 1335 |
+
"page_idx": 10
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"type": "text",
|
| 1339 |
+
"text": "The encoder for MNIST uses the same convolutional network as described in the Omniglot section. The symbols are one-hot vectors for the first set of experiments. The memory is queried for neighbors both of the digit embeddings as well as the symbols, and found neighbors are concatenated and fed to the decoder. ",
|
| 1340 |
+
"bbox": [
|
| 1341 |
+
174,
|
| 1342 |
+
632,
|
| 1343 |
+
823,
|
| 1344 |
+
688
|
| 1345 |
+
],
|
| 1346 |
+
"page_idx": 10
|
| 1347 |
+
},
|
| 1348 |
+
{
|
| 1349 |
+
"type": "text",
|
| 1350 |
+
"text": "The decoder process is identical to Omniglot. However, the classification target is now the one-shot encoded version of the result of the computation $X + S$ , where $X$ is the digit value and $S$ is the symbol value. As $S \\in [ - 5 , 5 ]$ , we sum 5 to all values to obtain valid one-hot encodings (which means there are 20 possible values in all). ",
|
| 1351 |
+
"bbox": [
|
| 1352 |
+
174,
|
| 1353 |
+
695,
|
| 1354 |
+
825,
|
| 1355 |
+
752
|
| 1356 |
+
],
|
| 1357 |
+
"page_idx": 10
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "text",
|
| 1361 |
+
"text": "6.2 DECODER ARCHITECTURES COMPARISON ",
|
| 1362 |
+
"text_level": 1,
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
174,
|
| 1365 |
+
768,
|
| 1366 |
+
504,
|
| 1367 |
+
782
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 10
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "text",
|
| 1373 |
+
"text": "6.2.1 RELATIONAL SELF-ATTENTION FEED FORWARD MODULE ",
|
| 1374 |
+
"text_level": 1,
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
174,
|
| 1377 |
+
795,
|
| 1378 |
+
622,
|
| 1379 |
+
809
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 10
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "text",
|
| 1385 |
+
"text": "Consider the set $\\{ e _ { t } , e _ { 1 . . . m } , l _ { 1 . . . m } , d _ { 1 . . . m } \\}$ , where $e _ { t }$ is the encoded target, $e _ { 1 \\dots m }$ the encoded observations from the memory, $l _ { 1 . . . m } = f ( y _ { 1 . . . m } )$ are the labels processed by a simple embedding layer to project the classes into a higher dimensional space, and $d _ { 1 \\dots m }$ are the euclidean distances between $e _ { t }$ and $e _ { 1 \\ldots m }$ . By concatenating all these vectors, we have a set of inputs to a relational block (Battaglia et al., 2018). ",
|
| 1386 |
+
"bbox": [
|
| 1387 |
+
174,
|
| 1388 |
+
818,
|
| 1389 |
+
825,
|
| 1390 |
+
888
|
| 1391 |
+
],
|
| 1392 |
+
"page_idx": 10
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "text",
|
| 1396 |
+
"text": "This tensor (of shape [batch size, $\\mathbf { k }$ , sum of all embeddings feature sizes]) is fed to what we call a relational self-attentional block: first the tensor is passed through a multihead attention layer (Figure ",
|
| 1397 |
+
"bbox": [
|
| 1398 |
+
174,
|
| 1399 |
+
895,
|
| 1400 |
+
823,
|
| 1401 |
+
924
|
| 1402 |
+
],
|
| 1403 |
+
"page_idx": 10
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "text",
|
| 1407 |
+
"text": "7), which compares all elements to each other and returns a new tensor of the same shape; then a shared nonlinear layer (ReLU, linear, layer norm) processes each element individually. The selfattentional blocks are repeated 8 times in a residual manner (the dimensionality of the tensor never changes). ",
|
| 1408 |
+
"bbox": [
|
| 1409 |
+
173,
|
| 1410 |
+
103,
|
| 1411 |
+
825,
|
| 1412 |
+
160
|
| 1413 |
+
],
|
| 1414 |
+
"page_idx": 11
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"type": "text",
|
| 1418 |
+
"text": "Finally, we pass the distances between neighbors and query through a softmax layer to generate an attention vector which is multiplied with the activations tensor over the first axis (this has the effect of weighting closer memories more). The tensor is then summed over that first axis to obtain the final representation. ",
|
| 1419 |
+
"bbox": [
|
| 1420 |
+
174,
|
| 1421 |
+
166,
|
| 1422 |
+
825,
|
| 1423 |
+
222
|
| 1424 |
+
],
|
| 1425 |
+
"page_idx": 11
|
| 1426 |
+
},
|
| 1427 |
+
{
|
| 1428 |
+
"type": "image",
|
| 1429 |
+
"img_path": "images/5889e06f1272a3cbe821592b0d3cfbaf77d2aab473a3b2c79322aea6081bcef2.jpg",
|
| 1430 |
+
"image_caption": [
|
| 1431 |
+
"Figure 7: Multihead attention implementation. "
|
| 1432 |
+
],
|
| 1433 |
+
"image_footnote": [],
|
| 1434 |
+
"bbox": [
|
| 1435 |
+
235,
|
| 1436 |
+
238,
|
| 1437 |
+
761,
|
| 1438 |
+
392
|
| 1439 |
+
],
|
| 1440 |
+
"page_idx": 11
|
| 1441 |
+
},
|
| 1442 |
+
{
|
| 1443 |
+
"type": "text",
|
| 1444 |
+
"text": "6.2.2 RELATIONAL WORKING MEMORY ",
|
| 1445 |
+
"text_level": 1,
|
| 1446 |
+
"bbox": [
|
| 1447 |
+
176,
|
| 1448 |
+
449,
|
| 1449 |
+
459,
|
| 1450 |
+
463
|
| 1451 |
+
],
|
| 1452 |
+
"page_idx": 11
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"type": "text",
|
| 1456 |
+
"text": "We use a Relational working memory core as described in (Santoro et al., 2018), (figure 2, right). The memory is initialized with the concatenated vectors $\\{ e _ { 1 . . . m } , l _ { 1 . . . m } , d _ { 1 . . . m } \\}$ . The query $e _ { t }$ is fed a number $N = 5$ times as input to the relational memory core to unroll the computation. The final memory state is passed through a linear layer to obtain the logits. ",
|
| 1457 |
+
"bbox": [
|
| 1458 |
+
173,
|
| 1459 |
+
473,
|
| 1460 |
+
825,
|
| 1461 |
+
530
|
| 1462 |
+
],
|
| 1463 |
+
"page_idx": 11
|
| 1464 |
+
},
|
| 1465 |
+
{
|
| 1466 |
+
"type": "text",
|
| 1467 |
+
"text": "6.2.3 LSTM ",
|
| 1468 |
+
"text_level": 1,
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
174,
|
| 1471 |
+
544,
|
| 1472 |
+
276,
|
| 1473 |
+
559
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 11
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "text",
|
| 1479 |
+
"text": "We use a standard LSTM module, with initial state equal to the query embedding, and at each time step we feed in the neighbor embedding as concatenated with the embedded label. The LSTM is rolled out for $k$ time steps (i.e. the number of neighbors). Its final output state is taken as input to the logits linear layer. ",
|
| 1480 |
+
"bbox": [
|
| 1481 |
+
174,
|
| 1482 |
+
568,
|
| 1483 |
+
823,
|
| 1484 |
+
625
|
| 1485 |
+
],
|
| 1486 |
+
"page_idx": 11
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"type": "image",
|
| 1490 |
+
"img_path": "images/b57536a24e844ec7c041ff56eabf513104b3bea405d2f0efc1ab7f25d3f0daf9.jpg",
|
| 1491 |
+
"image_caption": [
|
| 1492 |
+
"Figure 8: The LSTM decoder for APL. "
|
| 1493 |
+
],
|
| 1494 |
+
"image_footnote": [],
|
| 1495 |
+
"bbox": [
|
| 1496 |
+
334,
|
| 1497 |
+
638,
|
| 1498 |
+
661,
|
| 1499 |
+
736
|
| 1500 |
+
],
|
| 1501 |
+
"page_idx": 11
|
| 1502 |
+
},
|
| 1503 |
+
{
|
| 1504 |
+
"type": "text",
|
| 1505 |
+
"text": "6.2.4 DECODER ARCHITECTURE COMPARISON ",
|
| 1506 |
+
"text_level": 1,
|
| 1507 |
+
"bbox": [
|
| 1508 |
+
173,
|
| 1509 |
+
789,
|
| 1510 |
+
509,
|
| 1511 |
+
803
|
| 1512 |
+
],
|
| 1513 |
+
"page_idx": 11
|
| 1514 |
+
},
|
| 1515 |
+
{
|
| 1516 |
+
"type": "text",
|
| 1517 |
+
"text": "We compared all three decoder architectures for the classification case and found they perform equally well for the classification case, as shown in the figure below. ",
|
| 1518 |
+
"bbox": [
|
| 1519 |
+
173,
|
| 1520 |
+
813,
|
| 1521 |
+
823,
|
| 1522 |
+
842
|
| 1523 |
+
],
|
| 1524 |
+
"page_idx": 11
|
| 1525 |
+
},
|
| 1526 |
+
{
|
| 1527 |
+
"type": "text",
|
| 1528 |
+
"text": "For the analogy task, we found the Relational self-attention feed forward module to work best, as outlined in the main text. ",
|
| 1529 |
+
"bbox": [
|
| 1530 |
+
173,
|
| 1531 |
+
848,
|
| 1532 |
+
825,
|
| 1533 |
+
877
|
| 1534 |
+
],
|
| 1535 |
+
"page_idx": 11
|
| 1536 |
+
},
|
| 1537 |
+
{
|
| 1538 |
+
"type": "image",
|
| 1539 |
+
"img_path": "images/39189663b0200b4b7fb418498a34fda7fe00fd8b680ed94097c63311911af784.jpg",
|
| 1540 |
+
"image_caption": [
|
| 1541 |
+
"Figure 9: Accuracy as a function of examples written to memory. We compared relational working memory, LSTM and the relational self-attention feed-forward module for omniglot on the 20-way, 423-way and 1000-way tasks. "
|
| 1542 |
+
],
|
| 1543 |
+
"image_footnote": [],
|
| 1544 |
+
"bbox": [
|
| 1545 |
+
176,
|
| 1546 |
+
99,
|
| 1547 |
+
820,
|
| 1548 |
+
236
|
| 1549 |
+
],
|
| 1550 |
+
"page_idx": 12
|
| 1551 |
+
},
|
| 1552 |
+
{
|
| 1553 |
+
"type": "image",
|
| 1554 |
+
"img_path": "images/5d5e38917455f1598af040a1769c8d15bedfe06295b4bb1711d885f5bcbba007.jpg",
|
| 1555 |
+
"image_caption": [
|
| 1556 |
+
"Figure 10: Accuracy as a function of examples written to memory. Each plot corresponds to a different number $k$ of retrieved nearest neighbors. We compared relational working memory, LSTM and the relational self-attention feed-forward module. "
|
| 1557 |
+
],
|
| 1558 |
+
"image_footnote": [],
|
| 1559 |
+
"bbox": [
|
| 1560 |
+
173,
|
| 1561 |
+
309,
|
| 1562 |
+
823,
|
| 1563 |
+
577
|
| 1564 |
+
],
|
| 1565 |
+
"page_idx": 12
|
| 1566 |
+
},
|
| 1567 |
+
{
|
| 1568 |
+
"type": "text",
|
| 1569 |
+
"text": "6.3 EFFECT OF THRESHOLD PARAMETER ON PERFORMANCE ",
|
| 1570 |
+
"text_level": 1,
|
| 1571 |
+
"bbox": [
|
| 1572 |
+
173,
|
| 1573 |
+
665,
|
| 1574 |
+
602,
|
| 1575 |
+
679
|
| 1576 |
+
],
|
| 1577 |
+
"page_idx": 12
|
| 1578 |
+
},
|
| 1579 |
+
{
|
| 1580 |
+
"type": "text",
|
| 1581 |
+
"text": "How does the choice of parameter $\\sigma$ affect the performance of APL? Empirically we have verified that for a large range of $\\sigma$ , memory size and accuracy are largely unchanged. This is due to the feedback loop between the number of items stored and classification accuracy: as more items are stored in memory, the more elements are correctly classified and not stored in memory. Therefore the memory storage mechanism is self-regulating, and the number of elements in memory ends up being largely flat. ",
|
| 1582 |
+
"bbox": [
|
| 1583 |
+
173,
|
| 1584 |
+
690,
|
| 1585 |
+
825,
|
| 1586 |
+
775
|
| 1587 |
+
],
|
| 1588 |
+
"page_idx": 12
|
| 1589 |
+
},
|
| 1590 |
+
{
|
| 1591 |
+
"type": "text",
|
| 1592 |
+
"text": "In Fig. 11 we show the final memory size and average accuracy for the last 100 data points after showing APL 2000 unique data points for the case of 200-way classification. In this case the ’natural’ (uniform predictions) $\\sigma$ is around 5.2, which seems to be close to optimal for accuracy vs. elements in memory. We can increase the value somewhat but eventually the model can’t write to memory any more and performance tanks. On the other side of the curve, for $\\sigma = 0$ where we write everything, performance is slightly higher but at a roughly ${ 8 \\mathrm { x } }$ memory cost. ",
|
| 1593 |
+
"bbox": [
|
| 1594 |
+
173,
|
| 1595 |
+
781,
|
| 1596 |
+
825,
|
| 1597 |
+
866
|
| 1598 |
+
],
|
| 1599 |
+
"page_idx": 12
|
| 1600 |
+
},
|
| 1601 |
+
{
|
| 1602 |
+
"type": "image",
|
| 1603 |
+
"img_path": "images/895e37d999f8a7adffb8406f7d1db11d1146682a171b39febe04adaf747a956d.jpg",
|
| 1604 |
+
"image_caption": [
|
| 1605 |
+
"Figure 11: Accuracy as a function of examples written to memory. Each plot corresponds to a different number $k$ of retrieved nearest neighbors. We compared relational working memory, LSTM and the relational self-attention feed-forward module. "
|
| 1606 |
+
],
|
| 1607 |
+
"image_footnote": [],
|
| 1608 |
+
"bbox": [
|
| 1609 |
+
308,
|
| 1610 |
+
121,
|
| 1611 |
+
691,
|
| 1612 |
+
299
|
| 1613 |
+
],
|
| 1614 |
+
"page_idx": 13
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "text",
|
| 1618 |
+
"text": "6.4 RELATION TO CONTINUAL LEARNING ",
|
| 1619 |
+
"text_level": 1,
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
178,
|
| 1622 |
+
388,
|
| 1623 |
+
473,
|
| 1624 |
+
404
|
| 1625 |
+
],
|
| 1626 |
+
"page_idx": 13
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"type": "text",
|
| 1630 |
+
"text": "While we study APL in the few-shot learning setting, the algorithm could also be used in the continual learning setup (Kirkpatrick et al., 2017; Rusu et al., 2016; Yoon et al., 2018; Rebuffi et al., 2017). We consider an experiment where each task consists of learning 10 new and previously unseen classes. For each task we present the models with 200 unique examples, and report the average accuracy for the last 100 examples seen. Examples are drawn from the test set of classes. ",
|
| 1631 |
+
"bbox": [
|
| 1632 |
+
173,
|
| 1633 |
+
415,
|
| 1634 |
+
825,
|
| 1635 |
+
484
|
| 1636 |
+
],
|
| 1637 |
+
"page_idx": 13
|
| 1638 |
+
},
|
| 1639 |
+
{
|
| 1640 |
+
"type": "text",
|
| 1641 |
+
"text": "In the case of progressive networks, one gradient descent step is taken after each example. For each task, a new logits layer is added on top of a convolutional encoder (same architecuture as APL) pretrained on the omniglot training set. APL is run as described in the main text. ",
|
| 1642 |
+
"bbox": [
|
| 1643 |
+
174,
|
| 1644 |
+
492,
|
| 1645 |
+
823,
|
| 1646 |
+
534
|
| 1647 |
+
],
|
| 1648 |
+
"page_idx": 13
|
| 1649 |
+
},
|
| 1650 |
+
{
|
| 1651 |
+
"type": "text",
|
| 1652 |
+
"text": "The results are summarized in figure 12: APL can perform as well or better than a progressive network on this kind of task without needing access to gradient information, as its memory store can provide the requisite information to update its predictions to the new task. ",
|
| 1653 |
+
"bbox": [
|
| 1654 |
+
173,
|
| 1655 |
+
540,
|
| 1656 |
+
825,
|
| 1657 |
+
583
|
| 1658 |
+
],
|
| 1659 |
+
"page_idx": 13
|
| 1660 |
+
},
|
| 1661 |
+
{
|
| 1662 |
+
"type": "image",
|
| 1663 |
+
"img_path": "images/2ada6e4f5074df0eb476a060c43c70bcdaf5f85cce4687b1b49d4d68552be651.jpg",
|
| 1664 |
+
"image_caption": [
|
| 1665 |
+
"Figure 12: Accuracy of APL on a lifelong learning task where each task corresponds to learning 10 new classes in Omniglot. The baseline is a progressive net where the convolutional encoder is pretrained, and for every task a new logits layer is added and trained to classify the new classes. Results are the average accuracy over 5 runs. While not using any gradient information, APL performs as well or better than progressive networks. "
|
| 1666 |
+
],
|
| 1667 |
+
"image_footnote": [],
|
| 1668 |
+
"bbox": [
|
| 1669 |
+
318,
|
| 1670 |
+
616,
|
| 1671 |
+
656,
|
| 1672 |
+
794
|
| 1673 |
+
],
|
| 1674 |
+
"page_idx": 13
|
| 1675 |
+
}
|
| 1676 |
+
]
|
parse/train/ByeSdsC9Km/ByeSdsC9Km_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/ByeSdsC9Km/ByeSdsC9Km_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJg_ECEKDr/HJg_ECEKDr.md
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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| 1 |
+
# GENERATIVE TEACHING NETWORKS: ACCELERATING NEURAL ARCHITECTURE SEARCH BY LEARNING TO GENERATE SYNTHETIC TRAINING DATA
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
This paper investigates the intriguing question of whether we can create learning algorithms that automatically generate training data, learning environments, and curricula in order to help AI agents rapidly learn. We show that such algorithms are possible via Generative Teaching Networks (GTNs), a general approach that is, in theory, applicable to supervised, unsupervised, and reinforcement learning, although our experiments only focus on the supervised case. GTNs are deep neural networks that generate data and/or training environments that a learner (e.g. a freshly initialized neural network) trains on for a few SGD steps before being tested on a target task. We then differentiate through the entire learning process via meta-gradients to update the GTN parameters to improve performance on the target task. GTNs have the beneficial property that they can theoretically generate any type of data or training environment, making their potential impact large. This paper introduces GTNs, discusses their potential, and showcases that they can substantially accelerate learning. We also demonstrate a practical and exciting application of GTNs: accelerating the evaluation of candidate architectures for neural architecture search (NAS), which is rate-limited by such evaluations, enabling massive speed-ups in NAS. GTN-NAS improves the NAS state of the art, finding higher performing architectures when controlling for the search proposal mechanism. GTN-NAS also is competitive with the overall state of the art approaches, which achieve top performance while using orders of magnitude less computation than typical NAS methods. Speculating forward, GTNs may represent a first step toward the ambitious goal of algorithms that generate their own training data and, in doing so, open a variety of interesting new research questions and directions.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION AND RELATED WORK
|
| 10 |
+
|
| 11 |
+
Access to vast training data is now common in machine learning. However, to effectively train neural networks (NNs) does not require using all available data. For example, recent work in curriculum learning (Graves et al., 2017), active learning (Konyushkova et al., 2017; Settles, 2010) and core-set selection (Sener & Savarese, 2018; Tsang et al., 2005) demonstrates that a surrogate dataset can be created by intelligently sampling a subset of training data, and that such surrogates enable competitive test performance with less training effort. Being able to more rapidly determine the performance of an architecture in this way could particularly benefit architecture search, where training thousands or millions of candidate NN architectures on full datasets can become prohibitively expensive. From this lens, related work in learning-to-teach has shown promise. For example, the learning to teach (L2T) (Fan et al., 2018) method accelerates learning for a NN learner (hereafter, just learner) through reinforcement learning, by learning how to subsample mini-batches of data.
|
| 12 |
+
|
| 13 |
+
A key insight in this paper is that the surrogate data need not be drawn from the original data distribution (i.e. they may not need to resemble the original data). For example, humans can learn new skills from reading a book or can prepare for a team game like soccer by practicing skills, such as passing, dribbling, juggling, and shooting. This paper investigates the question of whether we can train a data-generating network that can produce synthetic data that effectively and efficiently teaches a target task to a learner. Related to the idea of generating data, Generative Adversarial Networks (GANs) can produce impressive high-resolution images (Goodfellow et al., 2014; Brock et al., 2018), but they are incentivized to mimic real data (Goodfellow et al., 2014), instead of being optimized to teach learners more efficiently than real data.
|
| 14 |
+
|
| 15 |
+
Another approach for creating surrogate training data is to treat the training data itself as a hyperparameter of the training process and learn it directly. Such learning can be done through metagradients (also called hyper-gradients), i.e. differentiating through the training process to optimize a meta-objective. This approach was described in Maclaurin et al. (2015), where 10 synthetic training images were learned using meta-gradients such that when a network is trained on these images, the network’s performance on the MNIST validation dataset is maximized. In recent work concurrent with our own, Wang et al. (2019b) scaled this idea to learn 100 synthetic training examples. While the 100 synthetic examples were more effective for training than 100 original (real) MNIST training examples, we show that it is difficult to scale this approach much further without the regularity across samples provided by a generative architecture (Figure 2b, green line).
|
| 16 |
+
|
| 17 |
+
Being able to very quickly train learners is particularly valuable for neural architecture search (NAS), which is exciting for its potential to automatically discover high-performing architectures, which otherwise must be undertaken through time-consuming manual experimentation for new domains. Many advances in NAS involve accelerating the evaluation of candidate architectures by training a predictor of how well a trained learner would perform, by extrapolating from previously trained architectures (Luo et al., 2018; Liu et al., 2018a; Baker et al., 2017). This approach is still expensive because it requires many architectures to be trained and evaluated to train the predictor. Other approaches accelerate training by sharing training across architectures, either through shared weights (e.g. as in ENAS; Pham et al. (2018)), or Graph HyperNetworks (Zhang et al., 2018).
|
| 18 |
+
|
| 19 |
+
We propose a scalable, novel, meta-learning approach for creating synthetic data called Generative Teaching Networks (GTNs). GTN training has two nested training loops: an inner loop to train a learner network, and an outer-loop to train a generator network that produces synthetic training data for the learner network. Experiments presented in Section 3 demonstrate that the GTN approach produces synthetic data that enables much faster learning, speeding up the training of a NN by a factor of 9. Importantly, the synthetic data in GTNs is not only agnostic to the weight initialization of the learner network (as in Wang et al. (2019b)), but is also agnostic to the learner’s architecture. As a result, GTNs are a viable method for accelerating evaluation of candidate architectures in NAS. Indeed, controlling for the search algorithm (i.e. using GTN-produced synthetic data as a drop-in replacement for real data when evaluating a candidate architecture’s performance), GTN-NAS improves the NAS state of the art by finding higher-performing architectures than comparable methods like weight sharing (Pham et al., 2018) and Graph HyperNetworks (Zhang et al., 2018); it also is competitive with methods using more sophisticated search algorithms and orders of magnitude more computation. It could also be combined with those methods to provide further gains.
|
| 20 |
+
|
| 21 |
+
One promising aspect of GTNs is that they make very few assumptions about the learner. In contrast, NAS techniques based on shared training are viable only if the parameterizations of the learners are similar. For example, it is unclear how weight-sharing or HyperNetworks could be applied to architectural search spaces wherein layers could be either convolutional or fully-connected, as there is no obvious way for weights learned for one layer type to inform those of the other. In contrast, GTNs are able to create training data that can generalize between such diverse types of architectures.
|
| 22 |
+
|
| 23 |
+
GTNs also open up interesting new research questions and applications to be explored by future work. Because they can rapidly train new architectures, GTNs could be used to create NNs ondemand that meet specific design constraints (e.g. a given balance of performance, speed, and energy usage) and/or have a specific subset of skills (e.g. perhaps one needs to rapidly create a compact network capable of three particular skills). Because GTNs can generate virtually any learning environment, they also one day could be a key to creating AI-generating algorithms, which seek to bootstrap themselves from simple initial conditions to powerful forms of AI by creating an openended stream of challenges (learning opportunities) while learning to solve them (Clune, 2019).
|
| 24 |
+
|
| 25 |
+
# 2 METHODS
|
| 26 |
+
|
| 27 |
+
The main idea in GTNs is to train a data-generating network such that a learner network trained on data it rapidly produces high accuracy in a target task. Unlike a GAN, here the two networks cooperate (rather than compete) because their interests are aligned towards having the learner perform well on the target task when trained on data produced by the GTN. The generator and the learner networks are trained with meta-learning via nested optimization that consists of inner and outer training loops (Figure 1a). In the inner-loop, the generator $G ( z , y )$ takes Gaussian noise $( z )$ and a label $( y )$ as input and outputs synthetic data $( x )$ . Optionally, the generator could take only noise as input and produce both data and labels as output (Appendix F). The learner is then trained on this synthetic data for a fixed number of inner-loop training steps with any optimizer, such as SGD or Adam (Kingma & Ba, 2014): we use SGD with momentum in this paper. SI Equation 1 defines the inner-loop SGD with momentum update for the learner parameters $\theta _ { t }$ . We sample $\mathbf { z } _ { t }$ (noise vectors input to the generator) from a unit-variance Gaussian and $\mathbf { y } _ { t }$ labels for each generated sample) uniformly from all available class labels. Note that both $\mathbf { z } _ { t }$ and $\mathbf { y } _ { t }$ are batches of samples. We can also learn a curriculum directly by additionally optimizing $\mathbf { z } _ { t }$ directly (instead of sampling it randomly) and keeping $\mathbf { y } _ { t }$ fixed throughout all of training.
|
| 28 |
+
|
| 29 |
+
The inner-loop loss function $\ell _ { \mathrm { i n n e r } }$ can be cross-entropy for classification problems or mean squared error for regression problems. Note that the inner-loop objective does not depend on the outerloop objective and could even be parameterized and learned through meta-gradients with the rest of the system (Houthooft et al., 2018). In the outer-loop, the learner $\theta _ { T }$ (i.e. the learner parameters trained on synthetic data after the $T$ inner-loop steps) is evaluated on the real training data, which is used to compute the outer-loop loss (aka meta-training loss). The gradient of the meta-training loss with respect to the generator is computed by backpropagating through the entire inner-loop learning process. While computing the gradients for the generator we also compute the gradients of hyperparameters of the inner-loop SGD update rule (its learning rate and momentum), which are updated after each outer-loop at no additional cost. To reduce memory requirements, we leverage gradientcheckpointing (Griewank & Walther, 2000) when computing meta-gradients. The computation and memory complexity of our approach can be found in Appendix D.
|
| 30 |
+
|
| 31 |
+

|
| 32 |
+
(a) Overview of Generative Teaching Networks (b) GTN stability with WN (c) GTN curricula comparison
|
| 33 |
+
Figure 1: (a) Generative Teaching Network (GTN) Method. The numbers in the figure reflect the order in which a GTN is executed. Noise is fed as an input to the Generator (1), which uses it to generate new data (2). The learner is trained (e.g. using SGD or Adam) to perform well on the generated data (3). The trained learner is then evaluated on the real training data in the outer-loop to compute the outer-loop meta-loss (4). The gradients of the generator parameters are computed w.r.t. to the meta-loss to update the generator (5). Both a learned curriculum and weight normalization substantially improve GTN performance. (b) Weight normalization improves meta-gradient training of GTNs, and makes the method much more robust to different hyperparameter settings. Each boxplot reports the final loss of 20 runs obtained during hyperparameter optimization with Bayesian Optimization (lower is better). (c) shows a comparison between GTNs with different types of curricula. The GTN method with the most control over how samples are presented performs the best.
|
| 34 |
+
|
| 35 |
+
A key motivation for this work is to generate synthetic data that is learner agnostic, i.e. that generalizes across different potential learner architectures and initializations. To achieve this objective, at the beginning of each new outer-loop training, we choose a new learner architecture according to a predefined set and randomly initialize it (details in Appendix A).
|
| 36 |
+
|
| 37 |
+
Meta-learning with Weight Normalization. Optimization through meta-gradients is often unstable (Maclaurin et al., 2015). We observed that this instability greatly complicates training because of its hyperparameter sensitivity, and training quickly diverges if they are not well-set. Combining the gradients from Evolution Strategies (Salimans et al., 2017) and backpropagation using inverse variance weighting (Fleiss, 1993; Metz et al., 2019) improved stability in our experiments, but optimization still consistently diverged whenever we increased the number of inner-loop optimization steps. To mitigate this issue, we introduce applying weight normalization (Salimans & Kingma, 2016) to stabilize meta-gradient training by normalizing the generator and learner weights. Instead of updating the weights $( W )$ directly, we parameterize them as $W = g \cdot V / \| V \|$ and instead update the scalar $g$ and vector $V$ . Weight normalization eliminates the need for (and cost of) calculating ES gradients and combining them with backprop gradients, simplifying and speeding up the algorithm.
|
| 38 |
+
|
| 39 |
+
We hypothesize that weight normalization will help stabilize meta-gradient training more broadly, although future work is required to test this hypothesis in meta-learning contexts besides GTNs. The idea is that applying weight normalization to meta-learning techniques is analogous to batch normalization for deep networks (Ioffe & Szegedy, 2015). Batch normalization normalizes the forward propagation of activations in a long sequence of parameterized operations (a deep NN). In meta-gradient training both the activations and weights result from a long sequence of parameterized operations and thus both should be normalized. Results in section 3.1 support this hypothesis.
|
| 40 |
+
|
| 41 |
+
Learning a Curriculum with Generative Teaching Networks. Previous work has shown that a learned curriculum can be more effective than training from uniformly sampled data (Graves et al., 2017). A curriculum is usually encoded with indexes to samples from a given dataset, rendering it non-differentiable and thereby complicating the curriculum’s optimization. With GTNs however, a curriculum can be encoded as a series of input vectors to the generator (i.e. instead of sampling the $\mathbf { z } _ { t }$ inputs to the generator from a Gaussian distribution, a sequence of $\mathbf { z } _ { t }$ inputs can be learned). A curriculum can thus be learned by differentiating through the generator to optimize this sequence (in addition to the generator’s parameters). Experiments confirm that GTNs more effectively teach learners when optimizing such a curriculum (Section 3.2).
|
| 42 |
+
|
| 43 |
+
Accelerating NAS with Generative Teaching Networks. Since GTNs can accelerate learner training, we propose harnessing GTNs to accelerate NAS. Rather than evaluating each architecture in a target task with a standard training procedure, we propose evaluating architectures with a metaoptimized training process (that generates synthetic data in addition to optimizing inner-loop hyperparameters). We show that doing so significantly reduces the cost of running NAS (Section 3.4).
|
| 44 |
+
|
| 45 |
+
The goal of these experiments is to find a high-performing CNN architecture for the CIFAR10 image-classification task (Krizhevsky et al., 2009) with limited compute costs. We use the same architecture search-space, training procedure, hyperparameters, and code from Neural Architecture Optimization (Luo et al., 2018), a state-of-the-art NAS method. The search space consists of the topology of two cells: a reduction cell and a convolutional cell. Multiple copies of such cells are stacked according to a predefined blueprint to form a full CNN architecture (see Luo et al. (2018) for more details). The blueprint has two hyperparameters $N$ and $F$ that control how many times the convolutional cell is repeated (depth) and the width of each layer, respectively. Each cell contains $B = 5$ nodes. For each node within a cell, the search algorithm has to choose two inputs as well as two operations to apply to those inputs. The inputs to a node can be previous nodes or the outputs of the last two layers. There are 11 operations to choose from (Appendix C).
|
| 46 |
+
|
| 47 |
+
Following Luo et al. (2018), we report the performance of our best cell instantiated with $N =$ $6 , F = 3 6$ after the resulting architecture is trained for a significant amount of time (600 epochs). Since evaluating each architecture in those settings (named final evaluation from now on) is time consuming, Luo et al. (2018) uses a surrogate evaluation (named search evaluation) to estimate the performance of a given cell wherein a smaller version of the architecture $( N = 3 , F = 3 2 )$ is trained for less epochs (100) on real data. We further reduce the evaluation time of each cell by replacing the training data in the search evaluation with GTN synthetic data, thus reducing the training time per evaluation by $3 0 0 \mathrm { x }$ (which we call GTN evaluation). While we were able to train GTNs directly on the complex architectures from the NAS search space, training was prohibitively slow. Instead, for these experiments, we optimize our GTN ahead of time using proxy learners described in Appendix A.2, which are smaller fully-convolutional networks (this meta-training took 8h on one p6000 GPU). Interestingly, although we never train our GTN on any NAS architectures, because of generalization, synthetic data from GTNs were still effective for training them.
|
| 48 |
+
|
| 49 |
+
# 3 RESULTS
|
| 50 |
+
|
| 51 |
+
We first demonstrate that weight normalization significantly improves the stability of meta-learning, an independent contribution of this paper (Section 3.1). We then show that training with synthetic data is more effective when learning such data jointly with a curriculum that orders its presentation to the learner (Section 3.2). We next show that GTNs can generate a synthetic training set that enables more rapid learning in a few SGD steps than real training data in two supervised learning domains (MNIST and CIFAR10) and in a reinforcement learning domain (cart-pole, Appendix H). We then apply GTN-synthetic training data for neural architecture search to find high performing architectures for CIFAR10 with limited compute, outperforming comparable methods like weight sharing (Pham et al., 2018) and Graph HyperNetworks (Zhang et al., 2018) (Section 3.4).
|
| 52 |
+
|
| 53 |
+
We uniformly split the usual MNIST training set into training (50k) and validation sets (10k). The training set was used for inner-loop training (for the baseline) and to compute meta-gradients for all the treatments. We used the validation set for hyperparameter tuning and report accuracy on the usual MNIST test set (10k images). We followed the same procedure for CIFAR10, resulting in training, validation, and test sets with 45k, 5k, and 10k examples, respectively. Unless otherwise specified, we ran each experiment 5 times and plot the mean and its $9 5 \%$ confidence intervals from $_ { \mathrm { ( n = 1 , 0 0 0 ) } }$ bootstrapping. Appendix A describes additional experimental details.
|
| 54 |
+
|
| 55 |
+
# 3.1 IMPROVING STABILITY WITH WEIGHT NORMALIZATION
|
| 56 |
+
|
| 57 |
+
To demonstrate the effectiveness of weight normalization for stabilizing and robustifying metaoptimization, we compare the results of running hyperparameter optimization for GTNs with and without weight normalization on MNIST. Figure 1b shows the distribution of the final performance obtained for 20 runs during hyperparameter tuning, which reflects how sensitive the algorithms are to hyperparameter settings. Overall, weight normalization substantially improved robustness to hyperparameters and final learner performance, supporting the initial hypothesis.
|
| 58 |
+
|
| 59 |
+
# 3.2 IMPROVING GTNS WITH A CURRICULUM
|
| 60 |
+
|
| 61 |
+
We experimentally evaluate four different variants of GTNs, each with increasing control over the ordering of the $z$ codes input to the generator, and thus the order of the inputs provided to the learner. The first variant (called GTN - No Curriculum), trains a generator to output synthetic training data by sampling the noise vector $z$ for each sample independently from a Gaussian distribution. In the next three GTN variants, the generator is provided with a fixed set of input samples (instead of a noise vector). These input samples are learned along with the generator parameters during GTN training. The second GTN variant (called GTN - All Shuffled) learns a fixed set of 4,096 input samples that are presented in a random order without replacement (thus learning controls the data, but not the order in which they are presented). The third variant (called GTN - Shuffled Batch) learns 32 batches of 128 samples each (so learning controls which samples coexist within a batch), but the order in which the batches are presented is randomized (without replacement). Finally, the fourth variant (called GTN - Full Curriculum) learns a deterministic sequence of 32 batches of 128 samples, giving learning full control. Learning such a curriculum incurs no additional computational expense, as learning the $\mathbf { z } _ { t }$ tensor is computationally negligible and avoids the cost of repeatedly sampling new Gaussian $z$ codes. We plot the test accuracy of a learner (with random initial weights and architecture) as a function of outer-loop iterations for all four variants in Figure 1c. Although GTNs - No curriculum can seemingly generate endless data (see Appendix G), it performs worse than the other three variants with a fixed set of generator inputs. Overall, training the GTN with exact ordering of input samples (GTN - Full Curriculum) outperforms all other variants.
|
| 62 |
+
|
| 63 |
+
While curriculum learning usually refers to training on easy tasks first and increasing their difficulty over time, our curriculum goes beyond presenting tasks in a certain order. Specifically, GTN - Full Curriculum learns both the order in which to present samples and the specific group of samples to present at the same time. The ability to learn a full curriculum improves GTN performance. For that reason, we adopt that approach for all GTN experiments.
|
| 64 |
+
|
| 65 |
+
# 3.3 GTNS FOR SUPERVISED LEARNING
|
| 66 |
+
|
| 67 |
+
To explore whether GTNs can generate training data that helps networks learn rapidly, we compare to 3 treatments for MNIST classification. 1) Real Data - Training learners with random mini-batches of real data, as is ubiquitous in SGD. 2) Dataset Distillation - Training learners with synthetic data, where training examples are directly encoded as tensors optimized by the meta-objective, as in Wang et al. (2019b). 3) GTN - Our method where the training data presented to the learner is generated by a neural network. Note that all three methods meta-optimize the inner-loop hyperparameters (i.e. the learning rate and momentum of SGD) as part of the meta-optimization.
|
| 68 |
+
|
| 69 |
+
We emphasize that producing state-of-the-art (SOTA) performance (e.g. on MNIST or CIFAR) when training with GTN-generated data is not important for GTNs. Because the ultimate aim for
|
| 70 |
+
|
| 71 |
+
GTNs is to accelerate NAS (Section 3.4), what matters is how well and inexpensively we can identify architectures that achieve high asymptotic accuracy when later trained on the full (real) training set. A means to that end is being able to train architectures rapidly, i.e. with very few SGD steps, because doing so allows NAS to rapidly identify promising architectures. We are thus interested in “few-step accuracy (i.e. accuracy after a few–e.g. 32 or 128–SGD steps). Besides, there are many reasons not to expect SOTA performance with GTNs (Appendix B).
|
| 72 |
+
|
| 73 |
+
Figure 2a shows that the GTN treatment significantly outperforms the other ones $( p < 0 . 0 1 )$ and trains a learner to be much more accurate when in the few-step performance regime. Specifically, for each treatment the figure shows the test performance of a learner following 32 inner-loop training steps with a batch size of 128. We would not expect training on synthetic data to produce higher accuracy than unlimited SGD steps on real data, but here the performance gain comes because GTNs can compress the real training data by producing synthetic data that enables learners to learn more quickly than on real data. For example, the original dataset might contain many similar images, where only a few of them would be sufficient for training (and GTN can produce just these few). GTN could also combine many different things that need to be learned about images into one image.
|
| 74 |
+
|
| 75 |
+
Figure 2b shows the few-step performance of a learner from each treatment after 2000 total outerloop iterations $\mathord { } 1$ hour on a p6000 GPU). For reference, Dataset Distillation (Wang et al., 2019b) reported $7 9 . 5 \%$ accuracy for a randomly initialized network (using 100 synthetic images vs. our 4,096) and L2T (Fan et al., 2018) reported needing $3 0 0 \mathrm { x }$ more training iterations to achieve $> 9 8 \%$ MNIST accuracy. Surprisingly, although recognizable as digits and effective for training, GTNgenerated images (Figure 2c) were not visually realistic (see Discussion).
|
| 76 |
+
|
| 77 |
+

|
| 78 |
+
Figure 2: Teaching MNIST with GTN-generated images. (a) shows MNIST test set few-step accuracy across outer-loop iterations for different sources of inner-loop training data. The inner-loop consists of $3 2 ~ \mathrm { S G D }$ steps and the outer-loop optimizes MNIST validation accuracy. Our method (GTN) outperforms the two controls (dataset distillation and samples from real data). (b) shows, given final meta-training iteration, how iterations of inner-loop training compare between training data sources (measured by MNIST training set accuracy). (c) shows 100 random samples from the trained GTN. Samples are usually recognizable as digits, but are not realistic (see Discussion). Each column contains samples from a different digit class, and each row is taken from different inner-loop iterations (evenly spaced from the 32 total iterations, with early iterations at the top).
|
| 79 |
+
|
| 80 |
+
# 3.4 ARCHITECTURE SEARCH WITH GTNS
|
| 81 |
+
|
| 82 |
+
We next test the benefits of GTN for NAS (GTN-NAS) in CIFAR10, a domain where NAS has previously shown significant improvements over the best architectures produced by armies of human scientists. Figure 3a shows the few-step training accuracy of a learner trained with either GTN-synthetic data or real (CIFAR10) data over meta-training iterations. After 8h of meta-training, training with GTN-generated data was significantly faster than with real data, as in MNIST.
|
| 83 |
+
|
| 84 |
+
To explore the potential for GTN-NAS to accelerate CIFAR10 architecture search, we investigated the Spearman rank correlation (across architectures sampled from the NAS search space) between accelerated GTN-trained network performance (GTN evaluation) and the usual more expensive performance metric used during NAS (search evaluation). A correlation plot is shown in Figure 3c; note that a strong correlation implies we can train architectures using GTN evaluation as an inexpensive surrogate. We find that GTN evaluation enables predicting the performance of an architecture efficiently. The rank-correlation between 128 steps of training with GTN-synthetic data vs. 100 epochs of real data is 0.3606. The correlation improves to 0.5582 when considering the top $50 \%$ of architectures recommended by GTN evaluation scores, which is important because those are the ones that search would select. This improved correlation is slightly stronger than that from 3 epochs of training with real data (0.5235), a $\sim 9 \times$ cost-reduction per trained model.
|
| 85 |
+
|
| 86 |
+

|
| 87 |
+
Figure 3: Teaching CIFAR10 with GTN-generated images. (a) CIFAR10 training set performance of the final learner (after 1,700 meta-optimization steps) across inner-loop learning iterations. (b) Samples generated by GTN to teach CIFAR10 are unrecognizable, despite being effective for training. Each column contains a different class, and each row is taken from the same inner-loop iteration (evenly spaced from all 128 iterations, early iterations at the top). (c) Correlation between performance prediction using GTN-data vs. Real Data. When considering the top half of architectures (as ranked by GTN evaluation), correlation between GTN evaluation and search evaluation is strong (0.5582 rank-correlation), suggesting that GTN-NAS has potential to uncover high performing architectures at a significantly lower cost. Architectures shown are uniformly sampled from the NAS search space. The top $10 \%$ of architectures according to the GTN evaluation (blue squares)– those likely to be selected by GTN-NAS–have high true asymptotic accuracy.
|
| 88 |
+
|
| 89 |
+
Architecture search methods are composed of several semi-independent components, such as the choice of search space, search algorithm, and proxy evaluation of candidate architectures. GTNs are proposed as an improvement to this last component, i.e. as a new way to quickly evaluate a new architecture. Thus we test our method under the standard search space for CIFAR10, using a simple form of search (random search) for which there are previous benchmark results. In particular, we ran an architecture search experiment where we evaluated 800 randomly generated architectures trained with GTN-synthetic data. We present the performance after final evaluation of the best architecture found in Table 1. This experimental setting is similar to that of Zhang et al. (2018). Highlighting the potential of GTNs as an improved proxy evaluation for architectures, we achieve state-of-the-art results when controlling for search algorithm (the choice of which is orthogonal to our contribution). While it is an apples-to-oranges comparison, GTN-NAS is competitive even with methods that use more advanced search techniques than random search to propose architectures (Appendix E). GTN is compatible with such techniques, and would likely improve their performance, an interesting area of future work. Furthermore, because of the NAS search space, the modules GTN found can be used to create even larger networks. A further test of whether GTNs predictions generalize is if such larger networks would continue performing better than architectures generated by the realdata control, similarly scaled. We tried $\mathrm { F } { = } 1 2 8$ and show it indeed does perform better (Table 1), suggesting additional gains can be had by searching post-hoc for the correct F and N settings.
|
| 90 |
+
|
| 91 |
+
# 4 DISCUSSION, FUTURE WORK, AND CONCLUSION
|
| 92 |
+
|
| 93 |
+
The results presented here suggest potential future applications and extensions of GTNs. Given the ability of GTNs to rapidly train new models, they are particularly useful when training many independent models is required (as we showed for NAS). Another such application would be to teach networks on demand to realize particular trade-offs between e.g. accuracy, inference time, and memory requirements. While to address a range of such trade-offs would ordinarily require training many models ahead of time and selecting amongst them (Elsken et al., 2019), GTNs could instead rapidly train a new network only when a particular trade-off is needed. Similarly, agents with unique combinations of skills could be created on demand when needed.
|
| 94 |
+
|
| 95 |
+
Interesting questions are raised by the lack of similarity between the synthetic GTN data and real MNIST and CIFAR10 data. That unrealistic and/or unrecognizable images can meaningfully affect NNs is reminiscent of the finding that deep neural networks are easily fooled by unrecognizable images (Nguyen et al., 2015). It is possible that if neural network architectures were functionally more similar to human brains, GTNs’ synthetic data might more resemble real data. However, an alternate (speculative) hypothesis is that the human brain might also be able to rapidly learn an arbitrary skill by being shown unnatural, unrecognizable data (recalling the novel Snow Crash).
|
| 96 |
+
|
| 97 |
+
Table 1: Performance of different architecture search methods. Our results report mean $\pm \thinspace \mathrm { S D }$ of 5 evaluations of the same architecture with different initializations. It is common to report scores with and without Cutout (DeVries & Taylor, 2017), a data augmentation technique used during training. We found better architectures compared to other methods that reduce architecture evaluation speed and were tested with random search (Random Search $+ \mathsf { W } \mathsf { S }$ and Random Search+GHN). Increasing the width of the architecture found $\left( \mathrm { F } { = } 1 2 8 \right)$ further improves performance. Because each NAS method finds a different architecture, the number of parameters differs. Each method ran once.
|
| 98 |
+
|
| 99 |
+
<table><tr><td>Model</td><td>Error(%)</td><td>#params</td><td>GPU Days</td></tr><tr><td>Random Search + GHN (Zhang et al., 2018)</td><td>4.3± 0.1</td><td>5.1M</td><td>0.42</td></tr><tr><td>Random Search + Weight Sharing (Luo et al., 2018)</td><td>3.92</td><td>3.9M</td><td>0.25</td></tr><tr><td>Random Search + Real Data (baseline)</td><td>3.88± 0.08</td><td>12.4M</td><td>10</td></tr><tr><td>Random Search + GTN (ours)</td><td>3.84 ± 0.06</td><td>8.2M</td><td>0.67</td></tr><tr><td>Random Search + Real Data + Cutout (baseline)</td><td>3.02± 0.03</td><td>12.4M</td><td>10</td></tr><tr><td>Random Search + GTN + Cutout (ours)</td><td>2.92 ± 0.06</td><td>8.2M</td><td>0.67</td></tr><tr><td>Random Search + Real Data + Cutout (F=128) (baseline) Random Search + GTN + Cutout (F=128) (ours)</td><td>2.51±0.13 2.42 ± 0.03</td><td>151.7M 97.9M</td><td>10 0.67</td></tr></table>
|
| 100 |
+
|
| 101 |
+
The improved stability of training GTNs from weight normalization naturally suggests the hypothesis that weight normalization might similarly stabilize, and thus meaningfully improve, any techniques based on meta-gradients (e.g. MAML (Finn et al., 2017), learned optimizers (Metz et al., 2019), and learned update rules (Metz et al., 2018)). In future work, we will more deeply investigate how consistently, and to what degree, this hypothesis holds.
|
| 102 |
+
|
| 103 |
+
Both weight sharing and GHNs can be combined with GTNs by using the shared weights or HyperNetwork for initialization of proposed learners and then fine-tuning on GTN-produced data. GTNs could also be combined with more intelligent ways to propose which architecture to sample next such as NAO (Luo et al., 2018). Many other extensions would also be interesting to consider. GTNs could be trained for unsupervised learning, for example by training a useful embedding function. Additionally, they could be used to stabilize GAN training and prevent mode collapse (Appendix I shows encouraging initial results). One particularly promising extension is to introduce a closedloop curriculum (i.e. one that responds dynamically to the performance of the learner throughout training), which we believe could significantly improve performance. For example, a recurrent GTN that is conditioned on previous learner outputs could adapt its samples to be appropriately easier or more difficult depending on an agent’s learning progress, similar in spirit to the approach of a human tutor. Such closed-loop teaching can improve learning (Fan et al., 2018).
|
| 104 |
+
|
| 105 |
+
An additional interesting direction is having GTNs generate training environments for RL agents. Appendix H shows this works for the simple RL task of CartPole. That could be either for a predefined target task, or could be combined with more open-ended algorithms that attempt to continuously generate new, different, interesting tasks that foster learning (Clune, 2019; Wang et al., 2019a). Because GTNs can encode any possible environment, they (or something similar) may be necessary to have truly unconstrained, open-ended algorithms (Stanley et al., 2017). If techniques could be invented to coax GTNs to produce recognizable, human-meaningful training environments, the technique could also produce interesting virtual worlds for us to learn in, play in, or explore.
|
| 106 |
+
|
| 107 |
+
This paper introduces a new method called Generative Teaching Networks, wherein data generators are trained to produce effective training data through meta-learning. We have shown that such an approach can produce supervised datasets that yield better few-step accuracy than an equivalent amount of real training data, and generalize across architectures and random initializations. We leverage such efficient training data to create a fast NAS method that generates state-of-the-art architectures (controlling for the search algorithm). While GTNs may be of particular interest to the field of architecture search (where the computational cost to evaluate candidate architectures often limits the scope of its application), we believe that GTNs open up an intriguing and challenging line of research into a variety of algorithms that learn to generate their own training data.
|
| 108 |
+
|
| 109 |
+
# REFERENCES
|
| 110 |
+
|
| 111 |
+
Bowen Baker, Otkrist Gupta, Ramesh Raskar, and Nikhil Naik. Accelerating neural architecture search using performance prediction. arXiv preprint arXiv:1705.10823, 2017.
|
| 112 |
+
|
| 113 |
+
Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018.
|
| 114 |
+
|
| 115 |
+
Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016.
|
| 116 |
+
|
| 117 |
+
Jeff Clune. Ai-gas: Ai-generating algorithms, an alternate paradigm for producing general artificial intelligence. arXiv preprint arXiv:1905.10985, 2019.
|
| 118 |
+
|
| 119 |
+
Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017.
|
| 120 |
+
|
| 121 |
+
Thomas Elsken, Jan Hendrik Metzen, and Frank Hutter. Efficient multi-objective neural architecture search via lamarckian evolution. In International Conference on Learning Representations, 2019.
|
| 122 |
+
|
| 123 |
+
Yang Fan, Fei Tian, Tao Qin, Xiang-Yang Li, and Tie-Yan Liu. Learning to teach. arXiv preprint arXiv:1805.03643, 2018.
|
| 124 |
+
|
| 125 |
+
Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine LearningVolume 70, pp. 1126–1135. JMLR. org, 2017.
|
| 126 |
+
|
| 127 |
+
JL Fleiss. Review papers: The statistical basis of meta-analysis. Statistical methods in medical research, 2(2):121–145, 1993.
|
| 128 |
+
|
| 129 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
|
| 130 |
+
|
| 131 |
+
Alex Graves, Marc G. Bellemare, Jacob Menick, Remi Munos, and Koray Kavukcuoglu. Automated ´ curriculum learning for neural networks. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, pp. 1311–1320, 2017.
|
| 132 |
+
|
| 133 |
+
Andreas Griewank and Andrea Walther. Algorithm 799: revolve: an implementation of checkpointing for the reverse or adjoint mode of computational differentiation. ACM Transactions on Mathematical Software (TOMS), 26(1):19–45, 2000.
|
| 134 |
+
|
| 135 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015.
|
| 136 |
+
|
| 137 |
+
Geoffrey E. Hinton, Oriol Vinyals, and Jeffrey Dean. Distilling the knowledge in a neural network. CoRR, abs/1503.02531, 2015.
|
| 138 |
+
|
| 139 |
+
Rein Houthooft, Yuhua Chen, Phillip Isola, Bradly Stadie, Filip Wolski, OpenAI Jonathan Ho, and Pieter Abbeel. Evolved policy gradients. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems 31, pp. 5405–5414. Curran Associates, Inc., 2018.
|
| 140 |
+
|
| 141 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
|
| 142 |
+
|
| 143 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 144 |
+
|
| 145 |
+
Ksenia Konyushkova, Raphael Sznitman, and Pascal Fua. Learning active learning from data. In NIPS, 2017.
|
| 146 |
+
|
| 147 |
+
Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
|
| 148 |
+
|
| 149 |
+
Chenxi Liu, Barret Zoph, Maxim Neumann, Jonathon Shlens, Wei Hua, Li-Jia Li, Li Fei-Fei, Alan Yuille, Jonathan Huang, and Kevin Murphy. Progressive neural architecture search. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 19–34, 2018a.
|
| 150 |
+
|
| 151 |
+
Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018b.
|
| 152 |
+
|
| 153 |
+
Renqian Luo, Fei Tian, Tao Qin, Enhong Chen, and Tie-Yan Liu. Neural architecture optimization. In Advances in neural information processing systems, pp. 7816–7827, 2018.
|
| 154 |
+
|
| 155 |
+
Andrew L Maas, Awni Y Hannun, and Andrew Y Ng. Rectifier nonlinearities improve neural network acoustic models. In Proc. icml, volume 30, pp. 3, 2013.
|
| 156 |
+
|
| 157 |
+
Dougal Maclaurin, David Duvenaud, and Ryan P. Adams. Gradient-based hyperparameter optimization through reversible learning. In Proceedings of the 32Nd International Conference on International Conference on Machine Learning - Volume 37, ICML’15, pp. 2113–2122. JMLR.org, 2015.
|
| 158 |
+
|
| 159 |
+
Luke Metz, Niru Maheswaranathan, Brian Cheung, and Jascha Sohl-Dickstein. Meta-learning update rules for unsupervised representation learning. arXiv preprint arXiv:1804.00222, 2018.
|
| 160 |
+
|
| 161 |
+
Luke Metz, Niru Maheswaranathan, Jeremy Nixon, Daniel Freeman, and Jascha Sohl-dickstein. Learned optimizers that outperform on wall-clock and validation loss, 2019.
|
| 162 |
+
|
| 163 |
+
Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International conference on machine learning, pp. 1928–1937, 2016.
|
| 164 |
+
|
| 165 |
+
Anh Nguyen, Jason Yosinski, and Jeff Clune. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. In In Computer Vision and Pattern Recognition (CVPR ’15), 2015.
|
| 166 |
+
|
| 167 |
+
Hieu Pham, Melody Guan, Barret Zoph, Quoc Le, and Jeff Dean. Efficient neural architecture search via parameters sharing. In Jennifer Dy and Andreas Krause (eds.), Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 4095–4104, Stockholmsmssan, Stockholm Sweden, 10–15 Jul 2018. PMLR.
|
| 168 |
+
|
| 169 |
+
Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 4780–4789, 2019.
|
| 170 |
+
|
| 171 |
+
Tim Salimans and Durk P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems, pp. 901–909, 2016.
|
| 172 |
+
|
| 173 |
+
Tim Salimans, Ian J. Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. Improved techniques for training gans. In NIPS, 2016.
|
| 174 |
+
|
| 175 |
+
Tim Salimans, Jonathan Ho, Xi Chen, Szymon Sidor, and Ilya Sutskever. Evolution strategies as a scalable alternative to reinforcement learning. arXiv preprint arXiv:1703.03864, 2017.
|
| 176 |
+
|
| 177 |
+
Ozan Sener and Silvio Savarese. Active learning for convolutional neural networks: A core-set approach. In International Conference on Learning Representations, 2018.
|
| 178 |
+
|
| 179 |
+
Burr Settles. Active learning literature survey. Technical report, 2010.
|
| 180 |
+
|
| 181 |
+
Hava T Siegelmann and Eduardo D Sontag. On the computational power of neural nets. Journal of computer and system sciences, 50(1):132–150, 1995.
|
| 182 |
+
|
| 183 |
+
Akash Srivastava, Lazar Valkov, Chris Russell, Michael U. Gutmann, and Charles Sutton. Veegan: Reducing mode collapse in gans using implicit variational learning. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 3308–3318. Curran Associates, Inc., 2017.
|
| 184 |
+
|
| 185 |
+
Kenneth O. Stanley, Joel Lehman, and Lisa Soros. Open-endedness: The last grand challenge youve never heard of. O’Reilly Online, 2017. URL https://www.oreilly.com/ideas/ open-endedness-the-last-grand-challenge-youve-never-heard-of.
|
| 186 |
+
|
| 187 |
+
Ivor Tsang, James Kwok, and Pak-Ming Cheung. Core vector machines: Fast svm training on very large data sets. Journal of Machine Learning Research, 6:363–392, 04 2005.
|
| 188 |
+
|
| 189 |
+
Rui Wang, Joel Lehman, Jeff Clune, and Kenneth O Stanley. Paired open-ended trailblazer (poet): Endlessly generating increasingly complex and diverse learning environments and their solutions. arXiv preprint arXiv:1901.01753, 2019a.
|
| 190 |
+
|
| 191 |
+
Tongzhou Wang, Jun-Yan Zhu, Antonio Torralba, and Alexei A. Efros. Dataset distillation, 2019b.
|
| 192 |
+
|
| 193 |
+
Chris Zhang, Mengye Ren, and Raquel Urtasun. Graph hypernetworks for neural architecture search. arXiv preprint arXiv:1810.05749, 2018.
|
| 194 |
+
|
| 195 |
+
Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. 2017. URL https://arxiv.org/abs/1611.01578.
|
| 196 |
+
|
| 197 |
+
# APPENDIX A ADDITIONAL EXPERIMENTAL DETAILS
|
| 198 |
+
|
| 199 |
+
The outer loop loss function is domain specific. In the supervised experiments on MNIST and CIFAR, the outer loop loss was cross-entropy for logistic regression on real MNIST or CIFAR data. The inner-loop loss matches the outer-loop loss, but with synthetic data instead of real data. Appendix H describes the losses for the RL experiments.
|
| 200 |
+
|
| 201 |
+
The following equation defines the inner-loop SGD with momentum update for the learner parameters $\theta _ { t }$ .
|
| 202 |
+
|
| 203 |
+
$$
|
| 204 |
+
\theta _ { t + 1 } = \theta _ { t } - \alpha \sum _ { 0 \leq t ^ { \prime } \leq t } \beta ^ { t - t ^ { \prime } } \nabla \ell _ { \mathrm { i n n e r } } \bigl ( G ( \mathbf { z } _ { t ^ { \prime } } , \mathbf { y } _ { t ^ { \prime } } ) , \mathbf { y } _ { t ^ { \prime } } , \theta _ { t ^ { \prime } } \bigr ) ,
|
| 205 |
+
$$
|
| 206 |
+
|
| 207 |
+
where $\alpha$ and $\beta$ are the learning rate and momentum hyperparameters, respectively. $\mathbf { z } _ { t }$ is a batch of noise vectors that are input to the generator and are sampled from a unit-variance Gaussian. $\mathbf { y } _ { t }$ are a batch of labels for each generated sample/input and are sampled uniformly from all available class labels. Instead of randomly sampling $\mathbf { z } _ { t }$ , we can also learn a curriculum by additionally optimizing $\mathbf { z } _ { t }$ directly and keeping $\mathbf { y } _ { t }$ fixed throughout all of training. Results for both approaches (and additional curriculum ablations) are reported in Section 3.2.
|
| 208 |
+
|
| 209 |
+
# A.1 MNIST EXPERIMENTS:
|
| 210 |
+
|
| 211 |
+
For the GTN training for MNIST we sampled architectures from a distribution that produces architectures with convolutional (conv) and fully-connectd (FC) layers. All architectures had 2 conv layers, but the number of filters for each layer was sampled uniformly from the ranges $U ( [ 3 2 , 1 2 8 ] )$ and $U ( [ 6 4 , 2 5 6 ] )$ , respectively. After each conv layer there is a max pooling layer for dimensionality reduction. After the last conv layer, there is a fully-connected layer with number of filters sampled uniformly from the range $U ( [ 6 \dot { 4 } , 2 5 6 ] )$ . We used Kaiming Normal initialization (He et al., 2015) and LeakyReLUs (Maas et al., 2013) (with $\alpha = 0 . 1$ ). We use BatchNorm (Ioffe & Szegedy, 2015) for both the generator and the learners. The BatchNorm momentum for the learner was set to 0 (meta-training consistently converged to small values and we saw no significant gain from learning the value).
|
| 212 |
+
|
| 213 |
+
The generator consisted of 2 FC layers (1024 and $1 2 8 * H / 4 * H / 4$ filters, respectively, where $H$ is the final width of the synthetic image). After the last FC layer there are 2 conv layers. The first conv has 64 filters. The second conv has 1 filter followed by a Tanh. We found it particularly important to normalize (mean of zero and variance of one) all datasets. Hyperparameters are shown in Table 2.
|
| 214 |
+
|
| 215 |
+
Table 2: Hyperparameters for MNIST experiments
|
| 216 |
+
|
| 217 |
+
<table><tr><td rowspan=1 colspan=1>Hyperparameter</td><td rowspan=1 colspan=1>Value</td></tr><tr><td rowspan=1 colspan=1>Learning Rate</td><td rowspan=1 colspan=1>0.01</td></tr><tr><td rowspan=1 colspan=1>Initial LR</td><td rowspan=1 colspan=1>0.02</td></tr><tr><td rowspan=1 colspan=1>InitialMomentum</td><td rowspan=1 colspan=1>0.5</td></tr><tr><td rowspan=1 colspan=1>Adam Beta_1</td><td rowspan=1 colspan=1>0.9</td></tr><tr><td rowspan=1 colspan=1>AdamBeta_2</td><td rowspan=1 colspan=1>0.999</td></tr><tr><td rowspan=1 colspan=1>Size of latent variable</td><td rowspan=1 colspan=1>128</td></tr><tr><td rowspan=1 colspan=1>Inner-Loop Batch Size</td><td rowspan=1 colspan=1>128</td></tr><tr><td rowspan=1 colspan=1>Outer-Loop Batch Size</td><td rowspan=1 colspan=1>128</td></tr></table>
|
| 218 |
+
|
| 219 |
+
# A.2 CIFAR10 EXPERIMENTS:
|
| 220 |
+
|
| 221 |
+
For GTN training for CIFAR-10, the template architecture is a small learner with 5 convolutional layers followed by a global average pooling and an FC layer. The second and fourth convolution had stride $^ { \prime = 2 }$ for dimensionality reduction. The number of filters of the first conv layer was sampled uniformly from the range $U ( [ 3 2 , 1 2 8 ] )$ while all others were sampled uniformly from the range $\bar { U } ( [ 6 4 , 2 5 6 ] )$ . Other details including the generator architecture were the same as the MNIST experiments, except the CIFAR generator’s second conv layer had 3 filters instead of 1. Hyperparameters used can be found in Table 3. For CIFAR10 we augmented the real training set when training GTNs with random crops and horizontal flips. We do not add weight normalization to the final architectures found during architecture search, but we do so when we train architectures with GTN-generated data during architecture search to provide an estimate of their asymptotic performance.
|
| 222 |
+
|
| 223 |
+
Table 3: Hyperparameters for CIFAR10 experiments
|
| 224 |
+
|
| 225 |
+
<table><tr><td rowspan=1 colspan=1>Hyperparameter</td><td rowspan=1 colspan=1>Value</td></tr><tr><td rowspan=1 colspan=1>Learning Rate</td><td rowspan=1 colspan=1>0.002</td></tr><tr><td rowspan=1 colspan=1>Initial LR</td><td rowspan=1 colspan=1>0.02</td></tr><tr><td rowspan=1 colspan=1>Initial Momentum</td><td rowspan=1 colspan=1>0.5</td></tr><tr><td rowspan=1 colspan=1>AdamBeta_1</td><td rowspan=1 colspan=1>0.9</td></tr><tr><td rowspan=1 colspan=1>Adam Beta_2</td><td rowspan=1 colspan=1>0.9</td></tr><tr><td rowspan=1 colspan=1>Adam ∈</td><td rowspan=1 colspan=1>1e-5</td></tr><tr><td rowspan=1 colspan=1>Sizeoflatentvariable</td><td rowspan=1 colspan=1>128</td></tr><tr><td rowspan=1 colspan=1>Inner-loop Batch Size</td><td rowspan=1 colspan=1>128</td></tr><tr><td rowspan=1 colspan=1>Outer-loop Batch Size</td><td rowspan=1 colspan=1>256</td></tr></table>
|
| 226 |
+
|
| 227 |
+
# APPENDIX B REASONS GTNS ARE NOT EXPECTED TO PRODUCE SOTA ACCURACY VS. ASYMPTOTIC PERFORMANCE WHEN TRAINING ON REAL DATA
|
| 228 |
+
|
| 229 |
+
There are three reasons not to expect SOTA accuracy levels for the learners trained on synthetic data: (1) we train for very few SGD steps (32 or 128 vs. tens of thousands), (2) SOTA performance results from architectures explicitly designed (with much human effort) to achieve record accuracy, whereas GTN produces compressed training data optimized to generalize across diverse architectures with the aim of quickly evaluating a new architecture’s potential, and (3) SOTA methods often use data outside of the benchmark dataset and complex data-augmentation schemes.
|
| 230 |
+
|
| 231 |
+
# APPENDIX C CELL SEARCH SPACE
|
| 232 |
+
|
| 233 |
+
When searching for the operations in a CNN cell, the 11 possible operations are listed below.
|
| 234 |
+
|
| 235 |
+
• identity • $1 \times 1$ convolution • $3 \times 3$ convolution • $1 \times 3 + 3 \times 1$ convolution • $1 \times 7 + 7 \times 1$ convolution • $2 \times 2$ max pooling • $3 \times 3$ max pooling • $5 \times 5$ max pooling • $2 \times 2$ average pooling • $3 \times 3$ average pooling • $5 \times 5$ average pooling
|
| 236 |
+
|
| 237 |
+
# APPENDIX D COMPUTATION AND MEMORY COMPLEXITY
|
| 238 |
+
|
| 239 |
+
With the traditional training of DNNs with back-propagation, the memory requirements are proportional to the size of the network because activations during the forward propagation have to be stored for the backward propagation step. With meta-gradients, the memory requirement also grows with the number of inner-loop steps because all activations and weights have to be stored for the
|
| 240 |
+
|
| 241 |
+
2nd order gradient to be computed. This becomes impractical for large networks and/or many innerloop steps. To reduce the memory requirements, we utilize gradient-checkpointing (Griewank & Walther, 2000) by only storing the computed weights of learner after each inner-loop step and recomputing the activations during the backward pass. This trick allows us to compute meta-gradients for networks with 10s of millions of parameters over hundreds of inner-loop steps in a single GPU. While in theory the computational cost of computing meta-gradients with gradient-checkpointing is $4 \mathbf { x }$ larger than computing gradients (and $1 2 \mathbf { x }$ larger than forward propagation), in our experiments it is about $2 . 5 \mathrm { x }$ slower than gradients through backpropagation due to parallelism. We could further reduce the memory requirements by utilizing reversable hypergradients (Maclaurin et al., 2015), but, in our case, we were not constrained by the number of inner-loop steps we can store in memory.
|
| 242 |
+
|
| 243 |
+
# APPENDIX E EXTENDED NAS RESULTS
|
| 244 |
+
|
| 245 |
+
In the limited computation regime (less than 1 day of computation), the best methods were, in order, GHN, ENAS, GTN, and NAONet with a mean error of $2 . 8 4 \%$ , $2 . 8 9 \%$ , $2 . 9 2 \%$ , and $2 . 9 3 \%$ , respectively. A $0 . 0 8 \%$ difference on CIFAR10 represents 8 out of the 10k test samples. For that reason, we consider all of these methods as state of the art. Note that out of the four, GTN is the only one relying on Random Search for architecture proposal.
|
| 246 |
+
|
| 247 |
+
Table 4: Performance of different architecture search methods. Search with our method required 16h total, of which 8h were spent training the GTN and 8h were spent evaluating 800 architectures with GTN-produced synthetic data. Our results report mean $\pm \thinspace \mathrm { S D }$ of 5 evaluations of the same architecture with different initializations. It is common to report scores with and without Cutout (DeVries & Taylor, 2017), a data augmentation technique used during training.We found better architectures compared to other methods using random search (Random-WS and GHN-Top) and are competitive with algorithms that benefit from more advanced search methods (e.g. NAONet and ENAS employ non-random architecture proposals for performance gains; GTNs could be combined with such nonrandom proposals, which would likely further improve performance). Increasing the width of the architecture found $\left( \mathrm { F } { = } 1 2 8 \right)$ ) further improves performance.
|
| 248 |
+
|
| 249 |
+
<table><tr><td>Model</td><td>Error(%)</td><td>#params</td><td>Random</td><td>GPU Days</td></tr><tr><td>NASNet-A (Zoph & Le, 2017)</td><td>3.41</td><td>3.3M</td><td>X</td><td>2000</td></tr><tr><td>AmoebaNet-B + Cutout (Real et al., 2019)</td><td>2.13</td><td>34.9M</td><td>X</td><td>3150</td></tr><tr><td>DARTS + Cutout (Liu et al., 2018b)</td><td>2.83</td><td>4.6M</td><td>X</td><td>4</td></tr><tr><td>NAONet + Cutout (Luo et al., 2018)</td><td>2.48</td><td>10.6M</td><td>X</td><td>200</td></tr><tr><td>NAONet-WS (Luo et al., 2018)</td><td>3.53</td><td>2.5M</td><td>X</td><td>0.3</td></tr><tr><td>NAONet-WS + Cutout (Luo et al., 2018)</td><td>2.93</td><td>2.5M</td><td>X</td><td>0.3</td></tr><tr><td>ENAS (Pham et al., 2018)</td><td>3.54</td><td>4.6M</td><td>X</td><td>0.45</td></tr><tr><td>ENAS + Cutout (Pham et al., 2018)</td><td>2.89</td><td>4.6M</td><td>X</td><td>0.45</td></tr><tr><td>GHN Top-Best + Cutout (Zhang et al., 2018)</td><td>2.84 ± 0.07</td><td>5.7M</td><td>X</td><td>0.84</td></tr><tr><td>GHN Top (Zhang et al., 2018)</td><td>4.3± 0.1</td><td>5.1M</td><td>√</td><td>0.42</td></tr><tr><td>Random-WS (Luo et al., 2018)</td><td>3.92</td><td>3.9M</td><td>√</td><td>0.25</td></tr><tr><td>Random Search + Real Data (baseline)</td><td>3.88 ±0.08</td><td>12.4M</td><td>√</td><td>10</td></tr><tr><td>RS + Real Data + Cutout (baseline)</td><td>3.02 ± 0.03</td><td>12.4M</td><td></td><td>10</td></tr><tr><td>RS + Real Data + Cutout (F=128) (baseline)</td><td>2.51 ± 0.13</td><td>151.7M</td><td></td><td>10</td></tr><tr><td>Random Search + GTN (ours)</td><td>3.84 ± 0.06</td><td>8.2M</td><td></td><td>0.67</td></tr><tr><td>Random Search + GTN + Cutout (ours)</td><td>2.92 ± 0.06</td><td>8.2M</td><td></td><td>0.67</td></tr><tr><td>RS + GTN + Cutout (F=128) (ours)</td><td>2.42 ± 0.03</td><td>97.9M</td><td></td><td>0.67</td></tr></table>
|
| 250 |
+
|
| 251 |
+
# APPENDIX F CONDITIONED GENERATOR VS. XY-GENERATOR
|
| 252 |
+
|
| 253 |
+
Our experiments in the main paper conditioned the generator to create data with given labels, by concatenating a one-hot encoded label to the input vector. We also explored an alternative approach where the generator itself produced a target probability distribution to label the data it generates. Because more information is encoded into a soft label than a one-hot encoded one, we expected an improved training set to be generated by this variant. Indeed, such a “dark knowledge” distillation setup has been shown to perform better than learning from labels (Hinton et al., 2015).
|
| 254 |
+
|
| 255 |
+
However, the results in Figure 4 indicate that jointly generating both images and their soft labels under-performs generating only images, although the result could change with different hyperparameter values and/or innovations that improve the stability of training.
|
| 256 |
+
|
| 257 |
+

|
| 258 |
+
Figure 4: Comparison between a conditional generator and a generator that outputs an image/label pair. We expected the latter “dark knowledge” approach to outperform the conditional generator, but that does not seem to be the case. Because initialization and training of the dark knowledge variant were more sensitive, we believe a more rigorous tuning of the process could lead to a different result.
|
| 259 |
+
|
| 260 |
+
# APPENDIX G GTN GENERATES (SEEMINGLY) ENDLESS DATA
|
| 261 |
+
|
| 262 |
+
While optimizing images directly (i.e. optimizing a fixed tensor of images) would result in a fixed number of samples, optimizing a generator can potentially result in an unlimited amount of new samples. We tested this generative capability by generating more data during evaluation (i.e. with no change to the meta-optimization procedure) in two ways. In the first experiment, we increase the amount of data in each inner-loop optimization step by increasing the batch size (which results in lower variance gradients). In the second experiment, we keep the number of samples per batch fixed, but increase the number of inner-loop optimization steps for which a new network is trained. Both cases result in an increased amount of training data. If the GTN generator has overfit to the number of inner-loop optimization steps during meta-training and/or the batch size, then we would not expect performance to improve when we have the generator produce more data. However, an alternate hypothesis is that the GTN is producing a healthy distribution of training data, irrespective of exactly how it is being used. Such a hypothesis would be supported by performance increase in these experiments.
|
| 263 |
+
|
| 264 |
+
Figure 5a shows performance as a function of increasing batch size (beyond the batch size used during meta-optimization, i.e. 128). The increase in performance of GTN means that we can sample larger training sets from our generator (with diminishing returns) and that we are not limited by the choice of batch size during training (which is constrained due to both memory and computation requirements).
|
| 265 |
+
|
| 266 |
+
Figure 5b shows the results of generating more data by increasing the number of inner-loop optimization steps. Generalization to more inner-loop optimization steps is important when the number of inner-loop optimization steps used during meta-optimization is not enough to achieve maximum performance. This experiment also tests the generalization of the optimizer hyperparameters because they were optimized to maximize learner performance after a fixed number of steps. There is an increase in performance of the learner trained on GTN-generated data as the number of innerloop optimization steps is increased, demonstrating that the GTN is producing generally useful data instead of overfitting to the number of inner-loop optimization steps during training (Figure 5b). Extending the conclusion from Figure 2b, in the very low data regime, GTN is significantly better than training on real data $( p < 0 . 0 5 )$ . However, as more inner-loop optimization steps are taken and thus more unique data is available to the learner, training on the real data becomes more effective than learning from synthetic data $( p < 0 . 0 5 )$ (see Figure 5b).
|
| 267 |
+
|
| 268 |
+

|
| 269 |
+
(a) Increasing inner-loop batch size
|
| 270 |
+
|
| 271 |
+

|
| 272 |
+
(b) Increasing inner-loop optimization steps
|
| 273 |
+
|
| 274 |
+

|
| 275 |
+
Figure 5: (a) The left figure shows that even though GTN was meta-trained to generate synthetic data of batch size 128, sampling increasingly larger batches results in improved learner performance (the inner-loop optimization steps are fixed to 16). (b) The right figure shows that increasing the number of inner-loop optimization steps (beyond the 16 steps used during meta-training) improves learner performance. The performance gain with real data is larger in this setting. This improvement shows that GTNs do not overfit to a specific number of inner-loop optimization steps.
|
| 276 |
+
Figure 6: GTN samples w/o curriculum.
|
| 277 |
+
|
| 278 |
+
Another interesting test for our generative model is to test the distribution of learners after they have trained on the synthetic data. We want to know, for instance, if training on synthetic samples from one GTN results in a functionally similar set of learner weights regardless of learner initialization (this phenomena can be called learner mode collapse). Learner mode collapse would prevent the performance gains that can be achieved through ensembling diverse learners. We tested for learner mode collapse by evaluating the performance (on held-out data and held-out architecture) of an ensemble of 32 randomly initialized learners that are trained on independent batches from the same GTN. To construct the ensemble, we average the predicted probability distributions across the learners to compute a combined prediction and accuracy. The results of this experiment can be seen in Figure 7, which shows that the combined performance of an ensemble is better (on average) than an individual learner, providing additional evidence that the distribution of synthetic data is healthy and allows ensembles to be harnessed to improve performance, as is standard with networks trained on real data.
|
| 279 |
+
|
| 280 |
+
# APPENDIX H GTN FOR RL
|
| 281 |
+
|
| 282 |
+
To demonstrate the potential of GTNs for RL, we tested our approach with a small experiment on the classic CartPole test problem (see Brockman et al. (2016) for details on the domain. We conducted this experiment before the discovery that weight normalization improves GTN training, so these experiments do not feature it; it might further improve performance. For this experiment, the meta-objective the GTN is trained with is the advantage actor-critic formulation: $\log { \bar { \pi } } ( a | \theta _ { \pi } ) ( R -$ $V ( s ; \theta _ { v } ) )$ (Mnih et al., 2016). The state-value $V$ is provided by a separate neural network trained to estimate the average state-value for the learners produced so far during meta-training. The learners train on synthetic data via a single-step of SGD with a batch size of 512 and a mean squared error regression loss, meaning the inner loop is supervised learning. The outer-loop is reinforced because the simulator is non-differentiable. We could have also used an RL algorithm in the inner loop. In that scenario the GTN would have to learn to produce an entire synthetic world an RL agent would learn in. Thus, it would create the initial state and then iteratively receive actions and generate the next state and optionally a reward. For example, a GTN could learn to produce an entire MDP that an agent trains on, with the meta-objective being that the trained agent then performs well on a target task. We consider such synthetic (PO)MDPs an exciting direction for future research.
|
| 283 |
+
|
| 284 |
+

|
| 285 |
+
Figure 7: Performance of an ensemble of GTN learners vs. individual GTN learners. Ensembling a set of neural networks that each had different weight initializations, but were trained on data from the same GTN substantially improves performance. This result provides more evidence that GTNs generate a healthy distribution of training data and are not somehow forcing the learners to all learn a functionally equivalent solution.
|
| 286 |
+
|
| 287 |
+
The score on CartPole is the number of frames out of 200 for which the pole is elevated. Both GTN and an A2C (Mnih et al., 2016) control effectively solve the problem (Figure 8). Interestingly, training GTNs takes the same number of simulator steps as training a single learner with policygradients (Figure 8). Incredibly, however, once trained, the synthetic data from a GTN can be used to train a learner to maximum performance in a single SGD step! While that is unlikely to be true for harder target RL tasks, these results suggest that the speed-up for architecture search from using GTNs in the RL domain can be even greater than in supervised domain.
|
| 288 |
+
|
| 289 |
+
The CartPole experiments feature a single-layer neural network with 64 hidden units and a tanh activation function for both the policy and the value network. The inner-loop batch size was 512 and the number of inner-loop training iterations was 1. The observation space of this environment consists of a real-valued vector of size 4 (Cart position, Cart velocity, Pole position, Pole velocity). The action space consists of 2 discrete actions (move left or move right). The outer loop loss is the reward function for the target domain (here, pole-balancing). The inner loop loss is mean squared error (i.e. the network is doing supervised learning on the state-action mapping pairs provided by the GTN).
|
| 290 |
+
|
| 291 |
+
# APPENDIX I SOLVING MODE COLLAPSE IN GANS WITH GTNS
|
| 292 |
+
|
| 293 |
+
We created an implementation of generative adversarial networks (GANs) (Goodfellow et al., 2014) and found they tend to generate the same class of images (e.g. only 1s, Figure 9), which is a common training pathology in GANs known as mode collapse (Srivastava et al., 2017). While there are techniques to prevent mode collapse (e.g. minibatch discrimination and historical averaging (Salimans et al., 2016)), we hypothesized that combining the ideas behind GTNs and GANs might provide a different, additional technique to help combat mode collapse. The idea is to add a discriminator to the GTN forcing the data it generates to both be realistic and help a learner perform well on the meta-objective of classifying MNIST. The reason this approach should help prevent mode collapse is that if the generator only produces one class of images, a learner trained on that data will not be able to classify all classes of images. This algorithm (GTN-GAN) was able to produce realistic images with no identifiable mode collapse (Figure 10). GTNs offer a different type of solution to the issue of mode collapse than the many that have been proposed, adding a new tool to our toolbox for solving that problem. Note we do not claim this approach is better than other techniques to prevent mode collapse, only that it is an interesting new type of option, perhaps one that could be productively combined with other techniques.
|
| 294 |
+
|
| 295 |
+

|
| 296 |
+
Figure 8: An A2C Agent control trains a single policy throughout all of training, while the GTN method starts with a new, randomly initialized network at each iteration and produces the plotted performance after a single step of SGD. This plot is difficult to parse because of that difference: it compares the accumulated performance of A2C across all environment steps up to that point vs. the performance achieved with GTN data in a single step of SGD from a single batch of synthetic data. Thus, at the $1 0 0 { , } 0 0 0 ^ { \mathrm { t h } }$ step of training, GTNs enable training a newly initialized network to the given performance (of around 190) 100,000 times faster with GTN synthetic data than with A2C from scratch. With GTNs, we can therefore train many new, high-performing agents quickly. That would be useful in many ways, such as greatly accelerating architecture search algorithms for RL. Of course, these results are on a simple problem, and (unlike our supervised learning experiments) have not yet shown that the GTN data works with different architectures, but these results demonstrate the intriguing potential of GTNs for RL. One reason we might expect even larger speedups for RL vs. supervised learning is because a major reason RL is sample inefficient is because it requires exploration to figure out how to solve the problem. However, once that exploration has been done, the GTN can produce data to efficiently teach that solution to a new architecture. RL thus represents an exciting area of future research for GTNs. Performing that research is beyond the scope of this paper, but we highlight the intriguing potential here to inspire such future work.
|
| 297 |
+
|
| 298 |
+

|
| 299 |
+
Figure 9: Images generated by a basic GAN on MNIST before and after mode collapse. The left image shows GAN-produced images early in GAN training and the right image shows GAN samples later in training after mode collapse has occurred due to training instabilities.
|
| 300 |
+
|
| 301 |
+
# APPENDIX J ADDITIONAL MOTIVATION
|
| 302 |
+
|
| 303 |
+
There is an additional motivation for GTNs that involves long-term, ambitious research goals: GTN is a step towards algorithms that generate their own training environments, such that agents trained in them eventually solve tasks we otherwise do not know how to train agents to solve (Clune, 2019). It is important to pursue such algorithms because our capacity to conceive of effective training environments on our own as humans is limited, yet for our learning algorithms to achieve their full potential they will ultimately need to consume vast and complex curricula of learning challenges and data. Algorithms for generating curricula, such as the the paired open-ended trailblazer (POET) algorithm (Wang et al., 2019a), have proven effective for achieving behaviors that would otherwise be out of reach, but no algorithm yet can generate completely unconstrained training conditions. For example, POET searches for training environments within a highly restricted preconceived space of problems. GTNs are exciting because they can encode a rich set of possible environments with minimal assumptions, ranging from labeled data for supervised learning to (in theory) entire complex virtual RL domains (with their own learned internal physics). Because RNNs are Turing-complete (Siegelmann & Sontag, 1995), GTNs should be able to theoretically encode all possible learning environments. Of course, while what is theoretically possible is different from what is achievable in practice, GTNs give us an expressive environmental encoding to begin exploring what potential is unlocked when we can learn to generate sophisticated learning environments. The initial results presented here show that GTNs can be trained end-to-end with gradient descent through the entire learning process; such end-to-end learning has proven highly scalable before, and may similarly in the future enable learning expressive GTNs that encode complex learning environments.
|
| 304 |
+
|
| 305 |
+

|
| 306 |
+
Figure 10: Images generated by a GTN with an auxiliary GAN loss. Combining GTNs with GANs produces far more realistic images than GTNs alone (which produced alien, unrecognizable images, Figure 6). The combination also stabilizes GAN training, preventing mode collapse.
|
parse/train/HJg_ECEKDr/HJg_ECEKDr_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJg_ECEKDr/HJg_ECEKDr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJg_ECEKDr/HJg_ECEKDr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/pULTvw9X313/pULTvw9X313.md
ADDED
|
@@ -0,0 +1,347 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MESHMVS: MULTI-VIEW STEREO GUIDED MESH RECONSTRUCTION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Deep learning based 3D shape generation methods generally utilize latent features extracted from color images to encode the objects’ semantics and guide the shape generation process. These color image semantics only implicitly encode 3D information, potentially limiting the accuracy of the generated shapes. In this paper we propose a multi-view mesh generation method which incorporates geometry information in the color images explicitly by using the features from intermediate 2.5D depth representations of the input images and regularizing the 3D shapes against these depth images. Our system first predicts a coarse 3D volume from the color images by probabilistically merging voxel occupancy grids from individual views. Depth images corresponding to the multi-view color images are predicted which along with the rendered depth images of the coarse shape are used as a contrastive input whose features guide the refinement of the coarse shape through a series of graph convolution networks. Attention-based multi-view feature pooling is proposed to fuse the contrastive depth features from different viewpoints which are fed to the graph convolution networks.
|
| 8 |
+
|
| 9 |
+
We validate the proposed multi-view mesh generation method on ShapeNet, where we obtain a significant improvement with $34 \%$ decrease in chamfer distance to ground truth and $14 \%$ increase in the F1-score compared with the state-of-the-art multi-view shape generation method.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
3D shape generation is a long-standing research problem in computer vision and computer graphics with applications in autonomous driving, augmented reality, etc. Conventional approaches mainly leverage multi-view geometry based on stereo correspondences between images but are restricted by the coverage provided by the input views. With the availability of large-scale 3D shape datasets and the success of deep learning in several computer vision tasks, 3D representations such as voxel grid Choy et al. (2016); Tulsiani et al. (2017); Yan et al. (2016) and point cloud Yang et al. (2018); Fan et al. (2017) have been explored for single-view 3D reconstruction. Among them, triangle mesh representation has received the most attention as it has various desirable properties for a wide range of applications and is capable of modeling detailed geometry without high memory requirement.
|
| 14 |
+
|
| 15 |
+
Single-view 3D reconstruction methods Wang et al. (2018); Huang et al. (2015); Kar et al. (2015); Su et al. (2014) generate the 3D shape from merely a single color image but suffer from occlusion and limited visibility which leads to low quality reconstructions in the unseen areas. Multi-view methods Wen et al. (2019); Choy et al. (2016); Kar et al. (2017); Gwak et al. (2017) extend the input to images from different viewpoints which provides more visual information and improves the accuracy of the generated shapes. Recent work in multi-view mesh reconstruction Wen et al. (2019) introduces a multi-view deformation network using perceptual feature from each color image for refining the meshes generated by Pixel2Mesh Wang et al. (2018). Although promising results were obtained, this method relies on perceptual features from color images which do not explicitly encode the objects’ geometry and could restrict the accuracy of the 3D models.
|
| 16 |
+
|
| 17 |
+
In this work, we present a novel multi-view mesh generation method where we start by predicting coarse volumetric occupancy grid representations for the color images of each input viewpoint independently using a shared fully convolutional network which are merged into a single voxel grid in a probabilistic fashion followed by cubify Gkioxari et al. (2019) operation to convert it to a triangle mesh. We then use Graph Convolutional Network (GCN) Scarselli et al. (2008); Wang et al. (2018) to fine-tune the cubified voxel grid in a coarse-to-fine manner. The GCN refines the coarse mesh by using the feature vector of each graph node (mesh vertices) obtained by projecting the vertices on the 2D contrastive depth features. The contrastive depth features are extracted from the rendered depth maps of the current mesh and predicted depth maps from a multi-view stereo network. We also propose an attention-based method to fuse feature from multiple views that can learn the importance of different views for each of the mesh vertices. Constrains between the intermediate refined mesh from GCN with predicted depth maps of different viewpoints further improve the final mesh quality. By employing multi-view voxel grid generation and refining it using geometry information from both the current mesh (through the rendered depth maps) and predicted depth maps, we are able to generate high-quality meshes. We validate our method on the ShapeNet Chang et al. (2015) benchmark and our method achieves the best performance among all previous multi-view and single-view mesh generation methods.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Architecture of the proposed method. The voxel grid prediction module predicts coarse voxel grid representation which is further refined by a series of GCNs. The GCNs use contrastive depth features from rendered depths of the current shape and the predicted depths from MVSNet. Multi-view features are pooled using a multi-head attention mechanism.
|
| 21 |
+
|
| 22 |
+
# 2 RELATED WORK
|
| 23 |
+
|
| 24 |
+
# 2.1 TRADITIONAL SHAPE GENERATION METHODS
|
| 25 |
+
|
| 26 |
+
3D model generation has traditionally been tackled using multi-view geometry principles. Among them, structure-from-motion (SfM) Schonberger & Frahm (2016); Agarwal et al. (2011); Cui & Tan (2015); Cui et al. (2017) and simultaneous localization and mapping (SLAM) Cadena et al. (2016); Mur-Artal et al. (2015); Engel et al. (2014); Whelan et al. (2015) are popular techniques that perform 3D reconstruction and camera pose estimation at the same time. These methods extract local image features, match them across images and use the matches to estimate camera poses and 3D geometry. Closer to our problem setup, multi-view stereo methods infer 3D geometry from images with known camera parameters. Volumetric methods Kar et al. (2017); Kutulakos & Seitz (2000); Seitz & Dyer (1999) predict voxel grid representation of objects by estimating the relationship between each voxel and object surfaces. Point cloud based methods Furukawa & Ponce (2009); Lhuillier & Quan (2005) start with a sparse point cloud and gradually increase the density of points to obtain a final dense point cloud of the object. Durou et al. (2008); Zhang et al. (1999); Favaro & Soatto (2005) reason about shading, texture and defocus to reason about visible parts of the object and infer its 3D geometry. While the results of these works are impressive in terms of quality and completeness of reconstruction, they still struggle with poorly textured and reflective surfaces and require carefully selected input views.
|
| 27 |
+
|
| 28 |
+
# 2.2 DEEP SHAPE GENERATION METHODS
|
| 29 |
+
|
| 30 |
+
Deep learning based approaches can learn to infer 3D structure from training data and can be robust against poorly textured and reflective surfaces as well as limited and arbitrarily selected input views. These methods can be categorized into single view and multi-view methods. Huang et al. (2015); Su et al. (2014) use shape component retrieval and deformation from a large dataset for single-view 3D shape generation. Kurenkov et al. (2018) extend this idea by introducing free-form deformation networks on retrieved object templates from a database. Some work learn shape deformation from ground truth foreground masks of 2D images Kar et al. (2015); Yan et al. (2016); Tulsiani et al. (2017). Recurrent Neural Networks (RNN) based methods Choy et al. (2016); Kar et al. (2017); Gwak et al. (2017) are another popular solution to solve this problem. Gwak et al. (2017); Lin et al. (2019) introduce image silhouettes along with adversarial multi-view constraints and optimize object mesh models using multi-view photometric constraints. Predicting mesh directly from color images was proposed in Wang et al. (2018); Wickramasinghe et al. (2019); Pan et al. (2019); Wen et al. (2019); Gkioxari et al. (2019); Tang et al. (2019). DR-KFS Jin et al. (2019) introduces a differentiable visual similarity metric while SeqXY2SeqZ Han et al. (2020) represents 3D shapes using a set of 2D voxel tubes for shape reconstruction. Front2Back Yao et al. (2020) generates 3D shapes by fusing predicted depth and normal images and DV-Net Jia et al. (2020) predicts dense object point clouds using dual-view RGB images with a gated control network to fuse point clouds from the two views. FoldingNet Yang et al. (2018) learns to reconstruct arbitrary point clouds from a single 2D grid. AtlasNet Groueix et al. (2018) use learned parametric representation while Mescheder et al. (2019); Park et al. (2019); Liu et al. (2019b;a); Murez et al. (2020) employ implicit surface representation to reconstruct 3D shapes.
|
| 31 |
+
|
| 32 |
+
# 2.3 DEPTH ESTIMATION
|
| 33 |
+
|
| 34 |
+
Compared to 3D shape generation, depth prediction is an easier problem formulation since it simplifies the task to per-view depth map estimation. Traditional methods Campbell et al. (2008); Galliani et al. (2015); Schönberger et al. (2016) use multi-view stereo principles for depth prediction. Deep learning based multi-view stereo depth estimation was first introduced in Hartmann et al. (2017) where a learned cost metric is used to estimate patch similarities. DeepMVS Huang et al. (2018) warps multi-view images to 3D space and then applies deep networks for regularization and aggregation to estimate depth images. Learned 3D cost volume based depth prediction was proposed in MVSNet Yao et al. (2018) where a 3 dimensional cost volume is built using homographically warped 2D features from multi-view images and 3D CNNs are used for cost regularization and depth regression. This idea was further extended by Chen et al. (2019); Luo et al. (2019); Gu et al. (2019); Yao et al. (2019).
|
| 35 |
+
|
| 36 |
+
# 3 METHODOLOGY
|
| 37 |
+
|
| 38 |
+
Figure 1 shows the architecture of the proposed system which takes as input multi-view color images of an object with known poses and outputs a triangle mesh representing the surface of the object.
|
| 39 |
+
|
| 40 |
+
# 3.1 MULTI-VIEW VOXEL GRID PREDICTION
|
| 41 |
+
|
| 42 |
+
Single-view Voxel Grid Prediction The single-view voxel branch consists of a ResNet feature extractor and a fully convolutional voxel grid prediction network. It generates the coarse initial shape of an object from one viewpoint as voxel occupancy grid using a color image. Here, we set the resolution of the generated voxel occupancy grid as $3 2 \times 3 2 \times 3 2$ . The voxel prediction networks for all viewpoints share the same weights.
|
| 43 |
+
|
| 44 |
+
Probabilistic Occupancy Grid Merging Voxel occupancy grid predicted from a single viewpoint suffers from occlusion and limited visibility. In order to fuse voxel grids from different viewpoints, we propose a probabilistic occupancy grid merging method which merges the voxel grids from each input viewpoint probabilistically to obtain the final voxel grid output. This allows occluded regions in one view to be estimated from other views where those regions are visible as well as increase the confidence of prediction in overlapping regions. Occupancy probability of each voxel is represented by $p ( x )$ which is converted to log-odds (logit):
|
| 45 |
+
|
| 46 |
+
$$
|
| 47 |
+
l ( x ) = l o g { \frac { p ( x ) } { 1 - p ( x ) } }
|
| 48 |
+
$$
|
| 49 |
+
|
| 50 |
+
Bayesian update on the probabilities reduce to simple summation of log likelihoods Konolige (1997). Hence, the multi-view log-odds of a voxel is given by:
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
l ( x ) = l _ { 1 } ( x ) + l _ { 2 } ( x ) + . . . + l _ { n } ( x )
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
where $l _ { i }$ is the voxel’s log-odds in view $i$ and $n$ is the number of input views. The final voxel probability $x$ is obtained by applying the inverse function of Equation (1) which is a sigmoid function.
|
| 57 |
+
|
| 58 |
+
# 3.2 MESH REFINEMENT
|
| 59 |
+
|
| 60 |
+
The cubified mesh from the voxel branch only provides a coarse reconstruction of the object’s surface. We apply graph convolutional networks which represent each mesh vertex as one graph node and deforms them to more accurate positions.
|
| 61 |
+
|
| 62 |
+
GCN-based Mesh Deformation The features pooled from multi-view images along with 3D coordinates of the vertices in world frame are used as features of the graph nodes. Series of Graphbased Convolutional Network (GCN) blocks are applied to deform a mesh at the current stage to the next stage, starting with the cubified voxel grids. A graph convolution deforms mesh vertices by propagating features from neighboring vertices by applying $\begin{array} { r } { f _ { i } ^ { ' } = R e L U ( W _ { 0 } f _ { i } + \sum _ { j \in \mathcal { N } ( i ) } W _ { 1 } f _ { j } ) } \end{array}$ where $\mathcal { N } ( i )$ is the set of neighboring vertices of the $i .$ -th vertex in the mesh, $f _ { \{ \} }$ represents the feature vector of a vertex, and $W _ { 0 }$ and $W _ { 1 }$ are learnable parameters of the model. Each GCN block utilizes several graph convolutions to transform the vertex features along with a final vertex refinement operation where the features along with vertex coordinates are further transformed as $v _ { i } ^ { ' } = v _ { i } + t a n h ( W _ { v e r t } [ f _ { i } ; v _ { i } ] )$ where the matrix $W _ { v e r t }$ is another learnable parameter to obtain the deformed mesh.
|
| 63 |
+
|
| 64 |
+
Contrastive Depth Feature Extraction Yao et al. (2020) demonstrate that using intermediate, image-centric 2.5D representations instead of directly generating 3D shapes in global frame from raw 2D images can improve 3D reconstruction quality. We therefore propose to formulate the features for graph nodes using 2.5D depth maps as input additional inputs alongside the RGB features. Specifically, we render the meshes at different GCN stages to depth image at all the input views using Kato et al. (2018) and use them along with predicted depths for depth feature extraction. We call this form of depth input contrastive depth as it contrasts the rendered depths of the current mesh against the predicted depths and allows the network to reason about the deformation better than when using predicted depth or color images alone. Given the 2D features, corresponding feature vectors of individual vertices can be found by projecting the 3D vertex coordinates to the feature planes using known camera parameters. We use VGG-16 Simonyan & Zisserman (2014) as our contrastive depth feature extraction network.
|
| 65 |
+
|
| 66 |
+
Multi-View Depth Estimation We extend MVSNet Yao et al. (2018) and predict the depth maps of all views since the original implementation predicts depth of only one reference view. This is achieved by transforming the feature volumes to each view’s coordinate frame using homography warping and applying identical cost volume regularization and depth regression on each view. Detailed network architecture diagram of this module is provided in the appendix.
|
| 67 |
+
|
| 68 |
+
Attention-based Multi-View Feature Pooling In order to fuse multi-view contrastive depth features, we formulate an attention module by adapting multi-head attention mechanism originally designed for sequence to sequence machine translation using transformer (encoder-decoder) architecture Vaswani et al. (2017). In a transformer architecture the encoder hidden state is mapped to lower dimension key-value pairs $( \mathbf { K } , \mathbf { V } )$ while the decoder hidden state is mapped to a query vector Q using independent fully connected layers. The encoder hidden state in our case is the multi-view features while the decoder hidden state is the mean of the multi-view features. The attention weights are computed using scaled-dot product:
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
A t t e n t i o n ( \mathbf { Q } , \mathbf { K } , \mathbf { V } ) = s o f t m a x ( \frac { \mathbf { Q } \mathbf { K } ^ { T } } { \sqrt { N } } ) \mathbf { V }
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+

|
| 75 |
+
Figure 2: Attention weights visualization. From left to right: input images from 3 viewpoints, corresponding ground truth point clouds color-coded by their view order and the predicted mesh vertices color-coded by the attention weights of the views. Only the view with maximum attention weight is visualized for each predicted points for clarity.
|
| 76 |
+
|
| 77 |
+
where $N$ is the number of input views.
|
| 78 |
+
|
| 79 |
+
Multiple attention heads are used which are concatenated and transformed to obtain the final output
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\begin{array} { r } { h e a d _ { i } = A t t e n t i o n ( { \mathbf { Q } } { \mathbf { W } } _ { i } ^ { Q } , { \mathbf { K } } { \mathbf { W } } _ { i } ^ { K } , { \mathbf { V } } { \mathbf { W } } _ { i } ^ { V } ) } \\ { M u l t i H e a d ( { \mathbf { Q } } , { \mathbf { K } } , { \mathbf { V } } ) = [ h e a d _ { 1 } ; . . . ; h e a d _ { h } ] { \mathbf { W } } ^ { 0 } } \end{array}
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where multiple $\mathbf { W }$ are parameters to be learned, $h$ is the number of attention heads and $i \in [ 1 , h ]$
|
| 86 |
+
|
| 87 |
+
We choose multi-head attention as our feature pooling method since it allows the model to attend information from different representation subspaces of the features by training multiple attentions in parallel. This method is also invariant to the order and number of input views. We visualize the learned attention weights (average of each attention heads) in Figure 2 where we can observe that the attention weights roughly takes into account the visibility/occlusion information from each view.
|
| 88 |
+
|
| 89 |
+
# 3.3 LOSS FUNCTIONS
|
| 90 |
+
|
| 91 |
+
Mesh losses The losses which are derived from Wang et al. (2018) to constrain the mesh predicted by each GCN block (P) to resemble the ground truth (Q) include Chamfer distance $\mathcal { L } _ { \mathrm { c h a m f e r } } ( \mathrm { P } , \mathrm { Q } ) =$ $\begin{array} { r } { | \bar { \mathbf { P } } | ^ { - 1 } \sum _ { ( p , q ) \in \Lambda _ { \mathrm { P } , \mathrm { Q } } } | | p - q | | ^ { 2 } + | \mathbf { Q } | ^ { - 1 } \sum _ { ( q , p ) \in \Lambda _ { \mathrm { Q } , \mathrm { P } } } | | q - p | | ^ { 2 } } \end{array}$ and surface normal loss $\mathcal { L } _ { \mathrm { n o r m a l } } ( \mathbf { P } , \mathbf { Q } ) =$ $\begin{array} { r } { - | \mathbf { P } | ^ { - 1 } \sum _ { ( p , q ) \in \Lambda _ { \mathbf { P } , \mathbf { Q } } } | u _ { p } \cdot u _ { q } | - | \mathbf { Q } | ^ { - 1 } \sum _ { ( q , p ) \in \Lambda _ { \mathbf { Q } , \mathbf { P } } } | u _ { q } \cdot u _ { p } | } \end{array}$ with additional regularization in the form of edge length loss $\begin{array} { r } { \mathcal { L } _ { \mathrm { e d g e } } ( \mathrm { V } , \mathrm { E } ) = { \frac { 1 } { | E | } } \sum _ { ( v , v ^ { \prime } ) \in E } | | v - v ^ { \prime } | | ^ { 2 } } \end{array}$ for visually appealing results.
|
| 92 |
+
|
| 93 |
+
Depth loss Our depth prediction network is supervised using adaptive reversed Huber loss (also known as BerHu criterion) Lambert-Lacroix & Zwald (2016). $\mathcal { L } _ { d e p t h } ~ = ~ | \boldsymbol { x } |$ , if $| x | \ \leq$ c, otherwise x2+c22c where $x$ is the depth error of a pixel and $c$ is a constant set to 0.2. Note that the original MVSNet uses L1-loss, but we used BerHu loss since it gave slightly higher accuracy. Intuitively, this is because BerHu provides a good balance between L1 and L2 loss and has shown similar improvement in Laina et al. (2016).
|
| 94 |
+
|
| 95 |
+
Contrastive depth loss BerHu loss is also applied between the rendered depth images at different GCN stages and the predicted depth images. $\mathcal { L } _ { c o n t r a s t i v e } = | x | .$ , if $| x | \le c$ , otherwise $\frac { x ^ { 2 } + c ^ { 2 } } { 2 c }$
|
| 96 |
+
|
| 97 |
+
Voxel loss Binary cross-entropy loss between the predicted voxel occupancy probabilities and the ground truth occupancies is used as voxel loss to supervise the voxel predictions $\mathcal { L } _ { \mathrm { v o x e l } } =$ $- \bar { \Bigl ( p ( x ) l o g \bigl ( p ( x ) \bigr ) + \bigl ( 1 - p ( x ) \bigr ) l o g \bigl ( 1 - p ( x ) \bigr ) \Bigr ) }$
|
| 98 |
+
|
| 99 |
+
Final loss We use the weighted sum of the individual losses discussed above as the final loss to train our model in an end-to-end fashion. $\mathcal { L } = \lambda _ { \mathrm { c h a m f e r } } \mathcal { L } _ { \mathrm { c h a m f e r } } + \lambda _ { \mathrm { n o r m a l } } \mathcal { L } _ { \mathrm { n o r m a l } } + \lambda _ { \mathrm { e d g e } } \mathcal { L } _ { \mathrm { e d g e } } + \lambda _ { \mathrm { d e p t h } } \mathcal { L } _ { \mathrm { d e p t h } } +$ $\lambda _ { \mathrm { c o n t r a s t i v e } } \mathcal { L } _ { \mathrm { c o n t r a s t i v e } } + \lambda _ { \mathrm { v o x e l } } \mathcal { L } _ { \mathrm { v o x e l } }$ , where $\mathcal { L }$ is the final loss term.
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
Figure 3: Qualitative evaluation on ShapeNet dataset. From top to bottom: one of the input images, ground truth mesh, multi-view extended Pixel2Mesh, Pixel2Mesh $^ { + + }$ , and ours. Our predictions are closer to the actual shape, especially for the objects with more complex topologies.
|
| 103 |
+
|
| 104 |
+
# 4 EXPERIMENTS
|
| 105 |
+
|
| 106 |
+
# 4.1 EXPERIMENTAL SETUP
|
| 107 |
+
|
| 108 |
+
Comparisons We evaluate the proposed method against various multi-view shape generation methods. The state-of-the-art method is Pixel2Mesh $^ { + + }$ Wen et al. (2019) (referred as $P 2 M + +$ ). Wen et al. (2019) also provide a baseline by directly extending Pixel2Mesh Wang et al. (2018) to operate on multi-view images (referred as MVP2M) using their statistical feature pooling method to aggregate features from multiple color images. Results from additional multi-view shape generation baselines 3D-R2N2 Choy et al. (2016) and LSM Kar et al. (2017) are also reported.
|
| 109 |
+
|
| 110 |
+
Dataset We evaluate our method against the state-of-the-art methods on the dataset from Choy et al. (2016) which is a subset of ShapeNet Chang et al. (2015) and has been widely used by recent 3D shape generation methods. It contains 50K 3D CAD models from 13 categories. Each model is rendered with a transparent background from 24 randomly chosen camera viewpoints to obtain color images. The corresponding camera intrinsics and extrinsics are provided in the dataset. Since the dataset does not contain depth images, we render them using a custom depth renderer at the same viewpoints as the color images and with the same camera intrinsics. We follow the training/testing/validation split of Gkioxari et al. (2019).
|
| 111 |
+
|
| 112 |
+
Implementation For the depth prediction module, we follow the original MVSNet Yao et al. (2018) implementation. The output depth dimensions reduces by a factor of 4 to $5 6 \times 5 6$ from the $2 2 4 \times 2 2 4$ input image. The number of depth hypotheses is chosen as 48 which offers a balance between accuracy and running/training time efficiency. These depth hypotheses represent values from $0 . 1 { \mathrm { m } }$ to $\mathrm { 1 . 3 } \mathrm { m }$ at an interval of $2 5 \mathrm { m m }$ . These values were chosen based on the range of depths present in the dataset.
|
| 113 |
+
|
| 114 |
+
The hierarchical features obtained from "Contrastive Depth Features Extractor" are of total 4800 dimensions for each view. The aggregated multi-view features are compressed to 480 dimensional after applying attentive feature pooling. 5 attention heads are used for merging multi-view features. The loss function weights are set as $\lambda _ { \mathrm { c h a m f e r } } = 1$ , $\lambda _ { \mathrm { n o r m a l } } = 1 . 6 \times 1 0 ^ { - 4 }$ , $\lambda _ { \mathrm { d e p t h } } = 0 . 1$ , $\lambda _ { \mathrm { c o n t r a s t i v e } } =$ 0.001 and $\lambda _ { \mathrm { v o x e l } } = 1$ . Two settings of $\lambda _ { \mathrm { e d g e } }$ were used, $\lambda _ { \mathrm { e d g e } } = 0$ (referred as Best) which gives better quantitative results and $\lambda _ { \mathrm { e d g e } } = 0 . 2$ (referred as Pretty) which gives better qualitative results.
|
| 115 |
+
|
| 116 |
+
Training and Runtime The network is optimized using Adam optimizer with a learning rate of $1 0 ^ { - 4 }$ . The training is done on 5 Nvidia RTX-2080 GPUs with effective batch size 5. The depth prediction network (MVSNet) is trained independently for 30 epochs. Then the whole system is trained for another 40 epochs with the weights of the MVSNet frozen. Our system is implemented in PyTorch deep learning framework and it takes around 60 hours for training.
|
| 117 |
+
|
| 118 |
+
Evaluation Metric Following Wang et al. (2018); Wen et al. (2019), we use F1-score as our evaluation metric. The F1-score is the harmonic mean of precision and recall where the precision/recall are calculated by finding the percentage of points in the predicted/ground truth that can find a nearest neighbor from the other within a threshold. We provide evaluations with two threshold values: $\tau$ and $2 \tau$ where $\tau = 1 0 ^ { - 4 } ~ \mathrm { m } ^ { 2 }$ .
|
| 119 |
+
|
| 120 |
+
# 4.2 COMPARISON WITH PREVIOUS MULTI-VIEW SHAPE GENERATION METHODS
|
| 121 |
+
|
| 122 |
+
We quantitatively compare our method against previous works for multi-view shape generation in Table 1 and show the effectiveness of our methods in improving the shape quality. Our method outperforms the state-of-the-art method Pixel2Mesh $^ { + + }$ Wen et al. (2019) with a decrease in chamfer distance to ground truth by $34 \%$ and $15 \%$ increase in F1-score at threshold $\tau$ . Note that in Table 1 the same model is trained for all the categories but accuracy on individual categories as well as average over the categories are evaluated. We provide the chamfer distances in the appendix.
|
| 123 |
+
|
| 124 |
+
<table><tr><td rowspan="2">Category</td><td colspan="6">F-score (T)↑</td><td colspan="6">F-score (2τ)↑</td></tr><tr><td>3D-R2N2</td><td>LSM</td><td>MVP2M</td><td>P2M++</td><td>Ours (pretty)</td><td>Ours (best)</td><td>3D-R2N2</td><td>LSM</td><td>MVP2M</td><td>P2M++</td><td>Ours (pretty)</td><td>Ours (best)</td></tr><tr><td>Couch</td><td>45.47</td><td>43.02</td><td>53.17</td><td>57.56</td><td>71.63</td><td>73.63</td><td>59.97</td><td>55.49</td><td>73.24</td><td>75.33</td><td>85.28</td><td>88.24</td></tr><tr><td>Cabinet</td><td>54.08</td><td>50.80</td><td>56.85</td><td>65.72</td><td>75.91</td><td>76.39</td><td>64.42</td><td>60.72</td><td>76.58</td><td>81.57</td><td>87.61</td><td>88.84</td></tr><tr><td>Bench</td><td>44.56</td><td>49.33</td><td>60.37</td><td>66.24</td><td>81.11</td><td>83.76</td><td>62.47</td><td>65.92</td><td>75.69</td><td>79.67</td><td>90.56</td><td>92.57</td></tr><tr><td>Chair</td><td>37.62</td><td>48.55</td><td>54.19</td><td>62.05</td><td>77.63</td><td>78.69</td><td>54.26</td><td>64.95</td><td>72.36</td><td>77.68</td><td>88.24</td><td>90.02</td></tr><tr><td>Monitor</td><td>36.33</td><td>43.65</td><td>53.41</td><td>60.00</td><td>74.14</td><td>76.64</td><td>48.65</td><td>56.33</td><td>70.63</td><td>75.42</td><td>86.04</td><td>88.89</td></tr><tr><td>Firearm</td><td>55.72</td><td>56.14</td><td>79.67</td><td>80.74</td><td>92.92</td><td>94.32</td><td>76.79</td><td>73.89</td><td>89.08</td><td>89.29</td><td>96.81</td><td>97.67</td></tr><tr><td>Speaker</td><td>41.48</td><td>45.21</td><td>48.90</td><td>54.88</td><td>66.02</td><td>67.83</td><td>52.29</td><td>56.65</td><td>68.29</td><td>71.46</td><td>79.76</td><td>82.34</td></tr><tr><td>Lamp</td><td>32.25</td><td>45.58</td><td>50.82</td><td>62.56</td><td>72.47</td><td>75.93</td><td>49.38</td><td>64.76</td><td>65.72</td><td>74.00</td><td>82.00</td><td>85.33</td></tr><tr><td>Cellphone</td><td>58.09</td><td>60.11</td><td>66.07</td><td>74.36</td><td>85.57</td><td>86.45</td><td>69.66</td><td>71.39</td><td>82.31</td><td>86.16</td><td>93.40</td><td>94.28</td></tr><tr><td>Plane</td><td>47.81</td><td>55.60</td><td>75.16</td><td>76.79</td><td>89.23</td><td>92.13</td><td>70.49</td><td>76.39</td><td>86.38</td><td>86.62</td><td>94.65</td><td>96.57</td></tr><tr><td>Table</td><td>48.78</td><td>48.61</td><td>65.95</td><td>71.89</td><td>82.37</td><td>83.68</td><td>62.67</td><td>62.22</td><td>79.96</td><td>84.19</td><td>90.24</td><td>91.97</td></tr><tr><td>Car</td><td>59.86</td><td>51.91</td><td>67.27</td><td>68.45</td><td>77.01</td><td>80.43</td><td>78.31</td><td>68.20</td><td>84.64</td><td>85.19</td><td>88.99</td><td>92.33</td></tr><tr><td>Watercraft</td><td>40.72</td><td>47.96</td><td>61.85</td><td>62.99</td><td>75.52</td><td>80.48</td><td>63.59</td><td>66.95</td><td>77.49</td><td>77.32</td><td>86.77</td><td>90.35</td></tr><tr><td>Mean</td><td>46.37</td><td>49.73</td><td>61.05</td><td>66.48</td><td>78.58</td><td>80.80</td><td>62.53</td><td>64.91</td><td>77.10</td><td>80.30</td><td>88.49</td><td>90.72</td></tr></table>
|
| 125 |
+
|
| 126 |
+
Table 1: Qualitative comparison against state-of-the-art multi-view shape generation methods. We report F-score on each semantic category along with the mean over all categories using two thresholds $\tau$ and $2 \tau$ for nearest neighbor match where $\tau { = } 1 0 ^ { - 4 } \mathrm { m } ^ { 2 }$ .
|
| 127 |
+
|
| 128 |
+
We also provide visual results for qualitative assessment of the generated shapes by our Pretty model in Figure 3 which shows that it is able to more accurately predict topologically diverse shapes.
|
| 129 |
+
|
| 130 |
+
# 4.3 ABLATION STUDIES
|
| 131 |
+
|
| 132 |
+
Contrastive Depth Feature Extraction We evaluate several methods for contrastive feature extraction (Sub-section 3.2). These methods are 1) Input Concatenation: using the concatenated rendered and predicted depth maps as input to the VGG feature extractor, 2) Input Difference: using the difference of the two depth maps as input to VGG, 3) Feature Concatenation: concatenating features from rendered and predicted depths extracted by shared VGG, 4) Feature Difference: using difference of the features from the two depth maps extracted by shared VGG, and 5) Predicted depth only: using the VGG features from the predicted depths only. 6) Rendered depth only: using the VGG features from the rendered depths only. The quantitative results are summarized in Table 2 and shows that Input Concatenation method produces better results than other formulations.
|
| 133 |
+
|
| 134 |
+
Accuracy with different settings Table 3 shows the contribution of different components towards the final accuracy. Naively extending the single-view Mesh R-CNN Gkioxari et al. (2019) to multiple views using statistical feature pooling Wen et al. (2019) for mesh refinement (row 1) gives an F1-score of $7 2 . 7 4 \%$ for threshold $\tau$ which is $6 . 2 6 \%$ improvement over Pixel2Mesh $^ { + + }$ . We further extend the above method with our probabilistic multi-view voxel grid prediction in row 2 and get a $4 . 2 3 \%$ improvement.
|
| 135 |
+
|
| 136 |
+
In row 3 of Table 3 we use our contrastive depth features instead of RGB features for mesh refinement and get $2 . 7 \%$ improvement. We then replace the statistical feature pooling with the proposed attention method and get $0 . 1 9 \%$ improvement. The improvement is not significant on our final architecture but we found the multi-head attention to perform better on more light-weight architectures. We also evaluate the effect of using additional regularization from contrastive depth losses: rendered depth vs predicted depth in the 5th rows of which improves the score by $0 . 9 8 \%$ . In row 6 we use ground truth instead of predicted depths on our final model which gives the upper bound on our mesh prediction accuracy in relation to the depth prediction accuracy as $8 4 . 5 8 \%$ .
|
| 137 |
+
|
| 138 |
+
Table 2: Comparisons of different contrastive depth formulations. In 1st and 2nd rows, concatenation and difference of the rendered and predicted depths are fed to VGG feature extractor while in 3rd and 4th rows, concatenation and difference of the VGG features from the depths is used for mesh refinement. 5 uses VGG features from predicted depths only while 6 uses VGG features from rendered depths only.
|
| 139 |
+
|
| 140 |
+
<table><tr><td></td><td>F1-T</td><td>F1-2T</td></tr><tr><td>(1) Input Concatenation</td><td>80.80</td><td>90.72</td></tr><tr><td>(2) Input Difference</td><td>80.41</td><td>90.54</td></tr><tr><td>(3) Feature Concatenation</td><td>80.45</td><td>90.54</td></tr><tr><td>(4) Feature Difference</td><td>80.30</td><td>90.40</td></tr><tr><td>(5) Predicted Depth only</td><td>79.40</td><td>89.95</td></tr><tr><td>(6) Rendered Depth only</td><td>78.20</td><td>88.90</td></tr></table>
|
| 141 |
+
|
| 142 |
+
<table><tr><td></td><td>F1-T</td><td>F1-2T</td></tr><tr><td>(1) Naive multi-view Mesh R-CNN</td><td>72.74</td><td>84.99</td></tr><tr><td>(2) + Multi-view voxel grid prediction</td><td>76.97</td><td>88.24</td></tr><tr><td>(3) + Contrastive depth input</td><td>79.63</td><td>90.10</td></tr><tr><td>(4) + Multi-head attention pooling</td><td>79.82</td><td>90.18</td></tr><tr><td>(5)+ Contrastive depth loss (final model)</td><td>80.80</td><td>90.72</td></tr><tr><td>(6) Using GT depth (final model)</td><td>84.58</td><td>92.86</td></tr></table>
|
| 143 |
+
|
| 144 |
+
Number of View We test the performance of our framework with respect to the number of views. Table 4 shows that the accuracy of our method increases as we increase the number of input views for training. These experiments also validate that the attention-based feature pooling can efficiently encode features from different views to take advantage of larger number of views.
|
| 145 |
+
|
| 146 |
+
Table 5 shows the results when using different number of views during testing on our model trained with 3 views which indicates that increasing the number of views during testing does not improve the accuracy while decreasing the number of views can cause a significant drop in accuracy.
|
| 147 |
+
|
| 148 |
+
Table 4: Accuracy w.r.t the number of views during training. The evaluation was performed on the same number of views as training.
|
| 149 |
+
|
| 150 |
+
<table><tr><td>Metric</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td></tr><tr><td>F1-T</td><td>73.60</td><td>80.80</td><td>82.61</td><td>83.76</td><td>84.25</td></tr><tr><td>F1-2T</td><td>85.80</td><td>90.72</td><td>91.78</td><td>92.73</td><td>93.14</td></tr></table>
|
| 151 |
+
|
| 152 |
+
Table 5: Accuracy w.r.t the number of views during testing. The same model trained with 3 views was used in all of the cases.
|
| 153 |
+
|
| 154 |
+
<table><tr><td>Metric</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td></tr><tr><td>F1-T</td><td>72.46</td><td>80.80</td><td>80.98</td><td>80.94</td><td>80.85</td></tr><tr><td>F1-2T</td><td>84.49</td><td>90.72</td><td>91.03</td><td>91.16</td><td>91.20</td></tr></table>
|
| 155 |
+
|
| 156 |
+
# 5 CONCLUSION
|
| 157 |
+
|
| 158 |
+
We propose a neural network based solution to predict 3D triangle mesh models of objects from images taken from multiple views. First, we propose a multi-view voxel grid prediction module which probabilistically merges voxel grids predicted from individual input views. We then cubify the merged voxel grid to triangle mesh and apply graph convolutional networks for further refining the mesh. The features for the mesh vertices are extracted from contrastive depth input consisting of rendered depths at each refinement stage along with the predicted depths. The proposed mesh reconstruction method outperforms existing methods with a large margin and is capable of reconstructing objects with more complex topologies.
|
| 159 |
+
|
| 160 |
+
# REFERENCES
|
| 161 |
+
|
| 162 |
+
Sameer Agarwal, Yasutaka Furukawa, Noah Snavely, Ian Simon, Brian Curless, Steven M Seitz, and Richard Szeliski. Building rome in a day. Communications of the ACM, 54(10):105–112, 2011.
|
| 163 |
+
|
| 164 |
+
Cesar Cadena, Luca Carlone, Henry Carrillo, Yasir Latif, Davide Scaramuzza, José Neira, Ian Reid, and John J Leonard. Past, present, and future of simultaneous localization and mapping: Toward the robust-perception age. IEEE Transactions on robotics, 32(6):1309–1332, 2016.
|
| 165 |
+
|
| 166 |
+
Neill DF Campbell, George Vogiatzis, Carlos Hernández, and Roberto Cipolla. Using multiple hypotheses to improve depth-maps for multi-view stereo. In European Conference on Computer Vision, pp. 766–779. Springer, 2008.
|
| 167 |
+
|
| 168 |
+
Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015.
|
| 169 |
+
|
| 170 |
+
Rui Chen, Songfang Han, Jing Xu, and Hao Su. Point-based multi-view stereo network. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1538–1547, 2019.
|
| 171 |
+
|
| 172 |
+
Christopher B Choy, Danfei Xu, JunYoung Gwak, Kevin Chen, and Silvio Savarese. 3d-r2n2: A unified approach for single and multi-view 3d object reconstruction. In European conference on computer vision, pp. 628–644. Springer, 2016.
|
| 173 |
+
|
| 174 |
+
Hainan Cui, Xiang Gao, Shuhan Shen, and Zhanyi Hu. Hsfm: Hybrid structure-from-motion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1212–1221, 2017.
|
| 175 |
+
|
| 176 |
+
Zhaopeng Cui and Ping Tan. Global structure-from-motion by similarity averaging. In Proceedings of the IEEE International Conference on Computer Vision, pp. 864–872, 2015.
|
| 177 |
+
|
| 178 |
+
Jean-Denis Durou, Maurizio Falcone, and Manuela Sagona. Numerical methods for shape-fromshading: A new survey with benchmarks. Computer Vision and Image Understanding, 109(1): 22–43, 2008.
|
| 179 |
+
|
| 180 |
+
Jakob Engel, Thomas Schöps, and Daniel Cremers. Lsd-slam: Large-scale direct monocular slam. In European conference on computer vision, pp. 834–849. Springer, 2014.
|
| 181 |
+
|
| 182 |
+
Haoqiang Fan, Hao Su, and Leonidas J Guibas. A point set generation network for 3d object reconstruction from a single image. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 605–613, 2017.
|
| 183 |
+
|
| 184 |
+
Paolo Favaro and Stefano Soatto. A geometric approach to shape from defocus. IEEE Transactions on Pattern Analysis and Machine Intelligence, 27(3):406–417, 2005.
|
| 185 |
+
|
| 186 |
+
Yasutaka Furukawa and Jean Ponce. Accurate, dense, and robust multiview stereopsis. IEEE transactions on pattern analysis and machine intelligence, 32(8):1362–1376, 2009.
|
| 187 |
+
|
| 188 |
+
Silvano Galliani, Katrin Lasinger, and Konrad Schindler. Massively parallel multiview stereopsis by surface normal diffusion. In Proceedings of the IEEE International Conference on Computer Vision, pp. 873–881, 2015.
|
| 189 |
+
|
| 190 |
+
Georgia Gkioxari, Jitendra Malik, and Justin Johnson. Mesh r-cnn. In Proceedings of the IEEE International Conference on Computer Vision, pp. 9785–9795, 2019.
|
| 191 |
+
|
| 192 |
+
Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. A papier-mâché approach to learning 3d surface generation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 216–224, 2018.
|
| 193 |
+
|
| 194 |
+
Xiaodong Gu, Zhiwen Fan, Siyu Zhu, Zuozhuo Dai, Feitong Tan, and Ping Tan. Cascade cost volume for high-resolution multi-view stereo and stereo matching. arXiv preprint arXiv:1912.06378, 2019.
|
| 195 |
+
|
| 196 |
+
JunYoung Gwak, Christopher B Choy, Manmohan Chandraker, Animesh Garg, and Silvio Savarese. Weakly supervised 3d reconstruction with adversarial constraint. In 2017 International Conference on 3D Vision (3DV), pp. 263–272. IEEE, 2017.
|
| 197 |
+
|
| 198 |
+
Zhizhong Han, Guanhui Qiao, Yu-Shen Liu, and Matthias Zwicker. Seqxy2seqz: Structure learning for 3d shapes by sequentially predicting 1d occupancy segments from 2d coordinates. arXiv preprint arXiv:2003.05559, 2020.
|
| 199 |
+
|
| 200 |
+
Wilfried Hartmann, Silvano Galliani, Michal Havlena, Luc Van Gool, and Konrad Schindler. Learned multi-patch similarity. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1586–1594, 2017.
|
| 201 |
+
|
| 202 |
+
Po-Han Huang, Kevin Matzen, Johannes Kopf, Narendra Ahuja, and Jia-Bin Huang. Deepmvs: Learning multi-view stereopsis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2821–2830, 2018.
|
| 203 |
+
|
| 204 |
+
Qixing Huang, Hai Wang, and Vladlen Koltun. Single-view reconstruction via joint analysis of image and shape collections. ACM Transactions on Graphics (TOG), 34(4):1–10, 2015.
|
| 205 |
+
|
| 206 |
+
Xin Jia, Shourui Yang, Yuxin Peng, Junchao Zhang, and Shengyong Chen. Dv-net: Dual-view network for 3d reconstruction by fusing multiple sets of gated control point clouds. Pattern Recognition Letters, 131:376–382, 2020.
|
| 207 |
+
|
| 208 |
+
Jiongchao Jin, Akshay Gadi Patil, Zhang Xiong, and Hao Zhang. Dr-kfs: A differentiable visual similarity metric for 3d shape reconstruction, 2019.
|
| 209 |
+
|
| 210 |
+
Abhishek Kar, Shubham Tulsiani, Joao Carreira, and Jitendra Malik. Category-specific object reconstruction from a single image. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1966–1974, 2015.
|
| 211 |
+
|
| 212 |
+
Abhishek Kar, Christian Häne, and Jitendra Malik. Learning a multi-view stereo machine. In Advances in neural information processing systems, pp. 365–376, 2017.
|
| 213 |
+
|
| 214 |
+
Hiroharu Kato, Yoshitaka Ushiku, and Tatsuya Harada. Neural 3d mesh renderer. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
|
| 215 |
+
|
| 216 |
+
Kurt Konolige. Improved occupancy grids for map building. Autonomous Robots, 4(4):351–367, 1997.
|
| 217 |
+
|
| 218 |
+
Andrey Kurenkov, Jingwei Ji, Animesh Garg, Viraj Mehta, JunYoung Gwak, Christopher Choy, and Silvio Savarese. Deformnet: Free-form deformation network for 3d shape reconstruction from a single image. In 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), pp. 858–866. IEEE, 2018.
|
| 219 |
+
|
| 220 |
+
Kiriakos N Kutulakos and Steven M Seitz. A theory of shape by space carving. International journal of computer vision, 38(3):199–218, 2000.
|
| 221 |
+
|
| 222 |
+
Iro Laina, Christian Rupprecht, Vasileios Belagiannis, Federico Tombari, and Nassir Navab. Deeper depth prediction with fully convolutional residual networks. In 2016 Fourth international conference on 3D vision (3DV), pp. 239–248. IEEE, 2016.
|
| 223 |
+
|
| 224 |
+
Sophie Lambert-Lacroix and Laurent Zwald. The adaptive berhu penalty in robust regression. Journal of Nonparametric Statistics, 28(3):487–514, 2016.
|
| 225 |
+
|
| 226 |
+
Maxime Lhuillier and Long Quan. A quasi-dense approach to surface reconstruction from uncalibrated images. IEEE transactions on pattern analysis and machine intelligence, 27(3):418–433, 2005.
|
| 227 |
+
|
| 228 |
+
Chen-Hsuan Lin, Oliver Wang, Bryan C Russell, Eli Shechtman, Vladimir G Kim, Matthew Fisher, and Simon Lucey. Photometric mesh optimization for video-aligned 3d object reconstruction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 969–978, 2019.
|
| 229 |
+
|
| 230 |
+
Shaohui Liu, Yinda Zhang, Songyou Peng, Boxin Shi, Marc Pollefeys, and Zhaopeng Cui. Dist: Rendering deep implicit signed distance function with differentiable sphere tracing. arXiv preprint arXiv:1911.13225, 2019a.
|
| 231 |
+
|
| 232 |
+
Shichen Liu, Shunsuke Saito, Weikai Chen, and Hao Li. Learning to infer implicit surfaces without 3d supervision. In Advances in Neural Information Processing Systems, pp. 8293–8304, 2019b.
|
| 233 |
+
|
| 234 |
+
Keyang Luo, Tao Guan, Lili Ju, Haipeng Huang, and Yawei Luo. P-mvsnet: Learning patch-wise matching confidence aggregation for multi-view stereo. In Proceedings of the IEEE International Conference on Computer Vision, pp. 10452–10461, 2019.
|
| 235 |
+
|
| 236 |
+
Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4460–4470, 2019.
|
| 237 |
+
|
| 238 |
+
Raul Mur-Artal, Jose Maria Martinez Montiel, and Juan D Tardos. Orb-slam: a versatile and accurate monocular slam system. IEEE transactions on robotics, 31(5):1147–1163, 2015.
|
| 239 |
+
|
| 240 |
+
Zak Murez, Tarrence van As, James Bartolozzi, Ayan Sinha, Vijay Badrinarayanan, and Andrew Rabinovich. Atlas: End-to-end 3d scene reconstruction from posed images. arXiv preprint arXiv:2003.10432, 2020.
|
| 241 |
+
|
| 242 |
+
Junyi Pan, Xiaoguang Han, Weikai Chen, Jiapeng Tang, and Kui Jia. Deep mesh reconstruction from single rgb images via topology modification networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 9964–9973, 2019.
|
| 243 |
+
|
| 244 |
+
Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 165–174, 2019.
|
| 245 |
+
|
| 246 |
+
Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61–80, 2008.
|
| 247 |
+
|
| 248 |
+
Johannes L Schonberger and Jan-Michael Frahm. Structure-from-motion revisited. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4104–4113, 2016.
|
| 249 |
+
|
| 250 |
+
Johannes L Schönberger, Enliang Zheng, Jan-Michael Frahm, and Marc Pollefeys. Pixelwise view selection for unstructured multi-view stereo. In European Conference on Computer Vision, pp. 501–518. Springer, 2016.
|
| 251 |
+
|
| 252 |
+
Steven M Seitz and Charles R Dyer. Photorealistic scene reconstruction by voxel coloring. International Journal of Computer Vision, 35(2):151–173, 1999.
|
| 253 |
+
|
| 254 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 255 |
+
|
| 256 |
+
Hao Su, Qixing Huang, Niloy J Mitra, Yangyan Li, and Leonidas Guibas. Estimating image depth using shape collections. ACM Transactions on Graphics (TOG), 33(4):1–11, 2014.
|
| 257 |
+
|
| 258 |
+
Jiapeng Tang, Xiaoguang Han, Junyi Pan, Kui Jia, and Xin Tong. A skeleton-bridged deep learning approach for generating meshes of complex topologies from single rgb images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4541–4550, 2019.
|
| 259 |
+
|
| 260 |
+
Shubham Tulsiani, Tinghui Zhou, Alexei A Efros, and Jitendra Malik. Multi-view supervision for single-view reconstruction via differentiable ray consistency. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2626–2634, 2017.
|
| 261 |
+
|
| 262 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pp. 5998–6008, 2017.
|
| 263 |
+
|
| 264 |
+
Nanyang Wang, Yinda Zhang, Zhuwen Li, Yanwei Fu, Wei Liu, and Yu-Gang Jiang. Pixel2mesh: Generating 3d mesh models from single rgb images. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 52–67, 2018.
|
| 265 |
+
|
| 266 |
+
Chao Wen, Yinda Zhang, Zhuwen Li, and Yanwei Fu. Pixel2mesh++: Multi-view 3d mesh generation via deformation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1042–1051, 2019.
|
| 267 |
+
|
| 268 |
+
Thomas Whelan, Stefan Leutenegger, R Salas-Moreno, Ben Glocker, and Andrew Davison. Elasticfusion: Dense slam without a pose graph. Robotics: Science and Systems, 2015.
|
| 269 |
+
|
| 270 |
+
Udaranga Wickramasinghe, Edoardo Remelli, Graham Knott, and Pascal Fua. Voxel2mesh: 3d mesh model generation from volumetric data, 2019.
|
| 271 |
+
|
| 272 |
+
Xinchen Yan, Jimei Yang, Ersin Yumer, Yijie Guo, and Honglak Lee. Perspective transformer nets: Learning single-view 3d object reconstruction without 3d supervision. In Advances in neural information processing systems, pp. 1696–1704, 2016.
|
| 273 |
+
|
| 274 |
+
Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. Foldingnet: Point cloud auto-encoder via deep grid deformation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 206–215, 2018.
|
| 275 |
+
|
| 276 |
+
Yao Yao, Zixin Luo, Shiwei Li, Tian Fang, and Long Quan. Mvsnet: Depth inference for unstructured multi-view stereo. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 767–783, 2018.
|
| 277 |
+
|
| 278 |
+
Yao Yao, Zixin Luo, Shiwei Li, Tianwei Shen, Tian Fang, and Long Quan. Recurrent mvsnet for high-resolution multi-view stereo depth inference. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5525–5534, 2019.
|
| 279 |
+
|
| 280 |
+
Yuan Yao, Nico Schertler, Enrique Rosales, Helge Rhodin, Leonid Sigal, and Alla Sheffer. Front2back: Single view 3d shape reconstruction via front to back prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 531–540, 2020.
|
| 281 |
+
|
| 282 |
+
Ruo Zhang, Ping-Sing Tsai, James Edwin Cryer, and Mubarak Shah. Shape-from-shading: a survey. IEEE transactions on pattern analysis and machine intelligence, 21(8):690–706, 1999.
|
| 283 |
+
|
| 284 |
+
A APPENDIX
|
| 285 |
+
|
| 286 |
+
# NETWORK ARCHITECTURE
|
| 287 |
+
|
| 288 |
+
MVSNET ARCHITECTURE
|
| 289 |
+
|
| 290 |
+

|
| 291 |
+
Figure 4: Depth prediction network (MVSNet) architecture
|
| 292 |
+
|
| 293 |
+
Our depth prediction module is based on MVSNet Yao et al. (2018) which constructs a regularized 3D cost volumes to estimate the depth map of the reference view. Here, we extent MVSNet to predict the depth maps of all views instead of only the reference view. This is achieved by transforming the feature volumes to each view’s coordinate frame using homography warping and applying identical cost volume regularization and depth regression on each view. This allows the reuse of pre-regularization feature volumes for efficient multi-view depth prediction invariant to the order of input images. Figure 4 shows the architecture of the our depth estimation module.
|
| 294 |
+
|
| 295 |
+
# PROBABILISTIC OCCUPANCY GRID MERGING
|
| 296 |
+
|
| 297 |
+
We use single-view voxel prediction network from Gkioxari et al. (2019) to predict predicts voxel grids for each of the input images in their respective local coordinate frames. The occupancy grids are transformed to global frame (which is set to the coordinate frame of the first image) by finding the equivalent global grid values in the local grids after applying bilinear interpolation on the closest matches. The voxel grids in global coordinates are then probabilistically merged according to Sub-section 3.1 of the main submission.
|
| 298 |
+
|
| 299 |
+
# EXPERIMENTS
|
| 300 |
+
|
| 301 |
+
We quantitatively compare our method against previous works for multi-view shape generation in Table 6 and show effectiveness of our proposed shape generation methods in improving shape quality. Our method outperforms the state-of-the-art method Pixel2Mesh $^ { + + }$ Wen et al. (2019) with decrease in chamfer distance to ground truth by $34 \%$ , which shows the effectiveness of our proposed method. Note that in Table 6 same model is trained for all the categories but accuracy on individual categories as well as average over all the categories are evaluated.
|
| 302 |
+
|
| 303 |
+
<table><tr><td rowspan="2">Category</td><td colspan="4">Chamfer Distance (CD) ↓</td></tr><tr><td>3D-R2N2</td><td>LSM</td><td>MVP2M</td><td>P2M++ Ours</td></tr><tr><td>Couch</td><td>0.806</td><td>0.730</td><td>0.534</td><td>0.439 0.220</td></tr><tr><td>Cabinet</td><td>0.613</td><td>0.634</td><td>0.488 0.337</td><td>0.230</td></tr><tr><td>Bench</td><td>1.362</td><td>0.572</td><td>0.591 0.549</td><td>0.159</td></tr><tr><td>Chair</td><td>1.534</td><td>0.495</td><td>0.583 0.461</td><td>0.201</td></tr><tr><td>Monitor</td><td>1.465</td><td>0.592</td><td>0.658</td><td>0.566 0.217</td></tr><tr><td>Firearm</td><td>0.432</td><td>0.385</td><td>0.305</td><td>0.305 0.123</td></tr><tr><td>Speaker</td><td>1.443</td><td>0.767</td><td>0.745</td><td>0.635 0.402</td></tr><tr><td>Lamp</td><td>6.780</td><td>1.768</td><td>0.980</td><td>1.135 0.755</td></tr><tr><td>Cellphone</td><td>1.161</td><td>0.362</td><td>0.445</td><td>0.325 0.138</td></tr><tr><td>Plane</td><td>0.854</td><td>0.496</td><td>0.403</td><td>0.422 0.084</td></tr><tr><td>Table</td><td>1.243</td><td>0.994</td><td>0.511</td><td>0.388 0.181</td></tr><tr><td>Car</td><td>0.358</td><td>0.326</td><td>0.321</td><td>0.249 0.165</td></tr><tr><td>Watercraft</td><td>0.869</td><td>0.509</td><td>0.463</td><td>0.508 0.175</td></tr><tr><td>Mean</td><td>1.455</td><td>0.664</td><td>0.541</td><td>0.486 0.211</td></tr></table>
|
| 304 |
+
|
| 305 |
+
Table 6: Qualitative comparison against state-of-the-art multi-view shape generation methods. Following Wen et al. (2019), we report Chamfer Distance in $m ^ { 2 } \times 1 0 0 0$ from ground truth for different methods. Note that same model is trained for all the categories but accuracy on individual categories as well as average over all the categories are evaluated.
|
| 306 |
+
|
| 307 |
+
# ABLATION STUDIES
|
| 308 |
+
|
| 309 |
+
Coarse Shape Generation We conduct comparisons on voxel grid predicted from our proposed probabilistically merged voxel grids against single view method Gkioxari et al. (2019). As is shown in Table 7, the accuracy of the initial shape generated from probabilistically merged voxel grid is higher than that from individual views.
|
| 310 |
+
|
| 311 |
+
Accuracy at Different GCN Stages We analyze the accuracy of meshes at different GCN stages in Table 8. The results validate that our method produces the meshes in a coarse-to-fine manner and multiple GCN refinements improve the mesh quality.
|
| 312 |
+
|
| 313 |
+
Resolution of Depth Prediction We conduct experiments using different numbers of depth hypotheses in our depth prediction network (Sub-section A), producing depth values at different resolutions. A higher number of depth hypothesis means finer resolution of the predicted depths. The quantitative results with different hypothesis numbers are summarized in Table 9. We set depth hypothesis as 48 for our final architecture which is equivalent to the resolution of $2 5 \mathrm { m m }$ . We observe that the mesh accuracy remain relatively unchanged if we predict depths at finer resolutions.
|
| 314 |
+
|
| 315 |
+
<table><tr><td>Metric</td><td>Cubified</td><td>Stage-1</td><td>Stage-2</td><td>Stage-3</td></tr><tr><td>F1-T</td><td>31.48</td><td>76.78</td><td>79.88</td><td>80.80</td></tr><tr><td>F1-2T</td><td>44.40</td><td>88.32</td><td>90.19</td><td>90.72</td></tr></table>
|
| 316 |
+
|
| 317 |
+
Table 7: Accuracy of predicted voxel grids from single-view prediction compared against the proposed probabilistically merged multi-view voxel grids. The voxel branch was trained separately without the mesh refinement and evaluation was performed on the cubified voxel grids. We use three views for probabilistic grid merging.
|
| 318 |
+
|
| 319 |
+
<table><tr><td>Metric</td><td>Single-view</td><td>Multi-view</td></tr><tr><td>F1-T</td><td>25.19</td><td>31.27</td></tr><tr><td>F1-2T</td><td>36.75</td><td>44.46</td></tr></table>
|
| 320 |
+
|
| 321 |
+
Table 8: Accuracy of the refined meshes at different GCN stages. 1, 2 and 3 indicate the performance at the corresponding graph convolution blocks while Cubified is for the cubified voxel grids used as input for the first GCN block. All the stages, including the voxel prediction, were trained jointly and hence the accuracy of voxel predictions varies from that in Table 7.
|
| 322 |
+
|
| 323 |
+
Table 9: Accuracy w.r.t the number of depth hypothesis. A higher number of depth hypothesis increases the resolution of predicted depth values at the expense of higher memory requirement. The range of depths for all the models are same and based on the minimum/maximum depth in the ShapeNet Chang et al. (2015) dataset.
|
| 324 |
+
|
| 325 |
+
<table><tr><td>Metric</td><td>24</td><td>48</td><td>72</td><td>96</td></tr><tr><td>F1-T</td><td>80.29</td><td>80.80</td><td>80.69</td><td>80.34</td></tr><tr><td>F1-2T</td><td>90.43</td><td>90.72</td><td>90.74</td><td>90.47</td></tr></table>
|
| 326 |
+
|
| 327 |
+
Generalization Capability We conduct experiments to evaluate the generalization capability of our system across the semantic categories. We train our model with only 12 out of the 13 categories and test on the category that was left out. Table 10 shows that the accuracy generally does not decrease significantly when compared with the model that was trained on all 13 categories when using $2 \tau$ threshold for the F-score.
|
| 328 |
+
|
| 329 |
+
Table 10: Accuracy when a category is excluded during training and evaluation is performed on the category to verify how well training on other categories generalizes to the excluded category.
|
| 330 |
+
|
| 331 |
+
<table><tr><td rowspan="2">Category</td><td colspan="2">F-score (T)↑</td><td colspan="2">F-score (2τ)↑</td></tr><tr><td>Excluding</td><td>Including</td><td>Excluding</td><td>Including</td></tr><tr><td>Couch</td><td>63.29</td><td>73.63</td><td>80.79</td><td>88.24</td></tr><tr><td>Cabinet</td><td>68.26</td><td>76.39</td><td>83.10</td><td>88.84</td></tr><tr><td>Bench</td><td>76.08</td><td>83.76</td><td>87.42</td><td>92.57</td></tr><tr><td>Chair</td><td>60.60</td><td>78.69</td><td>75.93</td><td>90.02</td></tr><tr><td>Monitor</td><td>67.26</td><td>76.64</td><td>81.57</td><td>88.89</td></tr><tr><td>Firearm</td><td>78.59</td><td>94.32</td><td>86.28</td><td>97.67</td></tr><tr><td>Speaker</td><td>62.39</td><td>67.83</td><td>77.77</td><td>82.34</td></tr><tr><td>Lamp</td><td>63.50</td><td>75.93</td><td>74.66</td><td>85.33</td></tr><tr><td>Cellphone</td><td>67.24</td><td>86.45</td><td>80.54</td><td>94.28</td></tr><tr><td>Plane</td><td>57.48</td><td>92.13</td><td>67.27</td><td>96.57</td></tr><tr><td>Table</td><td>76.41</td><td>83.68</td><td>86.86</td><td>91.97</td></tr><tr><td>Car</td><td>59.08</td><td>80.43</td><td>75.58</td><td>92.33</td></tr><tr><td>Watercraft</td><td>64.97</td><td>80.48</td><td>78.95</td><td>90.35</td></tr></table>
|
| 332 |
+
|
| 333 |
+
# B APPENDIX
|
| 334 |
+
|
| 335 |
+
# BEST VS PRETTY MODELS
|
| 336 |
+
|
| 337 |
+
We provide qualitative comparison between the our models trained with best and pretty configurations in Figure 5. The best configuration refers to our model trained without edge regularization while pretty refers to the model trained with the regularization (Sub-section 4.1). We observe that without the regularization we get higher score on our evaluation metrics but get degenerate meshes with self-intersections and irregularly sized faces.
|
| 338 |
+
|
| 339 |
+

|
| 340 |
+
Figure 5: Qualitative evaluation: best vs pretty wireframe models. The best models while being preferred by the evaluation metrics lead to degenerate meshes, with irregularly sized faces and self-intersections
|
| 341 |
+
|
| 342 |
+
# FAILURE CASES
|
| 343 |
+
|
| 344 |
+
Some failure cases of our model (with pretty setting) are shown in Figure 6. We notice that the rough topology of the mesh is recovered while we failed to reconstruct the fine topology. We can regard the recovery from wrong initial topology as a promising future work.
|
| 345 |
+
|
| 346 |
+

|
| 347 |
+
Figure 6: Failure Cases. Our system can struggle to roughly reconstruct shapes with very complex topology while some fine topology of the mesh is missing.
|
parse/train/pULTvw9X313/pULTvw9X313_content_list.json
ADDED
|
@@ -0,0 +1,1917 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "MESHMVS: MULTI-VIEW STEREO GUIDED MESH RECONSTRUCTION ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
826,
|
| 10 |
+
145
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Deep learning based 3D shape generation methods generally utilize latent features extracted from color images to encode the objects’ semantics and guide the shape generation process. These color image semantics only implicitly encode 3D information, potentially limiting the accuracy of the generated shapes. In this paper we propose a multi-view mesh generation method which incorporates geometry information in the color images explicitly by using the features from intermediate 2.5D depth representations of the input images and regularizing the 3D shapes against these depth images. Our system first predicts a coarse 3D volume from the color images by probabilistically merging voxel occupancy grids from individual views. Depth images corresponding to the multi-view color images are predicted which along with the rendered depth images of the coarse shape are used as a contrastive input whose features guide the refinement of the coarse shape through a series of graph convolution networks. Attention-based multi-view feature pooling is proposed to fuse the contrastive depth features from different viewpoints which are fed to the graph convolution networks. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
267,
|
| 43 |
+
764,
|
| 44 |
+
474
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "We validate the proposed multi-view mesh generation method on ShapeNet, where we obtain a significant improvement with $34 \\%$ decrease in chamfer distance to ground truth and $14 \\%$ increase in the F1-score compared with the state-of-the-art multi-view shape generation method. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
479,
|
| 54 |
+
764,
|
| 55 |
+
535
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
565,
|
| 66 |
+
336,
|
| 67 |
+
580
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "3D shape generation is a long-standing research problem in computer vision and computer graphics with applications in autonomous driving, augmented reality, etc. Conventional approaches mainly leverage multi-view geometry based on stereo correspondences between images but are restricted by the coverage provided by the input views. With the availability of large-scale 3D shape datasets and the success of deep learning in several computer vision tasks, 3D representations such as voxel grid Choy et al. (2016); Tulsiani et al. (2017); Yan et al. (2016) and point cloud Yang et al. (2018); Fan et al. (2017) have been explored for single-view 3D reconstruction. Among them, triangle mesh representation has received the most attention as it has various desirable properties for a wide range of applications and is capable of modeling detailed geometry without high memory requirement. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
597,
|
| 77 |
+
825,
|
| 78 |
+
722
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Single-view 3D reconstruction methods Wang et al. (2018); Huang et al. (2015); Kar et al. (2015); Su et al. (2014) generate the 3D shape from merely a single color image but suffer from occlusion and limited visibility which leads to low quality reconstructions in the unseen areas. Multi-view methods Wen et al. (2019); Choy et al. (2016); Kar et al. (2017); Gwak et al. (2017) extend the input to images from different viewpoints which provides more visual information and improves the accuracy of the generated shapes. Recent work in multi-view mesh reconstruction Wen et al. (2019) introduces a multi-view deformation network using perceptual feature from each color image for refining the meshes generated by Pixel2Mesh Wang et al. (2018). Although promising results were obtained, this method relies on perceptual features from color images which do not explicitly encode the objects’ geometry and could restrict the accuracy of the 3D models. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
722,
|
| 88 |
+
825,
|
| 89 |
+
859
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this work, we present a novel multi-view mesh generation method where we start by predicting coarse volumetric occupancy grid representations for the color images of each input viewpoint independently using a shared fully convolutional network which are merged into a single voxel grid in a probabilistic fashion followed by cubify Gkioxari et al. (2019) operation to convert it to a triangle mesh. We then use Graph Convolutional Network (GCN) Scarselli et al. (2008); Wang et al. (2018) to fine-tune the cubified voxel grid in a coarse-to-fine manner. The GCN refines the coarse mesh by using the feature vector of each graph node (mesh vertices) obtained by projecting the vertices on the 2D contrastive depth features. The contrastive depth features are extracted from the rendered depth maps of the current mesh and predicted depth maps from a multi-view stereo network. We also propose an attention-based method to fuse feature from multiple views that can learn the importance of different views for each of the mesh vertices. Constrains between the intermediate refined mesh from GCN with predicted depth maps of different viewpoints further improve the final mesh quality. By employing multi-view voxel grid generation and refining it using geometry information from both the current mesh (through the rendered depth maps) and predicted depth maps, we are able to generate high-quality meshes. We validate our method on the ShapeNet Chang et al. (2015) benchmark and our method achieves the best performance among all previous multi-view and single-view mesh generation methods. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
868,
|
| 99 |
+
823,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/02d99d090a9ea2bed535ac9d276d10a485fcea411051838f8d277ebce11a7101.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: Architecture of the proposed method. The voxel grid prediction module predicts coarse voxel grid representation which is further refined by a series of GCNs. The GCNs use contrastive depth features from rendered depths of the current shape and the predicted depths from MVSNet. Multi-view features are pooled using a multi-head attention mechanism. "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
187,
|
| 113 |
+
104,
|
| 114 |
+
821,
|
| 115 |
+
382
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
460,
|
| 125 |
+
825,
|
| 126 |
+
641
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "2 RELATED WORK ",
|
| 133 |
+
"text_level": 1,
|
| 134 |
+
"bbox": [
|
| 135 |
+
176,
|
| 136 |
+
666,
|
| 137 |
+
344,
|
| 138 |
+
683
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "2.1 TRADITIONAL SHAPE GENERATION METHODS ",
|
| 145 |
+
"text_level": 1,
|
| 146 |
+
"bbox": [
|
| 147 |
+
176,
|
| 148 |
+
700,
|
| 149 |
+
537,
|
| 150 |
+
715
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "3D model generation has traditionally been tackled using multi-view geometry principles. Among them, structure-from-motion (SfM) Schonberger & Frahm (2016); Agarwal et al. (2011); Cui & Tan (2015); Cui et al. (2017) and simultaneous localization and mapping (SLAM) Cadena et al. (2016); Mur-Artal et al. (2015); Engel et al. (2014); Whelan et al. (2015) are popular techniques that perform 3D reconstruction and camera pose estimation at the same time. These methods extract local image features, match them across images and use the matches to estimate camera poses and 3D geometry. Closer to our problem setup, multi-view stereo methods infer 3D geometry from images with known camera parameters. Volumetric methods Kar et al. (2017); Kutulakos & Seitz (2000); Seitz & Dyer (1999) predict voxel grid representation of objects by estimating the relationship between each voxel and object surfaces. Point cloud based methods Furukawa & Ponce (2009); Lhuillier & Quan (2005) start with a sparse point cloud and gradually increase the density of points to obtain a final dense point cloud of the object. Durou et al. (2008); Zhang et al. (1999); Favaro & Soatto (2005) reason about shading, texture and defocus to reason about visible parts of the object and infer its 3D geometry. While the results of these works are impressive in terms of quality and completeness of reconstruction, they still struggle with poorly textured and reflective surfaces and require carefully selected input views. ",
|
| 157 |
+
"bbox": [
|
| 158 |
+
174,
|
| 159 |
+
729,
|
| 160 |
+
825,
|
| 161 |
+
924
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 1
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "",
|
| 168 |
+
"bbox": [
|
| 169 |
+
174,
|
| 170 |
+
103,
|
| 171 |
+
823,
|
| 172 |
+
132
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 2
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "2.2 DEEP SHAPE GENERATION METHODS ",
|
| 179 |
+
"text_level": 1,
|
| 180 |
+
"bbox": [
|
| 181 |
+
176,
|
| 182 |
+
150,
|
| 183 |
+
477,
|
| 184 |
+
165
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 2
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "Deep learning based approaches can learn to infer 3D structure from training data and can be robust against poorly textured and reflective surfaces as well as limited and arbitrarily selected input views. These methods can be categorized into single view and multi-view methods. Huang et al. (2015); Su et al. (2014) use shape component retrieval and deformation from a large dataset for single-view 3D shape generation. Kurenkov et al. (2018) extend this idea by introducing free-form deformation networks on retrieved object templates from a database. Some work learn shape deformation from ground truth foreground masks of 2D images Kar et al. (2015); Yan et al. (2016); Tulsiani et al. (2017). Recurrent Neural Networks (RNN) based methods Choy et al. (2016); Kar et al. (2017); Gwak et al. (2017) are another popular solution to solve this problem. Gwak et al. (2017); Lin et al. (2019) introduce image silhouettes along with adversarial multi-view constraints and optimize object mesh models using multi-view photometric constraints. Predicting mesh directly from color images was proposed in Wang et al. (2018); Wickramasinghe et al. (2019); Pan et al. (2019); Wen et al. (2019); Gkioxari et al. (2019); Tang et al. (2019). DR-KFS Jin et al. (2019) introduces a differentiable visual similarity metric while SeqXY2SeqZ Han et al. (2020) represents 3D shapes using a set of 2D voxel tubes for shape reconstruction. Front2Back Yao et al. (2020) generates 3D shapes by fusing predicted depth and normal images and DV-Net Jia et al. (2020) predicts dense object point clouds using dual-view RGB images with a gated control network to fuse point clouds from the two views. FoldingNet Yang et al. (2018) learns to reconstruct arbitrary point clouds from a single 2D grid. AtlasNet Groueix et al. (2018) use learned parametric representation while Mescheder et al. (2019); Park et al. (2019); Liu et al. (2019b;a); Murez et al. (2020) employ implicit surface representation to reconstruct 3D shapes. ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
173,
|
| 193 |
+
178,
|
| 194 |
+
826,
|
| 195 |
+
468
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 2
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "2.3 DEPTH ESTIMATION ",
|
| 202 |
+
"text_level": 1,
|
| 203 |
+
"bbox": [
|
| 204 |
+
176,
|
| 205 |
+
487,
|
| 206 |
+
354,
|
| 207 |
+
501
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 2
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "text",
|
| 213 |
+
"text": "Compared to 3D shape generation, depth prediction is an easier problem formulation since it simplifies the task to per-view depth map estimation. Traditional methods Campbell et al. (2008); Galliani et al. (2015); Schönberger et al. (2016) use multi-view stereo principles for depth prediction. Deep learning based multi-view stereo depth estimation was first introduced in Hartmann et al. (2017) where a learned cost metric is used to estimate patch similarities. DeepMVS Huang et al. (2018) warps multi-view images to 3D space and then applies deep networks for regularization and aggregation to estimate depth images. Learned 3D cost volume based depth prediction was proposed in MVSNet Yao et al. (2018) where a 3 dimensional cost volume is built using homographically warped 2D features from multi-view images and 3D CNNs are used for cost regularization and depth regression. This idea was further extended by Chen et al. (2019); Luo et al. (2019); Gu et al. (2019); Yao et al. (2019). ",
|
| 214 |
+
"bbox": [
|
| 215 |
+
174,
|
| 216 |
+
513,
|
| 217 |
+
825,
|
| 218 |
+
654
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 2
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "3 METHODOLOGY ",
|
| 225 |
+
"text_level": 1,
|
| 226 |
+
"bbox": [
|
| 227 |
+
176,
|
| 228 |
+
675,
|
| 229 |
+
341,
|
| 230 |
+
690
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 2
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "text",
|
| 236 |
+
"text": "Figure 1 shows the architecture of the proposed system which takes as input multi-view color images of an object with known poses and outputs a triangle mesh representing the surface of the object. ",
|
| 237 |
+
"bbox": [
|
| 238 |
+
174,
|
| 239 |
+
708,
|
| 240 |
+
823,
|
| 241 |
+
736
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "3.1 MULTI-VIEW VOXEL GRID PREDICTION",
|
| 248 |
+
"text_level": 1,
|
| 249 |
+
"bbox": [
|
| 250 |
+
174,
|
| 251 |
+
753,
|
| 252 |
+
491,
|
| 253 |
+
768
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 2
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "text",
|
| 259 |
+
"text": "Single-view Voxel Grid Prediction The single-view voxel branch consists of a ResNet feature extractor and a fully convolutional voxel grid prediction network. It generates the coarse initial shape of an object from one viewpoint as voxel occupancy grid using a color image. Here, we set the resolution of the generated voxel occupancy grid as $3 2 \\times 3 2 \\times 3 2$ . The voxel prediction networks for all viewpoints share the same weights. ",
|
| 260 |
+
"bbox": [
|
| 261 |
+
174,
|
| 262 |
+
781,
|
| 263 |
+
823,
|
| 264 |
+
852
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 2
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "Probabilistic Occupancy Grid Merging Voxel occupancy grid predicted from a single viewpoint suffers from occlusion and limited visibility. In order to fuse voxel grids from different viewpoints, we propose a probabilistic occupancy grid merging method which merges the voxel grids from each input viewpoint probabilistically to obtain the final voxel grid output. This allows occluded regions in one view to be estimated from other views where those regions are visible as well as increase the confidence of prediction in overlapping regions. Occupancy probability of each voxel is represented by $p ( x )$ which is converted to log-odds (logit): ",
|
| 271 |
+
"bbox": [
|
| 272 |
+
174,
|
| 273 |
+
854,
|
| 274 |
+
825,
|
| 275 |
+
922
|
| 276 |
+
],
|
| 277 |
+
"page_idx": 2
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"type": "text",
|
| 281 |
+
"text": "",
|
| 282 |
+
"bbox": [
|
| 283 |
+
171,
|
| 284 |
+
103,
|
| 285 |
+
825,
|
| 286 |
+
132
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 3
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "equation",
|
| 292 |
+
"img_path": "images/c88231c45176aaa7b6d8bb4f31dc6055bb0e531cee83097465998d8eebaa4b2c.jpg",
|
| 293 |
+
"text": "$$\nl ( x ) = l o g { \\frac { p ( x ) } { 1 - p ( x ) } }\n$$",
|
| 294 |
+
"text_format": "latex",
|
| 295 |
+
"bbox": [
|
| 296 |
+
429,
|
| 297 |
+
148,
|
| 298 |
+
566,
|
| 299 |
+
183
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 3
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "text",
|
| 305 |
+
"text": "Bayesian update on the probabilities reduce to simple summation of log likelihoods Konolige (1997). Hence, the multi-view log-odds of a voxel is given by: ",
|
| 306 |
+
"bbox": [
|
| 307 |
+
169,
|
| 308 |
+
190,
|
| 309 |
+
825,
|
| 310 |
+
219
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 3
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "equation",
|
| 316 |
+
"img_path": "images/c34dde1195fc5acdbe36b6bec95589d31c12f6a2d45e575aa3b292b6688d36e5.jpg",
|
| 317 |
+
"text": "$$\nl ( x ) = l _ { 1 } ( x ) + l _ { 2 } ( x ) + . . . + l _ { n } ( x )\n$$",
|
| 318 |
+
"text_format": "latex",
|
| 319 |
+
"bbox": [
|
| 320 |
+
383,
|
| 321 |
+
238,
|
| 322 |
+
614,
|
| 323 |
+
256
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 3
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "text",
|
| 329 |
+
"text": "where $l _ { i }$ is the voxel’s log-odds in view $i$ and $n$ is the number of input views. The final voxel probability $x$ is obtained by applying the inverse function of Equation (1) which is a sigmoid function. ",
|
| 330 |
+
"bbox": [
|
| 331 |
+
171,
|
| 332 |
+
265,
|
| 333 |
+
826,
|
| 334 |
+
295
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 3
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "text",
|
| 340 |
+
"text": "3.2 MESH REFINEMENT ",
|
| 341 |
+
"text_level": 1,
|
| 342 |
+
"bbox": [
|
| 343 |
+
176,
|
| 344 |
+
310,
|
| 345 |
+
352,
|
| 346 |
+
324
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "text",
|
| 352 |
+
"text": "The cubified mesh from the voxel branch only provides a coarse reconstruction of the object’s surface. We apply graph convolutional networks which represent each mesh vertex as one graph node and deforms them to more accurate positions. ",
|
| 353 |
+
"bbox": [
|
| 354 |
+
174,
|
| 355 |
+
335,
|
| 356 |
+
825,
|
| 357 |
+
377
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 3
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "GCN-based Mesh Deformation The features pooled from multi-view images along with 3D coordinates of the vertices in world frame are used as features of the graph nodes. Series of Graphbased Convolutional Network (GCN) blocks are applied to deform a mesh at the current stage to the next stage, starting with the cubified voxel grids. A graph convolution deforms mesh vertices by propagating features from neighboring vertices by applying $\\begin{array} { r } { f _ { i } ^ { ' } = R e L U ( W _ { 0 } f _ { i } + \\sum _ { j \\in \\mathcal { N } ( i ) } W _ { 1 } f _ { j } ) } \\end{array}$ where $\\mathcal { N } ( i )$ is the set of neighboring vertices of the $i .$ -th vertex in the mesh, $f _ { \\{ \\} }$ represents the feature vector of a vertex, and $W _ { 0 }$ and $W _ { 1 }$ are learnable parameters of the model. Each GCN block utilizes several graph convolutions to transform the vertex features along with a final vertex refinement operation where the features along with vertex coordinates are further transformed as $v _ { i } ^ { ' } = v _ { i } + t a n h ( W _ { v e r t } [ f _ { i } ; v _ { i } ] )$ where the matrix $W _ { v e r t }$ is another learnable parameter to obtain the deformed mesh. ",
|
| 364 |
+
"bbox": [
|
| 365 |
+
173,
|
| 366 |
+
380,
|
| 367 |
+
825,
|
| 368 |
+
537
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 3
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "Contrastive Depth Feature Extraction Yao et al. (2020) demonstrate that using intermediate, image-centric 2.5D representations instead of directly generating 3D shapes in global frame from raw 2D images can improve 3D reconstruction quality. We therefore propose to formulate the features for graph nodes using 2.5D depth maps as input additional inputs alongside the RGB features. Specifically, we render the meshes at different GCN stages to depth image at all the input views using Kato et al. (2018) and use them along with predicted depths for depth feature extraction. We call this form of depth input contrastive depth as it contrasts the rendered depths of the current mesh against the predicted depths and allows the network to reason about the deformation better than when using predicted depth or color images alone. Given the 2D features, corresponding feature vectors of individual vertices can be found by projecting the 3D vertex coordinates to the feature planes using known camera parameters. We use VGG-16 Simonyan & Zisserman (2014) as our contrastive depth feature extraction network. ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
174,
|
| 377 |
+
540,
|
| 378 |
+
825,
|
| 379 |
+
705
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 3
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "Multi-View Depth Estimation We extend MVSNet Yao et al. (2018) and predict the depth maps of all views since the original implementation predicts depth of only one reference view. This is achieved by transforming the feature volumes to each view’s coordinate frame using homography warping and applying identical cost volume regularization and depth regression on each view. Detailed network architecture diagram of this module is provided in the appendix. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
173,
|
| 388 |
+
707,
|
| 389 |
+
825,
|
| 390 |
+
776
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "Attention-based Multi-View Feature Pooling In order to fuse multi-view contrastive depth features, we formulate an attention module by adapting multi-head attention mechanism originally designed for sequence to sequence machine translation using transformer (encoder-decoder) architecture Vaswani et al. (2017). In a transformer architecture the encoder hidden state is mapped to lower dimension key-value pairs $( \\mathbf { K } , \\mathbf { V } )$ while the decoder hidden state is mapped to a query vector Q using independent fully connected layers. The encoder hidden state in our case is the multi-view features while the decoder hidden state is the mean of the multi-view features. The attention weights are computed using scaled-dot product: ",
|
| 397 |
+
"bbox": [
|
| 398 |
+
173,
|
| 399 |
+
777,
|
| 400 |
+
825,
|
| 401 |
+
888
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 3
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "equation",
|
| 407 |
+
"img_path": "images/ce30c38f3d24d3e460aa04b75d98339585004a16874a66f8e1f0d21589f3965f.jpg",
|
| 408 |
+
"text": "$$\nA t t e n t i o n ( \\mathbf { Q } , \\mathbf { K } , \\mathbf { V } ) = s o f t m a x ( \\frac { \\mathbf { Q } \\mathbf { K } ^ { T } } { \\sqrt { N } } ) \\mathbf { V }\n$$",
|
| 409 |
+
"text_format": "latex",
|
| 410 |
+
"bbox": [
|
| 411 |
+
348,
|
| 412 |
+
893,
|
| 413 |
+
648,
|
| 414 |
+
929
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 3
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "image",
|
| 420 |
+
"img_path": "images/85bfc53cff116373845a2510580033857bbade708c4afa86a5589992859a87b8.jpg",
|
| 421 |
+
"image_caption": [
|
| 422 |
+
"Figure 2: Attention weights visualization. From left to right: input images from 3 viewpoints, corresponding ground truth point clouds color-coded by their view order and the predicted mesh vertices color-coded by the attention weights of the views. Only the view with maximum attention weight is visualized for each predicted points for clarity. "
|
| 423 |
+
],
|
| 424 |
+
"image_footnote": [],
|
| 425 |
+
"bbox": [
|
| 426 |
+
178,
|
| 427 |
+
98,
|
| 428 |
+
823,
|
| 429 |
+
310
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 4
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "where $N$ is the number of input views. ",
|
| 436 |
+
"bbox": [
|
| 437 |
+
176,
|
| 438 |
+
387,
|
| 439 |
+
428,
|
| 440 |
+
401
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 4
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "Multiple attention heads are used which are concatenated and transformed to obtain the final output ",
|
| 447 |
+
"bbox": [
|
| 448 |
+
173,
|
| 449 |
+
407,
|
| 450 |
+
823,
|
| 451 |
+
422
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 4
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "equation",
|
| 457 |
+
"img_path": "images/622ec6524c1680a41349b3235cfc66afa852421333b4e2e053c48f93a2fc6ebc.jpg",
|
| 458 |
+
"text": "$$\n\\begin{array} { r } { h e a d _ { i } = A t t e n t i o n ( { \\mathbf { Q } } { \\mathbf { W } } _ { i } ^ { Q } , { \\mathbf { K } } { \\mathbf { W } } _ { i } ^ { K } , { \\mathbf { V } } { \\mathbf { W } } _ { i } ^ { V } ) } \\\\ { M u l t i H e a d ( { \\mathbf { Q } } , { \\mathbf { K } } , { \\mathbf { V } } ) = [ h e a d _ { 1 } ; . . . ; h e a d _ { h } ] { \\mathbf { W } } ^ { 0 } } \\end{array}\n$$",
|
| 459 |
+
"text_format": "latex",
|
| 460 |
+
"bbox": [
|
| 461 |
+
334,
|
| 462 |
+
430,
|
| 463 |
+
663,
|
| 464 |
+
473
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 4
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "where multiple $\\mathbf { W }$ are parameters to be learned, $h$ is the number of attention heads and $i \\in [ 1 , h ]$ ",
|
| 471 |
+
"bbox": [
|
| 472 |
+
173,
|
| 473 |
+
487,
|
| 474 |
+
808,
|
| 475 |
+
502
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 4
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "text",
|
| 481 |
+
"text": "We choose multi-head attention as our feature pooling method since it allows the model to attend information from different representation subspaces of the features by training multiple attentions in parallel. This method is also invariant to the order and number of input views. We visualize the learned attention weights (average of each attention heads) in Figure 2 where we can observe that the attention weights roughly takes into account the visibility/occlusion information from each view. ",
|
| 482 |
+
"bbox": [
|
| 483 |
+
174,
|
| 484 |
+
508,
|
| 485 |
+
825,
|
| 486 |
+
579
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 4
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "3.3 LOSS FUNCTIONS ",
|
| 493 |
+
"text_level": 1,
|
| 494 |
+
"bbox": [
|
| 495 |
+
176,
|
| 496 |
+
590,
|
| 497 |
+
336,
|
| 498 |
+
604
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 4
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "Mesh losses The losses which are derived from Wang et al. (2018) to constrain the mesh predicted by each GCN block (P) to resemble the ground truth (Q) include Chamfer distance $\\mathcal { L } _ { \\mathrm { c h a m f e r } } ( \\mathrm { P } , \\mathrm { Q } ) =$ $\\begin{array} { r } { | \\bar { \\mathbf { P } } | ^ { - 1 } \\sum _ { ( p , q ) \\in \\Lambda _ { \\mathrm { P } , \\mathrm { Q } } } | | p - q | | ^ { 2 } + | \\mathbf { Q } | ^ { - 1 } \\sum _ { ( q , p ) \\in \\Lambda _ { \\mathrm { Q } , \\mathrm { P } } } | | q - p | | ^ { 2 } } \\end{array}$ and surface normal loss $\\mathcal { L } _ { \\mathrm { n o r m a l } } ( \\mathbf { P } , \\mathbf { Q } ) =$ $\\begin{array} { r } { - | \\mathbf { P } | ^ { - 1 } \\sum _ { ( p , q ) \\in \\Lambda _ { \\mathbf { P } , \\mathbf { Q } } } | u _ { p } \\cdot u _ { q } | - | \\mathbf { Q } | ^ { - 1 } \\sum _ { ( q , p ) \\in \\Lambda _ { \\mathbf { Q } , \\mathbf { P } } } | u _ { q } \\cdot u _ { p } | } \\end{array}$ with additional regularization in the form of edge length loss $\\begin{array} { r } { \\mathcal { L } _ { \\mathrm { e d g e } } ( \\mathrm { V } , \\mathrm { E } ) = { \\frac { 1 } { | E | } } \\sum _ { ( v , v ^ { \\prime } ) \\in E } | | v - v ^ { \\prime } | | ^ { 2 } } \\end{array}$ for visually appealing results. ",
|
| 505 |
+
"bbox": [
|
| 506 |
+
173,
|
| 507 |
+
617,
|
| 508 |
+
825,
|
| 509 |
+
699
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 4
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "Depth loss Our depth prediction network is supervised using adaptive reversed Huber loss (also known as BerHu criterion) Lambert-Lacroix & Zwald (2016). $\\mathcal { L } _ { d e p t h } ~ = ~ | \\boldsymbol { x } |$ , if $| x | \\ \\leq$ c, otherwise x2+c22c where $x$ is the depth error of a pixel and $c$ is a constant set to 0.2. Note that the original MVSNet uses L1-loss, but we used BerHu loss since it gave slightly higher accuracy. Intuitively, this is because BerHu provides a good balance between L1 and L2 loss and has shown similar improvement in Laina et al. (2016). ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
173,
|
| 518 |
+
702,
|
| 519 |
+
825,
|
| 520 |
+
790
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 4
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "Contrastive depth loss BerHu loss is also applied between the rendered depth images at different GCN stages and the predicted depth images. $\\mathcal { L } _ { c o n t r a s t i v e } = | x | .$ , if $| x | \\le c$ , otherwise $\\frac { x ^ { 2 } + c ^ { 2 } } { 2 c }$ ",
|
| 527 |
+
"bbox": [
|
| 528 |
+
174,
|
| 529 |
+
792,
|
| 530 |
+
820,
|
| 531 |
+
825
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 4
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "Voxel loss Binary cross-entropy loss between the predicted voxel occupancy probabilities and the ground truth occupancies is used as voxel loss to supervise the voxel predictions $\\mathcal { L } _ { \\mathrm { v o x e l } } =$ $- \\bar { \\Bigl ( p ( x ) l o g \\bigl ( p ( x ) \\bigr ) + \\bigl ( 1 - p ( x ) \\bigr ) l o g \\bigl ( 1 - p ( x ) \\bigr ) \\Bigr ) }$ ",
|
| 538 |
+
"bbox": [
|
| 539 |
+
171,
|
| 540 |
+
827,
|
| 541 |
+
825,
|
| 542 |
+
880
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 4
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "Final loss We use the weighted sum of the individual losses discussed above as the final loss to train our model in an end-to-end fashion. $\\mathcal { L } = \\lambda _ { \\mathrm { c h a m f e r } } \\mathcal { L } _ { \\mathrm { c h a m f e r } } + \\lambda _ { \\mathrm { n o r m a l } } \\mathcal { L } _ { \\mathrm { n o r m a l } } + \\lambda _ { \\mathrm { e d g e } } \\mathcal { L } _ { \\mathrm { e d g e } } + \\lambda _ { \\mathrm { d e p t h } } \\mathcal { L } _ { \\mathrm { d e p t h } } +$ $\\lambda _ { \\mathrm { c o n t r a s t i v e } } \\mathcal { L } _ { \\mathrm { c o n t r a s t i v e } } + \\lambda _ { \\mathrm { v o x e l } } \\mathcal { L } _ { \\mathrm { v o x e l } }$ , where $\\mathcal { L }$ is the final loss term. ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
174,
|
| 551 |
+
882,
|
| 552 |
+
825,
|
| 553 |
+
924
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "image",
|
| 559 |
+
"img_path": "images/16e9000814758c5e0f9fc7cafba71cf427150a8b1e28cba393e962fab5a12fac.jpg",
|
| 560 |
+
"image_caption": [
|
| 561 |
+
"Figure 3: Qualitative evaluation on ShapeNet dataset. From top to bottom: one of the input images, ground truth mesh, multi-view extended Pixel2Mesh, Pixel2Mesh $^ { + + }$ , and ours. Our predictions are closer to the actual shape, especially for the objects with more complex topologies. "
|
| 562 |
+
],
|
| 563 |
+
"image_footnote": [],
|
| 564 |
+
"bbox": [
|
| 565 |
+
191,
|
| 566 |
+
99,
|
| 567 |
+
777,
|
| 568 |
+
378
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 5
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "4 EXPERIMENTS ",
|
| 575 |
+
"text_level": 1,
|
| 576 |
+
"bbox": [
|
| 577 |
+
174,
|
| 578 |
+
443,
|
| 579 |
+
326,
|
| 580 |
+
458
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 5
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "4.1 EXPERIMENTAL SETUP ",
|
| 587 |
+
"text_level": 1,
|
| 588 |
+
"bbox": [
|
| 589 |
+
176,
|
| 590 |
+
474,
|
| 591 |
+
375,
|
| 592 |
+
489
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 5
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "Comparisons We evaluate the proposed method against various multi-view shape generation methods. The state-of-the-art method is Pixel2Mesh $^ { + + }$ Wen et al. (2019) (referred as $P 2 M + +$ ). Wen et al. (2019) also provide a baseline by directly extending Pixel2Mesh Wang et al. (2018) to operate on multi-view images (referred as MVP2M) using their statistical feature pooling method to aggregate features from multiple color images. Results from additional multi-view shape generation baselines 3D-R2N2 Choy et al. (2016) and LSM Kar et al. (2017) are also reported. ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
174,
|
| 601 |
+
502,
|
| 602 |
+
825,
|
| 603 |
+
585
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 5
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "text",
|
| 609 |
+
"text": "Dataset We evaluate our method against the state-of-the-art methods on the dataset from Choy et al. (2016) which is a subset of ShapeNet Chang et al. (2015) and has been widely used by recent 3D shape generation methods. It contains 50K 3D CAD models from 13 categories. Each model is rendered with a transparent background from 24 randomly chosen camera viewpoints to obtain color images. The corresponding camera intrinsics and extrinsics are provided in the dataset. Since the dataset does not contain depth images, we render them using a custom depth renderer at the same viewpoints as the color images and with the same camera intrinsics. We follow the training/testing/validation split of Gkioxari et al. (2019). ",
|
| 610 |
+
"bbox": [
|
| 611 |
+
173,
|
| 612 |
+
589,
|
| 613 |
+
825,
|
| 614 |
+
700
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 5
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "Implementation For the depth prediction module, we follow the original MVSNet Yao et al. (2018) implementation. The output depth dimensions reduces by a factor of 4 to $5 6 \\times 5 6$ from the $2 2 4 \\times 2 2 4$ input image. The number of depth hypotheses is chosen as 48 which offers a balance between accuracy and running/training time efficiency. These depth hypotheses represent values from $0 . 1 { \\mathrm { m } }$ to $\\mathrm { 1 . 3 } \\mathrm { m }$ at an interval of $2 5 \\mathrm { m m }$ . These values were chosen based on the range of depths present in the dataset. ",
|
| 621 |
+
"bbox": [
|
| 622 |
+
174,
|
| 623 |
+
704,
|
| 624 |
+
825,
|
| 625 |
+
787
|
| 626 |
+
],
|
| 627 |
+
"page_idx": 5
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"type": "text",
|
| 631 |
+
"text": "The hierarchical features obtained from \"Contrastive Depth Features Extractor\" are of total 4800 dimensions for each view. The aggregated multi-view features are compressed to 480 dimensional after applying attentive feature pooling. 5 attention heads are used for merging multi-view features. The loss function weights are set as $\\lambda _ { \\mathrm { c h a m f e r } } = 1$ , $\\lambda _ { \\mathrm { n o r m a l } } = 1 . 6 \\times 1 0 ^ { - 4 }$ , $\\lambda _ { \\mathrm { d e p t h } } = 0 . 1$ , $\\lambda _ { \\mathrm { c o n t r a s t i v e } } =$ 0.001 and $\\lambda _ { \\mathrm { v o x e l } } = 1$ . Two settings of $\\lambda _ { \\mathrm { e d g e } }$ were used, $\\lambda _ { \\mathrm { e d g e } } = 0$ (referred as Best) which gives better quantitative results and $\\lambda _ { \\mathrm { e d g e } } = 0 . 2$ (referred as Pretty) which gives better qualitative results. ",
|
| 632 |
+
"bbox": [
|
| 633 |
+
174,
|
| 634 |
+
794,
|
| 635 |
+
825,
|
| 636 |
+
878
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 5
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "Training and Runtime The network is optimized using Adam optimizer with a learning rate of $1 0 ^ { - 4 }$ . The training is done on 5 Nvidia RTX-2080 GPUs with effective batch size 5. The depth prediction network (MVSNet) is trained independently for 30 epochs. Then the whole system is trained for another 40 epochs with the weights of the MVSNet frozen. Our system is implemented in PyTorch deep learning framework and it takes around 60 hours for training. ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
176,
|
| 645 |
+
882,
|
| 646 |
+
823,
|
| 647 |
+
924
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "",
|
| 654 |
+
"bbox": [
|
| 655 |
+
173,
|
| 656 |
+
103,
|
| 657 |
+
823,
|
| 658 |
+
132
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 6
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "Evaluation Metric Following Wang et al. (2018); Wen et al. (2019), we use F1-score as our evaluation metric. The F1-score is the harmonic mean of precision and recall where the precision/recall are calculated by finding the percentage of points in the predicted/ground truth that can find a nearest neighbor from the other within a threshold. We provide evaluations with two threshold values: $\\tau$ and $2 \\tau$ where $\\tau = 1 0 ^ { - 4 } ~ \\mathrm { m } ^ { 2 }$ . ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
174,
|
| 667 |
+
133,
|
| 668 |
+
825,
|
| 669 |
+
202
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 6
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "4.2 COMPARISON WITH PREVIOUS MULTI-VIEW SHAPE GENERATION METHODS ",
|
| 676 |
+
"text_level": 1,
|
| 677 |
+
"bbox": [
|
| 678 |
+
176,
|
| 679 |
+
212,
|
| 680 |
+
741,
|
| 681 |
+
227
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 6
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "We quantitatively compare our method against previous works for multi-view shape generation in Table 1 and show the effectiveness of our methods in improving the shape quality. Our method outperforms the state-of-the-art method Pixel2Mesh $^ { + + }$ Wen et al. (2019) with a decrease in chamfer distance to ground truth by $34 \\%$ and $15 \\%$ increase in F1-score at threshold $\\tau$ . Note that in Table 1 the same model is trained for all the categories but accuracy on individual categories as well as average over the categories are evaluated. We provide the chamfer distances in the appendix. ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
173,
|
| 690 |
+
238,
|
| 691 |
+
825,
|
| 692 |
+
321
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 6
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "table",
|
| 698 |
+
"img_path": "images/501a64ec26e7763e3895a4fb4e169a067f4f3163cb76835189bb2ae644b71499.jpg",
|
| 699 |
+
"table_caption": [],
|
| 700 |
+
"table_footnote": [
|
| 701 |
+
"Table 1: Qualitative comparison against state-of-the-art multi-view shape generation methods. We report F-score on each semantic category along with the mean over all categories using two thresholds $\\tau$ and $2 \\tau$ for nearest neighbor match where $\\tau { = } 1 0 ^ { - 4 } \\mathrm { m } ^ { 2 }$ . "
|
| 702 |
+
],
|
| 703 |
+
"table_body": "<table><tr><td rowspan=\"2\">Category</td><td colspan=\"6\">F-score (T)↑</td><td colspan=\"6\">F-score (2τ)↑</td></tr><tr><td>3D-R2N2</td><td>LSM</td><td>MVP2M</td><td>P2M++</td><td>Ours (pretty)</td><td>Ours (best)</td><td>3D-R2N2</td><td>LSM</td><td>MVP2M</td><td>P2M++</td><td>Ours (pretty)</td><td>Ours (best)</td></tr><tr><td>Couch</td><td>45.47</td><td>43.02</td><td>53.17</td><td>57.56</td><td>71.63</td><td>73.63</td><td>59.97</td><td>55.49</td><td>73.24</td><td>75.33</td><td>85.28</td><td>88.24</td></tr><tr><td>Cabinet</td><td>54.08</td><td>50.80</td><td>56.85</td><td>65.72</td><td>75.91</td><td>76.39</td><td>64.42</td><td>60.72</td><td>76.58</td><td>81.57</td><td>87.61</td><td>88.84</td></tr><tr><td>Bench</td><td>44.56</td><td>49.33</td><td>60.37</td><td>66.24</td><td>81.11</td><td>83.76</td><td>62.47</td><td>65.92</td><td>75.69</td><td>79.67</td><td>90.56</td><td>92.57</td></tr><tr><td>Chair</td><td>37.62</td><td>48.55</td><td>54.19</td><td>62.05</td><td>77.63</td><td>78.69</td><td>54.26</td><td>64.95</td><td>72.36</td><td>77.68</td><td>88.24</td><td>90.02</td></tr><tr><td>Monitor</td><td>36.33</td><td>43.65</td><td>53.41</td><td>60.00</td><td>74.14</td><td>76.64</td><td>48.65</td><td>56.33</td><td>70.63</td><td>75.42</td><td>86.04</td><td>88.89</td></tr><tr><td>Firearm</td><td>55.72</td><td>56.14</td><td>79.67</td><td>80.74</td><td>92.92</td><td>94.32</td><td>76.79</td><td>73.89</td><td>89.08</td><td>89.29</td><td>96.81</td><td>97.67</td></tr><tr><td>Speaker</td><td>41.48</td><td>45.21</td><td>48.90</td><td>54.88</td><td>66.02</td><td>67.83</td><td>52.29</td><td>56.65</td><td>68.29</td><td>71.46</td><td>79.76</td><td>82.34</td></tr><tr><td>Lamp</td><td>32.25</td><td>45.58</td><td>50.82</td><td>62.56</td><td>72.47</td><td>75.93</td><td>49.38</td><td>64.76</td><td>65.72</td><td>74.00</td><td>82.00</td><td>85.33</td></tr><tr><td>Cellphone</td><td>58.09</td><td>60.11</td><td>66.07</td><td>74.36</td><td>85.57</td><td>86.45</td><td>69.66</td><td>71.39</td><td>82.31</td><td>86.16</td><td>93.40</td><td>94.28</td></tr><tr><td>Plane</td><td>47.81</td><td>55.60</td><td>75.16</td><td>76.79</td><td>89.23</td><td>92.13</td><td>70.49</td><td>76.39</td><td>86.38</td><td>86.62</td><td>94.65</td><td>96.57</td></tr><tr><td>Table</td><td>48.78</td><td>48.61</td><td>65.95</td><td>71.89</td><td>82.37</td><td>83.68</td><td>62.67</td><td>62.22</td><td>79.96</td><td>84.19</td><td>90.24</td><td>91.97</td></tr><tr><td>Car</td><td>59.86</td><td>51.91</td><td>67.27</td><td>68.45</td><td>77.01</td><td>80.43</td><td>78.31</td><td>68.20</td><td>84.64</td><td>85.19</td><td>88.99</td><td>92.33</td></tr><tr><td>Watercraft</td><td>40.72</td><td>47.96</td><td>61.85</td><td>62.99</td><td>75.52</td><td>80.48</td><td>63.59</td><td>66.95</td><td>77.49</td><td>77.32</td><td>86.77</td><td>90.35</td></tr><tr><td>Mean</td><td>46.37</td><td>49.73</td><td>61.05</td><td>66.48</td><td>78.58</td><td>80.80</td><td>62.53</td><td>64.91</td><td>77.10</td><td>80.30</td><td>88.49</td><td>90.72</td></tr></table>",
|
| 704 |
+
"bbox": [
|
| 705 |
+
176,
|
| 706 |
+
337,
|
| 707 |
+
825,
|
| 708 |
+
505
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 6
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "We also provide visual results for qualitative assessment of the generated shapes by our Pretty model in Figure 3 which shows that it is able to more accurately predict topologically diverse shapes. ",
|
| 715 |
+
"bbox": [
|
| 716 |
+
174,
|
| 717 |
+
566,
|
| 718 |
+
823,
|
| 719 |
+
594
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 6
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "4.3 ABLATION STUDIES ",
|
| 726 |
+
"text_level": 1,
|
| 727 |
+
"bbox": [
|
| 728 |
+
174,
|
| 729 |
+
604,
|
| 730 |
+
352,
|
| 731 |
+
618
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 6
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "Contrastive Depth Feature Extraction We evaluate several methods for contrastive feature extraction (Sub-section 3.2). These methods are 1) Input Concatenation: using the concatenated rendered and predicted depth maps as input to the VGG feature extractor, 2) Input Difference: using the difference of the two depth maps as input to VGG, 3) Feature Concatenation: concatenating features from rendered and predicted depths extracted by shared VGG, 4) Feature Difference: using difference of the features from the two depth maps extracted by shared VGG, and 5) Predicted depth only: using the VGG features from the predicted depths only. 6) Rendered depth only: using the VGG features from the rendered depths only. The quantitative results are summarized in Table 2 and shows that Input Concatenation method produces better results than other formulations. ",
|
| 738 |
+
"bbox": [
|
| 739 |
+
174,
|
| 740 |
+
623,
|
| 741 |
+
825,
|
| 742 |
+
748
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 6
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "Accuracy with different settings Table 3 shows the contribution of different components towards the final accuracy. Naively extending the single-view Mesh R-CNN Gkioxari et al. (2019) to multiple views using statistical feature pooling Wen et al. (2019) for mesh refinement (row 1) gives an F1-score of $7 2 . 7 4 \\%$ for threshold $\\tau$ which is $6 . 2 6 \\%$ improvement over Pixel2Mesh $^ { + + }$ . We further extend the above method with our probabilistic multi-view voxel grid prediction in row 2 and get a $4 . 2 3 \\%$ improvement. ",
|
| 749 |
+
"bbox": [
|
| 750 |
+
173,
|
| 751 |
+
750,
|
| 752 |
+
825,
|
| 753 |
+
833
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 6
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "In row 3 of Table 3 we use our contrastive depth features instead of RGB features for mesh refinement and get $2 . 7 \\%$ improvement. We then replace the statistical feature pooling with the proposed attention method and get $0 . 1 9 \\%$ improvement. The improvement is not significant on our final architecture but we found the multi-head attention to perform better on more light-weight architectures. We also evaluate the effect of using additional regularization from contrastive depth losses: rendered depth vs predicted depth in the 5th rows of which improves the score by $0 . 9 8 \\%$ . In row 6 we use ground truth instead of predicted depths on our final model which gives the upper bound on our mesh prediction accuracy in relation to the depth prediction accuracy as $8 4 . 5 8 \\%$ . ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
174,
|
| 762 |
+
840,
|
| 763 |
+
825,
|
| 764 |
+
924
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 6
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "table",
|
| 770 |
+
"img_path": "images/094ccd58b7015ba66faf7de66d3acb64c2b06a6142fae3e5907067cdb16c6848.jpg",
|
| 771 |
+
"table_caption": [
|
| 772 |
+
"Table 2: Comparisons of different contrastive depth formulations. In 1st and 2nd rows, concatenation and difference of the rendered and predicted depths are fed to VGG feature extractor while in 3rd and 4th rows, concatenation and difference of the VGG features from the depths is used for mesh refinement. 5 uses VGG features from predicted depths only while 6 uses VGG features from rendered depths only. "
|
| 773 |
+
],
|
| 774 |
+
"table_footnote": [],
|
| 775 |
+
"table_body": "<table><tr><td></td><td>F1-T</td><td>F1-2T</td></tr><tr><td>(1) Input Concatenation</td><td>80.80</td><td>90.72</td></tr><tr><td>(2) Input Difference</td><td>80.41</td><td>90.54</td></tr><tr><td>(3) Feature Concatenation</td><td>80.45</td><td>90.54</td></tr><tr><td>(4) Feature Difference</td><td>80.30</td><td>90.40</td></tr><tr><td>(5) Predicted Depth only</td><td>79.40</td><td>89.95</td></tr><tr><td>(6) Rendered Depth only</td><td>78.20</td><td>88.90</td></tr></table>",
|
| 776 |
+
"bbox": [
|
| 777 |
+
303,
|
| 778 |
+
102,
|
| 779 |
+
696,
|
| 780 |
+
199
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 7
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "",
|
| 787 |
+
"bbox": [
|
| 788 |
+
174,
|
| 789 |
+
297,
|
| 790 |
+
823,
|
| 791 |
+
325
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 7
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "table",
|
| 797 |
+
"img_path": "images/7119a2639d83768f8037476b4dd40d8e76f198773802d4cc2975d3a525d64a49.jpg",
|
| 798 |
+
"table_caption": [],
|
| 799 |
+
"table_footnote": [],
|
| 800 |
+
"table_body": "<table><tr><td></td><td>F1-T</td><td>F1-2T</td></tr><tr><td>(1) Naive multi-view Mesh R-CNN</td><td>72.74</td><td>84.99</td></tr><tr><td>(2) + Multi-view voxel grid prediction</td><td>76.97</td><td>88.24</td></tr><tr><td>(3) + Contrastive depth input</td><td>79.63</td><td>90.10</td></tr><tr><td>(4) + Multi-head attention pooling</td><td>79.82</td><td>90.18</td></tr><tr><td>(5)+ Contrastive depth loss (final model)</td><td>80.80</td><td>90.72</td></tr><tr><td>(6) Using GT depth (final model)</td><td>84.58</td><td>92.86</td></tr></table>",
|
| 801 |
+
"bbox": [
|
| 802 |
+
267,
|
| 803 |
+
338,
|
| 804 |
+
730,
|
| 805 |
+
436
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 7
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "Number of View We test the performance of our framework with respect to the number of views. Table 4 shows that the accuracy of our method increases as we increase the number of input views for training. These experiments also validate that the attention-based feature pooling can efficiently encode features from different views to take advantage of larger number of views. ",
|
| 812 |
+
"bbox": [
|
| 813 |
+
173,
|
| 814 |
+
489,
|
| 815 |
+
825,
|
| 816 |
+
546
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 7
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "text",
|
| 822 |
+
"text": "Table 5 shows the results when using different number of views during testing on our model trained with 3 views which indicates that increasing the number of views during testing does not improve the accuracy while decreasing the number of views can cause a significant drop in accuracy. ",
|
| 823 |
+
"bbox": [
|
| 824 |
+
174,
|
| 825 |
+
553,
|
| 826 |
+
825,
|
| 827 |
+
595
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 7
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "table",
|
| 833 |
+
"img_path": "images/b1e5aff7c4a8fa225533cb238f6303f28efeefd72a7651c36c74a012f9f2b940.jpg",
|
| 834 |
+
"table_caption": [
|
| 835 |
+
"Table 4: Accuracy w.r.t the number of views during training. The evaluation was performed on the same number of views as training. "
|
| 836 |
+
],
|
| 837 |
+
"table_footnote": [],
|
| 838 |
+
"table_body": "<table><tr><td>Metric</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td></tr><tr><td>F1-T</td><td>73.60</td><td>80.80</td><td>82.61</td><td>83.76</td><td>84.25</td></tr><tr><td>F1-2T</td><td>85.80</td><td>90.72</td><td>91.78</td><td>92.73</td><td>93.14</td></tr></table>",
|
| 839 |
+
"bbox": [
|
| 840 |
+
174,
|
| 841 |
+
607,
|
| 842 |
+
498,
|
| 843 |
+
650
|
| 844 |
+
],
|
| 845 |
+
"page_idx": 7
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "table",
|
| 849 |
+
"img_path": "images/18712581ec4f936d9dd3a2a9bcb09f2842f2e142dd093dd71195623fe001abe0.jpg",
|
| 850 |
+
"table_caption": [
|
| 851 |
+
"Table 5: Accuracy w.r.t the number of views during testing. The same model trained with 3 views was used in all of the cases. "
|
| 852 |
+
],
|
| 853 |
+
"table_footnote": [],
|
| 854 |
+
"table_body": "<table><tr><td>Metric</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td></tr><tr><td>F1-T</td><td>72.46</td><td>80.80</td><td>80.98</td><td>80.94</td><td>80.85</td></tr><tr><td>F1-2T</td><td>84.49</td><td>90.72</td><td>91.03</td><td>91.16</td><td>91.20</td></tr></table>",
|
| 855 |
+
"bbox": [
|
| 856 |
+
508,
|
| 857 |
+
607,
|
| 858 |
+
833,
|
| 859 |
+
650
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 7
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "5 CONCLUSION ",
|
| 866 |
+
"text_level": 1,
|
| 867 |
+
"bbox": [
|
| 868 |
+
174,
|
| 869 |
+
709,
|
| 870 |
+
320,
|
| 871 |
+
726
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 7
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "We propose a neural network based solution to predict 3D triangle mesh models of objects from images taken from multiple views. First, we propose a multi-view voxel grid prediction module which probabilistically merges voxel grids predicted from individual input views. We then cubify the merged voxel grid to triangle mesh and apply graph convolutional networks for further refining the mesh. The features for the mesh vertices are extracted from contrastive depth input consisting of rendered depths at each refinement stage along with the predicted depths. The proposed mesh reconstruction method outperforms existing methods with a large margin and is capable of reconstructing objects with more complex topologies. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
174,
|
| 880 |
+
739,
|
| 881 |
+
826,
|
| 882 |
+
852
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 7
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "REFERENCES ",
|
| 889 |
+
"text_level": 1,
|
| 890 |
+
"bbox": [
|
| 891 |
+
174,
|
| 892 |
+
872,
|
| 893 |
+
285,
|
| 894 |
+
887
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 7
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "text",
|
| 900 |
+
"text": "Sameer Agarwal, Yasutaka Furukawa, Noah Snavely, Ian Simon, Brian Curless, Steven M Seitz, and Richard Szeliski. Building rome in a day. Communications of the ACM, 54(10):105–112, 2011. ",
|
| 901 |
+
"bbox": [
|
| 902 |
+
178,
|
| 903 |
+
895,
|
| 904 |
+
825,
|
| 905 |
+
924
|
| 906 |
+
],
|
| 907 |
+
"page_idx": 7
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"type": "text",
|
| 911 |
+
"text": "Cesar Cadena, Luca Carlone, Henry Carrillo, Yasir Latif, Davide Scaramuzza, José Neira, Ian Reid, and John J Leonard. Past, present, and future of simultaneous localization and mapping: Toward the robust-perception age. IEEE Transactions on robotics, 32(6):1309–1332, 2016. ",
|
| 912 |
+
"bbox": [
|
| 913 |
+
176,
|
| 914 |
+
103,
|
| 915 |
+
823,
|
| 916 |
+
146
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 8
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "text",
|
| 922 |
+
"text": "Neill DF Campbell, George Vogiatzis, Carlos Hernández, and Roberto Cipolla. Using multiple hypotheses to improve depth-maps for multi-view stereo. In European Conference on Computer Vision, pp. 766–779. Springer, 2008. ",
|
| 923 |
+
"bbox": [
|
| 924 |
+
176,
|
| 925 |
+
155,
|
| 926 |
+
823,
|
| 927 |
+
196
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 8
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015. ",
|
| 934 |
+
"bbox": [
|
| 935 |
+
173,
|
| 936 |
+
205,
|
| 937 |
+
823,
|
| 938 |
+
250
|
| 939 |
+
],
|
| 940 |
+
"page_idx": 8
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"type": "text",
|
| 944 |
+
"text": "Rui Chen, Songfang Han, Jing Xu, and Hao Su. Point-based multi-view stereo network. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1538–1547, 2019. ",
|
| 945 |
+
"bbox": [
|
| 946 |
+
174,
|
| 947 |
+
257,
|
| 948 |
+
821,
|
| 949 |
+
286
|
| 950 |
+
],
|
| 951 |
+
"page_idx": 8
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"type": "text",
|
| 955 |
+
"text": "Christopher B Choy, Danfei Xu, JunYoung Gwak, Kevin Chen, and Silvio Savarese. 3d-r2n2: A unified approach for single and multi-view 3d object reconstruction. In European conference on computer vision, pp. 628–644. Springer, 2016. ",
|
| 956 |
+
"bbox": [
|
| 957 |
+
174,
|
| 958 |
+
295,
|
| 959 |
+
823,
|
| 960 |
+
338
|
| 961 |
+
],
|
| 962 |
+
"page_idx": 8
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"type": "text",
|
| 966 |
+
"text": "Hainan Cui, Xiang Gao, Shuhan Shen, and Zhanyi Hu. Hsfm: Hybrid structure-from-motion. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1212–1221, 2017. ",
|
| 967 |
+
"bbox": [
|
| 968 |
+
173,
|
| 969 |
+
345,
|
| 970 |
+
826,
|
| 971 |
+
388
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 8
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "Zhaopeng Cui and Ping Tan. Global structure-from-motion by similarity averaging. In Proceedings of the IEEE International Conference on Computer Vision, pp. 864–872, 2015. ",
|
| 978 |
+
"bbox": [
|
| 979 |
+
171,
|
| 980 |
+
398,
|
| 981 |
+
823,
|
| 982 |
+
428
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 8
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"text": "Jean-Denis Durou, Maurizio Falcone, and Manuela Sagona. Numerical methods for shape-fromshading: A new survey with benchmarks. Computer Vision and Image Understanding, 109(1): 22–43, 2008. ",
|
| 989 |
+
"bbox": [
|
| 990 |
+
173,
|
| 991 |
+
435,
|
| 992 |
+
825,
|
| 993 |
+
478
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 8
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "Jakob Engel, Thomas Schöps, and Daniel Cremers. Lsd-slam: Large-scale direct monocular slam. In European conference on computer vision, pp. 834–849. Springer, 2014. ",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
173,
|
| 1002 |
+
487,
|
| 1003 |
+
823,
|
| 1004 |
+
517
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 8
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "Haoqiang Fan, Hao Su, and Leonidas J Guibas. A point set generation network for 3d object reconstruction from a single image. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 605–613, 2017. ",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
174,
|
| 1013 |
+
525,
|
| 1014 |
+
823,
|
| 1015 |
+
568
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 8
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "Paolo Favaro and Stefano Soatto. A geometric approach to shape from defocus. IEEE Transactions on Pattern Analysis and Machine Intelligence, 27(3):406–417, 2005. ",
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
169,
|
| 1024 |
+
577,
|
| 1025 |
+
825,
|
| 1026 |
+
606
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 8
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "text",
|
| 1032 |
+
"text": "Yasutaka Furukawa and Jean Ponce. Accurate, dense, and robust multiview stereopsis. IEEE transactions on pattern analysis and machine intelligence, 32(8):1362–1376, 2009. ",
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
171,
|
| 1035 |
+
613,
|
| 1036 |
+
825,
|
| 1037 |
+
643
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 8
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "Silvano Galliani, Katrin Lasinger, and Konrad Schindler. Massively parallel multiview stereopsis by surface normal diffusion. In Proceedings of the IEEE International Conference on Computer Vision, pp. 873–881, 2015. ",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
174,
|
| 1046 |
+
651,
|
| 1047 |
+
823,
|
| 1048 |
+
694
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 8
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "text",
|
| 1054 |
+
"text": "Georgia Gkioxari, Jitendra Malik, and Justin Johnson. Mesh r-cnn. In Proceedings of the IEEE International Conference on Computer Vision, pp. 9785–9795, 2019. ",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
169,
|
| 1057 |
+
703,
|
| 1058 |
+
825,
|
| 1059 |
+
733
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 8
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "text",
|
| 1065 |
+
"text": "Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. A papier-mâché approach to learning 3d surface generation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 216–224, 2018. ",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
174,
|
| 1068 |
+
739,
|
| 1069 |
+
825,
|
| 1070 |
+
784
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 8
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "Xiaodong Gu, Zhiwen Fan, Siyu Zhu, Zuozhuo Dai, Feitong Tan, and Ping Tan. Cascade cost volume for high-resolution multi-view stereo and stereo matching. arXiv preprint arXiv:1912.06378, 2019. ",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
171,
|
| 1079 |
+
791,
|
| 1080 |
+
825,
|
| 1081 |
+
821
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 8
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "JunYoung Gwak, Christopher B Choy, Manmohan Chandraker, Animesh Garg, and Silvio Savarese. Weakly supervised 3d reconstruction with adversarial constraint. In 2017 International Conference on 3D Vision (3DV), pp. 263–272. IEEE, 2017. ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
174,
|
| 1090 |
+
829,
|
| 1091 |
+
823,
|
| 1092 |
+
872
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 8
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "Zhizhong Han, Guanhui Qiao, Yu-Shen Liu, and Matthias Zwicker. Seqxy2seqz: Structure learning for 3d shapes by sequentially predicting 1d occupancy segments from 2d coordinates. arXiv preprint arXiv:2003.05559, 2020. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
174,
|
| 1101 |
+
882,
|
| 1102 |
+
825,
|
| 1103 |
+
922
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 8
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "Wilfried Hartmann, Silvano Galliani, Michal Havlena, Luc Van Gool, and Konrad Schindler. Learned multi-patch similarity. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1586–1594, 2017. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
174,
|
| 1112 |
+
103,
|
| 1113 |
+
823,
|
| 1114 |
+
146
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 9
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "Po-Han Huang, Kevin Matzen, Johannes Kopf, Narendra Ahuja, and Jia-Bin Huang. Deepmvs: Learning multi-view stereopsis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2821–2830, 2018. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
178,
|
| 1123 |
+
154,
|
| 1124 |
+
823,
|
| 1125 |
+
198
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 9
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "Qixing Huang, Hai Wang, and Vladlen Koltun. Single-view reconstruction via joint analysis of image and shape collections. ACM Transactions on Graphics (TOG), 34(4):1–10, 2015. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
171,
|
| 1134 |
+
205,
|
| 1135 |
+
823,
|
| 1136 |
+
236
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 9
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "Xin Jia, Shourui Yang, Yuxin Peng, Junchao Zhang, and Shengyong Chen. Dv-net: Dual-view network for 3d reconstruction by fusing multiple sets of gated control point clouds. Pattern Recognition Letters, 131:376–382, 2020. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
174,
|
| 1145 |
+
243,
|
| 1146 |
+
823,
|
| 1147 |
+
286
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 9
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "Jiongchao Jin, Akshay Gadi Patil, Zhang Xiong, and Hao Zhang. Dr-kfs: A differentiable visual similarity metric for 3d shape reconstruction, 2019. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
171,
|
| 1156 |
+
295,
|
| 1157 |
+
823,
|
| 1158 |
+
324
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 9
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Abhishek Kar, Shubham Tulsiani, Joao Carreira, and Jitendra Malik. Category-specific object reconstruction from a single image. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1966–1974, 2015. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
173,
|
| 1167 |
+
333,
|
| 1168 |
+
825,
|
| 1169 |
+
376
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 9
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "Abhishek Kar, Christian Häne, and Jitendra Malik. Learning a multi-view stereo machine. In Advances in neural information processing systems, pp. 365–376, 2017. ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
173,
|
| 1178 |
+
383,
|
| 1179 |
+
823,
|
| 1180 |
+
414
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 9
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "Hiroharu Kato, Yoshitaka Ushiku, and Tatsuya Harada. Neural 3d mesh renderer. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
176,
|
| 1189 |
+
421,
|
| 1190 |
+
823,
|
| 1191 |
+
452
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 9
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "Kurt Konolige. Improved occupancy grids for map building. Autonomous Robots, 4(4):351–367, 1997. ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
173,
|
| 1200 |
+
459,
|
| 1201 |
+
823,
|
| 1202 |
+
488
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 9
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "Andrey Kurenkov, Jingwei Ji, Animesh Garg, Viraj Mehta, JunYoung Gwak, Christopher Choy, and Silvio Savarese. Deformnet: Free-form deformation network for 3d shape reconstruction from a single image. In 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), pp. 858–866. IEEE, 2018. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
173,
|
| 1211 |
+
497,
|
| 1212 |
+
826,
|
| 1213 |
+
554
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 9
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "Kiriakos N Kutulakos and Steven M Seitz. A theory of shape by space carving. International journal of computer vision, 38(3):199–218, 2000. ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
173,
|
| 1222 |
+
561,
|
| 1223 |
+
825,
|
| 1224 |
+
592
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 9
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "Iro Laina, Christian Rupprecht, Vasileios Belagiannis, Federico Tombari, and Nassir Navab. Deeper depth prediction with fully convolutional residual networks. In 2016 Fourth international conference on 3D vision (3DV), pp. 239–248. IEEE, 2016. ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
173,
|
| 1233 |
+
599,
|
| 1234 |
+
825,
|
| 1235 |
+
643
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 9
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "Sophie Lambert-Lacroix and Laurent Zwald. The adaptive berhu penalty in robust regression. Journal of Nonparametric Statistics, 28(3):487–514, 2016. ",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
171,
|
| 1244 |
+
651,
|
| 1245 |
+
825,
|
| 1246 |
+
681
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 9
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "Maxime Lhuillier and Long Quan. A quasi-dense approach to surface reconstruction from uncalibrated images. IEEE transactions on pattern analysis and machine intelligence, 27(3):418–433, 2005. ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
171,
|
| 1255 |
+
689,
|
| 1256 |
+
825,
|
| 1257 |
+
719
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 9
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "Chen-Hsuan Lin, Oliver Wang, Bryan C Russell, Eli Shechtman, Vladimir G Kim, Matthew Fisher, and Simon Lucey. Photometric mesh optimization for video-aligned 3d object reconstruction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 969–978, 2019. ",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
173,
|
| 1266 |
+
727,
|
| 1267 |
+
826,
|
| 1268 |
+
784
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 9
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "Shaohui Liu, Yinda Zhang, Songyou Peng, Boxin Shi, Marc Pollefeys, and Zhaopeng Cui. Dist: Rendering deep implicit signed distance function with differentiable sphere tracing. arXiv preprint arXiv:1911.13225, 2019a. ",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
173,
|
| 1277 |
+
791,
|
| 1278 |
+
825,
|
| 1279 |
+
834
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 9
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "Shichen Liu, Shunsuke Saito, Weikai Chen, and Hao Li. Learning to infer implicit surfaces without 3d supervision. In Advances in Neural Information Processing Systems, pp. 8293–8304, 2019b. ",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
169,
|
| 1288 |
+
843,
|
| 1289 |
+
823,
|
| 1290 |
+
872
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 9
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "text",
|
| 1296 |
+
"text": "Keyang Luo, Tao Guan, Lili Ju, Haipeng Huang, and Yawei Luo. P-mvsnet: Learning patch-wise matching confidence aggregation for multi-view stereo. In Proceedings of the IEEE International Conference on Computer Vision, pp. 10452–10461, 2019. ",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
176,
|
| 1299 |
+
881,
|
| 1300 |
+
825,
|
| 1301 |
+
924
|
| 1302 |
+
],
|
| 1303 |
+
"page_idx": 9
|
| 1304 |
+
},
|
| 1305 |
+
{
|
| 1306 |
+
"type": "text",
|
| 1307 |
+
"text": "Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy networks: Learning 3d reconstruction in function space. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4460–4470, 2019. ",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
179,
|
| 1310 |
+
103,
|
| 1311 |
+
821,
|
| 1312 |
+
146
|
| 1313 |
+
],
|
| 1314 |
+
"page_idx": 10
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"type": "text",
|
| 1318 |
+
"text": "Raul Mur-Artal, Jose Maria Martinez Montiel, and Juan D Tardos. Orb-slam: a versatile and accurate monocular slam system. IEEE transactions on robotics, 31(5):1147–1163, 2015. ",
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
173,
|
| 1321 |
+
155,
|
| 1322 |
+
821,
|
| 1323 |
+
184
|
| 1324 |
+
],
|
| 1325 |
+
"page_idx": 10
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"type": "text",
|
| 1329 |
+
"text": "Zak Murez, Tarrence van As, James Bartolozzi, Ayan Sinha, Vijay Badrinarayanan, and Andrew Rabinovich. Atlas: End-to-end 3d scene reconstruction from posed images. arXiv preprint arXiv:2003.10432, 2020. ",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
173,
|
| 1332 |
+
194,
|
| 1333 |
+
821,
|
| 1334 |
+
237
|
| 1335 |
+
],
|
| 1336 |
+
"page_idx": 10
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"type": "text",
|
| 1340 |
+
"text": "Junyi Pan, Xiaoguang Han, Weikai Chen, Jiapeng Tang, and Kui Jia. Deep mesh reconstruction from single rgb images via topology modification networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 9964–9973, 2019. ",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
171,
|
| 1343 |
+
246,
|
| 1344 |
+
826,
|
| 1345 |
+
289
|
| 1346 |
+
],
|
| 1347 |
+
"page_idx": 10
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"type": "text",
|
| 1351 |
+
"text": "Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. Deepsdf: Learning continuous signed distance functions for shape representation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 165–174, 2019. ",
|
| 1352 |
+
"bbox": [
|
| 1353 |
+
173,
|
| 1354 |
+
297,
|
| 1355 |
+
823,
|
| 1356 |
+
342
|
| 1357 |
+
],
|
| 1358 |
+
"page_idx": 10
|
| 1359 |
+
},
|
| 1360 |
+
{
|
| 1361 |
+
"type": "text",
|
| 1362 |
+
"text": "Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20(1):61–80, 2008. ",
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
174,
|
| 1365 |
+
351,
|
| 1366 |
+
823,
|
| 1367 |
+
380
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 10
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "text",
|
| 1373 |
+
"text": "Johannes L Schonberger and Jan-Michael Frahm. Structure-from-motion revisited. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4104–4113, 2016. ",
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
169,
|
| 1376 |
+
388,
|
| 1377 |
+
825,
|
| 1378 |
+
419
|
| 1379 |
+
],
|
| 1380 |
+
"page_idx": 10
|
| 1381 |
+
},
|
| 1382 |
+
{
|
| 1383 |
+
"type": "text",
|
| 1384 |
+
"text": "Johannes L Schönberger, Enliang Zheng, Jan-Michael Frahm, and Marc Pollefeys. Pixelwise view selection for unstructured multi-view stereo. In European Conference on Computer Vision, pp. 501–518. Springer, 2016. ",
|
| 1385 |
+
"bbox": [
|
| 1386 |
+
173,
|
| 1387 |
+
428,
|
| 1388 |
+
825,
|
| 1389 |
+
470
|
| 1390 |
+
],
|
| 1391 |
+
"page_idx": 10
|
| 1392 |
+
},
|
| 1393 |
+
{
|
| 1394 |
+
"type": "text",
|
| 1395 |
+
"text": "Steven M Seitz and Charles R Dyer. Photorealistic scene reconstruction by voxel coloring. International Journal of Computer Vision, 35(2):151–173, 1999. ",
|
| 1396 |
+
"bbox": [
|
| 1397 |
+
169,
|
| 1398 |
+
479,
|
| 1399 |
+
825,
|
| 1400 |
+
508
|
| 1401 |
+
],
|
| 1402 |
+
"page_idx": 10
|
| 1403 |
+
},
|
| 1404 |
+
{
|
| 1405 |
+
"type": "text",
|
| 1406 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
|
| 1407 |
+
"bbox": [
|
| 1408 |
+
171,
|
| 1409 |
+
517,
|
| 1410 |
+
825,
|
| 1411 |
+
547
|
| 1412 |
+
],
|
| 1413 |
+
"page_idx": 10
|
| 1414 |
+
},
|
| 1415 |
+
{
|
| 1416 |
+
"type": "text",
|
| 1417 |
+
"text": "Hao Su, Qixing Huang, Niloy J Mitra, Yangyan Li, and Leonidas Guibas. Estimating image depth using shape collections. ACM Transactions on Graphics (TOG), 33(4):1–11, 2014. ",
|
| 1418 |
+
"bbox": [
|
| 1419 |
+
173,
|
| 1420 |
+
556,
|
| 1421 |
+
823,
|
| 1422 |
+
585
|
| 1423 |
+
],
|
| 1424 |
+
"page_idx": 10
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"type": "text",
|
| 1428 |
+
"text": "Jiapeng Tang, Xiaoguang Han, Junyi Pan, Kui Jia, and Xin Tong. A skeleton-bridged deep learning approach for generating meshes of complex topologies from single rgb images. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4541–4550, 2019. ",
|
| 1429 |
+
"bbox": [
|
| 1430 |
+
174,
|
| 1431 |
+
594,
|
| 1432 |
+
825,
|
| 1433 |
+
638
|
| 1434 |
+
],
|
| 1435 |
+
"page_idx": 10
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"type": "text",
|
| 1439 |
+
"text": "Shubham Tulsiani, Tinghui Zhou, Alexei A Efros, and Jitendra Malik. Multi-view supervision for single-view reconstruction via differentiable ray consistency. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2626–2634, 2017. ",
|
| 1440 |
+
"bbox": [
|
| 1441 |
+
174,
|
| 1442 |
+
647,
|
| 1443 |
+
825,
|
| 1444 |
+
690
|
| 1445 |
+
],
|
| 1446 |
+
"page_idx": 10
|
| 1447 |
+
},
|
| 1448 |
+
{
|
| 1449 |
+
"type": "text",
|
| 1450 |
+
"text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pp. 5998–6008, 2017. ",
|
| 1451 |
+
"bbox": [
|
| 1452 |
+
173,
|
| 1453 |
+
699,
|
| 1454 |
+
826,
|
| 1455 |
+
742
|
| 1456 |
+
],
|
| 1457 |
+
"page_idx": 10
|
| 1458 |
+
},
|
| 1459 |
+
{
|
| 1460 |
+
"type": "text",
|
| 1461 |
+
"text": "Nanyang Wang, Yinda Zhang, Zhuwen Li, Yanwei Fu, Wei Liu, and Yu-Gang Jiang. Pixel2mesh: Generating 3d mesh models from single rgb images. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 52–67, 2018. ",
|
| 1462 |
+
"bbox": [
|
| 1463 |
+
174,
|
| 1464 |
+
751,
|
| 1465 |
+
823,
|
| 1466 |
+
795
|
| 1467 |
+
],
|
| 1468 |
+
"page_idx": 10
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"type": "text",
|
| 1472 |
+
"text": "Chao Wen, Yinda Zhang, Zhuwen Li, and Yanwei Fu. Pixel2mesh++: Multi-view 3d mesh generation via deformation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1042–1051, 2019. ",
|
| 1473 |
+
"bbox": [
|
| 1474 |
+
173,
|
| 1475 |
+
804,
|
| 1476 |
+
825,
|
| 1477 |
+
847
|
| 1478 |
+
],
|
| 1479 |
+
"page_idx": 10
|
| 1480 |
+
},
|
| 1481 |
+
{
|
| 1482 |
+
"type": "text",
|
| 1483 |
+
"text": "Thomas Whelan, Stefan Leutenegger, R Salas-Moreno, Ben Glocker, and Andrew Davison. Elasticfusion: Dense slam without a pose graph. Robotics: Science and Systems, 2015. ",
|
| 1484 |
+
"bbox": [
|
| 1485 |
+
173,
|
| 1486 |
+
856,
|
| 1487 |
+
823,
|
| 1488 |
+
886
|
| 1489 |
+
],
|
| 1490 |
+
"page_idx": 10
|
| 1491 |
+
},
|
| 1492 |
+
{
|
| 1493 |
+
"type": "text",
|
| 1494 |
+
"text": "Udaranga Wickramasinghe, Edoardo Remelli, Graham Knott, and Pascal Fua. Voxel2mesh: 3d mesh model generation from volumetric data, 2019. ",
|
| 1495 |
+
"bbox": [
|
| 1496 |
+
176,
|
| 1497 |
+
895,
|
| 1498 |
+
821,
|
| 1499 |
+
924
|
| 1500 |
+
],
|
| 1501 |
+
"page_idx": 10
|
| 1502 |
+
},
|
| 1503 |
+
{
|
| 1504 |
+
"type": "text",
|
| 1505 |
+
"text": "Xinchen Yan, Jimei Yang, Ersin Yumer, Yijie Guo, and Honglak Lee. Perspective transformer nets: Learning single-view 3d object reconstruction without 3d supervision. In Advances in neural information processing systems, pp. 1696–1704, 2016. ",
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
178,
|
| 1508 |
+
103,
|
| 1509 |
+
823,
|
| 1510 |
+
146
|
| 1511 |
+
],
|
| 1512 |
+
"page_idx": 11
|
| 1513 |
+
},
|
| 1514 |
+
{
|
| 1515 |
+
"type": "text",
|
| 1516 |
+
"text": "Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. Foldingnet: Point cloud auto-encoder via deep grid deformation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 206–215, 2018. ",
|
| 1517 |
+
"bbox": [
|
| 1518 |
+
178,
|
| 1519 |
+
156,
|
| 1520 |
+
823,
|
| 1521 |
+
199
|
| 1522 |
+
],
|
| 1523 |
+
"page_idx": 11
|
| 1524 |
+
},
|
| 1525 |
+
{
|
| 1526 |
+
"type": "text",
|
| 1527 |
+
"text": "Yao Yao, Zixin Luo, Shiwei Li, Tian Fang, and Long Quan. Mvsnet: Depth inference for unstructured multi-view stereo. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 767–783, 2018. ",
|
| 1528 |
+
"bbox": [
|
| 1529 |
+
173,
|
| 1530 |
+
209,
|
| 1531 |
+
826,
|
| 1532 |
+
251
|
| 1533 |
+
],
|
| 1534 |
+
"page_idx": 11
|
| 1535 |
+
},
|
| 1536 |
+
{
|
| 1537 |
+
"type": "text",
|
| 1538 |
+
"text": "Yao Yao, Zixin Luo, Shiwei Li, Tianwei Shen, Tian Fang, and Long Quan. Recurrent mvsnet for high-resolution multi-view stereo depth inference. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5525–5534, 2019. ",
|
| 1539 |
+
"bbox": [
|
| 1540 |
+
173,
|
| 1541 |
+
262,
|
| 1542 |
+
826,
|
| 1543 |
+
304
|
| 1544 |
+
],
|
| 1545 |
+
"page_idx": 11
|
| 1546 |
+
},
|
| 1547 |
+
{
|
| 1548 |
+
"type": "text",
|
| 1549 |
+
"text": "Yuan Yao, Nico Schertler, Enrique Rosales, Helge Rhodin, Leonid Sigal, and Alla Sheffer. Front2back: Single view 3d shape reconstruction via front to back prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 531–540, 2020. ",
|
| 1550 |
+
"bbox": [
|
| 1551 |
+
178,
|
| 1552 |
+
314,
|
| 1553 |
+
823,
|
| 1554 |
+
358
|
| 1555 |
+
],
|
| 1556 |
+
"page_idx": 11
|
| 1557 |
+
},
|
| 1558 |
+
{
|
| 1559 |
+
"type": "text",
|
| 1560 |
+
"text": "Ruo Zhang, Ping-Sing Tsai, James Edwin Cryer, and Mubarak Shah. Shape-from-shading: a survey. IEEE transactions on pattern analysis and machine intelligence, 21(8):690–706, 1999. ",
|
| 1561 |
+
"bbox": [
|
| 1562 |
+
173,
|
| 1563 |
+
367,
|
| 1564 |
+
825,
|
| 1565 |
+
397
|
| 1566 |
+
],
|
| 1567 |
+
"page_idx": 11
|
| 1568 |
+
},
|
| 1569 |
+
{
|
| 1570 |
+
"type": "text",
|
| 1571 |
+
"text": "A APPENDIX ",
|
| 1572 |
+
"bbox": [
|
| 1573 |
+
176,
|
| 1574 |
+
424,
|
| 1575 |
+
299,
|
| 1576 |
+
440
|
| 1577 |
+
],
|
| 1578 |
+
"page_idx": 11
|
| 1579 |
+
},
|
| 1580 |
+
{
|
| 1581 |
+
"type": "text",
|
| 1582 |
+
"text": "NETWORK ARCHITECTURE ",
|
| 1583 |
+
"text_level": 1,
|
| 1584 |
+
"bbox": [
|
| 1585 |
+
174,
|
| 1586 |
+
459,
|
| 1587 |
+
400,
|
| 1588 |
+
474
|
| 1589 |
+
],
|
| 1590 |
+
"page_idx": 11
|
| 1591 |
+
},
|
| 1592 |
+
{
|
| 1593 |
+
"type": "text",
|
| 1594 |
+
"text": "MVSNET ARCHITECTURE ",
|
| 1595 |
+
"bbox": [
|
| 1596 |
+
174,
|
| 1597 |
+
491,
|
| 1598 |
+
357,
|
| 1599 |
+
505
|
| 1600 |
+
],
|
| 1601 |
+
"page_idx": 11
|
| 1602 |
+
},
|
| 1603 |
+
{
|
| 1604 |
+
"type": "image",
|
| 1605 |
+
"img_path": "images/e48055ebcff419b4d4a3731091747888bd234fd8debc44af6fd1a3a2716c1c36.jpg",
|
| 1606 |
+
"image_caption": [
|
| 1607 |
+
"Figure 4: Depth prediction network (MVSNet) architecture "
|
| 1608 |
+
],
|
| 1609 |
+
"image_footnote": [],
|
| 1610 |
+
"bbox": [
|
| 1611 |
+
245,
|
| 1612 |
+
525,
|
| 1613 |
+
736,
|
| 1614 |
+
796
|
| 1615 |
+
],
|
| 1616 |
+
"page_idx": 11
|
| 1617 |
+
},
|
| 1618 |
+
{
|
| 1619 |
+
"type": "text",
|
| 1620 |
+
"text": "Our depth prediction module is based on MVSNet Yao et al. (2018) which constructs a regularized 3D cost volumes to estimate the depth map of the reference view. Here, we extent MVSNet to predict the depth maps of all views instead of only the reference view. This is achieved by transforming the feature volumes to each view’s coordinate frame using homography warping and applying identical cost volume regularization and depth regression on each view. This allows the reuse of pre-regularization feature volumes for efficient multi-view depth prediction invariant to the order of input images. Figure 4 shows the architecture of the our depth estimation module. ",
|
| 1621 |
+
"bbox": [
|
| 1622 |
+
173,
|
| 1623 |
+
825,
|
| 1624 |
+
825,
|
| 1625 |
+
924
|
| 1626 |
+
],
|
| 1627 |
+
"page_idx": 11
|
| 1628 |
+
},
|
| 1629 |
+
{
|
| 1630 |
+
"type": "text",
|
| 1631 |
+
"text": "PROBABILISTIC OCCUPANCY GRID MERGING ",
|
| 1632 |
+
"text_level": 1,
|
| 1633 |
+
"bbox": [
|
| 1634 |
+
174,
|
| 1635 |
+
103,
|
| 1636 |
+
491,
|
| 1637 |
+
117
|
| 1638 |
+
],
|
| 1639 |
+
"page_idx": 12
|
| 1640 |
+
},
|
| 1641 |
+
{
|
| 1642 |
+
"type": "text",
|
| 1643 |
+
"text": "We use single-view voxel prediction network from Gkioxari et al. (2019) to predict predicts voxel grids for each of the input images in their respective local coordinate frames. The occupancy grids are transformed to global frame (which is set to the coordinate frame of the first image) by finding the equivalent global grid values in the local grids after applying bilinear interpolation on the closest matches. The voxel grids in global coordinates are then probabilistically merged according to Sub-section 3.1 of the main submission. ",
|
| 1644 |
+
"bbox": [
|
| 1645 |
+
174,
|
| 1646 |
+
131,
|
| 1647 |
+
825,
|
| 1648 |
+
214
|
| 1649 |
+
],
|
| 1650 |
+
"page_idx": 12
|
| 1651 |
+
},
|
| 1652 |
+
{
|
| 1653 |
+
"type": "text",
|
| 1654 |
+
"text": "EXPERIMENTS ",
|
| 1655 |
+
"text_level": 1,
|
| 1656 |
+
"bbox": [
|
| 1657 |
+
174,
|
| 1658 |
+
239,
|
| 1659 |
+
295,
|
| 1660 |
+
253
|
| 1661 |
+
],
|
| 1662 |
+
"page_idx": 12
|
| 1663 |
+
},
|
| 1664 |
+
{
|
| 1665 |
+
"type": "text",
|
| 1666 |
+
"text": "We quantitatively compare our method against previous works for multi-view shape generation in Table 6 and show effectiveness of our proposed shape generation methods in improving shape quality. Our method outperforms the state-of-the-art method Pixel2Mesh $^ { + + }$ Wen et al. (2019) with decrease in chamfer distance to ground truth by $34 \\%$ , which shows the effectiveness of our proposed method. Note that in Table 6 same model is trained for all the categories but accuracy on individual categories as well as average over all the categories are evaluated. ",
|
| 1667 |
+
"bbox": [
|
| 1668 |
+
173,
|
| 1669 |
+
272,
|
| 1670 |
+
825,
|
| 1671 |
+
356
|
| 1672 |
+
],
|
| 1673 |
+
"page_idx": 12
|
| 1674 |
+
},
|
| 1675 |
+
{
|
| 1676 |
+
"type": "table",
|
| 1677 |
+
"img_path": "images/05ed8eb9c618464f02b7224b00456f210f47d809d18f15678e836db7df9db06b.jpg",
|
| 1678 |
+
"table_caption": [],
|
| 1679 |
+
"table_footnote": [],
|
| 1680 |
+
"table_body": "<table><tr><td rowspan=\"2\">Category</td><td colspan=\"4\">Chamfer Distance (CD) ↓</td></tr><tr><td>3D-R2N2</td><td>LSM</td><td>MVP2M</td><td>P2M++ Ours</td></tr><tr><td>Couch</td><td>0.806</td><td>0.730</td><td>0.534</td><td>0.439 0.220</td></tr><tr><td>Cabinet</td><td>0.613</td><td>0.634</td><td>0.488 0.337</td><td>0.230</td></tr><tr><td>Bench</td><td>1.362</td><td>0.572</td><td>0.591 0.549</td><td>0.159</td></tr><tr><td>Chair</td><td>1.534</td><td>0.495</td><td>0.583 0.461</td><td>0.201</td></tr><tr><td>Monitor</td><td>1.465</td><td>0.592</td><td>0.658</td><td>0.566 0.217</td></tr><tr><td>Firearm</td><td>0.432</td><td>0.385</td><td>0.305</td><td>0.305 0.123</td></tr><tr><td>Speaker</td><td>1.443</td><td>0.767</td><td>0.745</td><td>0.635 0.402</td></tr><tr><td>Lamp</td><td>6.780</td><td>1.768</td><td>0.980</td><td>1.135 0.755</td></tr><tr><td>Cellphone</td><td>1.161</td><td>0.362</td><td>0.445</td><td>0.325 0.138</td></tr><tr><td>Plane</td><td>0.854</td><td>0.496</td><td>0.403</td><td>0.422 0.084</td></tr><tr><td>Table</td><td>1.243</td><td>0.994</td><td>0.511</td><td>0.388 0.181</td></tr><tr><td>Car</td><td>0.358</td><td>0.326</td><td>0.321</td><td>0.249 0.165</td></tr><tr><td>Watercraft</td><td>0.869</td><td>0.509</td><td>0.463</td><td>0.508 0.175</td></tr><tr><td>Mean</td><td>1.455</td><td>0.664</td><td>0.541</td><td>0.486 0.211</td></tr></table>",
|
| 1681 |
+
"bbox": [
|
| 1682 |
+
281,
|
| 1683 |
+
371,
|
| 1684 |
+
715,
|
| 1685 |
+
598
|
| 1686 |
+
],
|
| 1687 |
+
"page_idx": 12
|
| 1688 |
+
},
|
| 1689 |
+
{
|
| 1690 |
+
"type": "text",
|
| 1691 |
+
"text": "Table 6: Qualitative comparison against state-of-the-art multi-view shape generation methods. Following Wen et al. (2019), we report Chamfer Distance in $m ^ { 2 } \\times 1 0 0 0$ from ground truth for different methods. Note that same model is trained for all the categories but accuracy on individual categories as well as average over all the categories are evaluated. ",
|
| 1692 |
+
"bbox": [
|
| 1693 |
+
173,
|
| 1694 |
+
614,
|
| 1695 |
+
825,
|
| 1696 |
+
670
|
| 1697 |
+
],
|
| 1698 |
+
"page_idx": 12
|
| 1699 |
+
},
|
| 1700 |
+
{
|
| 1701 |
+
"type": "text",
|
| 1702 |
+
"text": "ABLATION STUDIES ",
|
| 1703 |
+
"text_level": 1,
|
| 1704 |
+
"bbox": [
|
| 1705 |
+
176,
|
| 1706 |
+
704,
|
| 1707 |
+
313,
|
| 1708 |
+
717
|
| 1709 |
+
],
|
| 1710 |
+
"page_idx": 12
|
| 1711 |
+
},
|
| 1712 |
+
{
|
| 1713 |
+
"type": "text",
|
| 1714 |
+
"text": "Coarse Shape Generation We conduct comparisons on voxel grid predicted from our proposed probabilistically merged voxel grids against single view method Gkioxari et al. (2019). As is shown in Table 7, the accuracy of the initial shape generated from probabilistically merged voxel grid is higher than that from individual views. ",
|
| 1715 |
+
"bbox": [
|
| 1716 |
+
174,
|
| 1717 |
+
723,
|
| 1718 |
+
825,
|
| 1719 |
+
779
|
| 1720 |
+
],
|
| 1721 |
+
"page_idx": 12
|
| 1722 |
+
},
|
| 1723 |
+
{
|
| 1724 |
+
"type": "text",
|
| 1725 |
+
"text": "Accuracy at Different GCN Stages We analyze the accuracy of meshes at different GCN stages in Table 8. The results validate that our method produces the meshes in a coarse-to-fine manner and multiple GCN refinements improve the mesh quality. ",
|
| 1726 |
+
"bbox": [
|
| 1727 |
+
173,
|
| 1728 |
+
790,
|
| 1729 |
+
823,
|
| 1730 |
+
833
|
| 1731 |
+
],
|
| 1732 |
+
"page_idx": 12
|
| 1733 |
+
},
|
| 1734 |
+
{
|
| 1735 |
+
"type": "text",
|
| 1736 |
+
"text": "Resolution of Depth Prediction We conduct experiments using different numbers of depth hypotheses in our depth prediction network (Sub-section A), producing depth values at different resolutions. A higher number of depth hypothesis means finer resolution of the predicted depths. The quantitative results with different hypothesis numbers are summarized in Table 9. We set depth hypothesis as 48 for our final architecture which is equivalent to the resolution of $2 5 \\mathrm { m m }$ . We observe that the mesh accuracy remain relatively unchanged if we predict depths at finer resolutions. ",
|
| 1737 |
+
"bbox": [
|
| 1738 |
+
174,
|
| 1739 |
+
844,
|
| 1740 |
+
825,
|
| 1741 |
+
928
|
| 1742 |
+
],
|
| 1743 |
+
"page_idx": 12
|
| 1744 |
+
},
|
| 1745 |
+
{
|
| 1746 |
+
"type": "table",
|
| 1747 |
+
"img_path": "images/571c4a4e26a7c5f63b6c67294779a3dae4e5fa2363ef876d3aad10b4ebcc22ff.jpg",
|
| 1748 |
+
"table_caption": [],
|
| 1749 |
+
"table_footnote": [],
|
| 1750 |
+
"table_body": "<table><tr><td>Metric</td><td>Cubified</td><td>Stage-1</td><td>Stage-2</td><td>Stage-3</td></tr><tr><td>F1-T</td><td>31.48</td><td>76.78</td><td>79.88</td><td>80.80</td></tr><tr><td>F1-2T</td><td>44.40</td><td>88.32</td><td>90.19</td><td>90.72</td></tr></table>",
|
| 1751 |
+
"bbox": [
|
| 1752 |
+
508,
|
| 1753 |
+
101,
|
| 1754 |
+
833,
|
| 1755 |
+
142
|
| 1756 |
+
],
|
| 1757 |
+
"page_idx": 13
|
| 1758 |
+
},
|
| 1759 |
+
{
|
| 1760 |
+
"type": "table",
|
| 1761 |
+
"img_path": "images/4517204b3b147299904276e071e1e62d4722aae875ce3e70a8c571dc7947cd57.jpg",
|
| 1762 |
+
"table_caption": [
|
| 1763 |
+
"Table 7: Accuracy of predicted voxel grids from single-view prediction compared against the proposed probabilistically merged multi-view voxel grids. The voxel branch was trained separately without the mesh refinement and evaluation was performed on the cubified voxel grids. We use three views for probabilistic grid merging. "
|
| 1764 |
+
],
|
| 1765 |
+
"table_footnote": [],
|
| 1766 |
+
"table_body": "<table><tr><td>Metric</td><td>Single-view</td><td>Multi-view</td></tr><tr><td>F1-T</td><td>25.19</td><td>31.27</td></tr><tr><td>F1-2T</td><td>36.75</td><td>44.46</td></tr></table>",
|
| 1767 |
+
"bbox": [
|
| 1768 |
+
218,
|
| 1769 |
+
101,
|
| 1770 |
+
455,
|
| 1771 |
+
142
|
| 1772 |
+
],
|
| 1773 |
+
"page_idx": 13
|
| 1774 |
+
},
|
| 1775 |
+
{
|
| 1776 |
+
"type": "text",
|
| 1777 |
+
"text": "Table 8: Accuracy of the refined meshes at different GCN stages. 1, 2 and 3 indicate the performance at the corresponding graph convolution blocks while Cubified is for the cubified voxel grids used as input for the first GCN block. All the stages, including the voxel prediction, were trained jointly and hence the accuracy of voxel predictions varies from that in Table 7. ",
|
| 1778 |
+
"bbox": [
|
| 1779 |
+
506,
|
| 1780 |
+
152,
|
| 1781 |
+
834,
|
| 1782 |
+
263
|
| 1783 |
+
],
|
| 1784 |
+
"page_idx": 13
|
| 1785 |
+
},
|
| 1786 |
+
{
|
| 1787 |
+
"type": "table",
|
| 1788 |
+
"img_path": "images/5385f1e59c2d20faee675f4c8da8670a2732c758f3fcc86fe98c1149094ee0ce.jpg",
|
| 1789 |
+
"table_caption": [
|
| 1790 |
+
"Table 9: Accuracy w.r.t the number of depth hypothesis. A higher number of depth hypothesis increases the resolution of predicted depth values at the expense of higher memory requirement. The range of depths for all the models are same and based on the minimum/maximum depth in the ShapeNet Chang et al. (2015) dataset. "
|
| 1791 |
+
],
|
| 1792 |
+
"table_footnote": [],
|
| 1793 |
+
"table_body": "<table><tr><td>Metric</td><td>24</td><td>48</td><td>72</td><td>96</td></tr><tr><td>F1-T</td><td>80.29</td><td>80.80</td><td>80.69</td><td>80.34</td></tr><tr><td>F1-2T</td><td>90.43</td><td>90.72</td><td>90.74</td><td>90.47</td></tr></table>",
|
| 1794 |
+
"bbox": [
|
| 1795 |
+
364,
|
| 1796 |
+
279,
|
| 1797 |
+
633,
|
| 1798 |
+
320
|
| 1799 |
+
],
|
| 1800 |
+
"page_idx": 13
|
| 1801 |
+
},
|
| 1802 |
+
{
|
| 1803 |
+
"type": "text",
|
| 1804 |
+
"text": "Generalization Capability We conduct experiments to evaluate the generalization capability of our system across the semantic categories. We train our model with only 12 out of the 13 categories and test on the category that was left out. Table 10 shows that the accuracy generally does not decrease significantly when compared with the model that was trained on all 13 categories when using $2 \\tau$ threshold for the F-score. ",
|
| 1805 |
+
"bbox": [
|
| 1806 |
+
174,
|
| 1807 |
+
420,
|
| 1808 |
+
825,
|
| 1809 |
+
489
|
| 1810 |
+
],
|
| 1811 |
+
"page_idx": 13
|
| 1812 |
+
},
|
| 1813 |
+
{
|
| 1814 |
+
"type": "table",
|
| 1815 |
+
"img_path": "images/2195f0dbd1adba1cfac4fd04eadf53bb3beebb2391b3ed6faa706086b0a1fa6a.jpg",
|
| 1816 |
+
"table_caption": [
|
| 1817 |
+
"Table 10: Accuracy when a category is excluded during training and evaluation is performed on the category to verify how well training on other categories generalizes to the excluded category. "
|
| 1818 |
+
],
|
| 1819 |
+
"table_footnote": [],
|
| 1820 |
+
"table_body": "<table><tr><td rowspan=\"2\">Category</td><td colspan=\"2\">F-score (T)↑</td><td colspan=\"2\">F-score (2τ)↑</td></tr><tr><td>Excluding</td><td>Including</td><td>Excluding</td><td>Including</td></tr><tr><td>Couch</td><td>63.29</td><td>73.63</td><td>80.79</td><td>88.24</td></tr><tr><td>Cabinet</td><td>68.26</td><td>76.39</td><td>83.10</td><td>88.84</td></tr><tr><td>Bench</td><td>76.08</td><td>83.76</td><td>87.42</td><td>92.57</td></tr><tr><td>Chair</td><td>60.60</td><td>78.69</td><td>75.93</td><td>90.02</td></tr><tr><td>Monitor</td><td>67.26</td><td>76.64</td><td>81.57</td><td>88.89</td></tr><tr><td>Firearm</td><td>78.59</td><td>94.32</td><td>86.28</td><td>97.67</td></tr><tr><td>Speaker</td><td>62.39</td><td>67.83</td><td>77.77</td><td>82.34</td></tr><tr><td>Lamp</td><td>63.50</td><td>75.93</td><td>74.66</td><td>85.33</td></tr><tr><td>Cellphone</td><td>67.24</td><td>86.45</td><td>80.54</td><td>94.28</td></tr><tr><td>Plane</td><td>57.48</td><td>92.13</td><td>67.27</td><td>96.57</td></tr><tr><td>Table</td><td>76.41</td><td>83.68</td><td>86.86</td><td>91.97</td></tr><tr><td>Car</td><td>59.08</td><td>80.43</td><td>75.58</td><td>92.33</td></tr><tr><td>Watercraft</td><td>64.97</td><td>80.48</td><td>78.95</td><td>90.35</td></tr></table>",
|
| 1821 |
+
"bbox": [
|
| 1822 |
+
300,
|
| 1823 |
+
503,
|
| 1824 |
+
696,
|
| 1825 |
+
694
|
| 1826 |
+
],
|
| 1827 |
+
"page_idx": 13
|
| 1828 |
+
},
|
| 1829 |
+
{
|
| 1830 |
+
"type": "text",
|
| 1831 |
+
"text": "B APPENDIX ",
|
| 1832 |
+
"text_level": 1,
|
| 1833 |
+
"bbox": [
|
| 1834 |
+
174,
|
| 1835 |
+
776,
|
| 1836 |
+
295,
|
| 1837 |
+
792
|
| 1838 |
+
],
|
| 1839 |
+
"page_idx": 13
|
| 1840 |
+
},
|
| 1841 |
+
{
|
| 1842 |
+
"type": "text",
|
| 1843 |
+
"text": "BEST VS PRETTY MODELS ",
|
| 1844 |
+
"text_level": 1,
|
| 1845 |
+
"bbox": [
|
| 1846 |
+
176,
|
| 1847 |
+
810,
|
| 1848 |
+
393,
|
| 1849 |
+
827
|
| 1850 |
+
],
|
| 1851 |
+
"page_idx": 13
|
| 1852 |
+
},
|
| 1853 |
+
{
|
| 1854 |
+
"type": "text",
|
| 1855 |
+
"text": "We provide qualitative comparison between the our models trained with best and pretty configurations in Figure 5. The best configuration refers to our model trained without edge regularization while pretty refers to the model trained with the regularization (Sub-section 4.1). We observe that without the regularization we get higher score on our evaluation metrics but get degenerate meshes with self-intersections and irregularly sized faces. ",
|
| 1856 |
+
"bbox": [
|
| 1857 |
+
174,
|
| 1858 |
+
842,
|
| 1859 |
+
825,
|
| 1860 |
+
912
|
| 1861 |
+
],
|
| 1862 |
+
"page_idx": 13
|
| 1863 |
+
},
|
| 1864 |
+
{
|
| 1865 |
+
"type": "image",
|
| 1866 |
+
"img_path": "images/d2afd0508e146a2048b0260560351eca2a72021e6063527c44d85959abc4a970.jpg",
|
| 1867 |
+
"image_caption": [
|
| 1868 |
+
"Figure 5: Qualitative evaluation: best vs pretty wireframe models. The best models while being preferred by the evaluation metrics lead to degenerate meshes, with irregularly sized faces and self-intersections "
|
| 1869 |
+
],
|
| 1870 |
+
"image_footnote": [],
|
| 1871 |
+
"bbox": [
|
| 1872 |
+
192,
|
| 1873 |
+
101,
|
| 1874 |
+
815,
|
| 1875 |
+
380
|
| 1876 |
+
],
|
| 1877 |
+
"page_idx": 14
|
| 1878 |
+
},
|
| 1879 |
+
{
|
| 1880 |
+
"type": "text",
|
| 1881 |
+
"text": "FAILURE CASES ",
|
| 1882 |
+
"text_level": 1,
|
| 1883 |
+
"bbox": [
|
| 1884 |
+
174,
|
| 1885 |
+
440,
|
| 1886 |
+
310,
|
| 1887 |
+
455
|
| 1888 |
+
],
|
| 1889 |
+
"page_idx": 14
|
| 1890 |
+
},
|
| 1891 |
+
{
|
| 1892 |
+
"type": "text",
|
| 1893 |
+
"text": "Some failure cases of our model (with pretty setting) are shown in Figure 6. We notice that the rough topology of the mesh is recovered while we failed to reconstruct the fine topology. We can regard the recovery from wrong initial topology as a promising future work. ",
|
| 1894 |
+
"bbox": [
|
| 1895 |
+
174,
|
| 1896 |
+
472,
|
| 1897 |
+
825,
|
| 1898 |
+
515
|
| 1899 |
+
],
|
| 1900 |
+
"page_idx": 14
|
| 1901 |
+
},
|
| 1902 |
+
{
|
| 1903 |
+
"type": "image",
|
| 1904 |
+
"img_path": "images/ff24da632ff1a17b2967ec106abd663917c046a53d0221503857664f79fc5ef3.jpg",
|
| 1905 |
+
"image_caption": [
|
| 1906 |
+
"Figure 6: Failure Cases. Our system can struggle to roughly reconstruct shapes with very complex topology while some fine topology of the mesh is missing. "
|
| 1907 |
+
],
|
| 1908 |
+
"image_footnote": [],
|
| 1909 |
+
"bbox": [
|
| 1910 |
+
184,
|
| 1911 |
+
531,
|
| 1912 |
+
823,
|
| 1913 |
+
742
|
| 1914 |
+
],
|
| 1915 |
+
"page_idx": 14
|
| 1916 |
+
}
|
| 1917 |
+
]
|
parse/train/pULTvw9X313/pULTvw9X313_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/pULTvw9X313/pULTvw9X313_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/r154_g-Rb/r154_g-Rb.md
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# COMPOSABLE PLANNING WITH ATTRIBUTES
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
The tasks that an agent will need to solve often aren’t known during training. However, if the agent knows which properties of the environment are important, then after learning how its actions affect those properties the agent may be able to use this knowledge to solve complex tasks without training specifically for them. Towards this end, we consider a setup in which an environment is augmented with a set of user defined attributes that parameterize the features of interest. We propose a method that learns a policy for transitioning between “nearby” sets of attributes, and maintains a graph of possible transitions. Given a task at test time that can be expressed in terms of a target set of attributes, and a current state, our model infers the attributes of the current state and searches over paths through attribute space to get a high level plan, and then uses its low level policy to execute the plan. We show in grid-world games and 3D block stacking that our model is able to generalize to longer, more complex tasks at test time even when it only sees short, simple tasks at train time.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Deep reinforcement learning has demonstrated impressive successes in building agents that can solve difficult tasks, e.g. Mnih et al. (2015); Silver et al. (2016). However, these successes have mostly been confined to situations where it is possible to train a large number of times on a single known task or distribution of tasks. On the other hand, in some situations, the tasks of interest are not known at training time or are too complex to be completed by uninformed exploration on a sparse set of rewards. In these situations, it may be that the cost of the supervision required to identify the important features of the environment, or to describe the space of possible tasks within it, is not so onerous. Recently several papers have taken this approach, for example Reed & de Freitas (2015); Andreas et al. (2017); Oh et al. (2017); Denil et al. (2017).
|
| 12 |
+
|
| 13 |
+
If we expect an agent to be able to solve many different kinds of tasks, the representation of the task space is particularly important. In this paper, we impose structure on the task space through the use of attribute sets, a high-level abstraction of the environment state. The form of these are chosen by hand to capture task-relevant concepts, allowing both end goals as well as intermediate sub-tasks to be succinctly represented. As in Reed & de Freitas (2015); Andreas et al. (2017); Oh et al. (2017), we thus trade extra supervision for generalization.
|
| 14 |
+
|
| 15 |
+
The attributes yield a natural space in which to plan: instead of searching over possible sequences of actions, we instead search over attribute sets. Once the agent learns how its actions affect the environment in terms of its relevant attributes, novel tasks can be solved compositionally by executing a plan consisting of a sequence of transitions between abstract states defined by those attributes. In the experiments below, we will show that in various environments, training only on simple tasks, our agents are able to generalize to novel, more complex tasks.
|
| 16 |
+
|
| 17 |
+
# 2 MODEL
|
| 18 |
+
|
| 19 |
+
We consider an agent in a Markov environment, i.e. at each time the agent observes the state $s$ and takes action $a$ , which uniquely determines the probability $P ( s , a , s ^ { \prime } )$ of transitioning from $s$ to $s ^ { \prime }$ . We augment the environment with a map $f : S \{ \rho \}$ from states to a set of user-defined attributes $\rho$ . We assume that either $f$ is provided or a small set of hand-labeled $( s , \rho )$ pairs are provided in order to learning a mapping $\hat { f }$ . Hence, the attributes are human defined and constitute a form of supervision. Here we consider attributes that are sets of binary vectors. These user-specified attributes parameterize the set of goals that can be specified at test time.
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Solving complex tasks by planning in attribute space. Each state is mapped to a set of binary attributes (orange/purple dots). Our semi-parametric model comprises a graph over sets of attributes (e.g. “there is a blue block left of the red block”), with edge weightings according to the probability that a parametric policy network is able to transition between adjacent pairs. The attributes themselves are manually specified, but inferred from the observation through a neural network; and the graph structure and policy are learned during training via random exploration of the environment. Given a goal attribute set (green), we use the graph to find the shortest path (red) to it in attribute space. The policy network then executes the actions at each stage (gold arrows).
|
| 23 |
+
|
| 24 |
+
The model has three parts:
|
| 25 |
+
|
| 26 |
+
1. a neural-net based attribute detector $\hat { f }$ , which maps states $s$ to a set of attributes $\rho$ , i.e. $\rho = f ( s )$ .
|
| 27 |
+
2. a neural net-based policy $\pi ( s , \rho _ { g } )$ which takes a pair of inputs: the current state $s$ and attributes of the goal state $\rho _ { g }$ . Its output is a distribution over actions.
|
| 28 |
+
3. a tabular transition function $c _ { \pi } ( \rho _ { i } , \rho _ { j } )$ that scores the possibility of $\pi ( s _ { \rho _ { i } } , \rho _ { j } )$ transiting successfully from $\rho _ { i }$ to $\rho _ { j }$ in a small number of steps.
|
| 29 |
+
|
| 30 |
+
The transition table keeps track of the transitions seen in training, enabling a transition graph $G$ to be constructed that connects distant pairs of attributes. This high-level attribute graph is then searched at test time to find a path to the goal, with the policy network performing the low-level actions to transition between adjacent attributes.
|
| 31 |
+
|
| 32 |
+
Since our model uses attributes for planning, we desire a property that we will call “ignorability” which says that the probability of being able to transition from $\rho _ { i }$ to $\rho _ { j }$ should only depend on the attributes $\rho _ { i }$ , not the exact state; i.e. $P _ { \pi } ( f ( s _ { t ^ { \prime } } ) = \rho _ { j } | f ( s _ { t } ) ) = P _ { \pi } ( f ( s _ { t ^ { \prime } } ) = \rho _ { j } | s _ { t } )$ 1. To the extent that this condition is violated, then transitions are aliased, and a planned transition may not be achievable by the policy from the particular state $s$ even though it’s achievable from other states with the same properties, causing the model to fail to achieve its goal. Note that in the experiments in 4.2, there will be nontrivial aliasing.
|
| 33 |
+
|
| 34 |
+
# 2.1 MODEL TRAINING
|
| 35 |
+
|
| 36 |
+
# 2.1.1 ATTRIBUTE DETECTOR $\hat { f }$
|
| 37 |
+
|
| 38 |
+
The first step of training consists of fitting the attribute detectors $\hat { f }$ that map states $s$ to attributes $\rho$ . As mentioned above, we assume that there is a set of labeled (state, attribute) examples we can use for fitting this part of the model. Note that these examples are the only supervision given to the model during the entire training procedure.
|
| 39 |
+
|
| 40 |
+
# 2.1.2 ATTRIBUTE TRANSITION MODELS $c$ AND $c _ { \pi }$
|
| 41 |
+
|
| 42 |
+
To construct $c$ , the agent samples transitions from the environment, finding the sets of attributes which actually occur in the environment (from the potentially large number of all possible attributes). In the experiments below, we place the agent in a state at random with attributes $\rho _ { i }$ . It will then take a random action, or short sequence of actions. These lead to a new state with attributes $\rho _ { j }$ , and $c ( \rho _ { i } , \rho _ { j } )$ is incremented. This is repeated many times, building up statistics on possible transitions within attribute space. The resulting table represents a transition graph $G$ with vertices given by all the $\rho$ the agent has seen, and an edge between $\rho _ { i }$ and $\rho _ { j }$ counting the number of times the transition between $\rho _ { i }$ and $\rho _ { j }$ has occurred.
|
| 43 |
+
|
| 44 |
+
This procedure produces the graph $G$ , but the counts in the graph are not normalized probabilities of transitioning from $\rho _ { i }$ to $\rho _ { j }$ (as we have never seen any negative samples). Therefore, given a low-level policy $\pi$ (see Sec. 2.1.3) we can optionally perform a second phase of training to learn the probability that for each $( \rho _ { i } , \rho _ { j } )$ in the graph, that if $\rho _ { i } = f ( s )$ then $\pi ( s , \rho _ { i } )$ will succeed at transitioning to $\rho _ { j }$ . At a random state $s$ with attributes $\rho _ { i }$ , we pick $\rho _ { j }$ from the set of goals for which $c ( \rho _ { i } , \rho _ { j } ) > 0$ and see if $\pi$ is able to achieve this goal. While doing this, we keep track of the fraction of attempts for which the policy was successful at this transition and store this probability in $c _ { \pi } ( \rho _ { i } , \rho _ { j } )$ .
|
| 45 |
+
|
| 46 |
+
# 2.1.3 LOW LEVEL POLICY $\pi$
|
| 47 |
+
|
| 48 |
+
Finally, we need to train a policy network $\pi = \pi ( s , \rho _ { g } )$ to solve simple tasks, i.e. those that require a few actions to move between nearby attribute sets. One way of training $\pi$ is as an “inverse model” in the style of Agrawal et al. (2016); Andrychowicz et al. (2017). In the first phase of training the graph, suppose we sample each initial state $s _ { 0 }$ and an action sequence $[ a _ { 0 } , a _ { 1 } , . . . , a _ { k } ]$ from the exploration policy, causing the agent to arrive at a new state with attributes $\rho _ { 1 }$ . We then treat $a _ { 0 }$ as the “correct” action for $\pi ( s _ { 0 } , \rho _ { 1 } )$ and update its parameters for this target. Alternatively, $\pi$ can be trained using reinforcement learning. After an initial graph $c$ is constructed, tasks can be chosen by sampling from states nearby the initial or current state properties.
|
| 49 |
+
|
| 50 |
+
# 2.2 EVALUATING THE MODEL
|
| 51 |
+
|
| 52 |
+
Once the model has been built we can use it for planning. That is, given an input state $s$ and target set of attributes $\rho _ { T }$ , we find a path $[ \rho _ { 0 } , \rho _ { 1 } , . . . , \rho _ { m } ]$ on the graph $G$ with $\rho _ { 0 } = f ( s )$ and $\rho _ { m } = \rho _ { T }$ maximizing
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
\sum _ { i = 0 } ^ { m - 1 } \log c _ { \pi } ( \rho _ { i } , \rho _ { i + 1 } ) .
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
The optimal path can be found using Dijkstra’s algorithm with a distance metric of $- \log ( c _ { \pi } ( \rho _ { i } , \rho _ { i + 1 } ) )$ . The policy is then used to move along the resulting path between attribute set, i.e. we take actions according to $a = \pi ( s , \rho _ { 1 } )$ , then once ${ \bar { f ( s ) } } = \rho _ { 1 }$ , we change to $a = \pi ( s , \rho _ { 2 } )$ and so on. At each intermediate step, if the current attributes don’t match the attributes on the computed path, then a new path is computed using the current attributes as a starting point (or, equivalently, the whole path is recomputed at each step).
|
| 59 |
+
|
| 60 |
+
# 3 RELATED WORK
|
| 61 |
+
|
| 62 |
+
Hierarchical RL Many researchers have recognized the importance of methods that can divide a MDP into subprocesses (Thrun & Schwartz, 1994; Parr & Russell, 1998; Sutton et al., 1999; Dietterich, 2000). Perhaps the most standard formalism today is the options framework of (Sutton et al., 1999), which deals with multistep “macro-actions” in the setting of reinforcement learning. Recent works, like Kulkarni et al. (2016), have shown how options can be used with function approximation via deep learning.
|
| 63 |
+
|
| 64 |
+
Our work is also a hierarchical approach to controlling an agent in a Markovian environment. However, the paradigm we consider differs from reinforcement learning: we consider a setup where no reward or supervision is provided other than the $( s , \rho ( s ) )$ pairs, and show than an agent can learn to decompose a transition between far away $\rho , \rho ^ { \prime }$ into a sequence of short transitions. If we were to frame the problem as HRL, considering each $\pi ( \cdot , \rho )$ as a macro action2, in order for the agent to learn to sequence the $\pi ( \cdot , \rho _ { i } )$ , the environment would need to give reward for the completion of complex tasks, not just simple ones.
|
| 65 |
+
|
| 66 |
+
As opposed to e.g. Kulkarni et al. (2016), where additional human supervision is used to allow exploration in the face of extremely sparse rewards, our goal is to show that adding human supervision to parameterize the task space via attributes allows compositionality through planning.
|
| 67 |
+
|
| 68 |
+
Horde and descendants Our work is related to generalized value functions (Sutton et al., 2011) in that we have policies parameterized by state and target attributes. In particular, if we used a parameterized model for $c$ , it would be similar to the factored state-goal representation in Schaul et al. (2015). Recently, van Seijen et al. (2017) used human provided attributes as a general value function (GVF) in Ms. Pacman, showing that using a weighted combination of these can lead to higher scores than standard rewards. Although the representation used in that work is similar to the one we use, the motivation in our work is to allow generalization to new tasks; and we use the attributes to plan, rather than just as tools for building a reactive policy.
|
| 69 |
+
|
| 70 |
+
Factored MDP and Relational MDP Our approach is closely related to factored MDP (Boutilier et al., 1995; 2000; Guestrin et al., 2003b). In these works, it is assumed that the environment can be represented by discrete attributes, and that transitions between the attributes by an action can be modeled as a Bayesian network. The value of each attribute after an action is postulated to depend in a known way on attributes from before the action. The present work differs from these in that the attributes do not determine the state and the dependency graph is not assumed to be known. More importantly, the focus in this work is on organizing the space of tasks through the attributes rather than being able to better plan a specific task; and in particular being able to generalize to new, more complex tasks at test time.
|
| 71 |
+
|
| 72 |
+
Our approach is also related to Relational MDP and Object Oriented MDP (Hernandez-Gardiol & Kaelbling, 2003; van Otterlo, 2005; Diuk et al., 2008; Abel et al., 2015), where states are described as a set of objects, each of which is an instantiation of canonical classes, and each instantiated object has a set of attributes. Our work is especially related to Guestrin et al. (2003a), where the aim is to show that by using a relational representation of an MDP, a policy from one domain can generalize to a new domain. However, in the current work, the attributes are taken directly as functions of the state, as opposed to defined for object classes, and we do not have any explicit encoding of how objects interact. The model is given some examples of various attributes, and builds a parameterized model that maps into the attributes.
|
| 73 |
+
|
| 74 |
+
The Programmable Agents of Denil et al. (2017) put the notions of objects and attributes (as in relational MDP) into an end-to-end differentiable neural architecture. Our work is similar to this one in that it includes learned mappings from states to attributes $\hat { f }$ in our work, detectors in theirs; although we do not learn these end-to-end), and experiments in the setting of manipulating blocks in a physics simulator. On the other hand, our model uses explicit search instead of an end-to-end neural architecture to reason over attributes. Moreover, in Denil et al. (2017), the agent is trained and tested on similar tasks, but the object properties at test are novel; whereas our model is trained on simple tasks but generalizes to complex ones.
|
| 75 |
+
|
| 76 |
+
# Lifelong learning, multitask learning, and zero-shot learning
|
| 77 |
+
|
| 78 |
+
There is a large literature on quickly adapting to a new learning problem given a set or a history of related learning problems. Our approach in this work shares ideas with the one in Isele et al. (2016), where tasks are augmented with descriptors and featurized. Our attributes correspond to these features. In that work, the coefficients of the task features in a sparse dictionary are used to weight a set of vectors defining the model for the associated task. In our work, the low level actor takes in the task features, but we learn how to transit between sets of features, and plan in that space. Similarly, the task is specified by a feature as an input into a model in Lopez-Paz & Ranzato (2017), again this corresponds to the way our low-level actor processes its goal.
|
| 79 |
+
|
| 80 |
+
Several recent deep reinforcement learning works have used modular architectures and hierarchy to achieve generalization to new tasks. For example, Tessler et al. (2017) uses pre-trained skills for transfer. Oh et al. (2017) uses a meta-controller that selects parameterized skills and analogical supervision on outer-product structured tasks. Our assignments of attributes serves a similar purpose to their analogical supervision, and we use parameterized skills as these works do. However, our “meta-controller” is the search over attributes, rather than a reactive model.
|
| 81 |
+
|
| 82 |
+
In Andreas et al. (2017), generalization is achieved through supervision in the form of “policy sketches”, which are symbolic representations of the high level steps necessary to complete a given task. The low level steps in executing modules in the sketches are composable. Our work is similar in that high level annotation is used to enable generalization, but the mechanism in this work is different. Note that the approaches in Andreas et al. (2017); Oh et al. (2017) are complementary to the one described here; in future work we wish to explore combining them.
|
| 83 |
+
|
| 84 |
+
Semiparametric methods In this work we use an explicit memory of sets of attributes the model has seen. Several previous works have used non-parametric memories for lowering the sample complexity of learning, e.g. Blundell et al. (2016); Pritzel et al. (2017). Like these, we lean on the fact that with a good representation of a state, it can be useful to memorize what to do in given situation (having only done it a small number of times) and explicitly look it up. In our case, the “good representation” is informed by the user-specified attributes.
|
| 85 |
+
|
| 86 |
+
Our approach is also related to Machado et al. (2017), which builds up a multiscale representation of an MDP using Eigenvectors of the transition matrix of the MDP, in the sense that we collect data on possible transitions between attributes in a first phase of training, and then use this knowledge at test time.
|
| 87 |
+
|
| 88 |
+
Attributes in vision Farhadi et al. (2009) and Lampert et al. (2009) explore visual attributes as a natural intermediate representation for object recognition tasks, demonstrating their effectiveness in one/low-shot settings. Subsequent work has applied the concept to fine-grained recognition (Duan et al., 2012), people’s appearance/clothing (Zhang et al., 2014) and relative judgements (Parikh & Grauman, 2011). However, all these are static I.I.D settings, in contrast to dynamic agent/environment that this work explores.
|
| 89 |
+
|
| 90 |
+
# 4 EXPERIMENTS
|
| 91 |
+
|
| 92 |
+
We evaluate our approach (Attribute Planner, abbreviated to $A P$ ) in three different environments. The first two are randomly generated grid-worlds, and the third is a simulation of stacking blocks. In each environment, the goal of the model is to be able to generalize to testing on complex tasks from training on simpler tasks.
|
| 93 |
+
|
| 94 |
+
We compare against baseline policies trained in several ways. These baseline policies take the state and goal as inputs, and use the same neural network architecture as the policy used for the Attribute Planner.
|
| 95 |
+
|
| 96 |
+
1. Reinforcement Learning: Policies trained via reinforcement learning with A3C (Mnih et al., 2016) or Reinforce. We consider three variants of training: (i) training only with nearby goals (one attribute transition for grid-world; single actions for block stacking); (ii) training on the evaluation tasks; and (iii) training on a curriculum that transitions from nearby goals to evaluation tasks. Policies (ii) and (iii) are trained on full sequences, thus have an inherent advantage over our model, which only sees short sequences during training.
|
| 97 |
+
2. Inverse: An inverse model trained in a “supervised” fashion on a dataset of observed trajectories to predict the next action given the state and goal. We train on nearby goals and on longer multi-step tasks.
|
| 98 |
+
|
| 99 |
+
# 4.1 2-D WORLDS
|
| 100 |
+
|
| 101 |
+
We implemented two types of small 2- $. D$ environments in Mazebase (Sukhbaatar et al., 2015), where the worlds are randomly generated for each episode. The action space for each consists of movements in the four cardinal directions, and additional environment specific actions.
|
| 102 |
+
|
| 103 |
+
Colored Switches The first environment consists of four switches, each with four possible colors. An extra toggle action cycles the color of a switch if the agent is standing on it. The attributes for this environment are the states of the switches; and the tasks are to change the switches into a specified configuration, as shown in Fig. 2(right). The locations and colors of the switches are randomly initialized for each episode.
|
| 104 |
+
|
| 105 |
+
Crafting In the second environment, similar to the one used in Andreas et al. (2017) an agent needs to collect resources and combine them to form items. In addition to moving in the cardinal directions, the agent has a “grab” action that allows it to pick up a resource from the current location and add it to its inventory. If there is no item where the agent is standing, this action does nothing. The agent also has a “craft” action that combines a set of items to create a new item if the agent has the prerequisite items in its inventory and the agent is standing on a special square (a “crafting table”) corresponding to the item to be crafted. If these two conditions are not both met, the “craft” action does nothing. The attributes for this environment are the items in the inventory, and task is to add a specified item to the inventory. In the environment, there are three types of resources and three types of products (see Fig. 2(left)). The episodes are initialized randomly by removing some resources, and adding some items to the inventory.
|
| 106 |
+
|
| 107 |
+

|
| 108 |
+
! + ! = + + ! =+ + ! =Figure 2: Left: Crafting mazebase game. Right: Colored switches game. See text for details.
|
| 109 |
+
|
| 110 |
+
1 1The observation is given as a bag of words in both environments, where the words correspond to (feature, location). Features consist of item types, names, and their other properties. The locations 1include position relative to the agent in the maze, and also a few special slots for inventory, current, and target attributes.
|
| 111 |
+
|
| 112 |
+
The first phase building the high level transitions as in Section 2.1.2 is done by running a random 1 1agent in the environment from a random state until one or more attributes change. Then this change of attribute is recorded as an edge in graph $G$ . The low level policy is trained concurrently with the second phase of Section 2.1.2. We use the current edge estimates in the graph to propose a target set of attributes, and the low level policy is trained with the Reinforce algorithm (Williams, 1992) to reach that set of attributes from the current state. These training episodes terminate when the task completes or after 80 steps; and a reward of -0.1 is given at every step to encourage the agent to complete the task quickly. The policy network is a fully connected network with two hidden layers of 100 units. We run each experiment three times with different random seeds, and report the mean success rate.
|
| 113 |
+
|
| 114 |
+
In the switches environment, multi-step (test) tasks are generated by setting a random attribute as target, which can require up to 12 attribute transitions. In the crafting environment, multi-step (test) tasks are generated by randomly selecting an item as a target. Since we do not care about other items in the inventory, the target state is underspecified. Some tasks are pre-solved because the randomly chosen target item can already be in the inventory. However, such tasks have no effect on training and are also removed during testing.
|
| 115 |
+
|
| 116 |
+
In curriculum training which we use as a baseline, we gradually increase the upper bound on the difficulty of tasks. In the switches environment, the difficulty corresponds to the number of toggles necessary for solving the task. The craft environment has two levels of difficulty: tasks can be completed by a single grab or craft action, and tasks that require multiple such actions.
|
| 117 |
+
|
| 118 |
+
During the second phase of training, we simultaneously compute the transition function $c _ { \pi } ( \rho _ { i } , \rho _ { j } )$ using an exponentially decaying average of success rates of the low level policy $\pi$ :
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
c _ { \pi } ( \rho _ { i } , \rho _ { j } ) = \frac { \sum _ { t = 1 } ^ { T } \gamma ^ { T - t } M _ { \pi } ^ { t } ( \rho _ { i } , \rho _ { j } ) } { \sum _ { t = 1 } ^ { T } \gamma ^ { T - t } N _ { \pi } ^ { t } ( \rho _ { i } , \rho _ { j } ) } ,
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
where $T$ is the number of training epochs, $N _ { \pi } ^ { t }$ is the number of task $( \rho _ { i } , \rho _ { j } )$ during epoch $t$ , and $M _ { \pi } ^ { t }$ is the number of successful episodes among them. A decay rate of $\gamma = 0 . 9$ is used.
|
| 125 |
+
|
| 126 |
+
Table 1 compares our Attribute Planner (AP) model to a Reinforce baseline on the Crafting and Colored Switches tasks. In all cases, the baseline performs poorly, while the AP model has a high success rate. The importance of the graph is apparent: when it is removed (Reinforce method) the performance drops significantly on multi-step tasks.
|
| 127 |
+
|
| 128 |
+
Table 1: Task success rate on Mazebase environments. Our Attribute Planner (AP) approach performs much better than the reactive policies trained with Reinforce. The addition of the attribute graph (over Reinforce only model) is crucial for multi-step evaluation tasks.
|
| 129 |
+
|
| 130 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">Training data</td><td colspan="2">Switches</td><td colspan="2">Crafting</td></tr><tr><td>single</td><td>multi</td><td>single</td><td>multi</td></tr><tr><td>Reinforce</td><td>multi-step</td><td>0.0%</td><td>0.0%</td><td>45.7%</td><td>28.6%</td></tr><tr><td>Reinforce</td><td> multi-step + curriculum</td><td>33.6%</td><td>33.3%</td><td>94.9%</td><td>83.9%</td></tr><tr><td>Reinforce</td><td>one-step</td><td>99.0%</td><td>15.4%</td><td>98.7%</td><td>49.0%</td></tr><tr><td>AP</td><td>one-step</td><td>99.0%</td><td>83.1%</td><td>98.7%</td><td>96.2%</td></tr></table>
|
| 131 |
+
|
| 132 |
+
# 4.2 STACKING BLOCKS
|
| 133 |
+
|
| 134 |
+
We consider a 3D block stacking task in the Mujoco environment Todorov et al. (2012). There are 4 blocks of different colors, and actions consist of dropping a block in a $3 \times 3$ grid of positions, resulting in 36 total actions. A block cannot be moved when it is underneath another block, so some actions have no effect. The input to the model is the observed image, and there are a total of 36 binary properties corresponding to the relative $\mathbf { X }$ and y positions of the blocks and whether blocks are stacked on one another. For example, one property corresponds to “blue is on top of yellow”. Each training episode is initiated from a random initial state and lasts only one step, i.e. dropping a single block in a new location.
|
| 135 |
+
|
| 136 |
+
The policy network takes (i) a $1 2 8 \times 1 2 8$ image, which is featurized by a CNN with five convolutional layers and one fully connected (fc) layer to produce a 128d vector; and (ii) goal properties expressed as a 48d binary vector, which are transformed to a 128d vector. The two 128d vectors are concatenated and combined by two fc layers followed by softmax to produce an output distribution over actions. We use an exponential linear nonlinearity after each layer.
|
| 137 |
+
|
| 138 |
+
Table 2 compares the performance of different models on several block stacking tasks. In the onestep task, a goal is chosen that is the result of taking a single random action. In the multi-step task, the goal is chosen as the properties of a new random initialization. These tasks typically require $3 - 8$ steps to complete. In the 4-stack task, the goal is a vertical stack of blocks in the order red, green, blue, yellow. We compare the performance of our model to reactive policy baselines trained on single-step tasks, complex multi-step tasks or with a curriculum of both. We perform each evaluation task 1000 times.
|
| 139 |
+
|
| 140 |
+
The single-step reactive policies perform well on single step tasks (which are what it sees at train time), but perform much worse compared to the AP model when transferred to multi-step tasks. The AP model without the second step of training that learns $c _ { \pi }$ also performs substantially worse on multi-step tasks, demonstrating the importance of properly normalized transition probabilities to avoid aliased states.
|
| 141 |
+
|
| 142 |
+
The rightmost two columns of Table 2 consider underspecified goals, where only a subset of the attributes are provided. These are identical to their fully-specified counterparts, except that each attribute is left unspecified with probability $30 \%$ . The AP model handles these naturally by finding the shorted path to any satisfactory attribute set. We consider reactive baselines that are trained on the same distribution of underspecified attribute sets. Despite this, we observe that reactive policy performance degrades when goals are underspecified, while our AP model does not.
|
| 143 |
+
|
| 144 |
+
The attribute detector $\hat { f }$ predicts the full attribute set with $< 0 . 1 \%$ error when trained on the full dataset of 1 million examples. If trained on only 10,000 examples, the attribute detector has an error rate of $1 . 4 \%$ . Training the AP model with this less-accurate attribute detector degrades multi-step performance by only $0 . 9 \%$ .
|
| 145 |
+
|
| 146 |
+
Property Aliasing: The “ignorability” assumption we made in Section 2 is violated in the block stacking task. To see why, consider a transition from “red left of blue and yellow” to “red right of blue and yellow”. This can typically be accomplished in one step, but if blue and yellow are already on the far right, it cannot. Thus, states where this transition are possible and impossible are aliased with the same properties. This is the dominant source of errors on the multi-step task when trained on large sample sizes (in fact, it is the only source of errors as the policy approaches $1 0 0 \%$
|
| 147 |
+
|
| 148 |
+
Table 2: Model comparison on block stacking task accuracy. Baselines marked ‘multi-step’ or ‘curriculum‘ get to see complex multi-step tasks at train time. The Attribute Planner (AP) generalizes from one-step training to multi-step and underspecified tasks with high accuracy, while reinforcement learning and inverse model training do not. AP outperforms A3C even with a curriculum of tasks. Ablating the normalized graph transition table $c _ { \pi }$ degrades AP performance substantially on multi-step tasks due to aliasing. Inverse one-step model was trained on 2 million examples, inverse multi-step and AP models were trained on 1 million examples, A3C models were trained to convergence.
|
| 149 |
+
|
| 150 |
+
<table><tr><td>Model</td><td>Training Data</td><td>one-step</td><td>multi-step</td><td>4-stack</td><td>one-step underspecified</td><td>multi-step</td></tr><tr><td>A3C</td><td>one-step</td><td>98.5%</td><td>8.1%</td><td>1.9%</td><td>65.7%</td><td>6.6%</td></tr><tr><td>A3C</td><td>multi-step</td><td>2.6%</td><td>0%</td><td>0%</td><td>5.3%</td><td>0%</td></tr><tr><td>A3C</td><td>curriculum</td><td>98.2%</td><td>17%</td><td>2.9%</td><td>8.2%</td><td>0.2%</td></tr><tr><td>Inverse</td><td>one-step</td><td>100%</td><td>9.1%</td><td>0.5%</td><td>98.8%</td><td>18.8%</td></tr><tr><td>Inverse</td><td>multi-step</td><td>94.1%</td><td>13.7%</td><td>4.6%</td><td>71.2%</td><td>9.6%</td></tr><tr><td>AP (no Cπ)</td><td> one-step</td><td>74.5%</td><td>29.7%</td><td>62.2%</td><td>81.8%</td><td>28.1%</td></tr><tr><td>AP</td><td>one-step</td><td>98.8%</td><td>66.7%</td><td>98.5%</td><td>97.8%</td><td>63.5%</td></tr></table>
|
| 151 |
+
|
| 152 |
+
<table><tr><td rowspan="2"># of Training Examples</td><td colspan="2">Inverse</td><td colspan="2">AP</td></tr><tr><td>one-step</td><td>multi-step</td><td>one-step</td><td>multi-step</td></tr><tr><td>10,000</td><td>35.5%</td><td>1.6%</td><td>50.0%</td><td>3.0%</td></tr><tr><td>100,000</td><td>99.9%</td><td>7.8%</td><td>89.0%</td><td>47.0%</td></tr><tr><td>1,000,000</td><td>100%</td><td>9.1%</td><td>98.9%</td><td>66.7%</td></tr><tr><td>10,000,000</td><td>100%</td><td>8.5%</td><td>96.5%</td><td>70.7%</td></tr></table>
|
| 153 |
+
|
| 154 |
+
Table 3: Effect of the number of (one-step) training examples on one-step and multi-step performance, for an inverse model and the Attribute Planner model. The inverse models are trained on $2 \mathbf { x }$ the samples, including the samples generated from learning $c _ { \pi }$ in our AP method.
|
| 155 |
+
|
| 156 |
+
accuracy and the graph becomes complete). Figure 4 shows an example plan that becomes stuck due to aliasing.
|
| 157 |
+
|
| 158 |
+
The second step of training, that computes the probability of $\pi$ transitioning on each edge, is important for mitigating the effects of aliasing in the block stacking task. The graph search finds the path with the highest probability of success (i.e. the product of probabilities on each edge), so it avoids edges that have high aliasing. In the AP model trained on one million samples, the second step of training improves multi-step performance from $2 9 . 7 \%$ to $6 6 . 7 \%$ , as shown in Table 2.
|
| 159 |
+
|
| 160 |
+
# 5 DISCUSSION
|
| 161 |
+
|
| 162 |
+
Our results show that structuring the space of tasks with high level attributes allows an agent to compose policies for the solutions of simple tasks into solutions of more complex tasks. The agent plans a path to the final goal at the level of the attributes, and executes the steps in this path with a reactive policy. Thus, supervision of an agent by labeling attributes can lead to generalization from simple tasks at train time to more complex tasks at test time. Nevertheless, there are many fronts for further work:
|
| 163 |
+
|
| 164 |
+
Sample complexity of the planning module: In Table 5 we can see both the benefits and the liabilities of the explicit non-parametric form for $c$ . By 10K samples, the parametric lower level policy is already able to have a reasonable success rate. However, because in this environment, there are roughly 200K edges in the graph, most of the edges have not been seen, and without any weight-sharing, our model cannot estimate these transition probabilities. On the other hand, by 100K samples the model has seen enough of the graph to make nontrivial plans; and the non-parametric form of the graph makes planning straightforward. In future work, we hope to combine parametric models for $c$ with search to increase the sample efficiency of the planning module. Alternatively, we might hope to make progress on dynamic abstraction (projecting out some of the attributes) depending on the current state and goal, which would make the effective number of edges of the graph smaller.
|
| 165 |
+
|
| 166 |
+

|
| 167 |
+
Figure 3: Two examples of block stacking evaluation tasks. The initial/target states are shown in the first/last columns. Successful completions of our Attribute Planner model are shown in rows 1 and 3. By contrast, the A3C baseline is unable to perform the tasks (rows 2 and 4).
|
| 168 |
+
|
| 169 |
+

|
| 170 |
+
Figure 4: Plans become stuck when states with different transitions map to the same properties. In frame 4 of this example, the policy is directed to place the green block in front of the red and blue blocks, but this is impossible because the blue and red are already in the frontmost position.
|
| 171 |
+
|
| 172 |
+
Exploration Although we discuss an agent in an environment, we have elided many of the difficult problems of reinforcement learning. In particular, the environments considered in this work allow sampling low level transitions by starting at random states and following random policies, and these are sufficient to cover the state space, although we note that the method for training the model described in Section 2.1 allows for more sophisticated exploration policies. Thus we sidestep the exploration problem, one of the key difficulties of reinforcement learning. Nevertheless, building composable models even in this setting is nontrivial, and our view is that it is important to demonstrate success here (and decouple issues of exploration and composability) before moving on to the full RL problem.
|
| 173 |
+
|
| 174 |
+
We believe that the attributes $\rho$ and $c$ , in addition to their usefulness for planning, provide a framework for incentivizing exploration. The agent can be rewarded for finding unseen (or rarely-seen) high level transitions, or for validating or falsifying hypotheses about the existence of entries of $c$ .
|
| 175 |
+
|
| 176 |
+
Learning the attributes: Discovering the attributes automatically would remove much of the need for human supervision. Recent work, such as Thomas et al. (2017), demonstrates how this could be done. Another avenue for discovering attributes is to use a few “seed” attributes; and use aliasing as a signal that some attributes need to be refined.
|
| 177 |
+
|
| 178 |
+
# REFERENCES
|
| 179 |
+
|
| 180 |
+
David Abel, D. Ellis Hershkowitz, Gabriel Barth-Maron, Stephen Brawner, Kevin O’Farrell, James MacGlashan, and Stefanie Tellex. Goal-based action priors. In ICAPS, pp. 306–314. AAAI Press, 2015.
|
| 181 |
+
|
| 182 |
+
Pulkit Agrawal, Ashvin V Nair, Pieter Abbeel, Jitendra Malik, and Sergey Levine. Learning to poke by poking: Experiential learning of intuitive physics. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 5074–5082. Curran Associates, Inc., 2016. URL http://papers.nips.cc/paper/ 6113-learning-to-poke-by-poking-experiential-learning-of-intuitive-physics. pdf.
|
| 183 |
+
|
| 184 |
+
Jacob Andreas, Dan Klein, and Sergey Levine. Modular multitask reinforcement learning with policy sketches. In ICML, volume 70 of Proceedings of Machine Learning Research, pp. 166– 175. PMLR, 2017.
|
| 185 |
+
|
| 186 |
+
Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay. CoRR, abs/1707.01495, 2017.
|
| 187 |
+
|
| 188 |
+
Charles Blundell, Benigno Uria, Alexander Pritzel, Yazhe Li, Avraham Ruderman, Joel Z. Leibo, Jack Rae, Daan Wierstra, and Demis Hassabis. Model-free episodic control. CoRR, abs/1606.04460, 2016.
|
| 189 |
+
|
| 190 |
+
Craig Boutilier, Richard Dearden, and Moises Goldszmidt. Exploiting structure in policy construction. In Proceedings of the 14th International Joint Conference on Artificial Intelligence - Volume 2, IJCAI’95, pp. 1104–1111, San Francisco, CA, USA, 1995. Morgan Kaufmann Publishers Inc.
|
| 191 |
+
|
| 192 |
+
Craig Boutilier, Richard Dearden, and Moises Goldszmidt. Stochastic dynamic programming with´ factored representations. Artif. Intell., 121(1-2):49–107, 2000.
|
| 193 |
+
|
| 194 |
+
Misha Denil, Sergio Gomez Colmenarejo, Serkan Cabi, David Saxton, and Nando de Freitas. Programmable agents. CoRR, abs/1706.06383, 2017.
|
| 195 |
+
|
| 196 |
+
Thomas G. Dietterich. Hierarchical reinforcement learning with the maxq value function decomposition. J. Artif. Int. Res., 13(1):227–303, November 2000. ISSN 1076-9757.
|
| 197 |
+
|
| 198 |
+
Carlos Diuk, Andre Cohen, and Michael L. Littman. An object-oriented representation for efficient reinforcement learning. In ICML, volume 307 of ACM International Conference Proceeding Series, pp. 240–247. ACM, 2008.
|
| 199 |
+
|
| 200 |
+
Kun Duan, Devi Parikh, David Crandall, and Kristen Grauman. Discovering localized attributes for fine-grained recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2012.
|
| 201 |
+
|
| 202 |
+
Ali Farhadi, Ian Endres, Derek Hoiem, and David Forsyth. Describing objects by their attributes. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 1778– 1785. IEEE, 2009.
|
| 203 |
+
|
| 204 |
+
Carlos Guestrin, Daphne Koller, Chris Gearhart, and Neal Kanodia. Generalizing plans to new environments in relational mdps. In Proceedings of the 18th International Joint Conference on Artificial Intelligence, IJCAI’03, pp. 1003–1010, 2003a.
|
| 205 |
+
|
| 206 |
+
Carlos Guestrin, Daphne Koller, Ronald Parr, and Shobha Venkataraman. Efficient solution algorithms for factored mdps. J. Artif. Intell. Res., 19:399–468, 2003b.
|
| 207 |
+
|
| 208 |
+
Natalia Hernandez-Gardiol and Leslie Pack Kaelbling. Envelope-based planning in relational mdps. In NIPS, pp. 783–790. MIT Press, 2003.
|
| 209 |
+
|
| 210 |
+
David Isele, Mohammad Rostami, and Eric Eaton. Using task features for zero-shot knowledge transfer in lifelong learning. In IJCAI, pp. 1620–1626. IJCAI/AAAI Press, 2016.
|
| 211 |
+
|
| 212 |
+
Tejas D. Kulkarni, Karthik Narasimhan, Ardavan Saeedi, and Josh Tenenbaum. Hierarchical deep reinforcement learning: Integrating temporal abstraction and intrinsic motivation. In NIPS, pp. 3675–3683, 2016.
|
| 213 |
+
Christoph H Lampert, Hannes Nickisch, and Stefan Harmeling. Learning to detect unseen object classes by between-class attribute transfer. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 951–958. IEEE, 2009.
|
| 214 |
+
David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continuum learning. CoRR, abs/1706.08840, 2017.
|
| 215 |
+
Marlos C. Machado, Marc G. Bellemare, and Michael H. Bowling. A laplacian framework for option discovery in reinforcement learning. In ICML, volume 70 of Proceedings of Machine Learning Research, pp. 2295–2304. PMLR, 2017.
|
| 216 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, February 2015.
|
| 217 |
+
Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International Conference on Machine Learning, pp. 1928–1937, 2016.
|
| 218 |
+
Junhyuk Oh, Satinder P. Singh, Honglak Lee, and Pushmeet Kohli. Zero-shot task generalization with multi-task deep reinforcement learning. In ICML, volume 70 of Proceedings of Machine Learning Research, pp. 2661–2670. PMLR, 2017.
|
| 219 |
+
Devi Parikh and Kristen Grauman. Relative attributes. In Computer Vision (ICCV), 2011 IEEE International Conference on, pp. 503–510. IEEE, 2011.
|
| 220 |
+
Ronald Parr and Stuart Russell. Reinforcement learning with hierarchies of machines. In Proceedings of the 1997 Conference on Advances in Neural Information Processing Systems 10, NIPS ’97, pp. 1043–1049, Cambridge, MA, USA, 1998. MIT Press. ISBN 0-262-10076-2.
|
| 221 |
+
Alexander Pritzel, Benigno Uria, Sriram Srinivasan, Adria Puigdom \` enech Badia, Oriol Vinyals, \` Demis Hassabis, Daan Wierstra, and Charles Blundell. Neural episodic control. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, pp. 2827–2836, 2017.
|
| 222 |
+
Scott E. Reed and Nando de Freitas. Neural programmer-interpreters. CoRR, abs/1511.06279, 2015.
|
| 223 |
+
Tom Schaul, Daniel Horgan, Karol Gregor, and David Silver. Universal Value Function Approximators. In International Conference on Machine Learning (ICML), 2015.
|
| 224 |
+
David Silver, Aja Huang, Chris J. Maddison, Arthur Guez, Laurent Sifre, George van den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, Sander Dieleman, Dominik Grewe, John Nham, Nal Kalchbrenner, Ilya Sutskever, Timothy Lillicrap, Madeleine Leach, Koray Kavukcuoglu, Thore Graepel, and Demis Hassabis. Mastering the game of Go with deep neural networks and tree search. Nature, 529(7587):484–489, January 2016.
|
| 225 |
+
Sainbayar Sukhbaatar, Arthur Szlam, Gabriel Synnaeve, Soumith Chintala, and Rob Fergus. Mazebase: A sandbox for learning from games. arXiv preprint arXiv:1511.07401, 2015.
|
| 226 |
+
Richard Sutton, Doina Precup, and Satinder Singh. Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning. Artificial Intelligence, 112:181–211, 1999.
|
| 227 |
+
Richard S. Sutton, Joseph Modayil, Michael Delp, Thomas Degris, Patrick M. Pilarski, Adam White, and Doina Precup. Horde: a scalable real-time architecture for learning knowledge from unsupervised sensorimotor interaction. In AAMAS, pp. 761–768. IFAAMAS, 2011.
|
| 228 |
+
Chen Tessler, Shahar Givony, Tom Zahavy, Daniel J. Mankowitz, and Shie Mannor. A deep hierarchical approach to lifelong learning in minecraft. In AAAI, pp. 1553–1561. AAAI Press, 2017.
|
| 229 |
+
Valentin Thomas, Jules Pondard, Emmanuel Bengio, Marc Sarfati, Philippe Beaudoin, Marie-Jean Meurs, Joelle Pineau, Doina Precup, and Yoshua Bengio. Independently controllable factors. CoRR, abs/1708.01289, 2017. URL http://arxiv.org/abs/1708.01289.
|
| 230 |
+
Sebastian Thrun and Anton Schwartz. Finding structure in reinforcement learning. In NIPS, pp. 385–392. MIT Press, 1994.
|
| 231 |
+
Emanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In IROS, pp. 5026–5033. IEEE, 2012.
|
| 232 |
+
M. van Otterlo. A Survey of Reinforcement Learning in Relational Domains. Number 31 in TRCTIT-05, ISSN 1381-3625. Centre for Telematics and Information Technology University of Twente, 2005.
|
| 233 |
+
Harm van Seijen, Mehdi Fatemi, Joshua Romoff, Romain Laroche, Tavian Barnes, and Jeffrey Tsang. Hybrid reward architecture for reinforcement learning. CoRR, abs/1706.04208, 2017.
|
| 234 |
+
Ronald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. In Machine Learning, pp. 229–256, 1992.
|
| 235 |
+
Ning Zhang, Manohar Paluri, Marc’Aurelio Ranzato, Trevor Darrell, and Lubomir Bourdev. Panda: Pose aligned networks for deep attribute modeling. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2014.
|
| 236 |
+
|
| 237 |
+
# A ADDING EXPLORATION
|
| 238 |
+
|
| 239 |
+
We also look into the use of exploration and learn a policy to promote exploration of undiscovered edges in our planning graph. We give a negative reward proportional to $\frac { \mathbf { \dot { \phi } } _ { t } } { \sqrt { n } }$ where $n$ is the number of times that edge has been encountered before and $t$ the time episode. We compare this with a baseline method of single random start and random action selection over $N$ and the method used in the main paper, with $N$ random starts and single rollouts.
|
| 240 |
+
|
| 241 |
+
# A.1 MAZEBASE RESULTS
|
| 242 |
+
|
| 243 |
+
Our Mazebase environments in Section 4.1 are designed so that all edges can be discovered without much exploration. So to better test the benefit of exploration, we modified the craft environment to make discovering all edges harder. First, we added 4 new “super” products that can be crafted by combining one normal product with another resource, or three resources. Second, the environment always starts with only 3 resources and an empty inventory. Therefore, it is much harder to discover a super product because it requires agent to craft a product out of two resources, and then pick another resource and craft.
|
| 244 |
+
|
| 245 |
+
In this hard crafting environment, a random agent discovered 18.6 edges on average, while an agent with the exploration reward discovered all 25 edges of the environment. We used this complete graph to train our AP model and other baselines. Training on one-step tasks require episodes to start from different nodes of the graph, but the environment always initializes at the same node. A simple solution was not to reset the environment between episodes if the previous episode was successful. Thus the next episodes will start from a different node. Table 4 shows the success rates on multi-step tasks, where our AP model clearly outperforms the other baselines.
|
| 246 |
+
|
| 247 |
+
<table><tr><td>Method</td><td>Training data</td><td>Hard Crafting (multi-step)</td></tr><tr><td>Reinforce</td><td>multi-step + curriculum</td><td>51.5%</td></tr><tr><td>Reinforce</td><td>one-step</td><td>26.0%</td></tr><tr><td>AP</td><td>one-step</td><td>99.8%</td></tr></table>
|
| 248 |
+
|
| 249 |
+
Table 4: Task success rate on multi-step task in the hard crafting environment. Our Attribute Planner clearly outperforms other baseline approaches.
|
| 250 |
+
|
| 251 |
+
# A.2 STACKING BLOCKS RESULTS
|
| 252 |
+
|
| 253 |
+
Table 5: Effect of the number of (one-step) training examples on one-step and multi-step performance, for an inverse model and the Attribute Planner model. The inverse models are trained on $2 \mathbf { x }$ the samples, including the samples generated from learning $c _ { \pi }$ in our AP method.
|
| 254 |
+
|
| 255 |
+
<table><tr><td rowspan="2"># of Training Examples</td><td colspan="2">Policy</td><td colspan="2">Random</td><td colspan="2">Main Method</td></tr><tr><td>edges</td><td> accuracy</td><td>edges</td><td>accuracy</td><td>edges</td><td>accuracy</td></tr><tr><td>100,000</td><td>44k</td><td>49.4%</td><td>49k</td><td>49.7%</td><td>38k</td><td>47.0%</td></tr><tr><td>1,000,000</td><td>120k</td><td>67.5%</td><td>130k</td><td>69.8%</td><td>114k</td><td>66.7%</td></tr><tr><td>10,000,000</td><td>139k</td><td>80.6%</td><td>138k</td><td>83.1%</td><td>218k</td><td>70.7%</td></tr></table>
|
parse/train/r154_g-Rb/r154_g-Rb_content_list.json
ADDED
|
@@ -0,0 +1,1316 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
710,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
145,
|
| 20 |
+
398,
|
| 21 |
+
172
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
210,
|
| 32 |
+
544,
|
| 33 |
+
224
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "The tasks that an agent will need to solve often aren’t known during training. However, if the agent knows which properties of the environment are important, then after learning how its actions affect those properties the agent may be able to use this knowledge to solve complex tasks without training specifically for them. Towards this end, we consider a setup in which an environment is augmented with a set of user defined attributes that parameterize the features of interest. We propose a method that learns a policy for transitioning between “nearby” sets of attributes, and maintains a graph of possible transitions. Given a task at test time that can be expressed in terms of a target set of attributes, and a current state, our model infers the attributes of the current state and searches over paths through attribute space to get a high level plan, and then uses its low level policy to execute the plan. We show in grid-world games and 3D block stacking that our model is able to generalize to longer, more complex tasks at test time even when it only sees short, simple tasks at train time. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
241,
|
| 43 |
+
764,
|
| 44 |
+
435
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
462,
|
| 55 |
+
334,
|
| 56 |
+
478
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Deep reinforcement learning has demonstrated impressive successes in building agents that can solve difficult tasks, e.g. Mnih et al. (2015); Silver et al. (2016). However, these successes have mostly been confined to situations where it is possible to train a large number of times on a single known task or distribution of tasks. On the other hand, in some situations, the tasks of interest are not known at training time or are too complex to be completed by uninformed exploration on a sparse set of rewards. In these situations, it may be that the cost of the supervision required to identify the important features of the environment, or to describe the space of possible tasks within it, is not so onerous. Recently several papers have taken this approach, for example Reed & de Freitas (2015); Andreas et al. (2017); Oh et al. (2017); Denil et al. (2017). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
493,
|
| 66 |
+
825,
|
| 67 |
+
618
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "If we expect an agent to be able to solve many different kinds of tasks, the representation of the task space is particularly important. In this paper, we impose structure on the task space through the use of attribute sets, a high-level abstraction of the environment state. The form of these are chosen by hand to capture task-relevant concepts, allowing both end goals as well as intermediate sub-tasks to be succinctly represented. As in Reed & de Freitas (2015); Andreas et al. (2017); Oh et al. (2017), we thus trade extra supervision for generalization. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
626,
|
| 77 |
+
823,
|
| 78 |
+
709
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "The attributes yield a natural space in which to plan: instead of searching over possible sequences of actions, we instead search over attribute sets. Once the agent learns how its actions affect the environment in terms of its relevant attributes, novel tasks can be solved compositionally by executing a plan consisting of a sequence of transitions between abstract states defined by those attributes. In the experiments below, we will show that in various environments, training only on simple tasks, our agents are able to generalize to novel, more complex tasks. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
715,
|
| 88 |
+
825,
|
| 89 |
+
799
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "2 MODEL ",
|
| 96 |
+
"text_level": 1,
|
| 97 |
+
"bbox": [
|
| 98 |
+
176,
|
| 99 |
+
819,
|
| 100 |
+
267,
|
| 101 |
+
835
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "We consider an agent in a Markov environment, i.e. at each time the agent observes the state $s$ and takes action $a$ , which uniquely determines the probability $P ( s , a , s ^ { \\prime } )$ of transitioning from $s$ to $s ^ { \\prime }$ . We augment the environment with a map $f : S \\{ \\rho \\}$ from states to a set of user-defined attributes $\\rho$ . We assume that either $f$ is provided or a small set of hand-labeled $( s , \\rho )$ pairs are provided in order to learning a mapping $\\hat { f }$ . Hence, the attributes are human defined and constitute a form of supervision. Here we consider attributes that are sets of binary vectors. These user-specified attributes parameterize the set of goals that can be specified at test time. ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
852,
|
| 111 |
+
825,
|
| 112 |
+
924
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 0
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "image",
|
| 118 |
+
"img_path": "images/70e696fa0b3d09f6e36b8473581c706861e235d4eeb625aa215f50810ec0ec31.jpg",
|
| 119 |
+
"image_caption": [
|
| 120 |
+
"Figure 1: Solving complex tasks by planning in attribute space. Each state is mapped to a set of binary attributes (orange/purple dots). Our semi-parametric model comprises a graph over sets of attributes (e.g. “there is a blue block left of the red block”), with edge weightings according to the probability that a parametric policy network is able to transition between adjacent pairs. The attributes themselves are manually specified, but inferred from the observation through a neural network; and the graph structure and policy are learned during training via random exploration of the environment. Given a goal attribute set (green), we use the graph to find the shortest path (red) to it in attribute space. The policy network then executes the actions at each stage (gold arrows). "
|
| 121 |
+
],
|
| 122 |
+
"image_footnote": [],
|
| 123 |
+
"bbox": [
|
| 124 |
+
174,
|
| 125 |
+
114,
|
| 126 |
+
433,
|
| 127 |
+
267
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "",
|
| 134 |
+
"bbox": [
|
| 135 |
+
174,
|
| 136 |
+
295,
|
| 137 |
+
825,
|
| 138 |
+
323
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "The model has three parts: ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
330,
|
| 148 |
+
348,
|
| 149 |
+
344
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "1. a neural-net based attribute detector $\\hat { f }$ , which maps states $s$ to a set of attributes $\\rho$ , i.e. $\\rho = f ( s )$ . \n2. a neural net-based policy $\\pi ( s , \\rho _ { g } )$ which takes a pair of inputs: the current state $s$ and attributes of the goal state $\\rho _ { g }$ . Its output is a distribution over actions. \n3. a tabular transition function $c _ { \\pi } ( \\rho _ { i } , \\rho _ { j } )$ that scores the possibility of $\\pi ( s _ { \\rho _ { i } } , \\rho _ { j } )$ transiting successfully from $\\rho _ { i }$ to $\\rho _ { j }$ in a small number of steps. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
210,
|
| 158 |
+
358,
|
| 159 |
+
825,
|
| 160 |
+
457
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "The transition table keeps track of the transitions seen in training, enabling a transition graph $G$ to be constructed that connects distant pairs of attributes. This high-level attribute graph is then searched at test time to find a path to the goal, with the policy network performing the low-level actions to transition between adjacent attributes. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
468,
|
| 170 |
+
825,
|
| 171 |
+
525
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "Since our model uses attributes for planning, we desire a property that we will call “ignorability” which says that the probability of being able to transition from $\\rho _ { i }$ to $\\rho _ { j }$ should only depend on the attributes $\\rho _ { i }$ , not the exact state; i.e. $P _ { \\pi } ( f ( s _ { t ^ { \\prime } } ) = \\rho _ { j } | f ( s _ { t } ) ) = P _ { \\pi } ( f ( s _ { t ^ { \\prime } } ) = \\rho _ { j } | s _ { t } )$ 1. To the extent that this condition is violated, then transitions are aliased, and a planned transition may not be achievable by the policy from the particular state $s$ even though it’s achievable from other states with the same properties, causing the model to fail to achieve its goal. Note that in the experiments in 4.2, there will be nontrivial aliasing. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
531,
|
| 181 |
+
825,
|
| 182 |
+
631
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "2.1 MODEL TRAINING ",
|
| 189 |
+
"text_level": 1,
|
| 190 |
+
"bbox": [
|
| 191 |
+
176,
|
| 192 |
+
648,
|
| 193 |
+
341,
|
| 194 |
+
662
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "2.1.1 ATTRIBUTE DETECTOR $\\hat { f }$ ",
|
| 201 |
+
"text_level": 1,
|
| 202 |
+
"bbox": [
|
| 203 |
+
176,
|
| 204 |
+
674,
|
| 205 |
+
401,
|
| 206 |
+
690
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 1
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "The first step of training consists of fitting the attribute detectors $\\hat { f }$ that map states $s$ to attributes $\\rho$ . As mentioned above, we assume that there is a set of labeled (state, attribute) examples we can use for fitting this part of the model. Note that these examples are the only supervision given to the model during the entire training procedure. ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
174,
|
| 215 |
+
702,
|
| 216 |
+
825,
|
| 217 |
+
758
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 1
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "2.1.2 ATTRIBUTE TRANSITION MODELS $c$ AND $c _ { \\pi }$ ",
|
| 224 |
+
"text_level": 1,
|
| 225 |
+
"bbox": [
|
| 226 |
+
174,
|
| 227 |
+
776,
|
| 228 |
+
526,
|
| 229 |
+
790
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 1
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "To construct $c$ , the agent samples transitions from the environment, finding the sets of attributes which actually occur in the environment (from the potentially large number of all possible attributes). In the experiments below, we place the agent in a state at random with attributes $\\rho _ { i }$ . It will then take a random action, or short sequence of actions. These lead to a new state with attributes $\\rho _ { j }$ , and $c ( \\rho _ { i } , \\rho _ { j } )$ is incremented. This is repeated many times, building up statistics on possible transitions within attribute space. The resulting table represents a transition graph $G$ with vertices given by all the $\\rho$ the agent has seen, and an edge between $\\rho _ { i }$ and $\\rho _ { j }$ counting the number of times the transition between $\\rho _ { i }$ and $\\rho _ { j }$ has occurred. ",
|
| 236 |
+
"bbox": [
|
| 237 |
+
174,
|
| 238 |
+
800,
|
| 239 |
+
825,
|
| 240 |
+
885
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 1
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "text",
|
| 246 |
+
"text": "",
|
| 247 |
+
"bbox": [
|
| 248 |
+
173,
|
| 249 |
+
103,
|
| 250 |
+
823,
|
| 251 |
+
132
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 2
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "This procedure produces the graph $G$ , but the counts in the graph are not normalized probabilities of transitioning from $\\rho _ { i }$ to $\\rho _ { j }$ (as we have never seen any negative samples). Therefore, given a low-level policy $\\pi$ (see Sec. 2.1.3) we can optionally perform a second phase of training to learn the probability that for each $( \\rho _ { i } , \\rho _ { j } )$ in the graph, that if $\\rho _ { i } = f ( s )$ then $\\pi ( s , \\rho _ { i } )$ will succeed at transitioning to $\\rho _ { j }$ . At a random state $s$ with attributes $\\rho _ { i }$ , we pick $\\rho _ { j }$ from the set of goals for which $c ( \\rho _ { i } , \\rho _ { j } ) > 0$ and see if $\\pi$ is able to achieve this goal. While doing this, we keep track of the fraction of attempts for which the policy was successful at this transition and store this probability in $c _ { \\pi } ( \\rho _ { i } , \\rho _ { j } )$ . ",
|
| 258 |
+
"bbox": [
|
| 259 |
+
173,
|
| 260 |
+
138,
|
| 261 |
+
825,
|
| 262 |
+
252
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "2.1.3 LOW LEVEL POLICY $\\pi$ ",
|
| 269 |
+
"text_level": 1,
|
| 270 |
+
"bbox": [
|
| 271 |
+
174,
|
| 272 |
+
268,
|
| 273 |
+
382,
|
| 274 |
+
282
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "Finally, we need to train a policy network $\\pi = \\pi ( s , \\rho _ { g } )$ to solve simple tasks, i.e. those that require a few actions to move between nearby attribute sets. One way of training $\\pi$ is as an “inverse model” in the style of Agrawal et al. (2016); Andrychowicz et al. (2017). In the first phase of training the graph, suppose we sample each initial state $s _ { 0 }$ and an action sequence $[ a _ { 0 } , a _ { 1 } , . . . , a _ { k } ]$ from the exploration policy, causing the agent to arrive at a new state with attributes $\\rho _ { 1 }$ . We then treat $a _ { 0 }$ as the “correct” action for $\\pi ( s _ { 0 } , \\rho _ { 1 } )$ and update its parameters for this target. Alternatively, $\\pi$ can be trained using reinforcement learning. After an initial graph $c$ is constructed, tasks can be chosen by sampling from states nearby the initial or current state properties. ",
|
| 281 |
+
"bbox": [
|
| 282 |
+
173,
|
| 283 |
+
292,
|
| 284 |
+
825,
|
| 285 |
+
405
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "text",
|
| 291 |
+
"text": "2.2 EVALUATING THE MODEL ",
|
| 292 |
+
"text_level": 1,
|
| 293 |
+
"bbox": [
|
| 294 |
+
174,
|
| 295 |
+
424,
|
| 296 |
+
392,
|
| 297 |
+
438
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "Once the model has been built we can use it for planning. That is, given an input state $s$ and target set of attributes $\\rho _ { T }$ , we find a path $[ \\rho _ { 0 } , \\rho _ { 1 } , . . . , \\rho _ { m } ]$ on the graph $G$ with $\\rho _ { 0 } = f ( s )$ and $\\rho _ { m } = \\rho _ { T }$ maximizing ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
450,
|
| 307 |
+
825,
|
| 308 |
+
493
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "equation",
|
| 314 |
+
"img_path": "images/0b299f9ab4cb3b839c7e98bc6921e62f6d64da9d1a1b5fbe93046c59a5a845b9.jpg",
|
| 315 |
+
"text": "$$\n\\sum _ { i = 0 } ^ { m - 1 } \\log c _ { \\pi } ( \\rho _ { i } , \\rho _ { i + 1 } ) .\n$$",
|
| 316 |
+
"text_format": "latex",
|
| 317 |
+
"bbox": [
|
| 318 |
+
426,
|
| 319 |
+
494,
|
| 320 |
+
570,
|
| 321 |
+
537
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 2
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "The optimal path can be found using Dijkstra’s algorithm with a distance metric of $- \\log ( c _ { \\pi } ( \\rho _ { i } , \\rho _ { i + 1 } ) )$ . The policy is then used to move along the resulting path between attribute set, i.e. we take actions according to $a = \\pi ( s , \\rho _ { 1 } )$ , then once ${ \\bar { f ( s ) } } = \\rho _ { 1 }$ , we change to $a = \\pi ( s , \\rho _ { 2 } )$ and so on. At each intermediate step, if the current attributes don’t match the attributes on the computed path, then a new path is computed using the current attributes as a starting point (or, equivalently, the whole path is recomputed at each step). ",
|
| 328 |
+
"bbox": [
|
| 329 |
+
173,
|
| 330 |
+
542,
|
| 331 |
+
825,
|
| 332 |
+
627
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 2
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "3 RELATED WORK ",
|
| 339 |
+
"text_level": 1,
|
| 340 |
+
"bbox": [
|
| 341 |
+
176,
|
| 342 |
+
648,
|
| 343 |
+
341,
|
| 344 |
+
665
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "Hierarchical RL Many researchers have recognized the importance of methods that can divide a MDP into subprocesses (Thrun & Schwartz, 1994; Parr & Russell, 1998; Sutton et al., 1999; Dietterich, 2000). Perhaps the most standard formalism today is the options framework of (Sutton et al., 1999), which deals with multistep “macro-actions” in the setting of reinforcement learning. Recent works, like Kulkarni et al. (2016), have shown how options can be used with function approximation via deep learning. ",
|
| 351 |
+
"bbox": [
|
| 352 |
+
174,
|
| 353 |
+
681,
|
| 354 |
+
825,
|
| 355 |
+
766
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 2
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"text": "Our work is also a hierarchical approach to controlling an agent in a Markovian environment. However, the paradigm we consider differs from reinforcement learning: we consider a setup where no reward or supervision is provided other than the $( s , \\rho ( s ) )$ pairs, and show than an agent can learn to decompose a transition between far away $\\rho , \\rho ^ { \\prime }$ into a sequence of short transitions. If we were to frame the problem as HRL, considering each $\\pi ( \\cdot , \\rho )$ as a macro action2, in order for the agent to learn to sequence the $\\pi ( \\cdot , \\rho _ { i } )$ , the environment would need to give reward for the completion of complex tasks, not just simple ones. ",
|
| 362 |
+
"bbox": [
|
| 363 |
+
173,
|
| 364 |
+
772,
|
| 365 |
+
825,
|
| 366 |
+
871
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 2
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "text",
|
| 372 |
+
"text": "As opposed to e.g. Kulkarni et al. (2016), where additional human supervision is used to allow exploration in the face of extremely sparse rewards, our goal is to show that adding human supervision to parameterize the task space via attributes allows compositionality through planning. ",
|
| 373 |
+
"bbox": [
|
| 374 |
+
174,
|
| 375 |
+
103,
|
| 376 |
+
823,
|
| 377 |
+
146
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 3
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "Horde and descendants Our work is related to generalized value functions (Sutton et al., 2011) in that we have policies parameterized by state and target attributes. In particular, if we used a parameterized model for $c$ , it would be similar to the factored state-goal representation in Schaul et al. (2015). Recently, van Seijen et al. (2017) used human provided attributes as a general value function (GVF) in Ms. Pacman, showing that using a weighted combination of these can lead to higher scores than standard rewards. Although the representation used in that work is similar to the one we use, the motivation in our work is to allow generalization to new tasks; and we use the attributes to plan, rather than just as tools for building a reactive policy. ",
|
| 384 |
+
"bbox": [
|
| 385 |
+
174,
|
| 386 |
+
152,
|
| 387 |
+
825,
|
| 388 |
+
263
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "Factored MDP and Relational MDP Our approach is closely related to factored MDP (Boutilier et al., 1995; 2000; Guestrin et al., 2003b). In these works, it is assumed that the environment can be represented by discrete attributes, and that transitions between the attributes by an action can be modeled as a Bayesian network. The value of each attribute after an action is postulated to depend in a known way on attributes from before the action. The present work differs from these in that the attributes do not determine the state and the dependency graph is not assumed to be known. More importantly, the focus in this work is on organizing the space of tasks through the attributes rather than being able to better plan a specific task; and in particular being able to generalize to new, more complex tasks at test time. ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
174,
|
| 397 |
+
270,
|
| 398 |
+
825,
|
| 399 |
+
395
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "Our approach is also related to Relational MDP and Object Oriented MDP (Hernandez-Gardiol & Kaelbling, 2003; van Otterlo, 2005; Diuk et al., 2008; Abel et al., 2015), where states are described as a set of objects, each of which is an instantiation of canonical classes, and each instantiated object has a set of attributes. Our work is especially related to Guestrin et al. (2003a), where the aim is to show that by using a relational representation of an MDP, a policy from one domain can generalize to a new domain. However, in the current work, the attributes are taken directly as functions of the state, as opposed to defined for object classes, and we do not have any explicit encoding of how objects interact. The model is given some examples of various attributes, and builds a parameterized model that maps into the attributes. ",
|
| 406 |
+
"bbox": [
|
| 407 |
+
174,
|
| 408 |
+
402,
|
| 409 |
+
825,
|
| 410 |
+
527
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "The Programmable Agents of Denil et al. (2017) put the notions of objects and attributes (as in relational MDP) into an end-to-end differentiable neural architecture. Our work is similar to this one in that it includes learned mappings from states to attributes $\\hat { f }$ in our work, detectors in theirs; although we do not learn these end-to-end), and experiments in the setting of manipulating blocks in a physics simulator. On the other hand, our model uses explicit search instead of an end-to-end neural architecture to reason over attributes. Moreover, in Denil et al. (2017), the agent is trained and tested on similar tasks, but the object properties at test are novel; whereas our model is trained on simple tasks but generalizes to complex ones. ",
|
| 417 |
+
"bbox": [
|
| 418 |
+
174,
|
| 419 |
+
535,
|
| 420 |
+
825,
|
| 421 |
+
648
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 3
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "Lifelong learning, multitask learning, and zero-shot learning ",
|
| 428 |
+
"text_level": 1,
|
| 429 |
+
"bbox": [
|
| 430 |
+
174,
|
| 431 |
+
655,
|
| 432 |
+
596,
|
| 433 |
+
670
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "There is a large literature on quickly adapting to a new learning problem given a set or a history of related learning problems. Our approach in this work shares ideas with the one in Isele et al. (2016), where tasks are augmented with descriptors and featurized. Our attributes correspond to these features. In that work, the coefficients of the task features in a sparse dictionary are used to weight a set of vectors defining the model for the associated task. In our work, the low level actor takes in the task features, but we learn how to transit between sets of features, and plan in that space. Similarly, the task is specified by a feature as an input into a model in Lopez-Paz & Ranzato (2017), again this corresponds to the way our low-level actor processes its goal. ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
676,
|
| 443 |
+
825,
|
| 444 |
+
787
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "Several recent deep reinforcement learning works have used modular architectures and hierarchy to achieve generalization to new tasks. For example, Tessler et al. (2017) uses pre-trained skills for transfer. Oh et al. (2017) uses a meta-controller that selects parameterized skills and analogical supervision on outer-product structured tasks. Our assignments of attributes serves a similar purpose to their analogical supervision, and we use parameterized skills as these works do. However, our “meta-controller” is the search over attributes, rather than a reactive model. ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
174,
|
| 453 |
+
795,
|
| 454 |
+
825,
|
| 455 |
+
878
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 3
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "In Andreas et al. (2017), generalization is achieved through supervision in the form of “policy sketches”, which are symbolic representations of the high level steps necessary to complete a given task. The low level steps in executing modules in the sketches are composable. Our work is similar in that high level annotation is used to enable generalization, but the mechanism in this work is different. Note that the approaches in Andreas et al. (2017); Oh et al. (2017) are complementary to the one described here; in future work we wish to explore combining them. ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
174,
|
| 464 |
+
886,
|
| 465 |
+
823,
|
| 466 |
+
914
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 3
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "",
|
| 473 |
+
"bbox": [
|
| 474 |
+
174,
|
| 475 |
+
103,
|
| 476 |
+
823,
|
| 477 |
+
159
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 4
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "Semiparametric methods In this work we use an explicit memory of sets of attributes the model has seen. Several previous works have used non-parametric memories for lowering the sample complexity of learning, e.g. Blundell et al. (2016); Pritzel et al. (2017). Like these, we lean on the fact that with a good representation of a state, it can be useful to memorize what to do in given situation (having only done it a small number of times) and explicitly look it up. In our case, the “good representation” is informed by the user-specified attributes. ",
|
| 484 |
+
"bbox": [
|
| 485 |
+
173,
|
| 486 |
+
166,
|
| 487 |
+
825,
|
| 488 |
+
250
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 4
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "Our approach is also related to Machado et al. (2017), which builds up a multiscale representation of an MDP using Eigenvectors of the transition matrix of the MDP, in the sense that we collect data on possible transitions between attributes in a first phase of training, and then use this knowledge at test time. ",
|
| 495 |
+
"bbox": [
|
| 496 |
+
174,
|
| 497 |
+
257,
|
| 498 |
+
823,
|
| 499 |
+
313
|
| 500 |
+
],
|
| 501 |
+
"page_idx": 4
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"type": "text",
|
| 505 |
+
"text": "Attributes in vision Farhadi et al. (2009) and Lampert et al. (2009) explore visual attributes as a natural intermediate representation for object recognition tasks, demonstrating their effectiveness in one/low-shot settings. Subsequent work has applied the concept to fine-grained recognition (Duan et al., 2012), people’s appearance/clothing (Zhang et al., 2014) and relative judgements (Parikh & Grauman, 2011). However, all these are static I.I.D settings, in contrast to dynamic agent/environment that this work explores. ",
|
| 506 |
+
"bbox": [
|
| 507 |
+
174,
|
| 508 |
+
319,
|
| 509 |
+
825,
|
| 510 |
+
404
|
| 511 |
+
],
|
| 512 |
+
"page_idx": 4
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"type": "text",
|
| 516 |
+
"text": "4 EXPERIMENTS ",
|
| 517 |
+
"text_level": 1,
|
| 518 |
+
"bbox": [
|
| 519 |
+
176,
|
| 520 |
+
422,
|
| 521 |
+
326,
|
| 522 |
+
439
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 4
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "We evaluate our approach (Attribute Planner, abbreviated to $A P$ ) in three different environments. The first two are randomly generated grid-worlds, and the third is a simulation of stacking blocks. In each environment, the goal of the model is to be able to generalize to testing on complex tasks from training on simpler tasks. ",
|
| 529 |
+
"bbox": [
|
| 530 |
+
174,
|
| 531 |
+
454,
|
| 532 |
+
823,
|
| 533 |
+
511
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 4
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "We compare against baseline policies trained in several ways. These baseline policies take the state and goal as inputs, and use the same neural network architecture as the policy used for the Attribute Planner. ",
|
| 540 |
+
"bbox": [
|
| 541 |
+
176,
|
| 542 |
+
517,
|
| 543 |
+
823,
|
| 544 |
+
559
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 4
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "1. Reinforcement Learning: Policies trained via reinforcement learning with A3C (Mnih et al., 2016) or Reinforce. We consider three variants of training: (i) training only with nearby goals (one attribute transition for grid-world; single actions for block stacking); (ii) training on the evaluation tasks; and (iii) training on a curriculum that transitions from nearby goals to evaluation tasks. Policies (ii) and (iii) are trained on full sequences, thus have an inherent advantage over our model, which only sees short sequences during training. \n2. Inverse: An inverse model trained in a “supervised” fashion on a dataset of observed trajectories to predict the next action given the state and goal. We train on nearby goals and on longer multi-step tasks. ",
|
| 551 |
+
"bbox": [
|
| 552 |
+
212,
|
| 553 |
+
569,
|
| 554 |
+
823,
|
| 555 |
+
713
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 4
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "4.1 2-D WORLDS ",
|
| 562 |
+
"text_level": 1,
|
| 563 |
+
"bbox": [
|
| 564 |
+
174,
|
| 565 |
+
729,
|
| 566 |
+
308,
|
| 567 |
+
743
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 4
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": "We implemented two types of small 2- $. D$ environments in Mazebase (Sukhbaatar et al., 2015), where the worlds are randomly generated for each episode. The action space for each consists of movements in the four cardinal directions, and additional environment specific actions. ",
|
| 574 |
+
"bbox": [
|
| 575 |
+
176,
|
| 576 |
+
756,
|
| 577 |
+
823,
|
| 578 |
+
797
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 4
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "text",
|
| 584 |
+
"text": "Colored Switches The first environment consists of four switches, each with four possible colors. An extra toggle action cycles the color of a switch if the agent is standing on it. The attributes for this environment are the states of the switches; and the tasks are to change the switches into a specified configuration, as shown in Fig. 2(right). The locations and colors of the switches are randomly initialized for each episode. ",
|
| 585 |
+
"bbox": [
|
| 586 |
+
176,
|
| 587 |
+
805,
|
| 588 |
+
823,
|
| 589 |
+
875
|
| 590 |
+
],
|
| 591 |
+
"page_idx": 4
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"type": "text",
|
| 595 |
+
"text": "Crafting In the second environment, similar to the one used in Andreas et al. (2017) an agent needs to collect resources and combine them to form items. In addition to moving in the cardinal directions, the agent has a “grab” action that allows it to pick up a resource from the current location and add it to its inventory. If there is no item where the agent is standing, this action does nothing. The agent also has a “craft” action that combines a set of items to create a new item if the agent has the prerequisite items in its inventory and the agent is standing on a special square (a “crafting table”) corresponding to the item to be crafted. If these two conditions are not both met, the “craft” action does nothing. The attributes for this environment are the items in the inventory, and task is to add a specified item to the inventory. In the environment, there are three types of resources and three types of products (see Fig. 2(left)). The episodes are initialized randomly by removing some resources, and adding some items to the inventory. ",
|
| 596 |
+
"bbox": [
|
| 597 |
+
176,
|
| 598 |
+
882,
|
| 599 |
+
823,
|
| 600 |
+
924
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 4
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "",
|
| 607 |
+
"bbox": [
|
| 608 |
+
173,
|
| 609 |
+
103,
|
| 610 |
+
825,
|
| 611 |
+
215
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 5
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "image",
|
| 617 |
+
"img_path": "images/90bf30f100a426d3873f3b1558a4c751c1d2761eee1695cfb6bb790c71fe9f95.jpg",
|
| 618 |
+
"image_caption": [
|
| 619 |
+
"! + ! = + + ! =+ + ! =Figure 2: Left: Crafting mazebase game. Right: Colored switches game. See text for details. "
|
| 620 |
+
],
|
| 621 |
+
"image_footnote": [],
|
| 622 |
+
"bbox": [
|
| 623 |
+
241,
|
| 624 |
+
233,
|
| 625 |
+
750,
|
| 626 |
+
344
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 5
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "1 1The observation is given as a bag of words in both environments, where the words correspond to (feature, location). Features consist of item types, names, and their other properties. The locations 1include position relative to the agent in the maze, and also a few special slots for inventory, current, and target attributes. ",
|
| 633 |
+
"bbox": [
|
| 634 |
+
173,
|
| 635 |
+
375,
|
| 636 |
+
825,
|
| 637 |
+
430
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 5
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "The first phase building the high level transitions as in Section 2.1.2 is done by running a random 1 1agent in the environment from a random state until one or more attributes change. Then this change of attribute is recorded as an edge in graph $G$ . The low level policy is trained concurrently with the second phase of Section 2.1.2. We use the current edge estimates in the graph to propose a target set of attributes, and the low level policy is trained with the Reinforce algorithm (Williams, 1992) to reach that set of attributes from the current state. These training episodes terminate when the task completes or after 80 steps; and a reward of -0.1 is given at every step to encourage the agent to complete the task quickly. The policy network is a fully connected network with two hidden layers of 100 units. We run each experiment three times with different random seeds, and report the mean success rate. ",
|
| 644 |
+
"bbox": [
|
| 645 |
+
173,
|
| 646 |
+
438,
|
| 647 |
+
825,
|
| 648 |
+
577
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 5
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "In the switches environment, multi-step (test) tasks are generated by setting a random attribute as target, which can require up to 12 attribute transitions. In the crafting environment, multi-step (test) tasks are generated by randomly selecting an item as a target. Since we do not care about other items in the inventory, the target state is underspecified. Some tasks are pre-solved because the randomly chosen target item can already be in the inventory. However, such tasks have no effect on training and are also removed during testing. ",
|
| 655 |
+
"bbox": [
|
| 656 |
+
174,
|
| 657 |
+
583,
|
| 658 |
+
825,
|
| 659 |
+
667
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 5
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "In curriculum training which we use as a baseline, we gradually increase the upper bound on the difficulty of tasks. In the switches environment, the difficulty corresponds to the number of toggles necessary for solving the task. The craft environment has two levels of difficulty: tasks can be completed by a single grab or craft action, and tasks that require multiple such actions. ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
173,
|
| 668 |
+
674,
|
| 669 |
+
825,
|
| 670 |
+
731
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 5
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "During the second phase of training, we simultaneously compute the transition function $c _ { \\pi } ( \\rho _ { i } , \\rho _ { j } )$ using an exponentially decaying average of success rates of the low level policy $\\pi$ : ",
|
| 677 |
+
"bbox": [
|
| 678 |
+
173,
|
| 679 |
+
737,
|
| 680 |
+
823,
|
| 681 |
+
766
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 5
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "equation",
|
| 687 |
+
"img_path": "images/77129c3880f0194beedf8e4e4d006ca6fc8f5bfcd1a0b98c75d6b36bad52d10f.jpg",
|
| 688 |
+
"text": "$$\nc _ { \\pi } ( \\rho _ { i } , \\rho _ { j } ) = \\frac { \\sum _ { t = 1 } ^ { T } \\gamma ^ { T - t } M _ { \\pi } ^ { t } ( \\rho _ { i } , \\rho _ { j } ) } { \\sum _ { t = 1 } ^ { T } \\gamma ^ { T - t } N _ { \\pi } ^ { t } ( \\rho _ { i } , \\rho _ { j } ) } ,\n$$",
|
| 689 |
+
"text_format": "latex",
|
| 690 |
+
"bbox": [
|
| 691 |
+
374,
|
| 692 |
+
779,
|
| 693 |
+
622,
|
| 694 |
+
820
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 5
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "where $T$ is the number of training epochs, $N _ { \\pi } ^ { t }$ is the number of task $( \\rho _ { i } , \\rho _ { j } )$ during epoch $t$ , and $M _ { \\pi } ^ { t }$ is the number of successful episodes among them. A decay rate of $\\gamma = 0 . 9$ is used. ",
|
| 701 |
+
"bbox": [
|
| 702 |
+
173,
|
| 703 |
+
832,
|
| 704 |
+
821,
|
| 705 |
+
861
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 5
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "Table 1 compares our Attribute Planner (AP) model to a Reinforce baseline on the Crafting and Colored Switches tasks. In all cases, the baseline performs poorly, while the AP model has a high success rate. The importance of the graph is apparent: when it is removed (Reinforce method) the performance drops significantly on multi-step tasks. ",
|
| 712 |
+
"bbox": [
|
| 713 |
+
174,
|
| 714 |
+
867,
|
| 715 |
+
825,
|
| 716 |
+
924
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 5
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "table",
|
| 722 |
+
"img_path": "images/a4c3024cf16429bb6f83f8d8e6bc2af3fac2e6327a0aed3a75f8e3f2c9a78093.jpg",
|
| 723 |
+
"table_caption": [
|
| 724 |
+
"Table 1: Task success rate on Mazebase environments. Our Attribute Planner (AP) approach performs much better than the reactive policies trained with Reinforce. The addition of the attribute graph (over Reinforce only model) is crucial for multi-step evaluation tasks. "
|
| 725 |
+
],
|
| 726 |
+
"table_footnote": [],
|
| 727 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Training data</td><td colspan=\"2\">Switches</td><td colspan=\"2\">Crafting</td></tr><tr><td>single</td><td>multi</td><td>single</td><td>multi</td></tr><tr><td>Reinforce</td><td>multi-step</td><td>0.0%</td><td>0.0%</td><td>45.7%</td><td>28.6%</td></tr><tr><td>Reinforce</td><td> multi-step + curriculum</td><td>33.6%</td><td>33.3%</td><td>94.9%</td><td>83.9%</td></tr><tr><td>Reinforce</td><td>one-step</td><td>99.0%</td><td>15.4%</td><td>98.7%</td><td>49.0%</td></tr><tr><td>AP</td><td>one-step</td><td>99.0%</td><td>83.1%</td><td>98.7%</td><td>96.2%</td></tr></table>",
|
| 728 |
+
"bbox": [
|
| 729 |
+
238,
|
| 730 |
+
101,
|
| 731 |
+
759,
|
| 732 |
+
200
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 6
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "4.2 STACKING BLOCKS ",
|
| 739 |
+
"text_level": 1,
|
| 740 |
+
"bbox": [
|
| 741 |
+
176,
|
| 742 |
+
281,
|
| 743 |
+
349,
|
| 744 |
+
295
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 6
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "text",
|
| 750 |
+
"text": "We consider a 3D block stacking task in the Mujoco environment Todorov et al. (2012). There are 4 blocks of different colors, and actions consist of dropping a block in a $3 \\times 3$ grid of positions, resulting in 36 total actions. A block cannot be moved when it is underneath another block, so some actions have no effect. The input to the model is the observed image, and there are a total of 36 binary properties corresponding to the relative $\\mathbf { X }$ and y positions of the blocks and whether blocks are stacked on one another. For example, one property corresponds to “blue is on top of yellow”. Each training episode is initiated from a random initial state and lasts only one step, i.e. dropping a single block in a new location. ",
|
| 751 |
+
"bbox": [
|
| 752 |
+
174,
|
| 753 |
+
308,
|
| 754 |
+
825,
|
| 755 |
+
420
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 6
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"text": "The policy network takes (i) a $1 2 8 \\times 1 2 8$ image, which is featurized by a CNN with five convolutional layers and one fully connected (fc) layer to produce a 128d vector; and (ii) goal properties expressed as a 48d binary vector, which are transformed to a 128d vector. The two 128d vectors are concatenated and combined by two fc layers followed by softmax to produce an output distribution over actions. We use an exponential linear nonlinearity after each layer. ",
|
| 762 |
+
"bbox": [
|
| 763 |
+
174,
|
| 764 |
+
426,
|
| 765 |
+
825,
|
| 766 |
+
496
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 6
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "text",
|
| 772 |
+
"text": "Table 2 compares the performance of different models on several block stacking tasks. In the onestep task, a goal is chosen that is the result of taking a single random action. In the multi-step task, the goal is chosen as the properties of a new random initialization. These tasks typically require $3 - 8$ steps to complete. In the 4-stack task, the goal is a vertical stack of blocks in the order red, green, blue, yellow. We compare the performance of our model to reactive policy baselines trained on single-step tasks, complex multi-step tasks or with a curriculum of both. We perform each evaluation task 1000 times. ",
|
| 773 |
+
"bbox": [
|
| 774 |
+
173,
|
| 775 |
+
502,
|
| 776 |
+
825,
|
| 777 |
+
601
|
| 778 |
+
],
|
| 779 |
+
"page_idx": 6
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"type": "text",
|
| 783 |
+
"text": "The single-step reactive policies perform well on single step tasks (which are what it sees at train time), but perform much worse compared to the AP model when transferred to multi-step tasks. The AP model without the second step of training that learns $c _ { \\pi }$ also performs substantially worse on multi-step tasks, demonstrating the importance of properly normalized transition probabilities to avoid aliased states. ",
|
| 784 |
+
"bbox": [
|
| 785 |
+
174,
|
| 786 |
+
607,
|
| 787 |
+
825,
|
| 788 |
+
678
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 6
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "The rightmost two columns of Table 2 consider underspecified goals, where only a subset of the attributes are provided. These are identical to their fully-specified counterparts, except that each attribute is left unspecified with probability $30 \\%$ . The AP model handles these naturally by finding the shorted path to any satisfactory attribute set. We consider reactive baselines that are trained on the same distribution of underspecified attribute sets. Despite this, we observe that reactive policy performance degrades when goals are underspecified, while our AP model does not. ",
|
| 795 |
+
"bbox": [
|
| 796 |
+
174,
|
| 797 |
+
684,
|
| 798 |
+
823,
|
| 799 |
+
768
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 6
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "text",
|
| 805 |
+
"text": "The attribute detector $\\hat { f }$ predicts the full attribute set with $< 0 . 1 \\%$ error when trained on the full dataset of 1 million examples. If trained on only 10,000 examples, the attribute detector has an error rate of $1 . 4 \\%$ . Training the AP model with this less-accurate attribute detector degrades multi-step performance by only $0 . 9 \\%$ . ",
|
| 806 |
+
"bbox": [
|
| 807 |
+
174,
|
| 808 |
+
775,
|
| 809 |
+
823,
|
| 810 |
+
833
|
| 811 |
+
],
|
| 812 |
+
"page_idx": 6
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "text",
|
| 816 |
+
"text": "Property Aliasing: The “ignorability” assumption we made in Section 2 is violated in the block stacking task. To see why, consider a transition from “red left of blue and yellow” to “red right of blue and yellow”. This can typically be accomplished in one step, but if blue and yellow are already on the far right, it cannot. Thus, states where this transition are possible and impossible are aliased with the same properties. This is the dominant source of errors on the multi-step task when trained on large sample sizes (in fact, it is the only source of errors as the policy approaches $1 0 0 \\%$ ",
|
| 817 |
+
"bbox": [
|
| 818 |
+
173,
|
| 819 |
+
840,
|
| 820 |
+
825,
|
| 821 |
+
924
|
| 822 |
+
],
|
| 823 |
+
"page_idx": 6
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"type": "table",
|
| 827 |
+
"img_path": "images/97cefae6f4a25c134baed4690fefe030b065d411d2535d16a47dea4aa6161483.jpg",
|
| 828 |
+
"table_caption": [
|
| 829 |
+
"Table 2: Model comparison on block stacking task accuracy. Baselines marked ‘multi-step’ or ‘curriculum‘ get to see complex multi-step tasks at train time. The Attribute Planner (AP) generalizes from one-step training to multi-step and underspecified tasks with high accuracy, while reinforcement learning and inverse model training do not. AP outperforms A3C even with a curriculum of tasks. Ablating the normalized graph transition table $c _ { \\pi }$ degrades AP performance substantially on multi-step tasks due to aliasing. Inverse one-step model was trained on 2 million examples, inverse multi-step and AP models were trained on 1 million examples, A3C models were trained to convergence. "
|
| 830 |
+
],
|
| 831 |
+
"table_footnote": [],
|
| 832 |
+
"table_body": "<table><tr><td>Model</td><td>Training Data</td><td>one-step</td><td>multi-step</td><td>4-stack</td><td>one-step underspecified</td><td>multi-step</td></tr><tr><td>A3C</td><td>one-step</td><td>98.5%</td><td>8.1%</td><td>1.9%</td><td>65.7%</td><td>6.6%</td></tr><tr><td>A3C</td><td>multi-step</td><td>2.6%</td><td>0%</td><td>0%</td><td>5.3%</td><td>0%</td></tr><tr><td>A3C</td><td>curriculum</td><td>98.2%</td><td>17%</td><td>2.9%</td><td>8.2%</td><td>0.2%</td></tr><tr><td>Inverse</td><td>one-step</td><td>100%</td><td>9.1%</td><td>0.5%</td><td>98.8%</td><td>18.8%</td></tr><tr><td>Inverse</td><td>multi-step</td><td>94.1%</td><td>13.7%</td><td>4.6%</td><td>71.2%</td><td>9.6%</td></tr><tr><td>AP (no Cπ)</td><td> one-step</td><td>74.5%</td><td>29.7%</td><td>62.2%</td><td>81.8%</td><td>28.1%</td></tr><tr><td>AP</td><td>one-step</td><td>98.8%</td><td>66.7%</td><td>98.5%</td><td>97.8%</td><td>63.5%</td></tr></table>",
|
| 833 |
+
"bbox": [
|
| 834 |
+
212,
|
| 835 |
+
101,
|
| 836 |
+
785,
|
| 837 |
+
242
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 7
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "table",
|
| 843 |
+
"img_path": "images/d94ce6877d1871186eb83817ffa1d1a005b5a2ab4d985ac0b3c9929066073333.jpg",
|
| 844 |
+
"table_caption": [],
|
| 845 |
+
"table_footnote": [],
|
| 846 |
+
"table_body": "<table><tr><td rowspan=\"2\"># of Training Examples</td><td colspan=\"2\">Inverse</td><td colspan=\"2\">AP</td></tr><tr><td>one-step</td><td>multi-step</td><td>one-step</td><td>multi-step</td></tr><tr><td>10,000</td><td>35.5%</td><td>1.6%</td><td>50.0%</td><td>3.0%</td></tr><tr><td>100,000</td><td>99.9%</td><td>7.8%</td><td>89.0%</td><td>47.0%</td></tr><tr><td>1,000,000</td><td>100%</td><td>9.1%</td><td>98.9%</td><td>66.7%</td></tr><tr><td>10,000,000</td><td>100%</td><td>8.5%</td><td>96.5%</td><td>70.7%</td></tr></table>",
|
| 847 |
+
"bbox": [
|
| 848 |
+
284,
|
| 849 |
+
382,
|
| 850 |
+
714,
|
| 851 |
+
482
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 7
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "text",
|
| 857 |
+
"text": "Table 3: Effect of the number of (one-step) training examples on one-step and multi-step performance, for an inverse model and the Attribute Planner model. The inverse models are trained on $2 \\mathbf { x }$ the samples, including the samples generated from learning $c _ { \\pi }$ in our AP method. ",
|
| 858 |
+
"bbox": [
|
| 859 |
+
176,
|
| 860 |
+
498,
|
| 861 |
+
823,
|
| 862 |
+
541
|
| 863 |
+
],
|
| 864 |
+
"page_idx": 7
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"type": "text",
|
| 868 |
+
"text": "accuracy and the graph becomes complete). Figure 4 shows an example plan that becomes stuck due to aliasing. ",
|
| 869 |
+
"bbox": [
|
| 870 |
+
174,
|
| 871 |
+
565,
|
| 872 |
+
823,
|
| 873 |
+
594
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 7
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "text",
|
| 879 |
+
"text": "The second step of training, that computes the probability of $\\pi$ transitioning on each edge, is important for mitigating the effects of aliasing in the block stacking task. The graph search finds the path with the highest probability of success (i.e. the product of probabilities on each edge), so it avoids edges that have high aliasing. In the AP model trained on one million samples, the second step of training improves multi-step performance from $2 9 . 7 \\%$ to $6 6 . 7 \\%$ , as shown in Table 2. ",
|
| 880 |
+
"bbox": [
|
| 881 |
+
174,
|
| 882 |
+
599,
|
| 883 |
+
825,
|
| 884 |
+
670
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 7
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "text",
|
| 890 |
+
"text": "5 DISCUSSION ",
|
| 891 |
+
"text_level": 1,
|
| 892 |
+
"bbox": [
|
| 893 |
+
174,
|
| 894 |
+
690,
|
| 895 |
+
310,
|
| 896 |
+
707
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 7
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "Our results show that structuring the space of tasks with high level attributes allows an agent to compose policies for the solutions of simple tasks into solutions of more complex tasks. The agent plans a path to the final goal at the level of the attributes, and executes the steps in this path with a reactive policy. Thus, supervision of an agent by labeling attributes can lead to generalization from simple tasks at train time to more complex tasks at test time. Nevertheless, there are many fronts for further work: ",
|
| 903 |
+
"bbox": [
|
| 904 |
+
173,
|
| 905 |
+
722,
|
| 906 |
+
825,
|
| 907 |
+
804
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 7
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "Sample complexity of the planning module: In Table 5 we can see both the benefits and the liabilities of the explicit non-parametric form for $c$ . By 10K samples, the parametric lower level policy is already able to have a reasonable success rate. However, because in this environment, there are roughly 200K edges in the graph, most of the edges have not been seen, and without any weight-sharing, our model cannot estimate these transition probabilities. On the other hand, by 100K samples the model has seen enough of the graph to make nontrivial plans; and the non-parametric form of the graph makes planning straightforward. In future work, we hope to combine parametric models for $c$ with search to increase the sample efficiency of the planning module. Alternatively, we might hope to make progress on dynamic abstraction (projecting out some of the attributes) depending on the current state and goal, which would make the effective number of edges of the graph smaller. ",
|
| 914 |
+
"bbox": [
|
| 915 |
+
174,
|
| 916 |
+
811,
|
| 917 |
+
825,
|
| 918 |
+
924
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 7
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "image",
|
| 924 |
+
"img_path": "images/28355570631ffc144872cd6f11841f5407f326abc233c5b68f14159249e3594a.jpg",
|
| 925 |
+
"image_caption": [
|
| 926 |
+
"Figure 3: Two examples of block stacking evaluation tasks. The initial/target states are shown in the first/last columns. Successful completions of our Attribute Planner model are shown in rows 1 and 3. By contrast, the A3C baseline is unable to perform the tasks (rows 2 and 4). "
|
| 927 |
+
],
|
| 928 |
+
"image_footnote": [],
|
| 929 |
+
"bbox": [
|
| 930 |
+
173,
|
| 931 |
+
102,
|
| 932 |
+
825,
|
| 933 |
+
407
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 8
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "image",
|
| 939 |
+
"img_path": "images/35f4098d826e9a1a5ae3af6917e525e9329c4b3a9e2f382cb0d7bf06f8ec0fc0.jpg",
|
| 940 |
+
"image_caption": [
|
| 941 |
+
"Figure 4: Plans become stuck when states with different transitions map to the same properties. In frame 4 of this example, the policy is directed to place the green block in front of the red and blue blocks, but this is impossible because the blue and red are already in the frontmost position. "
|
| 942 |
+
],
|
| 943 |
+
"image_footnote": [],
|
| 944 |
+
"bbox": [
|
| 945 |
+
174,
|
| 946 |
+
484,
|
| 947 |
+
825,
|
| 948 |
+
551
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 8
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "",
|
| 955 |
+
"bbox": [
|
| 956 |
+
174,
|
| 957 |
+
637,
|
| 958 |
+
825,
|
| 959 |
+
679
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 8
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "Exploration Although we discuss an agent in an environment, we have elided many of the difficult problems of reinforcement learning. In particular, the environments considered in this work allow sampling low level transitions by starting at random states and following random policies, and these are sufficient to cover the state space, although we note that the method for training the model described in Section 2.1 allows for more sophisticated exploration policies. Thus we sidestep the exploration problem, one of the key difficulties of reinforcement learning. Nevertheless, building composable models even in this setting is nontrivial, and our view is that it is important to demonstrate success here (and decouple issues of exploration and composability) before moving on to the full RL problem. ",
|
| 966 |
+
"bbox": [
|
| 967 |
+
174,
|
| 968 |
+
686,
|
| 969 |
+
825,
|
| 970 |
+
811
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 8
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "We believe that the attributes $\\rho$ and $c$ , in addition to their usefulness for planning, provide a framework for incentivizing exploration. The agent can be rewarded for finding unseen (or rarely-seen) high level transitions, or for validating or falsifying hypotheses about the existence of entries of $c$ . ",
|
| 977 |
+
"bbox": [
|
| 978 |
+
174,
|
| 979 |
+
819,
|
| 980 |
+
825,
|
| 981 |
+
861
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 8
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "Learning the attributes: Discovering the attributes automatically would remove much of the need for human supervision. Recent work, such as Thomas et al. (2017), demonstrates how this could be done. Another avenue for discovering attributes is to use a few “seed” attributes; and use aliasing as a signal that some attributes need to be refined. ",
|
| 988 |
+
"bbox": [
|
| 989 |
+
174,
|
| 990 |
+
867,
|
| 991 |
+
823,
|
| 992 |
+
922
|
| 993 |
+
],
|
| 994 |
+
"page_idx": 8
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"type": "text",
|
| 998 |
+
"text": "REFERENCES ",
|
| 999 |
+
"text_level": 1,
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
176,
|
| 1002 |
+
103,
|
| 1003 |
+
287,
|
| 1004 |
+
117
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 9
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "David Abel, D. Ellis Hershkowitz, Gabriel Barth-Maron, Stephen Brawner, Kevin O’Farrell, James MacGlashan, and Stefanie Tellex. Goal-based action priors. In ICAPS, pp. 306–314. AAAI Press, 2015. ",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
174,
|
| 1013 |
+
126,
|
| 1014 |
+
825,
|
| 1015 |
+
167
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 9
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "Pulkit Agrawal, Ashvin V Nair, Pieter Abbeel, Jitendra Malik, and Sergey Levine. Learning to poke by poking: Experiential learning of intuitive physics. In D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances in Neural Information Processing Systems 29, pp. 5074–5082. Curran Associates, Inc., 2016. URL http://papers.nips.cc/paper/ 6113-learning-to-poke-by-poking-experiential-learning-of-intuitive-physics. pdf. ",
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
173,
|
| 1024 |
+
179,
|
| 1025 |
+
929,
|
| 1026 |
+
263
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 9
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "text",
|
| 1032 |
+
"text": "Jacob Andreas, Dan Klein, and Sergey Levine. Modular multitask reinforcement learning with policy sketches. In ICML, volume 70 of Proceedings of Machine Learning Research, pp. 166– 175. PMLR, 2017. ",
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
173,
|
| 1035 |
+
273,
|
| 1036 |
+
828,
|
| 1037 |
+
316
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 9
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay. CoRR, abs/1707.01495, 2017. ",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
173,
|
| 1046 |
+
327,
|
| 1047 |
+
823,
|
| 1048 |
+
369
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 9
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "text",
|
| 1054 |
+
"text": "Charles Blundell, Benigno Uria, Alexander Pritzel, Yazhe Li, Avraham Ruderman, Joel Z. Leibo, Jack Rae, Daan Wierstra, and Demis Hassabis. Model-free episodic control. CoRR, abs/1606.04460, 2016. ",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
173,
|
| 1057 |
+
380,
|
| 1058 |
+
823,
|
| 1059 |
+
422
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 9
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "text",
|
| 1065 |
+
"text": "Craig Boutilier, Richard Dearden, and Moises Goldszmidt. Exploiting structure in policy construction. In Proceedings of the 14th International Joint Conference on Artificial Intelligence - Volume 2, IJCAI’95, pp. 1104–1111, San Francisco, CA, USA, 1995. Morgan Kaufmann Publishers Inc. ",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
173,
|
| 1068 |
+
433,
|
| 1069 |
+
825,
|
| 1070 |
+
477
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 9
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "Craig Boutilier, Richard Dearden, and Moises Goldszmidt. Stochastic dynamic programming with´ factored representations. Artif. Intell., 121(1-2):49–107, 2000. ",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
174,
|
| 1079 |
+
486,
|
| 1080 |
+
823,
|
| 1081 |
+
515
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 9
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "Misha Denil, Sergio Gomez Colmenarejo, Serkan Cabi, David Saxton, and Nando de Freitas. Programmable agents. CoRR, abs/1706.06383, 2017. ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
173,
|
| 1090 |
+
525,
|
| 1091 |
+
823,
|
| 1092 |
+
554
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 9
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "Thomas G. Dietterich. Hierarchical reinforcement learning with the maxq value function decomposition. J. Artif. Int. Res., 13(1):227–303, November 2000. ISSN 1076-9757. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
171,
|
| 1101 |
+
564,
|
| 1102 |
+
821,
|
| 1103 |
+
594
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 9
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "Carlos Diuk, Andre Cohen, and Michael L. Littman. An object-oriented representation for efficient reinforcement learning. In ICML, volume 307 of ACM International Conference Proceeding Series, pp. 240–247. ACM, 2008. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
176,
|
| 1112 |
+
604,
|
| 1113 |
+
823,
|
| 1114 |
+
647
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 9
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "Kun Duan, Devi Parikh, David Crandall, and Kristen Grauman. Discovering localized attributes for fine-grained recognition. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2012. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
173,
|
| 1123 |
+
656,
|
| 1124 |
+
825,
|
| 1125 |
+
700
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 9
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "Ali Farhadi, Ian Endres, Derek Hoiem, and David Forsyth. Describing objects by their attributes. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 1778– 1785. IEEE, 2009. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
173,
|
| 1134 |
+
710,
|
| 1135 |
+
825,
|
| 1136 |
+
753
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 9
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "Carlos Guestrin, Daphne Koller, Chris Gearhart, and Neal Kanodia. Generalizing plans to new environments in relational mdps. In Proceedings of the 18th International Joint Conference on Artificial Intelligence, IJCAI’03, pp. 1003–1010, 2003a. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
173,
|
| 1145 |
+
763,
|
| 1146 |
+
823,
|
| 1147 |
+
806
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 9
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "Carlos Guestrin, Daphne Koller, Ronald Parr, and Shobha Venkataraman. Efficient solution algorithms for factored mdps. J. Artif. Intell. Res., 19:399–468, 2003b. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
171,
|
| 1156 |
+
816,
|
| 1157 |
+
823,
|
| 1158 |
+
845
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 9
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Natalia Hernandez-Gardiol and Leslie Pack Kaelbling. Envelope-based planning in relational mdps. In NIPS, pp. 783–790. MIT Press, 2003. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
173,
|
| 1167 |
+
856,
|
| 1168 |
+
821,
|
| 1169 |
+
885
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 9
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "David Isele, Mohammad Rostami, and Eric Eaton. Using task features for zero-shot knowledge transfer in lifelong learning. In IJCAI, pp. 1620–1626. IJCAI/AAAI Press, 2016. ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
174,
|
| 1178 |
+
895,
|
| 1179 |
+
821,
|
| 1180 |
+
924
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 9
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "Tejas D. Kulkarni, Karthik Narasimhan, Ardavan Saeedi, and Josh Tenenbaum. Hierarchical deep reinforcement learning: Integrating temporal abstraction and intrinsic motivation. In NIPS, pp. 3675–3683, 2016. \nChristoph H Lampert, Hannes Nickisch, and Stefan Harmeling. Learning to detect unseen object classes by between-class attribute transfer. In Computer Vision and Pattern Recognition, 2009. CVPR 2009. IEEE Conference on, pp. 951–958. IEEE, 2009. \nDavid Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continuum learning. CoRR, abs/1706.08840, 2017. \nMarlos C. Machado, Marc G. Bellemare, and Michael H. Bowling. A laplacian framework for option discovery in reinforcement learning. In ICML, volume 70 of Proceedings of Machine Learning Research, pp. 2295–2304. PMLR, 2017. \nVolodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, February 2015. \nVolodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. In International Conference on Machine Learning, pp. 1928–1937, 2016. \nJunhyuk Oh, Satinder P. Singh, Honglak Lee, and Pushmeet Kohli. Zero-shot task generalization with multi-task deep reinforcement learning. In ICML, volume 70 of Proceedings of Machine Learning Research, pp. 2661–2670. PMLR, 2017. \nDevi Parikh and Kristen Grauman. Relative attributes. In Computer Vision (ICCV), 2011 IEEE International Conference on, pp. 503–510. IEEE, 2011. \nRonald Parr and Stuart Russell. Reinforcement learning with hierarchies of machines. In Proceedings of the 1997 Conference on Advances in Neural Information Processing Systems 10, NIPS ’97, pp. 1043–1049, Cambridge, MA, USA, 1998. MIT Press. ISBN 0-262-10076-2. \nAlexander Pritzel, Benigno Uria, Sriram Srinivasan, Adria Puigdom \\` enech Badia, Oriol Vinyals, \\` Demis Hassabis, Daan Wierstra, and Charles Blundell. Neural episodic control. In Proceedings of the 34th International Conference on Machine Learning, ICML 2017, Sydney, NSW, Australia, 6-11 August 2017, pp. 2827–2836, 2017. \nScott E. Reed and Nando de Freitas. Neural programmer-interpreters. CoRR, abs/1511.06279, 2015. \nTom Schaul, Daniel Horgan, Karol Gregor, and David Silver. Universal Value Function Approximators. In International Conference on Machine Learning (ICML), 2015. \nDavid Silver, Aja Huang, Chris J. Maddison, Arthur Guez, Laurent Sifre, George van den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, Sander Dieleman, Dominik Grewe, John Nham, Nal Kalchbrenner, Ilya Sutskever, Timothy Lillicrap, Madeleine Leach, Koray Kavukcuoglu, Thore Graepel, and Demis Hassabis. Mastering the game of Go with deep neural networks and tree search. Nature, 529(7587):484–489, January 2016. \nSainbayar Sukhbaatar, Arthur Szlam, Gabriel Synnaeve, Soumith Chintala, and Rob Fergus. Mazebase: A sandbox for learning from games. arXiv preprint arXiv:1511.07401, 2015. \nRichard Sutton, Doina Precup, and Satinder Singh. Between mdps and semi-mdps: A framework for temporal abstraction in reinforcement learning. Artificial Intelligence, 112:181–211, 1999. \nRichard S. Sutton, Joseph Modayil, Michael Delp, Thomas Degris, Patrick M. Pilarski, Adam White, and Doina Precup. Horde: a scalable real-time architecture for learning knowledge from unsupervised sensorimotor interaction. In AAMAS, pp. 761–768. IFAAMAS, 2011. \nChen Tessler, Shahar Givony, Tom Zahavy, Daniel J. Mankowitz, and Shie Mannor. A deep hierarchical approach to lifelong learning in minecraft. In AAAI, pp. 1553–1561. AAAI Press, 2017. \nValentin Thomas, Jules Pondard, Emmanuel Bengio, Marc Sarfati, Philippe Beaudoin, Marie-Jean Meurs, Joelle Pineau, Doina Precup, and Yoshua Bengio. Independently controllable factors. CoRR, abs/1708.01289, 2017. URL http://arxiv.org/abs/1708.01289. \nSebastian Thrun and Anton Schwartz. Finding structure in reinforcement learning. In NIPS, pp. 385–392. MIT Press, 1994. \nEmanuel Todorov, Tom Erez, and Yuval Tassa. Mujoco: A physics engine for model-based control. In IROS, pp. 5026–5033. IEEE, 2012. \nM. van Otterlo. A Survey of Reinforcement Learning in Relational Domains. Number 31 in TRCTIT-05, ISSN 1381-3625. Centre for Telematics and Information Technology University of Twente, 2005. \nHarm van Seijen, Mehdi Fatemi, Joshua Romoff, Romain Laroche, Tavian Barnes, and Jeffrey Tsang. Hybrid reward architecture for reinforcement learning. CoRR, abs/1706.04208, 2017. \nRonald J. Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. In Machine Learning, pp. 229–256, 1992. \nNing Zhang, Manohar Paluri, Marc’Aurelio Ranzato, Trevor Darrell, and Lubomir Bourdev. Panda: Pose aligned networks for deep attribute modeling. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2014. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
169,
|
| 1189 |
+
87,
|
| 1190 |
+
826,
|
| 1191 |
+
940
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 10
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
171,
|
| 1200 |
+
102,
|
| 1201 |
+
826,
|
| 1202 |
+
390
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 11
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "A ADDING EXPLORATION ",
|
| 1209 |
+
"text_level": 1,
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
176,
|
| 1212 |
+
412,
|
| 1213 |
+
405,
|
| 1214 |
+
429
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 11
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "We also look into the use of exploration and learn a policy to promote exploration of undiscovered edges in our planning graph. We give a negative reward proportional to $\\frac { \\mathbf { \\dot { \\phi } } _ { t } } { \\sqrt { n } }$ where $n$ is the number of times that edge has been encountered before and $t$ the time episode. We compare this with a baseline method of single random start and random action selection over $N$ and the method used in the main paper, with $N$ random starts and single rollouts. ",
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
174,
|
| 1223 |
+
443,
|
| 1224 |
+
825,
|
| 1225 |
+
516
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 11
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "A.1 MAZEBASE RESULTS ",
|
| 1232 |
+
"text_level": 1,
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
176,
|
| 1235 |
+
532,
|
| 1236 |
+
364,
|
| 1237 |
+
546
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 11
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "Our Mazebase environments in Section 4.1 are designed so that all edges can be discovered without much exploration. So to better test the benefit of exploration, we modified the craft environment to make discovering all edges harder. First, we added 4 new “super” products that can be crafted by combining one normal product with another resource, or three resources. Second, the environment always starts with only 3 resources and an empty inventory. Therefore, it is much harder to discover a super product because it requires agent to craft a product out of two resources, and then pick another resource and craft. ",
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
174,
|
| 1246 |
+
558,
|
| 1247 |
+
825,
|
| 1248 |
+
656
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 11
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "text",
|
| 1254 |
+
"text": "In this hard crafting environment, a random agent discovered 18.6 edges on average, while an agent with the exploration reward discovered all 25 edges of the environment. We used this complete graph to train our AP model and other baselines. Training on one-step tasks require episodes to start from different nodes of the graph, but the environment always initializes at the same node. A simple solution was not to reset the environment between episodes if the previous episode was successful. Thus the next episodes will start from a different node. Table 4 shows the success rates on multi-step tasks, where our AP model clearly outperforms the other baselines. ",
|
| 1255 |
+
"bbox": [
|
| 1256 |
+
173,
|
| 1257 |
+
662,
|
| 1258 |
+
826,
|
| 1259 |
+
761
|
| 1260 |
+
],
|
| 1261 |
+
"page_idx": 11
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"type": "table",
|
| 1265 |
+
"img_path": "images/e405e424f48befdc453e19a6849c522cde2c703ae1995926a3003bcf8c43bffb.jpg",
|
| 1266 |
+
"table_caption": [],
|
| 1267 |
+
"table_footnote": [],
|
| 1268 |
+
"table_body": "<table><tr><td>Method</td><td>Training data</td><td>Hard Crafting (multi-step)</td></tr><tr><td>Reinforce</td><td>multi-step + curriculum</td><td>51.5%</td></tr><tr><td>Reinforce</td><td>one-step</td><td>26.0%</td></tr><tr><td>AP</td><td>one-step</td><td>99.8%</td></tr></table>",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
269,
|
| 1271 |
+
772,
|
| 1272 |
+
725,
|
| 1273 |
+
844
|
| 1274 |
+
],
|
| 1275 |
+
"page_idx": 11
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"type": "text",
|
| 1279 |
+
"text": "Table 4: Task success rate on multi-step task in the hard crafting environment. Our Attribute Planner clearly outperforms other baseline approaches. ",
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
171,
|
| 1282 |
+
854,
|
| 1283 |
+
825,
|
| 1284 |
+
883
|
| 1285 |
+
],
|
| 1286 |
+
"page_idx": 11
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"type": "text",
|
| 1290 |
+
"text": "A.2 STACKING BLOCKS RESULTS ",
|
| 1291 |
+
"text_level": 1,
|
| 1292 |
+
"bbox": [
|
| 1293 |
+
176,
|
| 1294 |
+
904,
|
| 1295 |
+
421,
|
| 1296 |
+
919
|
| 1297 |
+
],
|
| 1298 |
+
"page_idx": 11
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"type": "table",
|
| 1302 |
+
"img_path": "images/9010c347820f00c2fd1adf405e10fd26af0322e88edf5f43f02965e1e900eba2.jpg",
|
| 1303 |
+
"table_caption": [
|
| 1304 |
+
"Table 5: Effect of the number of (one-step) training examples on one-step and multi-step performance, for an inverse model and the Attribute Planner model. The inverse models are trained on $2 \\mathbf { x }$ the samples, including the samples generated from learning $c _ { \\pi }$ in our AP method. "
|
| 1305 |
+
],
|
| 1306 |
+
"table_footnote": [],
|
| 1307 |
+
"table_body": "<table><tr><td rowspan=\"2\"># of Training Examples</td><td colspan=\"2\">Policy</td><td colspan=\"2\">Random</td><td colspan=\"2\">Main Method</td></tr><tr><td>edges</td><td> accuracy</td><td>edges</td><td>accuracy</td><td>edges</td><td>accuracy</td></tr><tr><td>100,000</td><td>44k</td><td>49.4%</td><td>49k</td><td>49.7%</td><td>38k</td><td>47.0%</td></tr><tr><td>1,000,000</td><td>120k</td><td>67.5%</td><td>130k</td><td>69.8%</td><td>114k</td><td>66.7%</td></tr><tr><td>10,000,000</td><td>139k</td><td>80.6%</td><td>138k</td><td>83.1%</td><td>218k</td><td>70.7%</td></tr></table>",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
243,
|
| 1310 |
+
439,
|
| 1311 |
+
754,
|
| 1312 |
+
525
|
| 1313 |
+
],
|
| 1314 |
+
"page_idx": 12
|
| 1315 |
+
}
|
| 1316 |
+
]
|
parse/train/r154_g-Rb/r154_g-Rb_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/r154_g-Rb/r154_g-Rb_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|