ZHANGYUXUAN-zR commited on
Commit
b502ef0
·
verified ·
1 Parent(s): ad4fd2b

Add files using upload-large-folder tool

Browse files
parse/train/5jRVa89sZk/5jRVa89sZk.md ADDED
@@ -0,0 +1,288 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # EMPIRICAL ANALYSIS OF UNLABELED ENTITY PROBLEM IN NAMED ENTITY RECOGNITION
2
+
3
+ Yangming Li, Lemao Liu, & Shuming Shi Tencent AI Lab {newmanli,redmondliu,shumingshi}@tencent.com
4
+
5
+ # ABSTRACT
6
+
7
+ In many scenarios, named entity recognition (NER) models severely suffer from unlabeled entity problem, where the entities of a sentence may not be fully annotated. Through empirical studies performed on synthetic datasets, we find two causes of performance degradation. One is the reduction of annotated entities and the other is treating unlabeled entities as negative instances. The first cause has less impact than the second one and can be mitigated by adopting pretraining language models. The second cause seriously misguides a model in training and greatly affects its performances. Based on the above observations, we propose a general approach, which can almost eliminate the misguidance brought by unlabeled entities. The key idea is to use negative sampling that, to a large extent, avoids training NER models with unlabeled entities. Experiments on synthetic datasets and real-world datasets show that our model is robust to unlabeled entity problem and surpasses prior baselines. On well-annotated datasets, our model is competitive with the state-of-the-art method1.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Named entity recognition (NER) is an important task in information extraction. Previous methods typically cast it into a sequence labeling problem by adopting IOB tagging scheme (Mesnil et al., 2015; Huang et al., 2015; Ma & Hovy, 2016; Akbik et al., 2018; Qin et al., 2019). A representative model is Bi-LSTM CRF (Lample et al., 2016). The great success achieved by these methods benefits from massive correctly labeled data. However, in some real scenarios, not all the entities in the training corpus are annotated. For example, in some NER tasks (Ling & Weld, 2012), the datasets contain too many entity types or a mention may be associated with multiple labels. Since manual annotation on this condition is too hard, some entities are inevitably neglected by human annotators. Situations in distantly supervised NER (Ren et al., 2015; Fries et al., 2017) are even more serious. To reduce handcraft annotation, distant supervision (Mintz et al., 2009) is applied to automatically produce labeled data. As a result, large amounts of entities in the corpus are missed due to the limited coverage of knowledge resources. We refer this to unlabeled entity problem, which largely degrades performances of NER models.
12
+
13
+ There are several approaches used in prior works to alleviate this problem. Fuzzy CRF and AutoNER (Shang et al., 2018b) allow models to learn from the phrases that may be potential entities. However, since these phrases are obtained through a distantly supervised phrase mining method (Shang et al., 2018a), many unlabeled entities in the training data may still not be recalled. In the context of only resorting to unlabeled corpora and an entity ontology, Mayhew et al. (2019); Peng et al. (2019) employ positive-unlabeled (PU) learning (Li & Liu, 2005) to unbiasedly and consistently estimate the task loss. In implementations, they build distinct binary classifiers for different labels. Nevertheless, the unlabeled entities still impact the classifiers of the corresponding entity types and, importantly, the model can’t disambiguate neighboring entities. Partial CRF (Tsuboi et al., 2008) is an extension of commonly used CRF (Lafferty et al., 2001) that supports learning from incomplete annotations. Yang et al. (2018); Nooralahzadeh et al. (2019); Jie et al. (2019) use it to circumvent training with false negatives. However, as fully annotated corpora are still required to get ground truth training negatives, this approach is not applicable to the situations where little or even no high-quality data is available.
14
+
15
+ In this work, our goal is to study what are the impacts of unlabeled entity problem on the models and how to effectively eliminate them. Initially, we construct some synthetic datasets and introduce degradation rates. The datasets are constructed by randomly removing the annotated named entities in well-annotated datasets, e.g., CoNLL-2003 (Sang & De Meulder, 2003), with different probabilities. The degradation rates measure how severe an impact of unlabeled entity problem degrades the performances of models. Extensive studies are investigated on synthetic datasets. We find two causes: the reduction of annotated entities and treating unlabeled entities as negative instances. The first cause is obvious but has far fewer influences than the second one. Besides, it can be mitigated well by using a pretraining language model, like BERT (Devlin et al., 2019)), as the sentence encoder. The second cause seriously misleads the models in training and exerts a great negative impact on their performances. Even in less severe cases, it can sharply reduce the F1 score by about $2 0 \%$ . Based on the above observations, we propose a novel method that is capable of eliminating the misguidance of unlabeled entities in training. The core idea is to apply negative sampling that avoids training NER models with unlabeled entities.
16
+
17
+ Extensive experiments have been conducted to verify the effectiveness of our approach. Studies on synthetic datasets and real-world datasets (e.g., EC) show that our model well handles unlabeled entities and notably surpasses prior baselines. On well-annotated datasets (e.g., CoNLL-2003), our model is competitive with the state-of-the-art method.
18
+
19
+ # 2 PRELIMINARIES
20
+
21
+ In this section, we formally define the unlabeled entity problem and briefly describe a strong baseline, BERT Tagging (Devlin et al., 2019), used in empirical studies.
22
+
23
+ # 2.1 UNLABELED ENTITY PROBLEM
24
+
25
+ We denote an input sentence as $\mathbf { x } = [ x _ { 1 } , x _ { 2 } , \cdots , x _ { n } ]$ and the annotated named entity set as ${ \bf y } =$ $\{ y _ { 1 } , y _ { 2 } , \cdots , y _ { m } \}$ . $n$ is the sentence length and $m$ is the amount of entities. Each member $y _ { k }$ of set $\mathbf { y }$ is a tuple $( i _ { k } , j _ { k } , l _ { k } )$ . $( i _ { k } , j _ { k } )$ is the span of an entity which corresponds to the phrase $\mathbf { x } _ { i _ { k } , j _ { k } } = [ x _ { i _ { k } } , x _ { i _ { k } + 1 } , \cdot \cdot \cdot , x _ { j _ { k } } ]$ and $l _ { k }$ is its label. The unlabeled entity problem is defined as, due to the limited coverage of machine annotator or the negligence of human annotator, some ground truth entities $\widetilde { \mathbf { y } }$ of the sentence $\mathbf { x }$ are not covered by annotated entity set y.
26
+
27
+ For instance, given a sentence $\mathbf { x } = [ \mathrm { J a c k }$ , and, Mary, are, from, New, York] and a labeled entity set $\mathbf { y } = \{ ( 1 , 1 , \bar { \mathrm { P E R } } ) \}$ , unlabeled entity problem is that some entities, like $( \mathrm { 6 , \dot { 7 } , L O C ) }$ , are neglected by annotators. These unlabeled entities are denoted as $\widetilde { \mathbf { y } } = \{ ( 3 , 3 , \mathrm { P E R } ) , ( 6 , 7 , \mathrm { L O C } ) \}$ .
28
+
29
+ # 2.2 BERT TAGGING
30
+
31
+ BERT Tagging is present in Devlin et al. (2019), which adopts IOB tagging scheme, where each token $x _ { i }$ in a sentence $\mathbf { x }$ is labeled with a fine-grained tag, such as B-ORG, I-LOC, or O. Formally, its output is a $n$ -length label sequence $\mathbf { z } = [ z _ { 1 } , \bar { z } _ { 2 } , \cdot \cdot \cdot , z _ { n } ]$ .
32
+
33
+ Formally, BERT tagging firstly uses BERT to get the representation $\mathbf { h } _ { i }$ for every token $x _ { i }$
34
+
35
+ $$
36
+ [ \mathbf { h } _ { 1 } , \mathbf { h } _ { 2 } , \cdot \cdot \cdot \mathbf { \nabla } , \mathbf { h } _ { n } ] = \mathrm { B E R T } ( \mathbf { x } ) .
37
+ $$
38
+
39
+ Then, the label distribution $\mathbf { q } _ { i }$ is computed as $\mathrm { S o f t m a x } ( \mathbf { W } \mathbf { h } _ { i } )$ . In training, the loss is induced as $\begin{array} { r } { \sum _ { 1 \leq i \leq n } - \log { \mathbf q } _ { i } [ z _ { i } ] } \end{array}$ . At test time, it obtains the label for each token $x _ { i }$ by arg max $\mathbf { q } _ { i }$ .
40
+
41
+ # 3 EMPIRICAL STUDIES
42
+
43
+ To understand the impacts of unlabeled entity problem, we conduct empirical studies over multiple synthetic datasets, different methods, and various metrics.
44
+
45
+ ![](images/12a49343baa487cabf1df8065948b51e0e3d6ad645b364ce37887dce590a4bd5.jpg)
46
+ Figure 1: The empirical studies conducted on CoNLL-2003 dataset.
47
+
48
+ ![](images/08291b5c5ad5352b823484bdb00897ef3fcc47c354ce567ed299dfa0de2d61d6.jpg)
49
+ Figure 2: The empirical studies investigated on OntoNotes 5.0 dataset.
50
+
51
+ # 3.1 PREPARATIONS
52
+
53
+ Synthetic Datasets. We use synthetic datasets to simulate poorly-annotated datasets that contain unlabeled entities. They are obtained by randomly removing the labeled entities of well-annotated datasets with different masking probabilities $p$ . The material datasets are CoNLL-2003 (Sang & De Meulder, 2003) and OntoNotes 5.0 (Pradhan et al., 2013). The probabilities $p$ are respectively set as $0 . 0 , 0 . 1 , 0 . 2 , \cdots , 0 . 9$ . In this way, $2 \times 1 0$ synthetic datasets are constructed.
54
+
55
+ Methods. We adopt two models. One of them is BERT Tagging, which has long been regarded as a strong baseline. The other is LSTM Tagging that replaces the original encoder (i.e., BERT) of BERT Tagging with LSTM (Hochreiter & Schmidhuber, 1997). We use it to study the effect of using pretraining language model. To explore the negative impact brought by unlabeled entities in training, we present an adjusted training loss for above two models:
56
+
57
+ $$
58
+ \Big ( \sum _ { 1 \leq i \leq n } - \log \mathbf { q } _ { i } [ z _ { i } ] \Big ) - \Big ( \sum _ { ( i ^ { \prime } , j ^ { \prime } , l ^ { \prime } ) \in \widetilde { \mathbf { y } } } \sum _ { i ^ { \prime } \leq k \leq j ^ { \prime } } - \log \mathbf { q } _ { k } [ z _ { k } ] \Big ) .
59
+ $$
60
+
61
+ The idea here is to remove the incorrect loss incurred by unlabeled entities. Note that missed entity set $\widetilde { \mathbf { y } }$ is reachable in synthetic datasets but unknown in real-world datasets.
62
+
63
+ Metrics. Following prior works, the F1 scores of models are tested by using conlleval script2. We also design two degradation rates to measure the different impacts of unlabeled entity problem. One is erosion rate $\alpha _ { p }$ and the other is misguidance rate $\beta _ { p }$ :
64
+
65
+ $$
66
+ \alpha _ { p } = \frac { f _ { 0 } ^ { a } - f _ { p } ^ { a } } { f _ { 0 } ^ { a } } , \beta _ { p } = \frac { f _ { p } ^ { a } - f _ { p } } { f _ { p } ^ { a } } .
67
+ $$
68
+
69
+ For a synthetic dataset with the masking probability being $p$ , $f _ { p }$ and $f _ { p } ^ { a }$ are the F1 scores of a model and its adjusted version, respectively. Note that $f _ { 0 } ^ { \alpha }$ corresponds to $p \bar { = } 0$ . Erosion rate $\alpha _ { p }$ measures how severely the reduction of annotated entities degrades the F1 scores of a model. Misguidance rate $\beta _ { p }$ measures how seriously unlabeled entities misguide the model in training.
70
+
71
+ ![](images/658021a70f774e2ead4cd1215d61c3ce7f148fa457e027ccd3049cf439fe8cf4.jpg)
72
+ Figure 3: This demonstrates how our model scores possible entities.
73
+
74
+ # 3.2 OVERALL ANALYSIS
75
+
76
+ The left parts of Fig. 1 and Fig. 2 show the results of empirical studies, where we evaluate the F1 scores of BERT Tagging and LSTM Tagging on 20 synthetic datasets. From them, we can draw the following observations. Firstly, the significant downward trends of solid lines confirm the fact that NER models severely suffer from unlabeled entity problem. For example, by setting the masking probability as 0.4, the performance of LSTM Tagging decreases by $3 3 . 0 1 \%$ on CoNLL2003 and $1 9 . 5 8 \%$ on OntoNotes 5.0. Secondly, in contrast, the dashed lines change very slowly, indicating that the models with adjusted training loss (see Eq. (2)) are much less influenced by the issue. For instance, when masking probability is 0.7, adopting adjusted loss preserves the F1 scores of BERT Tagging by $4 1 . 0 4 \%$ on CoNLL-2003 and $5 7 . 3 8 \%$ on OntoNotes 5.0. Lastly, for high masking probabilities, even though the negative impact of unlabeled entities is eliminated by adjusting the training loss, the performance still declines to a certain extent. For example, when masking probability is set as 0.8, the F1 scores of adjusted LSTM Tagging decrease by $3 1 . 6 4 \%$ on CoNLL-2003 and $1 7 . 2 2 \%$ on OntoNotes 5.0.
77
+
78
+ Reduction of Annotated Entities. From the last observation, we can infer that a cause of performance degradation is the reduction of annotated entities. In the middle parts of Fig. 1 and Fig. 2, we plot the change of erosion rates $\alpha _ { p }$ (see Eq. (2)) with respect to masking probabilities. We can see that its impact is not very serious when in low masking probabilities but can’t be neglected when in high ones. Besides, using pre-training language models greatly mitigates the issue. As an example, when the probability is 0.8, on both CoNLL-2003 and OntoNotes 5.0, the erosion rates of adjusted BERT Tagging are only about half of those of adjusted LSTM Tagging.
79
+
80
+ Misguidance of Unlabeled Entities. From the last two observations, we can conclude that the primary cause is treating unlabeled entities as negative instances, which severely misleads the models during training. To better understand it, in the right parts of Fig. 1 and Fig. 2, we plot the change of misguidance rates $\beta _ { p }$ (see Eq. (3)) with masking probabilities. These rates are essentially the percentage decreases of F1 scores. From them, we can see that the impact of misguidance is very much serious even when in low masking probabilities.
81
+
82
+ # 4 METHODOLOGY
83
+
84
+ Motivated by Sec. 3.2, we present a model that is robust to unlabeled entities.
85
+
86
+ # 4.1 SCORING MODEL WITH BERT
87
+
88
+ Based on the findings in Sec. 3.2, we use BERT as the default encoder to mitigate the reduction of annotated entities. Specifically, given a sentence $\mathbf { x }$ , we firstly obtain the token representations $\mathbf { h } _ { i }$ with Eq. (1). Then, we get the representation for every phrase $\mathbf { x } _ { i , j }$ as
89
+
90
+ $$
91
+ \mathbf { s } _ { i , j } = \mathbf { h } _ { i } \oplus \mathbf { h } _ { j } \oplus \left( \mathbf { h } _ { i } - \mathbf { h } _ { j } \right) \oplus \big ( \mathbf { h } _ { i } \odot \mathbf { h } _ { j } \big ) ,
92
+ $$
93
+
94
+ where $\oplus$ is column-wise vector concatenation and $\odot$ is element-wise vector product. The design here is mainly inspired by Chen et al. (2017).
95
+
96
+ Finally, multi-layer perceptron (MLP) computes the label distribution $\mathbf { o } _ { i , j }$ for a span $( i , j )$
97
+
98
+ $$
99
+ \begin{array} { r } { \mathbf { o } _ { i , j } = \mathrm { S o f t m a x } ( \mathbf { U } \operatorname { t a n h } ( \mathbf { V } \mathbf { s } _ { i , j } ) ) . } \end{array}
100
+ $$
101
+
102
+ The term $\mathbf { o } _ { i , j } [ l ]$ is the predicted score for an entity $( i , j , l )$ .
103
+
104
+ # 4.2 TRAINING VIA NEGATIVE SAMPLING
105
+
106
+ From Sec. 3.2, we know that regarding all the unlabeled spans as negative instances certainly degrades the performances of models, since some of them may be missed entities. Our solution to this issue is negative sampling. Specifically, we randomly sample a small subset of unlabeled spans as the negative instances to induce the training loss.
107
+
108
+ Given the annotated entity set $\mathbf { y }$ , we firstly get all the negative instance candidates as
109
+
110
+ $$
111
+ \{ ( i , j , 0 ) \mid ( i , j , l ) \not \in { \bf y } , 1 \leq i \leq j \leq n , l \in \mathcal { L } \} ,
112
+ $$
113
+
114
+ where $\mathcal { L }$ is the label space and O is the label for non-entity spans.
115
+
116
+ Then, we uniformly sample a subset $\widehat { \mathbf { y } }$ from the whole candidate set. The size of sample set $\widehat { \mathbf { y } }$ is $\lceil \lambda * n \rceil , 0 < \lambda < 1$ , where $\left\lceil \right\rceil$ b is the ceiling function.
117
+
118
+ Ultimately, a span-level cross entropy loss used for training is incurred as
119
+
120
+ $$
121
+ \Big ( \sum _ { ( i , j , l ) \in \mathbf { y } } - \log ( \mathbf { o } _ { i , j } [ l ] ) \Big ) + \Big ( \sum _ { ( i ^ { \prime } , j ^ { \prime } , l ^ { \prime } ) \in \widehat { \mathbf { y } } } - \log \bigl ( \mathbf { o } _ { i ^ { \prime } , j ^ { \prime } } [ l ^ { \prime } ] \bigr ) \Big ) .
122
+ $$
123
+
124
+ Negative sampling incorporates some randomness into the training loss, which reduces the risk of training a NER model with unlabeled entities.
125
+
126
+ # 4.3 INFERENCE
127
+
128
+ At test time, firstly, the label for every span $( i , j )$ is obtained by $\mathrm { \ a r g m a x } _ { l } \mathbf { o } _ { i , j } [ l ]$ . Then, we select the ones whose label $l$ is not $\mathrm { O }$ as predicted entities. When the spans of inferred entities intersects, we preserve the one with the highest predicted score and discard the others.
129
+
130
+ The time complexity of inference is $\mathcal { O } ( n ^ { 2 } )$ , which is majorly contributed by the span selection procedure. While this seems a bit higher compared with our counterparts, we find that, in practical use, its running time is far less than that of the forward computation of neural networks. The algorithm for inference is greedy yet effective. In experiments, we find that the probability of our heuristic selecting a wrong labeled span when resolving the span conflict is very low.
131
+
132
+ # 5 DISCUSSION
133
+
134
+ We show that, through negative sampling, the probability of not treating a specific missed entity in a $n$ -length sentence as the negative instance is larger than $\textstyle 1 - { \frac { 2 } { n - 3 } }$ :
135
+
136
+ $$
137
+ \begin{array} { l } { { \displaystyle \prod _ { 0 \le i < \lceil \lambda n \rceil } \left( 1 - \frac { 1 } { \frac { n ( n + 1 ) } { 2 } - m - i } \right) > \left( 1 - \frac { 1 } { \frac { n ( n + 1 ) } { 2 } - m - \lceil \lambda n \rceil } \right) ^ { \lceil \lambda n \rceil } } } \\ { { \displaystyle \qquad > \left( 1 - \frac { 1 } { \frac { n ( n + 1 ) } { 2 } - n - n } \right) ^ { n } \ge \left( 1 - n * \frac { 1 } { \frac { n ( n + 1 ) } { 2 } - n - n } \right) = 1 - \frac { 2 } { n - 3 } } } \end{array} .
138
+ $$
139
+
140
+ Herand e n(n+1)2 − m is the amount of negative candidates. Besides, we use the facts, λ < 1, m ≤ n, $( 1 - \bar { z } ) ^ { n } \geq 1 - n z , 0 \leq z \leq 1$ , during the derivation.
141
+
142
+ Note that the above bound is only applicable to the special case where there is just one unlabeled entity in a sentence. We remain the strict proof for general cases to future work.
143
+
144
+ # 6 EXPERIMENTS
145
+
146
+ We have conducted extensive experiments on multiple datasets to verify the effectiveness of our method. Studies on synthetic datasets show that our model can almost eliminate the misguidance
147
+
148
+ Table 1: The experiment results on two synthetic datasets.
149
+
150
+ <table><tr><td rowspan="2">Masking Prob.</td><td colspan="2">CoNLL-2003</td><td colspan="2">OntoNotes 5.0</td></tr><tr><td>BERT Tagging</td><td>Our Model</td><td>BERT Tagging</td><td>Our Model</td></tr><tr><td>0.1</td><td>90.71</td><td>91.37</td><td>87.69</td><td>89.20</td></tr><tr><td>0.2</td><td>89.57</td><td>91.25</td><td>86.86</td><td>89.15</td></tr><tr><td>0.3</td><td>88.95</td><td>90.53</td><td>84.75</td><td>88.73</td></tr><tr><td>0.4</td><td>82.94</td><td>89.73</td><td>82.55</td><td>88.20</td></tr><tr><td>0.5</td><td>78.99</td><td>89.22</td><td>71.07</td><td>88.17</td></tr><tr><td>0.6</td><td>63.84</td><td>87.65</td><td>58.17</td><td>87.53</td></tr></table>
151
+
152
+ ![](images/6b4b22a396a33c72df0cc060a52441c49a39b0dad956325e34b837146487fb67.jpg)
153
+ Figure 4: The misguidance rates of BERT Tagging and our model.
154
+
155
+ brought by unlabeled entities in training. On real-world datasets, our model has notably outperformed prior baselines and achieved the state-of-the-art performances. On well-annotated datasets, our model is competitive to current state-of-the-art method.
156
+
157
+ # 6.1 SETTINGS
158
+
159
+ The setup of synthetic datasets and well-annotated datasets are the same as what we describe in Sec. 3.1. For real-world datasets, we use EC and NEWS, both of which are collected by Yang et al. (2018). EC is in e-commerce domain, which has 5 entity types: Brand, Product, Model, Material, and Specification. The data contains 2400 sentences tagged by human annotators and are divided into three parts: 1200 for training, 400 for dev, and 800 for testing. Yang et al. (2018) also construct an entity dictionary of size 927 and apply distant supervision on a raw corpus to obtain additional 2500 sentences for training. NEWS is from MSRA dataset (Levow, 2006). Yang et al. (2018) only adopt the PERSON entity type. Training data of size 3000, dev data of size 3328, and testing data of size 3186 are all sampled from MSRA. They collect an entity dictionary of size 71664 and perform distant supervision on the rest data to obtain extra 3722 training cases by using the dictionary. Both EC and NEWS contain a large amount of incompletely annotated sentences, and hence naturally suffer from the unlabeled entity problem.
160
+
161
+ We adopt the same hyper-parameter configurations of neural networks for all the datasets. L2 regularization and dropout ratio are respectively set as $1 \times 1 0 ^ { - 5 }$ and 0.4 for reducing overfit. The dimension of scoring layers is 256. Ratio $\lambda$ is set as 0.35. When the sentence encoder is LSTM, we set the hidden dimension as 512 and use pretrained word embeddings (Pennington et al., 2014; Song et al., 2018) to initialize word representations. We utilize Adam (Kingma & Ba, 2014) as the optimization algorithm and adopt the suggested hyper-parameters. At evaluation time, we convert the predictions of our models into IOB format and use conlleval script to compute the F1 score. In all the experiments, the improvements of our models over the baselines are statistically significant with rejection probabilities smaller than 0.05.
162
+
163
+ Table 2: The experiment results on two well-annotated datasets.
164
+
165
+ <table><tr><td>Method</td><td>CoNLL-2003</td><td>OntoNotes 5.0</td></tr><tr><td>FlairEmbedding (Akbik etal., 2018)</td><td>93.09</td><td>89.3</td></tr><tr><td>BERT-MRC(Li etal.,2020a)</td><td>93.04</td><td>91.11</td></tr><tr><td>HCR w/BERT (Luo et al., 2020)</td><td>93.37</td><td>90.30</td></tr><tr><td>BERT-Biaffine Model (Yu etal., 2020)</td><td>93.5</td><td>91.3</td></tr><tr><td>Our Model</td><td>93.42</td><td>90.59</td></tr></table>
166
+
167
+ Table 3: The experiment results on two real-world datasets.
168
+
169
+ <table><tr><td colspan="2">Method</td><td>EC</td><td>NEWS</td></tr><tr><td rowspan="6">Yang et al. (2018)</td><td>String Matching via Ontology</td><td>44.02</td><td>47.75</td></tr><tr><td>BiLSTM+CRF</td><td>54.59</td><td>69.09</td></tr><tr><td>BiLSTM+CRFw/RL</td><td>56.23</td><td>73.19</td></tr><tr><td>BiLSTM+PartialCRF</td><td>60.08</td><td>78.38</td></tr><tr><td>BiLSTM+Partial CRF w/RL</td><td>61.45</td><td>79.22</td></tr><tr><td>WeightedPartial CRF</td><td>61.75</td><td>78.64</td></tr><tr><td>Jie et al. (2019) Nooralahzadeh et al. (2019)</td><td>BiLSTM+Partial CRFw/RL</td><td>63.56</td><td>80.04</td></tr><tr><td rowspan="2">This Work</td><td>OurModel</td><td>66.17</td><td>85.39</td></tr><tr><td>OurModel w/o BERT,w/BiLSTM</td><td>64.68</td><td>82.11</td></tr></table>
170
+
171
+ # 6.2 RESULTS ON SYNTHETIC DATASETS
172
+
173
+ In this section, our model is compared with BERT Tagging on the synthetic datasets of the masking probabilities being $0 . 1 , 0 . 2 , \cdots , 0 . 6$ . From Table 1, we can get two conclusions. Firstly, our model significantly outperforms BERT Tagging, especially in high masking probabilities. For example, on CoNLL-2003, our F1 scores outnumber those of BERT Tagging by $1 . 8 8 \%$ when the probability is 0.2 and $2 7 . 1 6 \%$ when the probability is 0.6. Secondly, our model is very robust to the unlabeled entity problem. When increasing the masking probability from 0.1 to 0.5, the results of our model only decrease by $2 . 3 5 \%$ on CoNLL-2003 and $1 . 9 1 \%$ on OntoNotes 5.0.
174
+
175
+ Fig. 4 demonstrates the misguidance rate comparisons between BERT Tagging and our models. The way to adjust our model is reformulating Eq. (7) by defining the negative term via $\{ ( i , j , \mathrm { O } ) \mid \forall l :$ $( i , j , l ) \not \in { \bf y } \cup \widetilde { { \bf y } } \}$ rather than the negatively sampled $\hat { \mathbf { y } }$ . The idea here is to avoid the unlabeled entities being sampled. From Fig. 4, we can discover that, in all masking probabilities, the misguidance rates of our model are far smaller than those of BERT Tagging and are consistently lower than $2 . 5 0 \%$ . These indicate that, in training, our model indeed eliminates the misguidance brought by unlabeled entities to some extent.
176
+
177
+ # 6.3 RESULTS ON FULLY ANNOTATED DATASETS
178
+
179
+ We additionally apply our model with negative sampling on the well-annotated datasets where the issue of incomplete entity annotation is not serious. As shown in Table 2, the F1 scores of our model are very close to current best results. Our model slightly underperforms BERT-Biaffine Model by only $0 . { \dot { 0 } } 9 \%$ on CoNLL-2003 and $0 . 7 8 \%$ on OntoNotes 5.0. Besides, our model surpasses many other strong baselines. On OntoNotes 5.0, our model outperforms HCR w/ BERT by $0 . 3 2 \%$ and Flair Embedding by $1 . 4 4 \%$ . On CoNLL-2003, the improvements of F1 scores are $0 . 4 1 \%$ over BERT-MRC and $0 . 3 5 \%$ over Flair Embedding. All these results indicate that our model is still very effective when applied to high-quality data.
180
+
181
+ # 6.4 RESULTS ON REAL-WORLD DATASETS
182
+
183
+ For two real-world datasets, a large portion of training data is obtained via distant supervision. As stated in Yang et al. (2018), the F1 scores of string matching through an entity dictionary are notably declined in terms of the low recall scores, although its precision scores are higher than those of other methods. Therefore, unlabeled entity problem is serious in the datasets. As shown in Table 3, the baselines come from three works (Yang et al., 2018; Nooralahzadeh et al., 2019; Jie et al.,
184
+
185
+ ![](images/510b8a385f05dd345a96722cf08c743e4b02d0cb87175dd544c60abfbfdfe26a.jpg)
186
+ Figure 5: The results of our models with different ratio $\lambda$ on synthetic datasets.
187
+
188
+ Table 4: The PCCs between F1 score and degradation rates.
189
+
190
+ <table><tr><td rowspan="2">Metric</td><td colspan="2">CoNLL-2003</td><td colspan="2">OntoNotes 5.0</td></tr><tr><td>BERTTagging</td><td>LSTMTagging</td><td>BERTTagging</td><td>LSTM Tagging</td></tr><tr><td>Erosion Rate αp</td><td>-0.94</td><td>-0.90</td><td>-0.85</td><td>-0.82</td></tr><tr><td>Misguidance Rate βp</td><td>-1.00</td><td>-0.96</td><td>-1.00</td><td>-0.98</td></tr></table>
191
+
192
+ 2019). Yang et al. (2018) use Partial CRF to circumvent all possible unlabeled entities and utilize reinforcement learning (RL) to adaptively skip noisy annotation. Jie et al. (2019) and Nooralahzadeh et al. (2019) respectively improve Partial CRF and the policy of RL. All the F1 scores of baselines are copied from Yang et al. (2018); Nooralahzadeh et al. (2019), except for that of Weighted Partial CRF, which is obtained by rerunning its open-source code3.
193
+
194
+ Our model has significantly outperformed prior baselines and obtained new state-of-the-art results. Compared with prior best model (Nooralahzadeh et al., 2019), we achieve the improvements of $3 . 9 4 \%$ on EC and $6 . 2 7 \%$ on NEWS. Compared with strong baseline, BiLSTM $^ +$ Partial CRF, the increases of F1 scores are $9 . 2 0 \%$ and $8 . 2 \bar { 1 } \%$ . To make fair comparisons, we replace BERT with LSTM. Even so, we still outperform (Nooralahzadeh et al., 2019) by $1 . 7 6 \%$ on EC and $2 . 5 2 \%$ on NEWS. All these strongly confirm the effectiveness of our model.
195
+
196
+ # 6.5 RATIO $\lambda$ IN NEGATIVE SAMPLING
197
+
198
+ Intuitively, setting ratio $\lambda$ (see Sec. 4.2) as too large values or too small values both are inappropriate. Large ratios increase the risks of training negatives containing unlabeled entities. Small ratios reduce the number of negative instances used for training, leading to underfitting. Fig. 5 shows the experiments on some synthetic datasets with the ratio $\lambda$ of our method being $0 . 1 , 0 . 2 , \cdots , 0 . 9$ . From it, we can see that all the score curves are roughly arched, which verifies our intuition. Besides, we find that $0 . 3 < \lambda < 0 . 4$ performs well in all the cases.
199
+
200
+ # 6.6 VALIDITY OF DEGRADATION RATES
201
+
202
+ As Table 4 shows, we use Pearson’s correlation coefficient (PCC) to measure the statistical correlations between degradation rates (e.g., misguidance rate $\beta _ { p }$ ) and the F1 score. We can see that the correlation scores are generally close to $- 1$ . For example, for LSTM Tagging, on the synthetic datasets built from CoNLL-2003, the correlation score of erosion rate $\alpha _ { p }$ is $- 0 . 9 0$ and that of misguidance rate $\beta _ { p }$ is $- 0 . 9 6$ . The results indicate that not only degradation rates quantify specific impacts of unlabeled entities but also their negative values change synchronously with the F1 score. We conclude that degradation rates are appropriate metrics for evaluation.
203
+
204
+ # 7 RELATED WORK
205
+
206
+ NER is a classical task in information extraction. Previous works commonly treat it as a sequence labeling problem by using IOB tagging scheme (Huang et al., 2015; Akbik et al., 2018; Luo et al., 2020; Li et al., 2020b;c). Each word in the sentence is labeled as B-tag if it is the beginning of an entity, I-tag if it’s inside but not the first one within the entity, or O otherwise. This approach is extensively studied in prior works. For example, Akbik et al. (2018) propose Flair Embedding that pretrains character embedding in large corpora and uses it rather than token representations to represent a sentence. Recently, there is a growing interest in span-based models (Li et al., 2020a; Yu et al., 2020). They treat the spans, instead of single words, as the basic units for labeling. For example, Li et al. (2020a) present BERT-MRC that regards NER as a MRC task, where named entities are extracted as retrieving answer spans. Span-based models are also prevalent in language modeling (Li et al., 2020d), syntactic analysis (Stern et al., 2017), etc.
207
+
208
+ In some practical applications (e.g., fine-grained NER (Zhang et al., 2020)), NER models are faced with unlabeled entity problem, where the unlabeled entities seriously degrade the performances of models. Several approaches to this issue have been proposed. Fuzzy CRF and AutoNER (Shang et al., 2018b) allow learning from high-quality phrases. However, since these phrases are obtained through distant supervision, the unlabeled entities in the corpora may still be missed. PU learning (Peng et al., 2019; Mayhew et al., 2019) unbiasedly and consistently estimates the training loss. Nevertheless, the unlabeled entities still impact the classifiers of the corresponding entity types and, importantly, the model can’t disambiguate neighboring entities. Partial CRF (Yang et al., 2018; Jie et al., 2019) supports learning from incomplete annotations. However, because fully annotated corpora are still needed to training models with true negative instances, this type of approach is not applicable to the situations where no high-quality data is available.
209
+
210
+ # 8 CONCLUSION
211
+
212
+ In this work, we study what are the impacts of unlabeled entities on NER models and how to effectively eliminate them. Through empirical studies performed on synthetic datasets, we find two causes: the reduction of annotated entities and treating unlabeled entities as training negatives. The first cause has fewer influences than the second one and can be mitigated by adopting pretraining language models. The second cause seriously misleads the models in training and greatly affects their performances. Based on the above observations, we propose a novel method that is capable of eliminating the misguidance of unlabeled entities during training. The core idea is to apply negative sampling that avoids training NER models with unlabeled entities. Experiments on synthetic datasets and real-world datasets demonstrate that our model handles unlabeled entities well and significantly outperforms previous baselines. On well-annotated datasets, our model is competitive with the existing state-of-the-art approach.
213
+
214
+ # REFERENCES
215
+
216
+ Alan Akbik, Duncan Blythe, and Roland Vollgraf. Contextual string embeddings for sequence labeling. In Proceedings of the 27th International Conference on Computational Linguistics, pp. 1638–1649, 2018.
217
+
218
+ Qian Chen, Xiaodan Zhu, Zhen-Hua Ling, Si Wei, Hui Jiang, and Diana Inkpen. Enhanced LSTM for natural language inference. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1657–1668, Vancouver, Canada, July 2017. Association for Computational Linguistics. doi: 10.18653/v1/P17-1152. URL https: //www.aclweb.org/anthology/P17-1152.
219
+
220
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4171–4186, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1423. URL https: //www.aclweb.org/anthology/N19-1423.
221
+
222
+ Jason Fries, Sen Wu, Alex Ratner, and Christopher Re. Swellshark: A generative model for biomed-´ ical named entity recognition without labeled data. arXiv preprint arXiv:1704.06360, 2017.
223
+
224
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
225
+
226
+ Zhiheng Huang, Wei Xu, and Kai Yu. Bidirectional lstm-crf models for sequence tagging. arXiv preprint arXiv:1508.01991, 2015.
227
+
228
+ Zhanming Jie, Pengjun Xie, Wei Lu, Ruixue Ding, and Linlin Li. Better modeling of incomplete annotations for named entity recognition. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 729–734, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1079. URL https://www.aclweb.org/anthology/N19-1079.
229
+
230
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
231
+
232
+ John Lafferty, Andrew McCallum, and Fernando CN Pereira. Conditional random fields: Probabilistic models for segmenting and labeling sequence data. 2001.
233
+
234
+ Guillaume Lample, Miguel Ballesteros, Sandeep Subramanian, Kazuya Kawakami, and Chris Dyer. Neural architectures for named entity recognition. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 260–270, San Diego, California, June 2016. Association for Computational Linguistics. doi: 10.18653/v1/N16-1030. URL https://www.aclweb.org/anthology/ N16-1030.
235
+
236
+ Gina-Anne Levow. The third international chinese language processing bakeoff: Word segmentation and named entity recognition. In Proceedings of the Fifth SIGHAN Workshop on Chinese Language Processing, pp. 108–117, 2006.
237
+
238
+ Xiao-Li Li and Bing Liu. Learning from positive and unlabeled examples with different data distributions. In European conference on machine learning, pp. 218–229. Springer, 2005.
239
+
240
+ Xiaoya Li, Jingrong Feng, Yuxian Meng, Qinghong Han, Fei Wu, and Jiwei Li. A unified MRC framework for named entity recognition. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 5849–5859, Online, July 2020a. Association for Computational Linguistics. doi: 10.18653/v1/2020.acl-main.519. URL https: //www.aclweb.org/anthology/2020.acl-main.519.
241
+
242
+ Yangming Li, Han Li, Kaisheng Yao, and Xiaolong Li. Handling rare entities for neural sequence labeling. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 6441–6451, Online, July 2020b. Association for Computational Linguistics. doi: 10.18653/v1/2020.acl-main.574. URL https://www.aclweb.org/anthology/2020. acl-main.574.
243
+
244
+ Yangming Li, Lemao Liu, and Shuming Shi. Segmenting natural language sentences via lexical unit analysis. arXiv preprint arXiv:2012.05418, 2020c.
245
+
246
+ Yangming Li, Kaisheng Yao, Libo Qin, Shuang Peng, Yijia Liu, and Xiaolong Li. Span-based neural buffer: Towards efficient and effective utilization of long-distance context for neural sequence models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pp. 8277– 8284, 2020d.
247
+
248
+ Xiao Ling and Daniel S Weld. Fine-grained entity recognition. In AAAI, volume 12, pp. 94–100, 2012.
249
+
250
+ Ying Luo, Fengshun Xiao, and Hai Zhao. Hierarchical contextualized representation for named entity recognition. In AAAI, pp. 8441–8448, 2020.
251
+
252
+ Xuezhe Ma and Eduard Hovy. End-to-end sequence labeling via bi-directional LSTM-CNNs-CRF. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1064–1074, Berlin, Germany, August 2016. Association for Computational Linguistics. doi: 10.18653/v1/P16-1101. URL https://www.aclweb.org/ anthology/P16-1101.
253
+
254
+ Stephen Mayhew, Snigdha Chaturvedi, Chen-Tse Tsai, and Dan Roth. Named entity recognition with partially annotated training data. In Proceedings of the 23rd Conference on Computational Natural Language Learning (CoNLL), pp. 645–655, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/K19-1060. URL https://www.aclweb.org/anthology/K19-1060.
255
+
256
+ G. Mesnil, Y. Dauphin, K. Yao, Y. Bengio, L. Deng, D. Hakkani-Tur, X. He, L. Heck, G. Tur, D. Yu, and G. Zweig. Using recurrent neural networks for slot filling in spoken language understanding. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 23(3):530–539, 2015. doi: 10.1109/TASLP.2014.2383614.
257
+
258
+ Mike Mintz, Steven Bills, Rion Snow, and Dan Jurafsky. Distant supervision for relation extraction without labeled data. In Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP, pp. 1003–1011, 2009.
259
+
260
+ Farhad Nooralahzadeh, Jan Tore Lønning, and Lilja Øvrelid. Reinforcement-based denoising of distantly supervised ner with partial annotation. In Proceedings of the 2nd Workshop on Deep Learning Approaches for Low-Resource NLP (DeepLo 2019), pp. 225–233, 2019.
261
+
262
+ Minlong Peng, Xiaoyu Xing, Qi Zhang, Jinlan Fu, and Xuanjing Huang. Distantly supervised named entity recognition using positive-unlabeled learning. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 2409–2419, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1231. URL https: //www.aclweb.org/anthology/P19-1231.
263
+
264
+ Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp. 1532–1543, 2014.
265
+
266
+ Sameer Pradhan, Alessandro Moschitti, Nianwen Xue, Hwee Tou Ng, Anders Bjorkelund, Olga ¨ Uryupina, Yuchen Zhang, and Zhi Zhong. Towards robust linguistic analysis using ontonotes. In Proceedings of the Seventeenth Conference on Computational Natural Language Learning, pp. 143–152, 2013.
267
+
268
+ Libo Qin, Wanxiang Che, Yangming Li, Haoyang Wen, and Ting Liu. A stack-propagation framework with token-level intent detection for spoken language understanding. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pp. 2078– 2087, Hong Kong, China, November 2019. Association for Computational Linguistics. doi: 10.18653/v1/D19-1214. URL https://www.aclweb.org/anthology/D19-1214.
269
+
270
+ Xiang Ren, Ahmed El-Kishky, Chi Wang, Fangbo Tao, Clare R Voss, and Jiawei Han. Clustype: Effective entity recognition and typing by relation phrase-based clustering. In Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 995–1004, 2015.
271
+
272
+ Erik F Sang and Fien De Meulder. Introduction to the conll-2003 shared task: Languageindependent named entity recognition. arXiv preprint cs/0306050, 2003.
273
+
274
+ Jingbo Shang, Jialu Liu, Meng Jiang, Xiang Ren, Clare R Voss, and Jiawei Han. Automated phrase mining from massive text corpora. IEEE Transactions on Knowledge and Data Engineering, 30 (10):1825–1837, 2018a.
275
+
276
+ Jingbo Shang, Liyuan Liu, Xiaotao Gu, Xiang Ren, Teng Ren, and Jiawei Han. Learning named entity tagger using domain-specific dictionary. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 2054–2064, Brussels, Belgium, OctoberNovember 2018b. Association for Computational Linguistics. doi: 10.18653/v1/D18-1230. URL https://www.aclweb.org/anthology/D18-1230.
277
+
278
+ Yan Song, Shuming Shi, Jing Li, and Haisong Zhang. Directional skip-gram: Explicitly distinguishing left and right context for word embeddings. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pp. 175–180, New Orleans, Louisiana, June 2018. Association for Computational Linguistics. doi: 10.18653/v1/N18-2028. URL https://www.aclweb.org/anthology/N18-2028.
279
+
280
+ Mitchell Stern, Jacob Andreas, and Dan Klein. A minimal span-based neural constituency parser. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 818–827, Vancouver, Canada, July 2017. Association for Computational Linguistics. doi: 10.18653/v1/P17-1076. URL https://www.aclweb.org/anthology/ P17-1076.
281
+
282
+ Yuta Tsuboi, Hisashi Kashima, Shinsuke Mori, Hiroki Oda, and Yuji Matsumoto. Training conditional random fields using incomplete annotations. In Proceedings of the 22nd International Conference on Computational Linguistics (Coling 2008), pp. 897–904, 2008.
283
+
284
+ Yaosheng Yang, Wenliang Chen, Zhenghua Li, Zhengqiu He, and Min Zhang. Distantly supervised ner with partial annotation learning and reinforcement learning. In Proceedings of the 27th International Conference on Computational Linguistics, pp. 2159–2169, 2018.
285
+
286
+ Juntao Yu, Bernd Bohnet, and Massimo Poesio. Named entity recognition as dependency parsing. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 6470–6476, Online, July 2020. Association for Computational Linguistics. doi: 10.18653/v1/ 2020.acl-main.577. URL https://www.aclweb.org/anthology/2020.acl-main. 577.
287
+
288
+ Haisong Zhang, Lemao Liu, Haiyun Jiang, Yangming Li, Enbo Zhao, Kun Xu, Linfeng Song, Suncong Zheng, Botong Zhou, Jianchen Zhu, et al. Texsmart: A text understanding system for fine-grained ner and enhanced semantic analysis. arXiv preprint arXiv:2012.15639, 2020.
parse/train/5jRVa89sZk/5jRVa89sZk_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyEeMu_xx/HyEeMu_xx.md ADDED
@@ -0,0 +1,291 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PROGRESSIVE ATTENTION NETWORKS FOR VISUAL ATTRIBUTE PREDICTION
2
+
3
+ Paul Hongsuck $\mathbf { S e o } ^ { \dagger }$ , Zhe $\mathbf { L i n } ^ { \ddagger }$ , Scott Cohen‡, Xiaohui Shen‡ & Bohyung Han†
4
+ †POSTECH, Korea
5
+ ‡Adobe Research
6
+ {hsseo, bhhan}@postech.ac.kr
7
+ {zlin, scohen, xshen}@adobe.com
8
+
9
+ # ABSTRACT
10
+
11
+ We propose a novel attention model which can accurately attend to target objects of various scales and shapes in images. The model is trained to gradually suppress irrelevant regions in an input image via a progressive attentive process over multiple layers of a convolutional neural network. The attentive process in each layer determines whether to pass or suppress features at certain spatial locations for use in the next layer. We further employ local contexts to estimate attention probability at each location since it is difficult to infer accurate attention by observing a feature vector from a single location only. The experiments on synthetic and real datasets show that the proposed attention network outperforms traditional attention methods in visual attribute prediction tasks.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Attentive mechanisms often play important roles in modern neural networks (NNs) especially in computer vision tasks. Many visual attention models have been introduced in the previous literature, and they have shown that attaching an attention to NNs can improve the accuracy in various tasks such as image classification (Jaderberg et al., 2015; Ba et al., 2015; Mnih et al., 2014; Larochelle & Hinton, 2010), image generation (Gregor et al., 2015), image caption generation (Xu et al., 2015) and visual question answering (Yang et al., 2015; Andreas et al., 2016; Xu & Saenko, 2015).
16
+
17
+ There are several motivations for incorporating attentive mechanisms in NNs. One of them is that it is analogous to the perceptual process of human beings. The human visual system concentrates attention to a region of interest instead of processing an entire scene. Likewise, in a neural attention model, we can focus processing only on attended areas of the input image. This benefits us in terms of computational resources; the number of hidden units may be reduced since the hidden activations only need to encode the region with attention (Mnih et al., 2014).
18
+
19
+ Another important motivation is that some computer vision tasks, e.g. visual question answering (VQA), require identifying the object for accurate attribute prediction. For example, when the input image contains multiple objects, the task should focus on the object specified by the question. Figure 1 illustrates an example task to predict the color (answer) of a given input number (query). The query specifies a particular object in the input image (number 7 in this example) for answering its attribute (red). To address this type of tasks, the network architecture should incorporate an attentive mechanism either explicitly or implicitly.
20
+
21
+ One of the most popular attention mechanisms for NNs is the soft attention method (Xu et al., 2015), which aggregates responses in a feature map weighted by their attention probabilities (see Appendix A for more details). This process results in a single attended feature vector. Since the soft attention method is fully differentiable, the entire network can be trained end-to-end with standard backpropagation. However, it can only model attention to local regions with a certain size depending on the receptive field of the layer chosen for attention. This makes the soft attention method inappropriate for complicated cases, where objects involve significant variations in their scales, and shapes.
22
+
23
+ ![](images/d9b91e06d9b40191c22d2a2b5a528c469be4fe8441de99ea752bf5d1d9361c3b.jpg)
24
+ Figure 1: An example reference problem (with the query 7 and the answer red) and intermediate attention maps using our progressive attention model. It shows that attention is gradually refined through the network layers for resolving the reference problem. Distracting patterns at smaller scales are suppressed at earlier layers while those at larger scales (e.g. 9) are suppressed at later layers with larger receptive fields. All attended images are independently rescaled for the visualization.
25
+
26
+ To overcome this limitation, we propose a novel attention network, referred to as progressive attention network (PAN), which enables precise attention over objects of different scales and shapes by attaching attentive mechanisms to multiple layers within a convolutional neural network (CNN). More specifically, the proposed network forces attention prediction in intermediate feature maps by forwarding the attended feature maps in each layer to the subsequent layers in the CNN. Since a feature to be attended in the current feature map is obtained by combining lower-level features with smaller receptive fields, the network can learn to distill the precise spatial support relevant to the target objects as final attention. The contribution of this work is three-fold:
27
+
28
+ • A novel attention model (progressive attention network) which can be learned to predict attention matching accurate scale and shape of a target object
29
+ • Use of local contexts to improve the stability of the progressive attention model
30
+ • Achievement of significant performance improvement over traditional soft and hard attention approaches in query-specific visual attribute prediction tasks
31
+
32
+ The rest of this paper is organized as follows. We first review related work in Section 2. In Section 3, we describe the proposed model with local context information. We then present our experimental results on several datasets in Section 4 and conclude the paper in Section 5.
33
+
34
+ # 2 RELATED WORK
35
+
36
+ Attention on Features The most straightforward attention mechanism is a feature based method, which selects a subset of features by explicitly attaching an attention model to NN architectures. The approaches relying on this attention mechanism have improved performance in many tasks (Xu et al., 2015; Yang et al., 2015; Andreas et al., 2016; Xu & Saenko, 2015; Bahdanau et al., 2015; Luong et al., 2015; Weston et al., 2015; Graves et al., 2014). For example, they have been used to handle sequences of variable lengths in neural machine translation models (Bahdanau et al., 2015; Luong et al., 2015), speech recognition (Chorowski et al., 2014) and handwriting generation (Graves, 2013), and manage memory access mechanisms for memory networks (Weston et al., 2015) and neural turing machines (Graves et al., 2014). When applied to computer vision tasks to resolve reference problems, these models are designed to pay attention to CNN features corresponding to subregions in the input image. Image caption generation and visual question answering are typical examples benefited from this attention mechanism (Xu et al., 2015; Yang et al., 2015; Andreas et al., 2016; Xu & Saenko, 2015).
37
+
38
+ Attention by Image Transformation Another stream of attention models is based on image transformations. These approaches transform a regular grid and sample from the input image with the transformed grid whose element corresponds to a location in the input image. Ba et al. (2015) and Mnih et al. (2014) transform an input image with predicted translation parameters $t _ { x }$ and $t _ { y . }$ ) and a fixed scale factor $( \hat { s } < 1 )$ ) for image classification or multiple object recognition. Scale factor is also predicted in (Gregor et al., 2015) for image generation, where the network uses Gaussian filters for sampling. Spatial transformer networks (STNs) predict all six parameters of the affine transformation matrix, and even extend it to a projective transformation and a 16-point thin plate spline transformation (Jaderberg et al., 2015). Because all these transformations used in (Jaderberg et al., 2015) involve scale factors, STNs are capable of dealing with objects in different sizes. However, STN is limited when there are multiple candidate regions for attention. Our model overcomes this problem by formulating attention as progressive filtering on feature maps instead of assuming objects can be roughly aligned by a single spatial transformation.
39
+
40
+ Multiple Attention Processes There have been several approaches iteratively performing attentive processes to resolve relations between targets. Yang et al. (2015) iteratively attend to images conditioned on the previous attention states for visual question answering as the objects of interest are often not specified explicitly in questions but implicitly in relational expressions about the target objects. Also, Weston et al. (2015) and Graves et al. (2014) incorporate attention mechanisms to memory cells iteratively to retrieve different values stored in the memory. Our proposed model is similar in spirit of iterative attention but aimed at attending to a single target object via operating on multiple CNN layers progressively, i.e., attention information is predicted progressively from feature maps through multiple layers of CNN to capture the fine shapes of the target object.
41
+
42
+ In (Jaderberg et al., 2015), the authors also conducted an experiment with a network with multiple transformer layers. However, the attention shapes of STNs are still constrained to the type of transformation regardless of the number of transformers. In contrast, the quality of the attention shapes is improved through progressive attention process in the proposed method. Stollenga et al. (2014) introduced a deep network which manipulates intermediate features of a fixed classifier through channel-wise attention process. Although the channel-wise attention process is used at multiple layers of the network to manipulate the intermediate feature representations, they never explored spatial attention process. More importantly, this method requires to have an accurate pretrained classifier for the target classes prior to learning attention while pretraining a general query-specific attribute classifier is not trivial. It is also notable that both (Jaderberg et al., 2015) and (Stollenga et al., 2014) target simple classification tasks without queries while we aim to tackle the query-specific attribute prediction task where answers from a single input image can be very different depending on the input query.
43
+
44
+ Training Attention Models The networks with soft attention are fully differentiable and thus trainable end-to-end by backpropagation. Xu et al. (2015) and Zaremba & Sutskever (2015) introduced a stochastic hard attention, where the network explicitly selects a single feature based on the predicted attention probability map. Because the explicit selection (or sampling) procedure is not differentiable, REINFORCE learning rule (Williams, 1992), is used to make networks trainable. Transformation based attention models (Ba et al., 2015; Mnih et al., 2014) are mostly trained by REINFORCE learning rule but STN (Jaderberg et al., 2015) proposed a fully differentiable formulation and made it possible to train end-to-end. Compared to these attention networks, the proposed network is also trainable end-to-end by the standard backpropagation without any extra techniques since every operation within the network is differentiable.
45
+
46
+ # 3 PROGRESSIVE ATTENTION NETWORKS
47
+
48
+ To overcome the limitation of existing attention models in handling variable object scales and shapes, we propose a progressive attention mechanism. In the proposed model, irrelevant features at different scales are suppressed by attention filtering steps in different CNN layers, and computation is focused on the features corresponding to regions of interest. At each attention layer, the model predicts an attention map given the input query and the current feature map via an attention module, and then the attention maps is multiplied to the feature maps channel-wise to obtain attended feature map. In each layer, each attended feature map is then forwarded to the next layer of the CNN for construction of the following feature map, which is illustrated in Figure 2. This progressive attention process allows us to estimate precise details of attention areas while maintaining deep representations appropriate for high-level inference tasks.
49
+
50
+ ![](images/e764a7c29f9a8b9ce5b5c1afbd4468a5a63f20221dd80515a96c9fb10d367358.jpg)
51
+ Figure 2: Overall procedure of progressive attention. Attentive processes are repeatedly applied to feature maps at multiple layers and the resulting attended feature maps are used as input feature maps for the next convolution layers in CNN. Attention probabilities $\alpha ^ { \hat { l } }$ are estimated from feature maps and input query. In the last attention layer, the attended feature maps are aggregated to a single feature vector (by sum pooling) and fed to the final attribute classifier.
52
+
53
+ # 3.1 PROGRESSIVE ATTENTIVE PROCESS
54
+
55
+ Let $\pmb { f } ^ { l } \in \mathbb { R } ^ { H _ { l } \times W _ { l } \times C _ { l } }$ be an output feature map of a layer $l \in \{ 0 , \ldots , L \}$ in CNN with width $W _ { l }$ , height $H _ { l }$ and $C _ { l }$ channels, and $\dot { f } _ { i , j } ^ { l } \in \mathbb { R } ^ { C _ { l } }$ be a feature at $( i , j )$ of the feature map $f ^ { l }$ . In the proposed PAN, an attentive process is applied to multiple layers of CNN and we obtain the attended feature map $\hat { f } ^ { l } = [ \hat { f } _ { i , j } ^ { l } ]$ , which is given by
56
+
57
+ $$
58
+ \hat { f } _ { i , j } ^ { l } = \alpha _ { i , j } ^ { l } f _ { i , j } ^ { l } .
59
+ $$
60
+
61
+ Here, the attention probability $\alpha _ { i , j } ^ { l }$ for a feature $f _ { i , j } ^ { l }$ is calculated by
62
+
63
+ $$
64
+ s _ { i , j } ^ { l } = g _ { \mathrm { a t t } } ^ { l } ( f _ { i , j } ^ { l } , q ; \theta _ { \mathrm { a t t } } ^ { l } ) ~ \mathrm { a n d } ~ \alpha _ { i , j } ^ { l } = \left\{ { \begin{array} { l l } { \mathrm { s o f t m a x } _ { i , j } ( s ^ { l } ) } & { { \mathrm { i f } } ~ l = L } \\ { \sigma ( s _ { i , j } ^ { l } ) } & { { \mathrm { o t h e r w i s e } } } \end{array} } , \right.
65
+ $$
66
+
67
+ where $g _ { \mathrm { a t t } } ^ { l } ( \cdot )$ denotes the attention function with a set of parameters $\pmb { \theta } _ { \mathrm { a t t } } ^ { l }$ for layer $l$ , $s _ { i , j } ^ { l }$ is the attention score at $( i , j )$ in layer $l , q$ is the query, and $\sigma ( \cdot )$ is a sigmoid function. The attention probability at each location is independent of others in the same feature map, where a sigmoid function is employed to constrain attention probabilities between 0 and 1. For the last layer of attention, we use a softmax function over the entire spatial region for final aggregation of features.
68
+
69
+ Unlike the soft attention model (see Appendix A), in the intermediate attention layers, the attended feature map $\hat { f } ^ { l }$ is not summed up to generate a single vector representation of the attended regions. Instead, the attended feature map is forwarded to the next layer as an input to compute the next feature map, which is given by
70
+
71
+ $$
72
+ { \pmb f } ^ { l + 1 } = g _ { \mathrm { C N N } } ^ { l + 1 } ( \hat { \pmb f } ^ { l } ; { \pmb \theta } _ { \mathrm { C N N } } ^ { l + 1 } )
73
+ $$
74
+
75
+ where $g _ { \mathrm { C N N } } ^ { l + 1 } ( \cdot )$ is the next CNN operations parameterized by $\theta _ { \mathrm { C N N } } ^ { l }$
76
+
77
+ This feedforward procedure with attentive processes in CNN is repeated from the input of the CNN, i.e., $f ^ { 0 } = I$ , until $\hat { f } ^ { L }$ is obtained. Then, the attended feature $f ^ { \mathrm { a t t } }$ is finally retrieved by summing up all the features in the final attended feature map $\hat { f } ^ { L }$ as in soft attention, which is given by
78
+
79
+ $$
80
+ f ^ { \mathrm { a t t } } = \sum _ { i } ^ { H } \sum _ { j } ^ { W } \hat { f } _ { i , j } ^ { L } = \sum _ { i } ^ { H } \sum _ { j } ^ { W } \alpha _ { i , j } ^ { L } f _ { i , j } ^ { L } .
81
+ $$
82
+
83
+ The attended feature $f ^ { \mathrm { a t t } }$ obtained by such process is then used as the input to the visual attribute classifier as illustrated in Figure 2.
84
+
85
+ In our models, we place the attention layers to the output of max pooling layers instead of every layer in CNN because the reduction of feature resolution within CNN mainly comes from pooling layers. In practice„ we can also skip the first few pooling layers and only attach the attention module to the outputs of last $K$ pooling layers.
86
+
87
+ ![](images/3cad12e62bf51ad159ecf48c9f078a49b13e3fd496d3f0da70a30e4704aa8fb6.jpg)
88
+ Figure 3: Attention estimation (a) without local context and (b) with local context. In (a), $\alpha _ { i , j } ^ { l }$ is predicted from $f _ { i , j } ^ { l }$ only while its spatially adjacent features are also used to estimate $\alpha _ { i , j } ^ { l }$ in (b).
89
+
90
+ 3.2 MULTI-RESOLUTION ATTENTION ESTIMATION
91
+
92
+ In Eq. (3), the resolution of attention probability map $\alpha ^ { l }$ depends on the size of the feature map in the corresponding layer. Due to the nature of a CNN with convolution and pooling layers, the resolution of $\dot { \mathbf { \alpha } } _ { \alpha } l$ will decrease with the increasing depth of a layer. Since the attentive processes are performed over multiple layers recursively in our framework, it is possible to attend to the regions of specific sizes and shapes. Note that the proposed network can exploit high-level semantics in deep representations for inference without losing attention resolution.
93
+
94
+ The progressive attention model is still very effective in predicting fine attention shapes as the attention information is aggregated over multiple layers to suppress irrelevant structures at different granularity. In lower layers, features whose receptive fields contain small distractors are suppressed first. Meanwhile, the features from a part of large distractors remain intact but passed to the next layer delaying its suppression. In higher layers, features of these large distractors would get low attention probability as each feature contains information from larger receptive fields allowing the attention module to distinguish whether the feature is from a distractor or the target object. This phenomenon is well demonstrated in the qualitative results in our experiments (Section 4). An additional benefit of progressive attention is that it is more straightforward during inference since it is a pure feedforward network.
95
+
96
+ # 3.3 LOCAL CONTEXT
97
+
98
+ A basic version of PAN discussed so far predicts an attention probability $\alpha _ { i , j } ^ { l }$ based solely on the feature $f _ { i , j } ^ { l }$ at a single feature map location. We can improve the quality of attention estimation by allowing the attention layers to observe a local context of the target feature. The local context $\mathcal { F } _ { i , j } ^ { l }$ of a feature $f _ { i , j } ^ { l }$ is composed of its spatially adjacent features. For example, the local context can be given by $\mathcal { F } _ { i , j } ^ { l ^ { * } } = \{ f _ { s , t } ^ { l } | i - \delta \leq s \leq i + \delta , j - \delta \leq t \leq j + \delta \}$ as illustrated in Figure 3. The attention score is now predicted by the attention network with local context as
99
+
100
+ $$
101
+ \begin{array} { r } { s _ { i , j } ^ { l } = g _ { \mathrm { a t t } } ^ { l } ( \mathcal { F } _ { i , j } ^ { l } , q ; \mathbf { \theta } _ { \mathrm { a t t } } ^ { l } ) . } \end{array}
102
+ $$
103
+
104
+ In this architecture, the area of the local context is given by the filter size corresponding to the composite operation of convolution followed by pooling in the next layer. The local context does not need to be considered in the last layer of attention since its activations are used to compute the final attended feature map. Local context improves attention prediction as it enables the centroid feature to be compared with surrounding features which makes the estimated attention more discriminative.
105
+
106
+ # 3.4 TRAINING PROGRESSIVE ATTENTION NETWORKS
107
+
108
+ Training a PAN is as simple as training a soft attention network (Xu et al., 2015) because every operation within the network is differentiable. The entire network is trained end-to-end by the standard backpropagation minimizing the binary cross entropies of the object-specific visual attributes. When we train it from a pretrained CNN, the CNN part should always be fine-tuned together since the intermediate attention maps may change the input distributions of their associated layers in CNN.
109
+
110
+ ![](images/94c7041d8777e5b25b17c8531f0d6449c8ca5363b4eaa10ee8ad2b0f704d762e.jpg)
111
+ Figure 4: Example of the MREF datasets.
112
+
113
+ <table><tr><td>STN</td><td>SAN</td><td>HAN</td><td></td><td>PAN</td></tr><tr><td colspan="5">conv1 (3×3@32)</td></tr><tr><td colspan="5">pool1(2×2)</td></tr><tr><td colspan="2">?</td><td>?</td><td></td><td>att1</td></tr><tr><td colspan="5">conv2 (3×3@32)</td></tr><tr><td colspan="5">pool2 (2×2)</td></tr><tr><td colspan="2">1</td><td>√</td><td></td><td>att2</td></tr><tr><td colspan="5">conv3 (3x3@32)</td></tr><tr><td colspan="5">p0ol3(2×2)</td></tr><tr><td colspan="2">1</td><td colspan="2">√</td><td>att3</td></tr><tr><td colspan="5">conv4 (3×3@32)</td></tr><tr><td colspan="5">pool4 (2×2)</td></tr><tr><td>att (STN)</td><td>att (soft)</td><td>att (hard)</td><td></td><td>att4</td></tr><tr><td colspan="5">fc (classification layer)</td></tr></table>
114
+
115
+ ![](images/cd56a385c0acaccbf28fad24ff2a5b6e2b2392599317aaea198761654b9fdc4a.jpg)
116
+ (b) Architecture of attention function $g _ { \mathrm { a t t } } ^ { l } ( \cdot )$ . Local contexts $\mathcal { F } _ { i , j } ^ { l }$ are used only in PAN-CTX.
117
+
118
+ (a) Network architectures of models on MREF. Arrows represents direct connection to next layer without attention.
119
+
120
+ Figure 5: Detailed illustration of network architectures on MNIST Reference experiments.
121
+
122
+ # 4 EXPERIMENTS
123
+
124
+ # 4.1 MNIST REFERENCE
125
+
126
+ Datasets We conduct experiments on a synthetic dataset created from MNIST (LeCun et al., 1998). The synthetic dataset is referred to as MNIST Reference (MREF; Figure 4a), where each training example is a triple of an image, a query number and its color label. The task on this dataset is to predict the color of the number identified by a query. Five to nine distinct MNIST numbers with different colors in {green, yellow, white, red, blue} and scales in [0.5, 3.0] are randomly sampled and located in each $1 0 0 \times 1 0 0$ image. When coloring numbers, Gaussian noise is added to the reference color value. To simulate more realistic situations, we made two variants of MREF by chainging backgrounds to either distractors (MDIST; Figure 4b) or natural images (MBG; Figure $\mathsf { 4 c }$ ). Background images in MDIST are constructed with randomly cropped $5 \times 5$ patches of MNIST images whereas backgrounds of MBG are filled with natural scene images randomly chosen from the SUN Database (Xiao et al., 2014). The training, validation and test sets contain 30,000, 10,000 and 10,000 images respectively.
127
+
128
+ Experimental Settings We implement the proposed network with and without the local context observation referred to as PAN-CTX and PAN, respectively. In addition, soft attention network (SAN), hard attention network (HAN) (Xu et al., 2015) and two variants of spatial transformer network (STN-S and STN-M) (Jaderberg et al., 2015), are used as baseline models for comparisons. While STN-S is the model with a single transformer layer, STN-M contains multiple transformer layers in the network. We reimplemented SAN and STNs following the descriptions in (Xu et al., 2015) and (Jaderberg et al., 2015), respectively, and trained HAN by optimizing the marginal log-likelihood loss as it is more accurate and feasible due to small search space in our task. The architecture of image encoding network in SAN and HAN and localization networks in STNs are all identical for fair comparisons. CNN in the proposed network also has the same architecture except for the additional layers for hierarchical attention. The CNN is composed of four stacks of $3 \times 3$ convolutions with 32 channels (stride 1) followed by a $2 \times 2$ max pooling layer (stride 2) as illustrated in Figure 5a. We used a single fc layer for classification because the task requires simple color prediction. The attention functions ${ \dot { g } } _ { \mathrm { a t t } } ^ { l } ( \cdot )$ for all models are formed as multi-layer perceptrons with two layers (Figure 5b).
129
+
130
+ Table 1: Performance of attention models on MREF, MDIST, and MBG datasets.
131
+ (a) Color prediction accuracy [%]
132
+
133
+ <table><tr><td></td><td>MREF</td><td>MDIST</td><td>MBG</td></tr><tr><td>STN-S STN-M</td><td>39.10</td><td>38.32</td><td>32.27 52.25</td></tr><tr><td>SAN</td><td>93.89 82.94</td><td>85.09 75.73</td><td>53.77</td></tr><tr><td>HAN</td><td>81.84</td><td>78.49</td><td>55.84</td></tr><tr><td>PAN</td><td>95.92</td><td>91.65</td><td>69.46</td></tr><tr><td>PAN-CTX</td><td>98.51</td><td>96.02</td><td>85.55</td></tr><tr><td></td><td></td><td></td><td></td></tr></table>
134
+
135
+ (b) True-positive ratio [%]
136
+
137
+ <table><tr><td></td><td>MREF</td><td>MDIST</td><td>MBG</td></tr><tr><td>Uniform</td><td>2.34</td><td>2.35</td><td>2.39</td></tr><tr><td>SAN</td><td>13.61</td><td>12.56</td><td>6.73</td></tr><tr><td>HAN</td><td>13.95</td><td>13.81</td><td>7.64</td></tr><tr><td>PAN</td><td>17.39</td><td>13.10</td><td>8.62</td></tr><tr><td>PAN-CTX</td><td>22.59</td><td>22.80</td><td>11.01</td></tr></table>
138
+
139
+ ![](images/28b439aa72e5ef6bca33564cb56e3c10772b10253348aa0105eeb4b9c67329ba.jpg)
140
+ Figure 6: Analysis of algorithms on MREF (left), MDIST (middle), and MBG (right).
141
+
142
+ The function takes the concobject and a feature vector ation of a query , and outputs a $q$ , which is a one attention score vector representing the target. In PAN-CTX, the attention $f _ { i , j } ^ { l }$ $s _ { i , j } ^ { l }$
143
+ functions of att1, att2 and att3 additionally take the local context $\mathcal { F } _ { i , j } ^ { l }$ containing the adjacent
144
+ features with $\delta = 2$ . Every model is trained from scratch.
145
+
146
+ Results Table 1a presents color prediction accuracy of all compared algorithms. It is obvious that PAN outperforms all the previous approaches with significant margins and PAN-CTX further improves the performance by exploiting the local contexts for attention estimation. While STN-S often fails to predict the correct answers, STN-M learns to predict the color of the target object through multiple transformations and shows comparable performance to PAN in MREF. However, the performance of STN-M dramatically drops as the dataset becomes more complex and realistic, resulting in even lower performance than SAN and HAN. Also, note that STN-S is capable of attending to any region attended by STN-M since both models predict attention regions by estimating an affine transformation. STN-M achieves the improvement by learning multiple transformers from gradients coming from different levels of features. In contrast to those parametric models, the proposed network can predict attention map with more fine-grained shapes capturing the spatial support of the target object better.
147
+
148
+ To evaluate the scale sensitivity of each model, we divided the test images into five subsets based on target object scales with uniform interval and computed the accuracies of the models. The results are presented in Figure 6a, where SAN and HAN tend to predict the correct answers only in a scale range between 1.0 and 2.0, while their performance is degraded significantly with wild scale changes. STN-M becomes vulnerable to scale variations in more realistic settings. In contrast, PAN and PAN-CTX are robust to scale variations due to their multi-scale attention machanism especially when the local contexts are incorporated.
149
+
150
+ Unlike STNs whose attention is constrained to rhombic regions, those models based on feature-wise attention maps can produce attention regions adaptive to the shapes of the target object. We evaluate the attention quality of these models using two complementary criteria: true-positive ratio (TPR)
151
+
152
+ ![](images/641fcb63eb7235d2ce9b8c9bd49a041846a1cce368b755b432bdd8644243c664.jpg)
153
+ Figure 7: Qualitative results of SAN, HAN and PAN-CTX. (a) Input images faded by attended feature map (c). (b) Magnitude of activations in feature maps $f _ { i , j } ^ { l }$ before attention: the activations are mapped to original image space by spreading activations to their receptive fields. (c) Magnitude of activations in attended feature maps $\hat { f } _ { i , j } ^ { l }$ which shows the effect of attention in contrast to (b). (d) Magnitude of activations of the attended feature maps $\hat { f } _ { i , j } ^ { l } .$ in its original resolution of the feature map. For PAN-CTX, only last three attention layers are visualized and attentions of ealier layers are accumulated for visualizing higher attention layers. For HAN, (c) and (d) represent attention probability because attended feature map is not available. Every image except for input image is rescaled into $[ 0 , 1 ]$ by $( x - m i n ) / ( m a x \bar { - } m i n )$ .
154
+
155
+ and precision-recall (PR) curve. TPR measures how strong attention is given to proper location by computing the ratio of the aggregated attention probability within the desired area (a.k.a., groundtruth segmentation) to the attention probability in the whole image (Table 1b). PR measures the overlaps between ground-truth segmentations and binarized segmentation predictions constructed with different thresholds (Figure 6b). Note that the proposed model with the local context observation gives the best results with significant margin compared to all the other methods in terms of both criteria. These results suggest that PAN-CTX constructs more accurate shapes of attended regions than all other attention models.
156
+
157
+ Figure 7 shows the qualitative results of the proposed method and two baselines on the MBG dataset. The proposed model yields accurate attention regions eventually by gradually augmenting attention and suppressing irrelevant regions in the image. We can observe that the proposed model could maintain the high attention resolution through the progressive attention process. In contrast, the baseline models attend to the target objects only once at the top layer resulting in a coarse attention in size and shape. More qualitative results in these experiments are presented in Appendix C.
158
+
159
+ # 4.2 ATTRIBUTE PREDICTION ON VISUAL GENOME
160
+
161
+ Dataset Visual Genome (VG) (Krishna et al., 2016) is an image dataset containing several types of annotations: question/answer pairs, image captions, objects, object attributes and object relationship. We formulate the object attribute prediction as a multi-label classification task with reference. Given an input image and a query (i.e., an object category), we predict the binary attributes of individual objects specified by a query. We used 827 object classes and 749 attribute classes that appear more than 100 times. A total of 86,674 images with 667,882 object attribute labels are used for our experiment, and they are split into training, validation and test sets each containing 43,337, 8,667 and 34,670 images. The task is challenging because scales of objects largely vary and the attributes may be associated with very small objects.
162
+
163
+ Table 2: Weighted mAP of the attribute prediction and TPR of attentions measured with ground-truth bounding boxes on VG dataset.
164
+
165
+ <table><tr><td rowspan="2"></td><td colspan="2">attention only</td><td colspan="2">w/ prior</td></tr><tr><td>mAP</td><td>TPR</td><td>mAP</td><td>TPR</td></tr><tr><td>SAN</td><td>27.62</td><td>15.01</td><td>31.84</td><td>17.65</td></tr><tr><td>HAN</td><td>27.72</td><td>17.24</td><td>31.93</td><td>19.70</td></tr><tr><td>PAN-CTX</td><td>29.38</td><td>18.01</td><td>32.50</td><td>20.17</td></tr></table>
166
+
167
+ ![](images/2974d5b1e04dae429a45ec8de80258c0aa0ae2c9b9f9f79f3b4c5f7c614bd55a.jpg)
168
+ Figure 8: Visualization of example attentions of HAN and PAN-CTX on VG dataset. Attention maps present magnitude of attended features and red boxes show ground truth bounding boxes of query.
169
+
170
+ Experimental Settings and Results We mainly compare our algorithm with SAN and HAN since STNs could not learn a proper attention process on VG. The transformer layers of STNs generated padded images of different sizes and rotations to encode the query vector to fit the query-specific biases. All the networks share the same CNN architecture of VGG-16 network (Simonyan & Zisserman, 2015), which is pretrained on ImageNet (Deng et al., 2009) and is further fine-tuned on the VG dataset for the attribute prediction. For SAN and HAN, an attention layer is attached to the last pooling layer in VGG-16 while PAN stacks an additional attention layer with the local contexts $\mathcal { F } _ { i , j } ^ { \dot { l } }$ with $\delta = 2$ on top of each of the last three pooling layers in VGG-16. We skip to place attention layers at the first two pooling layers (pool1 and pool2) because the features in those layers are not discriminative enough to filter out.We also test models with object class conditional prior. In these models, the final attended feature is fused with the query once more by a fully connected layer allowing the network to reflect the conditional distribution of the attributes given the query. Refer to Appendix B for more detailed descriptions on the network architectures.
171
+
172
+ All three models are evaluated in terms of mean average precision (mAP) weighted by the frequencies of the attribute labels in the test set, where the computation of mAP follows PASCAL VOC protocol (Everingham et al., 2010). The proposed method consistently achieves the best weighted mAP scores in both experimental settings as shown in Table 2 but the gain reduces with object class conditional prior. Table 2 also shows TPR of each model measured with the ground-truth bounding box for evaluating the attention qualities, and the proposed method shows the best TPR. Figure 8 presents the qualitative results of the proposed network and HAN on VG dataset.
173
+
174
+ # 5 CONCLUSION
175
+
176
+ We proposed a novel hierarchical attention network, which progressively attends to regions of interest through multiple layers of a CNN. As the model is recursively applied to multiple layers of CNN with an inherent feature hierarchy, it accurately predicts regions of interest with variable sizes and shapes. We also incorporate local contexts into our attention network for more robust estimation. The proposed network can be trained end-to-end with standard error backpropagation. We tested the model on both synthetic and real datasets, and demonstrated significant performance improvement over existing attention methods.
177
+
178
+ # REFERENCES
179
+
180
+ Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Deep compositional question answering with neural module networks. In CVPR, 2016.
181
+
182
+ Jimmy Ba, Volodymyr Mnih, and Koray Kavukcuoglu. Multiple object recognition with visual attention. In ICLR, 2015.
183
+
184
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015.
185
+
186
+ Jan Chorowski, Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. End-to-end continuous speech recognition using attention-based recurrent nn: first results. arXiv preprint arXiv:1412.1602, 2014.
187
+
188
+ J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009.
189
+
190
+ Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. International journal of computer vision, 88(2): 303–338, 2010.
191
+
192
+ Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013.
193
+
194
+ Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014.
195
+
196
+ Karol Gregor, Ivo Danihelka, Alex Graves, and Daan Wierstra. Draw: A recurrent neural network for image generation. In ICML, pp. 1462–1471, 2015.
197
+
198
+ Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In NIPS, pp. 2008–2016, 2015.
199
+
200
+ Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. arXiv preprint arXiv:1602.07332, 2016.
201
+
202
+ Hugo Larochelle and Geoffrey E Hinton. Learning to combine foveal glimpses with a third-order boltzmann machine. In NIPS, pp. 1243–1251, 2010.
203
+
204
+ Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
205
+
206
+ Minh-Thang Luong, Hieu Pham, and Christopher D Manning. Effective approaches to attention-based neural machine translation. In EMNLP, 2015.
207
+
208
+ Volodymyr Mnih, Nicolas Heess, Alex Graves, et al. Recurrent models of visual attention. In NIPS, pp. 2204–2212, 2014.
209
+
210
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. ICLR, 2015.
211
+
212
+ Marijn F Stollenga, Jonathan Masci, Faustino Gomez, and Jürgen Schmidhuber. Deep networks with internal selective attention through feedback connections. In Advances in Neural Information Processing Systems, pp. 3545–3553, 2014.
213
+
214
+ Jason Weston, Sumit Chopra, and Antoine Bordes. Memory networks. In ICLR, 2015.
215
+
216
+ Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3-4):229–256, 1992.
217
+
218
+ Jianxiong Xiao, Krista A Ehinger, James Hays, Antonio Torralba, and Aude Oliva. Sun database: Exploring a large collection of scene categories. International Journal of Computer Vision, pp. 1–20, 2014.
219
+
220
+ Huijuan Xu and Kate Saenko. Ask, attend and answer: Exploring question-guided spatial attention for visual question answering. arXiv preprint arXiv:1511.05234, 2015.
221
+
222
+ Kelvin Xu, Jimmy Ba, Ryan Kiros, Aaron Courville, Ruslan Salakhutdinov, Richard Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In ICML, 2015.
223
+
224
+ Zichao Yang, Xiaodong He, Jianfeng Gao, Li Deng, and Alex Smola. Stacked attention networks for image question answering. arXiv preprint arXiv:1511.02274, 2015.
225
+
226
+ Wojciech Zaremba and Ilya Sutskever. Reinforcement learning neural turing machines. arXiv preprint arXiv:1505.00521, 2015.
227
+
228
+ # Appendices
229
+
230
+ # A SOFT ATTENTION MODEL
231
+
232
+ In this appendix section, we explain the soft attention network which is introduced in $\mathrm { X u }$ et al., 2015) and used as one of the baseline models in the experiments. Given a feature map, the soft attention network calculates an attention probability map and uses it to compute the attended feature for classification or other tasks. Given a feature map $\pmb { \dot { f } } \in \mathbb { R } ^ { H \times W \times C }$ and a query $q$ containing information of where to attend, a soft attention model first obtains an attended feature map $\hat { \pmb { f } } \in \mathbb { R } ^ { H \times W \times C }$ , where $W$ is width, $H$ is height, and $C$ is the number of channels. The input feature map $f$ is generally a CNN output of an input image $I$ , which is given by
233
+
234
+ $$
235
+ \begin{array} { r } { \pmb { f } = \mathrm { C N N } ( I ) . } \end{array}
236
+ $$
237
+
238
+ For each feature $f _ { i , j } \in \mathbb { R } ^ { C }$ at $( i , j )$ of the feature map $f$ and the query $q$ , the attention probability map denoted by $\mathbf { \alpha } \alpha = [ \alpha _ { i , j } ]$ is given by
239
+
240
+ $$
241
+ \begin{array} { r l } & { s _ { i , j } = g _ { \mathrm { a t t } } ( f _ { i , j } , q ; \pmb { \theta } _ { \mathrm { a t t } } ) } \\ & { \alpha _ { i , j } = \mathrm { s o f t m a x } _ { i , j } ( s ) , \quad 0 \leq \alpha _ { i , j } \leq 1 } \end{array}
242
+ $$
243
+
244
+ where $g _ { \mathrm { a t t } } ( \cdot )$ is the attention network parameterized by $\pmb { \theta } _ { \mathrm { a t t } }$ and $\boldsymbol { s } = \left[ s _ { i , j } \right]$ is an attention score map. The attention score map is normalized with softmax to produce attention probabilities $\alpha _ { i , j }$ . Note that $g _ { \mathrm { a t t } } ( \cdot )$ can be any kind of network such as a multilayer perceptron.
245
+
246
+ Let $\hat { f } _ { i , j } \in \mathbb { R } ^ { C }$ be a vector of the attended feature map $\hat { f }$ at $( i , j )$ . Then, the attended feature denoted by $f ^ { \mathrm { a t t } } \in \mathbb { R } ^ { C }$ is computed by a weighted sum of features as
247
+
248
+ $$
249
+ f ^ { \mathrm { a t t } } = \sum _ { i } ^ { H } \sum _ { j } ^ { W } \hat { f } _ { i , j } = \sum _ { i } ^ { H } \sum _ { j } ^ { W } \alpha _ { i , j } f _ { i , j } .
250
+ $$
251
+
252
+ Ideally, the locations in the feature map corresponding to the receptive fields containing an object of interest should have the maximum attention probability while the others have zero probabilities similarly to the hard attention. This statement stands true only if the target object is perfectly aligned with the receptive fields in terms of position and scale. In practice, however, object location and size vary whereas the structure of receptive fields is fixed. Note that there exists the trade-off between the attention resolution and the representation power. If we choose to extract deep and high-level features, we give up high resolution in attention. On the other hand, we need to rely on shallow representations to increase attention resolution. This trade-off limits the performance of existing attention models.
253
+
254
+ # B NETWORK ARCHITECTURES ON VISUAL GENOME
255
+
256
+ In PAN, the convolution and pooling layers of VGG-16 network (Simonyan & Zisserman, 2015), pretrained on ImageNet (Deng et al., 2009), are used, and three additional attention layers att1, att2 and att3 are stacked on top of the last three pooling layers pool3, pool4 and pool5 respectively as illustrated in Figure 9a. The attention functions of att1 and att2 take the local contexts $\mathcal { F } _ { i , j } ^ { l }$ in addition to the query $q$ and the target feature $f _ { i , j } ^ { l }$ to obtain the attention score $s _ { i , j } ^ { l }$ . The size of the local contexts is squared with that of the receptive fields of the next three convolution layers before the next attention by setting $\delta = 3$ . Three convolutions same as the next three convolution layers in CNN firstly encode the target feature and the local context, and are initiallized with the same weights as in CNN (Figure 9b). This embedding is then concatenated with the one-hot query vector and fed to two fully connected layers, one fusing two modalities and the other estimating the attention score. In att3, the attention function takes the concatenation of the query and the target feature and feed it to two fully connected layers (Figure $^ { 9 \mathrm { c } }$ ). The attended feature $f ^ { \mathrm { a t t } }$ obtained from the last attention layer att3 is finally fed to a classification layer to predict the attributes.
257
+
258
+ The baseline networks also share the same architecture of CNN of VGG-16 network as in PAN (Figure 9a). In SAN, the soft attention described in Appendix A is attached to the top of CNN. In HAN, the hard attention (Xu et al., 2015) is attached to the top of CNN instead. The hard attention is
259
+
260
+ <table><tr><td rowspan=1 colspan=2>SAN</td><td rowspan=1 colspan=1>HAN</td><td rowspan=1 colspan=1>PAN</td></tr><tr><td rowspan=1 colspan=4>conv1_1(3x3@64)</td></tr><tr><td rowspan=1 colspan=4>conv1_2 (3×3@64)</td></tr><tr><td rowspan=1 colspan=4>pool1 (2×2)</td></tr><tr><td rowspan=1 colspan=4>conv2_1(3×3@128)</td></tr><tr><td rowspan=1 colspan=4>conv2_2 (3×3@128)</td></tr><tr><td rowspan=1 colspan=4>p0ol2 (2×2)</td></tr><tr><td rowspan=1 colspan=4>conv3_1(3×3@256)</td></tr><tr><td rowspan=1 colspan=4>conv3_2 (3×3@256)</td></tr><tr><td rowspan=1 colspan=4>conv3_3 (3×3@256)</td></tr><tr><td rowspan=1 colspan=4>p00l3 (2×2)</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>↓</td><td rowspan=1 colspan=1>att1</td></tr><tr><td rowspan=1 colspan=4>conv4_1 (3×3@512)</td></tr><tr><td rowspan=1 colspan=4>conv4_2 (3×3@512)</td></tr><tr><td rowspan=1 colspan=4>conv4_3 (3×3@512)</td></tr><tr><td rowspan=1 colspan=4>p00l4 (2×2)</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>+</td><td rowspan=1 colspan=1>att2</td></tr><tr><td rowspan=1 colspan=4>conv5_1(3×3@512)</td></tr><tr><td rowspan=1 colspan=4>conv5_2 (3×3@512)</td></tr><tr><td rowspan=1 colspan=4>conv5_3 (3×3@512)</td></tr><tr><td rowspan=1 colspan=4>pool5 (2×2)</td></tr><tr><td rowspan=1 colspan=2>att (soft)</td><td rowspan=1 colspan=1>att (hard)</td><td rowspan=1 colspan=1>att3</td></tr><tr><td rowspan=1 colspan=4>fc (classification layer)</td></tr></table>
261
+
262
+ (a) Network Architectures of Models.
263
+
264
+ ![](images/70a86db739becbe83076117a746fd8d155c69018b68fec5a61ca1c7b2188957c.jpg)
265
+
266
+ (b) Architecture of the intermediate attention functions??,?? $g _ { \mathrm { a t t } } ^ { l } ( \cdot )$ ???? in att1 and att2 of PAN.
267
+
268
+ ![](images/b9eea32dac4db9a26da8eb45895361fef2dd24ad642f0058ab50d2b7f0781d84.jpg)
269
+ (c) Architecture of the attention functions of SAN and HAN, ??and the last attention function of PAN.
270
+ Figure 9: Detailed illustration of network architectures on Visual Genome experiments.
271
+
272
+ implemented to maximize the marginal likelihood directly during training while the original paper maximized the variational lower bound of the marginal likelihood because of the large attention search space. For testing, we also directly calculated the marginal likelihood instead of picking a single prediction with the highest attention probability. This is possible because of relatively small search space of attention in our problem compared to the image captioning where the search space of attention increases exponentially depending on the lengths of sequences. The attention functions in the baselines consist of two fully connected layers taking the concatenation of the query and the target feature as in the attention function of att3 in PAN.
273
+
274
+ The proposed network and the baselines described above use the query for obtaining the attention probabilities and give us the pure strength of the attention models. However, the target object class, represented by the query, gives much more information than just attetion. It confines possible attributes and filters irrelevant attributes. For these reasons, we additionally experiment on a set of models that incorporate the target object class conditional prior for the attribute prediction. In these models, the query is fused with the attended feature $f ^ { \mathrm { a t t } }$ by an additional fully connected layer and the fused feature is used as the input of the classification layer.
275
+
276
+ # C MORE QUALITATIVE RESULTS ON MNIST REFERENCE
277
+
278
+ ![](images/a36ff8fd8a6994883e69592191939b1c71e600f140a242058a503e1d9797be10.jpg)
279
+ Figure 10: The qualitative results of SAN, HAN and PAN-CTX on the MREF and MDIST datasets. For each example, attended images are shown in the first row and the corresponding attention maps are shown on the second row. In case of the progressive attention network, the last three attention maps (attention 2, 3 and 4) are visualized. As can be seen, attention map at deeper layers reveal the evidence of aggregation over earlier attention maps.
280
+
281
+ ![](images/03a6c03aea9317f7bf25e6d2f34dc4baf845a30f2aefd11011a9f91f02e29298.jpg)
282
+ Figure 11: More qualitative results of SAN, HAN and PAN-CTX on the MBG dataset.
283
+
284
+ ![](images/250710d0ed7a1ca870f1ce5a3e54a26885832eef419615f0f8b6f6bd3d93f489.jpg)
285
+ Figure 12: Two common failure cases of attention models on the MBG dataset. (a) The models attend to a part of a larger structure which resembles the target object. (b) The models are confused by background distractors that are similar to the target object. Although failed, the examples show that the results of PAN-CTX are more visually interpretable (attended to query-like structures).
286
+
287
+ ![](images/c93f7641f8a25cae1c824bf6e9e428a467faaf8de0bab9b9e3474a6fc2f250a1.jpg)
288
+ Figure 13: The qualitative results of SAN, HAN and PAN-CTX on the VG dataset. For each example, the attended images are presented in the first row while their attended feature maps are shown in the second row. In the case of the PAN, last two attention maps are visualized where the attention maps at deeper layers reveal the evidence of aggregation of attention information over previous layers. The red boxes within the final attended images represent the ground truth bounding boxes for the query object annotated in the VG dataset. Each object may have multiple bounding boxes annotated by different annotators. The annotated answer is presented in the first column. The percentage for each method means the probability of the GT answer for corresponding method.
289
+
290
+ ![](images/b8ea18b379a59950de87fbc777bea629a4c33cae8637d5f31e118f621bcb0d4d.jpg)
291
+ Figure 14: More qualitative results of SAN, HAN and PAN-CTX on the VG dataset.
parse/train/HyEeMu_xx/HyEeMu_xx_content_list.json ADDED
@@ -0,0 +1,1491 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "PROGRESSIVE ATTENTION NETWORKS FOR VISUAL ATTRIBUTE PREDICTION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Paul Hongsuck $\\mathbf { S e o } ^ { \\dagger }$ , Zhe $\\mathbf { L i n } ^ { \\ddagger }$ , Scott Cohen‡, Xiaohui Shen‡ & Bohyung Han† \n†POSTECH, Korea \n‡Adobe Research \n{hsseo, bhhan}@postech.ac.kr \n{zlin, scohen, xshen}@adobe.com ",
17
+ "bbox": [
18
+ 183,
19
+ 167,
20
+ 730,
21
+ 242
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 280,
32
+ 544,
33
+ 295
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We propose a novel attention model which can accurately attend to target objects of various scales and shapes in images. The model is trained to gradually suppress irrelevant regions in an input image via a progressive attentive process over multiple layers of a convolutional neural network. The attentive process in each layer determines whether to pass or suppress features at certain spatial locations for use in the next layer. We further employ local contexts to estimate attention probability at each location since it is difficult to infer accurate attention by observing a feature vector from a single location only. The experiments on synthetic and real datasets show that the proposed attention network outperforms traditional attention methods in visual attribute prediction tasks. ",
40
+ "bbox": [
41
+ 233,
42
+ 315,
43
+ 764,
44
+ 454
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 491,
55
+ 336,
56
+ 507
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Attentive mechanisms often play important roles in modern neural networks (NNs) especially in computer vision tasks. Many visual attention models have been introduced in the previous literature, and they have shown that attaching an attention to NNs can improve the accuracy in various tasks such as image classification (Jaderberg et al., 2015; Ba et al., 2015; Mnih et al., 2014; Larochelle & Hinton, 2010), image generation (Gregor et al., 2015), image caption generation (Xu et al., 2015) and visual question answering (Yang et al., 2015; Andreas et al., 2016; Xu & Saenko, 2015). ",
63
+ "bbox": [
64
+ 174,
65
+ 526,
66
+ 825,
67
+ 611
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "There are several motivations for incorporating attentive mechanisms in NNs. One of them is that it is analogous to the perceptual process of human beings. The human visual system concentrates attention to a region of interest instead of processing an entire scene. Likewise, in a neural attention model, we can focus processing only on attended areas of the input image. This benefits us in terms of computational resources; the number of hidden units may be reduced since the hidden activations only need to encode the region with attention (Mnih et al., 2014). ",
74
+ "bbox": [
75
+ 174,
76
+ 617,
77
+ 825,
78
+ 700
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Another important motivation is that some computer vision tasks, e.g. visual question answering (VQA), require identifying the object for accurate attribute prediction. For example, when the input image contains multiple objects, the task should focus on the object specified by the question. Figure 1 illustrates an example task to predict the color (answer) of a given input number (query). The query specifies a particular object in the input image (number 7 in this example) for answering its attribute (red). To address this type of tasks, the network architecture should incorporate an attentive mechanism either explicitly or implicitly. ",
85
+ "bbox": [
86
+ 174,
87
+ 708,
88
+ 825,
89
+ 805
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "One of the most popular attention mechanisms for NNs is the soft attention method (Xu et al., 2015), which aggregates responses in a feature map weighted by their attention probabilities (see Appendix A for more details). This process results in a single attended feature vector. Since the soft attention method is fully differentiable, the entire network can be trained end-to-end with standard backpropagation. However, it can only model attention to local regions with a certain size depending on the receptive field of the layer chosen for attention. This makes the soft attention method inappropriate for complicated cases, where objects involve significant variations in their scales, and shapes. ",
96
+ "bbox": [
97
+ 174,
98
+ 811,
99
+ 825,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/d9b91e06d9b40191c22d2a2b5a528c469be4fe8441de99ea752bf5d1d9361c3b.jpg",
107
+ "image_caption": [
108
+ "Figure 1: An example reference problem (with the query 7 and the answer red) and intermediate attention maps using our progressive attention model. It shows that attention is gradually refined through the network layers for resolving the reference problem. Distracting patterns at smaller scales are suppressed at earlier layers while those at larger scales (e.g. 9) are suppressed at later layers with larger receptive fields. All attended images are independently rescaled for the visualization. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 184,
113
+ 99,
114
+ 813,
115
+ 213
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "To overcome this limitation, we propose a novel attention network, referred to as progressive attention network (PAN), which enables precise attention over objects of different scales and shapes by attaching attentive mechanisms to multiple layers within a convolutional neural network (CNN). More specifically, the proposed network forces attention prediction in intermediate feature maps by forwarding the attended feature maps in each layer to the subsequent layers in the CNN. Since a feature to be attended in the current feature map is obtained by combining lower-level features with smaller receptive fields, the network can learn to distill the precise spatial support relevant to the target objects as final attention. The contribution of this work is three-fold: ",
122
+ "bbox": [
123
+ 174,
124
+ 314,
125
+ 825,
126
+ 426
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "• A novel attention model (progressive attention network) which can be learned to predict attention matching accurate scale and shape of a target object \n• Use of local contexts to improve the stability of the progressive attention model \n• Achievement of significant performance improvement over traditional soft and hard attention approaches in query-specific visual attribute prediction tasks ",
133
+ "bbox": [
134
+ 215,
135
+ 439,
136
+ 825,
137
+ 521
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "The rest of this paper is organized as follows. We first review related work in Section 2. In Section 3, we describe the proposed model with local context information. We then present our experimental results on several datasets in Section 4 and conclude the paper in Section 5. ",
144
+ "bbox": [
145
+ 176,
146
+ 534,
147
+ 825,
148
+ 575
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 RELATED WORK ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 176,
158
+ 597,
159
+ 344,
160
+ 613
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Attention on Features The most straightforward attention mechanism is a feature based method, which selects a subset of features by explicitly attaching an attention model to NN architectures. The approaches relying on this attention mechanism have improved performance in many tasks (Xu et al., 2015; Yang et al., 2015; Andreas et al., 2016; Xu & Saenko, 2015; Bahdanau et al., 2015; Luong et al., 2015; Weston et al., 2015; Graves et al., 2014). For example, they have been used to handle sequences of variable lengths in neural machine translation models (Bahdanau et al., 2015; Luong et al., 2015), speech recognition (Chorowski et al., 2014) and handwriting generation (Graves, 2013), and manage memory access mechanisms for memory networks (Weston et al., 2015) and neural turing machines (Graves et al., 2014). When applied to computer vision tasks to resolve reference problems, these models are designed to pay attention to CNN features corresponding to subregions in the input image. Image caption generation and visual question answering are typical examples benefited from this attention mechanism (Xu et al., 2015; Yang et al., 2015; Andreas et al., 2016; Xu & Saenko, 2015). ",
167
+ "bbox": [
168
+ 174,
169
+ 628,
170
+ 826,
171
+ 809
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Attention by Image Transformation Another stream of attention models is based on image transformations. These approaches transform a regular grid and sample from the input image with the transformed grid whose element corresponds to a location in the input image. Ba et al. (2015) and Mnih et al. (2014) transform an input image with predicted translation parameters $t _ { x }$ and $t _ { y . }$ ) and a fixed scale factor $( \\hat { s } < 1 )$ ) for image classification or multiple object recognition. Scale factor is also predicted in (Gregor et al., 2015) for image generation, where the network uses Gaussian filters for sampling. Spatial transformer networks (STNs) predict all six parameters of the affine transformation matrix, and even extend it to a projective transformation and a 16-point thin plate spline transformation (Jaderberg et al., 2015). Because all these transformations used in (Jaderberg et al., 2015) involve scale factors, STNs are capable of dealing with objects in different sizes. However, STN is limited when there are multiple candidate regions for attention. Our model overcomes this problem by formulating attention as progressive filtering on feature maps instead of assuming objects can be roughly aligned by a single spatial transformation. ",
178
+ "bbox": [
179
+ 174,
180
+ 827,
181
+ 825,
182
+ 924
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "",
189
+ "bbox": [
190
+ 174,
191
+ 103,
192
+ 825,
193
+ 188
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Multiple Attention Processes There have been several approaches iteratively performing attentive processes to resolve relations between targets. Yang et al. (2015) iteratively attend to images conditioned on the previous attention states for visual question answering as the objects of interest are often not specified explicitly in questions but implicitly in relational expressions about the target objects. Also, Weston et al. (2015) and Graves et al. (2014) incorporate attention mechanisms to memory cells iteratively to retrieve different values stored in the memory. Our proposed model is similar in spirit of iterative attention but aimed at attending to a single target object via operating on multiple CNN layers progressively, i.e., attention information is predicted progressively from feature maps through multiple layers of CNN to capture the fine shapes of the target object. ",
200
+ "bbox": [
201
+ 174,
202
+ 219,
203
+ 825,
204
+ 345
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "In (Jaderberg et al., 2015), the authors also conducted an experiment with a network with multiple transformer layers. However, the attention shapes of STNs are still constrained to the type of transformation regardless of the number of transformers. In contrast, the quality of the attention shapes is improved through progressive attention process in the proposed method. Stollenga et al. (2014) introduced a deep network which manipulates intermediate features of a fixed classifier through channel-wise attention process. Although the channel-wise attention process is used at multiple layers of the network to manipulate the intermediate feature representations, they never explored spatial attention process. More importantly, this method requires to have an accurate pretrained classifier for the target classes prior to learning attention while pretraining a general query-specific attribute classifier is not trivial. It is also notable that both (Jaderberg et al., 2015) and (Stollenga et al., 2014) target simple classification tasks without queries while we aim to tackle the query-specific attribute prediction task where answers from a single input image can be very different depending on the input query. ",
211
+ "bbox": [
212
+ 174,
213
+ 352,
214
+ 825,
215
+ 532
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Training Attention Models The networks with soft attention are fully differentiable and thus trainable end-to-end by backpropagation. Xu et al. (2015) and Zaremba & Sutskever (2015) introduced a stochastic hard attention, where the network explicitly selects a single feature based on the predicted attention probability map. Because the explicit selection (or sampling) procedure is not differentiable, REINFORCE learning rule (Williams, 1992), is used to make networks trainable. Transformation based attention models (Ba et al., 2015; Mnih et al., 2014) are mostly trained by REINFORCE learning rule but STN (Jaderberg et al., 2015) proposed a fully differentiable formulation and made it possible to train end-to-end. Compared to these attention networks, the proposed network is also trainable end-to-end by the standard backpropagation without any extra techniques since every operation within the network is differentiable. ",
222
+ "bbox": [
223
+ 174,
224
+ 565,
225
+ 825,
226
+ 704
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "3 PROGRESSIVE ATTENTION NETWORKS ",
233
+ "text_level": 1,
234
+ "bbox": [
235
+ 176,
236
+ 742,
237
+ 529,
238
+ 758
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "To overcome the limitation of existing attention models in handling variable object scales and shapes, we propose a progressive attention mechanism. In the proposed model, irrelevant features at different scales are suppressed by attention filtering steps in different CNN layers, and computation is focused on the features corresponding to regions of interest. At each attention layer, the model predicts an attention map given the input query and the current feature map via an attention module, and then the attention maps is multiplied to the feature maps channel-wise to obtain attended feature map. In each layer, each attended feature map is then forwarded to the next layer of the CNN for construction of the following feature map, which is illustrated in Figure 2. This progressive attention process allows us to estimate precise details of attention areas while maintaining deep representations appropriate for high-level inference tasks. ",
245
+ "bbox": [
246
+ 174,
247
+ 784,
248
+ 825,
249
+ 922
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "image",
255
+ "img_path": "images/e764a7c29f9a8b9ce5b5c1afbd4468a5a63f20221dd80515a96c9fb10d367358.jpg",
256
+ "image_caption": [
257
+ "Figure 2: Overall procedure of progressive attention. Attentive processes are repeatedly applied to feature maps at multiple layers and the resulting attended feature maps are used as input feature maps for the next convolution layers in CNN. Attention probabilities $\\alpha ^ { \\hat { l } }$ are estimated from feature maps and input query. In the last attention layer, the attended feature maps are aggregated to a single feature vector (by sum pooling) and fed to the final attribute classifier. "
258
+ ],
259
+ "image_footnote": [],
260
+ "bbox": [
261
+ 202,
262
+ 98,
263
+ 792,
264
+ 231
265
+ ],
266
+ "page_idx": 3
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "3.1 PROGRESSIVE ATTENTIVE PROCESS ",
271
+ "text_level": 1,
272
+ "bbox": [
273
+ 176,
274
+ 333,
275
+ 464,
276
+ 348
277
+ ],
278
+ "page_idx": 3
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "Let $\\pmb { f } ^ { l } \\in \\mathbb { R } ^ { H _ { l } \\times W _ { l } \\times C _ { l } }$ be an output feature map of a layer $l \\in \\{ 0 , \\ldots , L \\}$ in CNN with width $W _ { l }$ , height $H _ { l }$ and $C _ { l }$ channels, and $\\dot { f } _ { i , j } ^ { l } \\in \\mathbb { R } ^ { C _ { l } }$ be a feature at $( i , j )$ of the feature map $f ^ { l }$ . In the proposed PAN, an attentive process is applied to multiple layers of CNN and we obtain the attended feature map $\\hat { f } ^ { l } = [ \\hat { f } _ { i , j } ^ { l } ]$ , which is given by ",
283
+ "bbox": [
284
+ 173,
285
+ 359,
286
+ 826,
287
+ 420
288
+ ],
289
+ "page_idx": 3
290
+ },
291
+ {
292
+ "type": "equation",
293
+ "img_path": "images/2ba71275a7332c51a1056332a59cb7b0af5ca5f1b4786961b1e63726b2219617.jpg",
294
+ "text": "$$\n\\hat { f } _ { i , j } ^ { l } = \\alpha _ { i , j } ^ { l } f _ { i , j } ^ { l } .\n$$",
295
+ "text_format": "latex",
296
+ "bbox": [
297
+ 447,
298
+ 424,
299
+ 550,
300
+ 445
301
+ ],
302
+ "page_idx": 3
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "Here, the attention probability $\\alpha _ { i , j } ^ { l }$ for a feature $f _ { i , j } ^ { l }$ is calculated by ",
307
+ "bbox": [
308
+ 174,
309
+ 453,
310
+ 619,
311
+ 470
312
+ ],
313
+ "page_idx": 3
314
+ },
315
+ {
316
+ "type": "equation",
317
+ "img_path": "images/e23fc93edcac634a1c51ef71f62883e665414a7fe3b9ad20b7d24e3ec3c2f981.jpg",
318
+ "text": "$$\ns _ { i , j } ^ { l } = g _ { \\mathrm { a t t } } ^ { l } ( f _ { i , j } ^ { l } , q ; \\theta _ { \\mathrm { a t t } } ^ { l } ) ~ \\mathrm { a n d } ~ \\alpha _ { i , j } ^ { l } = \\left\\{ { \\begin{array} { l l } { \\mathrm { s o f t m a x } _ { i , j } ( s ^ { l } ) } & { { \\mathrm { i f } } ~ l = L } \\\\ { \\sigma ( s _ { i , j } ^ { l } ) } & { { \\mathrm { o t h e r w i s e } } } \\end{array} } , \\right.\n$$",
319
+ "text_format": "latex",
320
+ "bbox": [
321
+ 271,
322
+ 481,
323
+ 723,
324
+ 520
325
+ ],
326
+ "page_idx": 3
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "where $g _ { \\mathrm { a t t } } ^ { l } ( \\cdot )$ denotes the attention function with a set of parameters $\\pmb { \\theta } _ { \\mathrm { a t t } } ^ { l }$ for layer $l$ , $s _ { i , j } ^ { l }$ is the attention score at $( i , j )$ in layer $l , q$ is the query, and $\\sigma ( \\cdot )$ is a sigmoid function. The attention probability at each location is independent of others in the same feature map, where a sigmoid function is employed to constrain attention probabilities between 0 and 1. For the last layer of attention, we use a softmax function over the entire spatial region for final aggregation of features. ",
331
+ "bbox": [
332
+ 174,
333
+ 529,
334
+ 825,
335
+ 602
336
+ ],
337
+ "page_idx": 3
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "Unlike the soft attention model (see Appendix A), in the intermediate attention layers, the attended feature map $\\hat { f } ^ { l }$ is not summed up to generate a single vector representation of the attended regions. Instead, the attended feature map is forwarded to the next layer as an input to compute the next feature map, which is given by ",
342
+ "bbox": [
343
+ 174,
344
+ 608,
345
+ 825,
346
+ 667
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "equation",
352
+ "img_path": "images/9dd5a73397ce0343d577b3f41e38ae1962e8a9d02e9cbd6f5fe381ba974ffc49.jpg",
353
+ "text": "$$\n{ \\pmb f } ^ { l + 1 } = g _ { \\mathrm { C N N } } ^ { l + 1 } ( \\hat { \\pmb f } ^ { l } ; { \\pmb \\theta } _ { \\mathrm { C N N } } ^ { l + 1 } )\n$$",
354
+ "text_format": "latex",
355
+ "bbox": [
356
+ 413,
357
+ 669,
358
+ 584,
359
+ 690
360
+ ],
361
+ "page_idx": 3
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "where $g _ { \\mathrm { C N N } } ^ { l + 1 } ( \\cdot )$ is the next CNN operations parameterized by $\\theta _ { \\mathrm { C N N } } ^ { l }$ ",
366
+ "bbox": [
367
+ 173,
368
+ 698,
369
+ 617,
370
+ 715
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "This feedforward procedure with attentive processes in CNN is repeated from the input of the CNN, i.e., $f ^ { 0 } = I$ , until $\\hat { f } ^ { L }$ is obtained. Then, the attended feature $f ^ { \\mathrm { a t t } }$ is finally retrieved by summing up all the features in the final attended feature map $\\hat { f } ^ { L }$ as in soft attention, which is given by ",
377
+ "bbox": [
378
+ 173,
379
+ 719,
380
+ 826,
381
+ 767
382
+ ],
383
+ "page_idx": 3
384
+ },
385
+ {
386
+ "type": "equation",
387
+ "img_path": "images/65cb9f4a857e0b7603859a926e7fab5833cd5a88c665938ed05b3e2f5786f410.jpg",
388
+ "text": "$$\nf ^ { \\mathrm { a t t } } = \\sum _ { i } ^ { H } \\sum _ { j } ^ { W } \\hat { f } _ { i , j } ^ { L } = \\sum _ { i } ^ { H } \\sum _ { j } ^ { W } \\alpha _ { i , j } ^ { L } f _ { i , j } ^ { L } .\n$$",
389
+ "text_format": "latex",
390
+ "bbox": [
391
+ 370,
392
+ 776,
393
+ 627,
394
+ 821
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "The attended feature $f ^ { \\mathrm { a t t } }$ obtained by such process is then used as the input to the visual attribute classifier as illustrated in Figure 2. ",
401
+ "bbox": [
402
+ 174,
403
+ 832,
404
+ 823,
405
+ 861
406
+ ],
407
+ "page_idx": 3
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "In our models, we place the attention layers to the output of max pooling layers instead of every layer in CNN because the reduction of feature resolution within CNN mainly comes from pooling layers. In practice„ we can also skip the first few pooling layers and only attach the attention module to the outputs of last $K$ pooling layers. ",
412
+ "bbox": [
413
+ 174,
414
+ 867,
415
+ 825,
416
+ 924
417
+ ],
418
+ "page_idx": 3
419
+ },
420
+ {
421
+ "type": "image",
422
+ "img_path": "images/3cad12e62bf51ad159ecf48c9f078a49b13e3fd496d3f0da70a30e4704aa8fb6.jpg",
423
+ "image_caption": [
424
+ "Figure 3: Attention estimation (a) without local context and (b) with local context. In (a), $\\alpha _ { i , j } ^ { l }$ is predicted from $f _ { i , j } ^ { l }$ only while its spatially adjacent features are also used to estimate $\\alpha _ { i , j } ^ { l }$ in (b). "
425
+ ],
426
+ "image_footnote": [],
427
+ "bbox": [
428
+ 284,
429
+ 99,
430
+ 712,
431
+ 207
432
+ ],
433
+ "page_idx": 4
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "3.2 MULTI-RESOLUTION ATTENTION ESTIMATION ",
438
+ "bbox": [
439
+ 174,
440
+ 282,
441
+ 539,
442
+ 297
443
+ ],
444
+ "page_idx": 4
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "In Eq. (3), the resolution of attention probability map $\\alpha ^ { l }$ depends on the size of the feature map in the corresponding layer. Due to the nature of a CNN with convolution and pooling layers, the resolution of $\\dot { \\mathbf { \\alpha } } _ { \\alpha } l$ will decrease with the increasing depth of a layer. Since the attentive processes are performed over multiple layers recursively in our framework, it is possible to attend to the regions of specific sizes and shapes. Note that the proposed network can exploit high-level semantics in deep representations for inference without losing attention resolution. ",
449
+ "bbox": [
450
+ 174,
451
+ 310,
452
+ 825,
453
+ 395
454
+ ],
455
+ "page_idx": 4
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "The progressive attention model is still very effective in predicting fine attention shapes as the attention information is aggregated over multiple layers to suppress irrelevant structures at different granularity. In lower layers, features whose receptive fields contain small distractors are suppressed first. Meanwhile, the features from a part of large distractors remain intact but passed to the next layer delaying its suppression. In higher layers, features of these large distractors would get low attention probability as each feature contains information from larger receptive fields allowing the attention module to distinguish whether the feature is from a distractor or the target object. This phenomenon is well demonstrated in the qualitative results in our experiments (Section 4). An additional benefit of progressive attention is that it is more straightforward during inference since it is a pure feedforward network. ",
460
+ "bbox": [
461
+ 173,
462
+ 401,
463
+ 825,
464
+ 541
465
+ ],
466
+ "page_idx": 4
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "3.3 LOCAL CONTEXT ",
471
+ "text_level": 1,
472
+ "bbox": [
473
+ 176,
474
+ 564,
475
+ 338,
476
+ 579
477
+ ],
478
+ "page_idx": 4
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "A basic version of PAN discussed so far predicts an attention probability $\\alpha _ { i , j } ^ { l }$ based solely on the feature $f _ { i , j } ^ { l }$ at a single feature map location. We can improve the quality of attention estimation by allowing the attention layers to observe a local context of the target feature. The local context $\\mathcal { F } _ { i , j } ^ { l }$ of a feature $f _ { i , j } ^ { l }$ is composed of its spatially adjacent features. For example, the local context can be given by $\\mathcal { F } _ { i , j } ^ { l ^ { * } } = \\{ f _ { s , t } ^ { l } | i - \\delta \\leq s \\leq i + \\delta , j - \\delta \\leq t \\leq j + \\delta \\}$ as illustrated in Figure 3. The attention score is now predicted by the attention network with local context as ",
483
+ "bbox": [
484
+ 173,
485
+ 592,
486
+ 825,
487
+ 689
488
+ ],
489
+ "page_idx": 4
490
+ },
491
+ {
492
+ "type": "equation",
493
+ "img_path": "images/0891d9550f7662a235f314fa4e308c8472b09bb513d511bbcb6f37799a68941d.jpg",
494
+ "text": "$$\n\\begin{array} { r } { s _ { i , j } ^ { l } = g _ { \\mathrm { a t t } } ^ { l } ( \\mathcal { F } _ { i , j } ^ { l } , q ; \\mathbf { \\theta } _ { \\mathrm { a t t } } ^ { l } ) . } \\end{array}\n$$",
495
+ "text_format": "latex",
496
+ "bbox": [
497
+ 415,
498
+ 700,
499
+ 583,
500
+ 722
501
+ ],
502
+ "page_idx": 4
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "In this architecture, the area of the local context is given by the filter size corresponding to the composite operation of convolution followed by pooling in the next layer. The local context does not need to be considered in the last layer of attention since its activations are used to compute the final attended feature map. Local context improves attention prediction as it enables the centroid feature to be compared with surrounding features which makes the estimated attention more discriminative. ",
507
+ "bbox": [
508
+ 173,
509
+ 731,
510
+ 825,
511
+ 803
512
+ ],
513
+ "page_idx": 4
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "3.4 TRAINING PROGRESSIVE ATTENTION NETWORKS ",
518
+ "text_level": 1,
519
+ "bbox": [
520
+ 174,
521
+ 825,
522
+ 560,
523
+ 840
524
+ ],
525
+ "page_idx": 4
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "Training a PAN is as simple as training a soft attention network (Xu et al., 2015) because every operation within the network is differentiable. The entire network is trained end-to-end by the standard backpropagation minimizing the binary cross entropies of the object-specific visual attributes. When we train it from a pretrained CNN, the CNN part should always be fine-tuned together since the intermediate attention maps may change the input distributions of their associated layers in CNN. ",
530
+ "bbox": [
531
+ 174,
532
+ 853,
533
+ 825,
534
+ 924
535
+ ],
536
+ "page_idx": 4
537
+ },
538
+ {
539
+ "type": "image",
540
+ "img_path": "images/94c7041d8777e5b25b17c8531f0d6449c8ca5363b4eaa10ee8ad2b0f704d762e.jpg",
541
+ "image_caption": [
542
+ "Figure 4: Example of the MREF datasets. "
543
+ ],
544
+ "image_footnote": [],
545
+ "bbox": [
546
+ 276,
547
+ 99,
548
+ 714,
549
+ 208
550
+ ],
551
+ "page_idx": 5
552
+ },
553
+ {
554
+ "type": "table",
555
+ "img_path": "images/aeb93c7570d25732e3af815287f8ab78af174ed79462c25f65693468b8ea6352.jpg",
556
+ "table_caption": [],
557
+ "table_footnote": [],
558
+ "table_body": "<table><tr><td>STN</td><td>SAN</td><td>HAN</td><td></td><td>PAN</td></tr><tr><td colspan=\"5\">conv1 (3×3@32)</td></tr><tr><td colspan=\"5\">pool1(2×2)</td></tr><tr><td colspan=\"2\">?</td><td>?</td><td></td><td>att1</td></tr><tr><td colspan=\"5\">conv2 (3×3@32)</td></tr><tr><td colspan=\"5\">pool2 (2×2)</td></tr><tr><td colspan=\"2\">1</td><td>√</td><td></td><td>att2</td></tr><tr><td colspan=\"5\">conv3 (3x3@32)</td></tr><tr><td colspan=\"5\">p0ol3(2×2)</td></tr><tr><td colspan=\"2\">1</td><td colspan=\"2\">√</td><td>att3</td></tr><tr><td colspan=\"5\">conv4 (3×3@32)</td></tr><tr><td colspan=\"5\">pool4 (2×2)</td></tr><tr><td>att (STN)</td><td>att (soft)</td><td>att (hard)</td><td></td><td>att4</td></tr><tr><td colspan=\"5\">fc (classification layer)</td></tr></table>",
559
+ "bbox": [
560
+ 214,
561
+ 236,
562
+ 500,
563
+ 424
564
+ ],
565
+ "page_idx": 5
566
+ },
567
+ {
568
+ "type": "image",
569
+ "img_path": "images/cd56a385c0acaccbf28fad24ff2a5b6e2b2392599317aaea198761654b9fdc4a.jpg",
570
+ "image_caption": [
571
+ "(b) Architecture of attention function $g _ { \\mathrm { a t t } } ^ { l } ( \\cdot )$ . Local contexts $\\mathcal { F } _ { i , j } ^ { l }$ are used only in PAN-CTX. "
572
+ ],
573
+ "image_footnote": [],
574
+ "bbox": [
575
+ 547,
576
+ 265,
577
+ 800,
578
+ 391
579
+ ],
580
+ "page_idx": 5
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "(a) Network architectures of models on MREF. Arrows represents direct connection to next layer without attention. ",
585
+ "bbox": [
586
+ 181,
587
+ 428,
588
+ 535,
589
+ 453
590
+ ],
591
+ "page_idx": 5
592
+ },
593
+ {
594
+ "type": "text",
595
+ "text": "Figure 5: Detailed illustration of network architectures on MNIST Reference experiments. ",
596
+ "bbox": [
597
+ 200,
598
+ 458,
599
+ 792,
600
+ 473
601
+ ],
602
+ "page_idx": 5
603
+ },
604
+ {
605
+ "type": "text",
606
+ "text": "4 EXPERIMENTS ",
607
+ "text_level": 1,
608
+ "bbox": [
609
+ 176,
610
+ 497,
611
+ 326,
612
+ 513
613
+ ],
614
+ "page_idx": 5
615
+ },
616
+ {
617
+ "type": "text",
618
+ "text": "4.1 MNIST REFERENCE ",
619
+ "text_level": 1,
620
+ "bbox": [
621
+ 174,
622
+ 529,
623
+ 357,
624
+ 542
625
+ ],
626
+ "page_idx": 5
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "Datasets We conduct experiments on a synthetic dataset created from MNIST (LeCun et al., 1998). The synthetic dataset is referred to as MNIST Reference (MREF; Figure 4a), where each training example is a triple of an image, a query number and its color label. The task on this dataset is to predict the color of the number identified by a query. Five to nine distinct MNIST numbers with different colors in {green, yellow, white, red, blue} and scales in [0.5, 3.0] are randomly sampled and located in each $1 0 0 \\times 1 0 0$ image. When coloring numbers, Gaussian noise is added to the reference color value. To simulate more realistic situations, we made two variants of MREF by chainging backgrounds to either distractors (MDIST; Figure 4b) or natural images (MBG; Figure $\\mathsf { 4 c }$ ). Background images in MDIST are constructed with randomly cropped $5 \\times 5$ patches of MNIST images whereas backgrounds of MBG are filled with natural scene images randomly chosen from the SUN Database (Xiao et al., 2014). The training, validation and test sets contain 30,000, 10,000 and 10,000 images respectively. ",
631
+ "bbox": [
632
+ 173,
633
+ 554,
634
+ 825,
635
+ 722
636
+ ],
637
+ "page_idx": 5
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "Experimental Settings We implement the proposed network with and without the local context observation referred to as PAN-CTX and PAN, respectively. In addition, soft attention network (SAN), hard attention network (HAN) (Xu et al., 2015) and two variants of spatial transformer network (STN-S and STN-M) (Jaderberg et al., 2015), are used as baseline models for comparisons. While STN-S is the model with a single transformer layer, STN-M contains multiple transformer layers in the network. We reimplemented SAN and STNs following the descriptions in (Xu et al., 2015) and (Jaderberg et al., 2015), respectively, and trained HAN by optimizing the marginal log-likelihood loss as it is more accurate and feasible due to small search space in our task. The architecture of image encoding network in SAN and HAN and localization networks in STNs are all identical for fair comparisons. CNN in the proposed network also has the same architecture except for the additional layers for hierarchical attention. The CNN is composed of four stacks of $3 \\times 3$ convolutions with 32 channels (stride 1) followed by a $2 \\times 2$ max pooling layer (stride 2) as illustrated in Figure 5a. We used a single fc layer for classification because the task requires simple color prediction. The attention functions ${ \\dot { g } } _ { \\mathrm { a t t } } ^ { l } ( \\cdot )$ for all models are formed as multi-layer perceptrons with two layers (Figure 5b). ",
642
+ "bbox": [
643
+ 174,
644
+ 729,
645
+ 825,
646
+ 924
647
+ ],
648
+ "page_idx": 5
649
+ },
650
+ {
651
+ "type": "table",
652
+ "img_path": "images/16b165267be59c8823a11720b3975892600c74c8456fe918f48718151b6b746a.jpg",
653
+ "table_caption": [
654
+ "Table 1: Performance of attention models on MREF, MDIST, and MBG datasets. ",
655
+ "(a) Color prediction accuracy [%] "
656
+ ],
657
+ "table_footnote": [],
658
+ "table_body": "<table><tr><td></td><td>MREF</td><td>MDIST</td><td>MBG</td></tr><tr><td>STN-S STN-M</td><td>39.10</td><td>38.32</td><td>32.27 52.25</td></tr><tr><td>SAN</td><td>93.89 82.94</td><td>85.09 75.73</td><td>53.77</td></tr><tr><td>HAN</td><td>81.84</td><td>78.49</td><td>55.84</td></tr><tr><td>PAN</td><td>95.92</td><td>91.65</td><td>69.46</td></tr><tr><td>PAN-CTX</td><td>98.51</td><td>96.02</td><td>85.55</td></tr><tr><td></td><td></td><td></td><td></td></tr></table>",
659
+ "bbox": [
660
+ 230,
661
+ 136,
662
+ 467,
663
+ 219
664
+ ],
665
+ "page_idx": 6
666
+ },
667
+ {
668
+ "type": "table",
669
+ "img_path": "images/de19957cc8aaaade3ea040586b947448725b1fa8a5fa9a9c931fb47c3c14468a.jpg",
670
+ "table_caption": [
671
+ "(b) True-positive ratio [%] "
672
+ ],
673
+ "table_footnote": [],
674
+ "table_body": "<table><tr><td></td><td>MREF</td><td>MDIST</td><td>MBG</td></tr><tr><td>Uniform</td><td>2.34</td><td>2.35</td><td>2.39</td></tr><tr><td>SAN</td><td>13.61</td><td>12.56</td><td>6.73</td></tr><tr><td>HAN</td><td>13.95</td><td>13.81</td><td>7.64</td></tr><tr><td>PAN</td><td>17.39</td><td>13.10</td><td>8.62</td></tr><tr><td>PAN-CTX</td><td>22.59</td><td>22.80</td><td>11.01</td></tr></table>",
675
+ "bbox": [
676
+ 526,
677
+ 142,
678
+ 763,
679
+ 214
680
+ ],
681
+ "page_idx": 6
682
+ },
683
+ {
684
+ "type": "image",
685
+ "img_path": "images/28b439aa72e5ef6bca33564cb56e3c10772b10253348aa0105eeb4b9c67329ba.jpg",
686
+ "image_caption": [
687
+ "Figure 6: Analysis of algorithms on MREF (left), MDIST (middle), and MBG (right). "
688
+ ],
689
+ "image_footnote": [],
690
+ "bbox": [
691
+ 186,
692
+ 227,
693
+ 805,
694
+ 483
695
+ ],
696
+ "page_idx": 6
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "The function takes the concobject and a feature vector ation of a query , and outputs a $q$ , which is a one attention score vector representing the target. In PAN-CTX, the attention $f _ { i , j } ^ { l }$ $s _ { i , j } ^ { l }$ \nfunctions of att1, att2 and att3 additionally take the local context $\\mathcal { F } _ { i , j } ^ { l }$ containing the adjacent \nfeatures with $\\delta = 2$ . Every model is trained from scratch. ",
701
+ "bbox": [
702
+ 173,
703
+ 526,
704
+ 825,
705
+ 585
706
+ ],
707
+ "page_idx": 6
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "Results Table 1a presents color prediction accuracy of all compared algorithms. It is obvious that PAN outperforms all the previous approaches with significant margins and PAN-CTX further improves the performance by exploiting the local contexts for attention estimation. While STN-S often fails to predict the correct answers, STN-M learns to predict the color of the target object through multiple transformations and shows comparable performance to PAN in MREF. However, the performance of STN-M dramatically drops as the dataset becomes more complex and realistic, resulting in even lower performance than SAN and HAN. Also, note that STN-S is capable of attending to any region attended by STN-M since both models predict attention regions by estimating an affine transformation. STN-M achieves the improvement by learning multiple transformers from gradients coming from different levels of features. In contrast to those parametric models, the proposed network can predict attention map with more fine-grained shapes capturing the spatial support of the target object better. ",
712
+ "bbox": [
713
+ 174,
714
+ 603,
715
+ 825,
716
+ 770
717
+ ],
718
+ "page_idx": 6
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "To evaluate the scale sensitivity of each model, we divided the test images into five subsets based on target object scales with uniform interval and computed the accuracies of the models. The results are presented in Figure 6a, where SAN and HAN tend to predict the correct answers only in a scale range between 1.0 and 2.0, while their performance is degraded significantly with wild scale changes. STN-M becomes vulnerable to scale variations in more realistic settings. In contrast, PAN and PAN-CTX are robust to scale variations due to their multi-scale attention machanism especially when the local contexts are incorporated. ",
723
+ "bbox": [
724
+ 174,
725
+ 777,
726
+ 825,
727
+ 875
728
+ ],
729
+ "page_idx": 6
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "Unlike STNs whose attention is constrained to rhombic regions, those models based on feature-wise attention maps can produce attention regions adaptive to the shapes of the target object. We evaluate the attention quality of these models using two complementary criteria: true-positive ratio (TPR) ",
734
+ "bbox": [
735
+ 176,
736
+ 882,
737
+ 825,
738
+ 924
739
+ ],
740
+ "page_idx": 6
741
+ },
742
+ {
743
+ "type": "image",
744
+ "img_path": "images/641fcb63eb7235d2ce9b8c9bd49a041846a1cce368b755b432bdd8644243c664.jpg",
745
+ "image_caption": [
746
+ "Figure 7: Qualitative results of SAN, HAN and PAN-CTX. (a) Input images faded by attended feature map (c). (b) Magnitude of activations in feature maps $f _ { i , j } ^ { l }$ before attention: the activations are mapped to original image space by spreading activations to their receptive fields. (c) Magnitude of activations in attended feature maps $\\hat { f } _ { i , j } ^ { l }$ which shows the effect of attention in contrast to (b). (d) Magnitude of activations of the attended feature maps $\\hat { f } _ { i , j } ^ { l } .$ in its original resolution of the feature map. For PAN-CTX, only last three attention layers are visualized and attentions of ealier layers are accumulated for visualizing higher attention layers. For HAN, (c) and (d) represent attention probability because attended feature map is not available. Every image except for input image is rescaled into $[ 0 , 1 ]$ by $( x - m i n ) / ( m a x \\bar { - } m i n )$ . "
747
+ ],
748
+ "image_footnote": [],
749
+ "bbox": [
750
+ 178,
751
+ 99,
752
+ 825,
753
+ 445
754
+ ],
755
+ "page_idx": 7
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "and precision-recall (PR) curve. TPR measures how strong attention is given to proper location by computing the ratio of the aggregated attention probability within the desired area (a.k.a., groundtruth segmentation) to the attention probability in the whole image (Table 1b). PR measures the overlaps between ground-truth segmentations and binarized segmentation predictions constructed with different thresholds (Figure 6b). Note that the proposed model with the local context observation gives the best results with significant margin compared to all the other methods in terms of both criteria. These results suggest that PAN-CTX constructs more accurate shapes of attended regions than all other attention models. ",
760
+ "bbox": [
761
+ 174,
762
+ 606,
763
+ 825,
764
+ 718
765
+ ],
766
+ "page_idx": 7
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "Figure 7 shows the qualitative results of the proposed method and two baselines on the MBG dataset. The proposed model yields accurate attention regions eventually by gradually augmenting attention and suppressing irrelevant regions in the image. We can observe that the proposed model could maintain the high attention resolution through the progressive attention process. In contrast, the baseline models attend to the target objects only once at the top layer resulting in a coarse attention in size and shape. More qualitative results in these experiments are presented in Appendix C. ",
771
+ "bbox": [
772
+ 174,
773
+ 726,
774
+ 825,
775
+ 809
776
+ ],
777
+ "page_idx": 7
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "4.2 ATTRIBUTE PREDICTION ON VISUAL GENOME ",
782
+ "text_level": 1,
783
+ "bbox": [
784
+ 174,
785
+ 827,
786
+ 537,
787
+ 842
788
+ ],
789
+ "page_idx": 7
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "Dataset Visual Genome (VG) (Krishna et al., 2016) is an image dataset containing several types of annotations: question/answer pairs, image captions, objects, object attributes and object relationship. We formulate the object attribute prediction as a multi-label classification task with reference. Given an input image and a query (i.e., an object category), we predict the binary attributes of individual objects specified by a query. We used 827 object classes and 749 attribute classes that appear more than 100 times. A total of 86,674 images with 667,882 object attribute labels are used for our experiment, and they are split into training, validation and test sets each containing 43,337, 8,667 and 34,670 images. The task is challenging because scales of objects largely vary and the attributes may be associated with very small objects. ",
794
+ "bbox": [
795
+ 174,
796
+ 853,
797
+ 825,
798
+ 924
799
+ ],
800
+ "page_idx": 7
801
+ },
802
+ {
803
+ "type": "table",
804
+ "img_path": "images/6c6d4337a3b166ec81bab47b3981501bde68105f8cb273831befdbacbe27b2c7.jpg",
805
+ "table_caption": [
806
+ "Table 2: Weighted mAP of the attribute prediction and TPR of attentions measured with ground-truth bounding boxes on VG dataset. "
807
+ ],
808
+ "table_footnote": [],
809
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">attention only</td><td colspan=\"2\">w/ prior</td></tr><tr><td>mAP</td><td>TPR</td><td>mAP</td><td>TPR</td></tr><tr><td>SAN</td><td>27.62</td><td>15.01</td><td>31.84</td><td>17.65</td></tr><tr><td>HAN</td><td>27.72</td><td>17.24</td><td>31.93</td><td>19.70</td></tr><tr><td>PAN-CTX</td><td>29.38</td><td>18.01</td><td>32.50</td><td>20.17</td></tr></table>",
810
+ "bbox": [
811
+ 336,
812
+ 133,
813
+ 656,
814
+ 194
815
+ ],
816
+ "page_idx": 8
817
+ },
818
+ {
819
+ "type": "image",
820
+ "img_path": "images/2974d5b1e04dae429a45ec8de80258c0aa0ae2c9b9f9f79f3b4c5f7c614bd55a.jpg",
821
+ "image_caption": [
822
+ "Figure 8: Visualization of example attentions of HAN and PAN-CTX on VG dataset. Attention maps present magnitude of attended features and red boxes show ground truth bounding boxes of query. "
823
+ ],
824
+ "image_footnote": [],
825
+ "bbox": [
826
+ 176,
827
+ 210,
828
+ 820,
829
+ 320
830
+ ],
831
+ "page_idx": 8
832
+ },
833
+ {
834
+ "type": "text",
835
+ "text": "",
836
+ "bbox": [
837
+ 174,
838
+ 383,
839
+ 825,
840
+ 439
841
+ ],
842
+ "page_idx": 8
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "Experimental Settings and Results We mainly compare our algorithm with SAN and HAN since STNs could not learn a proper attention process on VG. The transformer layers of STNs generated padded images of different sizes and rotations to encode the query vector to fit the query-specific biases. All the networks share the same CNN architecture of VGG-16 network (Simonyan & Zisserman, 2015), which is pretrained on ImageNet (Deng et al., 2009) and is further fine-tuned on the VG dataset for the attribute prediction. For SAN and HAN, an attention layer is attached to the last pooling layer in VGG-16 while PAN stacks an additional attention layer with the local contexts $\\mathcal { F } _ { i , j } ^ { \\dot { l } }$ with $\\delta = 2$ on top of each of the last three pooling layers in VGG-16. We skip to place attention layers at the first two pooling layers (pool1 and pool2) because the features in those layers are not discriminative enough to filter out.We also test models with object class conditional prior. In these models, the final attended feature is fused with the query once more by a fully connected layer allowing the network to reflect the conditional distribution of the attributes given the query. Refer to Appendix B for more detailed descriptions on the network architectures. ",
847
+ "bbox": [
848
+ 174,
849
+ 468,
850
+ 825,
851
+ 648
852
+ ],
853
+ "page_idx": 8
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "All three models are evaluated in terms of mean average precision (mAP) weighted by the frequencies of the attribute labels in the test set, where the computation of mAP follows PASCAL VOC protocol (Everingham et al., 2010). The proposed method consistently achieves the best weighted mAP scores in both experimental settings as shown in Table 2 but the gain reduces with object class conditional prior. Table 2 also shows TPR of each model measured with the ground-truth bounding box for evaluating the attention qualities, and the proposed method shows the best TPR. Figure 8 presents the qualitative results of the proposed network and HAN on VG dataset. ",
858
+ "bbox": [
859
+ 174,
860
+ 656,
861
+ 825,
862
+ 753
863
+ ],
864
+ "page_idx": 8
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "5 CONCLUSION ",
869
+ "text_level": 1,
870
+ "bbox": [
871
+ 176,
872
+ 786,
873
+ 318,
874
+ 803
875
+ ],
876
+ "page_idx": 8
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "We proposed a novel hierarchical attention network, which progressively attends to regions of interest through multiple layers of a CNN. As the model is recursively applied to multiple layers of CNN with an inherent feature hierarchy, it accurately predicts regions of interest with variable sizes and shapes. We also incorporate local contexts into our attention network for more robust estimation. The proposed network can be trained end-to-end with standard error backpropagation. We tested the model on both synthetic and real datasets, and demonstrated significant performance improvement over existing attention methods. ",
881
+ "bbox": [
882
+ 174,
883
+ 825,
884
+ 825,
885
+ 922
886
+ ],
887
+ "page_idx": 8
888
+ },
889
+ {
890
+ "type": "text",
891
+ "text": "REFERENCES ",
892
+ "text_level": 1,
893
+ "bbox": [
894
+ 176,
895
+ 103,
896
+ 287,
897
+ 117
898
+ ],
899
+ "page_idx": 9
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. Deep compositional question answering with neural module networks. In CVPR, 2016. ",
904
+ "bbox": [
905
+ 173,
906
+ 126,
907
+ 823,
908
+ 155
909
+ ],
910
+ "page_idx": 9
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "Jimmy Ba, Volodymyr Mnih, and Koray Kavukcuoglu. Multiple object recognition with visual attention. In ICLR, 2015. ",
915
+ "bbox": [
916
+ 173,
917
+ 162,
918
+ 821,
919
+ 193
920
+ ],
921
+ "page_idx": 9
922
+ },
923
+ {
924
+ "type": "text",
925
+ "text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2015. ",
926
+ "bbox": [
927
+ 173,
928
+ 200,
929
+ 823,
930
+ 229
931
+ ],
932
+ "page_idx": 9
933
+ },
934
+ {
935
+ "type": "text",
936
+ "text": "Jan Chorowski, Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. End-to-end continuous speech recognition using attention-based recurrent nn: first results. arXiv preprint arXiv:1412.1602, 2014. ",
937
+ "bbox": [
938
+ 173,
939
+ 238,
940
+ 825,
941
+ 280
942
+ ],
943
+ "page_idx": 9
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009. ",
948
+ "bbox": [
949
+ 169,
950
+ 289,
951
+ 825,
952
+ 319
953
+ ],
954
+ "page_idx": 9
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. International journal of computer vision, 88(2): 303–338, 2010. ",
959
+ "bbox": [
960
+ 174,
961
+ 327,
962
+ 825,
963
+ 369
964
+ ],
965
+ "page_idx": 9
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "Alex Graves. Generating sequences with recurrent neural networks. arXiv preprint arXiv:1308.0850, 2013. ",
970
+ "bbox": [
971
+ 171,
972
+ 378,
973
+ 825,
974
+ 409
975
+ ],
976
+ "page_idx": 9
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "Alex Graves, Greg Wayne, and Ivo Danihelka. Neural turing machines. arXiv preprint arXiv:1410.5401, 2014. ",
981
+ "bbox": [
982
+ 173,
983
+ 416,
984
+ 826,
985
+ 445
986
+ ],
987
+ "page_idx": 9
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "Karol Gregor, Ivo Danihelka, Alex Graves, and Daan Wierstra. Draw: A recurrent neural network for image generation. In ICML, pp. 1462–1471, 2015. ",
992
+ "bbox": [
993
+ 173,
994
+ 453,
995
+ 825,
996
+ 483
997
+ ],
998
+ "page_idx": 9
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In NIPS, pp. 2008–2016, 2015. ",
1003
+ "bbox": [
1004
+ 173,
1005
+ 491,
1006
+ 825,
1007
+ 520
1008
+ ],
1009
+ "page_idx": 9
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. arXiv preprint arXiv:1602.07332, 2016. ",
1014
+ "bbox": [
1015
+ 174,
1016
+ 529,
1017
+ 825,
1018
+ 573
1019
+ ],
1020
+ "page_idx": 9
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "Hugo Larochelle and Geoffrey E Hinton. Learning to combine foveal glimpses with a third-order boltzmann machine. In NIPS, pp. 1243–1251, 2010. ",
1025
+ "bbox": [
1026
+ 171,
1027
+ 580,
1028
+ 823,
1029
+ 609
1030
+ ],
1031
+ "page_idx": 9
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
1036
+ "bbox": [
1037
+ 171,
1038
+ 617,
1039
+ 823,
1040
+ 647
1041
+ ],
1042
+ "page_idx": 9
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "Minh-Thang Luong, Hieu Pham, and Christopher D Manning. Effective approaches to attention-based neural machine translation. In EMNLP, 2015. ",
1047
+ "bbox": [
1048
+ 174,
1049
+ 655,
1050
+ 823,
1051
+ 685
1052
+ ],
1053
+ "page_idx": 9
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "Volodymyr Mnih, Nicolas Heess, Alex Graves, et al. Recurrent models of visual attention. In NIPS, pp. 2204–2212, 2014. ",
1058
+ "bbox": [
1059
+ 174,
1060
+ 693,
1061
+ 825,
1062
+ 722
1063
+ ],
1064
+ "page_idx": 9
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. ICLR, 2015. ",
1069
+ "bbox": [
1070
+ 171,
1071
+ 731,
1072
+ 823,
1073
+ 760
1074
+ ],
1075
+ "page_idx": 9
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Marijn F Stollenga, Jonathan Masci, Faustino Gomez, and Jürgen Schmidhuber. Deep networks with internal selective attention through feedback connections. In Advances in Neural Information Processing Systems, pp. 3545–3553, 2014. ",
1080
+ "bbox": [
1081
+ 173,
1082
+ 767,
1083
+ 825,
1084
+ 811
1085
+ ],
1086
+ "page_idx": 9
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Jason Weston, Sumit Chopra, and Antoine Bordes. Memory networks. In ICLR, 2015. ",
1091
+ "bbox": [
1092
+ 173,
1093
+ 820,
1094
+ 740,
1095
+ 835
1096
+ ],
1097
+ "page_idx": 9
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Ronald J Williams. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3-4):229–256, 1992. ",
1102
+ "bbox": [
1103
+ 169,
1104
+ 843,
1105
+ 823,
1106
+ 872
1107
+ ],
1108
+ "page_idx": 9
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "Jianxiong Xiao, Krista A Ehinger, James Hays, Antonio Torralba, and Aude Oliva. Sun database: Exploring a large collection of scene categories. International Journal of Computer Vision, pp. 1–20, 2014. ",
1113
+ "bbox": [
1114
+ 174,
1115
+ 882,
1116
+ 825,
1117
+ 924
1118
+ ],
1119
+ "page_idx": 9
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "Huijuan Xu and Kate Saenko. Ask, attend and answer: Exploring question-guided spatial attention for visual question answering. arXiv preprint arXiv:1511.05234, 2015. ",
1124
+ "bbox": [
1125
+ 169,
1126
+ 103,
1127
+ 823,
1128
+ 132
1129
+ ],
1130
+ "page_idx": 10
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "Kelvin Xu, Jimmy Ba, Ryan Kiros, Aaron Courville, Ruslan Salakhutdinov, Richard Zemel, and Yoshua Bengio. Show, attend and tell: Neural image caption generation with visual attention. In ICML, 2015. ",
1135
+ "bbox": [
1136
+ 176,
1137
+ 140,
1138
+ 823,
1139
+ 184
1140
+ ],
1141
+ "page_idx": 10
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "Zichao Yang, Xiaodong He, Jianfeng Gao, Li Deng, and Alex Smola. Stacked attention networks for image question answering. arXiv preprint arXiv:1511.02274, 2015. ",
1146
+ "bbox": [
1147
+ 169,
1148
+ 193,
1149
+ 825,
1150
+ 222
1151
+ ],
1152
+ "page_idx": 10
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "Wojciech Zaremba and Ilya Sutskever. Reinforcement learning neural turing machines. arXiv preprint arXiv:1505.00521, 2015. ",
1157
+ "bbox": [
1158
+ 173,
1159
+ 231,
1160
+ 823,
1161
+ 258
1162
+ ],
1163
+ "page_idx": 10
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "Appendices ",
1168
+ "text_level": 1,
1169
+ "bbox": [
1170
+ 174,
1171
+ 98,
1172
+ 341,
1173
+ 127
1174
+ ],
1175
+ "page_idx": 11
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "A SOFT ATTENTION MODEL ",
1180
+ "text_level": 1,
1181
+ "bbox": [
1182
+ 176,
1183
+ 148,
1184
+ 424,
1185
+ 166
1186
+ ],
1187
+ "page_idx": 11
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "In this appendix section, we explain the soft attention network which is introduced in $\\mathrm { X u }$ et al., 2015) and used as one of the baseline models in the experiments. Given a feature map, the soft attention network calculates an attention probability map and uses it to compute the attended feature for classification or other tasks. Given a feature map $\\pmb { \\dot { f } } \\in \\mathbb { R } ^ { H \\times W \\times C }$ and a query $q$ containing information of where to attend, a soft attention model first obtains an attended feature map $\\hat { \\pmb { f } } \\in \\mathbb { R } ^ { H \\times W \\times C }$ , where $W$ is width, $H$ is height, and $C$ is the number of channels. The input feature map $f$ is generally a CNN output of an input image $I$ , which is given by ",
1192
+ "bbox": [
1193
+ 173,
1194
+ 180,
1195
+ 825,
1196
+ 281
1197
+ ],
1198
+ "page_idx": 11
1199
+ },
1200
+ {
1201
+ "type": "equation",
1202
+ "img_path": "images/d10ef5a046d349b3c45adf8c4d33c8c7936076e18abb2d59c1b4b25b561bcf31.jpg",
1203
+ "text": "$$\n\\begin{array} { r } { \\pmb { f } = \\mathrm { C N N } ( I ) . } \\end{array}\n$$",
1204
+ "text_format": "latex",
1205
+ "bbox": [
1206
+ 449,
1207
+ 286,
1208
+ 549,
1209
+ 303
1210
+ ],
1211
+ "page_idx": 11
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "For each feature $f _ { i , j } \\in \\mathbb { R } ^ { C }$ at $( i , j )$ of the feature map $f$ and the query $q$ , the attention probability map denoted by $\\mathbf { \\alpha } \\alpha = [ \\alpha _ { i , j } ]$ is given by ",
1216
+ "bbox": [
1217
+ 173,
1218
+ 308,
1219
+ 823,
1220
+ 338
1221
+ ],
1222
+ "page_idx": 11
1223
+ },
1224
+ {
1225
+ "type": "equation",
1226
+ "img_path": "images/c062a1df37e9f8c7e11183a6411e48202b152a852902974a7d489efb501b8385.jpg",
1227
+ "text": "$$\n\\begin{array} { r l } & { s _ { i , j } = g _ { \\mathrm { a t t } } ( f _ { i , j } , q ; \\pmb { \\theta } _ { \\mathrm { a t t } } ) } \\\\ & { \\alpha _ { i , j } = \\mathrm { s o f t m a x } _ { i , j } ( s ) , \\quad 0 \\leq \\alpha _ { i , j } \\leq 1 } \\end{array}\n$$",
1228
+ "text_format": "latex",
1229
+ "bbox": [
1230
+ 372,
1231
+ 342,
1232
+ 625,
1233
+ 381
1234
+ ],
1235
+ "page_idx": 11
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "where $g _ { \\mathrm { a t t } } ( \\cdot )$ is the attention network parameterized by $\\pmb { \\theta } _ { \\mathrm { a t t } }$ and $\\boldsymbol { s } = \\left[ s _ { i , j } \\right]$ is an attention score map. The attention score map is normalized with softmax to produce attention probabilities $\\alpha _ { i , j }$ . Note that $g _ { \\mathrm { a t t } } ( \\cdot )$ can be any kind of network such as a multilayer perceptron. ",
1240
+ "bbox": [
1241
+ 174,
1242
+ 383,
1243
+ 825,
1244
+ 426
1245
+ ],
1246
+ "page_idx": 11
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Let $\\hat { f } _ { i , j } \\in \\mathbb { R } ^ { C }$ be a vector of the attended feature map $\\hat { f }$ at $( i , j )$ . Then, the attended feature denoted by $f ^ { \\mathrm { a t t } } \\in \\mathbb { R } ^ { C }$ is computed by a weighted sum of features as ",
1251
+ "bbox": [
1252
+ 174,
1253
+ 434,
1254
+ 820,
1255
+ 465
1256
+ ],
1257
+ "page_idx": 11
1258
+ },
1259
+ {
1260
+ "type": "equation",
1261
+ "img_path": "images/59c589e94791345043aa74ba7a79b410c9cdf1f15c3df173ad69a5281b7c9dac.jpg",
1262
+ "text": "$$\nf ^ { \\mathrm { a t t } } = \\sum _ { i } ^ { H } \\sum _ { j } ^ { W } \\hat { f } _ { i , j } = \\sum _ { i } ^ { H } \\sum _ { j } ^ { W } \\alpha _ { i , j } f _ { i , j } .\n$$",
1263
+ "text_format": "latex",
1264
+ "bbox": [
1265
+ 370,
1266
+ 469,
1267
+ 627,
1268
+ 516
1269
+ ],
1270
+ "page_idx": 11
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "Ideally, the locations in the feature map corresponding to the receptive fields containing an object of interest should have the maximum attention probability while the others have zero probabilities similarly to the hard attention. This statement stands true only if the target object is perfectly aligned with the receptive fields in terms of position and scale. In practice, however, object location and size vary whereas the structure of receptive fields is fixed. Note that there exists the trade-off between the attention resolution and the representation power. If we choose to extract deep and high-level features, we give up high resolution in attention. On the other hand, we need to rely on shallow representations to increase attention resolution. This trade-off limits the performance of existing attention models. ",
1275
+ "bbox": [
1276
+ 173,
1277
+ 527,
1278
+ 825,
1279
+ 640
1280
+ ],
1281
+ "page_idx": 11
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "B NETWORK ARCHITECTURES ON VISUAL GENOME ",
1286
+ "text_level": 1,
1287
+ "bbox": [
1288
+ 176,
1289
+ 659,
1290
+ 625,
1291
+ 676
1292
+ ],
1293
+ "page_idx": 11
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "In PAN, the convolution and pooling layers of VGG-16 network (Simonyan & Zisserman, 2015), pretrained on ImageNet (Deng et al., 2009), are used, and three additional attention layers att1, att2 and att3 are stacked on top of the last three pooling layers pool3, pool4 and pool5 respectively as illustrated in Figure 9a. The attention functions of att1 and att2 take the local contexts $\\mathcal { F } _ { i , j } ^ { l }$ in addition to the query $q$ and the target feature $f _ { i , j } ^ { l }$ to obtain the attention score $s _ { i , j } ^ { l }$ . The size of the local contexts is squared with that of the receptive fields of the next three convolution layers before the next attention by setting $\\delta = 3$ . Three convolutions same as the next three convolution layers in CNN firstly encode the target feature and the local context, and are initiallized with the same weights as in CNN (Figure 9b). This embedding is then concatenated with the one-hot query vector and fed to two fully connected layers, one fusing two modalities and the other estimating the attention score. In att3, the attention function takes the concatenation of the query and the target feature and feed it to two fully connected layers (Figure $^ { 9 \\mathrm { c } }$ ). The attended feature $f ^ { \\mathrm { a t t } }$ obtained from the last attention layer att3 is finally fed to a classification layer to predict the attributes. ",
1298
+ "bbox": [
1299
+ 173,
1300
+ 690,
1301
+ 825,
1302
+ 875
1303
+ ],
1304
+ "page_idx": 11
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "The baseline networks also share the same architecture of CNN of VGG-16 network as in PAN (Figure 9a). In SAN, the soft attention described in Appendix A is attached to the top of CNN. In HAN, the hard attention (Xu et al., 2015) is attached to the top of CNN instead. The hard attention is ",
1309
+ "bbox": [
1310
+ 176,
1311
+ 882,
1312
+ 823,
1313
+ 924
1314
+ ],
1315
+ "page_idx": 11
1316
+ },
1317
+ {
1318
+ "type": "table",
1319
+ "img_path": "images/64730040999beb11bc182b5babc18ee5c307fbf1cb748edc89e06d2bb6919e90.jpg",
1320
+ "table_caption": [],
1321
+ "table_footnote": [],
1322
+ "table_body": "<table><tr><td rowspan=1 colspan=2>SAN</td><td rowspan=1 colspan=1>HAN</td><td rowspan=1 colspan=1>PAN</td></tr><tr><td rowspan=1 colspan=4>conv1_1(3x3@64)</td></tr><tr><td rowspan=1 colspan=4>conv1_2 (3×3@64)</td></tr><tr><td rowspan=1 colspan=4>pool1 (2×2)</td></tr><tr><td rowspan=1 colspan=4>conv2_1(3×3@128)</td></tr><tr><td rowspan=1 colspan=4>conv2_2 (3×3@128)</td></tr><tr><td rowspan=1 colspan=4>p0ol2 (2×2)</td></tr><tr><td rowspan=1 colspan=4>conv3_1(3×3@256)</td></tr><tr><td rowspan=1 colspan=4>conv3_2 (3×3@256)</td></tr><tr><td rowspan=1 colspan=4>conv3_3 (3×3@256)</td></tr><tr><td rowspan=1 colspan=4>p00l3 (2×2)</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>↓</td><td rowspan=1 colspan=1>att1</td></tr><tr><td rowspan=1 colspan=4>conv4_1 (3×3@512)</td></tr><tr><td rowspan=1 colspan=4>conv4_2 (3×3@512)</td></tr><tr><td rowspan=1 colspan=4>conv4_3 (3×3@512)</td></tr><tr><td rowspan=1 colspan=4>p00l4 (2×2)</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>+</td><td rowspan=1 colspan=1>att2</td></tr><tr><td rowspan=1 colspan=4>conv5_1(3×3@512)</td></tr><tr><td rowspan=1 colspan=4>conv5_2 (3×3@512)</td></tr><tr><td rowspan=1 colspan=4>conv5_3 (3×3@512)</td></tr><tr><td rowspan=1 colspan=4>pool5 (2×2)</td></tr><tr><td rowspan=1 colspan=2>att (soft)</td><td rowspan=1 colspan=1>att (hard)</td><td rowspan=1 colspan=1>att3</td></tr><tr><td rowspan=1 colspan=4>fc (classification layer)</td></tr></table>",
1323
+ "bbox": [
1324
+ 191,
1325
+ 118,
1326
+ 459,
1327
+ 501
1328
+ ],
1329
+ "page_idx": 12
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "(a) Network Architectures of Models. ",
1334
+ "bbox": [
1335
+ 214,
1336
+ 507,
1337
+ 436,
1338
+ 520
1339
+ ],
1340
+ "page_idx": 12
1341
+ },
1342
+ {
1343
+ "type": "image",
1344
+ "img_path": "images/70a86db739becbe83076117a746fd8d155c69018b68fec5a61ca1c7b2188957c.jpg",
1345
+ "image_caption": [],
1346
+ "image_footnote": [],
1347
+ "bbox": [
1348
+ 511,
1349
+ 103,
1350
+ 787,
1351
+ 308
1352
+ ],
1353
+ "page_idx": 12
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "(b) Architecture of the intermediate attention functions??,?? $g _ { \\mathrm { a t t } } ^ { l } ( \\cdot )$ ???? in att1 and att2 of PAN. ",
1358
+ "bbox": [
1359
+ 475,
1360
+ 314,
1361
+ 823,
1362
+ 340
1363
+ ],
1364
+ "page_idx": 12
1365
+ },
1366
+ {
1367
+ "type": "image",
1368
+ "img_path": "images/b9eea32dac4db9a26da8eb45895361fef2dd24ad642f0058ab50d2b7f0781d84.jpg",
1369
+ "image_caption": [
1370
+ "(c) Architecture of the attention functions of SAN and HAN, ??and the last attention function of PAN. ",
1371
+ "Figure 9: Detailed illustration of network architectures on Visual Genome experiments. "
1372
+ ],
1373
+ "image_footnote": [],
1374
+ "bbox": [
1375
+ 537,
1376
+ 343,
1377
+ 763,
1378
+ 502
1379
+ ],
1380
+ "page_idx": 12
1381
+ },
1382
+ {
1383
+ "type": "text",
1384
+ "text": "implemented to maximize the marginal likelihood directly during training while the original paper maximized the variational lower bound of the marginal likelihood because of the large attention search space. For testing, we also directly calculated the marginal likelihood instead of picking a single prediction with the highest attention probability. This is possible because of relatively small search space of attention in our problem compared to the image captioning where the search space of attention increases exponentially depending on the lengths of sequences. The attention functions in the baselines consist of two fully connected layers taking the concatenation of the query and the target feature as in the attention function of att3 in PAN. ",
1385
+ "bbox": [
1386
+ 173,
1387
+ 588,
1388
+ 825,
1389
+ 699
1390
+ ],
1391
+ "page_idx": 12
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "The proposed network and the baselines described above use the query for obtaining the attention probabilities and give us the pure strength of the attention models. However, the target object class, represented by the query, gives much more information than just attetion. It confines possible attributes and filters irrelevant attributes. For these reasons, we additionally experiment on a set of models that incorporate the target object class conditional prior for the attribute prediction. In these models, the query is fused with the attended feature $f ^ { \\mathrm { a t t } }$ by an additional fully connected layer and the fused feature is used as the input of the classification layer. ",
1396
+ "bbox": [
1397
+ 174,
1398
+ 707,
1399
+ 825,
1400
+ 805
1401
+ ],
1402
+ "page_idx": 12
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "C MORE QUALITATIVE RESULTS ON MNIST REFERENCE ",
1407
+ "text_level": 1,
1408
+ "bbox": [
1409
+ 174,
1410
+ 102,
1411
+ 668,
1412
+ 118
1413
+ ],
1414
+ "page_idx": 13
1415
+ },
1416
+ {
1417
+ "type": "image",
1418
+ "img_path": "images/a36ff8fd8a6994883e69592191939b1c71e600f140a242058a503e1d9797be10.jpg",
1419
+ "image_caption": [
1420
+ "Figure 10: The qualitative results of SAN, HAN and PAN-CTX on the MREF and MDIST datasets. For each example, attended images are shown in the first row and the corresponding attention maps are shown on the second row. In case of the progressive attention network, the last three attention maps (attention 2, 3 and 4) are visualized. As can be seen, attention map at deeper layers reveal the evidence of aggregation over earlier attention maps. "
1421
+ ],
1422
+ "image_footnote": [],
1423
+ "bbox": [
1424
+ 181,
1425
+ 126,
1426
+ 816,
1427
+ 825
1428
+ ],
1429
+ "page_idx": 13
1430
+ },
1431
+ {
1432
+ "type": "image",
1433
+ "img_path": "images/03a6c03aea9317f7bf25e6d2f34dc4baf845a30f2aefd11011a9f91f02e29298.jpg",
1434
+ "image_caption": [
1435
+ "Figure 11: More qualitative results of SAN, HAN and PAN-CTX on the MBG dataset. "
1436
+ ],
1437
+ "image_footnote": [],
1438
+ "bbox": [
1439
+ 181,
1440
+ 136,
1441
+ 815,
1442
+ 829
1443
+ ],
1444
+ "page_idx": 14
1445
+ },
1446
+ {
1447
+ "type": "image",
1448
+ "img_path": "images/250710d0ed7a1ca870f1ce5a3e54a26885832eef419615f0f8b6f6bd3d93f489.jpg",
1449
+ "image_caption": [
1450
+ "Figure 12: Two common failure cases of attention models on the MBG dataset. (a) The models attend to a part of a larger structure which resembles the target object. (b) The models are confused by background distractors that are similar to the target object. Although failed, the examples show that the results of PAN-CTX are more visually interpretable (attended to query-like structures). "
1451
+ ],
1452
+ "image_footnote": [],
1453
+ "bbox": [
1454
+ 181,
1455
+ 97,
1456
+ 816,
1457
+ 862
1458
+ ],
1459
+ "page_idx": 15
1460
+ },
1461
+ {
1462
+ "type": "image",
1463
+ "img_path": "images/c93f7641f8a25cae1c824bf6e9e428a467faaf8de0bab9b9e3474a6fc2f250a1.jpg",
1464
+ "image_caption": [
1465
+ "Figure 13: The qualitative results of SAN, HAN and PAN-CTX on the VG dataset. For each example, the attended images are presented in the first row while their attended feature maps are shown in the second row. In the case of the PAN, last two attention maps are visualized where the attention maps at deeper layers reveal the evidence of aggregation of attention information over previous layers. The red boxes within the final attended images represent the ground truth bounding boxes for the query object annotated in the VG dataset. Each object may have multiple bounding boxes annotated by different annotators. The annotated answer is presented in the first column. The percentage for each method means the probability of the GT answer for corresponding method. "
1466
+ ],
1467
+ "image_footnote": [],
1468
+ "bbox": [
1469
+ 178,
1470
+ 138,
1471
+ 787,
1472
+ 776
1473
+ ],
1474
+ "page_idx": 16
1475
+ },
1476
+ {
1477
+ "type": "image",
1478
+ "img_path": "images/b8ea18b379a59950de87fbc777bea629a4c33cae8637d5f31e118f621bcb0d4d.jpg",
1479
+ "image_caption": [
1480
+ "Figure 14: More qualitative results of SAN, HAN and PAN-CTX on the VG dataset. "
1481
+ ],
1482
+ "image_footnote": [],
1483
+ "bbox": [
1484
+ 176,
1485
+ 179,
1486
+ 787,
1487
+ 820
1488
+ ],
1489
+ "page_idx": 17
1490
+ }
1491
+ ]
parse/train/HyEeMu_xx/HyEeMu_xx_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyEeMu_xx/HyEeMu_xx_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/MudT1U2eIY/MudT1U2eIY.md ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NeRS: Neural Reflectance Surfaces for Sparse-view 3D Reconstruction in the Wild
2
+
3
+ Jason Y. Zhang
4
+
5
+ Gengshan Yang Shubham Tulsiani∗ Deva Ramanan∗ Robotics Institute, Carnegie Mellon University
6
+
7
+ # Abstract
8
+
9
+ Recent history has seen a tremendous growth of work exploring implicit representations of geometry and radiance, popularized through Neural Radiance Fields (NeRF). Such works are fundamentally based on a (implicit) volumetric representation of occupancy, allowing them to model diverse scene structure including translucent objects and atmospheric obscurants. But because the vast majority of real-world scenes are composed of well-defined surfaces, we introduce a surface analog of such implicit models called Neural Reflectance Surfaces (NeRS). NeRS learns a neural shape representation of a closed surface that is diffeomorphic to a sphere, guaranteeing water-tight reconstructions. Even more importantly, surface parameterizations allow NeRS to learn (neural) bidirectional surface reflectance functions (BRDFs) that factorize view-dependent appearance into environmental illumination, diffuse color (albedo), and specular “shininess.” Finally, rather than illustrating our results on synthetic scenes or controlled in-the-lab capture, we assemble a novel dataset of multi-view images from online marketplaces for selling goods. Such “in-the-wild” multi-view image sets pose a number of challenges, including a small number of views with unknown/rough camera estimates. We demonstrate that surface-based neural reconstructions enable learning from such data, outperforming volumetric neural rendering-based reconstructions. We hope that NeRS serves as a first step toward building scalable, high-quality libraries of real-world shape, materials, and illumination. The project page with code and video visualizations can be found at jasonyzhang.com/ners.
10
+
11
+ ![](images/28726ec0959d8d1224a017e4f9fe1f5a27db6bf98bb3c6126f894e534c94ff37.jpg)
12
+ Figure 1: 3D view synthesis in the wild. From several multi-view internet images of a truck and a coarse initial mesh (top left), we recover the camera poses, 3D shape, texture, and illumination (top right). We demonstrate the scalability of our approach on a wide variety of indoor and outdoor object categories (second row). [Video]
13
+
14
+ # 1 Introduction
15
+
16
+ Although we observe the surrounding world only via 2D percepts, it is undeniably 3D. The goal of recovering this underlying 3D from 2D observations has been a longstanding one in the vision community, and any computational approach aimed at this task must answer a central question about representation—how should we model the geometry and appearance of the underlying 3D structure?
17
+
18
+ An increasingly popular answer to this question is to leverage neural volumetric representations of density and radiance fields (Mildenhall et al., 2020). This allows modeling structures from rigid objects to translucent fluids, while further enabling arbitrary view-dependent lighting effects. However, it is precisely this unconstrained expressivity that makes it less robust and unsuitable for modeling 3D objects from sparse views in the wild. While these neural volumetric representations have been incredibly successful, they require hundreds of images, typically with precise camera poses, to model the full 3D structure and appearance of real-world objects. In contrast, when applied to ‘in-the-wild’ settings e.g. a sparse set of images with imprecise camera estimates from off-the-shelf systems (see Fig. 1), they are unable to infer a coherent 3D representation. We argue this is because these neural volumetric representations, by allowing arbitrary densities and lighting, are too flexible.
19
+
20
+ Is there a robust alternative that captures real-world 3D structure? The vast majority of real-world objects and scenes comprise of well-defined surfaces. This implies that the geometry, rather than being an unconstrained volumetric function, can be modeled as a 2D manifold embedded in euclidean 3D space—and thus encoded via a (neural) mapping from a 2D manifold to 3D. Indeed, such meshed surface manifolds form the heart of virtually all rendering engines (Foley et al., 1996). Moreover, instead of allowing arbitrary view-dependent radiance, the appearance of such surfaces can be described using (neural) bidirectional surface reflection functions (BRDFs), themselves developed by the computer graphics community over decades. We operationalize these insights into Neural Reflectance Surfaces (NeRS), a surface-based neural representation for geometry and appearance.
21
+
22
+ NeRS represents shape using a neural displacement field over a canonical sphere, thus constraining the geometry to be a watertight surface. This representation crucially associates a surface normal to each point, which enables modeling view-dependent lighting effects in a physically grounded manner. Unlike volumetric representations which allow unconstrained radiance, NeRS factorizes surface appearance using a combination of diffuse color (albedo) and specularity. It does so by learning neural texture fields over the sphere to capture the albedo at each surface point, while additionally inferring an environment map and surface material properties. This combination of a surface constraint and a factored appearance allows NeRS to learn efficiently and robustly from a sparse set of images in the wild, while being able to capture varying geometry and complex view-dependent appearance.
23
+
24
+ Using only a coarse category-level template and approximate camera poses, NeRS can reconstruct instances from a diverse set of classes. Instead of evaluating in a synthetic setup, we introduce a dataset sourced from marketplace settings where multiple images of a varied set of real-world objects under challenging illumination are easily available. We show NeRS significantly outperforms neural volumetric or classic mesh-based approaches in this challenging setup, and as illustrated in Fig. 1, is able to accurately model the view-dependent appearance via its disentangled representation. Finally, as cameras recovered in the wild are only approximate, we propose a new evaluation protocol for in-the-wild novel view synthesis in which cameras can be refined during both training and evaluation. We hope that our approach and results highlight the several advantages that neural surface representations offer, and that our work serves as a stepping stone for future investigations.
25
+
26
+ # 2 Related Work
27
+
28
+ Surface-based 3D Representations. As they enable efficient representation and rendering, polygonal meshes are widely used in vision and graphics. In particular, morphable models (Blanz and Vetter, 1999) allow parametrizing shapes as deformations of a canonical template and can even be learned from category-level image collections (Cashman and Fitzgibbon, 2012; Kar et al., 2015). With the advances in differentiable rendering (Kato et al., 2018; Laine et al., 2020; Ravi et al., 2020), these have also been leveraged in learning based frameworks for shape prediction (Kanazawa et al., 2018; Gkioxari et al., 2019; Goel et al., 2020) and view synthesis (Riegler and Koltun, 2020). Whereas these approaches use an explicit discrete mesh, some recent methods have proposed using continuous neural surface parametrization like ours to represent shape (Groueix et al., 2018) and texture (Tulsiani et al., 2020; Bhattad et al., 2021).
29
+
30
+ However, all of these works leverage such surface representations for (coarse) single-view 3D prediction given a category-level training dataset. In contrast, our aim is to infer such a representation given multiple images of a single instance, and without prior training. Closer to this goal of representing a single instance in detail, contemporary approaches have shown the benefits of using videos (Li et al., 2020; Yang et al., 2021) to recover detailed shapes, but our work tackles a more challenging setup where correspondence/flow across images is not easily available. In addition, while these prior approaches infer the surface texture, they do not enable the view-dependent appearance effects that our representation can model.
31
+
32
+ Volumetric 3D and Radiance Fields. Volumetric representations for 3D serve as a common, and arguably more flexible alternative to surface based representations, and have been very popular for classical multi-view reconstruction approaches (Furukawa and Hernández, 2015). These have since been incorporated in deep-learning frameworks for shape prediction (Girdhar et al., 2016; Choy et al., 2016) and differentiable rendering (Yan et al., 2016; Tulsiani et al., 2017). Although these initial approaches used discrete volumetric grids, their continuous neural function analogues have since been proposed to allow finer shape (Mescheder et al., 2019; Park et al., 2019) and texture modeling (Oechsle et al., 2019).
33
+
34
+ Whereas the above methods typically aimed for category-level shape representation, subsequent approaches have shown particularly impressive results when using these representations to model a single instance from images (Sitzmann et al., 2019a; Thies et al., 2019; Sitzmann et al., 2019b) – which is the goal of our work. More recently, by leveraging an implicit representation in the form of a Neural Radiance Field, Mildenhall et al. (2020) showed the ability to model complex geometries and illumination from images. There has since been a flurry of impressive work to further push the boundaries of these representations and allow modeling deformation (Pumarola et al., 2020; Park et al., 2021), lighting variation (Martin-Brualla et al., 2021), and similar to ours, leveraging insights from surface rendering to model radiance (Yariv et al., 2020; Boss et al., 2021; Oechsle et al., 2021; Srinivasan et al., 2021; Zhang et al., 2021b; Wang et al., 2021; Yariv et al., 2021). However, unlike our approach which can efficiently learn from a sparse set of images with coarse cameras, these approaches rely on a dense set of multi-view images with precise camera localization to recover a coherent 3D structure of the scene. DietNeRF (Jain et al., 2021) reduces the number of images but requires precise cameras and semantic supervision. BARF (Lin et al., 2021) relaxes the constraint of precise cameras while foregoing view-dependent appearance and requiring a dense set of images. Other approaches (Bi et al., 2020; Zhang et al., 2021a) that learn material properties from sparse views require specialized illumination rigs.
35
+
36
+ Multi-view Datasets. Many datasets study the longstanding problem of multi-view reconstruction and view synthesis. However, they are often captured in controlled setups, small in scale, and not diverse enough to capture the span of real world objects. Middlebury (Seitz et al., 2006) benchmarks multi-view reconstruction, containing two objects with nearly Lambertian surfaces. DTU (Aanæs et al., 2016) contains eighty objects with various materials but is still captured in a lab with controlled lighting. Freiburg cars (Sedaghat and Brox, 2015) captures 360 degree videos of fifty-two outdoor cars for multi-view reconstruction. ETH3D (Schöps et al., 2019) and Tanks and Temples (Knapitsch et al., 2017) contain both indoor and outdoor scenes but are small in scale. Perhaps most relevant are large-scale datasets of real-world objects such as Redwood (Choi et al., 2016) and Stanford Products (Oh Song et al., 2016), but the data is dominated by single-views or small baseline videos. In contrast, our Multi-view Marketplace Cars (MVMC) dataset contains thousands of multi-view captures of in-the-wild objects under various illumination conditions, making it suitable for studying and benchmarking algorithms for multi-view reconstruction, view synthesis, and inverse rendering.
37
+
38
+ # 3 Method
39
+
40
+ Given a sparse set of input images of an object under natural lighting conditions, we aim to model its shape and appearance. While recent neural volumetric approaches share a similar goal, they require a dense set of views with precise camera information. Instead, our approach relies only on approximate camera pose estimates and a coarse category-level shape template. Our key insight is that instead of allowing unconstrained densities popularly used for volumetric representations, we can enforce a surface-based 3D representation. Importantly, this allows view-dependent appearance variation by leveraging constrained reflection models that decompose appearance into diffuse and specular components. In this section, we first introduce our (neural) surface representation that captures the object’s shape and texture, and then explain how illumination and specular effects can be modeled for rendering. Finally, we describe how our approach can learn using challenging in-the-wild images.
41
+
42
+ ![](images/f41531a65c9e79c1c10b60397ce5ad71bc62f3d4469271f637719f1f0aec728e.jpg)
43
+ Figure 2: Neural Surface Representation. We propose an implicit, continuous representation of shape and texture. We model shape as a deformation of a unit sphere via a neural network $f _ { \mathrm { s h a p e } }$ , and texture as a learned per-uv color value via a neural network $f _ { \mathrm { t e x } }$ . We can discretize $f _ { \mathrm { s h a p e } }$ and $f _ { \mathrm { t e x } }$ to produce the textured mesh above.
44
+
45
+ # 3.1 Neural Surface Representation
46
+
47
+ We represent object shape via a deformation of a unit sphere. Previous works (Kanazawa et al., 2018; Goel et al., 2020) have generally modeled such deformations explicitly: the unit sphere is discretized at some resolution as a 3D mesh with $V$ vertices. Predicting the shape deformation thus amounts to predicting vertex offsets $\delta \in \mathbb { R } ^ { V \times 3 }$ . Such explicit discrete representations have several drawbacks. First, they can be computationally expensive for dense meshes with fine details. Second, they lack useful spatial inductive biases as the vertex locations are predicted independently. Finally, the learned deformation model is fixed to a specific level of discretization, making it non-trivial, for instance, to allow for more resolution as needed in regions with richer detail. These limitations also extend to texture parametrization commonly used for such discrete mesh representations—using either per-vertex or per-face texture samples (Kato et al., 2018), or fixed resolution texture map, limits the ability to capture finer details.
48
+
49
+ Inspired by Groueix et al. (2018); Tulsiani et al. (2020), we address these challenges by adopting a continuous surface representation via a neural network. We illustrate this representation in Fig. 2. For any point $u$ on the surface of a unit sphere $\mathbb { S } ^ { 2 }$ , we represent its 3D deformation $x \in \mathbb { R } ^ { 3 }$ using the mapping $f _ { \mathrm { s h a p e } } ( u ) = x$ where $f _ { \mathrm { s h a p e } }$ is parameterized as a multi-layer perceptron. This network therefore induces a deformation field over the surface of the unit sphere, and this deformed surface serves as our shape representation. We represent the surface texture in a similar manner–as a neural vector field over the surface of the sphere: $f _ { \mathrm { t e x } } ( u ) = t \in \mathbb { R } ^ { 3 }$ . This surface texture can be interpreted as an implicit UV texture map.
50
+
51
+ # 3.2 Modeling Illumination and Specular Rendering
52
+
53
+ Surface Rendering. The surface geometry and texture are not sufficient to infer appearance of the object e.g. a uniformly red car may appear darker on one side, and lighter on the other depending on the direction of incident light. In addition, depending on viewing direction and material properties, one may observe different appearance for the same 3D point e.g. shiny highlight from certain viewpoints. More formally, assuming th surface does not emit light, the outgoing radiance $L _ { o }$ in direction $v$ from a surface point $x$ can described by the rendering equation (Kajiya, 1986; Immel et al., 1986):
54
+
55
+ ![](images/579e40077d1a001d0db4e32d994ba84886d4dcf33895561880ac1d2669c002bb.jpg)
56
+ Figure 3: Notation and convention for viewpoint and illumination parameterization. The camera at $c$ is looking at point $x$ on the surface $S$ . v denotes the direction of the camera w.r.t $_ x$ , and $n$ is the normal of $S$ at $x$ . $\Omega$ denotes the unit hemisphere centered about $n$ . We compute the light arriving in the direction of every $\omega \in \Omega$ , and $r$ is the reflection of $w$ about $_ n$ .
57
+
58
+ $$
59
+ L _ { o } ( x , v ) = \int _ { \Omega } f _ { r } ( x , v , \omega ) L _ { i } ( x , \omega ) ( \omega \cdot n ) d \omega
60
+ $$
61
+
62
+ where $\Omega$ is the unit hemisphere centered at surface normal $n$ , and $\omega$ denotes the negative direction of incoming light. $f _ { r } ( x , v , \omega )$ is the bidirectional reflectance function (BRDF) which captures material properties (e.g. color and shininess) of surface $S$ at $x$ , and $L _ { i } ( x , \omega )$ is the radiance coming toward $x$ from $\omega$ (Refer to Fig. 3). Intuitively, this integral computes the total effect of the reflection of every possible light ray $\omega$ hitting $x$ bouncing in the direction $v$ .
63
+
64
+ ![](images/72ee7ce46dee6ce1529aee72e4bb6d54253acdd7e0a3eadbd62c7dc07ded2694.jpg)
65
+ Figure 4: Components of learned illumination model. Given a query camera viewpoint (illustrated via the reference image $I$ ), we recover the radiance output $L _ { o }$ , computed using Phong shading (Phong, 1975). Here, we show the full decomposition of learned components. From the environment map $f _ { \mathrm { e n v } }$ and normals $n$ , we compute diffuse $\left( I _ { \mathrm { d i f f u s e } } \right)$ and specular lighting $( I _ { \mathrm { s p e c u l a r } } )$ . The texture and diffuse lighting form the view-independent component (“View Indep.") and the specular lighting (weighted by the specular coefficient $k _ { s }$ ) forms the view-dependent component of the radiance. Altogether, the output radiance $L _ { o } = T \odot I _ { \mathrm { d i f f u s e } } + k _ { s } I _ { \mathrm { s p e c u l a r i t y } }$ (4). We also visualize the radiance using the mean texture, which is used to help learn plausible illumination. In the yellow box, we visualize the effects of the two specularity parameters. The shininess $\alpha$ controls the mirror-ness/roughness of the surface. The specular coefficient $k _ { \mathrm { s } }$ controls the intensity of the specular highlights.
66
+
67
+ We thus need to infer the environment lighting and surface material properties to allow realistic renderings. However, learning arbitrary lighting $L _ { i }$ or reflection models $f _ { r }$ is infeasible given sparse views, and we need to further constrain these to allow learning. Inspired by concurrent work (Wu et al., 2021) that demonstrated its efficacy when rendering rotationally symmetric objects, we leverage the Phong reflection model (Phong, 1975) with the lighting represented as a neural environment map.
68
+
69
+ Neural Environment Map. An environment map intuitively corresponds to the assumption that all the light sources are infinitely far away. This allows a simplified model of illumination, where the incoming radiance only depends on the direction $\omega$ and is independent of the position $x$ i.e. $L _ { i } ( x , \omega ) \equiv \mathrm { { \bar { I } } } _ { \omega }$ . We implement this as a neural spherical environment map $f _ { \mathrm { e n v } }$ which learns to predict the incoming radiance for any query direction $L _ { i } ( x , \omega ) \equiv I _ { \omega } = f _ { \mathrm { e n v } } ( { \bar { \omega } } )$ . Note that there is a fundamental ambiguity between material properties and illumination, e.g. a car that appears red could be a white car under red illumination, or a red car under white illumination. To avoid this, we follow Wu et al. (2021), and further constrain the environment illumination to be grayscale, i.e. $f _ { \mathrm { e n v } } ( \omega ) \in \mathbb { R }$ .
70
+
71
+ Appearance under Phong Reflection. Instead of allowing an arbitrary BRDF $f _ { r }$ , the Phong reflection model decomposes the outgoing radiance from point $x$ in direction $v$ into the diffuse and specular components. The view-independent portion of the illumination is modeled by the diffuse component:
72
+
73
+ $$
74
+ I _ { \mathrm { d i f f u s e } } ( x ) = \sum _ { \omega \in \Omega } ( \omega \cdot n ) I _ { \omega } ,
75
+ $$
76
+
77
+ while the view-dependent portion of the illumination is modeled by the specular component:
78
+
79
+ $$
80
+ I _ { \mathrm { s p e c u l a r } } ( x , v ) = \sum _ { \omega \in \Omega } ( \boldsymbol { r } _ { \omega , n } \cdot \boldsymbol { v } ) ^ { \alpha } I _ { \omega } ,
81
+ $$
82
+
83
+ where $r _ { \omega , n } = 2 ( \omega \cdot n ) n - \omega$ is the reflection of $\omega$ about the normal $n$ . The shininess coefficient $\alpha \in ( 0 , \infty )$ is a property of the surface material and controls the “mirror-ness" of the surface. If $\alpha$ is high, the specular highlight will only be visible if $v$ aligns closely with $r _ { \omega }$ . Altogether, we compute the radiance of $x$ in direction $v$ as:
84
+
85
+ $$
86
+ L _ { o } ( x , v ) = T ( x ) \cdot I _ { \mathrm { d i f f u s e } } ( x ) + k _ { s } \cdot I _ { \mathrm { s p e c u l a r } } ( x , v )
87
+ $$
88
+
89
+ ![](images/825ea78697593d2e91e25acde1e2f08288d7811064ae4dc3c79b36f8b49f642e.jpg)
90
+ Figure 5: Qualitative results on various household objects. We demonstrate the versatility of our approach on an espresso machine, a bottle of ketchup, a game controller, and a fire hydrant. Each instance has 7-10 input views. We find that a coarse, cuboid mesh is sufficient as an initialization to learn detailed shape and texture. We initialize the camera poses by hand, roughly binning in increments of 45 degrees azimuth. [Video]
91
+
92
+ where the specularity coefficient $k _ { \mathrm { s } }$ is another surface material property that controls the intensity of the specular highlight. $T ( x )$ is the texture value at $x$ computed by $f _ { \mathrm { t e x } }$ . For the sake of simplicity, $\alpha$ and $k _ { s }$ are shared across the entire instance. See Fig. 4 for a full decomposition of these components.
93
+
94
+ # 3.3 Learning NeRS in the Wild
95
+
96
+ Given a sparse set of images in-the-wild, our approach aims to infer a NeRS representation, which when rendered, matches the available input. Concretely, our method takes as input $N$ (typically 8) images of the same instance $\{ I _ { i } \} _ { i = 1 } ^ { N }$ , noisy camera rotations $\{ R _ { i } \} _ { i = 1 } ^ { N }$ , and a category-specific mesh initialization $\mathcal { M }$ . Using these, we aim to optimize full perspective cameras $\{ \Pi \} _ { i = 1 } ^ { N }$ as well as the neural surface shape $f _ { \mathrm { s h a p e } }$ , surface texture $f _ { \mathrm { t e x t } }$ , and environment map $f _ { \mathrm { e n v } }$ . In addition, we also recover the material properties of the object, parametrized by a specularity coefficient $k _ { s }$ and shininess coefficient $\alpha$ .
97
+
98
+ Initialization. Note that both the camera poses and mesh initialization are only required to be coarsely accurate. We use an off-the-shelf approach (Xiao et al., 2019) to predict camera rotations, and we find that a cuboid is sufficient as an initialization for several instances (See Fig. 5). We use off-the-shelf approaches (Rother et al., 2004; Kirillov et al., 2020) to compute masks $\{ M _ { i } \} _ { i = 1 } ^ { N }$ . We assume that all images were taken with the same camera intrinsics. We initialize the shared global focal length $f$ to correspond to a field of view of 60 degrees, and set the principal point at center of each image. We initialize the camera pose with the noisy initial rotations $R _ { i }$ and a translation $t _ { i }$ such that the object is fully in view. We pre-train $f _ { \mathrm { s h a p e } }$ to output the template mesh $\mathcal { M }$ .
99
+
100
+ Rendering. To render an image, NeRS first discretizes the neural shape model $f _ { \mathrm { s h a p e } } ( u )$ over spherical coordinates $u$ to construct an explicit triangulated surface mesh. This triangulated mesh and camera $\Pi _ { i }$ are fed into PyTorch3D’s differentiable renderer (Ravi et al., 2020) to obtain per-pixel (continuous) spherical coordinates and associated surface properties:
101
+
102
+ $$
103
+ [ U V , N , \hat { M } _ { i } ] = \mathrm { R a s t e r i z e } ( \pi _ { i } , f _ { \mathrm { s h a p e } } )
104
+ $$
105
+
106
+ where $U V [ p ]$ , $N [ p ]$ , and $\hat { M } [ p ]$ are (spherical) uv-coordinates, normals, and binary foregroundbackground labels corresponding to each image pixel $p$ . Together with the environment map $f _ { \mathrm { e n v } }$ and specular material parameters $( \alpha , k _ { s } )$ , these quantities are sufficient to compute the outgoing radiance at each pixel $p$ under camera viewpoint $\Pi _ { i }$ using (4). In particular, denoting by $v ( \Pi , p )$ the viewing direction for pixel $p$ under camera $\Pi$ , and using $u \equiv U V [ p ] , n \equiv N [ p ]$ for notational brevity, the intensity at pixel $p$ can be computed as:
107
+
108
+ $$
109
+ \hat { I } [ p ] = f _ { \mathrm { t e x } } ( \boldsymbol { u } ) \cdot \Big ( \sum _ { \omega \in \Omega } ( \omega \cdot \boldsymbol { n } ) \ f _ { \mathrm { e n v } } ( \omega ) \Big ) + k _ { s } \Big ( \sum _ { \omega \in \Omega } ( r _ { \omega , n } \cdot v ( \Pi , p ) ) ^ { a } \ f _ { \mathrm { e n v } } ( \omega ) \Big )
110
+ $$
111
+
112
+ Image loss. We compute a perceptual loss (Zhang et al., 2018) $L _ { \mathrm { p e r c e p t u a l } } ( I _ { i } , \hat { I } _ { i } )$ that compares the distance between the rendered and true image using off-the-shelf VGG deep features. Note that being able to compute a perceptual loss is a significant benefit of surface-based representations over volumetric approaches such as NeRF (Mildenhall et al., 2020), which operate on batches of rays rather than images, due to the computational cost of volumetric rendering. Similar to $\mathrm { W u }$ et al. (2021), we find that an additional rendering loss using the mean texture (see Fig. 4 and Fig. 8 for examples with details in the supplement) helps learn visually plausible lighting.
113
+
114
+ Mask Lomask loss $\begin{array} { r } { L _ { \mathrm { m a s k } } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \lVert \dot { \lVert { M _ { i } - \hat { M } _ { i } } \rVert _ { 2 } ^ { 2 } } } \end{array}$ ween the rendered and m, distance transform loss $\begin{array} { r } { L _ { \mathrm { d t } } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } D _ { i } \odot \hat { M _ { i } } } \end{array}$ ompute a, and 2D chamfer loss $\begin{array} { r } { L _ { \mathrm { c h a m f e r } } = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \sum _ { p \in E ( M _ { i } ) } \operatorname* { m i n } _ { \hat { p } \in \hat { M } _ { i } } \lVert p - \hat { p } \rVert _ { 2 } ^ { 2 } . } \end{array}$ $D _ { i }$ refers to the Euclidean distance transform of mask $M _ { i }$ , $E ( \cdot )$ computes the 2D pixel coordinates of the edge of a mask, and $\hat { p }$ is every pixel coordinate in the predicted silhouette.
115
+
116
+ Regularization. Finally, to encourage smoother shape whenever possible, we incorporate a mesh regularization loss $L _ { \mathrm { r e g u l a r i z e } } = L _ { \mathrm { n o r m a l s } } + L _ { \mathrm { l a p l a c i a n } }$ consisting of normals consistency and Laplacian smoothing losses (Nealen et al., 2006; Desbrun et al., 1999). Note that such geometry regularization is another benefit of surface representations over volumetric ones. Altogether, we minimize:
117
+
118
+ $$
119
+ L = \lambda _ { 1 } L _ { \mathrm { m a s k } } + \lambda _ { 2 } L _ { \mathrm { d t } } + \lambda _ { 3 } L _ { \mathrm { c h a m f e r } } + \lambda _ { 4 } L _ { \mathrm { p e r c e p t u a l } } + \lambda _ { 5 } L _ { \mathrm { r e g u l a r i z e } }
120
+ $$
121
+
122
+ w.r.t $\Pi _ { i } = [ R _ { i } , t _ { i } , f ] , \alpha , k _ { s }$ , and the weights of $f _ { \mathrm { s h a p e } }$ , $f _ { \mathrm { t e x t } }$ , and $f _ { \mathrm { e n v \_ m a p } }$
123
+
124
+ Optimization. We optimize (7) in a coarse-to-fine fashion, starting with a few parameters and slowly increasing the number of free parameters. We initially optimize (7), w.r.t only the camera parameters $\Pi _ { i }$ . After convergence, we sequentially optimize $f _ { \mathrm { s h a p e } }$ , $f _ { \mathrm { t e x } }$ , and $f _ { \mathrm { e n v } } / \alpha / k _ { s }$ . We find it helpful to sample a new set of spherical coordinates $u$ each iteration when rasterizing. This helps propagate gradients over a larger surface and prevent aliasing. With 4 Nvidia 1080TI GPUs, training NeRS requires approximately 30 minutes. Please see Sec. ?? for hyperparameters and additional details.
125
+
126
+ # 4 Evaluation
127
+
128
+ In this section, we demonstrate the versatility of Neural Reflectance Surfaces to recover meaningful shape, texture, and illumination from in-the-wild indoor and outdoor images.
129
+
130
+ Multi-view Marketplace Dataset. To address the shortage of in-the-wild multi-view datasets, we introduce a new dataset, Multi-view Marketplace Cars (MVMC), collected from an online marketplace with thousands of car listings. Each user-submitted listing contains seller images of the same car instance. In total, we curate a subset of size 600 with at least 8 exterior views (averaging 10 exterior images per listing) along with 20 instances for an evaluation set (averaging 9.1 images per listing). We use Xiao et al. (2019) to compute rough camera poses. MVMC contains a large variety of cars under various illumination conditions (e.g. indoors, overcast, sunny, snowy, etc). The filtered dataset with anonymized personally identifiable information (e.g. license plates and phone numbers), masks, initial camera poses, and optimized NeRS cameras will be made available on the project page.
131
+
132
+ Novel View Synthesis. Traditionally, novel view synthesis requires accurate target cameras to use as queries. Existing approaches use COLMAP (Schönberger and Frahm, 2016) to recover ground truth cameras, but this consistently fails on MVMC due to specularities and limited views. On the other hand, we can use learning-based methods (Xiao et al., 2019) to recover camera poses for both training and test views. However, as these are inherently approximate, this complicates training and evaluation. To account for this, we explore two evaluation protocols. First, to mimic the traditional evaluation setup, we obtain pseudo-ground truth cameras (with manual correction) and freeze them during training and evaluation. While this evaluates the quality of the 3D reconstruction, it does not evaluate the method’s ability to jointly recover cameras. As a more realistic setup for evaluating view synthesis in the wild, we evaluate each method with approximate (off-the-shelf) cameras, while allowing them to be optimized.
133
+
134
+ ![](images/1e1f92db63ed1100ce8fad1f44379379f5ce28f037ca461209b2aa57b6e90068.jpg)
135
+ Figure 6: Qualitative comparison with fixed cameras. We evaluate all baselines on the task of novel view synthesis on Multi-view Marketplace Cars trained and tested with fixed, pseudo-ground truth cameras. One Target View NeRF\* IDR NeRS (Ours) Target View NeRF\* IDR NeRS (Oursimage is held out during training. Since we do not have ground truth cameras, we treat the optimized cameras from optimizing over all images as the ground truth cameras. We train a modified version (See Sec. 4) of NeRF (Mildenhall et al., 2020) that is more competitive with sparse views $\scriptstyle { \mathrm { ( N e R F } } ^ { * }$ ). We also evaluate against a meta-learned initialization of NeRF with and without finetuning until convergence (Tancik et al., 2021), but found poor results perhaps due to the domain shift from Shapenet cars. Finally, IDR (Yariv et al., 2020) extracts a surface from an SDF representation, but struggles to produce a view-consistent output given limited input views. We find that NeRS synthesizes novel views that are qualitatively closer to the target. The red truck has 16 total views while the blue SUV has 8 total views. [Video]
136
+
137
+ ![](images/dbbc857116f98818eb9a8b08e43e5af3f74dfe1408f2e27664b8f8a76e41b4dc.jpg)
138
+ Figure 7: Qualitative results for in-the-wild novel view synthesis. Since off-the-shelf camera poses are only approximate for both training and test images, we allow cameras to be optimized during both training and evaluation (See Tab. 2 and Sec. 4). We find that NeRS generalizes better than the baselines in this unconstrained but more realistic setup. [Video]
139
+
140
+ Novel View Synthesis with Fixed Cameras. In the absence of ground truth cameras, we create pseudo-ground truth by manually correcting cameras recovered by jointly optimizing over all images for each object instance. For each evaluation, we treat one image-camera pair as the target and the remaining pairs for training. We repeat this process for each image in the evaluation set (totaling 182). Unless otherwise noted, qualitative results use approximate cameras and not the pseudo-ground truth.
141
+
142
+ Novel View Synthesis in the Wild. While the above evaluates the quality of the 3D reconstructions, it is not representative of in-the-wild settings where the initial cameras are unknown/approximate and should be optimized during training. Because even the test camera is approximate, each method is similarly allowed to refine the test camera to better match the test image while keeping the model fixed. Intuitively, this measures the ability of a model to synthesize a target view under some camera. See implementation details in the supplement.
143
+
144
+ Baselines. We evaluate our approach against Neural Radiance Fields (NeRF) (Mildenhall et al., 2020), which learns a radiance field conditioned on viewpoint and position and renders images using raymarching. We find that the vanilla NeRF struggles in our in-the-wild low-data regime. As such, we make a number of changes to make the NeRF baseline (denoted $\mathrm { N e R F ^ { * } }$ ) as competitive as possible, including a mask loss and a canonical volume. Please see the appendix for full details. We also evaluate a simplified NeRF with a meta-learned initialization for cars from multi-view images (Tancik et al., 2021), denoted as MetaNeRF. MetaNeRF meta-learns an initialization such that with just a few gradient steps, it can learn a NeRF model. This allows the model to learn a data-driven prior over the shape of cars. Note that MetaNeRF is trained on ShapeNet (Chang et al., 2015) and thus has seen more data than the other test-time-optimization approaches. We find that the default number of gradient steps was insufficient for MetaNeRF to converge on images from MVMC, so we also evaluate MetaNeRF-ft, which is finetuned until convergence. Finally, we evaluate IDR (Yariv et al., 2020), which represents geometry by extracting a surface from a signed distance field. IDR learns a neural renderer conditioned on the camera direction, position, and normal of the surface.
145
+
146
+ Metrics. We evaluate all approaches using the traditional image similarity metrics Mean-Square Error (MSE), Peak Signal-to-Noise Ratio (PSNR), and Structural Similarity Index Measure (SSIM).
147
+
148
+ ![](images/280a359ebf43a041ab6cf619ba14bec677b346d8641cd63350c9a91426643746.jpg)
149
+ Figure 8: Qualitative results on our in-the-wild Multi-view Marketplace Cars dataset. Here we visualize the NeRS outputs as well as the illumination of the mean texture on 3 of listings from the MVMC dataset. We find that NeRS recovers detailed textures and plausible illumination. Each instance has 8 input views. [Video]
150
+
151
+ Table 1: Quantitative evaluation of novel-view synthesis on MVMC using fixed pseudo-ground truth cameras. To evaluate novel view synthesis in a manner consistent with previous works that assume known cameras, we obtain pseudo-ground truth cameras by manually correcting off-the-shelf recovered cameras. We evaluate against a modified NeRF $\mathrm { ( N e R F ^ { * } ) }$ ), a meta-learned initialization to NeRF with and without finetuning (MetaNeRF), and the volumetric surface-based IDR. NeRS significantly outperforms the baselines on all metrics on the task of novel-view synthesis with fixed cameras. See Fig. 6 for qualitative results.
152
+
153
+ <table><tr><td>Method</td><td>MSE↓</td><td>PSNR ↑</td><td>SSIM↑</td><td>LPIPS ↓</td><td>FID←</td></tr><tr><td>NeRF* (Mildenhall et al., 2020)</td><td>0.0393</td><td>16.0</td><td>0.698</td><td>0.287</td><td>231.7</td></tr><tr><td>MetaNeRF (Tancik et al., 2021)</td><td>0.0755</td><td>11.4</td><td>0.345</td><td>0.666</td><td>394.5</td></tr><tr><td>MetaNeRF-ft (Tancik et al., 2021)</td><td>0.0791</td><td>11.3</td><td>0.500</td><td>0.542</td><td>326.8</td></tr><tr><td>IDR (Yariv et al., 2020)</td><td>0.0698</td><td>13.8</td><td>0.658</td><td>0.328</td><td>190.1</td></tr><tr><td>NeRS (Ours)</td><td>0.0254</td><td>16.5</td><td>0.720</td><td>0.172</td><td>60.9</td></tr></table>
154
+
155
+ Table 2: Quantitative evaluation of in-the-wild novel-view synthesis on MVMC. Off-the-shelf cameras estimated for in-the-wild data are inherently erroneous. This means that both training and test cameras are approximate, complicating training and evaluation. To compensate for approximate test cameras, we allow methods to refine the test camera given the test image with the model fixed (see Sec. ?? for details). Intuitively this measures the ability of a method to synthesize a test image under some camera. We evaluate against NeRF and IDR, and find that NeRS outperforms the baselines across all metrics. See Fig. 7 for qualitative results.
156
+
157
+ <table><tr><td>Method</td><td>MSE↓</td><td>PSNR ↑</td><td>SSIM↑</td><td>LPIPS↓</td><td>FID←</td></tr><tr><td>NeRF* (Mildenhall et al., 2020)</td><td>0.0464</td><td>14.7</td><td>0.660</td><td>0.335</td><td>277.9</td></tr><tr><td>IDR (Yariv et al., 2020)</td><td>0.0454</td><td>14.4</td><td>0.685</td><td>0.297</td><td>242.3</td></tr><tr><td>NeRS (Ours)</td><td>0.0338</td><td>15.4</td><td>0.675</td><td>0.221</td><td>92.5</td></tr></table>
158
+
159
+ We also compute the Learned Perceptual Image Patch Similarity (LPIPS) (Zhang et al., 2018) which correlates more strongly with human perceptual distance. Finally, we compute the Fréchet Inception Distance (Heusel et al., 2017) between the novel view renderings and original images as a measure of visual realism. In Tab. 1 and Tab. 2, we find that NeRS significantly outperforms the baselines in all metrics across both the fixed camera and in-the-wild novel-view synthesis evaluations. See Fig. 6 and Fig. 7 for a visual comparison of the methods.
160
+
161
+ Qualitative Results. In Fig. 8, we show qualitative results on our Multi-view Marketplace Cars dataset. Each car instance has between 8 and 16 views. We visualize the outputs of our reconstruction from 3 novel views. We show the rendering for both the full radiance model and the mean texture. Both of these renderings are used to compute the perceptual loss (See Sec. 3.2). We find that NeRS recovers detailed texture information and plausible illumination parameters. To demonstrate the scalability of our approach, we also evaluate on various household objects in Fig. 5. We find that a coarse, cuboid mesh is sufficient as an initialization to recover detailed shape, texture, and lighting conditions. Please refer to the project webpage for 360 degree visualizations.
162
+
163
+ # 5 Discussion
164
+
165
+ We present NeRS, an approach for learning neural surface models that capture geometry and surface reflectance. In contrast to volumetric neural rendering, NeRS enforces watertight and closed manifolds. This allows NeRS to model surface-based appearance affects, including view-dependant specularities and normal-dependant diffuse appearance. We demonstrate that such regularized reconstructions allow for learning from sparse in-the-wild multi-view data, enabling reconstruction of objects with diverse material properties across a variety of indoor/outdoor illumination conditions. Further, the recovery of accurate camera poses in the wild (where classic structure-from-motion fails) remains unsolved and serves as a significant bottleneck for all approaches, including ours. We tackle this problem by using realistic but approximate off-the-shelf camera poses and by introducing a new evaluation protocol that accounts for this. We hope NeRS inspires future work that evaluates in the wild and enables the construction of high-quality libraries of real-world geometry, materials, and environments through better neural approximations of shape, reflectance, and illuminants.
166
+
167
+ Limitations. Though NeRS makes use of factorized models of illumination and material reflectance, there exists some fundamental ambiguities that are difficult from which to recover. For example, it is difficult to distinguish between an image of a gray car under bright illumination and an image of a white car under dark illumination. We visualize such limitations in the supplement. In addition, because the neural shape representation of NeRS is diffeomorphic to a sphere, it cannot model objects of non-genus-zero topologies.
168
+
169
+ Broader Impacts. NeRS reconstructions could be used to reveal identifiable or proprietary information (e.g., license plates). We made our best effort to blur out all license plates and other personally-identifiable information in the paper and data.
170
+
171
+ Acknowledgements. We would like to thank Angjoo Kanazawa and Leonid Keselman for useful discussion and Sudeep Dasari and Helen Jiang for helpful feedback on drafts of the manuscript. This work was supported in part by the NSF GFRP (Grant No. DGE1745016), Singapore DSTA, and CMU Argo AI Center for Autonomous Vehicle Research.
172
+
173
+ # References
174
+
175
+ Henrik Aanæs, Rasmus Ramsbøl Jensen, George Vogiatzis, Engin Tola, and Anders Bjorholm Dahl. Large-Scale Data for Multiple-View Stereopsis. ICCV, 2016.
176
+ Anand Bhattad, Aysegul Dundar, Guilin Liu, Andrew Tao, and Bryan Catanzaro. View Generalization for Single Image Textured 3D Models. In CVPR, 2021.
177
+ Sai Bi, Zexiang Xu, Kalyan Sunkavalli, David Kriegman, and Ravi Ramamoorthi. Deep 3D Capture: Geometry and Reflectance from Sparse Multi-view Images. In CVPR, 2020.
178
+ Volker Blanz and Thomas Vetter. A Morphable Model for the Synthesis of 3D Faces. In SIGGRAPH, 1999.
179
+ Mark Boss, Raphael Braun, Varun Jampani, Jonathan T. Barron, Ce Liu, and Hendrik P.A. Lensch. NeRD: Neural Reflectance Decomposition from Image Collections. In ICCV, 2021.
180
+ Thomas J Cashman and Andrew W Fitzgibbon. What Shape are Dolphins? Building 3D Morphable Models from 2D Images. TPAMI, 35(1):232–244, 2012.
181
+ 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:1512.03012, 2015.
182
+ Sungjoon Choi, Qian-Yi Zhou, Stephen Miller, and Vladlen Koltun. A Large Dataset of Object Scans. arXiv:1602.02481, 2016.
183
+ 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 ECCV, 2016.
184
+ Mathieu Desbrun, Mark Meyer, Peter Schröder, and Alan H Barr. Implicit Fairing of Irregular Meshes using Diffusion and Curvature Flow. In SIGGRAPH, 1999.
185
+
186
+ James D Foley, Foley Dan Van, Andries Van Dam, Steven K Feiner, John F Hughes, Edward Angel, and J Hughes. Computer Graphics: Principles and Practice, volume 12110. Addison-Wesley Professional, 1996.
187
+
188
+ Yasutaka Furukawa and Carlos Hernández. Multi-view Stereo: A Tutorial. Foundations and Trends in Computer Graphics and Vision, 9(1-2):1–148, 2015.
189
+
190
+ Rohit Girdhar, David F Fouhey, Mikel Rodriguez, and Abhinav Gupta. Learning a Predictable and Generative Vector Representation for Objects. In ECCV, 2016.
191
+
192
+ Georgia Gkioxari, Jitendra Malik, and Justin Johnson. Mesh R-CNN. In ICCV, 2019.
193
+
194
+ Shubham Goel, Angjoo Kanazawa, , and Jitendra Malik. Shape and Viewpoints without Keypoints. In ECCV, 2020.
195
+
196
+ Thibault Groueix, Matthew Fisher, Vladimir G Kim, Bryan C Russell, and Mathieu Aubry. A Papier-mâché Approach to Learning 3D Surface Generation. In CVPR, 2018.
197
+
198
+ Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans Trained by a Two Time-scale Update Rule Converge to a Local Nash Equilibrium. In NeurIPS, 2017.
199
+
200
+ David S Immel, Michael F Cohen, and Donald P Greenberg. A Radiosity Method for Non-diffuse Environments. In SIGGRAPH, 1986.
201
+
202
+ Ajay Jain, Matthew Tancik, and Pieter Abbeel. Putting NeRF on a Diet: Semantically Consistent Few-Shot View Synthesis. In ICCV, 2021.
203
+
204
+ James T Kajiya. The Rendering Equation. In SIGGRAPH, 1986.
205
+
206
+ Angjoo Kanazawa, Shubham Tulsiani, Alexei A. Efros, and Jitendra Malik. Learning CategorySpecific Mesh Reconstruction from Image Collections. In ECCV, 2018.
207
+
208
+ Abhishek Kar, Shubham Tulsiani, Joao Carreira, and Jitendra Malik. Category-specific Object Reconstruction from a Single Image. In CVPR, 2015.
209
+
210
+ Hiroharu Kato, Yoshitaka Ushiku, and Tatsuya Harada. Neural 3D Mesh Renderer. In CVPR, 2018.
211
+
212
+ Alexander Kirillov, Yuxin Wu, Kaiming He, and Ross Girshick. Pointrend: Image Segmentation as Rendering. In CVPR, 2020.
213
+
214
+ Arno Knapitsch, Jaesik Park, Qian-Yi Zhou, and Vladlen Koltun. Tanks and Temples: Benchmarking Large-scale Scene Reconstruction. ACM Transactions on Graphics, 36(4):1–13, 2017.
215
+
216
+ Samuli Laine, Janne Hellsten, Tero Karras, Yeongho Seol, Jaakko Lehtinen, and Timo Aila. Modular Primitives for High-Performance Differentiable Rendering. ACM Transactions on Graphics, 39(6), 2020.
217
+
218
+ Xueting Li, Sifei Liu, Shalini De Mello, Kihwan Kim, Xiaolong Wang, Ming-Hsuan Yang, and Jan Kautz. Online Adaptation for Consistent Mesh Reconstruction in the Wild. In NeurIPS, 2020.
219
+
220
+ Chen-Hsuan Lin, Wei-Chiu Ma, Antonio Torralba, and Simon Lucey. BARF: Bundle-Adjusting Neural Radiance Fields. In ICCV, 2021.
221
+
222
+ Ricardo Martin-Brualla, Noha Radwan, Mehdi S. M. Sajjadi, Jonathan T. Barron, Alexey Dosovitskiy, and Daniel Duckworth. NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections. In CVPR, 2021.
223
+
224
+ Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy Networks: Learning 3D Reconstruction in Function Space. In CVPR, 2019.
225
+
226
+ Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik, Jonathan T Barron, Ravi Ramamoorthi, and Ren Ng. NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis. In ECCV, 2020.
227
+
228
+ Andrew Nealen, Takeo Igarashi, Olga Sorkine, and Marc Alexa. Laplacian Mesh Optimization. In GRAPHITE, 2006.
229
+ Michael Oechsle, Lars Mescheder, Michael Niemeyer, Thilo Strauss, and Andreas Geiger. Texture Fields: Learning Texture Representations in Function Space. In ICCV, 2019.
230
+ Michael Oechsle, Songyou Peng, and Andreas Geiger. UNISURF: Unifying Neural Implicit Surfaces and Radiance Fields for Multi-View Reconstruction. In ICCV, 2021.
231
+ Hyun Oh Song, Yu Xiang, Stefanie Jegelka, and Silvio Savarese. Deep Metric Learning via Lifted Structured Feature Embedding. In CVPR, 2016.
232
+ Jeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. DeepSDF: Learning Continuous Signed Distance Functions for Shape Representation. In CVPR, 2019.
233
+ Keunhong Park, Utkarsh Sinha, Jonathan T. Barron, Sofien Bouaziz, Dan B Goldman, Steven M. Seitz, and Ricardo Martin-Brualla. Nerfies: Deformable Neural Radiance Fields. In ICCV, 2021.
234
+ Bui Tuong Phong. Illumination for Computer Generated Pictures. Communications of the ACM, 18 (6), 1975.
235
+ Albert Pumarola, Enric Corona, Gerard Pons-Moll, and Francesc Moreno-Noguer. D-NeRF: Neural Radiance Fields for Dynamic Scenes. In CVPR, 2020.
236
+ Nikhila Ravi, Jeremy Reizenstein, David Novotny, Taylor Gordon, Wan-Yen Lo, Justin Johnson, and Georgia Gkioxari. Accelerating 3D Deep Learning with PyTorch3D. arXiv:2007.08501, 2020.
237
+ Gernot Riegler and Vladlen Koltun. Free View Synthesis. In ECCV, 2020.
238
+ Carsten Rother, Vladimir Kolmogorov, and Andrew Blake. "GrabCut" Interactive Foreground Extraction using Iterated Graph Cuts. ACM Transactions on Graphics, 23(3):309–314, 2004.
239
+ Johannes Lutz Schönberger and Jan-Michael Frahm. Structure-from-Motion Revisited. In CVPR, 2016.
240
+ Thomas Schöps, Torsten Sattler, and Marc Pollefeys. BAD SLAM: Bundle Adjusted Direct RGB-D SLAM. In CVPR, 2019.
241
+ Nima Sedaghat and Thomas Brox. Unsupervised Generation of a Viewpoint Annotated Car Dataset from Videos. In ICCV, 2015.
242
+ Steven M Seitz, Brian Curless, James Diebel, Daniel Scharstein, and Richard Szeliski. A Comparison and Evaluation of Multi-view Stereo Reconstruction Algorithms. In CVPR, 2006.
243
+ Vincent Sitzmann, Justus Thies, Felix Heide, Matthias Nießner, Gordon Wetzstein, and Michael Zollhofer. DeepVoxels: Learning Persistent 3D Feature Embeddings. In CVPR, 2019a.
244
+ Vincent Sitzmann, Michael Zollhöfer, and Gordon Wetzstein. Scene Representation Networks: Continuous 3D-Structure-Aware Neural Scene Representations. In NeurIPS, 2019b.
245
+ Pratul P Srinivasan, Boyang Deng, Xiuming Zhang, Matthew Tancik, Ben Mildenhall, and Jonathan T Barron. NeRV: Neural Reflectance and Visibility Fields for Relighting and View Synthesis. In CVPR, 2021.
246
+ Matthew Tancik, Ben Mildenhall, Terrance Wang, Divi Schmidt, Pratul P. Srinivasan, Jonathan T. Barron, and Ren Ng. Learned Initializations for Optimizing Coordinate-Based Neural Representations. In CVPR, 2021.
247
+ Justus Thies, Michael Zollhöfer, and Matthias Nießner. Deferred Neural Rendering: Image Synthesis using Neural Textures. ACM Transactions on Graphics, 38(4):1–12, 2019.
248
+ Shubham Tulsiani, Tinghui Zhou, Alexei A Efros, and Jitendra Malik. Multi-view Supervision for Single-view Reconstruction via Differentiable Ray Consistency. In CVPR, 2017.
249
+ Shubham Tulsiani, Nilesh Kulkarni, and Abhinav Gupta. Implicit Mesh Reconstruction from Unannotated Image Collections. arXiv:2007.08504, 2020.
250
+ Peng Wang, Lingjie Liu, Yuan Liu, Christian Theobalt, Taku Komura, and Wenping Wang. NeuS: Learning Neural Implicit Surfaces by Volume Rendering for Multi-view Reconstruction. In NeurIPS, 2021.
251
+ Shangzhe Wu, Ameesh Makadia, Jiajun Wu, Noah Snavely, Richard Tucker, and Angjoo Kanazawa. De-rendering the World’s Revolutionary Artefacts. In CVPR, 2021.
252
+ Yang Xiao, Xuchong Qiu, Pierre-Alain Langlois, Mathieu Aubry, and Renaud Marlet. Pose from Shape: Deep Pose Estimation for Arbitrary 3D Objects. In BMVC, 2019.
253
+ Xinchen Yan, Jimei Yang, Ersin Yumer, Yijie Guo, and Honglak Lee. Perspective Transformer Nets: Learning Single-view 3D Object Reconstruction without 3D Supervision. In NeurIPS, 2016.
254
+ Gengshan Yang, Deqing Sun, Varun Jampani, Daniel Vlasic, Forrester Cole, Huiwen Chang, Deva Ramanan, William T Freeman, and Ce Liu. LASR: Learning Articulated Shape Reconstruction from a Monocular Video. In CVPR, 2021.
255
+ Lior Yariv, Yoni Kasten, Dror Moran, Meirav Galun, Matan Atzmon, Basri Ronen, and Yaron Lipman. Multiview Neural Surface Reconstruction by Disentangling Geometry and Appearance. In NeurIPS, 2020.
256
+ Lior Yariv, Jiatao Gu, Yoni Kasten, and Yaron Lipman. Volume Rendering of Neural Implicit Surfaces. arXiv:2106.12052, 2021.
257
+ Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, 2018.
258
+ Xiuming Zhang, Sean Fanello, Yun-Ta Tsai, Tiancheng Sun, Tianfan Xue, Rohit Pandey, Sergio Orts-Escolano, Philip Davidson, Christoph Rhemann, Paul Debevec, et al. Neural Light Transport for Relighting and View Synthesis. ACM Transactions on Graphics, 40(1):1–17, 2021a.
259
+ Xiuming Zhang, Pratul P Srinivasan, Boyang Deng, Paul Debevec, William T Freeman, and Jonathan T Barron. NeRFactor: Neural Factorization of Shape and Reflectance Under an Unknown Illumination. In SIGGRAPH Asia, 2021b.
parse/train/MudT1U2eIY/MudT1U2eIY_content_list.json ADDED
@@ -0,0 +1,1213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "NeRS: Neural Reflectance Surfaces for Sparse-view 3D Reconstruction in the Wild ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 217,
8
+ 122,
9
+ 781,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Jason Y. Zhang ",
17
+ "bbox": [
18
+ 220,
19
+ 226,
20
+ 330,
21
+ 241
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Gengshan Yang Shubham Tulsiani∗ Deva Ramanan∗ Robotics Institute, Carnegie Mellon University ",
28
+ "bbox": [
29
+ 343,
30
+ 224,
31
+ 753,
32
+ 255
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "",
39
+ "bbox": [
40
+ 665,
41
+ 227,
42
+ 779,
43
+ 239
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Abstract ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 462,
53
+ 290,
54
+ 535,
55
+ 306
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Recent history has seen a tremendous growth of work exploring implicit representations of geometry and radiance, popularized through Neural Radiance Fields (NeRF). Such works are fundamentally based on a (implicit) volumetric representation of occupancy, allowing them to model diverse scene structure including translucent objects and atmospheric obscurants. But because the vast majority of real-world scenes are composed of well-defined surfaces, we introduce a surface analog of such implicit models called Neural Reflectance Surfaces (NeRS). NeRS learns a neural shape representation of a closed surface that is diffeomorphic to a sphere, guaranteeing water-tight reconstructions. Even more importantly, surface parameterizations allow NeRS to learn (neural) bidirectional surface reflectance functions (BRDFs) that factorize view-dependent appearance into environmental illumination, diffuse color (albedo), and specular “shininess.” Finally, rather than illustrating our results on synthetic scenes or controlled in-the-lab capture, we assemble a novel dataset of multi-view images from online marketplaces for selling goods. Such “in-the-wild” multi-view image sets pose a number of challenges, including a small number of views with unknown/rough camera estimates. We demonstrate that surface-based neural reconstructions enable learning from such data, outperforming volumetric neural rendering-based reconstructions. We hope that NeRS serves as a first step toward building scalable, high-quality libraries of real-world shape, materials, and illumination. The project page with code and video visualizations can be found at jasonyzhang.com/ners. ",
62
+ "bbox": [
63
+ 232,
64
+ 324,
65
+ 766,
66
+ 613
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "image",
72
+ "img_path": "images/28726ec0959d8d1224a017e4f9fe1f5a27db6bf98bb3c6126f894e534c94ff37.jpg",
73
+ "image_caption": [
74
+ "Figure 1: 3D view synthesis in the wild. From several multi-view internet images of a truck and a coarse initial mesh (top left), we recover the camera poses, 3D shape, texture, and illumination (top right). We demonstrate the scalability of our approach on a wide variety of indoor and outdoor object categories (second row). [Video] "
75
+ ],
76
+ "image_footnote": [],
77
+ "bbox": [
78
+ 179,
79
+ 645,
80
+ 823,
81
+ 814
82
+ ],
83
+ "page_idx": 0
84
+ },
85
+ {
86
+ "type": "text",
87
+ "text": "1 Introduction ",
88
+ "text_level": 1,
89
+ "bbox": [
90
+ 174,
91
+ 89,
92
+ 310,
93
+ 106
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "Although we observe the surrounding world only via 2D percepts, it is undeniably 3D. The goal of recovering this underlying 3D from 2D observations has been a longstanding one in the vision community, and any computational approach aimed at this task must answer a central question about representation—how should we model the geometry and appearance of the underlying 3D structure? ",
100
+ "bbox": [
101
+ 174,
102
+ 126,
103
+ 825,
104
+ 181
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "An increasingly popular answer to this question is to leverage neural volumetric representations of density and radiance fields (Mildenhall et al., 2020). This allows modeling structures from rigid objects to translucent fluids, while further enabling arbitrary view-dependent lighting effects. However, it is precisely this unconstrained expressivity that makes it less robust and unsuitable for modeling 3D objects from sparse views in the wild. While these neural volumetric representations have been incredibly successful, they require hundreds of images, typically with precise camera poses, to model the full 3D structure and appearance of real-world objects. In contrast, when applied to ‘in-the-wild’ settings e.g. a sparse set of images with imprecise camera estimates from off-the-shelf systems (see Fig. 1), they are unable to infer a coherent 3D representation. We argue this is because these neural volumetric representations, by allowing arbitrary densities and lighting, are too flexible. ",
111
+ "bbox": [
112
+ 174,
113
+ 189,
114
+ 825,
115
+ 327
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Is there a robust alternative that captures real-world 3D structure? The vast majority of real-world objects and scenes comprise of well-defined surfaces. This implies that the geometry, rather than being an unconstrained volumetric function, can be modeled as a 2D manifold embedded in euclidean 3D space—and thus encoded via a (neural) mapping from a 2D manifold to 3D. Indeed, such meshed surface manifolds form the heart of virtually all rendering engines (Foley et al., 1996). Moreover, instead of allowing arbitrary view-dependent radiance, the appearance of such surfaces can be described using (neural) bidirectional surface reflection functions (BRDFs), themselves developed by the computer graphics community over decades. We operationalize these insights into Neural Reflectance Surfaces (NeRS), a surface-based neural representation for geometry and appearance. ",
122
+ "bbox": [
123
+ 174,
124
+ 333,
125
+ 825,
126
+ 458
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "NeRS represents shape using a neural displacement field over a canonical sphere, thus constraining the geometry to be a watertight surface. This representation crucially associates a surface normal to each point, which enables modeling view-dependent lighting effects in a physically grounded manner. Unlike volumetric representations which allow unconstrained radiance, NeRS factorizes surface appearance using a combination of diffuse color (albedo) and specularity. It does so by learning neural texture fields over the sphere to capture the albedo at each surface point, while additionally inferring an environment map and surface material properties. This combination of a surface constraint and a factored appearance allows NeRS to learn efficiently and robustly from a sparse set of images in the wild, while being able to capture varying geometry and complex view-dependent appearance. ",
133
+ "bbox": [
134
+ 174,
135
+ 464,
136
+ 825,
137
+ 589
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "Using only a coarse category-level template and approximate camera poses, NeRS can reconstruct instances from a diverse set of classes. Instead of evaluating in a synthetic setup, we introduce a dataset sourced from marketplace settings where multiple images of a varied set of real-world objects under challenging illumination are easily available. We show NeRS significantly outperforms neural volumetric or classic mesh-based approaches in this challenging setup, and as illustrated in Fig. 1, is able to accurately model the view-dependent appearance via its disentangled representation. Finally, as cameras recovered in the wild are only approximate, we propose a new evaluation protocol for in-the-wild novel view synthesis in which cameras can be refined during both training and evaluation. We hope that our approach and results highlight the several advantages that neural surface representations offer, and that our work serves as a stepping stone for future investigations. ",
144
+ "bbox": [
145
+ 174,
146
+ 594,
147
+ 825,
148
+ 733
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 Related Work ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 174,
158
+ 762,
159
+ 321,
160
+ 780
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Surface-based 3D Representations. As they enable efficient representation and rendering, polygonal meshes are widely used in vision and graphics. In particular, morphable models (Blanz and Vetter, 1999) allow parametrizing shapes as deformations of a canonical template and can even be learned from category-level image collections (Cashman and Fitzgibbon, 2012; Kar et al., 2015). With the advances in differentiable rendering (Kato et al., 2018; Laine et al., 2020; Ravi et al., 2020), these have also been leveraged in learning based frameworks for shape prediction (Kanazawa et al., 2018; Gkioxari et al., 2019; Goel et al., 2020) and view synthesis (Riegler and Koltun, 2020). Whereas these approaches use an explicit discrete mesh, some recent methods have proposed using continuous neural surface parametrization like ours to represent shape (Groueix et al., 2018) and texture (Tulsiani et al., 2020; Bhattad et al., 2021). ",
167
+ "bbox": [
168
+ 174,
169
+ 800,
170
+ 825,
171
+ 911
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "",
178
+ "bbox": [
179
+ 173,
180
+ 92,
181
+ 823,
182
+ 119
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "However, all of these works leverage such surface representations for (coarse) single-view 3D prediction given a category-level training dataset. In contrast, our aim is to infer such a representation given multiple images of a single instance, and without prior training. Closer to this goal of representing a single instance in detail, contemporary approaches have shown the benefits of using videos (Li et al., 2020; Yang et al., 2021) to recover detailed shapes, but our work tackles a more challenging setup where correspondence/flow across images is not easily available. In addition, while these prior approaches infer the surface texture, they do not enable the view-dependent appearance effects that our representation can model. ",
189
+ "bbox": [
190
+ 174,
191
+ 126,
192
+ 825,
193
+ 236
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "Volumetric 3D and Radiance Fields. Volumetric representations for 3D serve as a common, and arguably more flexible alternative to surface based representations, and have been very popular for classical multi-view reconstruction approaches (Furukawa and Hernández, 2015). These have since been incorporated in deep-learning frameworks for shape prediction (Girdhar et al., 2016; Choy et al., 2016) and differentiable rendering (Yan et al., 2016; Tulsiani et al., 2017). Although these initial approaches used discrete volumetric grids, their continuous neural function analogues have since been proposed to allow finer shape (Mescheder et al., 2019; Park et al., 2019) and texture modeling (Oechsle et al., 2019). ",
200
+ "bbox": [
201
+ 173,
202
+ 242,
203
+ 825,
204
+ 353
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Whereas the above methods typically aimed for category-level shape representation, subsequent approaches have shown particularly impressive results when using these representations to model a single instance from images (Sitzmann et al., 2019a; Thies et al., 2019; Sitzmann et al., 2019b) – which is the goal of our work. More recently, by leveraging an implicit representation in the form of a Neural Radiance Field, Mildenhall et al. (2020) showed the ability to model complex geometries and illumination from images. There has since been a flurry of impressive work to further push the boundaries of these representations and allow modeling deformation (Pumarola et al., 2020; Park et al., 2021), lighting variation (Martin-Brualla et al., 2021), and similar to ours, leveraging insights from surface rendering to model radiance (Yariv et al., 2020; Boss et al., 2021; Oechsle et al., 2021; Srinivasan et al., 2021; Zhang et al., 2021b; Wang et al., 2021; Yariv et al., 2021). However, unlike our approach which can efficiently learn from a sparse set of images with coarse cameras, these approaches rely on a dense set of multi-view images with precise camera localization to recover a coherent 3D structure of the scene. DietNeRF (Jain et al., 2021) reduces the number of images but requires precise cameras and semantic supervision. BARF (Lin et al., 2021) relaxes the constraint of precise cameras while foregoing view-dependent appearance and requiring a dense set of images. Other approaches (Bi et al., 2020; Zhang et al., 2021a) that learn material properties from sparse views require specialized illumination rigs. ",
211
+ "bbox": [
212
+ 173,
213
+ 359,
214
+ 826,
215
+ 594
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Multi-view Datasets. Many datasets study the longstanding problem of multi-view reconstruction and view synthesis. However, they are often captured in controlled setups, small in scale, and not diverse enough to capture the span of real world objects. Middlebury (Seitz et al., 2006) benchmarks multi-view reconstruction, containing two objects with nearly Lambertian surfaces. DTU (Aanæs et al., 2016) contains eighty objects with various materials but is still captured in a lab with controlled lighting. Freiburg cars (Sedaghat and Brox, 2015) captures 360 degree videos of fifty-two outdoor cars for multi-view reconstruction. ETH3D (Schöps et al., 2019) and Tanks and Temples (Knapitsch et al., 2017) contain both indoor and outdoor scenes but are small in scale. Perhaps most relevant are large-scale datasets of real-world objects such as Redwood (Choi et al., 2016) and Stanford Products (Oh Song et al., 2016), but the data is dominated by single-views or small baseline videos. In contrast, our Multi-view Marketplace Cars (MVMC) dataset contains thousands of multi-view captures of in-the-wild objects under various illumination conditions, making it suitable for studying and benchmarking algorithms for multi-view reconstruction, view synthesis, and inverse rendering. ",
222
+ "bbox": [
223
+ 173,
224
+ 601,
225
+ 825,
226
+ 780
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "3 Method ",
233
+ "text_level": 1,
234
+ "bbox": [
235
+ 174,
236
+ 806,
237
+ 269,
238
+ 823
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "Given a sparse set of input images of an object under natural lighting conditions, we aim to model its shape and appearance. While recent neural volumetric approaches share a similar goal, they require a dense set of views with precise camera information. Instead, our approach relies only on approximate camera pose estimates and a coarse category-level shape template. Our key insight is that instead of allowing unconstrained densities popularly used for volumetric representations, we can enforce a surface-based 3D representation. Importantly, this allows view-dependent appearance variation by leveraging constrained reflection models that decompose appearance into diffuse and specular components. In this section, we first introduce our (neural) surface representation that captures the object’s shape and texture, and then explain how illumination and specular effects can be modeled for rendering. Finally, we describe how our approach can learn using challenging in-the-wild images. ",
245
+ "bbox": [
246
+ 174,
247
+ 842,
248
+ 823,
249
+ 911
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "image",
255
+ "img_path": "images/f41531a65c9e79c1c10b60397ce5ad71bc62f3d4469271f637719f1f0aec728e.jpg",
256
+ "image_caption": [
257
+ "Figure 2: Neural Surface Representation. We propose an implicit, continuous representation of shape and texture. We model shape as a deformation of a unit sphere via a neural network $f _ { \\mathrm { s h a p e } }$ , and texture as a learned per-uv color value via a neural network $f _ { \\mathrm { t e x } }$ . We can discretize $f _ { \\mathrm { s h a p e } }$ and $f _ { \\mathrm { t e x } }$ to produce the textured mesh above. "
258
+ ],
259
+ "image_footnote": [],
260
+ "bbox": [
261
+ 179,
262
+ 88,
263
+ 815,
264
+ 196
265
+ ],
266
+ "page_idx": 3
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "",
271
+ "bbox": [
272
+ 174,
273
+ 266,
274
+ 825,
275
+ 337
276
+ ],
277
+ "page_idx": 3
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "3.1 Neural Surface Representation ",
282
+ "text_level": 1,
283
+ "bbox": [
284
+ 176,
285
+ 352,
286
+ 428,
287
+ 367
288
+ ],
289
+ "page_idx": 3
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "We represent object shape via a deformation of a unit sphere. Previous works (Kanazawa et al., 2018; Goel et al., 2020) have generally modeled such deformations explicitly: the unit sphere is discretized at some resolution as a 3D mesh with $V$ vertices. Predicting the shape deformation thus amounts to predicting vertex offsets $\\delta \\in \\mathbb { R } ^ { V \\times 3 }$ . Such explicit discrete representations have several drawbacks. First, they can be computationally expensive for dense meshes with fine details. Second, they lack useful spatial inductive biases as the vertex locations are predicted independently. Finally, the learned deformation model is fixed to a specific level of discretization, making it non-trivial, for instance, to allow for more resolution as needed in regions with richer detail. These limitations also extend to texture parametrization commonly used for such discrete mesh representations—using either per-vertex or per-face texture samples (Kato et al., 2018), or fixed resolution texture map, limits the ability to capture finer details. ",
294
+ "bbox": [
295
+ 173,
296
+ 377,
297
+ 826,
298
+ 530
299
+ ],
300
+ "page_idx": 3
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "Inspired by Groueix et al. (2018); Tulsiani et al. (2020), we address these challenges by adopting a continuous surface representation via a neural network. We illustrate this representation in Fig. 2. For any point $u$ on the surface of a unit sphere $\\mathbb { S } ^ { 2 }$ , we represent its 3D deformation $x \\in \\mathbb { R } ^ { 3 }$ using the mapping $f _ { \\mathrm { s h a p e } } ( u ) = x$ where $f _ { \\mathrm { s h a p e } }$ is parameterized as a multi-layer perceptron. This network therefore induces a deformation field over the surface of the unit sphere, and this deformed surface serves as our shape representation. We represent the surface texture in a similar manner–as a neural vector field over the surface of the sphere: $f _ { \\mathrm { t e x } } ( u ) = t \\in \\mathbb { R } ^ { 3 }$ . This surface texture can be interpreted as an implicit UV texture map. ",
305
+ "bbox": [
306
+ 174,
307
+ 536,
308
+ 614,
309
+ 689
310
+ ],
311
+ "page_idx": 3
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "3.2 Modeling Illumination and Specular Rendering ",
316
+ "text_level": 1,
317
+ "bbox": [
318
+ 173,
319
+ 704,
320
+ 545,
321
+ 719
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "Surface Rendering. The surface geometry and texture are not sufficient to infer appearance of the object e.g. a uniformly red car may appear darker on one side, and lighter on the other depending on the direction of incident light. In addition, depending on viewing direction and material properties, one may observe different appearance for the same 3D point e.g. shiny highlight from certain viewpoints. More formally, assuming th surface does not emit light, the outgoing radiance $L _ { o }$ in direction $v$ from a surface point $x$ can described by the rendering equation (Kajiya, 1986; Immel et al., 1986): ",
328
+ "bbox": [
329
+ 173,
330
+ 729,
331
+ 614,
332
+ 799
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "image",
338
+ "img_path": "images/579e40077d1a001d0db4e32d994ba84886d4dcf33895561880ac1d2669c002bb.jpg",
339
+ "image_caption": [
340
+ "Figure 3: Notation and convention for viewpoint and illumination parameterization. The camera at $c$ is looking at point $x$ on the surface $S$ . v denotes the direction of the camera w.r.t $_ x$ , and $n$ is the normal of $S$ at $x$ . $\\Omega$ denotes the unit hemisphere centered about $n$ . We compute the light arriving in the direction of every $\\omega \\in \\Omega$ , and $r$ is the reflection of $w$ about $_ n$ . "
341
+ ],
342
+ "image_footnote": [],
343
+ "bbox": [
344
+ 635,
345
+ 531,
346
+ 820,
347
+ 626
348
+ ],
349
+ "page_idx": 3
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "",
354
+ "bbox": [
355
+ 171,
356
+ 799,
357
+ 799,
358
+ 840
359
+ ],
360
+ "page_idx": 3
361
+ },
362
+ {
363
+ "type": "equation",
364
+ "img_path": "images/4cbd127e4f6174e1a6e12681083597e6ea5629c02e441ff0b2bb189b079c138e.jpg",
365
+ "text": "$$\nL _ { o } ( x , v ) = \\int _ { \\Omega } f _ { r } ( x , v , \\omega ) L _ { i } ( x , \\omega ) ( \\omega \\cdot n ) d \\omega\n$$",
366
+ "text_format": "latex",
367
+ "bbox": [
368
+ 351,
369
+ 845,
370
+ 647,
371
+ 878
372
+ ],
373
+ "page_idx": 3
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "where $\\Omega$ is the unit hemisphere centered at surface normal $n$ , and $\\omega$ denotes the negative direction of incoming light. $f _ { r } ( x , v , \\omega )$ is the bidirectional reflectance function (BRDF) which captures material properties (e.g. color and shininess) of surface $S$ at $x$ , and $L _ { i } ( x , \\omega )$ is the radiance coming toward $x$ from $\\omega$ (Refer to Fig. 3). Intuitively, this integral computes the total effect of the reflection of every possible light ray $\\omega$ hitting $x$ bouncing in the direction $v$ . ",
378
+ "bbox": [
379
+ 173,
380
+ 883,
381
+ 823,
382
+ 911
383
+ ],
384
+ "page_idx": 3
385
+ },
386
+ {
387
+ "type": "image",
388
+ "img_path": "images/72ee7ce46dee6ce1529aee72e4bb6d54253acdd7e0a3eadbd62c7dc07ded2694.jpg",
389
+ "image_caption": [
390
+ "Figure 4: Components of learned illumination model. Given a query camera viewpoint (illustrated via the reference image $I$ ), we recover the radiance output $L _ { o }$ , computed using Phong shading (Phong, 1975). Here, we show the full decomposition of learned components. From the environment map $f _ { \\mathrm { e n v } }$ and normals $n$ , we compute diffuse $\\left( I _ { \\mathrm { d i f f u s e } } \\right)$ and specular lighting $( I _ { \\mathrm { s p e c u l a r } } )$ . The texture and diffuse lighting form the view-independent component (“View Indep.\") and the specular lighting (weighted by the specular coefficient $k _ { s }$ ) forms the view-dependent component of the radiance. Altogether, the output radiance $L _ { o } = T \\odot I _ { \\mathrm { d i f f u s e } } + k _ { s } I _ { \\mathrm { s p e c u l a r i t y } }$ (4). We also visualize the radiance using the mean texture, which is used to help learn plausible illumination. In the yellow box, we visualize the effects of the two specularity parameters. The shininess $\\alpha$ controls the mirror-ness/roughness of the surface. The specular coefficient $k _ { \\mathrm { s } }$ controls the intensity of the specular highlights. "
391
+ ],
392
+ "image_footnote": [],
393
+ "bbox": [
394
+ 183,
395
+ 93,
396
+ 816,
397
+ 275
398
+ ],
399
+ "page_idx": 4
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "",
404
+ "bbox": [
405
+ 174,
406
+ 421,
407
+ 825,
408
+ 464
409
+ ],
410
+ "page_idx": 4
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "We thus need to infer the environment lighting and surface material properties to allow realistic renderings. However, learning arbitrary lighting $L _ { i }$ or reflection models $f _ { r }$ is infeasible given sparse views, and we need to further constrain these to allow learning. Inspired by concurrent work (Wu et al., 2021) that demonstrated its efficacy when rendering rotationally symmetric objects, we leverage the Phong reflection model (Phong, 1975) with the lighting represented as a neural environment map. ",
415
+ "bbox": [
416
+ 173,
417
+ 470,
418
+ 825,
419
+ 540
420
+ ],
421
+ "page_idx": 4
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "Neural Environment Map. An environment map intuitively corresponds to the assumption that all the light sources are infinitely far away. This allows a simplified model of illumination, where the incoming radiance only depends on the direction $\\omega$ and is independent of the position $x$ i.e. $L _ { i } ( x , \\omega ) \\equiv \\mathrm { { \\bar { I } } } _ { \\omega }$ . We implement this as a neural spherical environment map $f _ { \\mathrm { e n v } }$ which learns to predict the incoming radiance for any query direction $L _ { i } ( x , \\omega ) \\equiv I _ { \\omega } = f _ { \\mathrm { e n v } } ( { \\bar { \\omega } } )$ . Note that there is a fundamental ambiguity between material properties and illumination, e.g. a car that appears red could be a white car under red illumination, or a red car under white illumination. To avoid this, we follow Wu et al. (2021), and further constrain the environment illumination to be grayscale, i.e. $f _ { \\mathrm { e n v } } ( \\omega ) \\in \\mathbb { R }$ . ",
426
+ "bbox": [
427
+ 173,
428
+ 554,
429
+ 826,
430
+ 666
431
+ ],
432
+ "page_idx": 4
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "Appearance under Phong Reflection. Instead of allowing an arbitrary BRDF $f _ { r }$ , the Phong reflection model decomposes the outgoing radiance from point $x$ in direction $v$ into the diffuse and specular components. The view-independent portion of the illumination is modeled by the diffuse component: ",
437
+ "bbox": [
438
+ 174,
439
+ 680,
440
+ 825,
441
+ 734
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "equation",
447
+ "img_path": "images/5ad9d45f1cd4aae9d3c5beed713e2ac44db6a5d4518d38dcc1e4d5f9db039c79.jpg",
448
+ "text": "$$\nI _ { \\mathrm { d i f f u s e } } ( x ) = \\sum _ { \\omega \\in \\Omega } ( \\omega \\cdot n ) I _ { \\omega } ,\n$$",
449
+ "text_format": "latex",
450
+ "bbox": [
451
+ 408,
452
+ 733,
453
+ 588,
454
+ 767
455
+ ],
456
+ "page_idx": 4
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "while the view-dependent portion of the illumination is modeled by the specular component: ",
461
+ "bbox": [
462
+ 171,
463
+ 770,
464
+ 776,
465
+ 785
466
+ ],
467
+ "page_idx": 4
468
+ },
469
+ {
470
+ "type": "equation",
471
+ "img_path": "images/19facc3ebba98978671e2bf891670f7e65d31c4b966e499d7e20ea133af16410.jpg",
472
+ "text": "$$\nI _ { \\mathrm { s p e c u l a r } } ( x , v ) = \\sum _ { \\omega \\in \\Omega } ( \\boldsymbol { r } _ { \\omega , n } \\cdot \\boldsymbol { v } ) ^ { \\alpha } I _ { \\omega } ,\n$$",
473
+ "text_format": "latex",
474
+ "bbox": [
475
+ 385,
476
+ 791,
477
+ 612,
478
+ 825
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "where $r _ { \\omega , n } = 2 ( \\omega \\cdot n ) n - \\omega$ is the reflection of $\\omega$ about the normal $n$ . The shininess coefficient $\\alpha \\in ( 0 , \\infty )$ is a property of the surface material and controls the “mirror-ness\" of the surface. If $\\alpha$ is high, the specular highlight will only be visible if $v$ aligns closely with $r _ { \\omega }$ . Altogether, we compute the radiance of $x$ in direction $v$ as: ",
485
+ "bbox": [
486
+ 174,
487
+ 832,
488
+ 823,
489
+ 888
490
+ ],
491
+ "page_idx": 4
492
+ },
493
+ {
494
+ "type": "equation",
495
+ "img_path": "images/f057862f970175c037fac5ff36498c33baf26fe1d3e6ae7cc64217106ee68a11.jpg",
496
+ "text": "$$\nL _ { o } ( x , v ) = T ( x ) \\cdot I _ { \\mathrm { d i f f u s e } } ( x ) + k _ { s } \\cdot I _ { \\mathrm { s p e c u l a r } } ( x , v )\n$$",
497
+ "text_format": "latex",
498
+ "bbox": [
499
+ 339,
500
+ 895,
501
+ 658,
502
+ 912
503
+ ],
504
+ "page_idx": 4
505
+ },
506
+ {
507
+ "type": "image",
508
+ "img_path": "images/825ea78697593d2e91e25acde1e2f08288d7811064ae4dc3c79b36f8b49f642e.jpg",
509
+ "image_caption": [
510
+ "Figure 5: Qualitative results on various household objects. We demonstrate the versatility of our approach on an espresso machine, a bottle of ketchup, a game controller, and a fire hydrant. Each instance has 7-10 input views. We find that a coarse, cuboid mesh is sufficient as an initialization to learn detailed shape and texture. We initialize the camera poses by hand, roughly binning in increments of 45 degrees azimuth. [Video] "
511
+ ],
512
+ "image_footnote": [],
513
+ "bbox": [
514
+ 176,
515
+ 84,
516
+ 818,
517
+ 375
518
+ ],
519
+ "page_idx": 5
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "where the specularity coefficient $k _ { \\mathrm { s } }$ is another surface material property that controls the intensity of the specular highlight. $T ( x )$ is the texture value at $x$ computed by $f _ { \\mathrm { t e x } }$ . For the sake of simplicity, $\\alpha$ and $k _ { s }$ are shared across the entire instance. See Fig. 4 for a full decomposition of these components. ",
524
+ "bbox": [
525
+ 174,
526
+ 455,
527
+ 826,
528
+ 498
529
+ ],
530
+ "page_idx": 5
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "3.3 Learning NeRS in the Wild ",
535
+ "text_level": 1,
536
+ "bbox": [
537
+ 176,
538
+ 515,
539
+ 401,
540
+ 530
541
+ ],
542
+ "page_idx": 5
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "Given a sparse set of images in-the-wild, our approach aims to infer a NeRS representation, which when rendered, matches the available input. Concretely, our method takes as input $N$ (typically 8) images of the same instance $\\{ I _ { i } \\} _ { i = 1 } ^ { N }$ , noisy camera rotations $\\{ R _ { i } \\} _ { i = 1 } ^ { N }$ , and a category-specific mesh initialization $\\mathcal { M }$ . Using these, we aim to optimize full perspective cameras $\\{ \\Pi \\} _ { i = 1 } ^ { N }$ as well as the neural surface shape $f _ { \\mathrm { s h a p e } }$ , surface texture $f _ { \\mathrm { t e x t } }$ , and environment map $f _ { \\mathrm { e n v } }$ . In addition, we also recover the material properties of the object, parametrized by a specularity coefficient $k _ { s }$ and shininess coefficient $\\alpha$ . ",
547
+ "bbox": [
548
+ 173,
549
+ 540,
550
+ 825,
551
+ 640
552
+ ],
553
+ "page_idx": 5
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "Initialization. Note that both the camera poses and mesh initialization are only required to be coarsely accurate. We use an off-the-shelf approach (Xiao et al., 2019) to predict camera rotations, and we find that a cuboid is sufficient as an initialization for several instances (See Fig. 5). We use off-the-shelf approaches (Rother et al., 2004; Kirillov et al., 2020) to compute masks $\\{ M _ { i } \\} _ { i = 1 } ^ { N }$ . We assume that all images were taken with the same camera intrinsics. We initialize the shared global focal length $f$ to correspond to a field of view of 60 degrees, and set the principal point at center of each image. We initialize the camera pose with the noisy initial rotations $R _ { i }$ and a translation $t _ { i }$ such that the object is fully in view. We pre-train $f _ { \\mathrm { s h a p e } }$ to output the template mesh $\\mathcal { M }$ . ",
558
+ "bbox": [
559
+ 173,
560
+ 645,
561
+ 825,
562
+ 757
563
+ ],
564
+ "page_idx": 5
565
+ },
566
+ {
567
+ "type": "text",
568
+ "text": "Rendering. To render an image, NeRS first discretizes the neural shape model $f _ { \\mathrm { s h a p e } } ( u )$ over spherical coordinates $u$ to construct an explicit triangulated surface mesh. This triangulated mesh and camera $\\Pi _ { i }$ are fed into PyTorch3D’s differentiable renderer (Ravi et al., 2020) to obtain per-pixel (continuous) spherical coordinates and associated surface properties: ",
569
+ "bbox": [
570
+ 174,
571
+ 762,
572
+ 825,
573
+ 819
574
+ ],
575
+ "page_idx": 5
576
+ },
577
+ {
578
+ "type": "equation",
579
+ "img_path": "images/2b77aa1c50f087a8919fcaa58cdafbd247c8f393993b57e979e39d3db08beb31.jpg",
580
+ "text": "$$\n[ U V , N , \\hat { M } _ { i } ] = \\mathrm { R a s t e r i z e } ( \\pi _ { i } , f _ { \\mathrm { s h a p e } } )\n$$",
581
+ "text_format": "latex",
582
+ "bbox": [
583
+ 380,
584
+ 825,
585
+ 619,
586
+ 844
587
+ ],
588
+ "page_idx": 5
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "where $U V [ p ]$ , $N [ p ]$ , and $\\hat { M } [ p ]$ are (spherical) uv-coordinates, normals, and binary foregroundbackground labels corresponding to each image pixel $p$ . Together with the environment map $f _ { \\mathrm { e n v } }$ and specular material parameters $( \\alpha , k _ { s } )$ , these quantities are sufficient to compute the outgoing radiance at each pixel $p$ under camera viewpoint $\\Pi _ { i }$ using (4). In particular, denoting by $v ( \\Pi , p )$ the viewing direction for pixel $p$ under camera $\\Pi$ , and using $u \\equiv U V [ p ] , n \\equiv N [ p ]$ for notational brevity, the intensity at pixel $p$ can be computed as: ",
593
+ "bbox": [
594
+ 174,
595
+ 854,
596
+ 825,
597
+ 912
598
+ ],
599
+ "page_idx": 5
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "",
604
+ "bbox": [
605
+ 173,
606
+ 90,
607
+ 825,
608
+ 119
609
+ ],
610
+ "page_idx": 6
611
+ },
612
+ {
613
+ "type": "equation",
614
+ "img_path": "images/dec718fadc9f0e8bce8773dd51d291fdfc316dc7545fb6256f225f9b9e422a1b.jpg",
615
+ "text": "$$\n\\hat { I } [ p ] = f _ { \\mathrm { t e x } } ( \\boldsymbol { u } ) \\cdot \\Big ( \\sum _ { \\omega \\in \\Omega } ( \\omega \\cdot \\boldsymbol { n } ) \\ f _ { \\mathrm { e n v } } ( \\omega ) \\Big ) + k _ { s } \\Big ( \\sum _ { \\omega \\in \\Omega } ( r _ { \\omega , n } \\cdot v ( \\Pi , p ) ) ^ { a } \\ f _ { \\mathrm { e n v } } ( \\omega ) \\Big )\n$$",
616
+ "text_format": "latex",
617
+ "bbox": [
618
+ 248,
619
+ 123,
620
+ 748,
621
+ 160
622
+ ],
623
+ "page_idx": 6
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "Image loss. We compute a perceptual loss (Zhang et al., 2018) $L _ { \\mathrm { p e r c e p t u a l } } ( I _ { i } , \\hat { I } _ { i } )$ that compares the distance between the rendered and true image using off-the-shelf VGG deep features. Note that being able to compute a perceptual loss is a significant benefit of surface-based representations over volumetric approaches such as NeRF (Mildenhall et al., 2020), which operate on batches of rays rather than images, due to the computational cost of volumetric rendering. Similar to $\\mathrm { W u }$ et al. (2021), we find that an additional rendering loss using the mean texture (see Fig. 4 and Fig. 8 for examples with details in the supplement) helps learn visually plausible lighting. ",
628
+ "bbox": [
629
+ 173,
630
+ 166,
631
+ 825,
632
+ 265
633
+ ],
634
+ "page_idx": 6
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "Mask Lomask loss $\\begin{array} { r } { L _ { \\mathrm { m a s k } } = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\lVert \\dot { \\lVert { M _ { i } - \\hat { M } _ { i } } \\rVert _ { 2 } ^ { 2 } } } \\end{array}$ ween the rendered and m, distance transform loss $\\begin{array} { r } { L _ { \\mathrm { d t } } = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } D _ { i } \\odot \\hat { M _ { i } } } \\end{array}$ ompute a, and 2D chamfer loss $\\begin{array} { r } { L _ { \\mathrm { c h a m f e r } } = \\frac { 1 } { N } \\sum _ { i = 1 } ^ { N } \\sum _ { p \\in E ( M _ { i } ) } \\operatorname* { m i n } _ { \\hat { p } \\in \\hat { M } _ { i } } \\lVert p - \\hat { p } \\rVert _ { 2 } ^ { 2 } . } \\end{array}$ $D _ { i }$ refers to the Euclidean distance transform of mask $M _ { i }$ , $E ( \\cdot )$ computes the 2D pixel coordinates of the edge of a mask, and $\\hat { p }$ is every pixel coordinate in the predicted silhouette. ",
639
+ "bbox": [
640
+ 173,
641
+ 270,
642
+ 825,
643
+ 349
644
+ ],
645
+ "page_idx": 6
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "Regularization. Finally, to encourage smoother shape whenever possible, we incorporate a mesh regularization loss $L _ { \\mathrm { r e g u l a r i z e } } = L _ { \\mathrm { n o r m a l s } } + L _ { \\mathrm { l a p l a c i a n } }$ consisting of normals consistency and Laplacian smoothing losses (Nealen et al., 2006; Desbrun et al., 1999). Note that such geometry regularization is another benefit of surface representations over volumetric ones. Altogether, we minimize: ",
650
+ "bbox": [
651
+ 174,
652
+ 356,
653
+ 823,
654
+ 411
655
+ ],
656
+ "page_idx": 6
657
+ },
658
+ {
659
+ "type": "equation",
660
+ "img_path": "images/7636df405d33c5f810be3328e3d00cbcb207e6f5f8bf43c018a2329ceb63a526.jpg",
661
+ "text": "$$\nL = \\lambda _ { 1 } L _ { \\mathrm { m a s k } } + \\lambda _ { 2 } L _ { \\mathrm { d t } } + \\lambda _ { 3 } L _ { \\mathrm { c h a m f e r } } + \\lambda _ { 4 } L _ { \\mathrm { p e r c e p t u a l } } + \\lambda _ { 5 } L _ { \\mathrm { r e g u l a r i z e } }\n$$",
662
+ "text_format": "latex",
663
+ "bbox": [
664
+ 284,
665
+ 417,
666
+ 710,
667
+ 434
668
+ ],
669
+ "page_idx": 6
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "w.r.t $\\Pi _ { i } = [ R _ { i } , t _ { i } , f ] , \\alpha , k _ { s }$ , and the weights of $f _ { \\mathrm { s h a p e } }$ , $f _ { \\mathrm { t e x t } }$ , and $f _ { \\mathrm { e n v \\_ m a p } }$ ",
674
+ "bbox": [
675
+ 173,
676
+ 439,
677
+ 640,
678
+ 455
679
+ ],
680
+ "page_idx": 6
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "Optimization. We optimize (7) in a coarse-to-fine fashion, starting with a few parameters and slowly increasing the number of free parameters. We initially optimize (7), w.r.t only the camera parameters $\\Pi _ { i }$ . After convergence, we sequentially optimize $f _ { \\mathrm { s h a p e } }$ , $f _ { \\mathrm { t e x } }$ , and $f _ { \\mathrm { e n v } } / \\alpha / k _ { s }$ . We find it helpful to sample a new set of spherical coordinates $u$ each iteration when rasterizing. This helps propagate gradients over a larger surface and prevent aliasing. With 4 Nvidia 1080TI GPUs, training NeRS requires approximately 30 minutes. Please see Sec. ?? for hyperparameters and additional details. ",
685
+ "bbox": [
686
+ 173,
687
+ 460,
688
+ 825,
689
+ 545
690
+ ],
691
+ "page_idx": 6
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "4 Evaluation ",
696
+ "text_level": 1,
697
+ "bbox": [
698
+ 174,
699
+ 563,
700
+ 297,
701
+ 580
702
+ ],
703
+ "page_idx": 6
704
+ },
705
+ {
706
+ "type": "text",
707
+ "text": "In this section, we demonstrate the versatility of Neural Reflectance Surfaces to recover meaningful shape, texture, and illumination from in-the-wild indoor and outdoor images. ",
708
+ "bbox": [
709
+ 174,
710
+ 593,
711
+ 823,
712
+ 622
713
+ ],
714
+ "page_idx": 6
715
+ },
716
+ {
717
+ "type": "text",
718
+ "text": "Multi-view Marketplace Dataset. To address the shortage of in-the-wild multi-view datasets, we introduce a new dataset, Multi-view Marketplace Cars (MVMC), collected from an online marketplace with thousands of car listings. Each user-submitted listing contains seller images of the same car instance. In total, we curate a subset of size 600 with at least 8 exterior views (averaging 10 exterior images per listing) along with 20 instances for an evaluation set (averaging 9.1 images per listing). We use Xiao et al. (2019) to compute rough camera poses. MVMC contains a large variety of cars under various illumination conditions (e.g. indoors, overcast, sunny, snowy, etc). The filtered dataset with anonymized personally identifiable information (e.g. license plates and phone numbers), masks, initial camera poses, and optimized NeRS cameras will be made available on the project page. ",
719
+ "bbox": [
720
+ 173,
721
+ 627,
722
+ 825,
723
+ 753
724
+ ],
725
+ "page_idx": 6
726
+ },
727
+ {
728
+ "type": "text",
729
+ "text": "Novel View Synthesis. Traditionally, novel view synthesis requires accurate target cameras to use as queries. Existing approaches use COLMAP (Schönberger and Frahm, 2016) to recover ground truth cameras, but this consistently fails on MVMC due to specularities and limited views. On the other hand, we can use learning-based methods (Xiao et al., 2019) to recover camera poses for both training and test views. However, as these are inherently approximate, this complicates training and evaluation. To account for this, we explore two evaluation protocols. First, to mimic the traditional evaluation setup, we obtain pseudo-ground truth cameras (with manual correction) and freeze them during training and evaluation. While this evaluates the quality of the 3D reconstruction, it does not evaluate the method’s ability to jointly recover cameras. As a more realistic setup for evaluating view synthesis in the wild, we evaluate each method with approximate (off-the-shelf) cameras, while allowing them to be optimized. ",
730
+ "bbox": [
731
+ 173,
732
+ 758,
733
+ 825,
734
+ 911
735
+ ],
736
+ "page_idx": 6
737
+ },
738
+ {
739
+ "type": "image",
740
+ "img_path": "images/1e1f92db63ed1100ce8fad1f44379379f5ce28f037ca461209b2aa57b6e90068.jpg",
741
+ "image_caption": [
742
+ "Figure 6: Qualitative comparison with fixed cameras. We evaluate all baselines on the task of novel view synthesis on Multi-view Marketplace Cars trained and tested with fixed, pseudo-ground truth cameras. One Target View NeRF\\* IDR NeRS (Ours) Target View NeRF\\* IDR NeRS (Oursimage is held out during training. Since we do not have ground truth cameras, we treat the optimized cameras from optimizing over all images as the ground truth cameras. We train a modified version (See Sec. 4) of NeRF (Mildenhall et al., 2020) that is more competitive with sparse views $\\scriptstyle { \\mathrm { ( N e R F } } ^ { * }$ ). We also evaluate against a meta-learned initialization of NeRF with and without finetuning until convergence (Tancik et al., 2021), but found poor results perhaps due to the domain shift from Shapenet cars. Finally, IDR (Yariv et al., 2020) extracts a surface from an SDF representation, but struggles to produce a view-consistent output given limited input views. We find that NeRS synthesizes novel views that are qualitatively closer to the target. The red truck has 16 total views while the blue SUV has 8 total views. [Video] "
743
+ ],
744
+ "image_footnote": [],
745
+ "bbox": [
746
+ 181,
747
+ 90,
748
+ 813,
749
+ 218
750
+ ],
751
+ "page_idx": 7
752
+ },
753
+ {
754
+ "type": "image",
755
+ "img_path": "images/dbbc857116f98818eb9a8b08e43e5af3f74dfe1408f2e27664b8f8a76e41b4dc.jpg",
756
+ "image_caption": [
757
+ "Figure 7: Qualitative results for in-the-wild novel view synthesis. Since off-the-shelf camera poses are only approximate for both training and test images, we allow cameras to be optimized during both training and evaluation (See Tab. 2 and Sec. 4). We find that NeRS generalizes better than the baselines in this unconstrained but more realistic setup. [Video] "
758
+ ],
759
+ "image_footnote": [],
760
+ "bbox": [
761
+ 178,
762
+ 372,
763
+ 820,
764
+ 431
765
+ ],
766
+ "page_idx": 7
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "Novel View Synthesis with Fixed Cameras. In the absence of ground truth cameras, we create pseudo-ground truth by manually correcting cameras recovered by jointly optimizing over all images for each object instance. For each evaluation, we treat one image-camera pair as the target and the remaining pairs for training. We repeat this process for each image in the evaluation set (totaling 182). Unless otherwise noted, qualitative results use approximate cameras and not the pseudo-ground truth. ",
771
+ "bbox": [
772
+ 174,
773
+ 517,
774
+ 825,
775
+ 588
776
+ ],
777
+ "page_idx": 7
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "Novel View Synthesis in the Wild. While the above evaluates the quality of the 3D reconstructions, it is not representative of in-the-wild settings where the initial cameras are unknown/approximate and should be optimized during training. Because even the test camera is approximate, each method is similarly allowed to refine the test camera to better match the test image while keeping the model fixed. Intuitively, this measures the ability of a model to synthesize a target view under some camera. See implementation details in the supplement. ",
782
+ "bbox": [
783
+ 174,
784
+ 593,
785
+ 825,
786
+ 676
787
+ ],
788
+ "page_idx": 7
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "Baselines. We evaluate our approach against Neural Radiance Fields (NeRF) (Mildenhall et al., 2020), which learns a radiance field conditioned on viewpoint and position and renders images using raymarching. We find that the vanilla NeRF struggles in our in-the-wild low-data regime. As such, we make a number of changes to make the NeRF baseline (denoted $\\mathrm { N e R F ^ { * } }$ ) as competitive as possible, including a mask loss and a canonical volume. Please see the appendix for full details. We also evaluate a simplified NeRF with a meta-learned initialization for cars from multi-view images (Tancik et al., 2021), denoted as MetaNeRF. MetaNeRF meta-learns an initialization such that with just a few gradient steps, it can learn a NeRF model. This allows the model to learn a data-driven prior over the shape of cars. Note that MetaNeRF is trained on ShapeNet (Chang et al., 2015) and thus has seen more data than the other test-time-optimization approaches. We find that the default number of gradient steps was insufficient for MetaNeRF to converge on images from MVMC, so we also evaluate MetaNeRF-ft, which is finetuned until convergence. Finally, we evaluate IDR (Yariv et al., 2020), which represents geometry by extracting a surface from a signed distance field. IDR learns a neural renderer conditioned on the camera direction, position, and normal of the surface. ",
793
+ "bbox": [
794
+ 173,
795
+ 683,
796
+ 825,
797
+ 876
798
+ ],
799
+ "page_idx": 7
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "Metrics. We evaluate all approaches using the traditional image similarity metrics Mean-Square Error (MSE), Peak Signal-to-Noise Ratio (PSNR), and Structural Similarity Index Measure (SSIM). ",
804
+ "bbox": [
805
+ 176,
806
+ 883,
807
+ 823,
808
+ 911
809
+ ],
810
+ "page_idx": 7
811
+ },
812
+ {
813
+ "type": "image",
814
+ "img_path": "images/280a359ebf43a041ab6cf619ba14bec677b346d8641cd63350c9a91426643746.jpg",
815
+ "image_caption": [
816
+ "Figure 8: Qualitative results on our in-the-wild Multi-view Marketplace Cars dataset. Here we visualize the NeRS outputs as well as the illumination of the mean texture on 3 of listings from the MVMC dataset. We find that NeRS recovers detailed textures and plausible illumination. Each instance has 8 input views. [Video] "
817
+ ],
818
+ "image_footnote": [],
819
+ "bbox": [
820
+ 178,
821
+ 87,
822
+ 816,
823
+ 253
824
+ ],
825
+ "page_idx": 8
826
+ },
827
+ {
828
+ "type": "table",
829
+ "img_path": "images/e69f3066f50c3efa78708dfc9793bebce5cc9c523d392dd4354c28baaba20424.jpg",
830
+ "table_caption": [
831
+ "Table 1: Quantitative evaluation of novel-view synthesis on MVMC using fixed pseudo-ground truth cameras. To evaluate novel view synthesis in a manner consistent with previous works that assume known cameras, we obtain pseudo-ground truth cameras by manually correcting off-the-shelf recovered cameras. We evaluate against a modified NeRF $\\mathrm { ( N e R F ^ { * } ) }$ ), a meta-learned initialization to NeRF with and without finetuning (MetaNeRF), and the volumetric surface-based IDR. NeRS significantly outperforms the baselines on all metrics on the task of novel-view synthesis with fixed cameras. See Fig. 6 for qualitative results. "
832
+ ],
833
+ "table_footnote": [],
834
+ "table_body": "<table><tr><td>Method</td><td>MSE↓</td><td>PSNR ↑</td><td>SSIM↑</td><td>LPIPS ↓</td><td>FID←</td></tr><tr><td>NeRF* (Mildenhall et al., 2020)</td><td>0.0393</td><td>16.0</td><td>0.698</td><td>0.287</td><td>231.7</td></tr><tr><td>MetaNeRF (Tancik et al., 2021)</td><td>0.0755</td><td>11.4</td><td>0.345</td><td>0.666</td><td>394.5</td></tr><tr><td>MetaNeRF-ft (Tancik et al., 2021)</td><td>0.0791</td><td>11.3</td><td>0.500</td><td>0.542</td><td>326.8</td></tr><tr><td>IDR (Yariv et al., 2020)</td><td>0.0698</td><td>13.8</td><td>0.658</td><td>0.328</td><td>190.1</td></tr><tr><td>NeRS (Ours)</td><td>0.0254</td><td>16.5</td><td>0.720</td><td>0.172</td><td>60.9</td></tr></table>",
835
+ "bbox": [
836
+ 225,
837
+ 320,
838
+ 767,
839
+ 412
840
+ ],
841
+ "page_idx": 8
842
+ },
843
+ {
844
+ "type": "table",
845
+ "img_path": "images/855ff8e031c2309095f27cacd52483ed1b3708d4b7f39135036c6d82a46d6d1e.jpg",
846
+ "table_caption": [
847
+ "Table 2: Quantitative evaluation of in-the-wild novel-view synthesis on MVMC. Off-the-shelf cameras estimated for in-the-wild data are inherently erroneous. This means that both training and test cameras are approximate, complicating training and evaluation. To compensate for approximate test cameras, we allow methods to refine the test camera given the test image with the model fixed (see Sec. ?? for details). Intuitively this measures the ability of a method to synthesize a test image under some camera. We evaluate against NeRF and IDR, and find that NeRS outperforms the baselines across all metrics. See Fig. 7 for qualitative results. "
848
+ ],
849
+ "table_footnote": [],
850
+ "table_body": "<table><tr><td>Method</td><td>MSE↓</td><td>PSNR ↑</td><td>SSIM↑</td><td>LPIPS↓</td><td>FID←</td></tr><tr><td>NeRF* (Mildenhall et al., 2020)</td><td>0.0464</td><td>14.7</td><td>0.660</td><td>0.335</td><td>277.9</td></tr><tr><td>IDR (Yariv et al., 2020)</td><td>0.0454</td><td>14.4</td><td>0.685</td><td>0.297</td><td>242.3</td></tr><tr><td>NeRS (Ours)</td><td>0.0338</td><td>15.4</td><td>0.675</td><td>0.221</td><td>92.5</td></tr></table>",
851
+ "bbox": [
852
+ 232,
853
+ 522,
854
+ 761,
855
+ 589
856
+ ],
857
+ "page_idx": 8
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "We also compute the Learned Perceptual Image Patch Similarity (LPIPS) (Zhang et al., 2018) which correlates more strongly with human perceptual distance. Finally, we compute the Fréchet Inception Distance (Heusel et al., 2017) between the novel view renderings and original images as a measure of visual realism. In Tab. 1 and Tab. 2, we find that NeRS significantly outperforms the baselines in all metrics across both the fixed camera and in-the-wild novel-view synthesis evaluations. See Fig. 6 and Fig. 7 for a visual comparison of the methods. ",
862
+ "bbox": [
863
+ 174,
864
+ 710,
865
+ 825,
866
+ 794
867
+ ],
868
+ "page_idx": 8
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "Qualitative Results. In Fig. 8, we show qualitative results on our Multi-view Marketplace Cars dataset. Each car instance has between 8 and 16 views. We visualize the outputs of our reconstruction from 3 novel views. We show the rendering for both the full radiance model and the mean texture. Both of these renderings are used to compute the perceptual loss (See Sec. 3.2). We find that NeRS recovers detailed texture information and plausible illumination parameters. To demonstrate the scalability of our approach, we also evaluate on various household objects in Fig. 5. We find that a coarse, cuboid mesh is sufficient as an initialization to recover detailed shape, texture, and lighting conditions. Please refer to the project webpage for 360 degree visualizations. ",
873
+ "bbox": [
874
+ 174,
875
+ 800,
876
+ 825,
877
+ 911
878
+ ],
879
+ "page_idx": 8
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "5 Discussion ",
884
+ "text_level": 1,
885
+ "bbox": [
886
+ 173,
887
+ 89,
888
+ 294,
889
+ 106
890
+ ],
891
+ "page_idx": 9
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "We present NeRS, an approach for learning neural surface models that capture geometry and surface reflectance. In contrast to volumetric neural rendering, NeRS enforces watertight and closed manifolds. This allows NeRS to model surface-based appearance affects, including view-dependant specularities and normal-dependant diffuse appearance. We demonstrate that such regularized reconstructions allow for learning from sparse in-the-wild multi-view data, enabling reconstruction of objects with diverse material properties across a variety of indoor/outdoor illumination conditions. Further, the recovery of accurate camera poses in the wild (where classic structure-from-motion fails) remains unsolved and serves as a significant bottleneck for all approaches, including ours. We tackle this problem by using realistic but approximate off-the-shelf camera poses and by introducing a new evaluation protocol that accounts for this. We hope NeRS inspires future work that evaluates in the wild and enables the construction of high-quality libraries of real-world geometry, materials, and environments through better neural approximations of shape, reflectance, and illuminants. ",
896
+ "bbox": [
897
+ 174,
898
+ 121,
899
+ 825,
900
+ 286
901
+ ],
902
+ "page_idx": 9
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "Limitations. Though NeRS makes use of factorized models of illumination and material reflectance, there exists some fundamental ambiguities that are difficult from which to recover. For example, it is difficult to distinguish between an image of a gray car under bright illumination and an image of a white car under dark illumination. We visualize such limitations in the supplement. In addition, because the neural shape representation of NeRS is diffeomorphic to a sphere, it cannot model objects of non-genus-zero topologies. ",
907
+ "bbox": [
908
+ 174,
909
+ 292,
910
+ 825,
911
+ 376
912
+ ],
913
+ "page_idx": 9
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "Broader Impacts. NeRS reconstructions could be used to reveal identifiable or proprietary information (e.g., license plates). We made our best effort to blur out all license plates and other personally-identifiable information in the paper and data. ",
918
+ "bbox": [
919
+ 174,
920
+ 382,
921
+ 825,
922
+ 424
923
+ ],
924
+ "page_idx": 9
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "Acknowledgements. We would like to thank Angjoo Kanazawa and Leonid Keselman for useful discussion and Sudeep Dasari and Helen Jiang for helpful feedback on drafts of the manuscript. This work was supported in part by the NSF GFRP (Grant No. DGE1745016), Singapore DSTA, and CMU Argo AI Center for Autonomous Vehicle Research. ",
929
+ "bbox": [
930
+ 174,
931
+ 430,
932
+ 825,
933
+ 486
934
+ ],
935
+ "page_idx": 9
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "References ",
940
+ "text_level": 1,
941
+ "bbox": [
942
+ 174,
943
+ 506,
944
+ 266,
945
+ 522
946
+ ],
947
+ "page_idx": 9
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "Henrik Aanæs, Rasmus Ramsbøl Jensen, George Vogiatzis, Engin Tola, and Anders Bjorholm Dahl. Large-Scale Data for Multiple-View Stereopsis. ICCV, 2016. \nAnand Bhattad, Aysegul Dundar, Guilin Liu, Andrew Tao, and Bryan Catanzaro. View Generalization for Single Image Textured 3D Models. In CVPR, 2021. \nSai Bi, Zexiang Xu, Kalyan Sunkavalli, David Kriegman, and Ravi Ramamoorthi. Deep 3D Capture: Geometry and Reflectance from Sparse Multi-view Images. In CVPR, 2020. \nVolker Blanz and Thomas Vetter. A Morphable Model for the Synthesis of 3D Faces. In SIGGRAPH, 1999. \nMark Boss, Raphael Braun, Varun Jampani, Jonathan T. Barron, Ce Liu, and Hendrik P.A. Lensch. NeRD: Neural Reflectance Decomposition from Image Collections. In ICCV, 2021. \nThomas J Cashman and Andrew W Fitzgibbon. What Shape are Dolphins? Building 3D Morphable Models from 2D Images. TPAMI, 35(1):232–244, 2012. \nAngel 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:1512.03012, 2015. \nSungjoon Choi, Qian-Yi Zhou, Stephen Miller, and Vladlen Koltun. A Large Dataset of Object Scans. arXiv:1602.02481, 2016. \nChristopher 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 ECCV, 2016. \nMathieu Desbrun, Mark Meyer, Peter Schröder, and Alan H Barr. Implicit Fairing of Irregular Meshes using Diffusion and Curvature Flow. In SIGGRAPH, 1999. ",
952
+ "bbox": [
953
+ 171,
954
+ 530,
955
+ 828,
956
+ 912
957
+ ],
958
+ "page_idx": 9
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "James D Foley, Foley Dan Van, Andries Van Dam, Steven K Feiner, John F Hughes, Edward Angel, and J Hughes. Computer Graphics: Principles and Practice, volume 12110. Addison-Wesley Professional, 1996. ",
963
+ "bbox": [
964
+ 173,
965
+ 90,
966
+ 823,
967
+ 133
968
+ ],
969
+ "page_idx": 10
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "Yasutaka Furukawa and Carlos Hernández. Multi-view Stereo: A Tutorial. Foundations and Trends in Computer Graphics and Vision, 9(1-2):1–148, 2015. ",
974
+ "bbox": [
975
+ 173,
976
+ 142,
977
+ 823,
978
+ 171
979
+ ],
980
+ "page_idx": 10
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "Rohit Girdhar, David F Fouhey, Mikel Rodriguez, and Abhinav Gupta. Learning a Predictable and Generative Vector Representation for Objects. In ECCV, 2016. ",
985
+ "bbox": [
986
+ 173,
987
+ 181,
988
+ 823,
989
+ 210
990
+ ],
991
+ "page_idx": 10
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "Georgia Gkioxari, Jitendra Malik, and Justin Johnson. Mesh R-CNN. In ICCV, 2019. ",
996
+ "bbox": [
997
+ 174,
998
+ 218,
999
+ 736,
1000
+ 234
1001
+ ],
1002
+ "page_idx": 10
1003
+ },
1004
+ {
1005
+ "type": "text",
1006
+ "text": "Shubham Goel, Angjoo Kanazawa, , and Jitendra Malik. Shape and Viewpoints without Keypoints. In ECCV, 2020. ",
1007
+ "bbox": [
1008
+ 173,
1009
+ 243,
1010
+ 823,
1011
+ 272
1012
+ ],
1013
+ "page_idx": 10
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "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 CVPR, 2018. ",
1018
+ "bbox": [
1019
+ 174,
1020
+ 281,
1021
+ 823,
1022
+ 311
1023
+ ],
1024
+ "page_idx": 10
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans Trained by a Two Time-scale Update Rule Converge to a Local Nash Equilibrium. In NeurIPS, 2017. ",
1029
+ "bbox": [
1030
+ 173,
1031
+ 319,
1032
+ 823,
1033
+ 363
1034
+ ],
1035
+ "page_idx": 10
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "David S Immel, Michael F Cohen, and Donald P Greenberg. A Radiosity Method for Non-diffuse Environments. In SIGGRAPH, 1986. ",
1040
+ "bbox": [
1041
+ 173,
1042
+ 371,
1043
+ 823,
1044
+ 401
1045
+ ],
1046
+ "page_idx": 10
1047
+ },
1048
+ {
1049
+ "type": "text",
1050
+ "text": "Ajay Jain, Matthew Tancik, and Pieter Abbeel. Putting NeRF on a Diet: Semantically Consistent Few-Shot View Synthesis. In ICCV, 2021. ",
1051
+ "bbox": [
1052
+ 174,
1053
+ 410,
1054
+ 825,
1055
+ 439
1056
+ ],
1057
+ "page_idx": 10
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "James T Kajiya. The Rendering Equation. In SIGGRAPH, 1986. ",
1062
+ "bbox": [
1063
+ 173,
1064
+ 448,
1065
+ 599,
1066
+ 464
1067
+ ],
1068
+ "page_idx": 10
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "Angjoo Kanazawa, Shubham Tulsiani, Alexei A. Efros, and Jitendra Malik. Learning CategorySpecific Mesh Reconstruction from Image Collections. In ECCV, 2018. ",
1073
+ "bbox": [
1074
+ 174,
1075
+ 472,
1076
+ 825,
1077
+ 502
1078
+ ],
1079
+ "page_idx": 10
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "Abhishek Kar, Shubham Tulsiani, Joao Carreira, and Jitendra Malik. Category-specific Object Reconstruction from a Single Image. In CVPR, 2015. ",
1084
+ "bbox": [
1085
+ 176,
1086
+ 511,
1087
+ 823,
1088
+ 540
1089
+ ],
1090
+ "page_idx": 10
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "Hiroharu Kato, Yoshitaka Ushiku, and Tatsuya Harada. Neural 3D Mesh Renderer. In CVPR, 2018. ",
1095
+ "bbox": [
1096
+ 171,
1097
+ 549,
1098
+ 825,
1099
+ 565
1100
+ ],
1101
+ "page_idx": 10
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "Alexander Kirillov, Yuxin Wu, Kaiming He, and Ross Girshick. Pointrend: Image Segmentation as Rendering. In CVPR, 2020. ",
1106
+ "bbox": [
1107
+ 173,
1108
+ 573,
1109
+ 825,
1110
+ 603
1111
+ ],
1112
+ "page_idx": 10
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Arno Knapitsch, Jaesik Park, Qian-Yi Zhou, and Vladlen Koltun. Tanks and Temples: Benchmarking Large-scale Scene Reconstruction. ACM Transactions on Graphics, 36(4):1–13, 2017. ",
1117
+ "bbox": [
1118
+ 173,
1119
+ 611,
1120
+ 825,
1121
+ 642
1122
+ ],
1123
+ "page_idx": 10
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "Samuli Laine, Janne Hellsten, Tero Karras, Yeongho Seol, Jaakko Lehtinen, and Timo Aila. Modular Primitives for High-Performance Differentiable Rendering. ACM Transactions on Graphics, 39(6), 2020. ",
1128
+ "bbox": [
1129
+ 174,
1130
+ 650,
1131
+ 826,
1132
+ 693
1133
+ ],
1134
+ "page_idx": 10
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "text": "Xueting Li, Sifei Liu, Shalini De Mello, Kihwan Kim, Xiaolong Wang, Ming-Hsuan Yang, and Jan Kautz. Online Adaptation for Consistent Mesh Reconstruction in the Wild. In NeurIPS, 2020. ",
1139
+ "bbox": [
1140
+ 169,
1141
+ 702,
1142
+ 825,
1143
+ 732
1144
+ ],
1145
+ "page_idx": 10
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "Chen-Hsuan Lin, Wei-Chiu Ma, Antonio Torralba, and Simon Lucey. BARF: Bundle-Adjusting Neural Radiance Fields. In ICCV, 2021. ",
1150
+ "bbox": [
1151
+ 171,
1152
+ 739,
1153
+ 825,
1154
+ 770
1155
+ ],
1156
+ "page_idx": 10
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "Ricardo Martin-Brualla, Noha Radwan, Mehdi S. M. Sajjadi, Jonathan T. Barron, Alexey Dosovitskiy, and Daniel Duckworth. NeRF in the Wild: Neural Radiance Fields for Unconstrained Photo Collections. In CVPR, 2021. ",
1161
+ "bbox": [
1162
+ 174,
1163
+ 779,
1164
+ 825,
1165
+ 821
1166
+ ],
1167
+ "page_idx": 10
1168
+ },
1169
+ {
1170
+ "type": "text",
1171
+ "text": "Lars Mescheder, Michael Oechsle, Michael Niemeyer, Sebastian Nowozin, and Andreas Geiger. Occupancy Networks: Learning 3D Reconstruction in Function Space. In CVPR, 2019. ",
1172
+ "bbox": [
1173
+ 171,
1174
+ 830,
1175
+ 825,
1176
+ 859
1177
+ ],
1178
+ "page_idx": 10
1179
+ },
1180
+ {
1181
+ "type": "text",
1182
+ "text": "Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik, Jonathan T Barron, Ravi Ramamoorthi, and Ren Ng. NeRF: Representing Scenes as Neural Radiance Fields for View Synthesis. In ECCV, 2020. ",
1183
+ "bbox": [
1184
+ 174,
1185
+ 868,
1186
+ 826,
1187
+ 911
1188
+ ],
1189
+ "page_idx": 10
1190
+ },
1191
+ {
1192
+ "type": "text",
1193
+ "text": "Andrew Nealen, Takeo Igarashi, Olga Sorkine, and Marc Alexa. Laplacian Mesh Optimization. In GRAPHITE, 2006. \nMichael Oechsle, Lars Mescheder, Michael Niemeyer, Thilo Strauss, and Andreas Geiger. Texture Fields: Learning Texture Representations in Function Space. In ICCV, 2019. \nMichael Oechsle, Songyou Peng, and Andreas Geiger. UNISURF: Unifying Neural Implicit Surfaces and Radiance Fields for Multi-View Reconstruction. In ICCV, 2021. \nHyun Oh Song, Yu Xiang, Stefanie Jegelka, and Silvio Savarese. Deep Metric Learning via Lifted Structured Feature Embedding. In CVPR, 2016. \nJeong Joon Park, Peter Florence, Julian Straub, Richard Newcombe, and Steven Lovegrove. DeepSDF: Learning Continuous Signed Distance Functions for Shape Representation. In CVPR, 2019. \nKeunhong Park, Utkarsh Sinha, Jonathan T. Barron, Sofien Bouaziz, Dan B Goldman, Steven M. Seitz, and Ricardo Martin-Brualla. Nerfies: Deformable Neural Radiance Fields. In ICCV, 2021. \nBui Tuong Phong. Illumination for Computer Generated Pictures. Communications of the ACM, 18 (6), 1975. \nAlbert Pumarola, Enric Corona, Gerard Pons-Moll, and Francesc Moreno-Noguer. D-NeRF: Neural Radiance Fields for Dynamic Scenes. In CVPR, 2020. \nNikhila Ravi, Jeremy Reizenstein, David Novotny, Taylor Gordon, Wan-Yen Lo, Justin Johnson, and Georgia Gkioxari. Accelerating 3D Deep Learning with PyTorch3D. arXiv:2007.08501, 2020. \nGernot Riegler and Vladlen Koltun. Free View Synthesis. In ECCV, 2020. \nCarsten Rother, Vladimir Kolmogorov, and Andrew Blake. \"GrabCut\" Interactive Foreground Extraction using Iterated Graph Cuts. ACM Transactions on Graphics, 23(3):309–314, 2004. \nJohannes Lutz Schönberger and Jan-Michael Frahm. Structure-from-Motion Revisited. In CVPR, 2016. \nThomas Schöps, Torsten Sattler, and Marc Pollefeys. BAD SLAM: Bundle Adjusted Direct RGB-D SLAM. In CVPR, 2019. \nNima Sedaghat and Thomas Brox. Unsupervised Generation of a Viewpoint Annotated Car Dataset from Videos. In ICCV, 2015. \nSteven M Seitz, Brian Curless, James Diebel, Daniel Scharstein, and Richard Szeliski. A Comparison and Evaluation of Multi-view Stereo Reconstruction Algorithms. In CVPR, 2006. \nVincent Sitzmann, Justus Thies, Felix Heide, Matthias Nießner, Gordon Wetzstein, and Michael Zollhofer. DeepVoxels: Learning Persistent 3D Feature Embeddings. In CVPR, 2019a. \nVincent Sitzmann, Michael Zollhöfer, and Gordon Wetzstein. Scene Representation Networks: Continuous 3D-Structure-Aware Neural Scene Representations. In NeurIPS, 2019b. \nPratul P Srinivasan, Boyang Deng, Xiuming Zhang, Matthew Tancik, Ben Mildenhall, and Jonathan T Barron. NeRV: Neural Reflectance and Visibility Fields for Relighting and View Synthesis. In CVPR, 2021. \nMatthew Tancik, Ben Mildenhall, Terrance Wang, Divi Schmidt, Pratul P. Srinivasan, Jonathan T. Barron, and Ren Ng. Learned Initializations for Optimizing Coordinate-Based Neural Representations. In CVPR, 2021. \nJustus Thies, Michael Zollhöfer, and Matthias Nießner. Deferred Neural Rendering: Image Synthesis using Neural Textures. ACM Transactions on Graphics, 38(4):1–12, 2019. \nShubham Tulsiani, Tinghui Zhou, Alexei A Efros, and Jitendra Malik. Multi-view Supervision for Single-view Reconstruction via Differentiable Ray Consistency. In CVPR, 2017. \nShubham Tulsiani, Nilesh Kulkarni, and Abhinav Gupta. Implicit Mesh Reconstruction from Unannotated Image Collections. arXiv:2007.08504, 2020. \nPeng Wang, Lingjie Liu, Yuan Liu, Christian Theobalt, Taku Komura, and Wenping Wang. NeuS: Learning Neural Implicit Surfaces by Volume Rendering for Multi-view Reconstruction. In NeurIPS, 2021. \nShangzhe Wu, Ameesh Makadia, Jiajun Wu, Noah Snavely, Richard Tucker, and Angjoo Kanazawa. De-rendering the World’s Revolutionary Artefacts. In CVPR, 2021. \nYang Xiao, Xuchong Qiu, Pierre-Alain Langlois, Mathieu Aubry, and Renaud Marlet. Pose from Shape: Deep Pose Estimation for Arbitrary 3D Objects. In BMVC, 2019. \nXinchen Yan, Jimei Yang, Ersin Yumer, Yijie Guo, and Honglak Lee. Perspective Transformer Nets: Learning Single-view 3D Object Reconstruction without 3D Supervision. In NeurIPS, 2016. \nGengshan Yang, Deqing Sun, Varun Jampani, Daniel Vlasic, Forrester Cole, Huiwen Chang, Deva Ramanan, William T Freeman, and Ce Liu. LASR: Learning Articulated Shape Reconstruction from a Monocular Video. In CVPR, 2021. \nLior Yariv, Yoni Kasten, Dror Moran, Meirav Galun, Matan Atzmon, Basri Ronen, and Yaron Lipman. Multiview Neural Surface Reconstruction by Disentangling Geometry and Appearance. In NeurIPS, 2020. \nLior Yariv, Jiatao Gu, Yoni Kasten, and Yaron Lipman. Volume Rendering of Neural Implicit Surfaces. arXiv:2106.12052, 2021. \nRichard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, 2018. \nXiuming Zhang, Sean Fanello, Yun-Ta Tsai, Tiancheng Sun, Tianfan Xue, Rohit Pandey, Sergio Orts-Escolano, Philip Davidson, Christoph Rhemann, Paul Debevec, et al. Neural Light Transport for Relighting and View Synthesis. ACM Transactions on Graphics, 40(1):1–17, 2021a. \nXiuming Zhang, Pratul P Srinivasan, Boyang Deng, Paul Debevec, William T Freeman, and Jonathan T Barron. NeRFactor: Neural Factorization of Shape and Reflectance Under an Unknown Illumination. In SIGGRAPH Asia, 2021b. ",
1194
+ "bbox": [
1195
+ 171,
1196
+ 51,
1197
+ 828,
1198
+ 916
1199
+ ],
1200
+ "page_idx": 11
1201
+ },
1202
+ {
1203
+ "type": "text",
1204
+ "text": "",
1205
+ "bbox": [
1206
+ 171,
1207
+ 88,
1208
+ 828,
1209
+ 534
1210
+ ],
1211
+ "page_idx": 12
1212
+ }
1213
+ ]
parse/train/MudT1U2eIY/MudT1U2eIY_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/MudT1U2eIY/MudT1U2eIY_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJeXSo09FQ/SJeXSo09FQ.md ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING LOCALIZED GENERATIVE MODELS FOR 3D POINT CLOUDS VIA GRAPH CONVOLUTION
2
+
3
+ Diego Valsesia
4
+ Politecnico di Torino
5
+ Torino, Italy
6
+ diego.valsesia@polito.it
7
+ Giulia Fracastoro
8
+ Politecnico di Torino
9
+ Torino, Italy
10
+ giulia.fracastoro@polito.it
11
+ Enrico Magli
12
+ Politecnico di Torino
13
+ Torino, Italy
14
+ enrico.magli@polito.it
15
+
16
+ # ABSTRACT
17
+
18
+ Point clouds are an important type of geometric data and have widespread use in computer graphics and vision. However, learning representations for point clouds is particularly challenging due to their nature as being an unordered collection of points irregularly distributed in 3D space. Graph convolution, a generalization of the convolution operation for data defined over graphs, has been recently shown to be very successful at extracting localized features from point clouds in supervised or semi-supervised tasks such as classification or segmentation. This paper studies the unsupervised problem of a generative model exploiting graph convolution. We focus on the generator of a GAN and define methods for graph convolution when the graph is not known in advance as it is the very output of the generator. The proposed architecture learns to generate localized features that approximate graph embeddings of the output geometry. We also study the problem of defining an upsampling layer in the graph-convolutional generator, such that it learns to exploit a self-similarity prior on the data distribution to sample more effectively.
19
+
20
+ # 1 INTRODUCTION
21
+
22
+ Convolutional neural networks are at the core of highly successful models in image generation and understanding. This success is due to the ability of the convolution operation to exploit the principles of locality, stationarity and compositionality that hold true for many data of interest. In particular, feature locality and weight sharing across the data domain greatly reduce the number of parameters in the model, simplifying training and countering overfitting. However, while images are defined on an underlying regular grid structure, several other types of data naturally lie on irregular or nonEuclidean domains (Bronstein et al., 2017). Examples include problems in 3D models (Boscaini et al., 2016; Masci et al., 2015), computational biology (Alipanahi et al., 2015; Duvenaud et al., 2015) or social network graphs (Kipf & Welling, 2016). Defining convolutional architectures on these domains is key to exploit useful priors on the data to obtain more powerful representations.
23
+
24
+ Graph convolution is emerging as one of the most successful approaches to deal with data where the irregular domain can be represented as a graph. In this case, the data are defined as vectors on the nodes of a graph. Defining a convolution-like operation for this kind of data is not trivial, as even simple notions such as shifts are undefined. The literature has identified two main approaches to define graph convolution, namely spectral or spatial. In the former case (Henaff et al., 2015; Defferrard et al., 2016; Kipf & Welling, 2016), the convolution operator is defined in the spectral domain through the graph Fourier transform (Shuman et al., 2013). Fast polynomial approximations (Defferrard et al., 2016) exist that allow an efficient implementation of the operation. This spectral approach has been successfully used in semi-supervised classification (Kipf & Welling, 2016) and link prediction (Schlichtkrull et al., 2017). However, the main drawback of these techniques is that the structure of the graph is supposed to be fixed and it is not clear how to handle the case where the graph structure varies. The latter class of methods (Simonovsky & Komodakis, 2017; Wang et al., 2018) defines the convolution operator using a spatial approach by means of local aggregations, i.e., weighted combinations of the vectors restricted to a neighborhood. Since this kind of convolution is defined at a neighborhood level, the operation remains well defined even when the graph varies.
25
+
26
+ Point clouds are a challenging data type due to the irregular positioning of the points and the fact that a point cloud is an unordered set of points, and therefore any permutation of its members, while changing the representation, does not change its semantic meaning. Some works have addressed supervised problems on point clouds such as classification or segmentation, either through voxelization (Maturana & Scherer, 2015b; Wu et al., 2015), where the irregular point structure is approximated with a regular 3D grid, or by networks like PointNet (Qi et al., 2017a;b) that address the problem of permutation invariance by processing each point identically and independently before applying a globally symmetric operation. The most recent approaches (Simonovsky & Komodakis, 2017; Wang et al., 2018) build graphs in the Euclidean space of the point cloud and use graph convolution operations. This approach has shown multiple advantages in i) reducing the degrees of freedom in the learned models by enforcing some kind of weight sharing, ii) extracting localized features that successfully capture dependencies among neighboring points.
27
+
28
+ Generative models are powerful tools in unsupervised learning aiming at capturing the data distribution. However, so far little work has been done on generative models for point clouds. Generative models of point clouds can be useful for many tasks that range from data augmentation to shape completion or inpainting partial data thanks to the features learned by the model. Generative Adversarial Networks (GANs) have been shown on images to provide better approximations of the data distribution than variational autoencoders (VAEs) (Larsen et al., 2016), being able to generate sharper images and to capture semantic properties in their latent space. For this reason, it is interesting to study them for unordered point sets. In the first work on the topic, Achlioptas et al. (2017) studied some GAN architectures to generate point clouds. Such architectures use the PointNet approach to deal with the permutation problem at the discriminator and employ a dense generator. However, this means that they are unable to learn localized features or exploit weight sharing.
29
+
30
+ This paper studies a generative model for point clouds based on graph convolution. In particular, we focus on the GAN generator which is not well explored by the graph convolution literature. This poses a unique challenge: how can one apply a localized operation (the graph convolution) without knowing the domain (the graph) in advance because it is the very output of the generator? We show that the proposed architecture learns domain and features simultaneously and promotes the features to be graph embeddings, i.e. representations in a vector space of the local dependencies between a point and its neighbors. Such localized features learned by the generator provide a flexible and descriptive model. Moreover, we address the problem of upsampling at the generator. While downsampling based on graph coarsening is a staple in (semi-)supervised problems using graph convolution, it is not obvious how to properly upsample the intermediate layers of a graph-convolutional GAN generator. We propose a method exploiting non-local self-similarities in the data distribution.
31
+
32
+ # 2 METHOD
33
+
34
+ # 2.1 GRAPH-CONVOLUTIONAL GAN
35
+
36
+ GANs (Goodfellow et al., 2014) are state-of-the-art generative models composed of a generator and a discriminator network. The generator learns a function mapping a latent vector $\mathbf { z }$ to a sample $\mathbf { x }$ from the data distribution. In the original formulation, the discriminator worked as a classifier trained to separate real samples from generated ones. Recently, the Wasserstein GAN (Arjovsky et al., 2017) addressed the instability and mode collapse issues of the original formulation by modifying the loss function to be a dual formulation of an optimal transport problem using the Wasserstein metric:
37
+
38
+ $$
39
+ \operatorname* { m i n } _ { G } \operatorname* { m a x } _ { \| D \| _ { L } \leq 1 } \mathbb { E } _ { \mathbf { x } \sim p _ { \mathrm { d a t a } } } \left[ D ( \mathbf { x } ) \right] - \mathbb { E } _ { \mathbf { z } \sim p _ { z } } \left[ D ( G ( \mathbf { z } ) ) \right]
40
+ $$
41
+
42
+ with a discriminator $D$ and a generator $G$ . In this paper, we use the Wasserstein GAN with the gradient penalty method (Gulrajani et al., 2017) to enforce the Lipschitz constraint at the discriminator. In the proposed generative model, we use the Edge-Conditioned Convolution (Simonovsky $\&$ Komodakis, 2017) which falls under the category of spatial approaches to graph convolution and is suitable for dealing with multiple arbitrary graphs. Given a layer $l$ with $N ^ { l }$ feature vectors $\mathbf { h } _ { j } ^ { l } \in \mathbb { R } ^ { d ^ { l } }$ of dimensionality $d ^ { l }$ , the convolution yields the feature vectors $\mathbf { h } _ { j } ^ { l + 1 } \in \mathbb { R } ^ { d ^ { l + 1 } }$ of the next layer by performing, for each node $i$ of the graph, a weighted local aggregation of the feature vectors on the neighboring nodes $j \in \mathcal { N } _ { i } ^ { l }$ , where $\mathcal { N } _ { i } ^ { l }$ is the neighborhood of node $i$ . The weights of the local aggregation are defined by a fully-connected network $F ^ { l } : \mathbb { R } ^ { d ^ { l } } \mathbb { R } ^ { d ^ { l } \times d ^ { l + 1 } }$ , which takes as input the difference between the features of two neighboring nodes and outputs the corresponding weight matrix $\Theta ^ { l , j i } = F _ { \mathbf { w } ^ { l } } ^ { l } \left( \mathbf { h } _ { j } ^ { l } - \mathbf { h } _ { i } ^ { l } \right) \in \mathbb { R } ^ { d ^ { l } \times d ^ { l + 1 } }$ . Hence, the convolution operation is defined as:
43
+
44
+ ![](images/21985c85ed6e5733846f5dfedee662fe0d21fe3cba7cf2359a4a90a37d8cbc65.jpg)
45
+ Figure 1: Graph-convolutional generator without upsampling. The feature matrices $\mathbf { H } ^ { l }$ are $N \times d ^ { l }$ being $N$ the number of points in the point cloud and $d ^ { l }$ the number of features at layer $l$ . The graph block computes the adjacency matrix of a $k$ -nn graph using $\ell _ { 2 }$ distances between feature vectors.
46
+
47
+ $$
48
+ \mathbf { h } _ { i } ^ { l + 1 } = \sigma \left( \sum _ { j \in { \cal N } _ { i } ^ { l } } \frac { F _ { \mathbf { w } ^ { l } } ^ { l } \left( \mathbf { h } _ { j } ^ { l } - \mathbf { h } _ { i } ^ { l } \right) \mathbf { h } _ { j } ^ { l } } { | { \cal N } _ { i } ^ { l } | } + \mathbf { h } _ { i } ^ { l } \mathbf { W } ^ { l } + \mathbf { b } _ { } ^ { l } \right) = \sigma \left( \sum _ { j \in { \cal N } _ { i } ^ { l } } \frac { \Theta ^ { l , j i } \mathbf { h } _ { j } ^ { l } } { | { \cal N } _ { i } ^ { l } | } + \underbrace { \mathbf { h } _ { i } ^ { l } \mathbf { W } ^ { l } } _ { \mathrm { n o d e } } + \mathbf { b } _ { } ^ { l } \right)
49
+ $$
50
+
51
+ where $\mathbf { w } ^ { l }$ are the weights parametrizing network $F ^ { l }$ , $\mathbf { W } ^ { l } \in \mathbb { R } ^ { d ^ { l } \times d ^ { l + 1 } }$ is a linear transformation of the node itself, $\mathbf { b } ^ { l }$ a bias, and $\sigma$ a non-linearity. It is important to note that the weights $\Theta ^ { l , i j }$ depend only on the difference between the features of the two nodes. This means that two pairs of nodes that have the same difference will have the same weight $\Theta ^ { l , i j }$ , even if they are in two different regions of the space. This creates weight sharing like in the classical CNNs and represents a strong advantage because it reduces the number of degrees of freedom of the model.
52
+
53
+ # GRAPH-BASED GENERATOR
54
+
55
+ The focus of this paper is to design a GAN generator that uses localized operations in the form of graphs convolutions. Notice that such operations are able to deal with data in the form of unordered sets, such as points clouds, because they are by design invariant to permutations. However, there are some issues peculiar to the generative problem to be addressed. First, while in supervised problems (Simonovsky & Komodakis, 2017; Wang et al., 2018) or in unsupervised settings involving autoencoders (Yang et al., 2018) the point cloud is known in advance, the intermediate layers of the GAN generator do not know it in advance as it is the very result of the generation operation. It is therefore not obvious how to define an operation that is localized to neighborhoods of a graph that is not known in advance. The solution to this problem is to exploit the pairwise distances $( \| \mathbf h _ { j } ^ { l - 1 } - \mathbf h _ { i } ^ { l - 1 } \| )$ between node features of the preceding layer to build a $k$ -nearest neighbor graph. Figure 1 shows a block diagram of a graph-based generator where each graph convolution block uses the graph constructed from the input features of the block itself. The intuition behind this solution is that this promotes the features to become graph embeddings, i.e. representations in a high-dimensional metric space of relationships between points. Going through the generator network from the latent space towards the point cloud output, these embeddings are assembled hierarchically and their associated graphs represent better and better approximations of the graph of the output point cloud.
56
+
57
+ According to the definition of graph convolution in (2), the new features of a node are a weighted combination of the features of the node itself and of the neighbors as determined by the graph construction. Notice that this localized approach differs from the one in Achlioptas et al. (2017) where the generator of the r-GAN model is a fully-connected network, therefore unable to provide any localized interpretation of its hidden layers. It also differs from the PointNet (Qi et al., 2017a) and PointNet+ $^ { - + }$ (Qi et al., 2017b) architectures. PointNet processes each point independently with the same weights and then aggregates them using a globally symmetric operation to deal with the permutation invariance problem. PointNet $^ { + + }$ extends this work using some localized operations. However, the key difference with the work in this paper is that PointNet and PointNet+ $^ { \cdot + }$ are not generative models, but are used in supervised problems such as classification or segmentation. Other works explore likelihood-based generative models, typically in the form of variational autoencoders (Fan et al., 2017; Nash & Williams, 2017; Litany et al., 2017). The most similar approach to the method of this paper is the one in Grover et al. (2018), with the key difference being that a distribution over adjacency matrices of graphs is learned using a spectral graph-convolutional VAE.
58
+
59
+ ![](images/f9c32af8e16c62c771a8ed4e102118b7ad9d87f6262c2090e8b96dd5df665fb2.jpg)
60
+ Figure 2: Graph-convolutional generator with upsampling. The feature matrices $\mathbf { H } ^ { l }$ have size $N ^ { l } \times$ $d ^ { l }$ being $N ^ { l }$ the number of points at layer $l$ and $d ^ { l }$ the number of features at layer $l$ . The graph block computes the adjacency matrix of a $k$ -nn graph using $\ell _ { 2 }$ distances between feature vectors. The upsamp block computes $N ^ { l + 1 } - N ^ { l }$ new points and concatenates them to the input ones.
61
+
62
+ # 2.2 UPSAMPLING
63
+
64
+ The previous section presented the basic outline of a graph-based generator in a GAN. However, one evident shortcoming is the fixed number of points throughout the generator, which is determined by the number of output points. Many data of interest typically display some kind of regularity in the form of multi-resolution or other kinds of compositionality whereby points can be predicted from a smaller number of neighboring points. In the case of 2D images, lower resolutions provide a prediction of higher resolutions by supplying the low-frequency content and the upsampling operation is straightforward. In fact, convolutional GANs for image generation are composed of a sequence of upsampling and convolutional layers. Extending upsampling to deal with the generation of sets of points without a total ordering is not a trivial task. Many works have addressed the problem of upsampling 3D point clouds, e.g., by creating grids in the 3D space (Maturana & Scherer, 2015a). Notice, however, that introducing upsampling to interleave the graph-convolutional layers outlined in the previous section is a more complex problem because the high dimensionality of the feature vectors makes the gridding approach unfeasible.
65
+
66
+ If we consider the $l$ -th generator layer, we want to define an upsampling operation that, starting from the graph convolution output Hl ∈ RNl ×dl , generates $N ^ { l }$ new feature vectors $\tilde { \mathbf { H } } ^ { l } \in \mathbb { R } ^ { N ^ { l } \times d ^ { l } }$ . Then, these new feature vectors are concatenated to $\mathbf { H } ^ { l }$ in order to obtain the output $\mathbf { H } ^ { l , \mathrm { u p } } \in \mathbb { R } ^ { 2 N ^ { l } \times d ^ { l } }$ . We propose to define an upsampling operation using local aggregations. In this case, the upsampling operation becomes similar to a graph convolution. Given a feature vector $\mathbf { h } _ { i } ^ { l } \in \mathbb { R } ^ { d ^ { l } }$ , we consider a set of neighbors $\mathcal { N } _ { i } ^ { l }$ and we define the new feature vector $\tilde { \mathbf { h } } _ { i } ^ { l } \in \mathbb { R } ^ { d _ { l } }$ as follows
67
+
68
+ $$
69
+ \tilde { \mathbf { h } } _ { i } ^ { l } = \sigma \left( \sum _ { j \in { \cal N } _ { i } ^ { l } } \frac { \mathrm { d i a g } \left( U _ { \tilde { \mathbf { w } } ^ { l } } ^ { l } \left( \mathbf { h } _ { j } ^ { l } - \mathbf { h } _ { i } ^ { l } \right) \right) \mathbf { h } _ { j } ^ { l } } { | { \cal N } _ { i } ^ { l } | } + \mathbf { h } _ { i } ^ { l } \Gamma ^ { l , i } + \mathbf { b } ^ { l } \right) = \sigma \left( \sum _ { j \in { \cal N } _ { i } ^ { l } } \frac { \boldsymbol \Gamma ^ { l , j i } \mathbf { h } _ { j } ^ { l } } { | { \cal N } _ { i } ^ { l } | } + \mathbf { h } _ { i } ^ { l } \Gamma ^ { l , i } + \mathbf { b } ^ { l } \right)
70
+ $$
71
+
72
+ where $U ^ { l } : \mathbb { R } ^ { d ^ { l } } \mathbb { R } ^ { d ^ { l } }$ is a fully-connected network which given the difference between $\mathbf { h } _ { i } ^ { l }$ and $\mathbf { h } _ { j } ^ { l }$ outputs the weight vector $\gamma ^ { l , i j } \in \mathbb { R } ^ { d ^ { l } }$ , which is used to create the diagonal matrix $\Gamma ^ { l , j i } =$ diag $\left( \gamma ^ { l , j i } \right)$ . $\tilde { \mathbf { w } } ^ { l }$ and $\mathbf { b } ^ { l }$ are model parameters that are updated only during training. It is important to note that, differently from the graph convolution described in 2.1 where $\Theta ^ { l , i j }$ and $\tilde { \mathbf { W } } ^ { l }$ are dense matrices, in this case we use diagonal matrices. This means that during the upsampling operation the local aggregation treats each feature independently. This also reduces the number of parameters.
73
+
74
+ # 2.3 GRAPH EMBEDDING INTERPRETATION
75
+
76
+ Graph embeddings (Goyal & Ferrara, 2017) are representations of graphs in a vector space where a feature vector is associated to each node of the graph. For what concerns this paper we consider the following definition of graph embedding, focused on predicting edges from the feature vectors.
77
+
78
+ Definition 1 Given a graph $\mathcal { G } = ( \nu , \mathcal { E } )$ , a graph embedding is a mapping $f : i \mathbf { h } _ { i } \in \mathbb { R } ^ { d } , \forall i \in \mathcal { V } ,$ such that $d \ll | \nu |$ and the function $f$ is defined such that if we consider two pairs of nodes $( i , j )$ and $( i , k )$ where $( i , j ) \in \mathcal { E }$ and $( i , k ) \notin \mathcal { E }$ then $\| \mathbf { h } _ { i } - \mathbf { h } _ { j } \| < \| \mathbf { h } _ { i } - \mathbf { h } _ { k } \|$ .
79
+
80
+ The graph-convolutional generator presented in this paper can be interpreted as generating graph embeddings of the nearest-neighbor graph of the output point cloud at each hidden layer, thus creating features that are able to capture some properties of the local topology. In order to see why this is the case, we analyze the architecture in Fig. 1 backwards from the output to the input. The final output $\mathbf { x }$ is the result of a graph convolution aggregating features localized to the nearest-neighbor graph computed from the features of the preceding layer. Since the GAN objective is to match the distribution of the output with that of real data, the neighborhoods identified by the last graph must be a good approximation of the neighborhoods in the true data. Therefore, we say that features $\mathbf { H } ^ { L }$ are a graph embedding in the sense that they allow to predict the edges of the output graph from their pairwise distances. Proceeding backwards, there is a hierarchy of graph embeddings as the other graphs are constructed from higher-order features.
81
+
82
+ Table 1: Generator architecture
83
+
84
+ <table><tr><td colspan="2"> No upsampling</td><td colspan="2">Upsampling</td></tr><tr><td>Layer</td><td>Output size</td><td>Layer</td><td>Output size</td></tr><tr><td>Latent</td><td>1×128</td><td>Latent</td><td>1×128</td></tr><tr><td>Dense</td><td>2048×32</td><td>Dense</td><td>128×96</td></tr><tr><td rowspan="2">Gconv</td><td>2048× 32</td><td>Gconv</td><td>128 ×48</td></tr><tr><td></td><td>Upsamp</td><td>256×48</td></tr><tr><td rowspan="2">Gconv</td><td>2048 × 24</td><td>Gconv</td><td>256× 32</td></tr><tr><td></td><td>Upsamp</td><td>512 × 32</td></tr><tr><td rowspan="2">Gconv</td><td>2048 × 16</td><td>Gconv</td><td>512 ×16</td></tr><tr><td></td><td>Upsamp</td><td>1024 × 16</td></tr><tr><td rowspan="2">Gconv</td><td>2048×8</td><td>Gconv</td><td>1024×8</td></tr><tr><td>2048×3</td><td>Upsamp Gconv</td><td>2048×8 2048×3</td></tr></table>
85
+
86
+ Notice that the upsampling operation in the architecture of Fig. 2 affects this chain of embeddings by introducing new points. While the graph convolution operation promotes the features of all the points after upsampling to be graph embeddings, the upsampling operation affects which points are generated. In the experiments we show that the upsampling method approximately maintains the neighborhood shape but copies it elsewhere in the point cloud. This suggests a generation mechanism exploiting self-similarities between the features of the point cloud at different locations.
87
+
88
+ # 3 EXPERIMENTS
89
+
90
+ We tested the proposed architecture by using three classes of point clouds taken from the ShapeNet repository (Chang et al., 2015): “chair”, “airplane” and “sofa”. A class-specific model is trained for the desired class of point clouds. Since the focus of this paper is the features learned by the generator, the architecture for the discriminator is the same as the one of the r-GAN in Achlioptas et al. (2017), with 4 layers with weights shared across points (number of output features: 64, 128, 256, 512) followed by a global maxpool and by 3 dense layers. The generator architecture is reported in Table 1. The graph is built by selecting the 20 nearest neighbors in terms of Euclidean distance in the feature space. We use Leaky ReLUs as nonlinearities and RMSProp as optimization method with a learning rate equal to $1 0 ^ { - 4 }$ for both generator and discriminator. Batch normalization follows every graph convolution. The gradient penalty parameter of the WGAN is 1 and the discriminator is optimized for 5 iterations for each generator step. The models have been trained for 1000 epochs. For the “chair” class this required about 5 days without upsampling and 4 days with upsampling.
91
+
92
+ # 3.1 GENERATED POINT CLOUD ASSESSMENT
93
+
94
+ In this section we perform qualitative and quantitative comparisons with the generated point clouds.
95
+
96
+ # VISUAL RESULTS
97
+
98
+ We first visually inspect the generated point clouds from the classes “chair” and “airplane”, as shown in Fig. 3. The results are convincing from a visual standpoint and the variety of the generated objects is high, suggesting no mode collapse in the training process. The distribution of points on the object is quite uniform, especially for the method with upsampling.
99
+
100
+ # COMPARISONS WITH STATE-OF-THE-ART
101
+
102
+ To the best of our knowledge this is the first work addressing GANs for point clouds learning localized features. We compare the proposed GAN for point cloud generation with other GANs able to deal with unordered sets of points. In particular, the “r-GAN-dense” architecture in Achlioptas et al. (2017) has a dense generator, which is unable to generate localized representations because there is no mapping between points and feature vectors. As an additional baseline variant, dubbed “r-GANconv”, we study the use of a generator having as many feature vectors as the points in the point cloud and using a size-1 convolution across the points. Notice that the graph convolution we use can be seen as a generalization of this model, aggregating the features of neighboring points instead of processing each point independently. We point out that we cannot compare the proposed method in a fair way with the variational autoencoders mentioned in Sec. 2.1: Fan et al. (2017) generate point clouds conditioned on an input image; Nash & Williams (2017) use object segmentation labels to generate point clouds by parts; Litany et al. (2017) focus on generating vertices on meshes with a fixed and given topology.
103
+
104
+ ![](images/d4226de86963345bdffe5b3214801e54d87c2d39be47d85c002fd6619b1c94ea.jpg)
105
+ Figure 4: Generated point clouds from different methods
106
+
107
+ In order to perform a quantitative evaluation of the generated point clouds we use the evaluation metrics proposed in Achlioptas et al. (2017), employing three different metrics to compare a set of generated samples with the test set. The first one is the Jensen-Shannon divergence (JSD) between marginal distributions defined in the 3D space. Then, we also evaluate the coverage (COV) and the minimum matching distance (MMD), as defined in Achlioptas et al. (2017), using two different point-set distances, the earth mover’s distance (EMD) and the Chamfer distance (CD). Table 2 shows the obtained results. As can be seen, the proposed methods achieve better values for the metrics under consideration. In particular, the method with upsampling operations is consistently the better. Notice that Achlioptas et al. (2017) report that the Chamfer distance is often unreliable as it fails to penalize non-uniform distributions of points. Fig. 4 visually shows that the proposed methods generate point clouds with better-distributed points, confirming the quantitative results. In particular, the r-GAN-dense shows clusters of points, while the r-GAN-conv also exhibits noisy shapes.
108
+
109
+ # 3.2 GENERATOR FEATURE ANALYSIS
110
+
111
+ In this section we quantitatively study the properties of the features in the layers of the generator.
112
+
113
+ Table 2: Quantitative comparisons
114
+
115
+ <table><tr><td>Class</td><td>Model</td><td>JSD</td><td>MMD-CD</td><td>MMD-EMD</td><td>COV-CD</td><td>COV-EMD</td></tr><tr><td rowspan="4">Chair</td><td>r-GAN-dense</td><td>0.238</td><td>0.0029</td><td>0.136</td><td>33</td><td>13</td></tr><tr><td>r-GAN-conv</td><td>0.517</td><td>0.0030</td><td>0.223</td><td>23</td><td>4</td></tr><tr><td>Prop. (no up.)</td><td>0.119</td><td>0.0033</td><td>0.104</td><td>26</td><td>20</td></tr><tr><td>Prop.(up.)</td><td>0.100</td><td>0.0029</td><td>0.097</td><td>30</td><td>26</td></tr><tr><td rowspan="4">Sofa</td><td>r-GAN-dense</td><td>0.221</td><td>0.0020</td><td>0.146</td><td>32</td><td>12</td></tr><tr><td>r-GAN-conv</td><td>0.293</td><td>0.0025</td><td>0.110</td><td>21</td><td>12</td></tr><tr><td>Prop. (no up.)</td><td>0.095</td><td>0.0024</td><td>0.094</td><td>25</td><td>19</td></tr><tr><td>Prop. (up.)</td><td>0.063</td><td>0.0020</td><td>0.083</td><td>39</td><td>24</td></tr></table>
116
+
117
+ ![](images/43552540b2ec052d5fb1495435556ea28a9c57e36f1e79caf8ee938a6be85bad.jpg)
118
+ Figure 6: No upsampling: $k$ -means clustering of features of intermediate layers, highlighted onto the output point cloud (leftmost: output of dense layer, rightmost: output point cloud). Notice how layer features generate clusters that are progressively more localized in the output geometry.
119
+
120
+ # GRAPH EMBEDDING AND FEATURE RADIUS WITHOUT UPSAMPLING
121
+
122
+ Referring to Table 1, the output of each layer is a matrix where every point is associated to a feature vector. In Sec. 2.3 we claimed that these features learned by the generator are graph embeddings.
123
+
124
+ We tested this hypothesis by measuring how much the adjacency matrix of the final point cloud, constructed as a nearest-neighbor graph in 3D, is successfully predicted by the nearest-neighbor adjacency matrix computed from hidden features. This is shown in Fig.5 which reports the percentage of edges correctly predicted as function of the number of neighbors considered for the graph of the output point cloud and a fixed number of 20 neighbors in the feature space. Notice that layers closer to the output correctly predict a higher percentage of edges and in this sense are better graph embeddings of the output geometry.
125
+
126
+ Fig. 6 shows another experiment concerning localization of features. We applied $k$ -means with 6 clusters to the features of intermediate layers and represented the cluster assignments onto the final point cloud. This experiment confirms that the features are highly localized and progressively more so in the layers closer to the output.
127
+
128
+ ![](images/a454c8b6b299136326fd5f90bcc216199d2f585672137cbdd6a77c374eb3475f.jpg)
129
+ Figure 5: Accuracy of edge prediction from intermediate layer features.
130
+
131
+ We further investigated the effective receptive field of the convolution operation in Fig. 7a. This figure reports histograms of Euclidean distances measured on the output point cloud between neighbors as determined by the nearest neighbor graph in one of the intermediate layers. We can see that layers closer to the output aggregate points which are very close in the final point cloud, thus implementing a highly localized operation. Conversely, layers close to the latent space perform more global operations.
132
+
133
+ # UPSAMPLING RESULTS
134
+
135
+ The main drawback of the model without upsampling is the unnecessarily large number of parameters in the first dense layer. This is solved by the introduction of the upsampling layers which aim at exploiting hierarchical priors to lower the number of parameters by starting with a lower number of points and progressively predicting new points from the generated features.
136
+
137
+ ![](images/34eedda6cfe0dc1af54c70191c4c7b87f99b8b7c7b82cf3f13b6d330c10f0e19.jpg)
138
+ (a) Histogram of intra-neighborhood distances (no upsampling).
139
+
140
+ ![](images/23ae4289f151c26c5a1a6f702fb6081dcedff42001246ef8403cc70032821ec3.jpg)
141
+ (b) Locality of upsampling.
142
+
143
+ ![](images/422342ffd9fdd5a32a1ebb1384ab3e1fa642897cdbfbca08ab13590a64ba0390.jpg)
144
+ Figure 7: (a) Neighborhoods are computed as 20-nearest neighbors in the feature space of each layer. Distances in abscissa are distances in the 3D point cloud. The layer features create neighborhoods that are progressively more localized with respect to the output geometry. (b) Upsampled points are non-local in the output geometry.
145
+ Figure 8: Aggregation upsampling: $k$ -means clustering of features of intermediate layers after upsampling, highlighted onto the output point cloud (leftmost: output of dense layer, rightmost: output point cloud). Black points are not yet generated at the intermediate layers.
146
+
147
+ The proposed upsampling technique based on local aggregations computes a new point as a weighted aggregation of neighboring points. The weights of the aggregation are learned by the network, thus letting the network decide the best method to create a new point from a neighborhood, at the expense of an increased number of total parameters. The experiment in Figs. 7b and 8 shows an interesting behavior. First, the generated points are not close to the original point: Fig. 7b shows the ratio between the generator-generated distance and the average neighborhood distance (neighborhoods are defined in the feature space, while distances are measured as Euclidean distances on the output 3D point cloud) and since it is usually significantly larger than 1, we can conclude that the generated point is far from the original generating neighborhood. Then, the clusters in Fig. 8 show that the points in the first layers are not uniformly distributed over the point cloud, but rather form parts of it. The mechanism learned by the network to generate new points is essentially to apply some mild transformation to a neighborhood and copy it in a different area of the feature space. The generated points will no longer be close to their generators, but the structure of the neighborhood resembles the one of the generating neighborhood. This notion is similar to the second-order proximity in the graph embedding literature (Goyal & Ferrara, 2017) and it seems that this operation is exploiting the inherent self-similarities between the data features at distant points. To validate this hypothesis we measured two relevant quantities. First, we considered a point $i$ , its neighbors $\mathcal { N } _ { i } ^ { l }$ before upsampling, their corresponding points generated by the upsampling operation $\{ i ^ { \mathrm { u p } } , \mathcal { N } _ { i } ^ { l , \mathrm { u p } } \}$ and the neighborhood $\mathcal { N } _ { i ^ { \mathrm { u p } } } ^ { l }$ of point $i ^ { \mathrm { u p } }$ . We measured the average percentage of points in ${ \mathcal { N } } _ { i } ^ { l , \mathrm { u p } }$ that were generated from points in $\mathcal { N } _ { i } ^ { l }$ , i.e. $\vert \mathcal { N } _ { i ^ { \mathrm { u p } } } ^ { l } \cap \mathcal { N } _ { i } ^ { l , \mathrm { u p } } \vert / \vert \mathcal { N } _ { i } ^ { l } \vert$ , as reported in Table 3. The result shows that the neighborhood of a generated point is almost entirely generated by the points that were neighbors of the generator, and that the new points are not neighbors of the original ones. This behavior is consistent over different layers. Then, we measured the Euclidean distances in the feature space between point $i$ and its neighbors $\mathcal { N } _ { i } ^ { l }$ and between point $i ^ { \mathrm { u p } }$ and ${ \mathcal { N } } _ { i } ^ { l , \mathrm { u p } }$ . Table 3 reports the correlation coefficient between those distance vectors, which suggests that the shape of the neighborhood is fairly conserved.
148
+
149
+ Table 3: Upsampling self-similarity
150
+
151
+ <table><tr><td></td><td>upsamp_0</td><td>upsamp_1</td><td>upsamp_2</td><td>upsamp_3</td></tr><tr><td>Percentage of neighbors</td><td>(71.8 ± 7.6) %</td><td>(69.6 ± 2.8) %</td><td>(61.6 ± 3.3) %</td><td>(66.4 ± 3.5) %</td></tr><tr><td>Distance correlation</td><td>0.56 ± 0.15</td><td>0.60 ± 0.03</td><td>0.53 ± 0.03</td><td>0.61 ± 0.04</td></tr></table>
152
+
153
+ # 4 CONCLUSIONS
154
+
155
+ We presented a GAN using graph convolutional layers to generate 3D point clouds. In particular, we showed how constructing nearest neighbor graphs from generator features to implement the graph convolution operation promotes the features to be localized and to approximate a graph embedding of the output geometry. We also proposed an upsampling scheme for the generator that exploits self-similarities in the samples to be generated. The main drawback of the current method is the rather high complexity of the graph convolution operation. Future work will focus on reducing the overall complexity, e.g., in the graph construction operation, and study new upsampling schemes.
156
+
157
+ # 5 ACKNOWLEDGEMENTS
158
+
159
+ The research leading to these results has been partially funded by the SmartData $@$ PoliTO center for Big Data and Machine Learning technologies. The research leading to this publication has received funding from Regione Piemonte under research grant “DISLOMAN: dynamic integrated shopfloor operation management for Industry $4 . 0 ^ { \dag }$ .
160
+
161
+ We thank Nvidia for donating a Quadro P6000 GPU for this work.
162
+
163
+ # REFERENCES
164
+
165
+ Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas Guibas. Representation learning and adversarial generation of 3d point clouds. arXiv preprint arXiv:1707.02392, 2017.
166
+
167
+ Babak Alipanahi, Andrew Delong, Matthew T Weirauch, and Brendan J Frey. Predicting the sequence specificities of dna-and rna-binding proteins by deep learning. Nature biotechnology, 33 (8):831, 2015.
168
+
169
+ Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein GAN. ´ arXiv preprint arXiv:1701.07875, 2017.
170
+
171
+ Davide Boscaini, Jonathan Masci, Emanuele Rodola, and Michael Bronstein. Learning shape cor- \` respondence with anisotropic convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 3189–3197, 2016.
172
+
173
+ Michael M Bronstein, Joan Bruna, Yann LeCun, Arthur Szlam, and Pierre Vandergheynst. Geometric deep learning: going beyond Euclidean data. IEEE Signal Processing Magazine, 34(4):18–42, 2017.
174
+
175
+ 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.
176
+
177
+ Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks ¨ on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, pp. 3844–3852, 2016.
178
+
179
+ David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan´ Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In Advances in neural information processing systems, pp. 2224–2232, 2015.
180
+
181
+ H. Fan, H. Su, and L. Guibas. A point set generation network for 3d object reconstruction from a single image. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2463–2471, July 2017. doi: 10.1109/CVPR.2017.264.
182
+
183
+ 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.
184
+
185
+ Palash Goyal and Emilio Ferrara. Graph embedding techniques, applications, and performance: A survey. arXiv preprint arXiv:1705.02801, 2017.
186
+
187
+ Aditya Grover, Aaron Zweig, and Stefano Ermon. Graphite: Iterative Generative Modeling of Graphs. arXiv preprint arXiv:1803.10459, 2018.
188
+
189
+ Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of Wasserstein GANs. In Advances in Neural Information Processing Systems, pp. 5769–5779, 2017.
190
+
191
+ Mikael Henaff, Joan Bruna, and Yann LeCun. Deep convolutional networks on graph-structured data. arXiv preprint arXiv:1506.05163, 2015.
192
+
193
+ Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
194
+
195
+ Anders Boesen Lindbo Larsen, Sren Kaae Snderby, Hugo Larochelle, and Ole Winther. Autoencoding beyond pixels using a learned similarity metric. In Maria Florina Balcan and Kilian Q. Weinberger (eds.), Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 1558–1566, New York, New York, USA, 20–22 Jun 2016. PMLR.
196
+
197
+ Or Litany, Alexander M. Bronstein, Michael M. Bronstein, and Ameesh Makadia. Deformable shape completion with graph convolutional autoencoders. CoRR, abs/1712.00268, 2017.
198
+
199
+ Jonathan Masci, Davide Boscaini, Michael Bronstein, and Pierre Vandergheynst. Geodesic convolutional neural networks on riemannian manifolds. In Proceedings of the IEEE international conference on computer vision workshops, pp. 37–45, 2015.
200
+
201
+ D. Maturana and S. Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 922–928, Sept 2015a. doi: 10.1109/IROS.2015.7353481.
202
+
203
+ Daniel Maturana and Sebastian Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In Intelligent Robots and Systems (IROS), 2015 IEEE/RSJ International Conference on, pp. 922–928. IEEE, 2015b.
204
+
205
+ Charlie Nash and Chris KI Williams. The shape variational autoencoder: A deep generative model of part-segmented 3d objects. In Computer Graphics Forum, volume 36, pp. 1–12. Wiley Online Library, 2017.
206
+
207
+ Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. Proc. Computer Vision and Pattern Recognition (CVPR), IEEE, 1(2):4, 2017a.
208
+
209
+ Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointne $^ { + + }$ : Deep hierarchical feature learning on point sets in a metric space. In Advances in Neural Information Processing Systems, pp. 5105–5114, 2017b.
210
+
211
+ Michael Schlichtkrull, Thomas N Kipf, Peter Bloem, Rianne van den Berg, Ivan Titov, and Max Welling. Modeling relational data with graph convolutional networks. arXiv preprint arXiv:1703.06103, 2017.
212
+
213
+ David I Shuman, Sunil K Narang, Pascal Frossard, Antonio Ortega, and Pierre Vandergheynst. The emerging field of signal processing on graphs: Extending high-dimensional data analysis to networks and other irregular domains. IEEE Signal Processing Magazine, 30(3):83–98, 2013.
214
+
215
+ Martin Simonovsky and Nikos Komodakis. Dynamic edge-conditioned filters in convolutional neural networks on graphs. In Proc. CVPR, 2017.
216
+
217
+ Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E Sarma, Michael M Bronstein, and Justin M Solomon. Dynamic graph cnn for learning on point clouds. arXiv preprint arXiv:1801.07829, 2018.
218
+
219
+ Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In Pro. Computer Vision and Pattern Recognition (CVPR), pp. 1912–1920, 2015.
220
+
221
+ Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), volume 3, 2018.
222
+
223
+ # 6 APPENDIX
224
+
225
+ <table><tr><td>Class</td><td>Model</td><td>JSD</td><td>MMD-CD</td><td>MMD-EMD</td><td>COV-CD</td><td>COV-EMD</td></tr><tr><td rowspan="4">Chair</td><td>r-GAN-dense</td><td>0.238</td><td>0.0029</td><td>0.136</td><td>33</td><td>13</td></tr><tr><td>r-GAN-conv</td><td>0.517</td><td>0.0030</td><td>0.223</td><td>23</td><td>4</td></tr><tr><td>Prop. (no up.)</td><td>0.119</td><td>0.0033</td><td>0.104</td><td>26</td><td>20</td></tr><tr><td>Prop. (up.)</td><td>0.100</td><td>0.0029</td><td>0.097</td><td>30</td><td>26</td></tr><tr><td rowspan="4">Airplane</td><td>r-GAN-dense</td><td>0.182</td><td>0.0009</td><td>0.094</td><td>31</td><td>9</td></tr><tr><td>r-GAN-conv</td><td>0.350</td><td>0.0008</td><td>0.101</td><td>26</td><td>7</td></tr><tr><td>Prop. (no up.)</td><td>0.164</td><td>0.0010</td><td>0.102</td><td>24</td><td>13</td></tr><tr><td>Prop. (up.)</td><td>0.083</td><td>0.0008</td><td>0.071</td><td>31</td><td>14</td></tr><tr><td rowspan="4">Sofa</td><td>r-GAN-dense</td><td>0.221</td><td>0.0020</td><td>0.146</td><td>32</td><td>12</td></tr><tr><td>r-GAN-conv</td><td>0.293</td><td>0.0025</td><td>0.110</td><td>21</td><td>12</td></tr><tr><td>Prop. (no up.)</td><td>0.095</td><td>0.0024</td><td>0.094</td><td>25</td><td>19</td></tr><tr><td>Prop. (up.)</td><td>0.063</td><td>0.0020</td><td>0.083</td><td>39</td><td>24</td></tr></table>
226
+
227
+ ![](images/838d440b60ae919cbc121b28e00bb503a2be7239f92da9d6c9c2da6cb28cfa43.jpg)
228
+ Figure 9: Generated point clouds for chair class
229
+
230
+ ![](images/e4653c2c37cc8e6d777fa315ff1825b885224eafbdaa1a94ba884b2fb427b34e.jpg)
231
+ Figure 10: Generated point clouds for airplane class
232
+
233
+ ![](images/4a52a434fb70c78008da20c52d73a503dfc41260c8f574dc7ebab88e232a8ead.jpg)
234
+ Figure 11: Generated point clouds for sofa class
parse/train/SJeXSo09FQ/SJeXSo09FQ_content_list.json ADDED
@@ -0,0 +1,1267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEARNING LOCALIZED GENERATIVE MODELS FOR 3D POINT CLOUDS VIA GRAPH CONVOLUTION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Diego Valsesia \nPolitecnico di Torino \nTorino, Italy \ndiego.valsesia@polito.it \nGiulia Fracastoro \nPolitecnico di Torino \nTorino, Italy \ngiulia.fracastoro@polito.it \nEnrico Magli \nPolitecnico di Torino \nTorino, Italy \nenrico.magli@polito.it ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 419,
21
+ 227
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "",
28
+ "bbox": [
29
+ 547,
30
+ 170,
31
+ 813,
32
+ 227
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "",
39
+ "bbox": [
40
+ 184,
41
+ 247,
42
+ 400,
43
+ 304
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "ABSTRACT ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 454,
53
+ 340,
54
+ 544,
55
+ 354
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Point clouds are an important type of geometric data and have widespread use in computer graphics and vision. However, learning representations for point clouds is particularly challenging due to their nature as being an unordered collection of points irregularly distributed in 3D space. Graph convolution, a generalization of the convolution operation for data defined over graphs, has been recently shown to be very successful at extracting localized features from point clouds in supervised or semi-supervised tasks such as classification or segmentation. This paper studies the unsupervised problem of a generative model exploiting graph convolution. We focus on the generator of a GAN and define methods for graph convolution when the graph is not known in advance as it is the very output of the generator. The proposed architecture learns to generate localized features that approximate graph embeddings of the output geometry. We also study the problem of defining an upsampling layer in the graph-convolutional generator, such that it learns to exploit a self-similarity prior on the data distribution to sample more effectively. ",
62
+ "bbox": [
63
+ 233,
64
+ 372,
65
+ 766,
66
+ 566
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 595,
77
+ 336,
78
+ 611
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Convolutional neural networks are at the core of highly successful models in image generation and understanding. This success is due to the ability of the convolution operation to exploit the principles of locality, stationarity and compositionality that hold true for many data of interest. In particular, feature locality and weight sharing across the data domain greatly reduce the number of parameters in the model, simplifying training and countering overfitting. However, while images are defined on an underlying regular grid structure, several other types of data naturally lie on irregular or nonEuclidean domains (Bronstein et al., 2017). Examples include problems in 3D models (Boscaini et al., 2016; Masci et al., 2015), computational biology (Alipanahi et al., 2015; Duvenaud et al., 2015) or social network graphs (Kipf & Welling, 2016). Defining convolutional architectures on these domains is key to exploit useful priors on the data to obtain more powerful representations. ",
85
+ "bbox": [
86
+ 174,
87
+ 627,
88
+ 825,
89
+ 766
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Graph convolution is emerging as one of the most successful approaches to deal with data where the irregular domain can be represented as a graph. In this case, the data are defined as vectors on the nodes of a graph. Defining a convolution-like operation for this kind of data is not trivial, as even simple notions such as shifts are undefined. The literature has identified two main approaches to define graph convolution, namely spectral or spatial. In the former case (Henaff et al., 2015; Defferrard et al., 2016; Kipf & Welling, 2016), the convolution operator is defined in the spectral domain through the graph Fourier transform (Shuman et al., 2013). Fast polynomial approximations (Defferrard et al., 2016) exist that allow an efficient implementation of the operation. This spectral approach has been successfully used in semi-supervised classification (Kipf & Welling, 2016) and link prediction (Schlichtkrull et al., 2017). However, the main drawback of these techniques is that the structure of the graph is supposed to be fixed and it is not clear how to handle the case where the graph structure varies. The latter class of methods (Simonovsky & Komodakis, 2017; Wang et al., 2018) defines the convolution operator using a spatial approach by means of local aggregations, i.e., weighted combinations of the vectors restricted to a neighborhood. Since this kind of convolution is defined at a neighborhood level, the operation remains well defined even when the graph varies. ",
96
+ "bbox": [
97
+ 174,
98
+ 771,
99
+ 825,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 174,
109
+ 103,
110
+ 823,
111
+ 159
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Point clouds are a challenging data type due to the irregular positioning of the points and the fact that a point cloud is an unordered set of points, and therefore any permutation of its members, while changing the representation, does not change its semantic meaning. Some works have addressed supervised problems on point clouds such as classification or segmentation, either through voxelization (Maturana & Scherer, 2015b; Wu et al., 2015), where the irregular point structure is approximated with a regular 3D grid, or by networks like PointNet (Qi et al., 2017a;b) that address the problem of permutation invariance by processing each point identically and independently before applying a globally symmetric operation. The most recent approaches (Simonovsky & Komodakis, 2017; Wang et al., 2018) build graphs in the Euclidean space of the point cloud and use graph convolution operations. This approach has shown multiple advantages in i) reducing the degrees of freedom in the learned models by enforcing some kind of weight sharing, ii) extracting localized features that successfully capture dependencies among neighboring points. ",
118
+ "bbox": [
119
+ 174,
120
+ 164,
121
+ 825,
122
+ 330
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Generative models are powerful tools in unsupervised learning aiming at capturing the data distribution. However, so far little work has been done on generative models for point clouds. Generative models of point clouds can be useful for many tasks that range from data augmentation to shape completion or inpainting partial data thanks to the features learned by the model. Generative Adversarial Networks (GANs) have been shown on images to provide better approximations of the data distribution than variational autoencoders (VAEs) (Larsen et al., 2016), being able to generate sharper images and to capture semantic properties in their latent space. For this reason, it is interesting to study them for unordered point sets. In the first work on the topic, Achlioptas et al. (2017) studied some GAN architectures to generate point clouds. Such architectures use the PointNet approach to deal with the permutation problem at the discriminator and employ a dense generator. However, this means that they are unable to learn localized features or exploit weight sharing. ",
129
+ "bbox": [
130
+ 174,
131
+ 334,
132
+ 825,
133
+ 486
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "This paper studies a generative model for point clouds based on graph convolution. In particular, we focus on the GAN generator which is not well explored by the graph convolution literature. This poses a unique challenge: how can one apply a localized operation (the graph convolution) without knowing the domain (the graph) in advance because it is the very output of the generator? We show that the proposed architecture learns domain and features simultaneously and promotes the features to be graph embeddings, i.e. representations in a vector space of the local dependencies between a point and its neighbors. Such localized features learned by the generator provide a flexible and descriptive model. Moreover, we address the problem of upsampling at the generator. While downsampling based on graph coarsening is a staple in (semi-)supervised problems using graph convolution, it is not obvious how to properly upsample the intermediate layers of a graph-convolutional GAN generator. We propose a method exploiting non-local self-similarities in the data distribution. ",
140
+ "bbox": [
141
+ 174,
142
+ 489,
143
+ 825,
144
+ 642
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "2 METHOD ",
151
+ "text_level": 1,
152
+ "bbox": [
153
+ 174,
154
+ 651,
155
+ 282,
156
+ 666
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "2.1 GRAPH-CONVOLUTIONAL GAN ",
163
+ "text_level": 1,
164
+ "bbox": [
165
+ 176,
166
+ 674,
167
+ 434,
168
+ 688
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "GANs (Goodfellow et al., 2014) are state-of-the-art generative models composed of a generator and a discriminator network. The generator learns a function mapping a latent vector $\\mathbf { z }$ to a sample $\\mathbf { x }$ from the data distribution. In the original formulation, the discriminator worked as a classifier trained to separate real samples from generated ones. Recently, the Wasserstein GAN (Arjovsky et al., 2017) addressed the instability and mode collapse issues of the original formulation by modifying the loss function to be a dual formulation of an optimal transport problem using the Wasserstein metric: ",
175
+ "bbox": [
176
+ 174,
177
+ 694,
178
+ 825,
179
+ 779
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "equation",
185
+ "img_path": "images/9301f6880295549878cd71724664c3ee8aa7407d328653719da04649bb6ea3f2.jpg",
186
+ "text": "$$\n\\operatorname* { m i n } _ { G } \\operatorname* { m a x } _ { \\| D \\| _ { L } \\leq 1 } \\mathbb { E } _ { \\mathbf { x } \\sim p _ { \\mathrm { d a t a } } } \\left[ D ( \\mathbf { x } ) \\right] - \\mathbb { E } _ { \\mathbf { z } \\sim p _ { z } } \\left[ D ( G ( \\mathbf { z } ) ) \\right]\n$$",
187
+ "text_format": "latex",
188
+ "bbox": [
189
+ 333,
190
+ 785,
191
+ 666,
192
+ 810
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "with a discriminator $D$ and a generator $G$ . In this paper, we use the Wasserstein GAN with the gradient penalty method (Gulrajani et al., 2017) to enforce the Lipschitz constraint at the discriminator. In the proposed generative model, we use the Edge-Conditioned Convolution (Simonovsky $\\&$ Komodakis, 2017) which falls under the category of spatial approaches to graph convolution and is suitable for dealing with multiple arbitrary graphs. Given a layer $l$ with $N ^ { l }$ feature vectors $\\mathbf { h } _ { j } ^ { l } \\in \\mathbb { R } ^ { d ^ { l } }$ of dimensionality $d ^ { l }$ , the convolution yields the feature vectors $\\mathbf { h } _ { j } ^ { l + 1 } \\in \\mathbb { R } ^ { d ^ { l + 1 } }$ of the next layer by performing, for each node $i$ of the graph, a weighted local aggregation of the feature vectors on the neighboring nodes $j \\in \\mathcal { N } _ { i } ^ { l }$ , where $\\mathcal { N } _ { i } ^ { l }$ is the neighborhood of node $i$ . The weights of the local aggregation are defined by a fully-connected network $F ^ { l } : \\mathbb { R } ^ { d ^ { l } } \\mathbb { R } ^ { d ^ { l } \\times d ^ { l + 1 } }$ , which takes as input the difference between the features of two neighboring nodes and outputs the corresponding weight matrix $\\Theta ^ { l , j i } = F _ { \\mathbf { w } ^ { l } } ^ { l } \\left( \\mathbf { h } _ { j } ^ { l } - \\mathbf { h } _ { i } ^ { l } \\right) \\in \\mathbb { R } ^ { d ^ { l } \\times d ^ { l + 1 } }$ . Hence, the convolution operation is defined as: ",
199
+ "bbox": [
200
+ 173,
201
+ 818,
202
+ 823,
203
+ 924
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "image",
209
+ "img_path": "images/21985c85ed6e5733846f5dfedee662fe0d21fe3cba7cf2359a4a90a37d8cbc65.jpg",
210
+ "image_caption": [
211
+ "Figure 1: Graph-convolutional generator without upsampling. The feature matrices $\\mathbf { H } ^ { l }$ are $N \\times d ^ { l }$ being $N$ the number of points in the point cloud and $d ^ { l }$ the number of features at layer $l$ . The graph block computes the adjacency matrix of a $k$ -nn graph using $\\ell _ { 2 }$ distances between feature vectors. "
212
+ ],
213
+ "image_footnote": [],
214
+ "bbox": [
215
+ 248,
216
+ 99,
217
+ 746,
218
+ 178
219
+ ],
220
+ "page_idx": 2
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "",
225
+ "bbox": [
226
+ 174,
227
+ 234,
228
+ 825,
229
+ 300
230
+ ],
231
+ "page_idx": 2
232
+ },
233
+ {
234
+ "type": "equation",
235
+ "img_path": "images/035d519a642c0defbfaff5d2afdbe69e6ad9c3672552a2142f2a475e7909f233.jpg",
236
+ "text": "$$\n\\mathbf { h } _ { i } ^ { l + 1 } = \\sigma \\left( \\sum _ { j \\in { \\cal N } _ { i } ^ { l } } \\frac { F _ { \\mathbf { w } ^ { l } } ^ { l } \\left( \\mathbf { h } _ { j } ^ { l } - \\mathbf { h } _ { i } ^ { l } \\right) \\mathbf { h } _ { j } ^ { l } } { | { \\cal N } _ { i } ^ { l } | } + \\mathbf { h } _ { i } ^ { l } \\mathbf { W } ^ { l } + \\mathbf { b } _ { } ^ { l } \\right) = \\sigma \\left( \\sum _ { j \\in { \\cal N } _ { i } ^ { l } } \\frac { \\Theta ^ { l , j i } \\mathbf { h } _ { j } ^ { l } } { | { \\cal N } _ { i } ^ { l } | } + \\underbrace { \\mathbf { h } _ { i } ^ { l } \\mathbf { W } ^ { l } } _ { \\mathrm { n o d e } } + \\mathbf { b } _ { } ^ { l } \\right)\n$$",
237
+ "text_format": "latex",
238
+ "bbox": [
239
+ 199,
240
+ 306,
241
+ 779,
242
+ 353
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "text",
248
+ "text": "where $\\mathbf { w } ^ { l }$ are the weights parametrizing network $F ^ { l }$ , $\\mathbf { W } ^ { l } \\in \\mathbb { R } ^ { d ^ { l } \\times d ^ { l + 1 } }$ is a linear transformation of the node itself, $\\mathbf { b } ^ { l }$ a bias, and $\\sigma$ a non-linearity. It is important to note that the weights $\\Theta ^ { l , i j }$ depend only on the difference between the features of the two nodes. This means that two pairs of nodes that have the same difference will have the same weight $\\Theta ^ { l , i j }$ , even if they are in two different regions of the space. This creates weight sharing like in the classical CNNs and represents a strong advantage because it reduces the number of degrees of freedom of the model. ",
249
+ "bbox": [
250
+ 174,
251
+ 377,
252
+ 825,
253
+ 464
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "GRAPH-BASED GENERATOR ",
260
+ "text_level": 1,
261
+ "bbox": [
262
+ 174,
263
+ 476,
264
+ 367,
265
+ 489
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "The focus of this paper is to design a GAN generator that uses localized operations in the form of graphs convolutions. Notice that such operations are able to deal with data in the form of unordered sets, such as points clouds, because they are by design invariant to permutations. However, there are some issues peculiar to the generative problem to be addressed. First, while in supervised problems (Simonovsky & Komodakis, 2017; Wang et al., 2018) or in unsupervised settings involving autoencoders (Yang et al., 2018) the point cloud is known in advance, the intermediate layers of the GAN generator do not know it in advance as it is the very result of the generation operation. It is therefore not obvious how to define an operation that is localized to neighborhoods of a graph that is not known in advance. The solution to this problem is to exploit the pairwise distances $( \\| \\mathbf h _ { j } ^ { l - 1 } - \\mathbf h _ { i } ^ { l - 1 } \\| )$ between node features of the preceding layer to build a $k$ -nearest neighbor graph. Figure 1 shows a block diagram of a graph-based generator where each graph convolution block uses the graph constructed from the input features of the block itself. The intuition behind this solution is that this promotes the features to become graph embeddings, i.e. representations in a high-dimensional metric space of relationships between points. Going through the generator network from the latent space towards the point cloud output, these embeddings are assembled hierarchically and their associated graphs represent better and better approximations of the graph of the output point cloud. ",
272
+ "bbox": [
273
+ 174,
274
+ 496,
275
+ 825,
276
+ 722
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "According to the definition of graph convolution in (2), the new features of a node are a weighted combination of the features of the node itself and of the neighbors as determined by the graph construction. Notice that this localized approach differs from the one in Achlioptas et al. (2017) where the generator of the r-GAN model is a fully-connected network, therefore unable to provide any localized interpretation of its hidden layers. It also differs from the PointNet (Qi et al., 2017a) and PointNet+ $^ { - + }$ (Qi et al., 2017b) architectures. PointNet processes each point independently with the same weights and then aggregates them using a globally symmetric operation to deal with the permutation invariance problem. PointNet $^ { + + }$ extends this work using some localized operations. However, the key difference with the work in this paper is that PointNet and PointNet+ $^ { \\cdot + }$ are not generative models, but are used in supervised problems such as classification or segmentation. Other works explore likelihood-based generative models, typically in the form of variational autoencoders (Fan et al., 2017; Nash & Williams, 2017; Litany et al., 2017). The most similar approach to the method of this paper is the one in Grover et al. (2018), with the key difference being that a distribution over adjacency matrices of graphs is learned using a spectral graph-convolutional VAE. ",
283
+ "bbox": [
284
+ 174,
285
+ 728,
286
+ 825,
287
+ 922
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "image",
293
+ "img_path": "images/f9c32af8e16c62c771a8ed4e102118b7ad9d87f6262c2090e8b96dd5df665fb2.jpg",
294
+ "image_caption": [
295
+ "Figure 2: Graph-convolutional generator with upsampling. The feature matrices $\\mathbf { H } ^ { l }$ have size $N ^ { l } \\times$ $d ^ { l }$ being $N ^ { l }$ the number of points at layer $l$ and $d ^ { l }$ the number of features at layer $l$ . The graph block computes the adjacency matrix of a $k$ -nn graph using $\\ell _ { 2 }$ distances between feature vectors. The upsamp block computes $N ^ { l + 1 } - N ^ { l }$ new points and concatenates them to the input ones. "
296
+ ],
297
+ "image_footnote": [],
298
+ "bbox": [
299
+ 205,
300
+ 101,
301
+ 789,
302
+ 176
303
+ ],
304
+ "page_idx": 3
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "2.2 UPSAMPLING ",
309
+ "text_level": 1,
310
+ "bbox": [
311
+ 174,
312
+ 252,
313
+ 308,
314
+ 267
315
+ ],
316
+ "page_idx": 3
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "The previous section presented the basic outline of a graph-based generator in a GAN. However, one evident shortcoming is the fixed number of points throughout the generator, which is determined by the number of output points. Many data of interest typically display some kind of regularity in the form of multi-resolution or other kinds of compositionality whereby points can be predicted from a smaller number of neighboring points. In the case of 2D images, lower resolutions provide a prediction of higher resolutions by supplying the low-frequency content and the upsampling operation is straightforward. In fact, convolutional GANs for image generation are composed of a sequence of upsampling and convolutional layers. Extending upsampling to deal with the generation of sets of points without a total ordering is not a trivial task. Many works have addressed the problem of upsampling 3D point clouds, e.g., by creating grids in the 3D space (Maturana & Scherer, 2015a). Notice, however, that introducing upsampling to interleave the graph-convolutional layers outlined in the previous section is a more complex problem because the high dimensionality of the feature vectors makes the gridding approach unfeasible. ",
321
+ "bbox": [
322
+ 173,
323
+ 276,
324
+ 826,
325
+ 458
326
+ ],
327
+ "page_idx": 3
328
+ },
329
+ {
330
+ "type": "text",
331
+ "text": "If we consider the $l$ -th generator layer, we want to define an upsampling operation that, starting from the graph convolution output Hl ∈ RNl ×dl , generates $N ^ { l }$ new feature vectors $\\tilde { \\mathbf { H } } ^ { l } \\in \\mathbb { R } ^ { N ^ { l } \\times d ^ { l } }$ . Then, these new feature vectors are concatenated to $\\mathbf { H } ^ { l }$ in order to obtain the output $\\mathbf { H } ^ { l , \\mathrm { u p } } \\in \\mathbb { R } ^ { 2 N ^ { l } \\times d ^ { l } }$ . We propose to define an upsampling operation using local aggregations. In this case, the upsampling operation becomes similar to a graph convolution. Given a feature vector $\\mathbf { h } _ { i } ^ { l } \\in \\mathbb { R } ^ { d ^ { l } }$ , we consider a set of neighbors $\\mathcal { N } _ { i } ^ { l }$ and we define the new feature vector $\\tilde { \\mathbf { h } } _ { i } ^ { l } \\in \\mathbb { R } ^ { d _ { l } }$ as follows ",
332
+ "bbox": [
333
+ 173,
334
+ 464,
335
+ 825,
336
+ 560
337
+ ],
338
+ "page_idx": 3
339
+ },
340
+ {
341
+ "type": "equation",
342
+ "img_path": "images/11ed42c1cfb2334431953bfcefdd521fd3d1222a9443d2b9ea69f4e93565792d.jpg",
343
+ "text": "$$\n\\tilde { \\mathbf { h } } _ { i } ^ { l } = \\sigma \\left( \\sum _ { j \\in { \\cal N } _ { i } ^ { l } } \\frac { \\mathrm { d i a g } \\left( U _ { \\tilde { \\mathbf { w } } ^ { l } } ^ { l } \\left( \\mathbf { h } _ { j } ^ { l } - \\mathbf { h } _ { i } ^ { l } \\right) \\right) \\mathbf { h } _ { j } ^ { l } } { | { \\cal N } _ { i } ^ { l } | } + \\mathbf { h } _ { i } ^ { l } \\Gamma ^ { l , i } + \\mathbf { b } ^ { l } \\right) = \\sigma \\left( \\sum _ { j \\in { \\cal N } _ { i } ^ { l } } \\frac { \\boldsymbol \\Gamma ^ { l , j i } \\mathbf { h } _ { j } ^ { l } } { | { \\cal N } _ { i } ^ { l } | } + \\mathbf { h } _ { i } ^ { l } \\Gamma ^ { l , i } + \\mathbf { b } ^ { l } \\right)\n$$",
344
+ "text_format": "latex",
345
+ "bbox": [
346
+ 187,
347
+ 564,
348
+ 808,
349
+ 614
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "where $U ^ { l } : \\mathbb { R } ^ { d ^ { l } } \\mathbb { R } ^ { d ^ { l } }$ is a fully-connected network which given the difference between $\\mathbf { h } _ { i } ^ { l }$ and $\\mathbf { h } _ { j } ^ { l }$ outputs the weight vector $\\gamma ^ { l , i j } \\in \\mathbb { R } ^ { d ^ { l } }$ , which is used to create the diagonal matrix $\\Gamma ^ { l , j i } =$ diag $\\left( \\gamma ^ { l , j i } \\right)$ . $\\tilde { \\mathbf { w } } ^ { l }$ and $\\mathbf { b } ^ { l }$ are model parameters that are updated only during training. It is important to note that, differently from the graph convolution described in 2.1 where $\\Theta ^ { l , i j }$ and $\\tilde { \\mathbf { W } } ^ { l }$ are dense matrices, in this case we use diagonal matrices. This means that during the upsampling operation the local aggregation treats each feature independently. This also reduces the number of parameters. ",
356
+ "bbox": [
357
+ 173,
358
+ 619,
359
+ 825,
360
+ 717
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "2.3 GRAPH EMBEDDING INTERPRETATION ",
367
+ "text_level": 1,
368
+ "bbox": [
369
+ 176,
370
+ 731,
371
+ 478,
372
+ 746
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "text",
378
+ "text": "Graph embeddings (Goyal & Ferrara, 2017) are representations of graphs in a vector space where a feature vector is associated to each node of the graph. For what concerns this paper we consider the following definition of graph embedding, focused on predicting edges from the feature vectors. ",
379
+ "bbox": [
380
+ 174,
381
+ 755,
382
+ 825,
383
+ 797
384
+ ],
385
+ "page_idx": 3
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "Definition 1 Given a graph $\\mathcal { G } = ( \\nu , \\mathcal { E } )$ , a graph embedding is a mapping $f : i \\mathbf { h } _ { i } \\in \\mathbb { R } ^ { d } , \\forall i \\in \\mathcal { V } ,$ such that $d \\ll | \\nu |$ and the function $f$ is defined such that if we consider two pairs of nodes $( i , j )$ and $( i , k )$ where $( i , j ) \\in \\mathcal { E }$ and $( i , k ) \\notin \\mathcal { E }$ then $\\| \\mathbf { h } _ { i } - \\mathbf { h } _ { j } \\| < \\| \\mathbf { h } _ { i } - \\mathbf { h } _ { k } \\|$ . ",
390
+ "bbox": [
391
+ 174,
392
+ 804,
393
+ 825,
394
+ 848
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "The graph-convolutional generator presented in this paper can be interpreted as generating graph embeddings of the nearest-neighbor graph of the output point cloud at each hidden layer, thus creating features that are able to capture some properties of the local topology. In order to see why this is the case, we analyze the architecture in Fig. 1 backwards from the output to the input. The final output $\\mathbf { x }$ is the result of a graph convolution aggregating features localized to the nearest-neighbor graph computed from the features of the preceding layer. Since the GAN objective is to match the distribution of the output with that of real data, the neighborhoods identified by the last graph must be a good approximation of the neighborhoods in the true data. Therefore, we say that features $\\mathbf { H } ^ { L }$ are a graph embedding in the sense that they allow to predict the edges of the output graph from their pairwise distances. Proceeding backwards, there is a hierarchy of graph embeddings as the other graphs are constructed from higher-order features. ",
401
+ "bbox": [
402
+ 174,
403
+ 854,
404
+ 825,
405
+ 924
406
+ ],
407
+ "page_idx": 3
408
+ },
409
+ {
410
+ "type": "table",
411
+ "img_path": "images/d4074772c352aaf0c3f42ddc2ee09a4cc13daa4e1fc3c008a4da9426d61be2c7.jpg",
412
+ "table_caption": [
413
+ "Table 1: Generator architecture "
414
+ ],
415
+ "table_footnote": [],
416
+ "table_body": "<table><tr><td colspan=\"2\"> No upsampling</td><td colspan=\"2\">Upsampling</td></tr><tr><td>Layer</td><td>Output size</td><td>Layer</td><td>Output size</td></tr><tr><td>Latent</td><td>1×128</td><td>Latent</td><td>1×128</td></tr><tr><td>Dense</td><td>2048×32</td><td>Dense</td><td>128×96</td></tr><tr><td rowspan=\"2\">Gconv</td><td>2048× 32</td><td>Gconv</td><td>128 ×48</td></tr><tr><td></td><td>Upsamp</td><td>256×48</td></tr><tr><td rowspan=\"2\">Gconv</td><td>2048 × 24</td><td>Gconv</td><td>256× 32</td></tr><tr><td></td><td>Upsamp</td><td>512 × 32</td></tr><tr><td rowspan=\"2\">Gconv</td><td>2048 × 16</td><td>Gconv</td><td>512 ×16</td></tr><tr><td></td><td>Upsamp</td><td>1024 × 16</td></tr><tr><td rowspan=\"2\">Gconv</td><td>2048×8</td><td>Gconv</td><td>1024×8</td></tr><tr><td>2048×3</td><td>Upsamp Gconv</td><td>2048×8 2048×3</td></tr></table>",
417
+ "bbox": [
418
+ 326,
419
+ 116,
420
+ 666,
421
+ 300
422
+ ],
423
+ "page_idx": 4
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "",
428
+ "bbox": [
429
+ 174,
430
+ 321,
431
+ 825,
432
+ 406
433
+ ],
434
+ "page_idx": 4
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "Notice that the upsampling operation in the architecture of Fig. 2 affects this chain of embeddings by introducing new points. While the graph convolution operation promotes the features of all the points after upsampling to be graph embeddings, the upsampling operation affects which points are generated. In the experiments we show that the upsampling method approximately maintains the neighborhood shape but copies it elsewhere in the point cloud. This suggests a generation mechanism exploiting self-similarities between the features of the point cloud at different locations. ",
439
+ "bbox": [
440
+ 174,
441
+ 412,
442
+ 825,
443
+ 496
444
+ ],
445
+ "page_idx": 4
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "3 EXPERIMENTS ",
450
+ "text_level": 1,
451
+ "bbox": [
452
+ 176,
453
+ 512,
454
+ 326,
455
+ 529
456
+ ],
457
+ "page_idx": 4
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "We tested the proposed architecture by using three classes of point clouds taken from the ShapeNet repository (Chang et al., 2015): “chair”, “airplane” and “sofa”. A class-specific model is trained for the desired class of point clouds. Since the focus of this paper is the features learned by the generator, the architecture for the discriminator is the same as the one of the r-GAN in Achlioptas et al. (2017), with 4 layers with weights shared across points (number of output features: 64, 128, 256, 512) followed by a global maxpool and by 3 dense layers. The generator architecture is reported in Table 1. The graph is built by selecting the 20 nearest neighbors in terms of Euclidean distance in the feature space. We use Leaky ReLUs as nonlinearities and RMSProp as optimization method with a learning rate equal to $1 0 ^ { - 4 }$ for both generator and discriminator. Batch normalization follows every graph convolution. The gradient penalty parameter of the WGAN is 1 and the discriminator is optimized for 5 iterations for each generator step. The models have been trained for 1000 epochs. For the “chair” class this required about 5 days without upsampling and 4 days with upsampling. ",
462
+ "bbox": [
463
+ 173,
464
+ 541,
465
+ 825,
466
+ 708
467
+ ],
468
+ "page_idx": 4
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "3.1 GENERATED POINT CLOUD ASSESSMENT ",
473
+ "text_level": 1,
474
+ "bbox": [
475
+ 174,
476
+ 724,
477
+ 496,
478
+ 738
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "In this section we perform qualitative and quantitative comparisons with the generated point clouds. ",
485
+ "bbox": [
486
+ 171,
487
+ 747,
488
+ 823,
489
+ 761
490
+ ],
491
+ "page_idx": 4
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "VISUAL RESULTS ",
496
+ "text_level": 1,
497
+ "bbox": [
498
+ 176,
499
+ 779,
500
+ 295,
501
+ 791
502
+ ],
503
+ "page_idx": 4
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "We first visually inspect the generated point clouds from the classes “chair” and “airplane”, as shown in Fig. 3. The results are convincing from a visual standpoint and the variety of the generated objects is high, suggesting no mode collapse in the training process. The distribution of points on the object is quite uniform, especially for the method with upsampling. ",
508
+ "bbox": [
509
+ 174,
510
+ 799,
511
+ 825,
512
+ 854
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "COMPARISONS WITH STATE-OF-THE-ART ",
519
+ "text_level": 1,
520
+ "bbox": [
521
+ 176,
522
+ 872,
523
+ 457,
524
+ 885
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "To the best of our knowledge this is the first work addressing GANs for point clouds learning localized features. We compare the proposed GAN for point cloud generation with other GANs able to deal with unordered sets of points. In particular, the “r-GAN-dense” architecture in Achlioptas et al. (2017) has a dense generator, which is unable to generate localized representations because there is no mapping between points and feature vectors. As an additional baseline variant, dubbed “r-GANconv”, we study the use of a generator having as many feature vectors as the points in the point cloud and using a size-1 convolution across the points. Notice that the graph convolution we use can be seen as a generalization of this model, aggregating the features of neighboring points instead of processing each point independently. We point out that we cannot compare the proposed method in a fair way with the variational autoencoders mentioned in Sec. 2.1: Fan et al. (2017) generate point clouds conditioned on an input image; Nash & Williams (2017) use object segmentation labels to generate point clouds by parts; Litany et al. (2017) focus on generating vertices on meshes with a fixed and given topology. ",
531
+ "bbox": [
532
+ 176,
533
+ 895,
534
+ 823,
535
+ 924
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "image",
541
+ "img_path": "images/d4226de86963345bdffe5b3214801e54d87c2d39be47d85c002fd6619b1c94ea.jpg",
542
+ "image_caption": [
543
+ "Figure 4: Generated point clouds from different methods "
544
+ ],
545
+ "image_footnote": [],
546
+ "bbox": [
547
+ 191,
548
+ 93,
549
+ 792,
550
+ 500
551
+ ],
552
+ "page_idx": 5
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "",
557
+ "bbox": [
558
+ 173,
559
+ 546,
560
+ 825,
561
+ 699
562
+ ],
563
+ "page_idx": 5
564
+ },
565
+ {
566
+ "type": "text",
567
+ "text": "In order to perform a quantitative evaluation of the generated point clouds we use the evaluation metrics proposed in Achlioptas et al. (2017), employing three different metrics to compare a set of generated samples with the test set. The first one is the Jensen-Shannon divergence (JSD) between marginal distributions defined in the 3D space. Then, we also evaluate the coverage (COV) and the minimum matching distance (MMD), as defined in Achlioptas et al. (2017), using two different point-set distances, the earth mover’s distance (EMD) and the Chamfer distance (CD). Table 2 shows the obtained results. As can be seen, the proposed methods achieve better values for the metrics under consideration. In particular, the method with upsampling operations is consistently the better. Notice that Achlioptas et al. (2017) report that the Chamfer distance is often unreliable as it fails to penalize non-uniform distributions of points. Fig. 4 visually shows that the proposed methods generate point clouds with better-distributed points, confirming the quantitative results. In particular, the r-GAN-dense shows clusters of points, while the r-GAN-conv also exhibits noisy shapes. ",
568
+ "bbox": [
569
+ 173,
570
+ 705,
571
+ 825,
572
+ 872
573
+ ],
574
+ "page_idx": 5
575
+ },
576
+ {
577
+ "type": "text",
578
+ "text": "3.2 GENERATOR FEATURE ANALYSIS ",
579
+ "text_level": 1,
580
+ "bbox": [
581
+ 176,
582
+ 887,
583
+ 446,
584
+ 901
585
+ ],
586
+ "page_idx": 5
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "In this section we quantitatively study the properties of the features in the layers of the generator. ",
591
+ "bbox": [
592
+ 171,
593
+ 910,
594
+ 805,
595
+ 925
596
+ ],
597
+ "page_idx": 5
598
+ },
599
+ {
600
+ "type": "table",
601
+ "img_path": "images/b1b6ebf22620e6907c9dfc153d24ce78270c8f8d0fa6d45796c0b44249471375.jpg",
602
+ "table_caption": [
603
+ "Table 2: Quantitative comparisons "
604
+ ],
605
+ "table_footnote": [],
606
+ "table_body": "<table><tr><td>Class</td><td>Model</td><td>JSD</td><td>MMD-CD</td><td>MMD-EMD</td><td>COV-CD</td><td>COV-EMD</td></tr><tr><td rowspan=\"4\">Chair</td><td>r-GAN-dense</td><td>0.238</td><td>0.0029</td><td>0.136</td><td>33</td><td>13</td></tr><tr><td>r-GAN-conv</td><td>0.517</td><td>0.0030</td><td>0.223</td><td>23</td><td>4</td></tr><tr><td>Prop. (no up.)</td><td>0.119</td><td>0.0033</td><td>0.104</td><td>26</td><td>20</td></tr><tr><td>Prop.(up.)</td><td>0.100</td><td>0.0029</td><td>0.097</td><td>30</td><td>26</td></tr><tr><td rowspan=\"4\">Sofa</td><td>r-GAN-dense</td><td>0.221</td><td>0.0020</td><td>0.146</td><td>32</td><td>12</td></tr><tr><td>r-GAN-conv</td><td>0.293</td><td>0.0025</td><td>0.110</td><td>21</td><td>12</td></tr><tr><td>Prop. (no up.)</td><td>0.095</td><td>0.0024</td><td>0.094</td><td>25</td><td>19</td></tr><tr><td>Prop. (up.)</td><td>0.063</td><td>0.0020</td><td>0.083</td><td>39</td><td>24</td></tr></table>",
607
+ "bbox": [
608
+ 191,
609
+ 111,
610
+ 803,
611
+ 241
612
+ ],
613
+ "page_idx": 6
614
+ },
615
+ {
616
+ "type": "image",
617
+ "img_path": "images/43552540b2ec052d5fb1495435556ea28a9c57e36f1e79caf8ee938a6be85bad.jpg",
618
+ "image_caption": [
619
+ "Figure 6: No upsampling: $k$ -means clustering of features of intermediate layers, highlighted onto the output point cloud (leftmost: output of dense layer, rightmost: output point cloud). Notice how layer features generate clusters that are progressively more localized in the output geometry. "
620
+ ],
621
+ "image_footnote": [],
622
+ "bbox": [
623
+ 176,
624
+ 251,
625
+ 820,
626
+ 372
627
+ ],
628
+ "page_idx": 6
629
+ },
630
+ {
631
+ "type": "text",
632
+ "text": "GRAPH EMBEDDING AND FEATURE RADIUS WITHOUT UPSAMPLING",
633
+ "text_level": 1,
634
+ "bbox": [
635
+ 176,
636
+ 452,
637
+ 640,
638
+ 465
639
+ ],
640
+ "page_idx": 6
641
+ },
642
+ {
643
+ "type": "text",
644
+ "text": "Referring to Table 1, the output of each layer is a matrix where every point is associated to a feature vector. In Sec. 2.3 we claimed that these features learned by the generator are graph embeddings. ",
645
+ "bbox": [
646
+ 171,
647
+ 477,
648
+ 823,
649
+ 506
650
+ ],
651
+ "page_idx": 6
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "We tested this hypothesis by measuring how much the adjacency matrix of the final point cloud, constructed as a nearest-neighbor graph in 3D, is successfully predicted by the nearest-neighbor adjacency matrix computed from hidden features. This is shown in Fig.5 which reports the percentage of edges correctly predicted as function of the number of neighbors considered for the graph of the output point cloud and a fixed number of 20 neighbors in the feature space. Notice that layers closer to the output correctly predict a higher percentage of edges and in this sense are better graph embeddings of the output geometry. ",
656
+ "bbox": [
657
+ 174,
658
+ 512,
659
+ 562,
660
+ 665
661
+ ],
662
+ "page_idx": 6
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "Fig. 6 shows another experiment concerning localization of features. We applied $k$ -means with 6 clusters to the features of intermediate layers and represented the cluster assignments onto the final point cloud. This experiment confirms that the features are highly localized and progressively more so in the layers closer to the output. ",
667
+ "bbox": [
668
+ 174,
669
+ 672,
670
+ 560,
671
+ 756
672
+ ],
673
+ "page_idx": 6
674
+ },
675
+ {
676
+ "type": "image",
677
+ "img_path": "images/a454c8b6b299136326fd5f90bcc216199d2f585672137cbdd6a77c374eb3475f.jpg",
678
+ "image_caption": [
679
+ "Figure 5: Accuracy of edge prediction from intermediate layer features. "
680
+ ],
681
+ "image_footnote": [],
682
+ "bbox": [
683
+ 573,
684
+ 517,
685
+ 826,
686
+ 710
687
+ ],
688
+ "page_idx": 6
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "We further investigated the effective receptive field of the convolution operation in Fig. 7a. This figure reports histograms of Euclidean distances measured on the output point cloud between neighbors as determined by the nearest neighbor graph in one of the intermediate layers. We can see that layers closer to the output aggregate points which are very close in the final point cloud, thus implementing a highly localized operation. Conversely, layers close to the latent space perform more global operations. ",
693
+ "bbox": [
694
+ 174,
695
+ 762,
696
+ 825,
697
+ 845
698
+ ],
699
+ "page_idx": 6
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "UPSAMPLING RESULTS ",
704
+ "text_level": 1,
705
+ "bbox": [
706
+ 176,
707
+ 869,
708
+ 333,
709
+ 882
710
+ ],
711
+ "page_idx": 6
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "The main drawback of the model without upsampling is the unnecessarily large number of parameters in the first dense layer. This is solved by the introduction of the upsampling layers which aim at exploiting hierarchical priors to lower the number of parameters by starting with a lower number of points and progressively predicting new points from the generated features. ",
716
+ "bbox": [
717
+ 176,
718
+ 895,
719
+ 823,
720
+ 924
721
+ ],
722
+ "page_idx": 6
723
+ },
724
+ {
725
+ "type": "image",
726
+ "img_path": "images/34eedda6cfe0dc1af54c70191c4c7b87f99b8b7c7b82cf3f13b6d330c10f0e19.jpg",
727
+ "image_caption": [
728
+ "(a) Histogram of intra-neighborhood distances (no upsampling). "
729
+ ],
730
+ "image_footnote": [],
731
+ "bbox": [
732
+ 174,
733
+ 98,
734
+ 500,
735
+ 220
736
+ ],
737
+ "page_idx": 7
738
+ },
739
+ {
740
+ "type": "image",
741
+ "img_path": "images/23ae4289f151c26c5a1a6f702fb6081dcedff42001246ef8403cc70032821ec3.jpg",
742
+ "image_caption": [
743
+ "(b) Locality of upsampling. "
744
+ ],
745
+ "image_footnote": [],
746
+ "bbox": [
747
+ 504,
748
+ 99,
749
+ 821,
750
+ 241
751
+ ],
752
+ "page_idx": 7
753
+ },
754
+ {
755
+ "type": "image",
756
+ "img_path": "images/422342ffd9fdd5a32a1ebb1384ab3e1fa642897cdbfbca08ab13590a64ba0390.jpg",
757
+ "image_caption": [
758
+ "Figure 7: (a) Neighborhoods are computed as 20-nearest neighbors in the feature space of each layer. Distances in abscissa are distances in the 3D point cloud. The layer features create neighborhoods that are progressively more localized with respect to the output geometry. (b) Upsampled points are non-local in the output geometry. ",
759
+ "Figure 8: Aggregation upsampling: $k$ -means clustering of features of intermediate layers after upsampling, highlighted onto the output point cloud (leftmost: output of dense layer, rightmost: output point cloud). Black points are not yet generated at the intermediate layers. "
760
+ ],
761
+ "image_footnote": [],
762
+ "bbox": [
763
+ 191,
764
+ 332,
765
+ 802,
766
+ 450
767
+ ],
768
+ "page_idx": 7
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "",
773
+ "bbox": [
774
+ 174,
775
+ 532,
776
+ 821,
777
+ 560
778
+ ],
779
+ "page_idx": 7
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "The proposed upsampling technique based on local aggregations computes a new point as a weighted aggregation of neighboring points. The weights of the aggregation are learned by the network, thus letting the network decide the best method to create a new point from a neighborhood, at the expense of an increased number of total parameters. The experiment in Figs. 7b and 8 shows an interesting behavior. First, the generated points are not close to the original point: Fig. 7b shows the ratio between the generator-generated distance and the average neighborhood distance (neighborhoods are defined in the feature space, while distances are measured as Euclidean distances on the output 3D point cloud) and since it is usually significantly larger than 1, we can conclude that the generated point is far from the original generating neighborhood. Then, the clusters in Fig. 8 show that the points in the first layers are not uniformly distributed over the point cloud, but rather form parts of it. The mechanism learned by the network to generate new points is essentially to apply some mild transformation to a neighborhood and copy it in a different area of the feature space. The generated points will no longer be close to their generators, but the structure of the neighborhood resembles the one of the generating neighborhood. This notion is similar to the second-order proximity in the graph embedding literature (Goyal & Ferrara, 2017) and it seems that this operation is exploiting the inherent self-similarities between the data features at distant points. To validate this hypothesis we measured two relevant quantities. First, we considered a point $i$ , its neighbors $\\mathcal { N } _ { i } ^ { l }$ before upsampling, their corresponding points generated by the upsampling operation $\\{ i ^ { \\mathrm { u p } } , \\mathcal { N } _ { i } ^ { l , \\mathrm { u p } } \\}$ and the neighborhood $\\mathcal { N } _ { i ^ { \\mathrm { u p } } } ^ { l }$ of point $i ^ { \\mathrm { u p } }$ . We measured the average percentage of points in ${ \\mathcal { N } } _ { i } ^ { l , \\mathrm { u p } }$ that were generated from points in $\\mathcal { N } _ { i } ^ { l }$ , i.e. $\\vert \\mathcal { N } _ { i ^ { \\mathrm { u p } } } ^ { l } \\cap \\mathcal { N } _ { i } ^ { l , \\mathrm { u p } } \\vert / \\vert \\mathcal { N } _ { i } ^ { l } \\vert$ , as reported in Table 3. The result shows that the neighborhood of a generated point is almost entirely generated by the points that were neighbors of the generator, and that the new points are not neighbors of the original ones. This behavior is consistent over different layers. Then, we measured the Euclidean distances in the feature space between point $i$ and its neighbors $\\mathcal { N } _ { i } ^ { l }$ and between point $i ^ { \\mathrm { u p } }$ and ${ \\mathcal { N } } _ { i } ^ { l , \\mathrm { u p } }$ . Table 3 reports the correlation coefficient between those distance vectors, which suggests that the shape of the neighborhood is fairly conserved. ",
784
+ "bbox": [
785
+ 173,
786
+ 565,
787
+ 825,
788
+ 924
789
+ ],
790
+ "page_idx": 7
791
+ },
792
+ {
793
+ "type": "table",
794
+ "img_path": "images/a5f908095b18655a18344d7b81e1d724f60ae1c46c208771bb721454ca388647.jpg",
795
+ "table_caption": [
796
+ "Table 3: Upsampling self-similarity "
797
+ ],
798
+ "table_footnote": [],
799
+ "table_body": "<table><tr><td></td><td>upsamp_0</td><td>upsamp_1</td><td>upsamp_2</td><td>upsamp_3</td></tr><tr><td>Percentage of neighbors</td><td>(71.8 ± 7.6) %</td><td>(69.6 ± 2.8) %</td><td>(61.6 ± 3.3) %</td><td>(66.4 ± 3.5) %</td></tr><tr><td>Distance correlation</td><td>0.56 ± 0.15</td><td>0.60 ± 0.03</td><td>0.53 ± 0.03</td><td>0.61 ± 0.04</td></tr></table>",
800
+ "bbox": [
801
+ 176,
802
+ 114,
803
+ 823,
804
+ 162
805
+ ],
806
+ "page_idx": 8
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "4 CONCLUSIONS ",
811
+ "text_level": 1,
812
+ "bbox": [
813
+ 176,
814
+ 188,
815
+ 330,
816
+ 204
817
+ ],
818
+ "page_idx": 8
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "We presented a GAN using graph convolutional layers to generate 3D point clouds. In particular, we showed how constructing nearest neighbor graphs from generator features to implement the graph convolution operation promotes the features to be localized and to approximate a graph embedding of the output geometry. We also proposed an upsampling scheme for the generator that exploits self-similarities in the samples to be generated. The main drawback of the current method is the rather high complexity of the graph convolution operation. Future work will focus on reducing the overall complexity, e.g., in the graph construction operation, and study new upsampling schemes. ",
823
+ "bbox": [
824
+ 174,
825
+ 219,
826
+ 826,
827
+ 318
828
+ ],
829
+ "page_idx": 8
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "5 ACKNOWLEDGEMENTS ",
834
+ "text_level": 1,
835
+ "bbox": [
836
+ 176,
837
+ 338,
838
+ 398,
839
+ 353
840
+ ],
841
+ "page_idx": 8
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "The research leading to these results has been partially funded by the SmartData $@$ PoliTO center for Big Data and Machine Learning technologies. The research leading to this publication has received funding from Regione Piemonte under research grant “DISLOMAN: dynamic integrated shopfloor operation management for Industry $4 . 0 ^ { \\dag }$ . ",
846
+ "bbox": [
847
+ 174,
848
+ 369,
849
+ 825,
850
+ 425
851
+ ],
852
+ "page_idx": 8
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "We thank Nvidia for donating a Quadro P6000 GPU for this work. ",
857
+ "bbox": [
858
+ 174,
859
+ 431,
860
+ 607,
861
+ 446
862
+ ],
863
+ "page_idx": 8
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "REFERENCES ",
868
+ "text_level": 1,
869
+ "bbox": [
870
+ 176,
871
+ 102,
872
+ 287,
873
+ 118
874
+ ],
875
+ "page_idx": 9
876
+ },
877
+ {
878
+ "type": "text",
879
+ "text": "Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas Guibas. Representation learning and adversarial generation of 3d point clouds. arXiv preprint arXiv:1707.02392, 2017. ",
880
+ "bbox": [
881
+ 173,
882
+ 126,
883
+ 823,
884
+ 155
885
+ ],
886
+ "page_idx": 9
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "Babak Alipanahi, Andrew Delong, Matthew T Weirauch, and Brendan J Frey. Predicting the sequence specificities of dna-and rna-binding proteins by deep learning. Nature biotechnology, 33 (8):831, 2015. ",
891
+ "bbox": [
892
+ 171,
893
+ 162,
894
+ 821,
895
+ 205
896
+ ],
897
+ "page_idx": 9
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein GAN. ´ arXiv preprint arXiv:1701.07875, 2017. ",
902
+ "bbox": [
903
+ 169,
904
+ 214,
905
+ 825,
906
+ 244
907
+ ],
908
+ "page_idx": 9
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "Davide Boscaini, Jonathan Masci, Emanuele Rodola, and Michael Bronstein. Learning shape cor- \\` respondence with anisotropic convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 3189–3197, 2016. ",
913
+ "bbox": [
914
+ 174,
915
+ 252,
916
+ 823,
917
+ 295
918
+ ],
919
+ "page_idx": 9
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "Michael M Bronstein, Joan Bruna, Yann LeCun, Arthur Szlam, and Pierre Vandergheynst. Geometric deep learning: going beyond Euclidean data. IEEE Signal Processing Magazine, 34(4):18–42, 2017. ",
924
+ "bbox": [
925
+ 174,
926
+ 304,
927
+ 823,
928
+ 347
929
+ ],
930
+ "page_idx": 9
931
+ },
932
+ {
933
+ "type": "text",
934
+ "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. ",
935
+ "bbox": [
936
+ 174,
937
+ 354,
938
+ 823,
939
+ 398
940
+ ],
941
+ "page_idx": 9
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks ¨ on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, pp. 3844–3852, 2016. ",
946
+ "bbox": [
947
+ 174,
948
+ 407,
949
+ 823,
950
+ 450
951
+ ],
952
+ "page_idx": 9
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan´ Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In Advances in neural information processing systems, pp. 2224–2232, 2015. ",
957
+ "bbox": [
958
+ 176,
959
+ 458,
960
+ 823,
961
+ 502
962
+ ],
963
+ "page_idx": 9
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "H. Fan, H. Su, and L. Guibas. A point set generation network for 3d object reconstruction from a single image. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2463–2471, July 2017. doi: 10.1109/CVPR.2017.264. ",
968
+ "bbox": [
969
+ 174,
970
+ 511,
971
+ 823,
972
+ 553
973
+ ],
974
+ "page_idx": 9
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "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. ",
979
+ "bbox": [
980
+ 173,
981
+ 561,
982
+ 825,
983
+ 604
984
+ ],
985
+ "page_idx": 9
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "Palash Goyal and Emilio Ferrara. Graph embedding techniques, applications, and performance: A survey. arXiv preprint arXiv:1705.02801, 2017. ",
990
+ "bbox": [
991
+ 173,
992
+ 613,
993
+ 823,
994
+ 642
995
+ ],
996
+ "page_idx": 9
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "Aditya Grover, Aaron Zweig, and Stefano Ermon. Graphite: Iterative Generative Modeling of Graphs. arXiv preprint arXiv:1803.10459, 2018. ",
1001
+ "bbox": [
1002
+ 173,
1003
+ 650,
1004
+ 825,
1005
+ 680
1006
+ ],
1007
+ "page_idx": 9
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of Wasserstein GANs. In Advances in Neural Information Processing Systems, pp. 5769–5779, 2017. ",
1012
+ "bbox": [
1013
+ 173,
1014
+ 688,
1015
+ 825,
1016
+ 731
1017
+ ],
1018
+ "page_idx": 9
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "Mikael Henaff, Joan Bruna, and Yann LeCun. Deep convolutional networks on graph-structured data. arXiv preprint arXiv:1506.05163, 2015. ",
1023
+ "bbox": [
1024
+ 168,
1025
+ 739,
1026
+ 825,
1027
+ 770
1028
+ ],
1029
+ "page_idx": 9
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. ",
1034
+ "bbox": [
1035
+ 171,
1036
+ 779,
1037
+ 823,
1038
+ 808
1039
+ ],
1040
+ "page_idx": 9
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "Anders Boesen Lindbo Larsen, Sren Kaae Snderby, Hugo Larochelle, and Ole Winther. Autoencoding beyond pixels using a learned similarity metric. In Maria Florina Balcan and Kilian Q. Weinberger (eds.), Proceedings of The 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pp. 1558–1566, New York, New York, USA, 20–22 Jun 2016. PMLR. ",
1045
+ "bbox": [
1046
+ 173,
1047
+ 815,
1048
+ 825,
1049
+ 885
1050
+ ],
1051
+ "page_idx": 9
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "Or Litany, Alexander M. Bronstein, Michael M. Bronstein, and Ameesh Makadia. Deformable shape completion with graph convolutional autoencoders. CoRR, abs/1712.00268, 2017. ",
1056
+ "bbox": [
1057
+ 176,
1058
+ 895,
1059
+ 820,
1060
+ 924
1061
+ ],
1062
+ "page_idx": 9
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "Jonathan Masci, Davide Boscaini, Michael Bronstein, and Pierre Vandergheynst. Geodesic convolutional neural networks on riemannian manifolds. In Proceedings of the IEEE international conference on computer vision workshops, pp. 37–45, 2015. ",
1067
+ "bbox": [
1068
+ 176,
1069
+ 103,
1070
+ 823,
1071
+ 146
1072
+ ],
1073
+ "page_idx": 10
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "D. Maturana and S. Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 922–928, Sept 2015a. doi: 10.1109/IROS.2015.7353481. ",
1078
+ "bbox": [
1079
+ 178,
1080
+ 155,
1081
+ 821,
1082
+ 198
1083
+ ],
1084
+ "page_idx": 10
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "Daniel Maturana and Sebastian Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In Intelligent Robots and Systems (IROS), 2015 IEEE/RSJ International Conference on, pp. 922–928. IEEE, 2015b. ",
1089
+ "bbox": [
1090
+ 176,
1091
+ 207,
1092
+ 823,
1093
+ 250
1094
+ ],
1095
+ "page_idx": 10
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "Charlie Nash and Chris KI Williams. The shape variational autoencoder: A deep generative model of part-segmented 3d objects. In Computer Graphics Forum, volume 36, pp. 1–12. Wiley Online Library, 2017. ",
1100
+ "bbox": [
1101
+ 173,
1102
+ 257,
1103
+ 826,
1104
+ 301
1105
+ ],
1106
+ "page_idx": 10
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. Proc. Computer Vision and Pattern Recognition (CVPR), IEEE, 1(2):4, 2017a. ",
1111
+ "bbox": [
1112
+ 174,
1113
+ 309,
1114
+ 825,
1115
+ 352
1116
+ ],
1117
+ "page_idx": 10
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "text": "Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointne $^ { + + }$ : Deep hierarchical feature learning on point sets in a metric space. In Advances in Neural Information Processing Systems, pp. 5105–5114, 2017b. ",
1122
+ "bbox": [
1123
+ 173,
1124
+ 361,
1125
+ 825,
1126
+ 404
1127
+ ],
1128
+ "page_idx": 10
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "Michael Schlichtkrull, Thomas N Kipf, Peter Bloem, Rianne van den Berg, Ivan Titov, and Max Welling. Modeling relational data with graph convolutional networks. arXiv preprint arXiv:1703.06103, 2017. ",
1133
+ "bbox": [
1134
+ 173,
1135
+ 412,
1136
+ 825,
1137
+ 455
1138
+ ],
1139
+ "page_idx": 10
1140
+ },
1141
+ {
1142
+ "type": "text",
1143
+ "text": "David I Shuman, Sunil K Narang, Pascal Frossard, Antonio Ortega, and Pierre Vandergheynst. The emerging field of signal processing on graphs: Extending high-dimensional data analysis to networks and other irregular domains. IEEE Signal Processing Magazine, 30(3):83–98, 2013. ",
1144
+ "bbox": [
1145
+ 173,
1146
+ 463,
1147
+ 823,
1148
+ 507
1149
+ ],
1150
+ "page_idx": 10
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "Martin Simonovsky and Nikos Komodakis. Dynamic edge-conditioned filters in convolutional neural networks on graphs. In Proc. CVPR, 2017. ",
1155
+ "bbox": [
1156
+ 171,
1157
+ 516,
1158
+ 823,
1159
+ 545
1160
+ ],
1161
+ "page_idx": 10
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E Sarma, Michael M Bronstein, and Justin M Solomon. Dynamic graph cnn for learning on point clouds. arXiv preprint arXiv:1801.07829, 2018. ",
1166
+ "bbox": [
1167
+ 169,
1168
+ 553,
1169
+ 821,
1170
+ 583
1171
+ ],
1172
+ "page_idx": 10
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In Pro. Computer Vision and Pattern Recognition (CVPR), pp. 1912–1920, 2015. ",
1177
+ "bbox": [
1178
+ 176,
1179
+ 590,
1180
+ 825,
1181
+ 635
1182
+ ],
1183
+ "page_idx": 10
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Yaoqing Yang, Chen Feng, Yiru Shen, and Dong Tian. FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation. In Proc. IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), volume 3, 2018. ",
1188
+ "bbox": [
1189
+ 174,
1190
+ 642,
1191
+ 825,
1192
+ 685
1193
+ ],
1194
+ "page_idx": 10
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "6 APPENDIX ",
1199
+ "text_level": 1,
1200
+ "bbox": [
1201
+ 173,
1202
+ 102,
1203
+ 294,
1204
+ 118
1205
+ ],
1206
+ "page_idx": 11
1207
+ },
1208
+ {
1209
+ "type": "table",
1210
+ "img_path": "images/18e09a7d5bc96dd3b7033981a96de01dedb6e08338d00561ea2e8b652a799b73.jpg",
1211
+ "table_caption": [],
1212
+ "table_footnote": [],
1213
+ "table_body": "<table><tr><td>Class</td><td>Model</td><td>JSD</td><td>MMD-CD</td><td>MMD-EMD</td><td>COV-CD</td><td>COV-EMD</td></tr><tr><td rowspan=\"4\">Chair</td><td>r-GAN-dense</td><td>0.238</td><td>0.0029</td><td>0.136</td><td>33</td><td>13</td></tr><tr><td>r-GAN-conv</td><td>0.517</td><td>0.0030</td><td>0.223</td><td>23</td><td>4</td></tr><tr><td>Prop. (no up.)</td><td>0.119</td><td>0.0033</td><td>0.104</td><td>26</td><td>20</td></tr><tr><td>Prop. (up.)</td><td>0.100</td><td>0.0029</td><td>0.097</td><td>30</td><td>26</td></tr><tr><td rowspan=\"4\">Airplane</td><td>r-GAN-dense</td><td>0.182</td><td>0.0009</td><td>0.094</td><td>31</td><td>9</td></tr><tr><td>r-GAN-conv</td><td>0.350</td><td>0.0008</td><td>0.101</td><td>26</td><td>7</td></tr><tr><td>Prop. (no up.)</td><td>0.164</td><td>0.0010</td><td>0.102</td><td>24</td><td>13</td></tr><tr><td>Prop. (up.)</td><td>0.083</td><td>0.0008</td><td>0.071</td><td>31</td><td>14</td></tr><tr><td rowspan=\"4\">Sofa</td><td>r-GAN-dense</td><td>0.221</td><td>0.0020</td><td>0.146</td><td>32</td><td>12</td></tr><tr><td>r-GAN-conv</td><td>0.293</td><td>0.0025</td><td>0.110</td><td>21</td><td>12</td></tr><tr><td>Prop. (no up.)</td><td>0.095</td><td>0.0024</td><td>0.094</td><td>25</td><td>19</td></tr><tr><td>Prop. (up.)</td><td>0.063</td><td>0.0020</td><td>0.083</td><td>39</td><td>24</td></tr></table>",
1214
+ "bbox": [
1215
+ 183,
1216
+ 136,
1217
+ 813,
1218
+ 320
1219
+ ],
1220
+ "page_idx": 11
1221
+ },
1222
+ {
1223
+ "type": "image",
1224
+ "img_path": "images/838d440b60ae919cbc121b28e00bb503a2be7239f92da9d6c9c2da6cb28cfa43.jpg",
1225
+ "image_caption": [
1226
+ "Figure 9: Generated point clouds for chair class "
1227
+ ],
1228
+ "image_footnote": [],
1229
+ "bbox": [
1230
+ 295,
1231
+ 113,
1232
+ 700,
1233
+ 866
1234
+ ],
1235
+ "page_idx": 12
1236
+ },
1237
+ {
1238
+ "type": "image",
1239
+ "img_path": "images/e4653c2c37cc8e6d777fa315ff1825b885224eafbdaa1a94ba884b2fb427b34e.jpg",
1240
+ "image_caption": [
1241
+ "Figure 10: Generated point clouds for airplane class "
1242
+ ],
1243
+ "image_footnote": [],
1244
+ "bbox": [
1245
+ 199,
1246
+ 282,
1247
+ 797,
1248
+ 710
1249
+ ],
1250
+ "page_idx": 13
1251
+ },
1252
+ {
1253
+ "type": "image",
1254
+ "img_path": "images/4a52a434fb70c78008da20c52d73a503dfc41260c8f574dc7ebab88e232a8ead.jpg",
1255
+ "image_caption": [
1256
+ "Figure 11: Generated point clouds for sofa class "
1257
+ ],
1258
+ "image_footnote": [],
1259
+ "bbox": [
1260
+ 199,
1261
+ 154,
1262
+ 799,
1263
+ 814
1264
+ ],
1265
+ "page_idx": 14
1266
+ }
1267
+ ]
parse/train/SJeXSo09FQ/SJeXSo09FQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SJeXSo09FQ/SJeXSo09FQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/oDPxtrCMboN/oDPxtrCMboN.md ADDED
@@ -0,0 +1,498 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING INVARIANT REPRESENTATIONS AND RISKS FOR SEMI-SUPERVISED DOMAIN ADAPTATION
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ The success of supervised learning hinges on the assumption that the training and test data come from the same underlying distribution, which is often not valid in practice due to potential distribution shift. In light of this, most existing methods for unsupervised domain adaptation focus on achieving domain-invariant representations and small source domain error. However, recent works have shown that this is not sufficient to guarantee good generalization on the target domain, and in fact, is provably detrimental under label distribution shift. Furthermore, in many real-world applications it is often feasible to obtain a small amount of labeled data from the target domain and use them to facilitate model training with source data. Inspired by the above observations, in this paper we propose the first method that aims to simultaneously learn invariant representations and risks under the setting of semi-supervised domain adaptation (Semi-DA). First, we provide a finite sample bound for both classification and regression problems under Semi-DA. The bound suggests a principled way to obtain target generalization, i.e. by aligning both the marginal and conditional distributions across domains in feature space. Motivated by this, we then introduce the LIRR algorithm for jointly Learning Invariant Representations and Risks. Finally, extensive experiments are conducted on both classification and regression tasks, which demonstrates LIRR consistently achieves state-of-the-art performance and significant improvements compared with the methods that only learn invariant representations or invariant risks.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ The success of supervised learning hinges on the key assumption that test data should share the same distribution with the training data. Unfortunately, in most of the real-world applications, data are dynamic, meaning that there is often a distribution shift between the training (source) and test (target) domains. To this end, unsupervised domain adaptation (UDA) methods aim to approach this problem by adapting the predictive model from labeled source data to the unlabeled target data. Recent advances in UDA focus on learning domain-invariant representations that also lead to a small error on the source domain. The goal is to learn representations, along with the source predictor, that can generalize to the target domain Long et al. (2015); Ganin et al. (2016); Tzeng et al. (2017); Long et al. (2018); Chen et al. (2019); Zhao et al. (2018). However, recent works Zhao et al. (2019a); Wu et al. (2019); Combes et al. (2020) have shown that the above conditions are not sufficient to guarantee good generalizations on the target domain. In fact, if the marginal label distributions are distinct across domains, the above method provably hurts target generalization Zhao et al. (2019a).
12
+
13
+ On the other hand, while labeled target data is usually more difficult or costly to obtain than labeled source data, it can lead to better accuracy Hanneke & Kpotufe (2019). Furthermore, in many practical applications, e.g., vehicle counting, object detection, speech recognition, etc., it is often feasible to at least obtain a small amount of labeled data from the target domain so that it can facilitate model training with source data Li & Zhang (2018); Saito et al. (2019). Motivated by these observations, in this paper we focus on a more realistic setting of semi-supervised domain adaptation (Semi-DA). In Semi-DA, in addition to the large amount of labeled source data, the learner also has access to a small amount of labeled data from the target domain. Again, the learner’s goal is to produce a hypothesis that well generalizes to the target domain, under the potential shift between the source and the target. Semi-DA is both a more-realistic and generalizable setting that allows practitioners to design better algorithms that can overcome the aforementioned limitations in UDA. The key question in this scenario is: how to maximally exploit the labeled target data for better model training?
14
+
15
+ ![](images/161fd76221f88e014186a3e2f0a56786a73ba7406c48e1395e847d845039abd7.jpg)
16
+ Figure 1: Overview of the proposed model. Learning invariant representations induces indistinguishable representations across domains, but there can still be mis-classified samples (as stated in red circle) due to misaligned optimal predictors. Besides learning invariant representations, LIRR model jointly learns invariant risks to better align the optimal predictors across domains.
17
+
18
+ In this paper, we address the above question under the Semi-DA setting. In order to first understand how performance discrepancy occurs, we derive a finite-sample generalization bound for both classification and regression problems under Semi-DA. Our theory shows that, for a given predictor, the accuracy discrepancy between two domains depends on two terms: (i) the distance between the marginal feature distributions, and (ii) the distance between the optimal predictors from source and target domains. Our observation naturally leads to a principled way of learning invariant representations (to minimize discrepancy between marginal feature distributions) and risks (to minimize discrepancy between conditional distributions over the features) across domains simultaneously for a better generalization on the target. In light of this, we introduce our novel bound minimization algorithm LIRR, a model of jointly Learning Invariant Representations and Risks for such purposes. As a comparison, existing works on focus on either learning invariant representations only Ganin et al. (2016); Tzeng et al. (2017); Zhao et al. (2018); Chen et al. (2019), or learning invariant risks only Arjovsky et al. (2019); Chang et al. (2020); Song et al. (2019); Steinberg et al. (2020); Krueger et al. (2020); Zhao et al. (2020), which are not sufficient to reduce the accuracy discrepancy for good generalizations on the target. To our best knowledge, LIRR is the first work that subtly combine above learning objectives with sound theoretical proof and interpretation. LIRR jointly learns invariant representations and risks, and as a result, better mitigates the accuracy discrepancy across domains. To better understand our method, we illustrate the proposed algorithm, LIRR, in Fig. 1.
19
+
20
+ In summary, our work provides the following contributions:
21
+
22
+ • Theoretically, we provide finite-sample generalization bounds for Semi-DA on both classification (Theorem 3.1) and regression (Theorem 3.2) problems. Our bounds inform new directions for simultaneously optimizing both marginal and conditional distributions across domains for better generalization on the target. To the best of our knowledge, this is the first generalization analysis in the Semi-DA setting.
23
+ • To bridge the gap between theory and practice, we provide an information-theoretic interpretation of our theoretical results. Based on this perspective, we propose a bound minimization algorithm, LIRR, to jointly learn invariant representations and invariant optimal predictors, in order to mitigate the accuracy discrepancy across domains for better generalizations.
24
+ • We systematically analyze LIRR with extensive experiments on both classification and regression tasks. Compared with methods that only learn invariant representations or invariant risks, LIRR demonstrates significant improvements on Semi-DA. We also analyze the adaptation performance with increasing labeled target data, which shows LIRR even surpasses oracle method Full Target trained only on labeled target data, suggesting that LIRR can successfully exploit the structure in source data to improve generalization on the target domain.
25
+
26
+ # 2 PRELIMINARIES
27
+
28
+ Unsupervised Domain Adaptation We use $\mathcal { X }$ and $\mathcal { V }$ to denote the input and output space, respectively. Similarly, $\mathcal { Z }$ stands for the representation space induced from $\mathcal { X }$ by a feature transformation $g : \mathcal { X } \mapsto \mathcal { Z }$ . Accordingly, we use $X , Y , Z$ to denote random variables which take values in $x , y , z$ . Throughout the paper, a domain corresponds to a joint distribution on the input space $\mathcal { X }$ and output space $\mathcal { V }$ . We use $\mathcal { D } _ { S }$ $( \mathcal { D } _ { T } )$ to denote the source (target) domain and subsequently we also use $\mathcal { D } _ { S } ( Z ) ( \mathcal { D } _ { T } ( Z ) )$ to denote the marginal distributions of $\mathcal { D } _ { S } ( \mathcal { D } _ { T } )$ over $Z$ . Furthermore, let $D$ be a categorical variable that corresponds to the index of domain, i.e., $D \in \{ S , T \}$ . The overall sampling process for our data can then be specified by first drawing a value of $D$ , and then depending on the value of $D$ , we sample from the corresponding distribution $\mathcal { D } _ { D }$ . Under this setting, the probabilities of $\Pr ( D = T )$ and ${ \bar { \operatorname { P r } } } ( D = S )$ then determine the relative sample sizes of our target and source data.
29
+
30
+ A hypothesis is a function $h : \mathcal { Z } \to [ 0 , 1 ]$ . The error of a hypothesis $h$ under distribution $\mathcal { D } _ { S }$ and feature transformation $g$ is defined as: $\dot { \varepsilon } _ { S } ( \dot { h } , f ) : = \mathbb { E } _ { \mathcal { D } _ { S } } [ | h ( g ( \dot { X } ) ) - f ( X ) | ]$ . In classification setting, in which $f$ and $h$ are binary classification functions, above definition reduces to the probability that $h$ disagrees with $f$ under $\mathcal D _ { S } : \mathbb { E } _ { \mathcal D _ { S } } [ | h ( g ( X ) ) - f ( X ) | ] = \mathbb { E } _ { \mathcal D _ { S } } [ \mathbb { I } ( h ( g ( X ) ) \neq ^ { } f ( X ) ) ] =$ $\operatorname* { P r } _ { \mathcal { D } _ { S } } ( h ( g ( { \mathbf { \bar { X } } } ) ) \neq Y )$ . In regression, the above error is then the usual mean absolute error, i.e., the $\ell _ { 1 }$ loss. As a common notation, we also use $\widehat { \varepsilon } _ { S } ( h )$ to denote the empirical risk of $h$ on the source domain. Similarly, $\varepsilon _ { T } ( h )$ and $\widehat { \varepsilon } _ { T } ( h )$ b are the true risk and the empirical risk on the target domain.
31
+
32
+ Semi-supervised Domain Adaptation Formally, in Semi-DA the learner is allowed to have access to a small amount of labeled data in target domain $\mathcal { D } _ { T }$ . Let $S = \{ ( \mathbf { x } _ { i } ^ { ( S ) } , y _ { i } ^ { ( S ) } ) \} _ { i = 1 } ^ { n }$ be a set of labeled data sampled i.i.d. from $\mathcal { D } _ { S }$ . Similarly, we have $T = \{ ( \mathbf { x } _ { j } ^ { ( T ) } ) \} _ { j = 1 } ^ { k }$ as the set of target unlabeled data sampled from $\mathcal { D } _ { T }$ , and we let $\widetilde { T } = \{ ( \mathbf { x } _ { j } ^ { ( \widetilde { T } ) } , y _ { j } ^ { ( \widetilde { T } ) } ) \} _ { j = 1 } ^ { m }$ be the small set of labeled data where $m \leq k$ . Usually, we also have $m \ll n$ , and the goal of the learner is to find a hypothesis $h \in \mathcal H$ by learning from $S$ and $T$ so that $h$ has a small target error $\varepsilon _ { T } ( h )$ .
33
+
34
+ Clearly, with the additional small amount of labeled data $\widetilde { T }$ , one should expect a better generalization performance than what the learner could hope to achieve in the setting of unsupervised domain adaptation. To this end, we first state the following generalization upper bound from Zhao et al. (2019a) in the setting of unsupervised domain adaptation:
35
+
36
+ Theorem 2.1. (Zhao et al., 2019a) Let $\langle \mathcal { D } _ { S } ( X ) , f _ { S } \rangle$ and $\langle { \mathcal { D } } _ { T } ( X ) , f _ { T } \rangle$ be the source and target domains. For any function class $\mathcal { H } \subseteq [ 0 , 1 ] ^ { \chi }$ , and $\forall h \in { \mathcal { H } }$ , the following inequality holds:
37
+
38
+ $$
39
+ \varepsilon _ { T } ( h ) \leq \varepsilon _ { S } ( h ) + d _ { \mathcal { H } } ( \mathcal { D } _ { S } ( X ) , \mathcal { D } _ { T } ( X ) ) + \operatorname* { m i n } \{ \mathbb { E } _ { \mathcal { D } _ { S } } [ | f _ { S } - f _ { T } | ] , \mathbb { E } _ { \mathcal { D } _ { T } } [ | f _ { S } - f _ { T } | ] \} .
40
+ $$
41
+
42
+ The $d _ { \mathcal { H } } ( \cdot , \cdot )$ is known as the $\mathcal { H }$ -divergence (Ben-David et al., 2010), a pseudo-metric parametrized by $\mathcal { H }$ to measure the discrepancy between two distributions. It should be noted that the above theorem is a population result, hence it does not give a finite sample bound. Furthermore, the setting above is noiseless, where $f _ { S }$ and $f _ { T }$ correspond to the groundtruth labeling functions in source and target domains. Nevertheless, it provides an insight on achieving domain adaptation through bounding the error difference on source and target domains: to simultaneously minimize the distances between feature representations and between the optimal labeling functions.
43
+
44
+ # 3 GENERALIZATION BOUNDS FOR SEMI-SUPERVISED DOMAIN ADAPTATION
45
+
46
+ In this section, we derive a finite-sample generalization bound for Semi-DA, where the model has access to both a large amount of labeled data $S$ from the source domain, and a small amount of labeled data $\tilde { T }$ from the target domain. For this purpose, we first introduce the definition of $\mathcal { H }$ on both classification and regression settings, and then present our theoretical results of the generalization upper bounds for Semi-DA.
47
+
48
+ Definition 3.1. Let $\mathcal { H }$ be a family of binary functions from $\mathcal { Z }$ to $\{ 0 , 1 \}$ , and $\boldsymbol { A } _ { \mathcal { H } }$ be the collection of subsets of $\mathcal { Z }$ defined as $\mathcal { A } _ { \mathcal { H } } : = \{ \dot { h } ^ { - 1 } ( 1 ) | \dot { h } \in \mathcal { H } \}$ . The distance between two distributions $\mathcal { D }$ and $\mathcal { D } ^ { \prime }$ based on $\mathcal { H }$ is: $\begin{array} { r } { d _ { \mathcal { H } } ( \mathcal { D } , \mathcal { D } ^ { \prime } ) : = \operatorname* { s u p } _ { A \in \mathcal { A } _ { \mathcal { H } } } | \operatorname* { P r } _ { \mathcal { D } } ( A ) - \operatorname* { P r } _ { \mathcal { D } ^ { \prime } } ( A ) | } \end{array}$ .
49
+
50
+ With the definition, we have the symmetric difference w.r.t. itself as: $\mathcal { H } \Delta \mathcal { H } = \left\{ h ( z ) \oplus h ^ { \prime } ( z ) \vert h , h ^ { \prime } \in \right.$ $\mathcal { H } \}$ , where $\oplus$ is the XOR operation. Next, considering that for a joint distribution $\mathcal { D }$ over $\mathcal { Z } \times \mathcal { V }$ in our setting, there may be noise in the conditional distribution $\operatorname* { P r } _ { \mathcal { D } } ( Y \mid Z )$ . It is then necessary to define a term to measure the noise level of each domain. To this end, in classification, we define the noise on the source domain $n _ { S } : = \mathbb { E } _ { S } [ | Y - f _ { S } ( Z ) | ]$ , where $f _ { S } : \mathcal { Z } \to [ 0 , 1 ]$ is the conditional mean function, i.e., $f _ { S } ( Z ) = \mathbb { E } _ { S } [ Y \mid Z ]$ . Similar definition also applies to the target domain, where we use $n _ { T }$ to denote the noise in target. In regression, with $\ell _ { 1 }$ loss, we define $f _ { S } : \mathcal { Z } \mathbb { R }$ to be the conditional median function of $\operatorname { P r } ( Y \mid Z )$ , i.e. $f _ { S } ( Z ) : = \operatorname* { i n f } _ { y } \{ y \in \mathbb { R } : 1 / 2 \leq \operatorname* { P r } ( Y \leq y \mid Z ) \}$ Now we are ready to state the main results in this section:
51
+
52
+ Theorem 3.1. (Classification generalization bound in Semi-DA). Let $\mathcal { H }$ be a hypothesis set with functions $h : \mathcal { Z } \to \{ 0 , 1 \}$ and $V C d i m ( \mathcal { H } ) = d$ , $\widehat { \mathcal { D } } _ { S }$ (resp. $\widehat { \cal D } _ { T }$ ) be the empirical distribution induced by samples from $\mathcal { D } _ { S }$ (resp. $\mathcal { D } _ { T }$ ). For $0 < \delta < 1$ , then w.p. at least $1 - \delta$ over the $n$ samples in $S$ and $m$ samples in $\tilde { T }$ , for all $h \in \mathcal H$ , we have:
53
+
54
+ $$
55
+ \begin{array} { r l } & { \mathrm { \natural ~ } \mathit { \hat { z } } _ { T } ( h ) \leq \displaystyle \frac { m } { n + m } \widehat { \varepsilon } _ { \bar { T } } ( h ) + \frac { n } { n + m } \widehat { \varepsilon } _ { S } ( h ) } \\ & { \quad + \displaystyle \frac { n } { n + m } \left[ d \eta _ { \Delta } \eta ( \widehat { D } _ { S } ( Z ) , \widehat { D } _ { T } ( Z ) ) + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { \widetilde { T } } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { \widetilde { T } } ( Z ) | ] \} \right] } \\ & { \quad + \displaystyle \frac { n } { n + m } | n _ { S } + n _ { \widetilde { T } } | + O \left( \sqrt { ( \frac { 1 } { m } + \frac { 1 } { n } ) \mathrm { l o g } \frac { 1 } { \delta } + \frac { d } { n } \mathrm { l o g } \frac { n } { d } + \frac { d } { m } \mathrm { l o g } \frac { m } { d } } \right) . } \end{array}
56
+ $$
57
+
58
+ Theorem 3.2. (Regression generalization bound in Semi-DA). Let $\mathcal { H }$ be a hypothesis set with functions $h : \mathcal { Z } \to [ 0 , 1 ]$ and $P d i m ( \mathcal { H } ) = d , \widehat { \mathcal { D } } _ { \ast }$ (resp. $\widehat { \mathcal { D } } _ { T }$ ) be the empirical distribution induced by samples from $\mathcal { D } _ { S }$ (resp. $\mathcal { D } _ { T }$ ). Then we define $\tilde { \mathcal { H } } : = \left\{ \mathbb { I } _ { | h ( x ) - h ^ { \prime } ( x ) | > t } : h , h ^ { \prime } \in \mathcal { H } , 0 \leq t \leq 1 \right\}$ . For $0 < \delta < 1$ , then w.p. at least $1 - \delta$ over the $n$ samples in $S$ and $m$ samples in $\tilde { T }$ , for all $h \in \mathcal H$ , we have:
59
+
60
+ $$
61
+ \begin{array} { l } { \displaystyle \varepsilon _ { T } ( h ) \leq \frac { m } { n + m } \widehat \varepsilon _ { \bar { T } } ( h ) + \frac { n } { n + m } \widehat \varepsilon _ { S } ( h ) } \\ { \displaystyle + \frac { n } { n + m } \Big [ d _ { \bar { \mathcal { H } } } ( \widehat D _ { S } ( Z ) , \widehat { \mathcal { D } } _ { T } ( Z ) ) + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ \vert f _ { S } ( Z ) - f _ { \bar { T } } ( Z ) \vert ] , \mathbb { E } _ { T } [ \vert f _ { S } ( Z ) - f _ { \bar { T } } ( Z ) \vert ] \} \Big ] } \\ { \displaystyle + \frac { n } { n + m } \vert n _ { S } + n _ { \bar { T } } \vert + O \left( \sqrt { ( \frac { 1 } { m } + \frac { 1 } { n } ) \log \frac { 1 } { \delta } + \frac { d } { n } \log \frac { n } { d } + \frac { d } { m } \log \frac { m } { d } } \right) . } \end{array}
62
+ $$
63
+
64
+ Remark It is worth pointing out that both $n _ { S }$ and $n _ { T }$ are constants that only depend on the underlying source and target domains, respectively. Hence $| n _ { S } + n _ { T } |$ essentially captures the the amplitude of noise. The last two terms of the bound come from standard concentration analysis for uniform convergence.
65
+
66
+ Comparing with previous results Ben-David et al. (2010); Zhao et al. (2019a); Combes et al. (2020); Redko et al. (2017; 2019), our bounds is the first in Semi-DA literature which contain empirical error terms from both the source and target domains and replace $\lambda$ term with our fourth term, which is tighter since $\lambda$ relies the choice of the hypothesis class $\mathcal { H }$ . More importantly, these bounds imply a natural and principled way for a better generalization to the target domain by learning invariant representations and risks simultaneously. Note that this is in sharp contrast to previous works where only invariant representations are pursued Ganin et al. (2016); Zhao et al. (2018).
67
+
68
+ # 4 LEARNING INVARIANT REPRESENTATIONS AND RISKS
69
+
70
+ Motivated by the generalization error bounds in Thm. 3.1 and 3.2 in Sec. 3, in this section we propose our bound minimization algorithm LIRR. Since the last two terms reflect the noise level, complexity measures and error caused by finite samples, respectively, we then hope to optimize the upper bound by minimizing the first four terms. The first two terms are the convex combination of empirical errors of $h$ on $S$ and $T$ , which can be optimized with the labeled source and target data. The third term measures the distance of representations between the source and target domains, which is a good inspiration for us to learn the invariant representation (Ganin et al., 2016) across domains. The fourth term corresponds to the distance of the optimal classifiers between $S$ and $T$ . To minimize this term, the model is forced to learn the data representations that induce the same optimal predictors for both source and target domains, which exactly corresponds to the principle of invariant risk minimization (Arjovsky et al., 2019).
71
+
72
+ # 4.1 INFORMATION THEORETIC INTERPRETATION
73
+
74
+ To better understand why the bound minimization strategy can solve the intrinsic problems of Semi-DA, in what follows we provide interpretations from an information-theoretic perspective.
75
+
76
+ Invariant Representations Learning invariant representations corresponds to minimizing the third term of the bound Thm. 3.1 and bound Thm. 3.2. We consider a feature transformation $Z = g ( X )$ that can obtain the invariant representation $Z$ from input $X$ . The invariance on representations can be described as achieving statistical independence $D \perp Z$ , where $D$ stands for the domain index. This independence is equivalent to the minimization of mutual information $I ( D ; Z )$ . To see this, if $I ( D ; Z ) \bar { = } 0$ , then $\mathcal { D } _ { S } ( Z ) = \mathcal { D } _ { T } ( Z )$ , so the third term in the bounds will vanish. Intuitively, this means that by looking at the representations $Z$ , even a well-trained domain classifier $\mathcal { C } ( \cdot )$ cannot correctly guess the domain index $D$ . We also call the learned feature transformation $g : \mathcal { X } \mathcal { Z }$ the invariant encoder.
77
+
78
+ Invariant Risks Learning invariant risks corresponds to minimizing the fourth term of the bound Thm. 3.1 and bound Thm. 3.2. Inspired by Arjovsky et al. (2019), we want to identify a subset of feature representation through feature transformation $Z = g ( X )$ that best supports an invariant optimal predictor for source and target domains. That means the identified feature representation $Z \ = \ g ( X )$ can induce the same optimal predictors. This objective can be interpreted with a conditional independence $D \perp Y \mid Z$ , which is equivalent to minimizing $I ( D ; Y \mid Z )$ . To see this, when the conditional mutual information of $I ( D ; Y \mid Z )$ equal 0, the two conditional distributions $\operatorname* { P r } _ { S } ( Y \mid Z )$ and $\operatorname* { P r } _ { T } ( Y \mid Z )$ coincide with each other. As a result, the optimal predictors become the same across domains, so the fourth term in our bounds Thm. 3.1, Thm. 3.2 will vanish.
79
+
80
+ In summary, our learning objective on invariant representations and invariant risks are achievable with the minimization on $I ( D ; Z )$ and $I ( D ; Y \mid Z )$ . It is instructive to present the integrated form as in Eq. 2. In words, the integrated form suggests the independence of $\overline { { D } } \perp ( Y , Z )$ . We regard the independence as an intrinsic objective for domain adaptation since it implies an alignment of the joint distributions over $( Y , Z )$ across domains, as opposed to only the marginal distributions over $Z$ .
81
+
82
+ $$
83
+ I ( D ; Y , Z ) = \underbrace { I ( D ; Z ) } _ { \mathrm { I n v a r i a n t R e p r e s e n t a t i o n } } + \underbrace { I ( D ; Y \mid Z ) } _ { \mathrm { I n v a r i a n t R i s k } }
84
+ $$
85
+
86
+ # 4.2 ALGORITHM DESIGN
87
+
88
+ To learn invariant representations, that is achieving marginal independence of $Y \perp Z$ and minimization on $\operatorname* { m i n } I ( Y ; Z )$ , we adopt the adversarial training method as in Ganin et al. (2016). The invariant representation objective focuses on learning the feature transformation $g ( \cdot )$ to obtain the invariant representations from input $X$ , which can fool the domain classifier $\mathcal { C }$ . This part of the objective function can be described as in Eq. 3.
89
+
90
+ $$
91
+ \mathcal { L } _ { \mathrm { r e p } } ( g , \mathcal { C } ) = \mathbb { E } _ { X \sim \mathcal { D } _ { S } ( X ) } [ \log ( \mathcal { C } ( g ( X ) ) ) ] + \mathbb { E } _ { X \sim \mathcal { D } _ { T } ( X ) } [ \log ( 1 - \mathcal { C } ( g ( X ) ) ) ]
92
+ $$
93
+
94
+ To learn invariant risks, that is achieving conditional independence of $D \perp Y \mid Z$ , we resort to the conditional mutual information minimization on $I ( D ; Y \mid ^ { \circ } Z )$ , and further convert $\operatorname* { m i n } I ( D ; Y \mid Z )$ objective to the minimization of the difference between the two conditional entropies, as in Eq. 4.
95
+
96
+ $$
97
+ \operatorname* { m i n } I ( D ; Y \mid Z ) = \operatorname* { m i n } H ( Y \mid Z ) - H ( Y \mid D , Z )
98
+ $$
99
+
100
+ The following proposition gives a variational form of the conditional entropy as infimum over a family of cross-entropies, where $L$ denotes the cross-entropy loss.
101
+
102
+ Proposition 4.1. Farnia & Tse (2016) $\begin{array} { r } { H ( Y \mid Z ) = \operatorname* { i n f } _ { f } \mathbb { E } [ L ( Y ; f ( Z ) ) ] . } \end{array}$
103
+
104
+ Using the above variational form, the minimization of the conditional entropies could be transformed to a minimization of the cross-entropy losses of domain-invariant predictor $f _ { i }$ and domain-dependent
105
+
106
+ predictor $f _ { d }$ . The learning objective of the two predictors can be shown as in Eq. 5 and Eq. 6, respectively. Notice that the domain-dependent loss $\mathcal { L } _ { d }$ should be no greater than the domaininvariant loss $\mathcal { L } _ { i }$ , because of the additional domain information.
107
+
108
+ $$
109
+ \operatorname* { m i n } _ { g , f _ { i } } \mathcal { L } _ { i } = \mathbb { E } _ { ( x , y ) \sim \mathcal { D } _ { S } , \mathcal { D } _ { \tilde { T } } } [ L ( y , f _ { i } ( g ( x ) ) ) ]
110
+ $$
111
+
112
+ $$
113
+ \operatorname* { m i n } _ { g , f _ { d } } \mathcal { L } _ { d } = \mathbb { E } _ { d \sim D } \mathbb { E } _ { ( x , y ) \sim \mathcal { D } _ { S } , \mathcal { D } _ { \widetilde { T } } } [ L ( y , f _ { d } ( g ( x ) , d ) ) ]
114
+ $$
115
+
116
+ Hence, the overall learning objective of Eq. 4 can be re-written with the following loss functions.
117
+
118
+ $$
119
+ \operatorname* { m i n } _ { g , f _ { i } } \operatorname* { m a x } _ { f _ { d } } \mathcal { L } _ { \mathrm { r i s k } } = \mathcal { L } _ { i } + \lambda _ { r i s k } ( \mathcal { L } _ { i } - \mathcal { L } _ { d } )
120
+ $$
121
+
122
+ The first term of Eq. 7 regards to the supervised training on source and target labeled data; the second term regards to approaching the minimization objective of $H ( Y \mid Z ) - H ( Y \mid D , Z )$ , as well as achieving the predictions’ invariance between $f _ { i }$ and $f _ { d }$ over the same representation $z$ . If we take the example of binary classification of bear and dog as in Eq . 1, if $f _ { i }$ and $f _ { d }$ have their prediction of bear according to a proper representation of animal’s shape, then any domain information will not contribute to the prediction, thus the predictor captures the invariant part and achieves invariant risks.
123
+
124
+ In general, as the factorization in Eq. 2 suggests, in order to achieve improved adaptation performance by minimizing the accuracy discrepancy between domains, we need to enforce the joint independence of $( Y , Z ) \perp D$ by learning feature transformation $g$ . To achieve it, we propose our learning objective of LIRR as in Eq. 8, where $\lambda _ { \mathrm { { r i s k } } }$ and $\lambda _ { \mathrm { { r e p } } }$ are set to 1 by default.
125
+
126
+ $$
127
+ \operatorname* { m i n } _ { g , f _ { i } } \operatorname* { m a x } _ { \mathcal { C } , f _ { d } } \mathcal { L } _ { \mathrm { L I R R } } ( g , f _ { i } , f _ { d } , \mathcal { C } ) = \mathcal { L } _ { \mathrm { r i s k } } ( g , f _ { i } , f _ { d } ) + \lambda _ { \mathrm { r e p } } \mathcal { L } _ { \mathrm { r e p } } ( g , \mathcal { C } )
128
+ $$
129
+
130
+ At a high level, the first term $\mathcal { L } _ { \mathrm { r i s k } } ( g , f _ { i } , f _ { d } )$ in the above optimization formulation stems from the minimization of $I ( Y ; D \mid Z )$ , and the second term $\mathcal { L } _ { \mathrm { r e p } } ( g , \bar { \mathcal { C } } )$ is designed to minimize $I ( D ; Z )$ .
131
+
132
+ # 5 EXPERIMENTS
133
+
134
+ In this section, we introduce the experimental settings, results analysis, and ablation study for the experiments on both classification and regression tasks. More experimental settings, implementation details, and results are included in the Appendix.
135
+
136
+ # 5.1 IMAGE CLASSIFICATION
137
+
138
+ Datasets: To verify the efficacy of LIRR on the image classification problem, we conduct experiments on NICO (He et al., 2020), VisDA2017 (Peng et al., 2017), OfficeHome (Venkateswara et al., 2017), and DomainNet (Peng et al., 2019) datasets. NICO is dedicatedly designed for O.O.D. (out-ofdistribution) image classification. It has two superclasses animal and vehicle, and each superclass contains different environments1, e.g. bear on grass or snow. VisDA2017 contains Train (T) domain and Validation (V) domain with 12 classes in each domain. Office-Home includes four domains: RealWorld (RW), Clipart (C), Art (A), and Product (P), with 65 classes in each domain. DomainNet is the largest domain adaptation dataset for image classification with over 600k images from 6 domains: Clipart (C), Infograph (I), Painting (P), Quickdraw (Q), Real (R), and Sketch (S), with 345 classes in each domain. For each dataset, we randomly pick source-target pairs for the evaluation. To satisfy the setting of Semi-DA, which has access to a few labeled target samples, we randomly select a small ratio ( $1 \%$ or $5 \%$ ) of the target data as labeled target samples.
139
+
140
+ Baselines: We compare our approach with the following representative domain adaptation methods: DANN (Ganin et al., 2016), CDAN (Long et al., 2018), IRM (Arjovsky et al., 2019), ADR (Saito et al., 2017), and MME (Saito et al., 2019); $\mathbf { s } { + } \mathbf { T }$ , a model trained with the labeled source and the few labeled target samples without using unlabeled target samples; and Full T, a model trained with the fully labeled target. All these methods are implemented and evaluated under the Semi-DA setting.
141
+
142
+ Table 1: Accuracy $( \% )$ ) comparison (higher means better) on NICO, OfficeHome, DomainNet, and VisDA2017 with $1 \%$ (above) and $5 \%$ (below) labeled target data (mean $\pm$ std).
143
+
144
+ <table><tr><td>1% labeled target</td><td colspan="2">NICO Animal</td><td colspan="2">NICO Traffic</td><td colspan="3">OfficeHome</td><td colspan="3">Domainnet</td><td>VisDA2017</td></tr><tr><td>Method</td><td>Grass to Snow</td><td>Snow to Grass</td><td>Sunset to Beach</td><td>Beach to Sunset</td><td>Art to Real</td><td>Real to Prod.</td><td>Prod. to Clip.</td><td>Real to Clip.</td><td>Sketch to Real</td><td>Clip. to Sketch</td><td>Train to Val.</td></tr><tr><td>S+T</td><td>70.06±2.14</td><td>80.08±1.21</td><td>71.37±1.54</td><td>70.07±1.28</td><td>69.20±0.15</td><td>74.63±0.13</td><td>48.65±0.12</td><td>48.37±0.08</td><td>57.44±0.07</td><td>44.16±0.05</td><td>76.17±0.15</td></tr><tr><td>DANN</td><td>83.80±1.73</td><td>81.57±1.51</td><td>72.69±1.35</td><td>72.03±1.05</td><td>72.20±0.23</td><td>78.13±0.26</td><td>52.47±0.21</td><td>51.53±0.19</td><td>60.23±0.15</td><td>46.36±0.15</td><td>78.91±0.25</td></tr><tr><td>CDAN</td><td>82.33±0.59</td><td>78.25±0.74</td><td>75.53±0.55</td><td>74.31±0.47</td><td>72.98±0.33</td><td>79.15±0.31</td><td>53.80±0.33</td><td>50.67±0.25</td><td>60.53±0.23</td><td>44.66±0.22</td><td>80.23±0.41</td></tr><tr><td>ADR</td><td>73.06±1.20</td><td>76.74±0.89</td><td>72.85±0.95</td><td>69.47±0.81</td><td>70.55±0.27</td><td>76.62±0.28</td><td>49.47±0.31</td><td>49.94±0.21</td><td>59.63±0.22</td><td>44.73±0.21</td><td>80.40±0.36</td></tr><tr><td>IRM</td><td>78.55±0.34</td><td>78.27±0.51</td><td>64.58±2.41</td><td>69.10±2.36</td><td>71.13±0.25</td><td>77.60±0.24</td><td>51.53±0.21</td><td>51.86±0.13</td><td>58.04±0.12</td><td>46.96±0.15</td><td>80.79±0.27</td></tr><tr><td>MME</td><td>87.12±0.76</td><td>79.52±0.43</td><td>78.69±0.86</td><td>74.21±0.78</td><td>72.66±0.18</td><td>78.07±0.17</td><td>52.78±0.16</td><td>51.04±0.12</td><td>60.35±0.12</td><td>45.09±0.14</td><td>80.52±0.35</td></tr><tr><td>LIRR</td><td>86.80±0.61</td><td>84.78±0.53</td><td>71.85±0.58</td><td>72.04±0.75</td><td>73.12±0.19</td><td>79.58±0.22</td><td>54.33±0.24</td><td>52.39±0.15</td><td>61.20±0.10</td><td>47.31±0.11</td><td>81.67±0.22</td></tr><tr><td>LIRR+CosC</td><td>89.67±0.72</td><td>89.73±0.68 97.98±0.23</td><td>81.00±0.89</td><td>79.98±0.95</td><td>73.62±0.21</td><td>80.20±0.23</td><td>53.84±0.19 78.27±0.23</td><td>53.42±0.09</td><td>61.79±0.11</td><td>47.83±0.10 62.66±0.07</td><td>82.31±0.21</td></tr><tr><td>Full T</td><td colspan="2">94.52±0.74</td><td colspan="2">99.80±0.87 97.64±0.96</td><td colspan="3">83.67±0.12 91.42±0.05</td><td colspan="3">72.40±0.05 77.11±0.07</td><td>89.56±0.14</td></tr><tr><td>5% labeled target</td><td></td><td>NICO Animal</td><td>NICO Traffic</td><td></td><td></td><td>OfficeHome</td><td></td><td></td><td>Domainnet</td><td></td><td>VisDA2017</td></tr><tr><td>Method</td><td>Grass to Snow</td><td>Snow to Grass</td><td>Sunset to Beach</td><td>Beach to Sunset</td><td>Art to Real</td><td>Real to Prod.</td><td>Prod. to Clip.</td><td>Real to Clip.</td><td>Sketch to Real</td><td>Clip. to Sketch</td><td>Train to Val.</td></tr><tr><td>S+T</td><td>75.83±1.89</td><td>83.38±1.23</td><td>86.45±1.08</td><td>86.13±0.87</td><td>72.10±0.13</td><td>78.84±0.12</td><td>54.51±0.10</td><td>59.80±0.13</td><td>66.14±0.11</td><td>51.71±0.09</td><td>82.87±0.12</td></tr><tr><td>DANN</td><td>76.13±0.73</td><td>84.61±1.21</td><td>84.13±1.20</td><td>87.50±1.09</td><td>75.47±0.22</td><td>80.41±0.21</td><td>59.37±0.20</td><td>61.31±0.14</td><td>68.21±0.20</td><td>52.78±0.22</td><td>83.95±0.10</td></tr><tr><td>CDAN</td><td>82.33±0.59</td><td>83.08±2.13</td><td>86.97±0.47</td><td>87.50±0.56</td><td>74.92±0.29</td><td>80.57±0.33</td><td>59.14±0.31</td><td>62.18±0.22</td><td>68.49±0.19</td><td>53.77±0.21</td><td>83.31±0.32</td></tr><tr><td>ADR</td><td>80.36±0.31</td><td>80.97±0.98</td><td>84.50±0.91</td><td>75.29±0.87</td><td>75.47±0.27</td><td>79.27±0.26</td><td>58.24±0.27</td><td>61.22±0.38</td><td>67.96±0.37</td><td>53.19±0.32</td><td>83.57±0.43</td></tr><tr><td>IRM</td><td>81.57±1.01</td><td>84.29±1.10</td><td>85.71±2.20</td><td>83.61±2.17</td><td>74.71±0.21</td><td>79.67±0.25</td><td>58.98±0.22</td><td>60.69±0.30</td><td>67.81±0.28</td><td>52.31±0.25</td><td>82.62±0.29</td></tr><tr><td>MME</td><td>87.80±0.87</td><td>85.50±0.95</td><td>92.02±0.85</td><td>90.76±0.81</td><td>75.24±0.22</td><td>82.45±0.18</td><td>61.75±0.19</td><td>62.31±0.11</td><td>69.02±0.18</td><td>53.88±0.14</td><td>84.12±0.22</td></tr><tr><td>LIRR</td><td>85.90±0.98</td><td>85.24±0.73</td><td>90.77±0.42</td><td>88.90±0.39</td><td>76.14±0.18</td><td>83.64±0.21</td><td>62.61±0.17</td><td>62.74±0.21</td><td>69.35±0.13</td><td>54.05±0.17</td><td>84.47±0.19</td></tr><tr><td>LIRR+CosC</td><td>88.97±0.45</td><td>88.22±0.55</td><td>92.70±0.87</td><td>91.50±1.05</td><td>76.63±0.19</td><td>83.45±0.22</td><td>62.84±0.23</td><td>63.03±0.17</td><td>69.52±0.09</td><td>54.44±0.12</td><td>85.06±0.17</td></tr><tr><td>Full T</td><td>94.52±0.74</td><td>97.98±0.23</td><td>99.80±0.87</td><td>97.64±0.96</td><td>83.67±0.12</td><td>91.42±0.05</td><td>78.27±0.23</td><td>72.40±0.05</td><td>77.11±0.07</td><td>62.66±0.07</td><td>89.56±0.14</td></tr></table>
145
+
146
+ Table 2: Mean absolute error (MAE, lower means better) comparison on Citycam with $1 \%$ and $5 \%$ labeled target data (mean $\pm$ std). The best is emphasized in bold.
147
+
148
+ <table><tr><td rowspan="2">Method</td><td colspan="2">253 to 398</td><td colspan="2">170 to 398</td><td colspan="2">511 to 398</td></tr><tr><td>1%</td><td>5%</td><td>1%</td><td>5%</td><td>1%</td><td>5%</td></tr><tr><td>S+T</td><td>3.20±0.03</td><td>2.42±0.02</td><td>3.12±0.02</td><td>2.07±0.01</td><td>3.45±0.02</td><td>2.82±0.04</td></tr><tr><td>ADDA</td><td>3.13±0.01</td><td>2.34±0.03</td><td>3.05±0.03</td><td>2.05±0.01</td><td>2.87±0.03</td><td>2.45±0.02</td></tr><tr><td>DANN</td><td>3.08±0.02</td><td>2.38±0.02</td><td>3.01±0.04</td><td>2.01±0.02</td><td>2.95±0.03</td><td>2.41±0.04</td></tr><tr><td>IRM</td><td>3.11±0.02</td><td>2.27±0.03</td><td>2.91±0.02</td><td>2.02±0.01</td><td>2.89±0.05</td><td>2.33±0.03</td></tr><tr><td>LIRR</td><td>2.96±0.02</td><td>2.13±0.01</td><td>2.84±0.01</td><td>1.98±0.02</td><td>2.80±0.03</td><td>2.25±0.01</td></tr><tr><td>Full T</td><td>1.68±0.01</td><td>1.68±0.01</td><td>1.68±0.01</td><td>1.68±0.01</td><td>1.68±0.01</td><td>1.68±0.01</td></tr></table>
149
+
150
+ # 5.2 TRAFFIC COUNTING REGRESSION
151
+
152
+ Datasets: To verify the efficacy of LIRR on the regression problem, we conduct experiments on WebCamT dataset (Zhang et al., 2017) for the Traffic Counting Regression task. WebCamT has 60,000 traffic video frames annotated with vehicle bounding boxes and counts, collected from 16 surveillance cameras with different locations and recording time. We pick three source-target pairs with different visual similarities: $2 5 3 3 9 8$ , $1 7 0 \to 3 9 8$ , $5 1 1 3 9 8$ (digit denotes camera ID).
153
+
154
+ Baselines: The baseline models for this task are generally aligned with our classification experiments except the methods that can not be applied to the regression task (e.g. MME, ADR, and CDAN). Thus, for the traffic counting regression task, we compare with the baseline methods: ADDA (Tzeng et al., 2017), DANN, IRM, $\mathbf { s } { + } \mathbf { T } .$ , and FullT.
155
+
156
+ # 5.3 EXPERIMENTAL RESULTS ANALYSIS
157
+
158
+ The classification results are shown in Table 1 with $1 \%$ and $5 \%$ labeled target data. LIRR outperforms the baselines on all the five adaptation datasets, which consistently indicates its effectiveness. As our learning objective suggests, LIRR can be viewed as achieving $\overset { \cdot } { D } \perp ( Y , Z )$ , which combines the benefits of achieving $D \perp Y$ and $D \perp Y \mid Z$ . In contrast, DANN, CDAN, and ADDA can be viewed as only achieving $D \perp Z$ or its variant form; and IRM can be viewed as an approximation to achieve $D \perp Y \mid Z$ using gradient penalty. LIRR outperforms all these methods on different datasets with $1 \%$ or $5 \%$ labeled target data, demonstrating simultaneously learning invariant representations and risks achieves better generalization for domain adaptation than only learning one of them. Such results are consistent with our theoretical analysis and algorithm design objective. Besides, when applying LIRR along with the cosine classifier $\mathbf { ( 0 s C ) }$ module, which is also used in MME, the performance further outperforms MME by a larger margin.
159
+
160
+ The traffic counting regression results are shown in Table 2 with $1 \%$ and $5 \%$ labeled target data.
161
+ The superiority of LIRR over baseline methods is supported by its lowest MAE on all the settings.
162
+
163
+ ![](images/b8b7f2fd4d10f8ef93240827aa2a844a87a132d9b018178a7cf50f167b7128ae.jpg)
164
+ Figure 2: Performance comparison with increasing number of labeled target data, from Domain Art to RealWorld on Officehome dataset. X axis: the ratio of labeled target data; Y axis: accuracy.
165
+
166
+ DANN and ADDA are the representative methods of learning invariant representations, while IRM is the representative method of learning invariant risks. Both DANN, ADDA, and IRM achieve lower error than $\mathrm { \bf S } + \mathrm { \bf T } _ { ; }$ , which means learning invariant representations or invariant risks can benefit Semi-DA to some extent on the regression task. Similar with the observations from the classification experiments, LIRR outperforms both DANN, ADDA, and IRM, demonstrating simultaneously learning invariant representations and risks achieves better adaptation than only aligning one of them.
167
+
168
+ # 5.4 ABLATION STUDY
169
+
170
+ Comparisons with optimizing single invariant objective. As pointed out in Sec. 5.3, LIRR is simultaneously learning invariant representations and risks, while DANN, CDAN, ADDA can be viewed as only achieving invariant representations or its variant forms, and IRM is an approximation to solely achieve invariant risks. From the results on both classification and regression tasks, we can further acknowledge the importance of simultaneously optimizing these two invariant items together. As shown in Table 1 and 2, all the methods that only minimize one single invariant objective perform worse than LIRR, indicating our method is effective and consistent to the theoretical results.
171
+
172
+ Increasing proportions of labeled target data. Revisiting Thm. 3.1 and Thm. 3.2, we know that as the proportion of the labeled target data rises, the upper bound of $\epsilon _ { T } ( h )$ gets tighter. Accordingly, the margin between LIRR and other methods becomes larger, as shown in Fig. 2. Another riveting observation from Fig. 2 is, LIRR and its variant LIRR $\mathrm { + C o s C }$ even achieve better performance than the oracle by large margin with $2 5 \%$ or $30 \%$ labeled target data. Stunning but plausible, with source and a few labeled target data, LIRR can learn more robust and generalized representations and achieve better performance on the target, comparing with the model trained by the fully labeled target data.
173
+
174
+ Cosine Classifier. As introduced in Saito et al. (2019), cosine classifier is proved to be helpful for improving the model’s performance on Semi-DA. As shown in Table. 1, the same phenomenon can be found when comparing the performance of LIRR and LIRR+CosC. For almost all the cases, LIRR plus cosine classifier module achieves higher accuracy than LIRR alone.
175
+
176
+ # 6 RELATED WORK
177
+
178
+ Domain Adaptation Most existing research on domain adaptation focuses on the unsupervised setting, i.e. the data from target domain are fully unlabeled. Recent deep unsupervised domain adaptation (UDA) methods usually employ a conjoined architecture with two streams to represent the models for the source and target domains, respectively (Zhuo et al., 2017). Besides the task loss on the labeled source domain, another alignment loss is designed to align the source and target domains, such as discrepancy loss (Long et al., 2015; Sun et al., 2016; Zhuo et al., 2017; Adel et al., 2017; Kang et al., 2019; Chen et al., 2020), adversarial loss (Bousmalis et al., 2017; Tzeng et al., 2017; Shrivastava et al., 2017; Russo et al., 2018; Zhao et al., 2019b), and self-supervision loss (Ghifary et al., 2015; 2016; Bousmalis et al., 2016; Carlucci et al., 2019; Feng et al., 2019; Kim et al., 2020; Mei et al., 2020). Semi-DA deals with the domain adaptation problem where some target labels are available (Donahue et al., 2013; Li et al., 2014; Yao et al., 2015; Ao et al., 2017). Saito et al. (2019) empirically observed that UDA methods often fail in improving accuracy in Semi-DA and proposed a min-max Entropy approach that adversarially optimizes an adaptive few-shot model. Different from these works, our proposed method aims to align both the marginal feature distributions as well as the conditional distributions of the label over the features, which can arguably overcome the limitations that exist in UDA methods that only align feature distributions (Zhao et al., 2019a; Wu et al., 2019).
179
+
180
+ Invariant Risk Minimization In a seminal work, Arjovsky et al. (2019) consider the question that data are collected from multiple envrionments with different distributions where spurious correlations are due to dataset biases. This part of spurious correlation will confuse model to build predictions on unrelated correlations (Lake et al., 2017; Janzing & Scholkopf, 2010; Schölkopf et al., 2012) rather than true causal relations. IRM (Arjovsky et al., 2019) estimates invariant and causal variables from multiple environments by regularizing on predictors to find data represenation matching for all environments. Chang et al. (2020) extends IRM to neural predictions and employ the environment aware predictor to learn a rationale feature encoder. As a comparison, in this work we provably show that IRM is not sufficient to ensure reduced accuracy discrepancy across domains, and we propose to align the marginal features as well simultaneously.
181
+
182
+ # 7 CONCLUSION
183
+
184
+ Compared with UDA, the setting of semi-DA is more realistic and has broader practical applications. In this paper we propose finite-sample generalization bounds for both classification and regression problems under Semi-DA. Our results shed new light on Semi-DA by suggesting a principled way of simultaneously learning invariant representations and risks across domains, leading to the bound minimization algorithm - LIRR. Extensive experiments on real-world datasets, including both image classification and traffic counting tasks, demonstrate the effectiveness of LIRR as well as its consistency to our theoretical results.
185
+
186
+ # REFERENCES
187
+
188
+ Tameem Adel, Han Zhao, and Alexander Wong. Unsupervised domain adaptation with a relaxed covariate shift assumption. In Thirty-First AAAI Conference on Artificial Intelligence, 2017.
189
+
190
+ Shuang Ao, Xiang Li, and Charles X Ling. Fast generalized distillation for semi-supervised domain adaptation. In AAAI Conference on Artificial Intelligence, 2017.
191
+
192
+ Martin Arjovsky, Léon Bottou, Ishaan Gulrajani, and David Lopez-Paz. Invariant risk minimization. arXiv preprint arXiv:1907.02893, 2019.
193
+
194
+ Shai Ben-David, John Blitzer, Koby Crammer, Alex Kulesza, Fernando Pereira, and Jennifer Wortman Vaughan. A theory of learning from different domains. Machine learning, 79(1-2):151–175, 2010.
195
+
196
+ John Blitzer, Koby Crammer, Alex Kulesza, Fernando Pereira, and Jennifer Wortman. Learning bounds for domain adaptation. In Advances in neural information processing systems, pp. 129–136, 2008.
197
+
198
+ Konstantinos Bousmalis, George Trigeorgis, Nathan Silberman, Dilip Krishnan, and Dumitru Erhan. Domain separation networks. In Advances in Neural Information Processing Systems, pp. 343–351, 2016.
199
+
200
+ Konstantinos Bousmalis, Nathan Silberman, David Dohan, Dumitru Erhan, and Dilip Krishnan. Unsupervised pixel-level domain adaptation with generative adversarial networks. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 3722–3731, 2017.
201
+
202
+ Fabio M Carlucci, Antonio D’Innocente, Silvia Bucci, Barbara Caputo, and Tatiana Tommasi. Domain generalization by solving jigsaw puzzles. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2229–2238, 2019.
203
+
204
+ Shiyu Chang, Yang Zhang, Mo Yu, and Tommi S Jaakkola. Invariant rationalization. arXiv preprint arXiv:2003.09772, 2020.
205
+
206
+ Chao Chen, Zhihang Fu, Zhihong Chen, Sheng Jin, Zhaowei Cheng, Xinyu Jin, and Xian-Sheng Hua. Homm: Higher-order moment matching for unsupervised domain adaptation. arXiv preprint arXiv:1912.11976, 2019.
207
+
208
+ Chao Chen, Zhihang Fu, Zhihong Chen, Sheng Jin, Zhaowei Cheng, Xinyu Jin, and Xian-Sheng Hua. Homm: Higher-order moment matching for unsupervised domain adaptation. In AAAI Conference on Artificial Intelligence, 2020.
209
+
210
+ Remi Tachet des Combes, Han Zhao, Yu-Xiang Wang, and Geoff Gordon. Domain adaptation with conditional distribution matching and generalized label shift. arXiv preprint arXiv:2003.04475, 2020.
211
+
212
+ Jeff Donahue, Judy Hoffman, Erik Rodner, Kate Saenko, and Trevor Darrell. Semi-supervised domain adaptation with instance constraints. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 668–675, 2013.
213
+
214
+ Farzan Farnia and David Tse. A minimax approach to supervised learning. In Advances in Neural Information Processing Systems, pp. 4240–4248, 2016.
215
+
216
+ Zeyu Feng, Chang Xu, and Dacheng Tao. Self-supervised representation learning from multi-domain data. In IEEE International Conference on Computer Vision, pp. 3245–3255, 2019.
217
+
218
+ Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. The Journal of Machine Learning Research, 17(1):2096–2030, 2016.
219
+
220
+ Muhammad Ghifary, W Bastiaan Kleijn, Mengjie Zhang, and David Balduzzi. Domain generalization for object recognition with multi-task autoencoders. In Proceedings of the IEEE international conference on computer vision, pp. 2551–2559, 2015.
221
+
222
+ Muhammad Ghifary, W Bastiaan Kleijn, Mengjie Zhang, David Balduzzi, and Wen Li. Deep reconstruction-classification networks for unsupervised domain adaptation. In European Conference on Computer Vision, pp. 597–613, 2016.
223
+
224
+ Steve Hanneke and Samory Kpotufe. On the value of target data in transfer learning. In Advances in Neural Information Processing Systems, pp. 9871–9881, 2019.
225
+
226
+ Yue He, Zheyan Shen, and Peng Cui. Towards non-iid image classification: A dataset and baselines. Pattern Recognition, pp. 107383, 2020.
227
+
228
+ Dominik Janzing and Bernhard Scholkopf. Causal inference using the algorithmic markov condition. IEEE Transactions on Information Theory, 56(10):5168–5194, 2010.
229
+
230
+ Guoliang Kang, Lu Jiang, Yi Yang, and Alexander G Hauptmann. Contrastive adaptation network for unsupervised domain adaptation. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 4893–4902, 2019.
231
+
232
+ Donghyun Kim, Kuniaki Saito, Tae-Hyun Oh, Bryan A Plummer, Stan Sclaroff, and Kate Saenko. Cross-domain self-supervised learning for domain adaptation with few source labels. arXiv:2003.08264, 2020.
233
+
234
+ David Krueger, Ethan Caballero, Joern-Henrik Jacobsen, Amy Zhang, Jonathan Binas, Remi Le Priol, and Aaron Courville. Out-of-distribution generalization via risk extrapolation (rex). arXiv preprint arXiv:2003.00688, 2020.
235
+
236
+ Brenden M Lake, Tomer D Ullman, Joshua B Tenenbaum, and Samuel J Gershman. Building machines that learn and think like people. Behavioral and brain sciences, 40, 2017.
237
+
238
+ Aoxue Li, Tiange Luo, Zhiwu Lu, Tao Xiang, and Liwei Wang. Large-scale few-shot learning: Knowledge transfer with class hierarchy. In CVPR, pp. 7212–7220, 2019.
239
+
240
+ Limin Li and Zhenyue Zhang. Semi-supervised domain adaptation by covariance matching. IEEE transactions on pattern analysis and machine intelligence, 41(11):2724–2739, 2018.
241
+
242
+ Wen Li, Lixin Duan, Dong Xu, and Ivor W Tsang. Learning with augmented features for supervised and semi-supervised heterogeneous domain adaptation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 36(6):1134–1148, 2014.
243
+
244
+ Lu Liu, Tianyi Zhou, Guodong Long, Jing Jiang, Lina Yao, and Chengqi Zhang. Prototype propagation networks (ppn) for weakly-supervised few-shot learning on category graph. arXiv preprint arXiv:1905.04042, 2019a.
245
+
246
+ Lu Liu, Tianyi Zhou, Guodong Long, Jing Jiang, and Chengqi Zhang. Learning to propagate for graph meta-learning. In Advances in Neural Information Processing Systems, pp. 1037–1048, 2019b.
247
+
248
+ Mingsheng Long, Yue Cao, Jianmin Wang, and Michael I Jordan. Learning transferable features with deep adaptation networks. arXiv preprint arXiv:1502.02791, 2015.
249
+
250
+ Mingsheng Long, Zhangjie Cao, Jianmin Wang, and Michael I Jordan. Conditional adversarial domain adaptation. In Advances in Neural Information Processing Systems, pp. 1640–1650, 2018.
251
+
252
+ Ke Mei, Chuang Zhu, Jiaqi Zou, and Shanghang Zhang. Instance adaptive self-training for unsupervised domain adaptation. arXiv preprint arXiv:2008.12197, 2020.
253
+
254
+ Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar. Foundations of Machine Learning. The MIT Press, 2nd edition, 2018. ISBN 0262039400.
255
+
256
+ Xingchao Peng, Ben Usman, Neela Kaushik, Judy Hoffman, Dequan Wang, and Kate Saenko. Visda: The visual domain adaptation challenge. arXiv:1710.06924, 2017.
257
+
258
+ Xingchao Peng, Qinxun Bai, Xide Xia, Zijun Huang, Kate Saenko, and Bo Wang. Moment matching for multi-source domain adaptation. In IEEE International Conference on Computer Vision, pp. 1406–1415, 2019.
259
+
260
+ Maithra Raghu, Chiyuan Zhang, Jon Kleinberg, and Samy Bengio. Transfusion: Understanding transfer learning for medical imaging. In Advances in Neural Information Processing Systems, pp. 3342–3352, 2019.
261
+
262
+ Ievgen Redko, Amaury Habrard, and Marc Sebban. Theoretical analysis of domain adaptation with optimal transport. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 737–753. Springer, 2017.
263
+
264
+ Ievgen Redko, Emilie Morvant, Amaury Habrard, Marc Sebban, and Younès Bennani. Advances in Domain Adaptation Theory. Elsevier, 2019.
265
+
266
+ Paolo Russo, Fabio M Carlucci, Tatiana Tommasi, and Barbara Caputo. From source to target and back: symmetric bi-directional adaptive gan. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 8099–8108, 2018.
267
+
268
+ Kuniaki Saito, Yoshitaka Ushiku, Tatsuya Harada, and Kate Saenko. Adversarial dropout regularization. arXiv preprint arXiv:1711.01575, 2017.
269
+
270
+ Kuniaki Saito, Donghyun Kim, Stan Sclaroff, Trevor Darrell, and Kate Saenko. Semi-supervised domain adaptation via minimax entropy. In IEEE International Conference on Computer Vision, pp. 8050–8058, 2019.
271
+
272
+ Bernhard Schölkopf, Dominik Janzing, Jonas Peters, Eleni Sgouritsa, Kun Zhang, and Joris Mooij. On causal and anticausal learning. In Proceedings of the 29th International Coference on International Conference on Machine Learning, pp. 459–466, 2012.
273
+
274
+ Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE international conference on computer vision, pp. 618–626, 2017.
275
+
276
+ Evan Shelhamer, Jonathan Long, and Trevor Darrell. Fully convolutional networks for semantic segmentation. IEEE Annals of the History of Computing, (04):640–651, 2017.
277
+
278
+ Ashish Shrivastava, Tomas Pfister, Oncel Tuzel, Joshua Susskind, Wenda Wang, and Russell Webb. Learning from simulated and unsupervised images through adversarial training. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 2107–2116, 2017.
279
+
280
+ Jiaming Song, Pratyusha Kalluri, Aditya Grover, Shengjia Zhao, and Stefano Ermon. Learning controllable fair representations. In The 22nd International Conference on Artificial Intelligence and Statistics, pp. 2164–2173, 2019.
281
+
282
+ Daniel Steinberg, Alistair Reid, Simon O’Callaghan, Finnian Lattimore, Lachlan McCalman, and Tiberio Caetano. Fast fair regression via efficient approximations of mutual information. arXiv preprint arXiv:2002.06200, 2020.
283
+
284
+ Baochen Sun, Jiashi Feng, and Kate Saenko. Return of frustratingly easy domain adaptation. In AAAI Conference on Artificial Intelligence, pp. 2058–2065, 2016.
285
+
286
+ Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. Adversarial discriminative domain adaptation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7167–7176, 2017.
287
+
288
+ Hemanth Venkateswara, Jose Eusebio, Shayok Chakraborty, and Sethuraman Panchanathan. Deep hashing network for unsupervised domain adaptation. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 5018–5027, 2017.
289
+
290
+ Yifan Wu, Ezra Winston, Divyansh Kaushik, and Zachary Lipton. Domain adaptation with asymmetrically-relaxed distribution alignment. arXiv preprint arXiv:1903.01689, 2019.
291
+
292
+ Ting Yao, Yingwei Pan, Chong-Wah Ngo, Houqiang Li, and Tao Mei. Semi-supervised domain adaptation with subspace learning for visual recognition. In IEEE Conference on Computer Vision and Pattern Recognition, pp. 2142–2150, 2015.
293
+
294
+ Jason Yosinski, Jeff Clune, Yoshua Bengio, and Hod Lipson. How transferable are features in deep neural networks? In Advances in neural information processing systems, pp. 3320–3328, 2014.
295
+
296
+ Shanghang Zhang, Guanhang Wu, Joao P Costeira, and Jose MF Moura. Understanding traffic density from large-scale web camera data. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5898–5907, 2017.
297
+
298
+ Han Zhao, Shanghang Zhang, Guanhang Wu, José MF Moura, Joao P Costeira, and Geoffrey J Gordon. Adversarial multiple source domain adaptation. In Advances in neural information processing systems, pp. 8559–8570, 2018.
299
+
300
+ Han Zhao, Remi Tachet Des Combes, Kun Zhang, and Geoffrey Gordon. On learning invariant representations for domain adaptation. In International Conference on Machine Learning, pp. 7523–7532, 2019a.
301
+
302
+ Shanshan Zhao, Mingming Gong, Tongliang Liu, Huan Fu, and Dacheng Tao. Domain generalization via entropy regularization. Advances in Neural Information Processing Systems, 33, 2020.
303
+
304
+ Sicheng Zhao, Bo Li, Xiangyu Yue, Yang Gu, Pengfei Xu, Runbo Hu, Hua Chai, and Kurt Keutzer. Multi-source domain adaptation for semantic segmentation. In Advances in Neural Information Processing Systems, pp. 7285–7298, 2019b.
305
+
306
+ Junbao Zhuo, Shuhui Wang, Weigang Zhang, and Qingming Huang. Deep unsupervised convolutional domain adaptation. In ACM International Conference on Multimedia, pp. 261–269, 2017.
307
+
308
+ # A PROOF
309
+
310
+ In this section, we provide a detailed proof of Thm. 3.1 and Thm. 3.2 in sequence.
311
+
312
+ # A.1 PROOF OF CLASSIFICATION BOUND
313
+
314
+ Before we reach the proof to the main theorem, we first prove the following lemmas for each theorem. With the notations introduced in Sec.3, we introduce the following lemmas that will be used in proving the main theorem:
315
+
316
+ Lemma A.1. [Blitzer et al. (2008)] Let $h \in { \mathcal { H } } : = \{ h : { \mathcal { Z } } \{ 0 , 1 \} \}$ , where $V C d i m ( \mathcal { H } ) = d$ , and for any distribution $\mathcal { D } _ { S } ( Z )$ , $\mathcal { D } _ { T } ( Z )$ over $\mathcal { Z }$ , then
317
+
318
+ $$
319
+ | \epsilon _ { S } ( h ) - \epsilon _ { T } ( h ) | \leq d \varkappa \Delta \varkappa ( \mathcal { D } _ { S } ( Z ) , \mathcal { D } _ { T } ( Z ) )
320
+ $$
321
+
322
+ Lemma A.2. Let $h \in { \mathcal { H } } : = \{ h : { \mathcal { Z } } \{ 0 , 1 \} \}$ , where $V C d i m ( \mathcal { H } ) = d$ , and for any distribution $\mathcal { D } _ { S } ( Z )$ , $\mathcal { D } _ { T } ( Z )$ over $\mathcal { Z }$ . Let the noises on the source and target are defined as $n _ { S } : = \mathbb { E } _ { S } { \big [ } | Y - f _ { S } ( Z ) | { \big ] }$ and $n _ { T } : = \mathbb { E } _ { T } [ | Y - f _ { T } ( Z ) | ]$ , where $f : { \mathcal { Z } } \to [ 0 , 1 ]$ is the conditional mean function, i.e., $f ( Z ) =$ $\mathbb { E } [ Y | Z ]$ then we have:
323
+
324
+ $$
325
+ \begin{array} { r l } & { \left| \varepsilon _ { S } ( h ) - \varepsilon _ { T } ( h ) \right| \leq | n _ { S } + n _ { T } | + d _ { \mathcal { H } \Delta \mathcal { H } } ( \mathcal { D } _ { S } ( Z ) , \mathcal { D } _ { T } ( Z ) ) } \\ & { \qquad + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} } \end{array}
326
+ $$
327
+
328
+ Proof. To begin with, we first show that for the source domain, $\varepsilon _ { S } ( h )$ cannot be too large if $h$ is close to the optimal classifier $f _ { S }$ on source domain for $\forall h \in { \mathcal { H } }$ :
329
+
330
+ $$
331
+ \begin{array} { r l } { | \varepsilon _ { S } ( h ) - \mathbb { E } _ { S } [ | h ( Z ) - f _ { S } ( Z ) | ] | = \left| \mathbb { E } _ { S } [ | h ( Z ) - Y | ] - \mathbb { E } _ { S } [ | h ( Z ) - f _ { S } ( Z ) | ] \right| } & { } \\ { \ } & { \leq \mathbb { E } _ { S } \left[ \left| | h ( Z ) - Y | - | f _ { S } ( Z ) - h ( Z ) | \right| \right] } \\ { \ } & { \leq \mathbb { E } _ { S } [ | Y - f _ { S } ( Z ) | ] } \\ { \ } & { = n _ { S } . } \end{array}
332
+ $$
333
+
334
+ Similarly, we also have an analogous inequality hold on the target domain:
335
+
336
+ $$
337
+ \lvert \varepsilon _ { T } ( h ) - \mathbb { E } _ { T } [ \lvert h ( Z ) - f _ { T } ( Z ) \rvert ] \rvert \le n _ { T } .
338
+ $$
339
+
340
+ Combining both inequalities above, yields:
341
+
342
+ $$
343
+ \begin{array} { r l } & { \quad \varepsilon _ { S } ( h ) \in [ \mathbb { E } _ { S } [ | h ( Z ) - f _ { S } ( Z ) | ] - n _ { S } , \mathbb { E } _ { S } [ | h ( Z ) - f _ { S } ( Z ) | ] + n _ { S } ] , } \\ & { - \varepsilon _ { T } ( h ) \in [ - \mathbb { E } _ { T } [ | h ( Z ) - f _ { T } ( Z ) | ] - n _ { T } , - \mathbb { E } _ { T } [ | h ( Z ) - f _ { T } ( Z ) | ] + n _ { T } ] . } \end{array}
344
+ $$
345
+
346
+ Hence,
347
+
348
+ $$
349
+ \begin{array} { r } { \left| \varepsilon _ { S } ( h ) - \varepsilon _ { T } ( h ) \right| \leq | n _ { S } + n _ { T } | + \left| \mathbb { E } _ { S } [ | h ( Z ) - f _ { S } ( Z ) | ] - \mathbb { E } _ { T } [ | h ( Z ) - f _ { T } ( Z ) | ] \right| . } \end{array}
350
+ $$
351
+
352
+ ow to simplify the notation, for $e \in \{ S , T \}$ , define $\epsilon _ { e } ( h , h ^ { \prime } ) = \mathbb { E } _ { e } [ | h ( Z ) - h ^ { \prime } ( Z ) | ]$ , so that
353
+
354
+ $$
355
+ \left| \mathbb { E } _ { S } [ | h ( Z ) - f _ { S } ( Z ) | ] - \mathbb { E } _ { T } [ | h ( Z ) - f _ { T } ( Z ) | ] \right| = \left| \epsilon _ { S } ( h , f _ { S } ) - \epsilon _ { T } ( f _ { T } , h ) \right|
356
+ $$
357
+
358
+ To bound $\left| \epsilon _ { S } ( h , f _ { S } ) - \epsilon _ { T } ( f _ { T } , h ) \right|$ , on one hand, we have:
359
+
360
+ $$
361
+ \begin{array} { r l r } & { } & { \left| \epsilon _ { S } ( h , f _ { S } ) - \epsilon _ { T } ( f _ { T } , h ) \right| = \left| \epsilon _ { S } ( h , f _ { S } ) - \epsilon _ { S } ( h , f _ { T } ) + \epsilon _ { S } ( h , f _ { T } ) - \epsilon _ { T } ( f _ { T } , h ) \right| } \\ & { } & { \leq \left| \epsilon _ { S } ( h , f _ { S } ) - \epsilon _ { S } ( h , f _ { T } ) \right| + \left| \epsilon _ { S } ( h , f _ { T } ) - \epsilon _ { T } ( f _ { T } , h ) \right| } \\ & { } & { \leq \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] + \left| \epsilon _ { S } ( h , f _ { T } ) - \epsilon _ { T } ( f _ { T } , h ) \right| } \end{array}
362
+ $$
363
+
364
+ From A.1, we have:
365
+
366
+ $$
367
+ \leq \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] + d _ { \mathcal { H } \Delta \mathcal { H } } ( \mathcal { D } _ { S } ( Z ) , \mathcal { D } _ { T } ( Z ) ) .
368
+ $$
369
+
370
+ Similarly, by the same trick of subtracting and adding back $\epsilon _ { T } ( h , f _ { S } )$ above, the following inequality also holds:
371
+
372
+ $$
373
+ \begin{array} { r } { \left. \epsilon _ { S } ( h , f _ { S } ) - \epsilon _ { T } ( f _ { T } , h ) \right. \leq \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] + d _ { \mathcal { H } \Delta \mathcal { H } } ( \mathcal { D } _ { S } ( Z ) , \mathcal { D } _ { T } ( Z ) ) . } \end{array}
374
+ $$
375
+
376
+ Combine all the inequalities above, we know that:
377
+
378
+ $$
379
+ \begin{array} { r l } & { \left| \varepsilon _ { S } ( h ) - \varepsilon _ { T } ( h ) \right| \leq | n _ { S } + n _ { T } | + d _ { \mathcal { H } \Delta \mathcal { H } } ( \mathcal { D } _ { S } ( Z ) , \mathcal { D } _ { T } ( Z ) ) } \\ & { \qquad + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} } \end{array}
380
+ $$
381
+
382
+ Lemma A.3. [Mohri et al. (2018), Corollary 3.19] Let $h \in { \mathcal { H } } : = \{ h : { \mathcal { Z } } \{ 0 , 1 \} \}$ , where $V C d i m ( \mathcal { H } ) = d$ . Then $\forall h \in \mathcal { H } , \forall \delta > 0$ , w.p.b. at least $1 - \delta$ over the choice of a sample size $m$ and natural exponential $e$ , the following inequality holds:
383
+
384
+ $$
385
+ \varepsilon ( h ) \leq \widehat { \varepsilon } ( h ) + \sqrt { \frac { 2 d } { m } \log \frac { e m } { d } } + \sqrt { \frac { 1 } { 2 m } \log \frac { 1 } { \delta } } .
386
+ $$
387
+
388
+ Lemma A.4. Let $h \in { \mathcal { H } } : = \{ h : { \mathcal { Z } } \{ 0 , 1 \} \}$ , where $V C d i m ( \mathcal { H } ) = d$ . Then $\forall h \in \mathcal { H } , \forall \delta > 0$ then w.p.b. at least $1 - \delta$ over the choice of a sample size $m$ and natural exponential $e$ , the following inequality holds:
389
+
390
+ $$
391
+ \begin{array} { r l } & { \varepsilon _ { T } ( h ) \leq \hat { \varepsilon } _ { S } ( h ) + d _ { \mathcal { H } \Delta \mathcal { H } } ( \mathcal { D } _ { S } ( Z ) , \mathcal { D } _ { T } ( Z ) ) + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} } \\ & { \quad \quad \quad + | n _ { S } + n _ { T } | + \sqrt { \frac { 2 d } { n } \log \frac { e n } { d } } + \sqrt { \frac { 1 } { 2 n } \log \frac { 1 } { \delta } } } \end{array}
392
+ $$
393
+
394
+ Proof. Invoking the upper bound in A.2, we have w.p.b at least $1 - \delta$ :
395
+
396
+ $$
397
+ \begin{array} { r l } & { \mathfrak { s } _ { T } ( h ) \le \varepsilon _ { S } ( h ) + d _ { \mathcal { H } \Delta \mathcal { H } } ( \mathcal { D } _ { S } ( Z ) , \mathcal { D } _ { T } ( Z ) ) + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} } \\ & { \qquad + | n _ { S } + n _ { T } | } \\ & { \le \widehat { \varepsilon } _ { S } ( h ) + d _ { \mathcal { H } \Delta \mathcal { H } } ( \mathcal { D } _ { S } ( Z ) , \mathcal { D } _ { T } ( Z ) ) + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} } \\ & { \qquad + | n _ { S } + n _ { T } | + \sqrt { \frac { 2 d } { n } \log \frac { e n } { d } } + \sqrt { \frac { 1 } { 2 n } \log \frac { 1 } { \delta } } } \end{array}
398
+ $$
399
+
400
+ Theorem A.1. Let $h \in { \mathcal { H } } : = \{ h : { \mathcal { Z } } \{ 0 , 1 \} \}$ , where $V C d i m ( \mathcal { H } ) = d$ . For $0 < \delta < 1$ , then w.p.b. at least $1 - \delta$ over the draw of samples $S$ and $T$ , for all $h \in \mathcal H$ , we have:
401
+
402
+ $$
403
+ \begin{array} { r l } & { \varepsilon _ { T } ( h ) \leq \displaystyle \frac { m } { n + m } \widehat { \varepsilon } _ { T } ( h ) + \frac { n } { n + m } \widehat { \varepsilon } _ { S } ( h ) } \\ & { \qquad + \displaystyle \frac { n } { n + m } \left( d _ { \mathcal { H } \Delta \mathcal { H } } ( { \mathcal D } _ { S } , { D } _ { T } ) + \operatorname* { m i n } \{ { \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] } \} \right) } \\ & { \qquad + \displaystyle \frac { n } { n + m } | n _ { S } + n _ { T } | + O \left( \sqrt { ( \frac { 1 } { m } + \frac { 1 } { n } ) \log \frac { 1 } { \delta } + \frac { d } { n } \log \frac { n } { d } + \frac { d } { m } \log \frac { m } { d } } \right) . } \end{array}
404
+ $$
405
+
406
+ Proof. Having A.3, A.4, we can use a union bound to combine them with coefficients $m / ( n + m )$ and $n / ( n + m )$ respectively, we have:
407
+
408
+ $$
409
+ \begin{array} { r l } & { \quad _ { T } ( h ) \ \le \displaystyle \frac { m } { n + m } \left( \hat { \varepsilon } _ { T } ( h ) + \sqrt { \frac { 2 d } { m } \log \frac { \epsilon m } { d } } + \sqrt { \frac { 1 } { 2 m } \log \frac { 1 } { \delta } } \right) } \\ & { \qquad + \displaystyle \frac { n } { n + m } \left( \hat { \varepsilon } _ { S } ( h ) + d _ { \mathcal { H } \Delta \mathcal { H } } ( { \mathcal { D } } _ { S } , { \mathcal { D } } _ { T } ) + \operatorname* { m i n } \{ { \mathbb { E } } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , { \mathbb { E } } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} \right) } \\ & { \quad + \displaystyle \frac { n } { n + m } \left( | n _ { S } + n _ { T } | + \sqrt { \frac { 2 d } { n } \log \frac { \epsilon n } { d } } + \sqrt { \frac { 1 } { 2 n } \log \frac { 1 } { \delta } } \right) . } \end{array}
410
+ $$
411
+
412
+ From Cauchy-Schwartz inequality, we obtain
413
+
414
+ $$
415
+ \begin{array} { r l } & { \mathbf { \Phi } _ { T } ( h ) \mathbf { \Phi } \le \displaystyle \frac { m } { n + m } \left( \hat { \varepsilon } _ { T } ( h ) + \sqrt { \frac { 4 d } { m } \log \frac { { \epsilon m } } { d } + \frac { 1 } { m } \log \frac { 1 } { \delta } } \right) } \\ & { \qquad + \displaystyle \frac { n } { n + m } \left( \hat { \varepsilon } _ { S } ( h ) + d _ { \mathcal { H } \Delta } \varkappa ( { \mathcal { D } } _ { S } , { \mathcal { D } } _ { T } ) + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} \right) } \\ & { \qquad + \displaystyle \frac { n } { n + m } \left( | n _ { S } + n _ { T } | + \sqrt { \frac { 4 d } { n } \log \frac { { \epsilon n } } { d } + \frac { 1 } { n } \log \frac { 1 } { \delta } } \right) . } \end{array}
416
+ $$
417
+
418
+ As $m \ll n$ and applying Cauchy-Schwartz inequality one more time, we have
419
+
420
+ $$
421
+ \begin{array} { r l } & { \quad \le \displaystyle \frac { m } { n + m } \hat { \varepsilon } _ { T } ( h ) + \frac { n } { n + m } \hat { \varepsilon } _ { S } ( h ) } \\ & { \quad + \displaystyle \frac { n } { n + m } \left( d _ { \mathcal { H } \Delta \mathcal { H } } ( \mathcal { D } _ { S } , \mathcal { D } _ { T } ) + \operatorname* { m i n } \{ \mathrm { E } _ { S } \| | f _ { S } ( Z ) - f _ { T } ( Z ) | | , \mathrm { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} \right) } \\ & { \quad + \displaystyle \frac { n } { n + m } \left( | n _ { S } + n _ { T } | + \sqrt { \frac { 8 d } { m } } \log \frac { \epsilon m } { d } + \frac { 2 } { m } \log \frac { 1 } { \delta } + \frac { 8 d } { n } \log \frac { \epsilon n } { d } + \frac { 2 } { n } \log \frac { 1 } { \delta } \right) . } \\ & { \quad \le \displaystyle \frac { m } { n + m } \hat { \varepsilon } _ { T } ( h ) + \frac { n } { n + m } \hat { \varepsilon } _ { S } ( h ) } \\ & { \quad + \left. \frac { n } { n + m } \left( d _ { \mathcal { H } \Delta \mathcal { H } } ( \mathcal { D } _ { S } , \mathcal { D } _ { T } ) + \operatorname* { m i n } \{ \mathrm { E } _ { S } \| | f _ { S } ( Z ) - f _ { T } ( Z ) | , \mathrm { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} \right) \right. } \\ & { \quad \left. + \frac { n } { n + m } \left( | n _ { S } + n _ { T } | \right) + O ( \sqrt { \left( \frac { 1 } { m } + \frac { 1 } { n } \right) \log \frac { 1 } { \delta } + \frac { d } { m } \log \frac { m } { d } + \frac { d } { n } \log \frac { n } { d } } ) \right. } \end{array}
422
+ $$
423
+
424
+ # A.2 PROOF OF REGRESSION BOUND
425
+
426
+ For regression generalization bound, we follow the proof strategy in previous section, but with slight change of definitions. We let ${ \mathcal { H } } = \{ h : { \mathcal { Z } } [ 0 , 1 ] \}$ be a set of bounded real-valued functions from the input space $\mathcal { Z }$ to $[ 0 , 1 ]$ . We use $P d i m ( \mathcal { H } )$ to denote the pseudo-dimension of $\mathcal { H }$ , and let $P d i m ( \mathcal { H } ) = d$ . We first prove the following lemmas that will be used in proving the main theorem:
427
+
428
+ Lemma A.5. (Zhao et al., 2018) For $h , h ^ { \prime } \in \mathcal { H } : = \{ h : \mathcal { Z } \to [ 0 , 1 ] \}$ , where $P d i m ( \mathcal { H } ) = d$ , and for any distribution $\mathcal { D } _ { S } ( Z )$ , $\mathcal { D } _ { T } ( Z )$ over $\mathcal { Z }$ ,
429
+
430
+ $$
431
+ | \epsilon _ { S } ( h , h ^ { \prime } ) - \epsilon _ { T } ( h , h ^ { \prime } ) | \leq d _ { \tilde { \mathcal { H } } } ( \mathcal { D } _ { S } ( Z ) , \mathcal { D } _ { T } ( Z ) )
432
+ $$
433
+
434
+ where $\tilde { \mathcal { H } } : = \{ \mathbb { I } _ { | h ( x ) - h ^ { \prime } ( x ) | > t } : h , h ^ { \prime } \in \mathcal { H } , 0 \leq t \leq 1 \} .$
435
+
436
+ Lemma A.6. For $h , h ^ { \prime } \in \mathcal { H } : = \{ h : \mathcal { Z } [ 0 , 1 ] \}$ , where $P d i m ( \mathcal { H } ) = d$ , and for any distribution $\mathcal { D } _ { S } ( Z )$ , $\mathcal { D } _ { T } ( Z )$ over $\mathcal { Z }$ , we define $\tilde { \mathcal { H } } : = \left\{ \mathbb { I } _ { | h ( x ) - h ^ { \prime } ( x ) | > t } : = h , h ^ { \prime } \in \mathcal { H } , 0 \leq t \leq 1 \right\}$ . Then $\forall h \in { \mathcal { H } }$ , the following inequality holds:
437
+
438
+ $$
439
+ \begin{array} { r l } & { \left| \varepsilon _ { S } ( h ) - \varepsilon _ { T } ( h ) \right| \leq | n _ { S } + n _ { T } | + d _ { \tilde { \mathcal { H } } } ( \mathcal { D } _ { T } ( Z ) , \mathcal { D } _ { S } ( Z ) ) } \\ & { \qquad + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} } \end{array}
440
+ $$
441
+
442
+ Lemma A.7. Thm.11.8 (Mohri et al., 2018) Let $\mathcal { H }$ be the set of real-valued function from $\mathcal { Z }$ to $[ 0 , 1 ]$ . Assume that $P d i m ( \mathcal { H } ) = d$ . Then $\forall h \in \mathcal { H } , \forall \delta > 0$ , with probability at least $1 - \delta$ over the choice of a sample size $m$ and natural exponential $e$ , the following inequality holds:
443
+
444
+ $$
445
+ \varepsilon ( h ) \leq \widehat { \varepsilon } ( h ) + \sqrt { \frac { 2 d } { m } \log \frac { e m } { d } } + \sqrt { \frac { 1 } { 2 m } \log \frac { 1 } { \delta } } .
446
+ $$
447
+
448
+ Lemma A.8. Let $\mathcal { H }$ be a set of real-valued functions from $\mathcal { Z }$ to $[ 0 , 1 ]$ with $P d i m ( \mathcal { H } ) = d$ , and $\tilde { \mathcal { H } } : = \left\{ \mathbb { I } _ { | h ( x ) - h ^ { \prime } ( x ) | > t } : h , h ^ { \prime } \in \mathcal { H } , 0 \leq t \leq 1 \right\}$ . For $0 < \delta < 1$ , then w.p.b. at least $1 - \delta$ over the draw of samples $S$ and $T$ , for all $h \in \mathcal H$ , we have:
449
+
450
+ $$
451
+ \begin{array} { r l } & { \varepsilon _ { T } ( h ) \leq \widehat { \varepsilon } _ { S } ( h ) + d _ { \widetilde { \eta } } ( \mathcal { D } _ { S } , \mathcal { D } _ { T } ) + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} } \\ & { \qquad + | n _ { S } + n _ { T } | + \sqrt { \frac { 2 d } { n } \log \frac { e n } { d } } + \sqrt { \frac { 1 } { 2 n } \log \frac { 1 } { \delta } } } \end{array}
452
+ $$
453
+
454
+ Proof. Invoking the upper bound in A.6 and A.7, we have w.p.b at least $1 - \delta$ :
455
+
456
+ $$
457
+ \begin{array} { r l } & { \varepsilon _ { T } ( h ) \leq \widehat { \varepsilon } _ { S } ( h ) + d _ { \widetilde { \mathcal { H } } } ( \mathcal { D } _ { S } , \mathcal { D } _ { T } ) + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} } \\ & { \qquad + | n _ { S } + n _ { T } | } \\ & { \qquad \leq \widehat { \varepsilon } _ { S } ( h ) + d _ { \widetilde { \mathcal { H } } } ( \mathcal { D } _ { S } , \mathcal { D } _ { T } ) + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} } \\ & { \qquad + | n _ { S } + n _ { T } | + \sqrt { \frac { 2 d } { n } \log \frac { e n } { d } } + \sqrt { \frac { 1 } { 2 n } \log \frac { 1 } { \delta } } } \end{array}
458
+ $$
459
+
460
+ Theorem A.2. Let $\mathcal { H }$ be a set of real-valued functions from $\mathcal { Z }$ to $[ 0 , 1 ]$ with $P d i m ( \mathcal { H } ) = d$ , and $\tilde { \mathcal { H } } : = \left\{ \mathbb { I } _ { | h ( x ) - h ^ { \prime } ( x ) | > t } : h , h ^ { \prime } \in \mathcal { H } , 0 \leq t \leq 1 \right\}$ . For $0 < \delta < 1$ , then w.p.b. at least $1 - \delta$ over the draw of samples $S$ an $^ { 1 T , \cdot }$ for all $h \in \mathcal H$ , we have:
461
+
462
+ $$
463
+ \begin{array} { l } { \displaystyle \varepsilon _ { T } ( h ) \leq \frac { m } { n + m } \widehat { \varepsilon } _ { T } ( h ) + \frac { n } { n + m } \widehat { \varepsilon } _ { S } ( h ) } \\ { \displaystyle + \frac { n } { n + m } \left( d _ { \widetilde { \mathcal { H } } } ( D _ { S } , D _ { T } ) + \operatorname* { m i n } \{ \mathbb { E } _ { S } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] , \mathbb { E } _ { T } [ | f _ { S } ( Z ) - f _ { T } ( Z ) | ] \} \right) } \\ { \displaystyle + \frac { n } { n + m } | n _ { S } + n _ { T } | + O \left( \sqrt { ( \frac { 1 } { m } + \frac { 1 } { n } ) \log \frac { 1 } { \delta } + \frac { d } { n } \log \frac { n } { d } } + \frac { d } { m } \log \frac { m } { d } \right) . } \end{array}
464
+ $$
465
+
466
+ Proof. Having A.5, A.6, A.7, A.8, we can use a union bound to combine them with coefficients $m / ( n + m )$ and $n / ( n + m )$ respectively, and replace the $d _ { \mathcal { H } \Delta \mathcal { H } } ( \mathcal { D } _ { S } , \mathcal { D } _ { T } )$ with $d _ { \tilde { \mathcal { H } } } ( \mathcal { D } _ { S } , \mathcal { D } _ { T } )$ in the proof of Thm. A.1. Obviously, we have Thm. A.2. 
467
+
468
+ # B MORE EXPERIMENTAL RESULTS
469
+
470
+ # B.1 HYPER-PARAMETERS
471
+
472
+ There are two fundamental part in our proposed LIRR loss. One is the invariant representation item, the other is the invariant risk item. We use $\lambda _ { \mathrm { { r e p } } }$ and $\lambda _ { \mathrm { { r i s k } } }$ represent the weights of invariant representation item and invariant risk item respectively. In order to explore the best trade off between this two items, we conduct extra experiments on Art to Real scenario in OfficeHome dataset. All other hyper-parameters settings are set as same as Sec. 5.1. The results can be found in Table. 3. From which, we can see that the optimal performance is achieved when $\lambda _ { \mathrm { r i s k } } = 0 . 1$ and $\lambda _ { \mathrm { r e p } } = 0 . 0 1$ .
473
+
474
+ Table 3: The weights trade off between invariant representation part and invariant risk part under OfficeHome: Art to Real scenarios.(mean $\pm$ std)
475
+
476
+ <table><tr><td rowspan="2">入rep</td><td colspan="3">Xrisk</td></tr><tr><td>1</td><td>0.1</td><td>0.01</td></tr><tr><td>1</td><td>70.23±0.18</td><td>70.96±0.17</td><td>70.55±0.18</td></tr><tr><td>0.1</td><td>71.20±0.14</td><td>72.66±0.16</td><td>72.31±0.19</td></tr><tr><td>0.01</td><td>72.65±0.15</td><td>73.12±0.19</td><td>72.97±0.20</td></tr></table>
477
+
478
+ # B.2 IMPLEMENTATION DETAILS
479
+
480
+ For image classification task: we use ResNet34 as backbone networks. We adopt SGD with learning rate of 1e-3, momentum of 0.9 and weight decay factor of 5e-4. We decay the learning rate with a multiplier 0.1 when training process reach three quarters of the total iterations. The batch size is set as 128 for VisDA2017 and Domainnet, 64 for officehome. For adversarial training, we use gradient reversal layer (GRL) to flip gradient in the backpropagation between feature encoder $g ( \cdot )$ and domain discriminator $\mathcal { C } ( \cdot )$ to obtain domain-invariant representation w.r.t. source labeled data and target unlabeled data. For min-max training objective in Eq. (8), we implement it with the difference on two losses , $L ( y , h ( z ) )$ and $L ( y , h ( z , d ) )$ . $h ( z )$ is realized by a common predictor which only takes feature $z$ as input. $h ( z , d )$ indicates an additional predictor which takes the combination of feature $z$ and domain index $d$ , e.g. we concatenate original feature $z$ with an additional full 0 (or 1) channel to represent source(or target) domain. It’s worth noting that according to Saito et al. (2019), the utilization of entropy minimization hurts the performance. Thus, we implement the CDAN method without entropy minimization. Our results are all obtained without heavy engineering tricks. All code is implemented in Pytorch and will be made available upon acceptance.
481
+
482
+ For traffic counting regression task: we use VGG16 as encoder and FCN8s (Shelhamer et al., 2017) as decoder. The model will output a density map as the regression result for input images. The optimizing goal is a joint loss including both the euclidean loss between the groundtruth density map and the predicted one, and the mean absolute counting error loss between the total predicted count and groundtruth count. We use mean absolute error (MAE) metric for evaluation, which measure the absolute difference between the output count and the ground-truth count. We adopt Adam optimizer with learning rate set to 1e-6. The batch size is set as 24.
483
+
484
+ # B.3 VISUALIZATION
485
+
486
+ ![](images/6980b63d10d398d1f1eda5a05806964805555bb9aa70c914bea42b40851312fa.jpg)
487
+ Figure 3: Grad-CAM (Selvaraju et al., 2017) results of different model, LIRR appropriately captures the invariant part of the same object in different domains, e.g. the shape of horse and husky leads to invariant prediction across snow and grass domain.
488
+
489
+ Grad-CAM Results on NICO dataset In order to vividly showcase the learned feature representation which supports the invariant risks across domains. We employ Grad-CAM (Selvaraju et al., 2017) to visualize the most influential part in prediction in Fig 3.
490
+
491
+ Traffic Counting Examples Visualization Fig. 4 visualizes the counting results of different algorithms on Camera 511 to 398 scenario, WebCamT. The red line represents the LIRR method we proposed while the black line represents the gt count. It’s rather clear to see that LIRR have a better ability of cross domain regression fitting than other methods, especially the area within the green bounding box with dot lines.
492
+
493
+ # C MORE RELATED WORK
494
+
495
+ Transferability Transferability of deep networks has been researched in the field of transfer learning (Yosinski et al., 2014), which is normally performed by taking a standard neural architecture along with its pretrained weights on large-scale datasets such as ImageNet, and then fine-tuning the weights on the target task. This method offers little benefit to large-scale tasks but greatly improve the expressive ability of the model on small data sets with light weighted model (Raghu et al., 2019). Work (Yosinski et al., 2014) shows an decreasing trend of transferability when going deeper into the deep network. This phenomenon has also been applied in applications such as (Long et al., 2015), which adapts the network to the target domain with multiple layers within the backbone network. Some works (Li et al., 2019; Liu et al., 2019b;a) in few-shot learning utilize features of multiple appended layers to handle the hierarchy of classes.
496
+
497
+ ![](images/0a6e280622d6081f3de794c5a36299f1c948fd3bcae10a6e9d6eda0bee52b8b6.jpg)
498
+ Figure 4: The line chart of the regression results of different DA methods on Camera 511 to 398, WebCamT.
parse/train/oDPxtrCMboN/oDPxtrCMboN_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/oDPxtrCMboN/oDPxtrCMboN_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/oDPxtrCMboN/oDPxtrCMboN_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rJx0Q6EFPB/rJx0Q6EFPB.md ADDED
@@ -0,0 +1,331 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TINYBERT: DISTILLING BERT FOR NATURAL LANGUAGE UNDERSTANDING
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Language model pre-training, such as BERT, has significantly improved the performances of many natural language processing tasks. However, the pre-trained language models are usually computationally expensive and memory intensive, so it is difficult to effectively execute them on resource-restricted devices. To accelerate inference and reduce model size while maintaining accuracy, we firstly propose a novel Transformer distillation method that is specially designed for knowledge distillation (KD) of the Transformer-based models. By leveraging this new KD method, the plenty of knowledge encoded in a large “teacher” BERT can be well transferred to a small “student” TinyBERT. Moreover, we introduce a new two-stage learning framework for TinyBERT, which performs Transformer distillation at both the pre-training and task-specific learning stages. This framework ensures that TinyBERT can capture the general-domain as well as the task-specific knowledge in BERT.
8
+
9
+ TinyBERT1 is empirically effective and achieves more than $96 \%$ the performance of teacher BERTBASE on GLUE benchmark, while being $7 . 5 \mathbf { x }$ smaller and $\mathbf { 9 . 4 x }$ faster on inference. TinyBERT is also significantly better than state-of-the-art baselines on BERT distillation, with only ${ \sim } 2 8 \%$ parameters and ${ \sim } 3 1 \%$ inference time of them.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Pre-training language models then fine-tuning on downstream tasks has become a new paradigm for natural language processing (NLP). Pre-trained language models (PLMs), such as BERT (Devlin et al., 2018), XLNet (Yang et al., 2019), RoBERTa (Liu et al., 2019) and SpanBERT (Joshi et al., 2019), have achieved great success in many NLP tasks (e.g., the GLUE benchmark (Wang et al., 2018) and the challenging multi-hop reasoning task (Ding et al., 2019)). However, PLMs usually have an extremely large number of parameters and need long inference time, which are difficult to be deployed on edge devices such as mobile phones. Moreover, recent studies (Kovaleva et al., 2019) also demonstrate that there is redundancy in PLMs. Therefore, it is crucial and possible to reduce the computational overhead and model storage of PLMs while keeping their performances.
14
+
15
+ There has been many model compression techniques (Han et al., 2015a) proposed to accelerate deep model inference and reduce model size while maintaining accuracy. The most commonly used techniques include quantization (Gong et al., 2014), weights pruning (Han et al., 2015b), and knowledge distillation (KD) (Romero et al., 2014). In this paper we focus on knowledge distillation, an idea proposed by Hinton et al. (2015) in a teacher-student framework. KD aims to transfer the knowledge embedded in a large teacher network to a small student network. The student network is trained to reproduce the behaviors of the teacher network. Based on the framework, we propose a novel distillation method specifically for Transformer-based models (Vaswani et al., 2017), and use BERT as an example to investigate the KD methods for large scale PLMs.
16
+
17
+ KD has been extensively studied in NLP (Kim & Rush, 2016; Hu et al., 2018), while designing KD methods for BERT has been less explored. The pre-training-then-fine-tuning paradigm firstly pre-trains BERT on a large scale unsupervised text corpus, then fine-tunes it on task-specific dataset, which greatly increases the difficulty of BERT distillation. Thus we are required to design an effective KD strategy for both stages. To build a competitive TinyBERT, we firstly propose a new Transformer distillation method to distill the knowledge embedded in teacher BERT. Specifically, we design several loss functions to fit different representations from BERT layers: 1) the output of the embedding layer; 2) the hidden states and attention matrices derived from the Transformer layer; 3) the logits output by the prediction layer. The attention based fitting is inspired by the recent findings (Clark et al., 2019) that the attention weights learned by BERT can capture substantial linguistic knowledge, which encourages that the linguistic knowledge can be well transferred from teacher BERT to student TinyBERT. However, it is ignored in existing KD methods of BERT, such as Distilled $\mathbf { B i L S T M _ { S O F T } }$ (Tang et al., 2019), BERT-PKD (Sun et al., 2019) and DistilBERT2. Then, we propose a novel two-stage learning framework including the general distillation and the task-specific distillation. At the general distillation stage, the original BERT without fine-tuning acts as the teacher model. The student TinyBERT learns to mimic the teacher’s behavior by executing the proposed Transformer distillation on the large scale corpus from general domain. We obtain a general TinyBERT that can be fine-tuned for various downstream tasks. At the task-specific distillation stage, we perform the data augmentation to provide more task-specific data for teacherstudent learning, and then re-execute the Transformer distillation on the augmented data. Both the two stages are essential to improve the performance and generalization capability of TinyBERT. A detailed comparison between the proposed method and other existing methods is summarized in Table 1. The Transformer distillation and two-stage learning framework are two key ideas of the proposed method.
18
+
19
+ Table 1: A summary of KD methods for BERT. Abbreviations: INIT(initializing student BERT with some layers of pre-trained teacher BERT), DA(conducting data augmentation for task-specific training data). Embd, Attn, Hidn, and Pred represent the knowledge from embedding layers, attention matrices, hidden states, and final prediction layers, respectively.
20
+
21
+ <table><tr><td rowspan=2 colspan=1>KD Methods</td><td rowspan=1 colspan=2>KDatPre-trainingStage</td><td rowspan=1 colspan=2>KD at Fine-tuning Stage</td></tr><tr><td rowspan=1 colspan=1>INIT</td><td rowspan=1 colspan=1>Embd Attn HidnPred</td><td rowspan=1 colspan=1>Embd AttnHidnPred</td><td rowspan=1 colspan=1>DA</td></tr><tr><td rowspan=1 colspan=1>Distilled BiLSTMsoFT</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>√</td></tr><tr><td rowspan=1 colspan=1>BERT-PKD</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>3 √</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>DistilBERT</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>√</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>TinyBERT (our method)</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>√√</td><td rowspan=1 colspan=1>√ √</td><td rowspan=1 colspan=1>7</td></tr></table>
22
+
23
+ The main contributions of this work are as follows: 1) We propose a new Transformer distillation method to encourage that the linguistic knowledge encoded in teacher BERT can be well transferred to TinyBERT. 2) We propose a novel two-stage learning framework with performing the proposed Transformer distillation at both the pre-training and fine-tuning stages, which ensures that TinyBERT can capture both the general-domain and task-specific knowledge of the teacher BERT. 3) We show experimentally that our TinyBERT can achieve more than $96 \%$ the performance of teacher BERTBASE on GLUE tasks, while having much fewer parameters $( \sim 1 3 . 3 \% )$ and less inference time $( \sim 1 0 . 6 \% )$ , and significantly outperforms other state-of-the-art baselines on BERT distillation.
24
+
25
+ # 2 PRELIMINARIES
26
+
27
+ We firstly describe the formulation of Transformer (Vaswani et al., 2017) and Knowledge Distillation (Hinton et al., 2015). Our proposed Transformer distillation is a specially designed KD method for Transformer-based models.
28
+
29
+ # 2.1 TRANSFORMER LAYER
30
+
31
+ Most of the recent pre-trained language models (e.g., BERT, XLNet and RoBERTa) are built with Transformer layers, which can capture long-term dependencies between input tokens by selfattention mechanism. Specifically, a standard Transformer layer includes two main sub-layers: multi-head attention (MHA) and fully connected feed-forward network (FFN).
32
+
33
+ Multi-Head Attention (MHA). The calculation of attention function depends on the three components of queries, keys and values, which are denoted as matrices $Q$ , $\kappa$ and $V$ respectively. The attention function can be formulated as follows:
34
+
35
+ $$
36
+ \begin{array} { c } { \displaystyle { A = \frac { Q K ^ { T } } { \sqrt { d _ { k } } } , } } \\ { \displaystyle { \mathrm { a t t } \tan \tt t i o n } ( Q , K , V ) = \tt s o f t r a x } { ( A ) V } , \end{array}
37
+ $$
38
+
39
+ where $d _ { k }$ is the dimension of keys and acts as a scaling factor, $\pmb { A }$ is the attention matrix calculated from the compatibility of $Q$ and $\kappa$ by dot-product operation. The final function output is calculated as a weighted sum of values $V$ , and the weight is computed by applying softmax() operation on the each column of matrix $\pmb { A }$ . According to Clark et al. (2019), the attention matrices in BERT can capture substantial linguistic knowledge, and thus play an essential role in our proposed distillation method.
40
+
41
+ Multi-head attention is defined by concatenating the attention heads from different representation subspaces as follows:
42
+
43
+ $$
44
+ \mathrm { M u l t i H e a d } ( Q , K , V ) = \mathrm { C o n c a t } ( \mathrm { h e a d } _ { 1 } , \dots , \mathrm { h e a d } _ { h } ) W ,
45
+ $$
46
+
47
+ where $h$ is the number of attention heads, and ${ \mathrm { h e a d } } _ { i }$ denotes the $i \cdot$ -th attention head, which is calculated by the Attention() function with inputs from different representation subspaces, the matrix $W$ acts as a linear transformation.
48
+
49
+ Position-wise Feed-Forward Network (FFN). Transformer layer also contains a fully connected feed-forward network, which is formulated as follows:
50
+
51
+ $$
52
+ \mathrm { F N N } ( \boldsymbol { x } ) = \operatorname* { m a x } ( 0 , \boldsymbol { x } W _ { 1 } + b _ { 1 } ) W _ { 2 } + b _ { 2 } .
53
+ $$
54
+
55
+ We can see that the FFN contains two linear transformations and one ReLU activation.
56
+
57
+ # 2.2 KNOWLEDGE DISTILLATION
58
+
59
+ KD aims to transfer the knowledge of a large teacher network $T$ to a small student network $S$ . The student network is trained to mimic the behaviors of teacher networks. Let $f ^ { T }$ and $f ^ { S }$ represent the behavior functions of teacher and student networks, respectively. The behavior function targets at transforming network inputs to some informative representations, and it can be defined as the output of any layer in the network. In the context of Transformer distillation, the output of MHA layer or FFN layer, or some intermediate representations (such as the attention matrix $\pmb { A }$ ) can be used as behavior function. Formally, KD can be modeled as minimizing the following objective function:
60
+
61
+ $$
62
+ \mathcal { L } _ { \mathrm { K D } } = \sum _ { x \in \mathcal { X } } L \big ( f ^ { S } ( x ) , f ^ { T } ( x ) \big ) ,
63
+ $$
64
+
65
+ where $L ( \cdot )$ is a loss function that evaluates the difference between teacher and student networks, $x$ is the text input and $\mathcal { X }$ denotes the training dataset. Thus the key research problem becomes how to define effective behavior functions and loss functions. Different from previous KD methods, we also need to consider how to perform KD at the pre-training stage of BERT in addition to the task-specific training stage.
66
+
67
+ # 3 METHOD
68
+
69
+ In this section, we propose a novel distillation method for Transformer-based models, and present a two-stage learning framework for our model distilled from BERT, which is called TinyBERT.
70
+
71
+ # 3.1 TRANSFORMER DISTILLATION
72
+
73
+ The proposed Transformer distillation is a specially designed KD method for Transformer networks. Figure 1 displays an overview of the proposed KD method. In this work, both the student and teacher networks are built with Transformer layers. For a clear illustration, we firstly formulate the problem before introducing our method.
74
+
75
+ ![](images/266f43ad32f6ae32b5ea8a5109f82b8dd03b81b1716189f08fb3d8d1e1a21f83.jpg)
76
+ Figure 1: An overview of Transformer distillation: (a) the framework of Transformer distillation, (b) the details of Transformer-layer distillation consisting of $\mathrm { A t t n } _ { l o s s }$ (attention based distillation) and $\mathrm { H i d n } _ { l o s s }$ (hidden states based distillation).
77
+
78
+ Problem Formulation. Assuming that the student model has $M$ Transformer layers and teacher model has $N$ Transformer layers, we choose $M$ layers from the teacher model for the Transformerlayer distillation. The function $n = g ( m )$ is used as a mapping function from student layers to teacher layers, which means that the $m$ -th layer of student model learns the information from the $n$ - th layer of teacher model. The embedding-layer distillation and the prediction-layer distillation are also considered. We set 0 to be the index of embedding layer and $M + 1$ to be the index of prediction layer, and the corresponding layer mappings are defined as $0 = g ( 0 )$ and $N + 1 = g ( M + 1 )$ respectively. The effect of the choice of different mapping functions on the performances will be studied in the experiment section. Formally, the student can acquire knowledge from the teacher by minimizing the following objective:
79
+
80
+ $$
81
+ \mathcal { L } _ { \mathrm { m o d e l } } = \sum _ { m = 0 } ^ { M + 1 } \lambda _ { m } \mathcal { L } _ { \mathrm { l a y e r } } \bigl ( S _ { m } , T _ { g ( m ) } \bigr ) ,
82
+ $$
83
+
84
+ where $\mathcal { L } _ { \mathrm { l a y e r } }$ refers to the loss function of a given model layer (e.g., Transformer layer or embedding layer) and $\lambda _ { m }$ is the hyper-parameter that represents the importance of the $m$ -th layer’s distillation.
85
+
86
+ Transformer-layer Distillation. The proposed Transformer-layer distillation includes the attention based distillation and hidden states based distillation, which is shown in Figure 1 (b). The attention based distillation is motivated by the recent findings that attention weights learned by BERT can capture rich linguistic knowledge (Clark et al., 2019). This kind of linguistic knowledge includes the syntax and coreference information, which is essential for natural language understanding. Thus we propose the attention based distillation to encourage that the linguistic knowledge can be transferred from teacher BERT to student TinyBERT. Specifically, the student learns to fit the matrices of multihead attention in the teacher network, and the objective is defined as:
87
+
88
+ $$
89
+ \mathcal { L } _ { \mathrm { a t t n } } = \frac { 1 } { h } \sum _ { i = 1 } ^ { h } \mathrm { M S E } ( A _ { i } ^ { S } , A _ { i } ^ { T } ) ,
90
+ $$
91
+
92
+ where $h$ is the number of attention heads, $\pmb { A } _ { i } \in \mathbb { R } ^ { l \times l }$ refers to the attention matrix corresponding to the $i$ -th head of teacher or student, $l$ is the input text length, and MSE() means the mean squared error loss function. In this work, the (unnormalized) attention matrix $\mathbf { A } _ { i }$ is used as the fitting target instead of its softmax output softma $\mathbf { x } ( A _ { i } )$ , since our experiments show that the former setting has a faster convergence rate and better performances.
93
+
94
+ In addition to the attention based distillation, we also distill the knowledge from the output of Transformer layer (as shown in Figure 1 (b)), and the objective is as follows:
95
+
96
+ $$
97
+ \mathcal { L } _ { \mathrm { h i d n } } = \mathrm { M S E } ( H ^ { S } W _ { h } , H ^ { T } ) ,
98
+ $$
99
+
100
+ ![](images/52e8792a4cf28d4a165e7817744ce2478997d5cbd9a4238917c577d03857c137.jpg)
101
+ Figure 2: The illustration of TinyBERT learning
102
+
103
+ where the matrices $H ^ { S } \in \mathbb { R } ^ { l \times d ^ { \prime } }$ and $H ^ { T } \in \mathbb { R } ^ { l \times d }$ refer to the hidden states of student and teacher networks respectively, which are calculated by Equation 4. The scalar values $d$ and $d ^ { \prime }$ denote the hidden sizes of teacher and student models, and $d ^ { \prime }$ is often smaller than $d$ to obtain a smaller student network. The matrix $W _ { h } \in \mathbb { R } ^ { d ^ { \prime } \times d }$ is a learnable linear transformation, which transforms the hidden states of student network into the same space as the teacher network’s states.
104
+
105
+ Embedding-layer Distillation. We also perform embedding-layer distillation, which is similar to the hidden states based distillation and formulated as:
106
+
107
+ $$
108
+ \mathcal { L } _ { \mathrm { e m b d } } = \mathtt { M S E } ( E ^ { S } W _ { e } , E ^ { T } ) ,
109
+ $$
110
+
111
+ where the matrices $\pmb { { \cal E } } ^ { S }$ and $H ^ { T }$ refer to the embeddings of student and teacher networks, respectively. In this paper, they have the same shape as the hidden state matrices. The matrix $W _ { e }$ is a linear transformation playing a similar role as $W _ { h }$ .
112
+
113
+ Prediction-Layer Distillation. In addition to imitating the behaviors of intermediate layers, we also use the knowledge distillation to fit the predictions of teacher model (Hinton et al., 2015). Specifically, we penalize the soft cross-entropy loss between the student network’s logits against the teacher’s logits:
114
+
115
+ $$
116
+ \mathcal { L } _ { \mathrm { p r e d } } = - s \cot \mathtt { t m a x } ( z ^ { T } ) \cdot \mathtt { l o g \_ s o f t m a x } ( z ^ { S } / \mathit { t } ) ,
117
+ $$
118
+
119
+ where $z ^ { S }$ and $z ^ { T }$ are the logits vectors predicted by the student and teacher respectively, log softmax() means the log likelihood, $t$ means the temperature value. In our experiment, we find that $t = 1$ performs well.
120
+
121
+ Using the above distillation objectives (i.e. Equations 7, 8, 9 and 10), we can unify the distillation loss of the corresponding layers between the teacher and the student network:
122
+
123
+ $$
124
+ \mathcal { L } _ { \mathrm { l a y e r } } ( S _ { m } , T _ { g ( m ) } ) = \left\{ \begin{array} { l l } { \mathcal { L } _ { \mathrm { e m b d } } ( S _ { 0 } , T _ { 0 } ) , } & { m = 0 } \\ { \mathcal { L } _ { \mathrm { h i d n } } ( S _ { m } , T _ { g ( m ) } ) + \mathcal { L } _ { \mathrm { a t n } } ( S _ { m } , T _ { g ( m ) } ) , } & { M \geq m > 0 } \\ { \mathcal { L } _ { \mathrm { p r e d } } ( S _ { M + 1 } , T _ { N + 1 } ) , } & { m = M + 1 } \end{array} \right.
125
+ $$
126
+
127
+ In our experiments, we firstly perform intermediate layer distillation $M \geq m \geq 0$ ), then perform the prediction-layer distillation $( m = M + 1$ ).
128
+
129
+ # 3.2 TINYBERT LEARNING
130
+
131
+ The application of BERT usually consists of two learning stages: the pre-training and fine-tuning. The plenty of knowledge learned by BERT in the pre-training stage is of great importance and should also be transferred. Therefore, we propose a novel two-stage learning framework including the general distillation and the task-specific distillation, as illustrated in Figure 2. General distillation helps student TinyBERT learn the rich knowledge embedded in teacher BERT, which plays an important role in improving the generalization capability of TinyBERT. The task-specific distillation teaches the student the task-specific knowledge. With the two-step distillation, we can further reduce the gap between teacher and student models.
132
+
133
+ General Distillation. In general distillation, we use the original BERT without fine-tuning as the teacher and a large-scale text corpus as the learning data. By performing the Transformer distillation5 on the text from general domain, we obtain a general TinyBERT that can be fine-tuned for downstream tasks. However, due to the significant reductions of the hidden/embedding size and the layer number, general TinyBERT performs relatively worse than BERT.
134
+
135
+ Table 2: Results are evaluated on the test set of GLUE official benchmark. All models are learned in a single-task manner. “-” means the result is not reported.
136
+
137
+ <table><tr><td>System</td><td>MNLI-m</td><td>MNLI-mm</td><td>QQP</td><td>SST-2</td><td>QNLI</td><td>MRPC</td><td>RTE</td><td>CoLA</td><td>STS-B</td><td>Average</td></tr><tr><td>BERTBASE (Google)</td><td>84.6</td><td>83.4</td><td>71.2</td><td>93.5</td><td>90.5</td><td>88.9</td><td>66.4</td><td>52.1</td><td>85.8</td><td>79.6</td></tr><tr><td>BERTBASE (Teacher)</td><td>83.9</td><td>83.4</td><td>71.1</td><td>93.4</td><td>90.9</td><td>87.5</td><td>67.0</td><td>52.8</td><td>85.2</td><td>79.5</td></tr><tr><td>BERTSMALL</td><td>75.4</td><td>74.9</td><td>66.5</td><td>87.6</td><td>84.8</td><td>83.2</td><td>62.6</td><td>19.5</td><td>77.1</td><td>70.2</td></tr><tr><td>Distilled BiLSTMSOFT</td><td>73.0</td><td>72.6</td><td>68.2</td><td>90.7</td><td>1</td><td>-</td><td>1</td><td>■</td><td>-</td><td>-</td></tr><tr><td>BERT-PKD</td><td>79.9</td><td>79.3</td><td>70.2</td><td>89.4</td><td>85.1</td><td>82.6</td><td>62.3</td><td>24.8</td><td>79.8</td><td>72.6</td></tr><tr><td>DistilBERT</td><td>78.9</td><td>78.0</td><td>68.5</td><td>91.4</td><td>85.2</td><td>82.4</td><td>54.1</td><td>32.8</td><td>76.1</td><td>71.9</td></tr><tr><td>TinyBERT</td><td>82.5</td><td>81.8</td><td>71.3</td><td>92.6</td><td>87.7</td><td>86.4</td><td>62.9</td><td>43.3</td><td>79.9</td><td>76.5</td></tr></table>
138
+
139
+ Table 3: The model sizes and inference time for baselines and TinyBERT. The number of layers does not include the embedding and prediction layers.
140
+
141
+ <table><tr><td>System</td><td>Layers</td><td>Hidden Size</td><td>Feed-forward Size</td><td>Model Size</td><td>Inference Time</td></tr><tr><td>BERTBASE(Teacher)</td><td>12</td><td>768</td><td>3072</td><td>109M(×1.0)</td><td>188s(×1.0)</td></tr><tr><td>Distilled BiLSTMsOFT</td><td>1</td><td>300</td><td>400</td><td>10.1M(×10.8)</td><td>24.8s(×7.6)</td></tr><tr><td>BERT-PKD/DistilBERT</td><td>4</td><td>768</td><td>3072</td><td>52.2M(×2.1)</td><td>63.7s(×3.0)</td></tr><tr><td>TinyBERT/BERTSMALL</td><td>4</td><td>312</td><td>1200</td><td>14.5M(×7.5)</td><td>19.9s(×9.4)</td></tr></table>
142
+
143
+ Task-specific Distillation. Previous studies show that the complex models, fine-tuned BERTs, suffer from over-parametrization for domain-specific tasks (Kovaleva et al., 2019). Thus, it is possible for small models to achieve comparable performances to the BERTs. To this end, we propose to derive competitive fine-tuned TinyBERTs through the task-specific distillation. In the task-specific distillation, we re-perform the proposed Transformer distillation on an augmented task-specific dataset (as shown in Figure 2). Specifically, the fine-tuned BERT is used as the teacher and a data augmentation method is proposed to expand the task-specific training set. Learning more task-related examples, the generalization capabilities of student model can be further improved. In this work, we combine a pre-trained language model BERT and GloVe (Pennington et al., 2014) word embeddings to do word-level replacement for data augmentation. Specifically, we use the language model to predict word replacements for single-piece words (Wu et al., 2019), and use the word embeddings to retrieve the most similar words as word replacements for multiple-pieces words. Some hyperparameters are defined to control the replacement ratio of a sentence and the amount of augmented dataset. More details of the data augmentation procedure are discussed in Appendix A.
144
+
145
+ The above two learning stages are complementary to each other: the general distillation provides a good initialization for the task-specific distillation, while the task-specific distillation further improves TinyBERT by focusing on learning the task-specific knowledge. Although there is a big gap between BERT and TinyBERT in model size, by performing the proposed two-stage distillation, the TinyBERT can achieve competitive performances in various NLP tasks. The proposed Transformer distillation and two-stage learning framework are the two most important components of the proposed distillation method.
146
+
147
+ # 4 EXPERIMENTS
148
+
149
+ In this section, we evaluate the effectiveness and efficiency of TinyBERT on a variety of tasks with different model settings.
150
+
151
+ # 4.1 MODEL SETUP
152
+
153
+ We instantiate a tiny student model (the number of layers $M { = } 4$ , the hidden size $d ^ { \prime } { = } 3 1 2$ , the feedforward/filter size $d _ { i } ^ { \prime } { = } 1 2 0 0$ and the head number $h { = } 1 2$ ) that has a total of 14.5M parameters. If not specified, this student model is referred to as the TinyBERT. The original BERTBASE (the number of layers $N { = } 1 2$ , the hidden size $d { = } 7 6 8$ , the feed-forward/filter size $d _ { i } { = } 3 0 7 2$ and the head number $h { = } 1 2$ ) is used as the teacher model that contains 109M parameters. We use $g ( m ) = 3 \times m$ as the layer mapping function, so TinyBERT learns from every 3 layers of BERTBASE. The learning weight $\lambda$ of each layer is set to 1, which performs well for the learning of our TinyBERT.
154
+
155
+ Table 4: Results (dev) of wider or deeper TinyBERT variants and baselines.
156
+
157
+ <table><tr><td>System</td><td>MNLI-m</td><td>MNLI-mm</td><td>MRPC</td><td>CoLA</td><td>Average</td></tr><tr><td>BERTBASE(Teacher)</td><td>84.2</td><td>84.4</td><td>86.8</td><td>57.4</td><td>78.2</td></tr><tr><td>BERT-PKD (M=6;d&#x27;=768;d=3072)</td><td>80.9</td><td>80.9</td><td>83.1</td><td>43.1</td><td>72.0</td></tr><tr><td>DistilBERT (M=6;d&#x27;=768;d&#x27;=3072)</td><td>81.6</td><td>81.1</td><td>82.4</td><td>42.5</td><td>71.9</td></tr><tr><td>TinyBERT(M=4;d&#x27;=312;d=1200)</td><td>82.8</td><td>82.9</td><td>85.8</td><td>49.7</td><td>75.3</td></tr><tr><td>TinyBERT (M=4;d&#x27;=768;d&#x27;=3072)</td><td>83.8</td><td>84.1</td><td>85.8</td><td>50.5</td><td>76.1</td></tr><tr><td>TinyBERT(M=6:d&#x27;=312;d&#x27;=1200)</td><td>83.3</td><td>84.0</td><td>86.3</td><td>50.6</td><td>76.1</td></tr><tr><td>TinyBERT (M=6;d&#x27;=768;d&#x27;=3072)</td><td>84.5</td><td>84.5</td><td>86.3</td><td>54.0</td><td>77.3</td></tr></table>
158
+
159
+ # 4.2 EXPERIMENTAL RESULTS ON GLUE
160
+
161
+ We evaluate TinyBERT on the General Language Understanding Evaluation (GLUE) (Wang et al., 2018) benchmark, which is a collection of diverse natural language understanding tasks. The details of experiment settings are described in Appendix B. The evaluation results are presented in Table 2 and the efficiencies of model size and inference time are also evaluated in Table 3.
162
+
163
+ The experiment results demonstrate that: 1) There is a large performance gap between BERTSMALL6 and BERTBASE due to the big reduction in model size. 2) TinyBERT is consistently better than BERTSMALL in all the GLUE tasks and achieves a large improvement of $6 . 3 \%$ on average. This indicates that the proposed KD learning framework can effectively improve the performances of small models regardless of downstream tasks. 3) TinyBERT significantly outperforms the state-ofthe-art KD baselines (i.e., BERT-PKD and DistillBERT) by a margin of at least $3 . 9 \%$ , even with only ${ \sim } 2 8 \%$ parameters and ${ \sim } 3 1 \%$ inference time of baselines (see Table 3). 4) Compared with the teacher $\mathbf { B E R T _ { B A S E } }$ , TinyBERT is $7 . 5 \mathrm { x }$ smaller and $9 . 4 \mathbf { x }$ faster in the model efficiency, while maintaining competitive performances. 5) TinyBERT has a comparable model efficiency (slightly larger in size but faster in inference) with Distilled BiLSTMSOFT and obtains substantially better performances in all tasks reported by the BiLSTM baseline. 6) For the challenging CoLA dataset (the task of predicting linguistic acceptability judgments), all the distilled small models have a relatively bigger performance gap with teacher model. TinyBERT achieves a significant improvement over the strong baselines, and its performance can be further improved by using a deeper and wider model to capture more complex linguistic knowledge as illustrated in the next subsection.
164
+
165
+ Moreover, BERT-PKD and DistillBERT initialize their student models with some layers of well pre-trained teacher BERT (see Table 1), which makes the student models have to keep the same size settings of Transformer layer (or embedding layer) as their teacher BERT. In our two-stage distillation framework, TinyBERT is initialized by general distillation, so it has the advantage of being more flexible in model size selection.
166
+
167
+ # 4.3 EFFECTS OF MODEL SIZE
168
+
169
+ We evaluate how much improvement can be achieved when increasing the model size of TinyBERT on several typical GLUE tasks, where MNLI and MRPC are used in the ablation studies of Devlin et al. (2018), and CoLA is the most difficult task in GLUE. Specifically, three wider and deeper variants are proposed and their evaluation results on development set are displayed in Table 4. We can observe that: 1) All the three TinyBERT variants can consistently outperform the original smallest TinyBERT, which indicates that the proposed KD method works for the student models of various model sizes. 2) For the CoLA task, the improvement is slight when only increasing the number of layers (from 49.7 to 50.6) or hidden size (from 49.7 to 50.5). To achieve more dramatic improvements, the student model should become deeper and wider (from 49.7 to 54.0). 3) Another interesting observation is that the smallest 4-layer TinyBERT can even outperform the 6-layers baselines, which further confirms the effectiveness of the proposed KD method.
170
+
171
+ # 4.4 ABLATION STUDIES
172
+
173
+ In this section, we conduct ablation studies to investigate the contributions of $: 1$ ) different procedures of the proposed two-stage TinyBERT learning framework (see Figure 2), and 2) different distillation objectives (see Equation 11).
174
+
175
+ Table 5: Ablation studies of different procedures (i.e., TD, GD, and DA) of the two-stage learning framework. The variants are validated on the dev set.
176
+
177
+ <table><tr><td>System</td><td>MNLI-m MNLI-mm</td><td>MRPC</td><td>CoLA</td><td>Average</td></tr><tr><td>TinyBERT</td><td>82.8</td><td>82.9</td><td>85.8 49.7</td><td>75.3</td></tr><tr><td>No GD</td><td>82.5</td><td>82.6</td><td>84.1 40.8</td><td>72.5</td></tr><tr><td>No TD</td><td>80.6</td><td>81.2</td><td>83.8 28.5</td><td>68.5</td></tr><tr><td>No DA</td><td>80.5</td><td>81.0</td><td>82.4 29.8</td><td>68.4</td></tr></table>
178
+
179
+ Table 6: Ablation studies of different distillation objectives in the TinyBERT learning. The variants are validated on the dev set.
180
+
181
+ <table><tr><td>System</td><td>MNLI-m</td><td>MNLI-mm</td><td>MRPC</td><td>CoLA</td><td>Average</td></tr><tr><td>TinyBERT</td><td>82.8</td><td>82.9</td><td>85.8</td><td>49.7</td><td>75.3</td></tr><tr><td>No Embd</td><td>82.3</td><td>82.3</td><td>85.0</td><td>46.7</td><td>74.1</td></tr><tr><td>No Pred</td><td>80.5</td><td>81.0</td><td>84.3</td><td>48.2</td><td>73.5</td></tr><tr><td>No Trm</td><td>71.7</td><td>72.3</td><td>70.1</td><td>11.2</td><td>56.3</td></tr><tr><td>No Attn</td><td>79.9</td><td>80.7</td><td>82.3</td><td>41.1</td><td>71.0</td></tr><tr><td>No Hidn</td><td>81.7</td><td>82.1</td><td>84.1</td><td>43.7</td><td>72.9</td></tr></table>
182
+
183
+ Table 7: Results (dev) of different mapping strategies.
184
+
185
+ <table><tr><td>System</td><td>MNLI-m</td><td>MNLI-mm</td><td>MRPC</td><td>CoLA</td><td>Average</td></tr><tr><td>TinyBERT(Uniform-strategy)</td><td>82.8</td><td>82.9</td><td>85.8</td><td>49.7</td><td>75.3</td></tr><tr><td>TinyBERT(Top-strategy)</td><td>81.7</td><td>82.3</td><td>83.6</td><td>35.9</td><td>70.9</td></tr><tr><td>TinyBERT (Bottom-strategy)</td><td>80.6</td><td>81.3</td><td>84.6</td><td>38.5</td><td>71.3</td></tr></table>
186
+
187
+ Effects of different learning procedures. The proposed two-stage TinyBERT learning framework (see Figure 2) consists of three key procedures: TD (Task-specific Distillation), GD (General Distillation) and DA (Data Augmentation). The effects of different learning procedures are analyzed and presented in Table 5. The results indicate that all the three procedures are crucial for the proposed KD method. The TD and DA has comparable effects in all the four tasks. We can also find the task-specific procedures (TD and DA) are more helpful than the pre-training procedure (GD) in all the four tasks. Another interesting observation is that GD has more effect on CoLA than on MNLI and MRPC. We conjecture that the ability of linguistic generalization (Warstadt et al., 2018) learned by GD plays a more important role in the downstream CoLA task (linguistic acceptability judgments).
188
+
189
+ Effects of different distillation objectives. We investigate the effects of distillation objectives on the TinyBERT learning. Several baselines are proposed including the TinyBERT learning without the Transformer-layer distillation (No Trm), embedding-layer distillation (No Emb) and predictionlayer distillation $( \dot { \mathrm { N o } } \ \mathrm { P r e d } ) ^ { 7 }$ respectively. The results are illustrated in Table 6 and show that all the proposed distillation objectives are useful for the TinyBERT learning. The performance drops significantly from 75.3 to 56.3 under the setting (No Trm), which indicates Transformer-layer distillation is the key for TinyBERT learning. Furthermore, we study the contributions of attention (No Attn) and hidden states (No Hidn) in the Transformer-layer distillation. We can find the attention based distillation has a bigger effect than hidden states based distillation on TinyBERT learning. Meanwhile, these two kinds of knowledge distillation are complementary to each other, which makes TinyBERT obtain the competitive results.
190
+
191
+ # 4.5 EFFECTS OF MAPPING FUNCTION
192
+
193
+ We investigate the effects of different mapping functions $n = g ( m )$ on the TinyBERT learning. Our original TinyBERT as described in section 4.1 uses the uniform-strategy, and we compare with two typical baselines including top-strategy $( g ( m ) = m + N - M ; 0 < m \leq M )$ and bottom-strategy $\bar { ( g ( m ) = m ; 0 < m \leq M ) }$ .
194
+
195
+ The comparison results are presented in Table 7. We find that the top-strategy performs better than the bottom-strategy in MNLI, while being worse in MRPC and CoLA tasks, which confirms the observations that different tasks depend on the different kinds of knowledge from BERT layers. Since the uniform-strategy acquires the knowledge from bottom to top layers of BERTBASE, it achieves better performances than the other two baselines in all the four tasks. Adaptively choosing layers for a specific task is a challenging problem and we leave it as the future work.
196
+
197
+ Other Experiments. We also evaluate TinyBERT on the question answering tasks, and study whether we can use BERTSMALL as the initialization of the general TinyBERT. The experiments are detailed in Appendix C and D.
198
+
199
+ # 5 CONCLUSION AND FUTURE WORK
200
+
201
+ In this paper, we firstly introduce a new KD method for Transformer-based distillation, then we further propose a two-stage framework for TinyBERT learning. Extensive experiments show that the TinyBERT achieves competitive performances meanwhile significantly reducing the model size and shortening the inference time of original BERTBASE, which provides an effective way to deploy BERT-based NLP applications on the edge devices.
202
+
203
+ In future work, we would study how to effectively transfer the knowledge from wider and deeper teachers (e.g., BERTLARGE and XLNetLARGE) to student TinyBERT. The joint learning of distillation and quantization/pruning would be another promising direction to further compress the pre-trained language models.
204
+
205
+ # REFERENCES
206
+
207
+ Luisa Bentivogli, Peter Clark, Ido Dagan, and Danilo Giampiccolo. The fifth pascal recognizing textual entailment challenge. In TAC, 2009.
208
+
209
+ Daniel Cer, Mona Diab, Eneko Agirre, Inigo Lopez-Gazpio, and Lucia Specia. Semeval-2017 task 1: Semantic textual similarity-multilingual and cross-lingual focused evaluation. arXiv preprint arXiv:1708.00055, 2017.
210
+
211
+ Zihan Chen, Hongbo Zhang, Xiaoji Zhang, and Leqi Zhao. Quora question pairs, 2018.
212
+
213
+ Kevin Clark, Urvashi Khandelwal, Omer Levy, and Christopher D Manning. What does bert look at? an analysis of bert’s attention. arXiv preprint arXiv:1906.04341, 2019.
214
+
215
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
216
+
217
+ Ming Ding, Chang Zhou, Qibin Chen, Hongxia Yang, and Jie Tang. Cognitive graph for multi-hop reading comprehension at scale. In Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL 2019, pp. 2694–2703, 2019.
218
+
219
+ William B. Dolan and Chris Brockett. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005), 2005.
220
+
221
+ Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep convolutional networks using vector quantization. arXiv preprint arXiv:1412.6115, 2014.
222
+
223
+ Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015a.
224
+
225
+ Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In Advances in neural information processing systems(NeurIPS), pp. 1135–1143, 2015b.
226
+
227
+ Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
228
+
229
+ Minghao Hu, Yuxing Peng, Furu Wei, Zhen Huang, Dongsheng Li, Nan Yang, and Ming Zhou. Attention-guided answer distillation for machine reading comprehension. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing(EMNLP), pp. 2077– 2086, 2018.
230
+
231
+ Mandar Joshi, Danqi Chen, Yinhan Liu, Daniel S Weld, Luke Zettlemoyer, and Omer Levy. Spanbert: Improving pre-training by representing and predicting spans. arXiv preprint arXiv:1907.10529, 2019.
232
+
233
+ Yoon Kim and Alexander M Rush. Sequence-level knowledge distillation. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing(EMNLP), pp. 1317– 1327, 2016.
234
+
235
+ Olga Kovaleva, Alexey Romanov, Anna Rogers, and Anna Rumshisky. Revealing the dark secrets of bert. arXiv preprint arXiv:1908.08593, 2019.
236
+
237
+ Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
238
+
239
+ Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp. 1532–1543, 2014.
240
+
241
+ Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuAD: $1 0 0 { , } 0 0 0 { + }$ questions for machine comprehension of text. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing(EMNLP), pp. 2383–2392, November 2016.
242
+
243
+ Pranav Rajpurkar, Robin Jia, and Percy Liang. Know what you dont know: Unanswerable questions for squad. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics(ACL), pp. 784–789, 2018.
244
+
245
+ Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014.
246
+
247
+ 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(EMNLP), pp. 1631–1642, October 2013.
248
+
249
+ Siqi Sun, Yu Cheng, Zhe Gan, and Jingjing Liu. Patient knowledge distillation for bert model compression. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing(EMNLP), 2019.
250
+
251
+ Raphael Tang, Yao Lu, Linqing Liu, Lili Mou, Olga Vechtomova, and Jimmy Lin. Distilling taskspecific knowledge from bert into simple neural networks. arXiv preprint arXiv:1903.12136, 2019.
252
+
253
+ 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(NeurIPS), pp. 5998–6008, 2017.
254
+
255
+ Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing(EMNLP), pp. 353–355, 2018.
256
+
257
+ Alex Warstadt, Amanpreet Singh, and Samuel R Bowman. Neural network acceptability judgments. arXiv preprint arXiv:1805.12471, 2018.
258
+
259
+ Adina Williams, Nikita Nangia, and Samuel Bowman. A broad-coverage challenge corpus for sentence understanding through inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics(NAACL), pp. 1112–1122, 2018.
260
+
261
+ Xing Wu, Shangwen Lv, Liangjun Zang, Jizhong Han, and Songlin Hu. Conditional bert contextual augmentation. In International Conference on Computational Science(ICCS), pp. 84–95. Springer, 2019.
262
+
263
+ Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V Le. Xlnet: Generalized autoregressive pretraining for language understanding. arXiv preprint arXiv:1906.08237, 2019.
264
+
265
+ # APPENDIX
266
+
267
+ # A DATA AUGMENTATION DETAILS
268
+
269
+ In this section, we explain the proposed data augmentation method. Specifically, we firstly mask a word in a sentence, then use BERT as a language model to predict $M$ most-likely words in the corresponding position, while keeping other words unchanged. By this way, we can easily get the candidates for each word under a specific context. To induce new instances for a given sentence, we also use a threshold $p _ { t }$ to determine whether we should replace the current word with a randomly selected candidate. By repetitively performing this replacement operation for each word in a sentence, we can finally get a new augmented sentence. In our preliminary experiments, we find the quality of generated candidates for the words consisting of multiple sub-word pieces, is relatively low. To alleviate this problem, we instead pick a similar word from GloVe (Pennington et al., 2014) word embeddings based on the cosine similarity. We apply this data augmentation method $N$ times to all the sentences of a downstream task. In this work, we set $p _ { t } = 0 . 4$ , $N = 2 0$ , $M = 1 5$ for all our experiments. The data augmentation procedure is illustrated as below:
270
+
271
+ <table><tr><td>Algorithm1 The Proposed Data Augmentation Input: x is a sequence of words Pt,N,M are hyperparameters Output: data_aug,the augmented data</td><td></td></tr><tr><td>1:function DATA_AUGMENTANTION(X,Pt, N)</td><td></td></tr><tr><td>2: n←0</td><td></td></tr><tr><td>3:</td><td>data_aug←[]</td></tr><tr><td>4:</td><td>whilen&lt;N do</td></tr><tr><td>5:</td><td>Xmasked ←X</td></tr><tr><td>6:</td><td>fori←1to len(x) do</td></tr><tr><td>7:</td><td>if x[i] is a single-piece word then</td></tr><tr><td>8:</td><td>Replace Xmasked[i] with [MASK]</td></tr><tr><td>9:</td><td>candidates ← M most-likely words predicted by BertModel(Xmasked)[i]</td></tr><tr><td>10:</td><td>else</td></tr><tr><td>11:</td><td>candidates ← M similar words of x[i] from GloVe</td></tr><tr><td>12:</td><td>end if</td></tr><tr><td>13:</td><td>Sample p ~ UNIFORM(0,1)</td></tr><tr><td>14:</td><td>if p ≤ pt then</td></tr><tr><td>15:</td><td> Replace Xmasked[i] with a word from candidates randomly</td></tr><tr><td>16:</td><td>else</td></tr><tr><td>17:</td><td>Keep Xmasked[i] as x[i] unchanged</td></tr><tr><td>18:</td><td>end if</td></tr><tr><td>19:</td><td>end for</td></tr><tr><td>20:</td><td>Append Xmasked to data_aug</td></tr><tr><td>21:</td><td>n=n+1</td></tr><tr><td>22:</td><td>end while</td></tr><tr><td></td><td></td></tr><tr><td>23:</td><td>return data_aug</td></tr><tr><td>24:</td><td>end function</td></tr></table>
272
+
273
+ # B GLUE DETAILS
274
+
275
+ TinyBERT setup. TinyBERT learning includes the general distillation and the task-specific distillation. For the general distillation, we use English Wikipedia $2 { , } 5 0 0 \mathrm { M }$ words) as the text corpus and perform the intermediate layer distillation for 3 epochs with the supervision from a pre-trained BERTBASE teacher and keep other hyper-parameters same as BERT pre-training (Devlin et al., 2018). For the task-specific distillation, we firstly perform intermediate layer distillation on the augmented dataset for 10 epochs with batch size 32 and learning rate 5e-5 under the supervision of a fine-tuned BERT teacher, and then perform prediction layer distillation for 3 epochs with batch size 32 and learning rate 3e-5. For tasks like MNLI, QQP and QNLI which have $\geq 1 0 0 K$ training examples, we distill intermediate layer knowledge for 5 epochs with batch size 256 on the augmented dataset. Besides, for CoLA task, we perform 50 epochs of intermediate layer distillation.
276
+
277
+ Baselines setup. We use BERT-PKD and DistilBERT as our baselines. For a fair comparison, we firstly re-implemented the results of BERT-PKD and DistilBERT reported in their papers to ensure our implementation procedure is correct. Then following the verified implementation procedure, we trained a 4-layer BERT-PKD and a 4-layer DistilBERT as the baselines. The BERTSMALL learning strictly follows the same learning strategy as described in the original BERT work (Devlin et al., 2018).
278
+
279
+ Model efficiency evaluation. To evaluate the inference speed, we ran inference procedure on the QNLI training set with batch size of 128 and the maximum sequence length of 128. The numbers reported in Table 3 are the average running time of 100 batches on a single NVIDIA K80 GPU.
280
+
281
+ The GLUE datasets are described as follows:
282
+
283
+ MNLI. Multi-Genre Natural Language Inference is a large-scale, crowd-sourced entailment classification task (Williams et al., 2018). Given a pair of hpremise, hypothesisi, the goal is to predict whether the hypothesis is an entailment, contradiction, or neutral with respect to the premise.
284
+
285
+ QQP. Quora Question Pairs is a collection of question pairs from the website Quora. The task is to determine whether two questions are semantically equivalent (Chen et al., 2018).
286
+
287
+ QNLI. Question Natural Language Inference is a version of the Stanford Question Answering Dataset which has been converted to a binary sentence pair classification task by Wang et al. (2018). Given a pair hquestion, contexti. The task is to determine whether the context contains the answer to the question.
288
+
289
+ SST-2. The Stanford Sentiment Treebank is a binary single-sentence classification task, where the goal is to predict the sentiment of movie reviews (Socher et al., 2013).
290
+
291
+ CoLA. The Corpus of Linguistic Acceptability is a task to predict whether an English sentence is a grammatically correct one (Warstadt et al., 2018).
292
+
293
+ STS-B. The Semantic Textual Similarity Benchmark is a collection of sentence pairs drawn from news headlines and many other domains (Cer et al., 2017). The task aims to evaluate how similar two pieces of texts are by a score from 1 to 5.
294
+
295
+ MRPC. Microsoft Research Paraphrase Corpus is a paraphrase identification dataset where systems aim to identify if two sentences are paraphrases of each other (Dolan & Brockett, 2005).
296
+
297
+ RTE. Recognizing Textual Entailment is a binary entailment task with a small training dataset (Bentivogli et al., 2009).
298
+
299
+ # C SQUAD 1.1 AND 2.0
300
+
301
+ We also demonstrate the effectiveness of TinyBERT on the question answering (QA) tasks: SQuAD v1.1 (Rajpurkar et al., 2016) and v2.0 (Rajpurkar et al., 2018). Following the learning procedure in the previous work (Devlin et al., 2018), we treat these two tasks as the problem of sequence labeling which predicts the possibility of each token as the start or end of answer span. We follow the settings of task-specific distillation in GLUE tasks, except with 3 running epochs and a learning rate of 5e-5 for the prediction-layer distillation on the original training dataset. The results are shown in Table 8.
302
+
303
+ The results show that TinyBERT consistently outperforms the baselines in both the small and medium size, which indicates that the proposed framework also works for the tasks of token-level labeling. Compared with sequence-level GLUE tasks, the question answering tasks depends on more subtle knowledge to infer the correct answer, which increases the difficulty of knowledge distillation. We leave how to build a better QA-TinyBERT as the future work.
304
+
305
+ # D BERTSMALL AS INITIALIZATION OF GENERAL TINYBERT
306
+
307
+ Initializing general TinyBERT with BERTSMALL is a straightforward idea. However, BERTSMALL would derive mismatched distributions in intermediate representations (e.g., attention matrices and hidden states) with the teacher $\mathbf { B E R T _ { B A S E } }$ model, if without imitating the teacher’s behaviors at the pre-training stage. Further task-specific distillation under the supervision of finetuned BERTBASE will disturb the learned distribution/knowledge of BERTSMALL, finally leading to poor performances in some less-data tasks. The results in Table 9, show that the BERTSMALL(MLM&NSP+TD) performs worse than the BERTSMALL in MRPC and CoLA tasks, which validates our hypothesis. For the intensive-data task (e.g. MNLI), TD has enough training data to make BERTSMALL acquire the task-specific knowledge very well, although the pre-trained distributions have already been disturbed.
308
+
309
+ Table 8: Results (dev) of baselines and TinyBERT on question answering tasks.
310
+
311
+ <table><tr><td>System</td><td colspan="2">SQuAD 1.1 EM</td><td colspan="2">SQuAD 2.0</td></tr><tr><td>BERTBASE (Teacher)</td><td>80.7</td><td>F1 88.4</td><td>EM 73.1</td><td>F1 76.4</td></tr><tr><td colspan="5">Small Models</td></tr><tr><td>BERT-PKD(M=4;d&#x27;=768;d=3072)</td><td>70.1</td><td>79.5</td><td>60.8</td><td>64.6</td></tr><tr><td>DistilBERT(M=4;d&#x27;=768;d&#x27;=3072)</td><td>71.8</td><td>81.2</td><td>60.6</td><td>64.1</td></tr><tr><td>TinyBERT(M=4;d&#x27;=312;d&#x27;=1200)</td><td>72.7</td><td>82.1</td><td>65.3</td><td>68.8</td></tr><tr><td colspan="5">Medium-sized Models</td></tr><tr><td>BERT-PKD (M=6;d&#x27;=768;d=3072)</td><td>77.1</td><td>85.3</td><td>66.3</td><td>69.8</td></tr><tr><td>DistilBERT (M=6;d&#x27;=768;d&#x27;=3072)</td><td>78.1</td><td>86.2</td><td>66.0</td><td>69.5</td></tr><tr><td>TinyBERT(M=6;d&#x27;=768;d&#x27;=3072)</td><td>79.7</td><td>87.5</td><td>69.9</td><td>73.4</td></tr></table>
312
+
313
+ Table 9: Results of different methods at pre-training state. TD and GD refers to Task-specific Distillation (without data augmentation) and General Distillation. The results are evaluated on development set.
314
+
315
+ <table><tr><td>System</td><td>MNLI-m (392k)</td><td>MNLI-mm (392k)</td><td>MRPC (3.5k)</td><td>CoLA (8.5k)</td><td>Average</td></tr><tr><td>BERTSMALL (MLM&amp;NSP)</td><td>75.9</td><td>76.9</td><td>83.2</td><td>19.5</td><td>63.9</td></tr><tr><td>BERTSMALL (MLM&amp;NSP+TD) TinyBERT(GD)</td><td>79.2 76.6</td><td>79.7 77.2</td><td>82.9 82.0</td><td>12.4 8.7</td><td>63.6 61.1</td></tr><tr><td>TinyBERT (GD+TD)</td><td>80.5</td><td>81.0</td><td>82.4</td><td>29.8</td><td>68.4</td></tr></table>
316
+
317
+ To make TinyBERT effectively work for all tasks, we propose General Distillation (GD) for initialization, where the TinyBERT learns the knowledge from intermediate layers of teacher BERT at the pre-training stage. From the results of Table 9, we find that GD can effectively transfer the knowledge from the teacher BERT to the student TinyBERT and achieve comparable results with BERTSMALL (61.1 vs. 63.9), even without performing the MLM and NSP tasks. Furthermore, the task-specific distillation boosts the performances of TinyBERT by continuing on learning the task-specific knowledge of fine-tuned teacher BERTBASE.
318
+
319
+ # E MORE COMPLETE COMPARISONS WITH SAME STUDENT ARCHITECTURE
320
+
321
+ For the easy and direct comparisons with prior works, we here also present the results of TinyBERT $( M { = } 6 ; d ^ { \prime } { = } 7 6 8 ; d _ { i } ^ { \prime } { = } 3 0 7 2$ ) with the same architectures as used in the original BERT-PKD (Sun et al., 2019) and DistilBERT2. Since in the original papers, the BERT-PKD is evaluated on the test set, and the DistilBERT is evaluated on the dev set. Thus, for a clear illustration, we present the results in the following Tables 10 and 11, separately.
322
+
323
+ Table 10: Comparisons between TinyBERT and BERT-PKD, and the results are evaluated on the test set of official GLUE tasks.
324
+
325
+ <table><tr><td>System</td><td>SST-2 (67k) Acc</td><td>MRPC (3.7k) F1/Acc</td><td>QQP (364k) F1/Acc</td><td>MNLI-m (393k) Acc</td><td>MNLI-mm (393k) Acc</td><td>QNLI (105k) Acc</td><td>RTE (2.5k) Acc</td></tr><tr><td colspan="8">Same Student Architecture (M=6;d&#x27;=768;d=3072)</td></tr><tr><td>BERT6-PKD</td><td>92.0</td><td>85.0/79.9</td><td>70.7/88.9</td><td>81.5</td><td>81.0</td><td>89.0</td><td>65.5</td></tr><tr><td>TinyBERT</td><td>93.1</td><td>87.3/82.6</td><td>71.6/89.1</td><td>84.6</td><td>83.2</td><td>90.4</td><td>66.0</td></tr></table>
326
+
327
+ Table 11: Comparisons between TinyBERT with DistilBERT, and the results are evaluated on the dev set of GLUE tasks. Mcc refers to Matthews correlation and Pear/Spea refer to Pearson/Spearman.
328
+
329
+ <table><tr><td>System</td><td>CoLA (8.5k) Mcc</td><td>MNLI-m (393k) Acc</td><td>MNLI-mm (393k) Acc</td><td>MRPC (3.7k) F1/Acc</td><td>QNLI (105k) Acc</td><td>QQP (364k) F1/Acc</td><td>RTE (2.5k) Acc</td><td>SST-2 (67k) Acc</td><td>STS-B (5.7k) Pear/Spea</td></tr><tr><td colspan="10">Same Student Architecture (M=6;d&#x27;=768;d=3072)</td></tr><tr><td>DistilIBERT</td><td>42.5</td><td>81.6</td><td>81.1</td><td>88.3/82.4</td><td>85.5</td><td>87.7/90.6</td><td>60.0</td><td>92.7</td><td>84.5/85.0</td></tr><tr><td>TinyBERT</td><td>54.0</td><td>84.5</td><td>84.5</td><td>90.6/86.3</td><td>91.1</td><td>88.0/91.1</td><td>70.4</td><td>93.0</td><td>90.1/89.6</td></tr></table>
330
+
331
+ Thus, from the direct comparisons with the reported results in the original papers, we can see the TinyBERT outperforms the baselines (DistilBERT and BERT-PKD) under the same settings of architecture and evaluation, the effectiveness of TinyBERT is confirmed. Moreover, since BERT-PKD and DistilBERT need to initialize their student models with some layers of pre-trained teacher BERT, they have the limitations that the student models have to keep the same size settings of hidden size and feedforward/filter size as their teacher BERT. TinyBERT is initialized by general distillation, so it has the advantage of being more flexible in model size selection.
parse/train/rJx0Q6EFPB/rJx0Q6EFPB_middle.json ADDED
The diff for this file is too large to render. See raw diff