ZHANGYUXUAN-zR commited on
Commit
3448c0b
·
verified ·
1 Parent(s): 445e0ed

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. parse/train/BJg_roAcK7/BJg_roAcK7.md +480 -0
  2. parse/train/BJg_roAcK7/BJg_roAcK7_content_list.json +0 -0
  3. parse/train/BJg_roAcK7/BJg_roAcK7_middle.json +0 -0
  4. parse/train/BJg_roAcK7/BJg_roAcK7_model.json +0 -0
  5. parse/train/ByxT7TNFvH/ByxT7TNFvH.md +279 -0
  6. parse/train/ByxT7TNFvH/ByxT7TNFvH_content_list.json +1495 -0
  7. parse/train/ByxT7TNFvH/ByxT7TNFvH_middle.json +0 -0
  8. parse/train/ByxT7TNFvH/ByxT7TNFvH_model.json +0 -0
  9. parse/train/HkL7n1-0b/HkL7n1-0b.md +402 -0
  10. parse/train/HkL7n1-0b/HkL7n1-0b_content_list.json +1956 -0
  11. parse/train/HkL7n1-0b/HkL7n1-0b_middle.json +0 -0
  12. parse/train/HkL7n1-0b/HkL7n1-0b_model.json +0 -0
  13. parse/train/r1IRctqxg/r1IRctqxg.md +256 -0
  14. parse/train/r1IRctqxg/r1IRctqxg_content_list.json +1286 -0
  15. parse/train/r1IRctqxg/r1IRctqxg_middle.json +0 -0
  16. parse/train/r1IRctqxg/r1IRctqxg_model.json +0 -0
  17. parse/train/rknt2Be0-/rknt2Be0-.md +340 -0
  18. parse/train/rknt2Be0-/rknt2Be0-_content_list.json +1734 -0
  19. parse/train/rknt2Be0-/rknt2Be0-_middle.json +0 -0
  20. parse/train/rknt2Be0-/rknt2Be0-_model.json +0 -0
  21. vlm/dev/17RDXeF-skZ/0.png +3 -0
  22. vlm/dev/17RDXeF-skZ/1.png +3 -0
  23. vlm/dev/17RDXeF-skZ/10.png +3 -0
  24. vlm/dev/17RDXeF-skZ/11.png +3 -0
  25. vlm/dev/17RDXeF-skZ/12.png +3 -0
  26. vlm/dev/17RDXeF-skZ/13.png +3 -0
  27. vlm/dev/17RDXeF-skZ/2.png +3 -0
  28. vlm/dev/17RDXeF-skZ/3.png +3 -0
  29. vlm/dev/17RDXeF-skZ/4.png +3 -0
  30. vlm/dev/17RDXeF-skZ/5.png +3 -0
  31. vlm/dev/17RDXeF-skZ/6.png +3 -0
  32. vlm/dev/17RDXeF-skZ/7.png +3 -0
  33. vlm/dev/17RDXeF-skZ/8.png +3 -0
  34. vlm/dev/17RDXeF-skZ/9.png +3 -0
  35. vlm/dev/5Xc1ecxO1h/0.png +3 -0
  36. vlm/dev/5Xc1ecxO1h/1.png +3 -0
  37. vlm/dev/5Xc1ecxO1h/10.png +3 -0
  38. vlm/dev/5Xc1ecxO1h/11.png +3 -0
  39. vlm/dev/5Xc1ecxO1h/12.png +3 -0
  40. vlm/dev/5Xc1ecxO1h/13.png +3 -0
  41. vlm/dev/5Xc1ecxO1h/2.png +3 -0
  42. vlm/dev/5Xc1ecxO1h/3.png +3 -0
  43. vlm/dev/5Xc1ecxO1h/4.png +3 -0
  44. vlm/dev/5Xc1ecxO1h/5.png +3 -0
  45. vlm/dev/5Xc1ecxO1h/6.png +3 -0
  46. vlm/dev/5Xc1ecxO1h/7.png +3 -0
  47. vlm/dev/5Xc1ecxO1h/8.png +3 -0
  48. vlm/dev/5Xc1ecxO1h/9.png +3 -0
  49. vlm/dev/6Dz7RiRiMFd/0.png +3 -0
  50. vlm/dev/6Dz7RiRiMFd/1.png +3 -0
parse/train/BJg_roAcK7/BJg_roAcK7.md ADDED
@@ -0,0 +1,480 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # INVASE: INSTANCE-WISE VARIABLE SELECTION USING NEURAL NETWORKS
2
+
3
+ Jinsung Yoon
4
+ Department of Electrical and Computer Engineering
5
+ UCLA, California, USA
6
+ jsyoon0823@g.ucla.edu
7
+ James Jordon
8
+ Engineering Science Department
9
+ University of Oxford, UK
10
+ james.jordon@wolfson.ox.ac.uk
11
+ Mihaela van der Schaar
12
+ University of Cambridge, UK
13
+ Department of Electrical and Computer Engineering, UCLA, California, USA
14
+ Alan Turing Institute, London, UK
15
+ mihaela@ee.ucla.edu
16
+
17
+ # ABSTRACT
18
+
19
+ The advent of big data brings with it data with more and more dimensions and thus a growing need to be able to efficiently select which features to use for a variety of problems. While global feature selection has been a well-studied problem for quite some time, only recently has the paradigm of instance-wise feature selection been developed. In this paper, we propose a new instance-wise feature selection method, which we term INVASE. INVASE consists of 3 neural networks, a selector network, a predictor network and a baseline network which are used to train the selector network using the actor-critic methodology. Using this methodology, INVASE is capable of flexibly discovering feature subsets of a different size for each instance, which is a key limitation of existing state-of-the-art methods. We demonstrate through a mixture of synthetic and real data experiments that INVASE significantly outperforms state-of-the-art benchmarks.
20
+
21
+ # 1 INTRODUCTION
22
+
23
+ High-dimensional data is becoming more readily available, and it brings with it a growing need to be able to efficiently select which features to use for a variety of problems. When doing predictions, it is well known that using too many variables with too few samples can lead to overfitting, which can significantly hinder the performance of predictive models. In the realm of interpretability, the large dimensionality of the data is often too much information to present to a human who may be using the machine learning model as a support system. Understanding which features are most relevant to an outcome or to a model output is an important first step in improving predictions and interpretability and many works exist that tackle feature selection on a global level. However, in the heterogeneous data we typically encounter, the prediction made by a model (and indeed the true label) may rely on a different subset of the features for different subgroups within the data [14]. In this paper we propose a novel instance-wise feature selection method, INVASE (INstance-wise VAriable SElection), which attempts to learn which subset of the features is relevant for each sample, allowing us to display the minimal information required to explain each prediction and also to reduce overfitting of predictive models.
24
+
25
+ Discovering a global subset of relevant features for a particular task is a well-studied problem and there are several existing methods for solving it such as Sequential Correlation Feature Selection [11], Mutual Information Feature Selection [21], Knockoff models [3], and more [10; 16]. However, global feature selection suffers from a key limitation - the features discovered by global feature selection are the same for all samples. In many cases, in particular when populations are highly heterogeneous, the relevant features may differ across samples [33; 32]. For instance, different patient subgroups have different relevant features for predicting heart failure [14]. Instance-wise feature selection methods such as [4; 27] instead try to discover the features that are relevant for each sample. When the goal is to provide an interpretable explanation of the predictions made, a key challenge is in ensuring that we do not over-explain by providing too much information (i.e. choosing too many features). Naturally, by performing feature selection on an individualized level we are able to select features that are more relevant to each sample, rather than having to choose the top $k$ features globally, which may not explain the predictions for some samples very well, but simply perform well on average across all samples.
26
+
27
+ In this paper, we propose a novel instance-wise feature selection method which we term INVASE. We draw influence from actor-critic models [22] to solve the problem of backpropagating through subset sampling. Our model consists of 3 neural networks: a selector network, a predictor network and a baseline network. During training, each of these are trained iteratively, with the selector network being trained to minimize a Kullback-Leibler (KL) divergence between the full conditional distribution and the selected-features-only conditional distribution of the outcome. Our model is capable of discovering a different number of relevant variables for each sample which is a key limitation in existing instance-wise approaches (such as [4]). We show significant improvements over the state-of-the-art in both synthetic data and real-word data in terms of true positive rates, false discovery rates, and show better predictive performance with respect to several prediction metrics. Our model can also be easily extended to handle both continuous and discrete outputs and time-series inputs (see the Appendix for details).
28
+
29
+ # 1.1 RELATED WORKS
30
+
31
+ There are many existing works on global variable selection (see [10] for a good summary paper). [21] and [11] use max-dependency min-redundancy criteria [17] with mutual information and Pearson correlation, respectively. [3] uses multiple hypothesis testing for global variable selection. As noted above, these global selection methods are not capable of learning sample-specific relevance.
32
+
33
+ Instance-wise variable selection is also closely related to model interpretation methods. Some previous works are based on backpropagation from the output of the predictive model to the input variables [29]. DeepLIFT [27] decomposes the output of the neural network on a reference input to compute the contribution of each input variable. However, both methods need white-box access to the pre-trained predictive models to compute the gradient and decomposition. [2] approximates the predictive models using a Parzen window approximator when there is only black-box access to the predictive models. Some other works are based on input perturbation such as [1], [15], [30] and [5]. [18] uses Shapley values to compute the variable importance, and [24] uses locally linear models to explain the linear dependency for each sample. [19] tries to interpret tree ensemble models using Shapley values but cannot generalize to other predictive models such as neural networks.
34
+
35
+ Our work is most closely related to L2X (Learning to Explain) [4]. However, there are 3 key differences between our work and theirs. In L2X, they try to maximize a lower bound of the mutual information between the target $Y$ and the selected input variables $X _ { S }$ . In contrast, we try to minimize the KL divergence between the conditional distributions $Y | X$ and $Y | X _ { S }$ . In order to be able to backpropagate through subset sampling, L2X use the Gumbel-softmax trick [13] to approximately discretize the continuous outputs of the neural network. In our work, we use methods from actorcritic models [22] to bypass backpropagation through the sampling and instead use the predictor network to provide a reward to the selector network. Finally, due to the Gumbel-softmax used in L2X, the number of variables to be detected must be fixed in advance and is necessarily the same for every sample. The actor-critic methodology used in our model has no such limitations and so we are able to flexibly select a different number of relevant variables for each sample and instead induce sparsity using an $l _ { 0 }$ penalty term. In fact, using the actor-critic methodology allows us to directly use the $l _ { 0 }$ penalty term (which is not differentiable and therefore not practical to use in general). A summary table highlighting the key features of all of the related works can be found in the Appendix.
36
+
37
+ # 2 PROBLEM FORMULATION
38
+
39
+ Let ${ \mathcal { X } } = { \mathcal { X } } _ { 1 } \times \ldots \times { \mathcal { X } } _ { d }$ be a $d$ -dimensional feature space and $\boldsymbol { \mathcal { V } } = \{ 1 , . . . , c \}$ be a discrete label space1. Let $\mathbf { X } = ( X _ { 1 } , . . . , X _ { d } ) \in \mathcal { X }$ and $Y \in \mathcal { D }$ be random variables with joint density (or mass) $p$ and marginal densities (or masses) $p _ { X }$ and $p _ { Y }$ respectively. We will refer to $\mathbf { s } \in \{ 0 , 1 \} ^ { d }$ as the selection vector, where $s _ { i } = 1$ will indicate that variable $i$ is selected, and $s _ { i } ~ = ~ 0$ will indicate that variable $i$ is not selected. Let $^ *$ be any point not in any of the spaces $\mathcal { X } _ { 1 } , . . . , \mathcal { X } _ { d }$ and define ${ { \mathcal { X } } _ { i } ^ { * } } = { { \mathcal { X } } _ { i } } \cup \left\{ * \right\}$ and $\mathcal { X } ^ { * } = \mathcal { X } _ { 1 } ^ { * } \times \ldots \times \mathcal { X } _ { d } ^ { * }$ . Given $\mathbf { x } \in \mathcal { X }$ we will write $\mathbf { x } ^ { ( \mathbf { s } ) }$ to denote the suppressed feature vector defined by
40
+
41
+ $$
42
+ x _ { i } ^ { ( \mathbf { s } ) } = \left\{ { \atop * \operatorname { i f } s _ { i } = 0 } \right.
43
+ $$
44
+
45
+ so that $^ *$ represents that a feature is not selected.
46
+
47
+ In the global feature selection literature, the goal is to find the smallest s (i.e. the one with fewest 1s) such that $\mathbb { E } ( Y | \mathbf { X } ^ { ( \mathbf { s } ) } ) = \mathbb { E } ( Y | \mathbf { X } )$ , or equivalently such that the conditional distribution of $Y$ given $\mathbf { X } ^ { ( \mathbf { s } ) }$ is the same as $Y$ given all of $\mathbf { X }$ . Note that this definition is given fully in terms of random variables, rather than realizations of those random variables.
48
+
49
+ In contrast, our problem necessarily needs to be defined in terms of realizations since we are aiming to select features for a given realization. We will write $\mathbf { x }$ to denote realizations of the random variable $\mathbf { X }$ . Then we formalize our problem as one of finding a selector function, $S : \mathcal { X } \{ 0 , 1 \} ^ { d }$ such that for almost every $\mathbf { x } \in \mathcal { X }$ (w.r.t. $p _ { X }$ ) we have
50
+
51
+ $$
52
+ ( Y | \mathbf { X } ^ { ( S ( \mathbf { x } ) ) } = \mathbf { x } ^ { ( S ( \mathbf { x } ) ) } ) \overset { d . } { = } ( Y | \mathbf { X } = \mathbf { x } )
53
+ $$
54
+
55
+ where $\underline { { \underline { { d . } } } }$ denotes equality in distribution and $S ( \mathbf { x } )$ is minimal (i.e. fewest 1s) such that (1) holds.
56
+
57
+ We suppose that we have a dataset $\mathbfcal { D } = \{ ( \mathbf { x } _ { j } , y _ { j } ) \} _ { j = 1 } ^ { n }$ consisting of $n$ i.i.d. realizations of the pair $( \mathbf { X } , Y )$ .2 Note that $Y$ can be viewed as having either come from a dataset, in which case the problem is of selecting predictive features, or as having come from a predictive model, in which case the problem is of explaining the model’s predictions.
58
+
59
+ # 2.1 OPTIMIZATION PROBLEM
60
+
61
+ In order to learn a suitable selector function, we transform the constraint (1) into a soft constraint using the Kullback-Leibler (KL) divergence which, for random variables $W$ and $V$ with densities $p _ { W }$ and $p _ { V }$ is defined as
62
+
63
+ $$
64
+ K L ( W | | V ) = \mathbb { E } \left[ \log \left( \frac { p _ { W } ( W ) } { p _ { V } ( W ) } \right) \right] .
65
+ $$
66
+
67
+ We define the following loss for our selector function $S$
68
+
69
+ $$
70
+ \mathcal { L } ( S ) = \mathbb { E } _ { \mathbf { x } \sim p _ { X } } \left[ K L ( Y | \mathbf { X } = \mathbf { x } | | Y | \mathbf { X } ^ { ( S ( \mathbf { x } ) ) } = \mathbf { x } ^ { ( S ( \mathbf { x } ) ) } ) + \lambda | | S ( \mathbf { x } ) | | \right]
71
+ $$
72
+
73
+ where $| | \cdot | |$ simply denotes the number of non-zero entries of a vector (or equivalently in this case, the number of 1s) and $\lambda$ is a hyper-parameter that trades off between the constraint in (1) and the number of selected features. The KL divergence in (2) can be rewritten as
74
+
75
+ $$
76
+ \begin{array} { l } { { \displaystyle K L ( Y | { \bf X } = { \bf x } | | Y | { \bf X } ^ { ( S ( { \bf x } ) ) } = { \bf x } ^ { ( S ( { \bf x } ) ) } ) = \mathbb { E } _ { y \sim Y | { \bf X } = { \bf x } } \left[ \log \left( \frac { p _ { Y } ( y | { \bf x } ) } { p _ { Y } ( y | { \bf x } ^ { ( S ( { \bf x } ) ) } ) } \right) \right] } \ ~ } \\ { { \displaystyle = \mathbb { E } _ { y \sim Y | { \bf X } = { \bf x } } \left[ \log ( p _ { Y } ( y | { \bf x } ) ) - \log ( p _ { Y } ( y | { \bf x } ^ { ( S ( { \bf x } ) ) } ) ) \right] } \ ~ } \\ { { \displaystyle = \int _ { y } p _ { Y } ( y | { \bf x } ) \left[ \log ( p _ { Y } ( y | { \bf x } ) ) - \log ( p _ { Y } ( y | { \bf x } ^ { ( S ( { \bf x } ) ) } ) ) \right] d y } , } \end{array}
77
+ $$
78
+
79
+ where $p _ { Y } ( \cdot | \cdot )$ denotes the appropriate conditional densities of $Y$ . We will write
80
+
81
+ $$
82
+ l ( \mathbf { x } , \mathbf { s } ) = \int _ { \mathcal { V } } p _ { Y } ( y | \mathbf { x } ) \left[ \log ( p _ { Y } ( y | \mathbf { x } ) ) - \log ( p _ { Y } ( y | \mathbf { x } ^ { ( s ) } ) ) \right] d y
83
+ $$
84
+
85
+ so that our final loss can be written as
86
+
87
+ $$
88
+ \mathcal { L } ( S ) = \mathbb { E } _ { \mathbf { x } \sim p _ { X } } \left[ l ( \mathbf { x } , S ( \mathbf { x } ) ) + \lambda | | S ( \mathbf { x } ) | | \right]
89
+ $$
90
+
91
+ where $| | \cdot | |$ denotes the $l _ { 0 }$ (pseudo-)norm.
92
+
93
+ # 3 PROPOSED MODEL
94
+
95
+ There are two main challenges in minimizing the loss in (4). First, the output space of the selector function $( \{ 0 , 1 \} ^ { d } )$ is large - its size increases exponentially with the dimension of the feature space; thus a complete search is impractical in high dimensional settings (and it should be noted that it is in high dimensional settings where feature selection is most necessary). Second, we do not have access to the densities $p _ { Y } \big ( \cdot | \mathbf { x } ^ { ( S ( \mathbf { x } ) ) } \big )$ and $p _ { Y } ( y \vert \mathbf { x } )$ required to compute (4).
96
+
97
+ # 3.1 LOSS ESTIMATION
98
+
99
+ To approximate the densities in (3), we introduce a pair of functions $f ^ { \phi } : \mathcal { X } ^ { * } \times \{ 0 , 1 \} ^ { d } \to [ 0 , 1 ] ^ { c }$ parametrized by $\phi$ and $f ^ { \gamma } : \mathcal { X } \to [ 0 , 1 ] ^ { c }$ parametrized by $\gamma$ that will estimate $p _ { Y } \big ( \cdot | \mathbf { x } ^ { ( S ( \mathbf { x } ) ) } \big )$ and $p _ { Y } ( \cdot | \mathbf { x } )$ respectively.
100
+
101
+ # 3.1.1 PREDICTOR NETWORK
102
+
103
+ We refer to $f ^ { \phi }$ as the predictor network. This will take as input a suppressed3 feature vector $\mathbf { x } ^ { ( \mathbf { s } ) }$ and its corresponding selection vector s and will output a probability distribution (using a softmax layer) over the $c$ -dimensional output space.
104
+
105
+ $f ^ { \phi }$ is trained to minimize the cross entropy loss given by
106
+
107
+ $$
108
+ l _ { 1 } ( \phi ) = - \mathbb { E } _ { ( \mathbf { x } , y ) \sim p , \mathbf { s } \sim \pi _ { \theta } ( \mathbf { x } , \cdot ) } \Big [ \sum _ { i = 1 } ^ { c } y _ { i } \log ( f _ { i } ^ { \phi } ( \mathbf { x } ^ { ( \mathbf { s } ) } , \mathbf { s } ) ) \Big ]
109
+ $$
110
+
111
+ where $y _ { i }$ is the $i$ th component of the one-hot encoding of $y$ and $\pi _ { \theta }$ is the distribution induced by our selector network which will be defined in the following section. $f ^ { \phi }$ is implemented as a fully connected neural network4.
112
+
113
+ # 3.1.2 BASELINE NETWORK
114
+
115
+ We refer to $f ^ { \gamma }$ as the baseline network, which is standard in the actor-critic literature for variance reduction. $f ^ { \gamma }$ is implemented as a fully connected neural network and is trained to minimize
116
+
117
+ $$
118
+ l _ { 3 } ( \gamma ) = - \mathbb { E } _ { ( \mathbf { x } , y ) \sim p } \Big [ \sum _ { i = 1 } ^ { c } y _ { i } \log ( f _ { i } ^ { \gamma } ( \mathbf { x } ) ) \Big ] .
119
+ $$
120
+
121
+ For fixed $\phi , \gamma$ we define our loss estimator, $\hat { l }$ , by
122
+
123
+ $$
124
+ \hat { l } ( \mathbf { x } , \mathbf { s } ) = - \left[ \sum _ { i = 1 } ^ { c } y _ { i } \log ( f _ { i } ^ { \phi } ( \mathbf { x ^ { ( s ) } } , \mathbf { s } ) ) - \sum _ { i = 1 } ^ { c } y _ { i } \log ( f _ { i } ^ { \gamma } ( \mathbf { x } ) ) \right] .
125
+ $$
126
+
127
+ # 3.2 SELECTOR FUNCTION OPTIMIZATION
128
+
129
+ We approximate the selector function $S : \mathcal { X } \{ 0 , 1 \} ^ { d }$ by using a single neural network, $\hat { S } ^ { \theta } : \mathcal { X } $ $[ 0 , 1 ] ^ { \bar { d } }$ parameterized by weights $\theta$ , that outputs a probability for selecting each feature (i.e. the ith component of $\hat { S } ^ { \theta } ( \mathbf { x } )$ will denote the probability with which we select the ith feature). The selector network induces a probability distribution over the selection space $( \{ 0 , 1 \} ^ { d } )$ , with the probability of a given joint selection vector $\mathbf { s } \in \{ 0 , 1 \} ^ { d }$ being given by5
130
+
131
+ $$
132
+ \pi _ { \boldsymbol \theta } ( \mathbf { x } , \mathbf { s } ) = \Pi _ { i = 1 } ^ { d } \hat { S } _ { i } ^ { \theta } ( \mathbf { x } ) ^ { s _ { i } } ( 1 - \hat { S } _ { i } ^ { \theta } ( \mathbf { x } ) ) ^ { 1 - s _ { i } } .
133
+ $$
134
+
135
+ ![](images/dab836e1e2e287b6c85e1510eb3ffcad658b59e83e87918824fa99ded51229df.jpg)
136
+ Figure 1: Block diagram of INVASE. Instances are fed into the selector network which outputs a vector of selection probabilities. The selection vector is then sampled according to these probabilities. The predictor network then receives the selected features and makes a prediction and the baseline network is given the entire feature vector and makes a prediction. Each of these networks are trained using backpropagation using the real label. The loss of the baseline network is then subtracted from the prediction network’s loss and this is used to update the selector network.
137
+
138
+ Using this, we define the following loss for our selector network
139
+
140
+ $$
141
+ \begin{array} { l } { l _ { 2 } ( \theta ) = \mathbb { E } _ { ( \mathbf { x } , y ) \sim p } \left[ \mathbb { E } _ { \mathbf { s } \sim \pi _ { \theta } ( \mathbf { x } , \cdot ) } \Big [ \hat { l } ( \mathbf { x } , \mathbf { s } ) + \lambda | | \mathbf { s } | | _ { 0 } \Big ] \right] } \\ { \displaystyle = \int _ { \mathcal { X } \times \mathcal { Y } } p ( \mathbf { x } , y ) \left( \sum _ { \mathbf { s } \in \{ 0 , 1 \} ^ { d } } \pi _ { \theta } ( \mathbf { x } , \mathbf { s } ) \left( \hat { l } ( \mathbf { x } , \mathbf { s } ) + \lambda | | \mathbf { s } | | _ { 0 } \right) \right) d x d y . } \end{array}
142
+ $$
143
+
144
+ Taking the gradient of this loss with respect to $\theta$ gives us
145
+
146
+ $$
147
+ \begin{array} { l } { { \displaystyle \nabla _ { \theta } l _ { 2 } ( \theta ) = \int _ { \mathcal { X } \times \mathcal { Y } } p ( { \bf x } , y ) \left( \sum _ { { \bf s \in \{ 0 , 1 \} } ^ { d } } \nabla _ { \theta } \pi _ { \theta } ( { \bf x } , { \bf s } ) \left( \hat { l } ( { \bf x } , { \bf s } ) + \lambda | | { \bf s } | | _ { 0 } \right) \right) d x d y } \ ~ } \\ { { \displaystyle ~ = \int _ { \mathcal { X } \times \mathcal { Y } } p ( { \bf x } , y ) \left( \sum _ { { \bf s \in \{ 0 , 1 \} } ^ { d } } \frac { \nabla _ { \theta } \pi _ { \theta } ( { \bf x } , { \bf s } ) } { \pi _ { \theta } ( { \bf x } , { \bf s } ) } \pi _ { \theta } ( { \bf x } , { \bf s } ) \left( \hat { l } ( { \bf x } , { \bf s } ) + \lambda | | { \bf s } | | _ { 0 } \right) \right) d x d y } \ ~ } \\ { { \displaystyle ~ = \int _ { \mathcal { X } \times \mathcal { Y } } p ( { \bf x } , y ) \left( \sum _ { { \bf s \in \{ 0 , 1 \} } ^ { d } } \nabla _ { \theta } \log \pi _ { \theta } ( { \bf x } , { \bf s } ) \pi _ { \theta } ( { \bf x } , { \bf s } ) \left( \hat { l } ( { \bf x } , { \bf s } ) + \lambda | | { \bf s } | | _ { 0 } \right) \right) d x d y } \ ~ } \\ { \displaystyle ~ = \mathbb { E } _ { ( { \bf x } , y ) \sim p } \left[ \mathbb { E } _ { { \bf s } \sim \pi _ { \theta } ( { \bf x } , { \bf s } ) } \left[ \left( \hat { l } ( { \bf x } , { \bf s } ) + \lambda | | { \bf s } | | _ { 0 } \right) \nabla _ { \theta } \log \pi _ { \theta } ( { \bf x } , { \bf s } ) \right] \right] . } \end{array}
148
+ $$
149
+
150
+ We update each of ${ \hat { S } } ^ { \theta }$ , $f ^ { \phi }$ and $f ^ { \gamma }$ iteratively using stochastic gradient descent. Pseudo-code of INVASE is given in Algorithm 1 and a block representation of INVASE can be found in Fig. 1.
151
+
152
+ # 4 EXPERIMENTS
153
+
154
+ In this section, we quantitatively evaluate INVASE against various state-of-the-art benchmarks on both synthetic and real-world datasets. We evaluate our performance both at identifying ground truth relevance and at enhancing predictions. We compare our model with 4 global variable selection models: Knockoffs [3], Tree Ensembles (Tree) [7], Sequential Correlation Feature Selection (SCFS) [11], and LASSO regularized linear model; and 3 instance-wise feature selection methods: L2X
155
+
156
+ # Algorithm 1 Pseudo-code of INVASE
157
+
158
+ 1: Inputs: learning rates $\alpha , \beta > 0$ , mini-batch size $n _ { m b } > 0$ , dataset $\mathcal { D }$
159
+ 2: Initialize parameters $\theta , \phi , \gamma$
160
+ 3: while Converge do
161
+ 4: Sample a mini-batch from the dataset $( \mathbf { x } _ { j } , y _ { j } ) _ { j = 1 } ^ { n _ { m b } } \sim \mathcal { D }$
162
+ 5: for $j = 1 , . . . , n _ { m b }$ do
163
+ 6: Calculate selection probabilities $( p _ { 1 } ^ { j } , . . . , p _ { d } ^ { j } ) \hat { S } ^ { \theta } ( \mathbf { x } _ { j } )$
164
+ 7: Sample selection vector
165
+ 8: for $i = 1 , . . . , d$ do $s _ { i } ^ { j } \sim B e r ( p _ { i } ^ { j } )$
166
+ 9: Calculate loss $\hat { l } _ { j } ( \mathbf { x } _ { j } , \mathbf { s } _ { j } ) \gets - \left[ \sum _ { i = 1 } ^ { c } y _ { i } ^ { j } \log ( f _ { i } ^ { \phi } ( \mathbf { x } _ { j } ^ { ( \mathbf { s } _ { j } ) } , \mathbf { s } _ { j } ) ) - \sum _ { i = 1 } ^ { c } y _ { i } ^ { j } \log ( f _ { i } ^ { \gamma } ( \mathbf { x } _ { j } ) ) \right]$
167
+
168
+ 10: Update the selector network parameters $\theta$
169
+
170
+ $$
171
+ \theta \theta - \alpha \frac { 1 } { n _ { m b } } \sum _ { j = 1 } ^ { n _ { m b } } ( \hat { l } _ { j } ( \mathbf { x } _ { j } , \mathbf { s } _ { j } ) + \lambda | | \mathbf { s } _ { j } | | ) \nabla _ { \theta } \log \pi _ { \theta } ( \mathbf { x } _ { j } , \mathbf { s } _ { j } )
172
+ $$
173
+
174
+ 11: Update the predictor network parameters $\phi$
175
+
176
+ $$
177
+ \phi \phi - \beta \frac { 1 } { n _ { m b } } \sum _ { j = 1 } ^ { n _ { m b } } \sum _ { i = 1 } ^ { c } y _ { i } ^ { j } \times \nabla _ { \phi } \log ( f _ { i } ^ { \phi } ( \mathbf { x } _ { j } ^ { ( \mathbf { s } _ { j } ) } , \mathbf { s } _ { j } ) )
178
+ $$
179
+
180
+ 12: Update the baseline network parameters $\gamma$
181
+
182
+ $$
183
+ \gamma \gamma - \beta \frac { 1 } { n _ { m b } } \sum _ { j = 1 } ^ { n _ { m b } } \sum _ { i = 1 } ^ { c } y _ { i } ^ { j } \times \nabla _ { \gamma } \log ( f _ { i } ^ { \gamma } ( \mathbf { x } _ { j } ) )
184
+ $$
185
+
186
+ [4], LIME [24], and Shapley [18]. The details of benchmark implementation can be found in the appendix. Implementation of INVASE can be found at https://github.com/jsyoon0823/ INVASE.
187
+
188
+ # 4.1 SYNTHETIC DATA EXPERIMENTS
189
+
190
+ # 4.1.1 EXPERIMENTAL SETTINGS
191
+
192
+ For our first set of experiments, we use the same synthetic data generation models as in L2X [4]. The input features are generated from an 11-dimensional67 Gaussian distribution with no correlations across the features $( \mathbf { X } \sim \mathcal { N } ( \mathbf { 0 } , \mathbf { I } ) )$ . The label $Y$ is sampled as a Bernoulli random variable with $\begin{array} { r } { \mathbb { P } ( Y = 1 | \mathbf { X } ) = \frac { 1 } { 1 + \mathrm { l o g i t } ( \mathbf { X } ) } } \end{array}$ , where logit $( \mathbf { X } )$ is varied to create 3 different synthetic datasets:
193
+
194
+ • Syn1: $\exp ( X _ { 1 } X _ { 2 } )$
195
+ • Syn2: $\textstyle \exp ( \sum _ { i = 3 } ^ { 6 } X _ { i } ^ { 2 } - 4 )$
196
+ • Syn3: $- 1 0 \times \sin 2 X _ { 7 } + 2 | X _ { 8 } | + X _ { 9 } + \exp ( - X _ { 1 0 } )$
197
+
198
+ In each of these datasets, the label depends on the same subset of features for every sample. To highlight the capability of INVASE to detect instance-wise dependence, we generate 3 further synthetic datasets as follows:
199
+
200
+ • Syn4: If $X _ { 1 1 } < 0$ , logit follows Syn1, otherwise, logit follows Syn2.
201
+ • Syn5: If $X _ { 1 1 } < 0$ , logit follows Syn1, otherwise, logit follows Syn3.
202
+ • Syn6: If $X _ { 1 1 } < 0$ , logit follows Syn2, otherwise, logit follows Syn3.
203
+
204
+ Note that in Syn4 and Syn5, the number of relevant features is different for different samples.
205
+
206
+ For each of Syn1 to Syn6 we draw 20,000 samples from the data generation model and separate each into trainingwe try to fin $( \mathcal { D } _ { t r a i n } { \bf \bar { \alpha } } = ( { \bf x } _ { i } , y _ { i } ) _ { i = 1 } ^ { 1 0 0 0 0 } )$ and testingures for each $( \mathcal { D } _ { t e s t } = ( \mathbf { \bar { x } } _ { j } ^ { - } , y _ { j } ) _ { j = 1 } ^ { 1 0 0 0 0 } )$ sets. For each methodfor Syn1, Syn2, Syn3, $k$ $k = 4$ Syn4, Syn5 and $k = 5$ for Syn6), note, however, that $k$ is not given as an input to INVASE (but is necessary for other methods). The performance metrics we use are the true positive rate (TPR) (higher is better) and false discovery rate $\mathrm { ( F D R ) } ^ { 8 }$ (lower is better) to measure the performance of the methods when the focus is on discovery (i.e. discovering which features are relevant) and we use Area Under the Receiver Operating Characteristic Curve (AUROC), Area Under the Precision Recall Curve (AUPRC) and accuracy when the focus is on predictions.
207
+
208
+ # 4.1.2 DISCOVERY
209
+
210
+ Table 1: Relevant feature discovery results for Synthetic datasets with 11 features
211
+
212
+ <table><tr><td>Dataset</td><td colspan="2">Syn1</td><td colspan="2">Syn2</td><td colspan="2">Syn3</td><td colspan="2">Syn4</td><td colspan="2">Syn5</td><td colspan="2">Syn6</td></tr><tr><td>Metrics (%)</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td></tr><tr><td>INVASE</td><td>100.0</td><td>0.0</td><td>100.0</td><td>0.0</td><td>92.0</td><td>0.0</td><td>99.8</td><td>10.3</td><td>84.8</td><td>1.1</td><td>90.1</td><td>7.4</td></tr><tr><td>L2X LIME</td><td>100.0 13.8</td><td>0.0 86.2</td><td>100.0 100.0</td><td>0.0 0.0</td><td>69.4 98.1</td><td>30.6 1.9</td><td>79.5 40.7</td><td>21.8 49.4</td><td>74.8 41.1</td><td>26.3 50.6</td><td>83.3 50.5</td><td>16.7 49.5</td></tr><tr><td>Shapley Knockoff</td><td>60.4 10.0</td><td>39.6 70.0</td><td>93.3 8.7</td><td>6.7 36.2</td><td>90.9 81.2</td><td>9.1 17.5</td><td>65.2 38.8</td><td>31.9 35.1</td><td>62.9 41.0</td><td>33.7 51.1</td><td>71.2 56.6</td><td>28.8 42.1</td></tr><tr><td>Tree</td><td>100.0</td><td>0.0</td><td>100.0</td><td>0.0</td><td>100.0</td><td>0.0</td><td>54.7</td><td>39.0</td><td>56.8</td><td></td><td></td><td>40.0</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>37.5</td><td>60.0</td><td></td></tr><tr><td>SCFS</td><td>23.5</td><td></td><td>39.5</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td>76.5</td><td></td><td>60.5</td><td>78.3</td><td>22.0</td><td>48.9</td><td>52.4</td><td>42.4</td><td>51.2</td><td>56.1</td><td>43.9</td></tr><tr><td>LASSO</td><td>19.0</td><td>81.0</td><td>39.8</td><td>60.2</td><td>78.3</td><td>21.7</td><td>49.9</td><td>50.9</td><td>45.5</td><td>48.2</td><td>56.4</td><td>43.6</td></tr></table>
213
+
214
+ As demonstrated by Table 1, our method is capable of detecting relevant features on a global level (Syn1, Syn2 and Syn3) as well as on an instance-wise level (Syn4, Syn5 and Syn6) outperforming all other methods in both cases (both global and instance-wise methods). The particularly poor performance of some global feature selection methods in Syn1, Syn2 and Syn3 (where there is no instance-wise relevance) is due to the non-linearity of the relationship between features and labels, further details can be found in the Appendix.
215
+
216
+ The results for Syn4, Syn5 and Syn6 demonstrate that INVASE is capable of detecting a different number of relevant features for each sample when necessary - the performance improvement over L2X is greater in Syn4 and Syn5 than Syn6. In particular, in Syn4, L2X is forced to overselect features when $X _ { 1 1 } ~ < ~ 0$ and underselect when $X _ { 1 1 } \geq 0$ thus resulting in higher FDR and lower TPR, respectively. To highlight this, in Table 2 we report the group specific FDR and TPR on Syn4 and Syn5 when setting $k = 3 , 4 , 5$ , where Group 1 refers to samples with $X _ { 1 1 } < 0$ and Group 2 to samples with $X _ { 1 1 } \geq 0$ .
217
+
218
+ For $k = 3$ in Syn4, we see that INVASE and L2X have comparable FDR in Group 1, since the total number of relevant features for each sample is 3 $( X _ { 1 } , X _ { 2 } , X _ { 1 1 } )$ . However, when we increase $k$ , we see that the FDR increases for L2X as it is forced to select more than 3 features, which necessarily means that the FDR must be at least $40 \%$ even if L2X was finding the relevant features perfectly. On the other hand, for Group 2 we see that the TPR is low for $k = 3$ since necessarily, L2X cannot possibly select all of the 5 relevant features. INVASE, however, is able to select the correct number in both and hence enjoys low FDR and high TPR.
219
+
220
+ Syn5 reinforces the conclusions we drew for L2X in Syn4. Interestingly, though, for INVASE, we found that $X _ { 1 1 }$ was almost never selected for Group 1 in Syn5. We believe this is because the lack of overlap between the relevant features for each group means that the predictor network can essentially learn two separate networks - one for each group. This is because it is possible to create two subnetworks with non-overlapping weights that each take as input the features of a given group. $X _ { 1 1 }$ is therefore unnecessary for prediction. Note, however, that $X _ { 1 1 }$ is highly relevant for the selector network in deciding which features to pass on and so it is not true that $X _ { 1 1 }$ isn’t relevant, but simply that the selector network does not need to “pass on” its relevance to the predictor network. To investigate this further, results for settings where the features overlap between groups (and so it is not possible to disentangle the networks) can be found in the Appendix.
221
+
222
+ Table 2: Detailed comparison of INVASE with L2X in Syn4 and Syn5, highlighting the capability of INVASE to select a flexible number of features for each sample. Group 1: $X _ { 1 1 } < 0$ , Group 2: $X _ { 1 1 } \geq 0$
223
+
224
+ <table><tr><td>Datasets</td><td colspan="4">Syn4</td><td colspan="4">Syn5</td></tr><tr><td>Group</td><td>1</td><td></td><td colspan="2">2</td><td colspan="2">1</td><td colspan="2">2</td></tr><tr><td>Metrics (%)</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td></tr><tr><td>INVASE</td><td>99.5</td><td>24.6</td><td>100.0</td><td>0.4</td><td>1 69.2</td><td>1.6</td><td>99.8</td><td>0.6</td></tr><tr><td>L2X (k = 3)</td><td>71.1</td><td>28.9</td><td>57.2</td><td>4.6</td><td>65.5</td><td>34.5</td><td>55.4</td><td>7.7</td></tr><tr><td>L2X (k = 4)</td><td>81.0</td><td>39.2</td><td>74.9</td><td>6.3</td><td>76.2</td><td>42.9</td><td>72.4</td><td>9.4</td></tr><tr><td>L2X(k = 5)</td><td>89.9</td><td>46.0</td><td>84.6</td><td>15.4</td><td>87.5</td><td>47.5</td><td>82.1</td><td>17.9</td></tr></table>
225
+
226
+ # 4.1.3 PREDICTION
227
+
228
+ In this experiment we analyze the effect of using feature selection as a pre-processing step for prediction. We first perform feature selection (either instance-wise or global) and then train a 3-layer fully connected network with Batch Normalization [12] in every layer (to avoid overfitting) to perform predictions on top of the (feature-selected) data. In this setting we compare the two global feature selection methods (LASSO and Tree) and one instance-wise feature selection method (L2X). Furthermore, we also compare with the predictive model without any feature selections (w/o FS) and the predictive model with ground truth globally relevant features9 (with Global). In particular, this allows us to demonstrate that the improvements in prediction performance are not just because the global feature selection performed implicitly by INVASE is better than the other global feature selection methods but are also due to the fact that we select features on an instance-wise level. Experiments here are conducted on synthetic data with 100 features but the same labelling procedures as above.
229
+
230
+ As can be seen in Table 3, there is a significant performance improvement when discarding all of the irrelevant features (with Global). However, neither of the global feature selection methods (Tree and Lasso) are capable of achieving this improvement. On the other hand, INVASE is capable of achieving (and beating - in Syn4 and Syn6) this improvement, demonstrating its capability both at selecting features globally better than existing methods but also at improving on global selection with instance-wise selection (where relevant), to provide further improvements. On the other hand, $L 2 X$ performs worse than the global methods in Syn1-3, demonstrating an inability to perform even global feature selection in this higher dimensional setting (this is supported by the high dimensional discovery results in the Appendix), and in Syn4-6 is performing worse than with Global (which now is not even optimal).
231
+
232
+ Furthermore, even though we include Batch Normalization to avoid overfitting, with a small number of samples and high number of dimensions, the 3-layer fully connected network still suffers from overfitting as demonstrated by the significant difference in performance between w/o FS and with Global. This demonstrates the necessity of feature selection as a pre-processing step. Lastly, in comparison to with Global, with INVASE achieves performance gains in Syn4 and Syn6. It quantitatively shows that instance-wise feature selection can further improves the predictive model from ground truth global feature selection.
233
+
234
+ Table 3: Prediction performance comparison with and without feature selection methods (L2X, LASSO, Tree, INVASE, and Global). Global is using ground-truth globally relevant features for each dataset
235
+
236
+ <table><tr><td rowspan="2">Dataset</td><td colspan="6">AUROC</td></tr><tr><td>w/o FS</td><td>with Global</td><td>with INVASE</td><td>with Tree</td><td>with L2X</td><td>with LASSO</td></tr><tr><td>Syn1</td><td>.578±.004</td><td>.686±.005</td><td>.690±.006</td><td>.574±.101</td><td>.498±.005</td><td>.498±.006</td></tr><tr><td>Syn2</td><td>.789±.003</td><td>.873±.003</td><td>.877±.003</td><td>.872±.003</td><td>.823±.029</td><td>.555±.061</td></tr><tr><td>Syn3</td><td>.854±.004</td><td>.900±.003</td><td>.902±.003</td><td>.899±.001</td><td>.862±.009</td><td>.886±.003</td></tr><tr><td>Syn4</td><td>.558±.021</td><td>.774±.006</td><td>.787±.004</td><td>.684±.017</td><td>.678±.024</td><td>.514±.031</td></tr><tr><td>Syn5</td><td>.662±.013</td><td>.784±.005 .858±.004</td><td>.784±.005</td><td>.741±.004</td><td>.709±.008</td><td>.691±.024</td></tr><tr><td>Syn6</td><td>.692±.015</td><td></td><td>.877±.003</td><td>.771±.031</td><td>.827±.017</td><td>.727±.025</td></tr><tr><td rowspan="2">Dataset</td><td colspan="6">AUPRC</td></tr><tr><td>w/o FS</td><td>with Global</td><td>with INVASE</td><td>with Tree</td><td>with L2X</td><td>with LASSO</td></tr><tr><td>Syn1</td><td>.567±.007</td><td>.690±.006</td><td>.694±.006</td><td>.577±.102</td><td>.498±.007</td><td>.499±.008</td></tr><tr><td>Syn2</td><td>.799±.005</td><td>.878±.005</td><td>.886±.004</td><td>.878±.004</td><td>.817±.031</td><td>.591±.037</td></tr><tr><td>Syn3</td><td>.861±.003</td><td>.905±.002</td><td>.907±.003</td><td>.904±.002</td><td>.860±.012</td><td>.890±.002</td></tr><tr><td>Syn4</td><td>.572±.019</td><td>.794±.006</td><td>.804±.004</td><td>.681±.031</td><td>.672±.025</td><td>.536±.025</td></tr><tr><td>Syn5</td><td>.665±.019</td><td>.796±.005</td><td>.797±.006</td><td>.765±.003</td><td>.719±.011</td><td>.680±.040</td></tr><tr><td>Syn6</td><td>.709±.018</td><td>.870±.005</td><td>.886±.004</td><td>.779±.027</td><td>.835±.017</td><td>.757±.036</td></tr></table>
237
+
238
+ # 4.2 REAL-WORLD DATA EXPERIMENTS
239
+
240
+ # 4.2.1 DATA DESCRIPTION
241
+
242
+ In this section we use two real-world datasets to perform a series of further experiments. The first, the Meta-Analysis Global Group in Chronic Heart Failure (MAGGIC) dataset [23], has 40,409 patients each with 31 measured features. The label is all-cause mortality. The second, the Prostate, Lung, Colorectal and Ovarian (PLCO) Cancer Screening Trial in the US and the European Randomized Study of Screening for Prostate Cancer (ERSPC) dataset [8; 26] contains 38,001 each with 106 measured features. The label in this dataset is mortality due to prostate cancer. We refer to this as the PLCO dataset.
243
+
244
+ The first experiment we carried out was to create semi-synthetic datasets by using the labelling procedures Syn1-6 from above but with the features now coming from real data (instead of being i.i.d. Gaussian). The results of this experiment can be found in the Appendix.
245
+
246
+ # 4.2.2 THE DISCOVERED FEATURE IMPORTANCE IN MAGGIC DATASET
247
+
248
+ In this next experiment, we visualize the ability of INVASE to select features on an individualized level. Fig. 2(left) shows the selection probability (given by INVASE) of each feature for 20 randomly selected patients in the MAGGIC dataset. Fig. 2(right) shows the selection probability of each feature averaged over different binary splits of the data (i.e. when split into Male and Female). In Table 4, we also report the mean and variance of the number of selected features in each subgroup.
249
+
250
+ As can be seen, INVASE discovers significantly different features for both individuals and for different subgroups of the dataset.
251
+
252
+ # 4.2.3 RESULTS: PREDICTION USING REAL DATA VARIABLES WITH REAL LABEL
253
+
254
+ Evaluating the performance of feature selection methods on real data is difficult, since ground truth relevance is often not known. We therefore cannot use TPR and FDR to evaluate the performance on real data. In our final experiment, therefore, we instead focus on prediction performance exactly as in 4.1.3 (except now both the features and label come from real data).
255
+
256
+ ![](images/d1951e735951992fdbed0a447435470530b7108fcf6a6da51afe008e69ba6a2e.jpg)
257
+ Figure 2: Left: The feature importance for each of 20 randomly selected patients in the MAGGIC dataset. Right: The average feature importance for different binary splits in the MAGGIC dataset.
258
+
259
+ Table 4: Selection probability of overall and patient subgroups by INVASE in MAGGIC dataset. (Mean $\pm$ Std)
260
+
261
+ <table><tr><td rowspan=1 colspan=1>Overall</td><td rowspan=1 colspan=1>Male</td><td rowspan=1 colspan=1>Diabetes</td><td rowspan=1 colspan=1>Hypertension</td><td rowspan=1 colspan=1>Smoker</td><td rowspan=1 colspan=1>Heart Failure</td></tr><tr><td rowspan=3 colspan=1>42.5±18.4</td><td rowspan=1 colspan=2>43.5±10.7 53.2±10.8</td><td rowspan=1 colspan=2>46.6±9.3 41.0±12.1</td><td rowspan=1 colspan=1>51.8±11.1</td></tr><tr><td rowspan=1 colspan=1>Female</td><td rowspan=1 colspan=1>Non-diabetes</td><td rowspan=1 colspan=2>Non-hypertension Non-smoker</td><td rowspan=1 colspan=1>No Heart Failure</td></tr><tr><td rowspan=1 colspan=1>40.8±15.6</td><td rowspan=1 colspan=1>39.3±8.0</td><td rowspan=1 colspan=1>40.0±9.3</td><td rowspan=1 colspan=1>43.2±7.0</td><td rowspan=1 colspan=1>39.6±6.9</td></tr></table>
262
+
263
+ Table 5: Prediction performance for MAGGIC and PLCO dataset.
264
+
265
+ <table><tr><td rowspan=1 colspan=1>Datasets</td><td rowspan=1 colspan=1>Metrics</td><td rowspan=1 colspan=2>AUROC AUPRC</td><td rowspan=1 colspan=2>AUROC AUPRC</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Labels</td><td rowspan=1 colspan=2>3year</td><td rowspan=1 colspan=2>5year</td></tr><tr><td rowspan=1 colspan=1>MAGGIC</td><td rowspan=1 colspan=1>INVASEWithout INVASE</td><td rowspan=1 colspan=1>.722±.005.720±.006</td><td rowspan=1 colspan=1>.655±.010.639±.009</td><td rowspan=1 colspan=2>.740±.005 .867±.006.730±.006 .855±.004</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Labels</td><td rowspan=1 colspan=2>5year</td><td rowspan=1 colspan=2>10 year</td></tr><tr><td rowspan=1 colspan=1>PLCO</td><td rowspan=1 colspan=1>INVASEWithout INVASE</td><td rowspan=1 colspan=1>.637±.007.629±.008</td><td rowspan=1 colspan=1>.329±.013.324±.011</td><td rowspan=1 colspan=1>.673±.007.657±.006</td><td rowspan=1 colspan=1>.506±.006.485±.008</td></tr></table>
266
+
267
+ As can be seen in Table 5, INVASE consistently improves prediction performance in each of the two settings (different time horizons) in each dataset.
268
+
269
+ # 5 FUTURE WORK
270
+
271
+ While this paper has focused on discovering relevant features in the static setting, this could also be extended to apply in the temporal setting. One such avenue of exploration for this would be to replace each of the networks with an RNN. Particular care will need to be taken in defining the problem, though; do we treat each stream as a feature or each time point of each stream? We leave this investigation to future work.
272
+
273
+ # ACKNOWLEDGEMENT
274
+
275
+ The authors would like to thank the reviewers for their helpful comments. The research presented in this paper was supported by the Office of Naval Research (ONR) and the NSF (Grant number: ECCS1462245, ECCS1533983, and ECCS1407712).
276
+
277
+ REFERENCES
278
+ [1] Sebastian Bach, Alexander Binder, Gregoire Montavon, Frederick Klauschen, Klaus-Robert ´ Muller, and Wojciech Samek. On pixel-wise explanations for non-linear classifier decisions by ¨ layer-wise relevance propagation. PloS one, 10(7):e0130140, 2015.
279
+ [2] David Baehrens, Timon Schroeter, Stefan Harmeling, Motoaki Kawanabe, Katja Hansen, and Klaus-Robert MA˜ zller. How to explain individual classification decisions. ˇ Journal of Machine Learning Research, 11(Jun):1803–1831, 2010.
280
+ [3] Emmanuel Candes, Yingying Fan, Lucas Janson, and Jinchi Lv. Panning for gold: \` Model-free knockoffs for high-dimensional controlled variable selection. arXiv preprint arXiv:1610.02351, 2016.
281
+ [4] Jianbo Chen, Le Song, Martin J Wainwright, and Michael I Jordan. Learning to explain: An information-theoretic perspective on model interpretation. arXiv preprint arXiv:1802.07814, 2018.
282
+ [5] Anupam Datta, Shayak Sen, and Yair Zick. Algorithmic transparency via quantitative input influence: Theory and experiments with learning systems. In Security and Privacy (SP), 2016 IEEE Symposium on, pp. 598–617. IEEE, 2016.
283
+ [6] Jeremy Elson, John JD Douceur, Jon Howell, and Jared Saul. Asirra: a captcha that exploits interest-aligned manual image categorization. 2007.
284
+ [7] Pierre Geurts, Damien Ernst, and Louis Wehenkel. Extremely randomized trees. Machine learning, 63(1):3–42, 2006.
285
+ [8] John K Gohagan, Philip C Prorok, Richard B Hayes, and Barnett-S Kramer. The prostate, lung, colorectal and ovarian (plco) cancer screening trial of the national cancer institute: history, organization, and status. Controlled clinical trials, 21(6):251S–272S, 2000.
286
+ [9] Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep Learning. MIT Press, 2016. http://www.deeplearningbook.org.
287
+ [10] Isabelle Guyon and Andre Elisseeff. An introduction to variable and feature selection. ´ Journal of machine learning research, 3(Mar):1157–1182, 2003.
288
+ [11] Mark Andrew Hall. Correlation-based feature selection for machine learning. 1999.
289
+ [12] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
290
+ [13] Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. arXiv preprint arXiv:1611.01144, 2016.
291
+ [14] David P Kao, James D Lewsey, Inder S Anand, Barry M Massie, Michael R Zile, Peter E Carson, Robert S McKelvie, Michel Komajda, John JV McMurray, and JoAnn Lindenfeld. Characterization of subgroups of heart failure patients with preserved ejection fraction with possible implications for prognosis and treatment response. European journal of heart failure, 17(9):925–935, 2015.
292
+ [15] Pieter-Jan Kindermans, Kristof Schutt, Klaus-Robert M ¨ uller, and Sven D ¨ ahne. Investigating ¨ the influence of noise and distractors on the interpretation of neural networks. arXiv preprint arXiv:1611.07270, 2016.
293
+
294
+ [16] Kenji Kira and Larry A Rendell. A practical approach to feature selection. In Machine Learning Proceedings 1992, pp. 249–256. Elsevier, 1992.
295
+
296
+ [17] Yaojin Lin, Qinghua Hu, Jinghua Liu, and Jie Duan. Multi-label feature selection based on max-dependency and min-redundancy. Neurocomputing, 168:92–103, 2015.
297
+
298
+ [18] Scott M Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems, pp. 4765–4774, 2017.
299
+
300
+ [19] Scott M Lundberg, Gabriel G Erion, and Su-In Lee. Consistent individualized feature attribution for tree ensembles. arXiv preprint arXiv:1802.03888, 2018.
301
+
302
+ [20] Omkar M Parkhi, Andrea Vedaldi, Andrew Zisserman, and CV Jawahar. Cats and dogs. In Computer Vision and Pattern Recognition (CVPR), 2012 IEEE Conference on, pp. 3498–3505. IEEE, 2012.
303
+
304
+ [21] Hanchuan Peng, Fuhui Long, and Chris Ding. Feature selection based on mutual information criteria of max-dependency, max-relevance, and min-redundancy. IEEE Transactions on pattern analysis and machine intelligence, 27(8):1226–1238, 2005.
305
+
306
+ [22] Jan Peters and Stefan Schaal. Natural actor-critic. Neurocomputing, 71(7-9):1180–1190, 2008.
307
+
308
+ [23] Stuart J Pocock, Cono A Ariti, John JV McMurray, Aldo Maggioni, Lars Køber, Iain B Squire, Karl Swedberg, Joanna Dobson, Katrina K Poppe, Gillian A Whalley, et al. Predicting survival in heart failure: a risk score based on 39 372 patients from 30 studies. European heart journal, 34(19):1404–1413, 2012.
309
+
310
+ [24] Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. Why should i trust you?: Explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, pp. 1135–1144. ACM, 2016.
311
+
312
+ [25] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In International Conference on Medical image computing and computer-assisted intervention, pp. 234–241. Springer, 2015.
313
+
314
+ [26] Fritz H Schroder, Jonas Hugosson, Monique J Roobol, Teuvo LJ Tammela, Stefano Ciatto, ¨ Vera Nelen, Maciej Kwiatkowski, Marcos Lujan, Hans Lilja, Marco Zappa, et al. Screening and prostate-cancer mortality in a randomized european study. New England Journal of Medicine, 360(13):1320–1328, 2009.
315
+
316
+ [27] Avanti Shrikumar, Peyton Greenside, and Anshul Kundaje. Learning important features through propagating activation differences. arXiv preprint arXiv:1704.02685, 2017.
317
+
318
+ [28] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
319
+
320
+ [29] Karen Simonyan, Andrea Vedaldi, and Andrew Zisserman. Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv preprint arXiv:1312.6034, 2013.
321
+
322
+ [30] Erik Strumbelj and Igor Kononenko. Explaining prediction models and individual predictions ˇ with feature contributions. Knowledge and information systems, 41(3):647–665, 2014.
323
+
324
+ [31] Robert Tibshirani. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society. Series B (Methodological), pp. 267–288, 1996.
325
+
326
+ [32] Jinsung Yoon, William R Zame, Amitava Banerjee, Martin Cadeiras, Ahmed M Alaa, and Mihaela van der Schaar. Personalized survival predictions via trees of predictors: An application to cardiac transplantation. PloS one, 13(3):e0194985, 2018.
327
+
328
+ [33] Jinsung Yoon, William R Zame, and Mihaela van der Schaar. Tops: Ensemble learning with trees of predictors. IEEE Transactions on Signal Processing, 66(8):2141–2152, 2018.
329
+
330
+ # APPENDIX
331
+
332
+ # SUMMARY OF RELATED WORKS
333
+
334
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Key ideas</td><td rowspan=1 colspan=1>Experimentsshown</td><td rowspan=1 colspan=1>Global/Instance-wise</td><td rowspan=1 colspan=1>Modelagnostic</td><td rowspan=1 colspan=1>#of relevantfeatures</td></tr><tr><td rowspan=1 colspan=1>SCFS[11]</td><td rowspan=1 colspan=1>Max-dependency min-redundancycriteria with Pearson correlations</td><td rowspan=1 colspan=1>Feature selection</td><td rowspan=1 colspan=1>Global</td><td rowspan=1 colspan=1>Yes</td><td rowspan=1 colspan=1>Not needed</td></tr><tr><td rowspan=1 colspan=1>MIFS[21]</td><td rowspan=1 colspan=1>Max-dependency min-redundancycriteria with Mutual Information</td><td rowspan=1 colspan=1>Feature selection</td><td rowspan=1 colspan=1>Global</td><td rowspan=1 colspan=1>Yes</td><td rowspan=1 colspan=1>Not needed</td></tr><tr><td rowspan=1 colspan=1>LASSO[31]</td><td rowspan=1 colspan=1>Linear regressionwith l1-norm penalty</td><td rowspan=1 colspan=1>Feature selectionPrediction</td><td rowspan=1 colspan=1>Global</td><td rowspan=1 colspan=1>Yes</td><td rowspan=1 colspan=1>Not needed</td></tr><tr><td rowspan=1 colspan=1>Knock-off[3]</td><td rowspan=1 colspan=1>Comparison between knock-offvariablesand real variables</td><td rowspan=1 colspan=1>Feature selectionHypothesis test</td><td rowspan=1 colspan=1>Global</td><td rowspan=1 colspan=1>Yes</td><td rowspan=1 colspan=1>Not needed</td></tr><tr><td rowspan=1 colspan=1>L2X[4]</td><td rowspan=1 colspan=1>Mutual Information maximizationwith Gumbel-softmax</td><td rowspan=1 colspan=1>Interpretation</td><td rowspan=1 colspan=1>Instance-wise</td><td rowspan=1 colspan=1>Yes</td><td rowspan=1 colspan=1>Should begiven</td></tr><tr><td rowspan=1 colspan=1>LIME[24]</td><td rowspan=1 colspan=1>Locally linearapproximation</td><td rowspan=1 colspan=1>Interpretation</td><td rowspan=1 colspan=1>Instance-wise</td><td rowspan=1 colspan=1>Yes</td><td rowspan=1 colspan=1>Should begiven</td></tr><tr><td rowspan=1 colspan=1>Shapley[18]</td><td rowspan=1 colspan=1>Shapley value estimationto quantify feature importance</td><td rowspan=1 colspan=1>Feature selection</td><td rowspan=1 colspan=1>Instance-wise</td><td rowspan=1 colspan=1>Yes</td><td rowspan=1 colspan=1>Should begiven</td></tr><tr><td rowspan=1 colspan=1>DeepLIFT[27]</td><td rowspan=1 colspan=1>Decompose the output ofNN on a reference input</td><td rowspan=1 colspan=1>Interpretation</td><td rowspan=1 colspan=1>Instance-wise</td><td rowspan=1 colspan=1>No</td><td rowspan=1 colspan=1>Should begiven</td></tr><tr><td rowspan=1 colspan=1>Saliency[29]</td><td rowspan=1 colspan=1>Backpropagation from theoutput of the NN to the input</td><td rowspan=1 colspan=1>Interpretation</td><td rowspan=1 colspan=1>Instance-wise</td><td rowspan=1 colspan=1>No</td><td rowspan=1 colspan=1>Should begiven</td></tr><tr><td rowspan=1 colspan=1>Tree SHAP[19]</td><td rowspan=1 colspan=1>Shapley value estimationonly for tree-ensemble models</td><td rowspan=1 colspan=1>Interpretation</td><td rowspan=1 colspan=1>Instance-wise</td><td rowspan=1 colspan=1>No</td><td rowspan=1 colspan=1>Should begiven</td></tr><tr><td rowspan=1 colspan=1>Pixel-wise[1]</td><td rowspan=1 colspan=1>Measuring the effects onthe output using input perturbation</td><td rowspan=1 colspan=1>Interpretation</td><td rowspan=1 colspan=1>Instance-wise</td><td rowspan=1 colspan=1>No</td><td rowspan=1 colspan=1>Should begiven</td></tr><tr><td rowspan=1 colspan=1>INVASE(Ours)</td><td rowspan=1 colspan=1>Minimize KL divergence usingdeep NN influenced byactor-critic models</td><td rowspan=1 colspan=1>Feature selectionInterpretationPrediction</td><td rowspan=1 colspan=1>Instance-wise</td><td rowspan=1 colspan=1>Yes</td><td rowspan=1 colspan=1>Not needed</td></tr></table>
335
+
336
+ Table 6: Summary of the related works. (NN: Neural networks, KL: Kullback-Leibler)
337
+
338
+ # EXTENDING INVASE TO REGRESSION
339
+
340
+ To extend our model to the setting where $Y$ is continuous (regression problem), we replace the estimated loss with the reconstruction error as follows.
341
+
342
+ $$
343
+ \hat { l } ( { \bf x } , { \bf s } ) = - | | y - f ^ { \phi } ( { \bf x } , { \bf s } ) | | _ { 2 }
344
+ $$
345
+
346
+ where $f ^ { \phi } : \mathcal { X } \mathbb { R }$ is now the (continuous) predictor function trained to minimize the $\ell _ { 2 }$ -norm between its outputs and the real labels. As noted in [9], when the distribution of $Y$ given $\mathbf { X }$ is Gaussian, minimizing the $l _ { 2 }$ -norm is equivalent to minimizing the KL divergence.
347
+
348
+ # DETAILS OF INVASE
349
+
350
+ In the experiments, the depth of the selector, predictor, and baseline networks is set to 3. The number of hidden nodes in each layer is $d$ and $2 d$ , respectively. We use either ReLu or SeLu as the activation functions of each layer except for the output layer where we use the sigmoid activation function for the selector network and softmax activation function for the predictor and baseline networks. The number of samples in each mini-batch is 1000 for the selector, predictor, and baseline networks. We use cross-validation to select $\lambda$ among $\{ 0 . 1 , 0 . 3 , 0 . 5 , 1 , 2 , 5 , 1 0 \}$ . We use tensorflow to implement INVASE. The source-code can be found at https://github.com/iclr2018invase/ INVASE/.
351
+
352
+ # DETAILS OF BENCHMARKS
353
+
354
+ We use the following links for the implementations of 7 benchmarks.
355
+
356
+ • L2X: https://github.com/Jianbo-Lab/L2X
357
+ • LIME: https://github.com/marcotcr/lime
358
+ • Shapley: https://github.com/slundberg/shap
359
+ • Knock-off: http://web.stanford.edu/group/candes/knockoffs/ software/knockoff/
360
+ • Tree: http://scikit-learn.org/stable/modules/generated/ sklearn.ensemble.ExtraTreesClassifier.html
361
+ • LASSO: http://scikit-learn.org/stable/modules/linear_model. html#lasso
362
+
363
+ For L2X, we use the same network settings used in INVASE for fair comparisons. For SCFS, we explicitly implement from the reference ([11]).
364
+
365
+ # HIGH DIMENSIONAL DISCOVERY
366
+
367
+ To demonstrate the scalability of our method, we run an experiment in which we increase the total number of features to 100. The features are generated as a 100-dimensional Gaussian with no correlations $( \mathcal { N } ( \mathbf { 0 } , \mathbf { I } ) )$ and the relationships between features and label remains as in Table 1 in the main manucript (i.e. we are adding 89 additional noisy signals that have no effect on the label).
368
+
369
+ Table 7: Relevant feature discovery for synthetic datasets with 100 features
370
+
371
+ <table><tr><td rowspan="2">Dataset</td><td colspan="2">Syn1</td><td colspan="2">Syn2</td><td colspan="2">Syn3</td><td colspan="2">Syn4</td><td colspan="2">Syn5</td><td colspan="2">Syn6</td></tr><tr><td>Metrics (%) TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td></tr><tr><td>INVASE</td><td>100.0</td><td>0.0</td><td>100.0</td><td>0.0</td><td>100.0</td><td>0.0</td><td>66.3</td><td>40.5</td><td>73.2</td><td>23.7</td><td>90.5</td><td>15.4</td></tr><tr><td>L2X</td><td>6.1</td><td>93.9</td><td>81.4</td><td>18.6</td><td>57.7</td><td>42.3</td><td>48.5</td><td>46.4</td><td>35.4</td><td>60.8</td><td>66.3</td><td>33.7</td></tr><tr><td>LIME</td><td>0.0</td><td>100.0 95.6</td><td>100.0 95.1</td><td>0.0</td><td>92.7</td><td>7.3</td><td>43.8</td><td>47.4</td><td>42.3</td><td>50.1</td><td>50.1</td><td>49.9</td></tr><tr><td>Shapley</td><td>4.4</td><td></td><td></td><td>4.9</td><td>88.8</td><td>11.2</td><td>50.2</td><td>43.4</td><td>49.9</td><td>44.2</td><td>62.5</td><td>37.5</td></tr><tr><td>Knock off</td><td>0.0</td><td>64.9</td><td>3.7</td><td>71.2</td><td>74.9</td><td>24.9</td><td>28.2</td><td>59.8</td><td>33.1</td><td>59.4</td><td>46.9</td><td>53.0</td></tr><tr><td>Tree</td><td>49.9</td><td>50.1</td><td>100.0</td><td>0.0</td><td>100.0</td><td>0.0</td><td>40.7</td><td>49.5</td><td>56.7</td><td>37.5</td><td>58.4</td><td>41.6</td></tr><tr><td>SCFS</td><td>2.5</td><td>97.5</td><td>5.3</td><td>94.7</td><td>74.9</td><td>25.1</td><td>27.0</td><td>74.6</td><td>30.6</td><td>62.1</td><td>38.3</td><td>61.7</td></tr><tr><td>LASSO</td><td>2.5</td><td>97.5</td><td>4.0</td><td>96.0</td><td>75.3</td><td>24.7</td><td>28.3</td><td>73.2</td><td>36.0</td><td>56.9</td><td>45.9</td><td>54.1</td></tr></table>
372
+
373
+ As can be seen in Table 7, INVASE also works consistently better than all other benchmarks in all 6 synthetic datasets in this setting. In fact, we see a significant reduction in performance (compared to the 11 feature setting) for L2X in Syn1, with the TPR dropping more than $90 \%$ leading to an almost complete failure of the method to detect any relevant features. In particular, we see that L2X does not scale as well as INVASE with the dimensionality of the data, which is particularly limiting for a feature selection method.
374
+
375
+ We also compare the CPU times of the algorithm for training and testing with other instance-wise feature selection benchmarks to show the scalability in terms of computational complexity. As can be seen in Table 8, INVASE is much faster (10 times) than LIME and Shapley methods and comparable with L2X; we see that INVASE takes approximately $50 \%$ longer to run than L2X, which can be accounted for by the addition of a 3rd network (the baseline network) in INVASE that is not present in L2X. Note, however, that this baseline network can be trained in parallel with the predictor network and we believe that doing so would lead to both INVASE and L2X having the same run-time.
376
+
377
+ Table 8: Comparison of CPU clock time across different instance-wise feature selection methods on average across Syn1 to Syn6 with 100 features and 10,000 samples on training/testing, respectively
378
+
379
+ <table><tr><td rowspan=1 colspan=1>Methods</td><td rowspan=1 colspan=1>INVASE</td><td rowspan=1 colspan=1>L2X</td><td rowspan=1 colspan=1>Shapley</td><td rowspan=1 colspan=1>LIME</td></tr><tr><td rowspan=1 colspan=1>TrainTest</td><td rowspan=1 colspan=1>1327.69s0.38s</td><td rowspan=1 colspan=1>939.82s0.78s</td><td rowspan=1 colspan=1>12801.21s0.06s</td><td rowspan=1 colspan=1>-18931.98s</td></tr></table>
380
+
381
+ # HYPER-PARAMETER ANALYSIS
382
+
383
+ In the following experiment, we provide results for various values of the hyper-parameter, $\lambda$ , in the Syn4, Syn5, and Syn6 100-dimensional setting. Table 9 gives the results in terms of TPR and FDR. Note that in the other experiments, we select the hyper-parameter $\lambda$ which maximizes the predictor accuracy in terms of AUROC.
384
+
385
+ <table><tr><td>Datasets</td><td colspan="2">Syn4</td><td colspan="2">Syn5</td><td colspan="2">Syn6</td></tr><tr><td>X/Metris (%)</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td></tr><tr><td>0.1</td><td>98.0</td><td>94.3</td><td>90.0</td><td>93.4</td><td>99.2</td><td>92.3</td></tr><tr><td>0.3</td><td>93.7</td><td>87.9</td><td>84.2</td><td>88.9</td><td>96.9</td><td>86.7</td></tr><tr><td>0.5</td><td>99.0</td><td>43.1</td><td>88.3</td><td>50.6</td><td>99.6</td><td>31.7</td></tr><tr><td>1</td><td>66.3</td><td>40.5</td><td>73.2</td><td>23.7</td><td>90.5</td><td>15.4</td></tr><tr><td>2</td><td>0.0</td><td>0.0</td><td>25.4</td><td>4.1</td><td>67.1</td><td>3.6</td></tr><tr><td>5</td><td>0.0</td><td>0.0</td><td>7.5</td><td>2.7</td><td>7.6</td><td>2.5</td></tr><tr><td>10</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.0</td><td>0.0</td></tr></table>
386
+
387
+ Table 9: Relevant feature discovery results for various values of the hyper-parameter $\lambda$ in the Syn4, Syn5, and Syn6 100-dimensional setting.
388
+
389
+ # ADDITIONAL RESULTS ON COMPLEX SYNTHETIC DATASETS
390
+
391
+ In the main paper, the relevant subset for a sample in each of our variable synthetic datasets (Syn4- 6) depended on $X _ { 1 1 }$ only, which was unused in the rest of the model (i.e. $X _ { 1 1 }$ determined only the relevant subset, and was otherwise unused as a predictive variable). In this set of experiments, we investigate the effect of having the subset relevance depend on a variable that is also used in the model itself (Syn4A, Syn5A, Syn6A). We then investigate the effect of having more than one variable being used to determine subset relevance (Syn4B, Syn5B, Syn6B, Syn7). The results for these are reported in Tables 10 and 11, respectively.
392
+
393
+ The input features are generated from a 100-dimensional Gaussian distribution with no correlations across the features $( \mathbf { X } \sim \mathcal { N } ( \mathbf { 0 } , \mathbf { I } ) )$ . $Y$ is generated according to $\begin{array} { r } { \mathbb { P } ( Y = 1 | \mathbf { X } ) = \frac { 1 } { 1 + \mathrm { l o g i t } ( \mathbf { X } ) } } \end{array}$ with the logit value for each synthetic dataset now defined as follows:
394
+
395
+ • Syn4A: If $X _ { 1 } < 0$ , ${ \mathrm { l o g i t } } = \exp ( X _ { 1 } X _ { 2 } )$ , otherwise, logit $= \textstyle \exp ( \sum _ { i = 3 } ^ { 6 } X _ { i } ^ { 2 } - 4 )$ .
396
+ • Syn5A: If $X _ { 1 } < 0$ , ${ \mathrm { l o g i t } } = \exp ( X _ { 1 } X _ { 2 } )$ , otherwise, logi $\mathrm { t = - 1 0 } \times \sin 2 X _ { 7 } + 2 | X _ { 8 } | + X _ { 9 } +$ $\exp ( - X _ { 1 0 } )$ .
397
+ • $X _ { 7 } < 0$ , $\scriptstyle { \mathrm { l o g i t } } = \exp ( \sum _ { i = 3 } ^ { 6 } X _ { i } ^ { 2 } - 4 )$ , otherwise, logi $\mathrel { \mathop { : = } } - 1 0 \times \sin 2 X _ { 7 } + 2 | X _ { 8 } | +$ $X _ { 9 } + \exp ( - X _ { 1 0 } )$
398
+
399
+ Table 10: Relevant feature discovery results for complex synthetic datasets (Syn4A, 5A, 6A) with 100 features
400
+
401
+ <table><tr><td>Dataset 1</td><td>Syn4A</td><td>Syn5A</td><td></td><td>Syn6A</td><td></td></tr><tr><td>Metrics (%)</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td></tr><tr><td>INVASE+</td><td>77.5</td><td>14.5</td><td>85.9</td><td>8.8</td><td>89.9</td><td>7.3</td></tr><tr><td>L2X</td><td>65.0</td><td>39.3</td><td>48.0</td><td>57.4</td><td>74.4</td><td>35.5</td></tr><tr><td>LIME Shapley</td><td>56.3 71.8</td><td>49.2 39.8</td><td>58.2 71.0</td><td>48.8 41.3</td><td>58.9 68.9</td><td>47.8 38.2</td></tr><tr><td>Knock off</td><td>59.8</td><td>62.6</td><td>55.0</td><td>49.9</td><td>65.0</td><td>40.0</td></tr><tr><td>Tree</td><td>61.3</td><td>46.9</td><td>75.6</td><td>39.4</td><td>66.9</td><td>40.0</td></tr><tr><td>SCFS</td><td>52.8</td><td>66.9</td><td>55.3</td><td>50.6</td><td>50.4</td><td>51.8</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>LASSO</td><td>61.0</td><td>61.2</td><td>55.0</td><td>50.0</td><td>53.9</td><td>48.8</td></tr></table>
402
+
403
+ • Syn4B: If $X _ { 1 } X _ { 3 } < 0$ , ${ \mathrm { l o g i t } } = \exp ( X _ { 1 } X _ { 2 } )$ , otherwise, logit $= \textstyle \exp ( \sum _ { i = 3 } ^ { 6 } X _ { i } ^ { 2 } - 4 )$
404
+
405
+ • Syn5B: If $X _ { 1 } X _ { 7 } < 0$ , ${ \mathrm { l o g i t } } = \exp ( X _ { 1 } X _ { 2 } )$ , otherwise, logit $= - 1 0 \times \sin 2 X _ { 7 } + 2 | X _ { 8 } | +$ $X _ { 9 } + \exp ( - X _ { 1 0 } )$ .
406
+
407
+ • Syn6B: If $X _ { 3 } X _ { 7 } \ < \ 0$ , logit $= \textstyle \exp ( \sum _ { i = 3 } ^ { 6 } X _ { i } ^ { 2 } - 4 )$ , otherwise, logit $= - 1 0 \times \sin 2 X _ { 7 } +$ $2 | X _ { 8 } | + X _ { 9 } + \exp ( - X _ { 1 0 } )$ .
408
+
409
+ • Syn7:
410
+
411
+ – If $X _ { 1 } < 0 , X _ { 2 } < 0$ , ${ \mathrm { l o g i t } } = \exp ( X _ { 1 } X _ { 2 } )$
412
+ – If $X _ { 1 } < 0 , X _ { 2 } \geq 0$ , $\scriptstyle { \mathrm { l o g i t } } = \exp ( \sum _ { i = 3 } ^ { 6 } X _ { i } ^ { 2 } - 4 )$ .
413
+ – If $X _ { 1 } \geq 0 , X _ { 2 } < 0$ , $\mathrm { l o g i t = - 1 0 \times \sin 2 X _ { 7 } + 2 } | X _ { 8 } | + X _ { 9 } + \exp ( - X _ { 1 0 } ) .$ – If $X _ { 1 } \geq 0 , X _ { 2 } \geq 0$ $\begin{array} { r } { ) , \mathrm { l o g i t } = 0 . 5 \times \exp ( X _ { 1 } X _ { 2 } ) + 0 . 5 \times \exp ( \sum _ { i = 3 } ^ { 4 } X _ { i } ^ { 2 } - 2 ) . } \end{array}$
414
+
415
+ # RESULTS ON SEMI-SYNTHETIC DATASETS
416
+
417
+ In this experiment, we use real features (which have correlation across features) but generate the labels as in the synthetic experiments from the main paper, using Syn1-Syn6. This allows us to know the ground truth relevance of the features, and calculate TPR and FDR, while using unknown and correlated feature distributions (instead of the unrealistic setting of i.i.d. Gaussian used in the fully synthetic experiment). The results for the MAGGIC and PLCO datasets are given below.
418
+
419
+ Table 11: Relevant feature discovery results for complex synthetic datasets (Syn4B, 5B, 6B, 7) with 100 features
420
+
421
+ <table><tr><td>Dataset</td><td colspan="2">Syn4B</td><td colspan="2">Syn5B</td><td colspan="2">Syn6B</td><td colspan="2">Syn7</td></tr><tr><td>Metrics (%)</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td></tr><tr><td>INVASE+</td><td>65.5</td><td>30.1</td><td>85.0</td><td>15.0</td><td>86.5</td><td>27.8</td><td>86.8</td><td>32.4</td></tr><tr><td>L2X</td><td>43.2</td><td>53.4</td><td>50.3</td><td>50.3</td><td>44.6</td><td>55.4</td><td>35.3</td><td>70.9</td></tr><tr><td>LIME</td><td>56.8</td><td>37.2</td><td>71.9</td><td>27.2</td><td>69.8</td><td>30.2</td><td>56.4</td><td>51.0</td></tr><tr><td>Shapley</td><td>51.4</td><td>43.5</td><td>77.2</td><td>24.1</td><td>69.3</td><td>30.7</td><td>61.8</td><td>45.6</td></tr><tr><td>Knock off</td><td>5.3</td><td>87.4</td><td>73.3</td><td>25.2</td><td>59.9</td><td>40.1</td><td>54.1</td><td>60.0</td></tr><tr><td>Tree</td><td>56.7</td><td>37.4</td><td>73.9</td><td>25.0</td><td>70.1</td><td>29.9</td><td>71.6</td><td>40.3</td></tr><tr><td>SCFS</td><td>3.7</td><td>96.2</td><td>72.3</td><td>26.3</td><td>61.1</td><td>38.9</td><td>22.9</td><td>77.5</td></tr><tr><td>LASSO</td><td>4.2</td><td>95.6</td><td>73.3</td><td>25.0</td><td>60.1</td><td>39.9</td><td>24.9</td><td>75.8</td></tr></table>
422
+
423
+ Table 12: Relevant feature discovery for real datasets with synthetic labels using MAGGIC dataset
424
+
425
+ <table><tr><td rowspan="2">Dataset</td><td colspan="2">Syn1</td><td colspan="2">Syn2</td><td colspan="2">Syn3</td><td colspan="2">Syn4</td><td colspan="2">Syn5</td><td colspan="2">Syn6</td></tr><tr><td>Metrics (%) TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td></tr><tr><td>INVASE</td><td>100.0</td><td>0.0</td><td>100.0</td><td>0.0</td><td>100.0</td><td>0.0</td><td>85.9</td><td>0.0</td><td>72.9</td><td>0.1</td><td>81.0</td><td>13.2</td></tr><tr><td>L2X LIME</td><td>68.8 46.9</td><td>31.2 53.1</td><td>99.9 99.9</td><td>0.1 0.1</td><td>83.0 87.2</td><td>17.0 12.8</td><td>60.0 63.6</td><td>31.3 24.4</td><td>68.3 50.2</td><td>22.3 37.6</td><td>73.5 68.7</td><td>26.5 31.3</td></tr><tr><td>Shapley Knock off</td><td>73.9 27.5</td><td>26.1 65.0</td><td>94.5 77.5</td><td>5.5 22.5</td><td>81.0 100.0</td><td>19.0 0.0</td><td>65.3</td><td>23.9 34.4</td><td>61.2</td><td>29.0</td><td>69.9</td><td>30.1</td></tr><tr><td>Tree</td><td>100.0</td><td>0.0</td><td>100.0</td><td>0.0</td><td>100.0</td><td>0.0</td><td>57.0 56.3</td><td>29.7</td><td>56.1 51.6</td><td>29.8 40.2</td><td>58.0 46.7</td><td>42.0 53.3</td></tr><tr><td>SCFS</td><td>30.0</td><td>70.0</td><td>53.0</td><td>47.0</td><td>100.0</td><td>0.0</td><td>52.0</td><td>39.9</td><td>54.0</td><td>32.4</td><td>64.5</td><td>35.5</td></tr><tr><td>LASSO</td><td></td><td></td><td>75.0</td><td>25.0</td><td>100.0</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>25.0</td><td>75.0</td><td></td><td></td><td></td><td>0.0</td><td>60.7</td><td>33.1</td><td>56.1</td><td>29.8</td><td>58.2</td><td>41.8</td></tr></table>
426
+
427
+ Table 13: Relevant feature discovery for real datasets with synthetic labels using PLCO dataset
428
+
429
+ <table><tr><td>Dataset</td><td colspan="2">Syn1</td><td colspan="2">Syn2</td><td colspan="2">Syn3</td><td colspan="2">Syn4</td><td colspan="2">Syn5</td><td colspan="2">Syn6</td></tr><tr><td>Metrics (%)</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td><td>TPR</td><td>FDR</td></tr><tr><td>INVASE</td><td>35.9</td><td>0.0</td><td>100.0</td><td>0.0</td><td>84.0</td><td>7.0</td><td>59.2</td><td>38.6</td><td>64.6</td><td>31.7</td><td>70.0</td><td>29.9</td></tr><tr><td>L2X LIME</td><td>0.0 1.0</td><td>100.0 99.0</td><td>62.2 70.3</td><td>37.8 29.7</td><td>43.6 74.9</td><td>56.4 25.1</td><td>41.9 43.5</td><td>55.4 55.9</td><td>21.5 26.8</td><td>76.7 68.9</td><td>66.9 56.8</td><td>33.1 43.2</td></tr><tr><td>Shapley Knock off</td><td>5.4</td><td>94.6</td><td>68.5</td><td>31.5</td><td>67.9</td><td>32.1</td><td>32.7</td><td>69.4</td><td>39.6</td><td>58.6</td><td>48.5</td><td>51.5</td></tr><tr><td>Tree</td><td>15.0 0.0</td><td>50.0 100.0</td><td>85.0 71.0</td><td>15.0 29.0</td><td>100.0 75.0</td><td>0.0 25.0</td><td>46.1 34.5</td><td>52.1 66.3</td><td>34.5</td><td>58.3 54.7</td><td>60.0</td><td>40.0</td></tr><tr><td>SCFS</td><td>10.0</td><td>90.0</td><td>61.0</td><td>39.0</td><td>93.8</td><td>6.2</td><td>43.2</td><td>55.7</td><td>43.8</td><td></td><td>36.9</td><td>63.1</td></tr><tr><td>LASSO</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>31.0</td><td>63.6</td><td>55.5</td><td>44.5</td></tr><tr><td></td><td>0.0</td><td>100.0</td><td>72.5</td><td>27.5</td><td>100.0</td><td>0.0</td><td>39.2</td><td>60.8</td><td>33.2</td><td>68.2</td><td>45.0</td><td>55.0</td></tr></table>
430
+
431
+ As demonstrated in Tables 12 and 13, INVASE outperforms all other methods across all 6 of the synthetic-label settings using real features. This also demonstrates the capability of INVASE in settings where there are unknown correlation structures in the features.
432
+
433
+ # 5.1 PREDICTIVE PERFORMANCE COMPARISON ON REAL-WORLD DATASETS
434
+
435
+ In this experiment, we evaluate the predictive performance gains of using each feature selection method as a pre-processing step on the two real datasets, MAGGIC and PLCO (as was done for synthetic data in Section 4.1.3). For each method, we first perform feature selection and then train a predictive model on top of the feature-selected data, where the model has the same architecture as the INVASE predictor network (to create a fair comparison of methods). As can be seen in Table 14, INVASE significantly outperform the other approaches.
436
+
437
+ <table><tr><td>Datasets</td><td colspan="4">MAGGIC</td><td colspan="4">PLCO</td></tr><tr><td>Labels</td><td colspan="2">3-year</td><td colspan="2">5-year</td><td colspan="2">5-year</td><td colspan="2">10-year</td></tr><tr><td>Metrics</td><td>AUROC</td><td>AUPRC</td><td>AUROC</td><td>AUPRC</td><td>AUROC</td><td>AUPRC</td><td>AUROC</td><td>AUPRC</td></tr><tr><td>INVASE</td><td>0.722</td><td>0.655</td><td>0.740</td><td>0.867</td><td>0.637</td><td>0.329</td><td>0.673</td><td>0.506</td></tr><tr><td>L2X</td><td>0.609</td><td>0.529</td><td>0.607</td><td>0.794</td><td>0.558</td><td>0.170</td><td>0.583</td><td>0.365</td></tr><tr><td>LIME</td><td>0.637</td><td>0.5596</td><td>0.634</td><td>0.808</td><td>0.597</td><td>0.183</td><td>0.601</td><td>0.374</td></tr><tr><td>Shapley</td><td>0.641</td><td>0.557</td><td>0.617</td><td>0.797</td><td>0.614</td><td>0.194</td><td>0.615</td><td>0.381</td></tr><tr><td>Knockoff</td><td>0.686</td><td>0.614</td><td>0.711</td><td>0.853</td><td>0.619</td><td>0.230</td><td>0.658</td><td>0.475</td></tr><tr><td>Tree</td><td>0.678</td><td>0.604</td><td>0.708</td><td>0.850</td><td>0.632</td><td>0.269</td><td>0.655</td><td>0.469</td></tr><tr><td>SCFS</td><td>0.683</td><td>0.623</td><td>0.723</td><td>0.857</td><td>0.632</td><td>0.231</td><td>0.632</td><td>0.444</td></tr><tr><td>LASSO</td><td>0.692</td><td>0.615</td><td>0.709</td><td>0.847</td><td>0.623</td><td>0.218</td><td>0.656</td><td>0.467</td></tr></table>
438
+
439
+ Table 14: Predictive Performance Comparison on two real-world datasets (MAGGIC and PLCO) in terms of AUROC and AUPRC
440
+
441
+ CORRELATIONS BETWEEN FEATURES AND LABELS IN THE SYNTHETIC AND SEMI-SYNTHETIC EXPERIMENTS
442
+ Table 15: Correlation between features and labels in Synthetic datasets with 100 features. Ground truth (in the global sense) relevant features are given in bold. Features with correlation $> 0 . 0 5$ are highlighted in red.
443
+
444
+ <table><tr><td>Variables</td><td>Syn1</td><td>Syn2</td><td>Syn3</td><td>Syn4</td><td>Syn5</td><td>Syn6</td></tr><tr><td>X1 X</td><td>0.003 0.001</td><td>0.008 0.005</td><td>0.006 0.006</td><td>0.009 0.005</td><td>0.007 0.015</td><td>0.006 0.005</td></tr><tr><td>X3</td><td>0.006 0.006</td><td>0.011</td><td>0.001</td><td>0.017</td><td>0.016</td><td>0.010</td></tr><tr><td>X4</td><td></td><td>0.003</td><td>0.003</td><td>0.002</td><td>0.000</td><td>0.002</td></tr><tr><td>X5</td><td>0.003</td><td>0.015</td><td>0.022</td><td>0.004</td><td>0.017</td><td>0.028</td></tr><tr><td>X6</td><td>0.003</td><td>0.004</td><td>0.005</td><td>0.002</td><td>0.004</td><td>0.005</td></tr><tr><td>X7</td><td>0.013</td><td>0.009</td><td>0.481</td><td>0.002</td><td>0.242</td><td>0.235</td></tr><tr><td>X8</td><td>0.010</td><td>0.008</td><td>0.012</td><td>0.003</td><td>0.010</td><td>0.022</td></tr><tr><td>X9</td><td>0.001</td><td>0.003</td><td>0.239</td><td>0.002</td><td>0.115</td><td>0.121</td></tr><tr><td>X10</td><td>0.002</td><td>0.003</td><td>0.308</td><td>0.003</td><td>0.149</td><td>0.144</td></tr><tr><td>X11</td><td>0.014</td><td>0.012</td><td>0.004</td><td>0.028</td><td>0.018</td><td>0.002</td></tr></table>
445
+
446
+ As can be seen in Table 15, among 33 relevant features, only 9 features have more than 0.05 (linear) correlation with the label. In particular, using a linear model, it is very hard to discover the relevant features. However, Knock-off (based on LASSO and linear correlations), LASSO, and SCFS are linear models, resulting in a poor performance in our experiments. The above table results are directly reflected in the results given in the main manuscript.
447
+
448
+ Table 16: Correlation between features and labels in MAGGIC datasets. Ground truth relevant features are described in bold. Features with correlation $> 0 . 0 5$ are described in red
449
+
450
+ <table><tr><td>Variables</td><td>Syn1</td><td>Syn2</td><td>Syn3</td><td>Syn4</td><td>Syn5</td><td>Syn6</td></tr><tr><td>X1</td><td>0.028 0.002</td><td>0.030 0.011</td><td>0.070 0.009</td><td>0.011 0.001</td><td>0.044 0.001</td><td>0.026 0.012</td></tr><tr><td>X</td><td>0.018</td><td>0.079</td><td>0.008</td><td>0.038</td><td>0.006</td><td>0.046</td></tr><tr><td>X3 X4</td><td>0.005</td><td>0.113</td><td>0.006</td><td>0.056</td><td>0.001</td><td>0.055</td></tr><tr><td></td><td>0.006</td><td>0.034</td><td></td><td>0.013</td><td></td><td></td></tr><tr><td>X5 X6</td><td>0.019</td><td>0.114</td><td>0.032 0.027</td><td>0.099</td><td>0.016</td><td>0.036</td></tr><tr><td></td><td>0.005</td><td>0.010</td><td></td><td>0.000</td><td>0.018</td><td>0.004</td></tr><tr><td>X7</td><td></td><td></td><td>0.367</td><td></td><td>0.262</td><td>0.272</td></tr><tr><td>X8</td><td>0.020</td><td>0.030</td><td>0.112</td><td>0.023</td><td>0.075</td><td>0.082</td></tr><tr><td>X9</td><td>0.025</td><td>0.022</td><td>0.299</td><td>0.006</td><td>0.216</td><td>0.200</td></tr><tr><td>X10</td><td>0.07</td><td>0.043</td><td>0.328</td><td>0.027</td><td>0.222</td><td>0.206</td></tr><tr><td>X11</td><td>0.009</td><td>0.006</td><td>0.034</td><td>0.046</td><td>0.018</td><td>0.058</td></tr></table>
451
+
452
+ We do the same analysis for the MAGGIC dataset; results are given in Table 16. We see that here the linear correlation with the label is stronger and this is reflected in Tables 12 and 13, where all of the linear models performed better than in the fully-synthetic settings. However, we note that although they had a better performance, in most cases it was still not comparable with INVASE.
453
+
454
+ DEFINITION OF TPR AND FDR
455
+
456
+ Figure 3: The definitions of True Positive Rate (TPR) and False Discovery Rate (FDR)
457
+
458
+ <table><tr><td rowspan=2 colspan=2></td><td rowspan=1 colspan=2>True Condition</td></tr><tr><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Negative</td></tr><tr><td rowspan=2 colspan=1>PredictedCondition</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>TruePositive</td><td rowspan=1 colspan=1>FalsePositive</td></tr><tr><td rowspan=1 colspan=1>Negative</td><td rowspan=1 colspan=1>FalseNegative</td><td rowspan=1 colspan=1>TrueNegative</td></tr></table>
459
+
460
+ ୘୰୳ୣ ୔୭ୱ୧୲୧୴ୣ
461
+ True Positive Rate (TPR) $=$ ୘୰୳ୣ ୔୭ୱ୧୲୧୴ୣା୊ୟ୪ୱ��� ୒ୣ୥ୟ୲୧୴ୣ ୊ୟ୪ୱୣ ୔୭ୱ୧୲୧୴ୣ
462
+ False Discovery Rate (FDR) $=$ ୘୰୳ୣ ୔୭ୱ୧୲୧୴ୣ ୊ୟ୪ୱୣ ୔୭ୱ୧୲୧୴ୣ $^ +$
463
+
464
+ # COMPUTER VISION
465
+
466
+ Another natural application of INVASE is in computer vision. To briefly demonstrate the applicability and capability of INVASE to computer vision, we conduct two experiments using the Kaggle Dogs vs. Cats dataset (https://www.kaggle.com/c/dogs-vs-cats) [6] and the Oxford Pet dataset (http://www.robots.ox.ac.uk/˜vgg/data/pets/) [20]. The goal is to select a set $1 6 \times 1 6$ patches of each image that maximize the predictive capability of a model. In order to apply INVASE to this problem, we simply treat each $1 6 \times 1 6$ patch as a feature.
467
+
468
+ We use the U-Net [25] architecture for the selector network and the VGG network [28] architecture for the predictor and baseline networks. Below we give qualitative results of INVASE applied to these datasets, where we see that INVASE successfully identifies patches of each image in which the animal’s face is visible.
469
+
470
+ ![](images/4f36cf05a53bf3d7e37f5224237ed6e770fab264b6463ced2d9ee180b9a626b6.jpg)
471
+ Figure 4: Selected $1 6 \mathrm { ~ x ~ } 1 6$ patches by INVASE on Kaggle Dogs vs. Cats dataset - Cats
472
+
473
+ ![](images/aa7861ab9378342c4713f4385cc0c535523fb2e28b91aa84c9951a7e10e9b6d0.jpg)
474
+ Figure 5: Selected $1 6 \times 1 6$ patches by INVASE on Kaggle Dogs vs. Cats dataset - Dogs
475
+
476
+ ![](images/b5bc222942ad195921fdf291082c28ac5a6e4f8c2d9edef9031184a9a0ca0f60.jpg)
477
+ Figure 6: Selected $1 6 \times 1 6$ patches by INVASE on Oxford Pet dataset - Cats
478
+
479
+ ![](images/c0d45684db148f7fe42f9625cf27b015fa3f4dba35149e59b0d12a308dbc8f23.jpg)
480
+ Figure 7: Selected $1 6 \mathrm { ~ x ~ } 1 6$ patches by INVASE on Oxford Pet dataset - Dogs
parse/train/BJg_roAcK7/BJg_roAcK7_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJg_roAcK7/BJg_roAcK7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJg_roAcK7/BJg_roAcK7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByxT7TNFvH/ByxT7TNFvH.md ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SEMANTICALLY-GUIDED REPRESENTATION LEARNING FOR SELF-SUPERVISED MONOCULAR DEPTH
2
+
3
+ Vitor Guizilini1 Rui Hou1,2 Jie Li1 Rares, Ambrus, 1 Adrien Gaidon1
4
+
5
+ 1Toyota Research Institute (TRI) {first.last}@tri.global
6
+
7
+ 2University of Michigan rayhou@umich.edu
8
+
9
+ # ABSTRACT
10
+
11
+ Self-supervised learning is showing great promise for monocular depth estimation, using geometry as the only source of supervision. Depth networks are indeed capable of learning representations that relate visual appearance to 3D properties by implicitly leveraging category-level patterns. In this work we investigate how to leverage more directly this semantic structure to guide geometric representation learning, while remaining in the self-supervised regime. Instead of using semantic labels and proxy losses in a multi-task approach, we propose a new architecture leveraging fixed pretrained semantic segmentation networks to guide self-supervised representation learning via pixel-adaptive convolutions. Furthermore, we propose a two-stage training process to overcome a common semantic bias on dynamic objects via resampling. Our method improves upon the state of the art for self-supervised monocular depth prediction over all pixels, fine-grained details, and per semantic categories.†
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Accurate depth estimation is a key problem in computer vision and robotics, as it is instrumental for perception, navigation, and planning. Although perceiving depth typically requires dedicated sensors (e.g., stereo rigs, LiDAR), learning to predict depth from monocular imagery can provide useful cues for a wide array of tasks (Michels et al., 2005; Kendall et al., 2018; Manhardt et al., 2019; Lee et al., 2019). Going beyond supervised learning from direct measurements (Eigen et al., 2014), self-supervised methods exploit geometry as supervision (Guo et al., 2018; Pillai et al., 2019; Zou et al., 2018; Yang et al., 2017), therefore having the potential to leverage large scale datasets of raw videos to outperform supervised methods (Guizilini et al., 2019).
16
+
17
+ Although depth from a single image is an ill-posed inverse problem, monocular depth networks are able to make accurate predictions by learning representations connecting the appearance of scenes and objects with their geometry in Euclidean 3D space. Due to perspective, there is indeed an equivariance relationship between the visual appearance of an object in 2D and its depth, when conditioned on the object’s category. For instance, a car 25 meters away appears smaller (on the image plane) than a car only 5 meters away but bigger than a truck 50 meters away. Current depth estimation methods either do not leverage this structure explicitly or rely on strong semantic supervision to jointly optimize geometric consistency and a semantic proxy task in a multi-task objective (Ochs et al., 2019; Chen et al., 2019), thus departing from the self-supervised paradigm.
18
+
19
+ In this paper, we explore how we can leverage semantic information to improve monocular depth prediction in a self-supervised way. Our main contribution is a novel architecture that uses a fixed pre-trained semantic segmentation network to guide geometric representation learning in a selfsupervised monocular depth network. In contrast to standard convolutional layers, our architecture uses pixel-adaptive convolutions (Su et al., 2019) to learn semantic-dependent representations that can better capture the aforementioned equivariance property. Leveraging semantics may nonetheless introduce category-specific biases. Our second contribution is a two-stage training process where we automatically detect the presence of a common bias on dynamic objects (projections at infinity) and resample the training set to de-bias it. Our method improves upon the state of the art in selfsupervised monocular depth estimation on the standard KITTI benchmark (Geiger et al., 2013), both on average over pixels, over classes, and for dynamic categories in particular.
20
+
21
+ ![](images/b09c90637e486163bce4d7333340755790cf27ff41a391d503abe5d3014d643d.jpg)
22
+ Figure 1: Example of a pointcloud generated using our proposed semantically-guided architecture, colored by RGB values from the input image and corresponding predicted semantic labels.
23
+
24
+ # 2 RELATED WORK
25
+
26
+ Since the seminal work of Eigen et al. (2014), substantial progress has been done to improve the accuracy of supervised depth estimation from monocular images, including the use of Conditional Random Fields (CRFs) (Li et al., 2015), joint optimization of surface normals (Qi et al., 2018), fusion of multiple depth maps (Lee et al., 2018), and ordinal classification (Fu et al., 2018). Consequently, as supervised techniques for depth estimation advanced rapidly, the availability of largescale depth labels became a bottleneck, especially for outdoor applications. Garg et al. (2016) and Godard et al. (2017) provided an alternative self-supervised strategy involving stereo cameras, where Spatial Transformer Networks (Jaderberg et al., 2015) can be used to geometrically warp, in a differentiable way, the right image into a synthesized left image, using the predicted depth from the left image. The photometric consistency loss between the resulting synthesized and original left images can then be minimized in an end-to-end manner using a Structural Similarity term (Wang et al., 2004) and additional depth regularization terms. Following Godard et al. (2017) and Ummenhofer et al. (2017), Zhou et al. (2017) generalized this to the purely monocular setting, where a depth and a pose networks are simultaneously learned from unlabeled monocular videos. Rapid progress in terms of architectures and objective functions (Yin & Shi, 2018; Mahjourian et al., 2018; Casser et al., 2019; Zou et al., 2018; Klodt & Vedaldi, 2018; Wang et al., 2018; Yang et al., 2018) have since then turned monocular depth estimation into one of the most successful applications of self-supervised learning, even outperforming supervised methods (Guizilini et al., 2019).
27
+
28
+ The introduction of semantic information to improve depth estimates has been explored in prior works, and can be broadly divided into two categories. The first one uses semantic (or instance) information to mask out or properly model dynamic portions of the image, which are not accounted for in the photometric loss calculation. Guney & Geiger ¨ (2015) leveraged object knowledge in a Markov Random Field (MRF) to resolve stereo ambiguities, while Bai et al. (2016) used a conjunction of instance-level segmentation and epipolar constraints to reduce uncertainty in optical flow estimation. Casser et al. (2019) used instance-level masks to estimate motion models for different objects in the environment, and account for their external motion in the resulting warped image. The second category attempts to learn both tasks in a single framework, and uses consistency losses to ensure that both are optimized simultaneously and regularize each other, so the information contained in one task can be transferred to improve the other. For instance, Ochs et al. (2019) estimated depth with an ordinal classification loss similar to the standard semantic classification loss, and used empirical weighting to combine them into a single loss for optimization. Similarly, Chen et al. (2019) used a unified conditional decoder that can generate either semantic or depth estimates, and both outputs are used to generate a series of losses also combined using empirical weighting to generate the final loss to be optimized.
29
+
30
+ Our approach focuses instead on representation learning, exploiting semantic features into the selfsupervised depth network by using a pretrained semantic segmentation network to guide the generation of depth features. This is done using pixel-adaptive convolutions, recently proposed in Su et al. (2019) and applied to tasks such as depth upsampling using RGB images for feature guidance. We show that different depth networks can be readily modified to leverage this semantic feature guidance, ranging from widely used ResNets (He et al., 2016) to the current state-of-the-art PackNet (Guizilini et al., 2019), with a consistent gain in performance across these architectures.
31
+
32
+ # 3 SELF-SUPERVISED STRUCTURE-FROM-MOTION
33
+
34
+ Our semantically-guided architecture is developed within a self-supervised monocular depth estimation setting, commonly known as structure-from-motion (SfM). Learning in a self-supervised structure-from-motion setting requires two networks: a monocular depth model $f _ { D } : I D$ , that outputs a depth prediction $\hat { D } = f _ { D } ( I ( p ) )$ for every pixel $p$ in the target image $I$ ; and a monocular ego-motion estimator $f _ { \mathbf { x } } : ( I _ { t } , I _ { S } ) \to \mathbf { x } _ { t \to S }$ , that predicts the $6 \mathrm { D o F }$ transformations for all $s \in S$ given by $\mathbf { x } _ { t s } = ( \mathbf { \Sigma } _ { \mathbf { 0 } } ^ { \mathbf { R } \textbf { t } } ) \in \mathbf { S } \mathbf { E } ( 3 )$ between the target image $I _ { t }$ and a set of temporal context source images $I _ { s } \in I _ { S }$ . In all reported experiments we use $I _ { t - 1 }$ and $I _ { t + 1 }$ as source images.
35
+
36
+ # 3.1 THE SELF-SUPERVISED OBJECTIVE LOSS
37
+
38
+ We train the depth and pose networks simultaneously, using the same protocols and losses as described in Guizilini et al. (2019). Our self-supervised objective loss consists of an appearance matching term ${ \mathcal { L } } _ { p }$ that is imposed between the synthesized $\bar { \hat { I } } _ { t }$ and original $I _ { t }$ target images, and a depth regularization term $\mathcal { L } _ { s }$ that ensures edge-aware smoothing in the depth estimates $\hat { D } _ { t }$ . The final objective loss is averaged per pixel, pyramid scale and image batch, and is defined as:
39
+
40
+ $$
41
+ \mathcal { L } ( I _ { t } , \hat { I } _ { t } ) = \mathcal { L } _ { p } ( I _ { t } , \hat { I } _ { t } ) + \lambda _ { 1 } \mathcal { L } _ { s } ( \hat { D } _ { t } )
42
+ $$
43
+
44
+ where $\lambda _ { 1 }$ is a weighting coefficient between the photometric ${ \mathcal { L } } _ { p }$ and depth smoothness $\mathcal { L } _ { s }$ loss terms. Following Godard et al. (2017) and Zhou et al. (2017), the similarity between synthesized $\hat { I } _ { t }$ and original $I _ { t }$ target images is estimated using a Structural Similarity (SSIM) term (Wang et al., 2004) combined with an L1 loss term, inducing the following overall photometric loss:
45
+
46
+ $$
47
+ \mathcal { L } _ { p } ( I _ { t } , \hat { I } _ { t } ) = \alpha \frac { 1 - \mathrm { S S I M } ( I _ { t } , \hat { I } _ { t } ) } { 2 } + ( 1 - \alpha ) \parallel I _ { t } - \hat { I } _ { t } \parallel
48
+ $$
49
+
50
+ In order to regularize the depth in low gradient regions, we incorporate an edge-aware term similar to Godard et al. (2017). This loss is weighted for each of the pyramid levels, decaying by a factor of 2 on each downsampling, starting with a weight of 1 for the $0 ^ { \mathrm { { i } \mathrm { { \bar { h } } } } }$ pyramid level.
51
+
52
+ $$
53
+ \mathcal { L } _ { s } ( \hat { D } _ { t } ) = | \delta _ { x } \hat { D } _ { t } | e ^ { - | \delta _ { x } I _ { t } | } + | \delta _ { y } \hat { D } _ { t } | e ^ { - | \delta _ { y } I _ { t } | }
54
+ $$
55
+
56
+ We also incorporate some of the insights introduced in Godard et al. (2018), namely auto-masking, minimum reprojection error, and inverse depth map upsampling to further improve depth estimation performance in our self-supervised monocular setting.
57
+
58
+ # 3.2 DEPTH AND POSE NETWORKS
59
+
60
+ Our baseline depth and pose networks are based on the PackNet architecture introduced by Guizilini et al. (2019), which proposes novel packing and unpacking blocks to respectively downsample and upsample feature maps during the encoding and decoding stages. This network was selected due to its state-of-the-art performance in the task of self-supervised monocular depth estimation, so we can analyze if our proposed architecture is capable of further improving the current state-of-the-art. However, there are no restrictions as to which models our proposed semantically-guided architecture can be applied to, and in Section 5.4 we study its application to different depth networks.
61
+
62
+ # 4 SEMANTICALLY-GUIDED GEOMETRIC REPRESENTATION LEARNING
63
+
64
+ In this section, we describe our method to inject semantic information into a self-supervised depth network via its augmentation with semantic-aware convolutions. Our proposed architecture is depicted in Figure 2 and is composed of two networks: a primary one, responsible for the generation of depth predictions $\hat { D } = f _ { D } ( I ( p ) )$ ; and a secondary one, capable of producing semantic predictions. Only the first network is optimized during self-supervised learning; the semantic network is initialized from pretrained weights and is not further optimized. This is in contrast to the common practice of supervised (ImageNet) pretraining of depth encoders (Godard et al., 2018; Casser et al., 2019; Zou et al., 2018): here instead of fine-tuning from pre-trained weights, we preserve these secondary weights to guide the feature learning process of the primary depth network. Our approach also differs from learning without forgetting (Li & Hoiem, 2017) by leveraging fixed intermediate feature representations as a way to maintain consistent semantic guidance throughout training.
65
+
66
+ ![](images/768e7a4db114cab117418b58a69ddf5a06d6900d9c4ab615ba74d01856d69ab0.jpg)
67
+ Figure 2: Diagram of our proposed architecture for self-supervised monocular depth estimation with semantically-guided feature learning. The semantic network is fixed and initialized from pretrained weights, while the depth network is trained end-to-end in a self-supervised way, including pixel-adaptive convolutions (Guidance) on its decoder to learn semantic-dependent geometric features.
68
+
69
+ # 4.1 SEMANTICALLY-GUIDED DEPTH FEATURES
70
+
71
+ We leverage the information from the pretrained semantic network in the depth network through the use of pixel-adaptive convolutions (Su et al., 2019). They were recently proposed to address some limitations inherent to the standard convolution operation, namely its translation invariance making it content-agnostic. While this significantly reduces the number of parameters of the resulting network, this might also lead to sub-optimal solutions under certain conditions important for geometric representation learning. For example, spatially-shared filters globally average the loss gradients over the entire image, forcing the network to learn weights that cannot leverage location-specific information beyond their limited receptive fields. Content-agnostic filters are unable to distinguish between different pixels that are visually similar (i.e. dark areas due to shadows or black objects) or generalize to similar objects that are visually different (i.e. cars with varying colors). In this work, we use pixel-adaptive convolutions to produce semantic-aware depth features, where the fixed information encoded in the semantic network is used to disambiguate geometric representations for the generation of multi-level depth features.
72
+
73
+ As shown in Figure 2, we extract multi-level feature maps from the semantic network. For each feature map, we apply a $3 \times 3$ and a $1 \times 1$ convolutional layer followed by Group Normalization (Wu & He, 2018) and ELU non-linearities (Clevert et al., 2016). These processed semantic feature maps are then used as guidance on their respective pixel-adaptive convolutional layers, following the formulation proposed in $\mathrm { S u }$ et al. (2019):
74
+
75
+ $$
76
+ \mathbf { v } _ { i } ^ { \prime } = \sum _ { j \in \Omega ( i ) } K ( \mathbf { f } _ { i } , \mathbf { f } _ { j } ) \mathbf { W } [ \mathbf { p } _ { i } - \mathbf { p } _ { j } ] \mathbf { v } _ { j } + \mathbf { b }
77
+ $$
78
+
79
+ In the above equation, $\mathbf { f } \in \mathcal { R } ^ { D }$ are processed features from the semantic network that will serve to guide the pixel-adaptive convolutions from the depth network, $\mathbf { p } = ( x , y ) ^ { T }$ are pixel coordinates, with $[ { \bf p } _ { i } - { \bf p } _ { j } ]$ denoting 2D spatial offsets between pixels, $\mathbf { W } _ { k \times k }$ are convolutional weights with kernel size $k , \check { \Omega } _ { i }$ defines a $k \times k$ convolutional window around $i$ , $\mathbf { v }$ is the input signal to be convolved, and $\mathbf { b } \in \mathcal { R } ^ { 1 }$ is a bias term. $K$ is the kernel used to calculate the correlation between guiding features, here chosen to be the standard Gaussian kernel:
80
+
81
+ $$
82
+ K ( \mathbf { f } _ { i } , \mathbf { f } _ { j } ) = \exp \left( - \frac { 1 } { 2 } ( \mathbf { f } _ { i } - \mathbf { f } _ { j } ) ^ { T } \Sigma _ { i j } ^ { - 1 } ( \mathbf { f } _ { i } - \mathbf { f } _ { j } ) \right)
83
+ $$
84
+
85
+ where $\Sigma _ { i j }$ is the covariance matrix between features $\mathbf { f } _ { i }$ and $\mathbf { f } _ { j }$ , here chosen to be a diagonal matrix $\sigma ^ { 2 } \cdot I _ { D }$ , with $\sigma$ as an extra learnable parameter for each convolutional filter. These kernel evaluations can be seen as a secondary set of weights applied to the standard convolutional weights, changing their impact on the resulting depth features depending on the content stored in the guiding semantic features. For example, the information contained in depth features pertaining to the sky should not be used to generate depth features describing a pedestrian, and this behavior is now captured as a larger distance between their corresponding semantic features, which in turn produces smaller weights for that particular convolutional filter. Note that the standard convolution can be considered a special case of the pixel-adaptive convolution, where $\forall ~ i j , K ( \mathbf { f } _ { i } , \mathbf { f } _ { j } ) ~ = ~ 1$ .
86
+
87
+ ![](images/c1133bd34f68068e6cc07f5e3946ece1ab608146cce40ed0d3a8c96d349ad49c.jpg)
88
+ Figure 3: Qualitative results of our proposed two-stage training to address the infinite depth problem. Top images were obtained evaluating the first-stage depth network, and bottom images were obtained using the second-stage depth network, trained with a filtered dataset.
89
+
90
+ # 4.2 SEMANTIC GUIDANCE NETWORK
91
+
92
+ As the secondary network used to provide semantic guidance for the generation of depth features, we use a Feature Pyramid Network (FPN) with ResNet backbone (Lin et al., 2017). This architecture has been shown to be efficient for both semantic and instance-level predictions towards panoptic segmentation (Kirillov et al., 2019; Li et al., 2018; Xiong et al., 2019; Porzi et al., 2019). While our proposed semantically-guided architecture is not restricted to any particular network, we chose this particular implementation to facilitate the future exploration of different sources for guidance information. Architectural details follow the protocols described in Li et al. (2018), and unless mentioned otherwise the same pretrained model was used in all reported experiments. The semantic network is assumed fixed, pretrained on a held out dataset different than the raw data used for selfsupervised learning, i.e. we do not require any semantic ground truth on the target dataset.
93
+
94
+ # 4.3 TWO-STAGE TRAINING
95
+
96
+ One well-known limitation of the self-supervised photometric loss is its inability to model dynamic objects, due to a static world assumption that only accounts for camera ego-motion (Godard et al., 2018; Casser et al., 2019). A resulting common failure mode is the infinite depth problem, which is caused by the presence of objects moving at the same speed as the camera. This typically causes distinct holes in the predicted depth maps, with arbitrarily large values where these objects should be. This severely hinders the applicability of such models in real-world applications, particularly for automated driving, where the ability to detect and properly model dynamic objects is crucial. Moreover, this limitation may be further accentuated in our proposed semantically-guided architecture, as the infinite depth problem occurs mostly on dynamic categories (i.e. cars and motorcycles) and the semantic-aware features may reinforce this bias.
97
+
98
+ We propose a simple and efficient two-stage training method to detect and remove this bias from the training set. In the first stage, we learn a standard depth network on all available training data. This network, exhibiting the infinite depth problem, is then used to resample the dataset by automatically filtering out sequences with infinite depth predictions that violate a basic geometric prior. We indeed find that depth predictions for pixels corresponding to the nearby ground plane are generally robust. This enables getting a coarse estimate of the ground plane using RANSAC and detecting the number of pixels whose predicted depth projects them significantly below the ground. If that number is above a threshold, then the corresponding image is subsequently ignored (we found a conservative threshold of 10 to work well in all our experiments, filtering out roughly $5 \%$ of the KITTI training dataset). During the second stage, we retrain the network on the subsampled dataset (from scratch to avoid the previous local optimum). As this subsampled dataset is de-biased, the network learns better depth estimates on dynamic objects. This process can be repeated, but we find that two stages are enough to remove any traces of infinite depth in our experiments, as shown in Figure 3.
99
+
100
+ # 5 EXPERIMENTAL RESULTS
101
+
102
+ # 5.1 DATASETS
103
+
104
+ We use the standard KITTI benchmark (Geiger et al., 2013) for self-supervised training and evaluation. More specifically, we adopt the training, validation and test splits used in Eigen et al. (2014) with the pre-processing from Zhou et al. (2017) to remove static frames, which is more suitable for
105
+
106
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Superv.</td><td colspan="4">Lower is Better</td><td colspan="3">Higher is Better</td></tr><tr><td>Abs Rel</td><td>Sq Rel</td><td>RMSE</td><td>RMSEtog</td><td>δ&lt;1.25δ&lt;1.25²</td><td></td><td>δ&lt;1.253</td></tr><tr><td>Garg et al. (2016)</td><td>M</td><td>0.152</td><td>1.226</td><td>5.849</td><td>0.246</td><td>0.784</td><td>0.921</td><td>0.967</td></tr><tr><td>Zou et al. (2018)</td><td>M</td><td>0.150</td><td>1.124</td><td>5.507</td><td>0.223</td><td>0.806</td><td>0.933</td><td>0.973</td></tr><tr><td>Godard et al. (2017)</td><td>M</td><td>0.141</td><td>1.186</td><td>5.677</td><td>0.238</td><td>0.809</td><td>0.928</td><td>0.969</td></tr><tr><td>Zhan et al. (2018)</td><td>M</td><td>0.135</td><td>1.132</td><td>5.585</td><td>0.229</td><td>0.820</td><td>0.933</td><td>0.971</td></tr><tr><td>Godard et al. (2018) (R18)</td><td>M</td><td>0.115</td><td>0.903</td><td>4.863</td><td>0.193</td><td>0.877</td><td>0.959</td><td>0.981</td></tr><tr><td>Godard et al. (2018) (R50)</td><td>M</td><td>0.112</td><td>0.851</td><td>4.754</td><td>0.190</td><td>0.881</td><td>0.960</td><td>0.981</td></tr><tr><td>Guizilini et al. (2019) (MR)</td><td>M</td><td>0.108</td><td>0.727</td><td>4.426</td><td>0.184</td><td>0.885</td><td>0.963</td><td>0.983</td></tr><tr><td>Guizilini et al. (2019) (HR)</td><td>M</td><td>0.104</td><td>0.758</td><td>4.386</td><td>0.182</td><td>0.895</td><td>0.964</td><td>0.982</td></tr><tr><td>Casser et al. (2019)</td><td>S+Inst</td><td>0.141</td><td>1.025</td><td>5.290</td><td>0.215</td><td>0.816</td><td>0.945</td><td>0.979</td></tr><tr><td>Chen et al. (2019)</td><td>S+Sem</td><td>0.118</td><td>0.905</td><td>5.096</td><td>0.211</td><td>0.839</td><td>0.945</td><td>0.977</td></tr><tr><td>Ochs et al. (2019)</td><td>D+Sem</td><td>0.116</td><td>0.945</td><td>4.916</td><td>0.208</td><td>0.861</td><td>0.952</td><td>0.968</td></tr><tr><td>Ours (MR)</td><td>M+Sem</td><td>0.102</td><td>0.698</td><td>4.381</td><td>0.178</td><td>0.896</td><td>0.964</td><td>0.984</td></tr><tr><td>Ours (HR)</td><td>M+Sem</td><td>0.100</td><td>0.761</td><td>4.270</td><td>0.175</td><td>0.902</td><td>0.965</td><td>0.982</td></tr></table>
107
+
108
+ Table 1: Quantitative performance comparison of our proposed architecture on KITTI for depths up to $8 0 \mathrm { m }$ . $M$ refers to methods that train using monocular images, S refers to methods that train using stereo pairs, $D$ refers to methods that use ground-truth depth supervision, Sem refers to methods that include semantic information, and Inst refers to methods that include semantic and instance information. $M R$ indicates $6 4 0 \times 1 9 2$ input images, and $H R$ indicates $1 2 8 0 \mathrm { ~ x ~ } 3 8 4$ input images. Our proposed architecture is able to further improve the current state of the art in self-supervised monocular depth estimation, and outperforms other methods that exploit semantic information (including ground truth labels) by a substantial margin.
109
+
110
+ monocular self-supervised learning. This results in 39810 images for training, 4424 for validation, and 697 for evaluation. Following common practice, we pretrain our depth and pose networks on the CityScapes dataset (Cordts et al., 2016), consisting of 88250 unlabeled images. Unless noted otherwise, input images are downsampled to $6 4 0 \times 1 9 2$ resolution and output inverse depth maps are upsampled to full resolution using bilinear interpolation. Our fixed semantic segmentation network is pretrained on Cityscapes, achieving a mIoU of $7 5 \%$ on the validation set.
111
+
112
+ # 5.2 IMPLEMENTATION DETAILS
113
+
114
+ We implement our models with PyTorch (Paszke et al., 2017) and follow the same training protocols of Guizilini et al. (2019) when optimizing our depth and pose networks. The initial training stage is conducted on the CityScapes dataset for 50 epochs, with a batch size of 4 per GPU and initial depth and pose learning rates of $2 \cdot 1 0 ^ { - 4 }$ and $5 \cdot { \bar { 1 } } 0 ^ { - 4 }$ respectively, that are halved every 20 epochs. Afterwards, the depth and pose networks are fine-tuned on KITTI for 30 epochs, with the same parameters and halving the learning rates after every 12 epochs. This fine-tuning stage includes the proposed architecture, where information from the fixed semantic network, pretrained separately, is used to directly guide the generation of depth features. There is no direct supervision at any stage during depth training, all semantic information is derived from the fixed secondary network.
115
+
116
+ When pretraining the semantic segmentation network, we use a ResNet-50 backbone with Imagenet (Deng et al., 2009) pretrained weights and optimize the network for $4 8 k$ iterations on the CityScapes dataset with a learning rate of 0.01, momentum of 0.9, weight decay of $1 0 ^ { - 4 }$ , and a batch size of 1 per GPU. Random scaling between (0.7, 1.3), random horizontal flipping, and a crop size of $1 0 0 0 \times 2 0 0 0$ are used for data augmentation. We decay the learning rate by a factor of 10 at iterations $3 6 k$ and $4 4 k$ . Once training is complete, the semantic segmentation network is fixed and becomes the only source of semantic information when fine-tuning the depth and pose networks on KITTI.
117
+
118
+ # 5.3 DEPTH ESTIMATION PERFORMANCE
119
+
120
+ Our depth estimation results are summarized in Table 1, where we compare our proposed architecture with other published works. From these results we can see that the introduction of semanticallyguided geometric representation learning further improves upon the current state of the art in selfsupervised monocular depth estimation from Guizilini et al. (2019), which served as our baseline. Our approach also outperforms other methods that leverage semantic information by a substantial margin, even those using ground-truth KITTI semantic segmentation and depth labels during train
121
+
122
+ <table><tr><td rowspan="2">Network</td><td rowspan="2">SEM</td><td rowspan="2">TST</td><td colspan="4">Lower is Better</td><td colspan="2">Higher is Better δ &lt;1.25 δ&lt;1.252 δ&lt; 1.253</td><td rowspan="2">Class-Avg. Abs Rel</td></tr><tr><td>Abs Rel</td><td>Sq Rel RMSE RMSElog</td><td></td><td></td><td></td><td></td></tr><tr><td>ResNet-18</td><td>√</td><td></td><td>0.120 0.117</td><td>0.896 0.854</td><td>4.869 4.714</td><td>0.198 0.191</td><td>0.868 0.957 0.873</td><td>0.981 0.963 0.981</td><td>0.149 0.139</td></tr><tr><td>ResNet-50</td><td>√</td><td></td><td>0.117 0.113</td><td>0.900 0.831</td><td>4.826 4.663</td><td>0.196 0.189</td><td>0.873 0.967 0.878 0.971</td><td>0.980 0.983</td><td>0.144 0.136</td></tr><tr><td>PackNet</td><td>√</td><td>√</td><td>0.108 0.103 0.102</td><td>0.727 0.710 0.698</td><td>4.426 4.301 4.381</td><td>0.184 0.179 0.178</td><td>0.885 0.963 0.895 0.964 0.896 0.963</td><td>0.983 0.984 0.984</td><td>0.132 0.121 0.117</td></tr></table>
123
+
124
+ Table 2: Ablative analysis of our semantic guidance (SEM) and two-stage-training (TST) contributions. The last column indicates class-average Abs. Rel. obtained by averaging all class-specific depth errors in Figure 4, while other columns indicate pixel-average metrics.
125
+
126
+ ing (Ochs et al., 2019). Furthermore, in Figure 5 we also present qualitative results showing the improvements in depth estimation generated by our proposed framework, compared to our baseline. Note how our semantically-guided architecture produces sharper boundaries and better object delineation, especially in structures further away or not clearly distinguishable in the input image.
127
+
128
+ # 5.4 ABLATIVE ANALYSIS
129
+
130
+ # 5.4.1 DIFFERENT DEPTH NETWORKS
131
+
132
+ To better evaluate our main contribution, we provide an ablative analysis showing how it generalizes to different depth networks. To this end, we consider two variations of the widely used ResNet architecture as the encoder for our depth network: ResNet-18 and ResNet-50 (the same pretrained semantic network was used in all experiments). Depth estimation results considering these variations are shown in Table 2, where we can see that our proposed semantically-guided architecture is able to consistently improve the performance of different depth networks, for all considered metrics.
133
+
134
+ # 5.4.2 CLASS-SPECIFIC DEPTH PERFORMANCE
135
+
136
+ To further showcase the benefits of our semantically-guided architecture, we also provide classspecific evaluation metrics, as shown in Figure 4. As we do not have ground-truth semantic segmentation for these images, we use the prediction of the semantic network to bin pixels per predicted category, and evaluate only on those pixels. From these results we can see that our proposed architecture consistently improves depth performance for pixels across all predicted classes, especially those containing fine-grained structures and sharp boundaries, e.g. poles and traffic signs.
137
+
138
+ ![](images/029bba1944c05b59fd31cd1b470c4d6e1b61b263ba0128d9dbf7c9034beaab1f.jpg)
139
+ Figure 4: Class-specific depth evaluation for our proposed architecture (blue), relative to our baseline (red). The rightmost column indicates class-average depth metrics, obtained by averaging all individual classes. The introduction of semantically-guided features, in conjunction with our proposed two-stage training methodology to address the infinite depth problem, consistently improved depth results for all considered classes (lower is better).
140
+
141
+ ![](images/8b4a389f1dbad0e331cbee9e393af3ad825e78c305d86b9334b90a768bca6149.jpg)
142
+ Figure 5: Qualitative results of our proposed architecture. The left, middle, and right columns show respectively input images, baseline predicted depth maps (Guizilini et al., 2019), and the depths maps obtained using our proposed architecture. Our semantic-aware depth network predicts sharper boundaries and fine-grained details on distant objects. The dotted lines indicate class-average errors, obtained by averaging all the class-specific depth errors.
143
+
144
+ We also measure the impact of our two-stage training process, which is expected to address the infinite depth problem in dynamic objects. Although we find the pixel-average difference in performance to not be significant (see Table 2), there is a significant improvement in class-average depth estimation, from 0.121 to 0.117 Abs-Rel. This is because the number of pixels affected by the infinite depth problem is vastly smaller than the total number of pixels. However, when considering class-average depth evaluation, the improvement over classes such as cars (0.200 to 0.177 Abs-Rel) and motorcycles (0.091 to 0.069) becomes statistically significant. This further exemplifies the importance of fine-grained metrics in depth evaluation, so these underlying behaviors can be properly observed and accounted for in the development of new techniques.
145
+
146
+ # 6 CONCLUSION
147
+
148
+ This paper introduces a novel architecture for self-supervised monocular depth estimation that leverages semantic information from a fixed pretrained network to guide the generation of multi-level depth features via pixel-adaptive convolutions. Our monodepth network learns semantic-aware geometric representations that can disambiguate photometric ambiguities in a self-supervised learning structure-from-motion context. Furthermore, we introduce a two-stage training process that resamples training data to overcome a common bias on dynamic objects resulting in predicting them at infinite depths. Our experiments on challenging real-world data shows that our proposed architecture consistently improves the performance of different monodepth architectures, thus establishing a new state of the art in self-supervised monocular depth estimation. Future directions of research include leveraging other sources of guidance (i.e. instance masks, optical flow, surface normals), as well as avenues for self-supervised fine-tuning of the semantic network.
149
+
150
+ # REFERENCES
151
+
152
+ Min Bai, Wenjie Luo, Kaustav Kundu, and Raquel Urtasun. Exploiting semantic information and deep matching for optical flow. In ECCV, 2016. 2
153
+
154
+ Holger Caesar, Varun Bankiti, Alex H. Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuscenes: A multimodal dataset for autonomous driving. CoRR, 2019. 13, 14
155
+
156
+ Vincent Casser, Soeren Pirk, Reza Mahjourian, and Anelia Angelova. Depth prediction without the sensors: Leveraging structure for unsupervised learning from monocular videos. AAAI, 2019. 2, 3, 5, 6
157
+
158
+ Po-Yi Chen, Alexander H. Liu, Yen-Cheng Liu, and Yu-Chiang Frank Wang. Towards scene understanding: Unsupervised monocular depth estimation with semantic-aware representation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1, 2, 6
159
+
160
+ Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network ´ learning by exponential linear units (elus). In ICLR, 2016. 4
161
+
162
+ Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3213–3223, 2016. 6, 12
163
+
164
+ Jia Deng, Wei Dong, Richard Socher, Li jia Li, Kai Li, and Li Fei-fei. Imagenet: A large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2009. 6, 12
165
+
166
+ David Eigen, Christian Puhrsch, and Rob Fergus. Depth map prediction from a single image using a multi-scale deep network. In Advances in neural information processing systems, 2014. 1, 2, 5
167
+
168
+ Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Batmanghelich, and Dacheng Tao. Deep ordinal regression network for monocular depth estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2002–2011, 2018. 2
169
+
170
+ Ravi Garg, Vijay Kumar BG, Gustavo Carneiro, and Ian Reid. Unsupervised cnn for single view depth estimation: Geometry to the rescue. In European Conference on Computer Vision, pp. 740–756. Springer, 2016. 2, 6
171
+
172
+ Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. Vision meets robotics: The kitti dataset. The International Journal of Robotics Research, 32(11):1231–1237, 2013. 1, 5
173
+
174
+ Clement Godard, Oisin Mac Aodha, and Gabriel J Brostow. Unsupervised monocular depth estima- ´ tion with left-right consistency. In CVPR, volume 2, pp. 7, 2017. 2, 3, 6
175
+
176
+ Clement Godard, Oisin Mac Aodha, Michael Firman, and Gabriel J. Brostow. Digging into self-´ supervised monocular depth prediction. arXiv:1806.01260, 2018. 3, 5, 6, 14
177
+
178
+ Vitor Guizilini, Sudeep Pillai, Rares Ambrus, and Adrien Gaidon. Packnet-sfm: 3d packing for self-supervised monocular depth estimation. arXiv preprint arXiv:1905.02693, 2019. 1, 2, 3, 6, 8, 14
179
+
180
+ Fatma Guney and Andreas Geiger. Displets: Resolving stereo ambiguities using object knowledge.¨ In Conference on Computer Vision and Pattern Recognition (CVPR), 2015. 2
181
+
182
+ Xiaoyang Guo, Hongsheng Li, Shuai Yi, Jimmy Ren, and Xiaogang Wang. Learning monocular depth by distilling cross-domain stereo networks. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 484–500, 2018. 1
183
+
184
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. 2
185
+
186
+ Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In Advances in neural information processing systems, pp. 2017–2025, 2015. 2
187
+
188
+ Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7482–7491, 2018. 1
189
+
190
+ Alexander Kirillov, Ross Girshick, Kaiming He, and Piotr Dollar. Panoptic feature pyramid net- ´ works. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6399–6408, 2019. 5
191
+
192
+ Maria Klodt and Andrea Vedaldi. Supervising the new with the old: Learning sfm from sfm. In European Conference on Computer Vision, pp. 713–728. Springer, 2018. 2
193
+
194
+ Jae-Han Lee, Minhyeok Heo, Kyung-Rae Kim, and Chang-Su Kim. Single-image depth estimation based on fourier domain analysis. In International Conference on Computer Vision and Pattern Recognition (CVPR), pp. 330–339, 2018. 2
195
+
196
+ Kuan-Hui Lee, German Ros, Jie Li, and Adrien Gaidon. Spigan: Privileged adversarial learning from simulation. In ICLR, 2019. 1
197
+
198
+ Bo Li, Chunhua Shen, Yuchao Dai, Anton Van, and Mingyi He. Depth and surface normal estimation from monocular images using regression on deep features and hierarchical crfs. In International Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1119–1127, 2015. 2
199
+
200
+ Jie Li, Allan Raventos, Arjun Bhargava, Takaaki Tagawa, and Adrien Gaidon. Learning to fuse things and stuff. arXiv preprint arXiv:1812.01192, 2018. 5
201
+
202
+ Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE TPAMI, 40(12):2935–2947, 2017. 3
203
+
204
+ Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie.´ Feature pyramid networks for object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2117–2125, 2017. 5
205
+
206
+ Reza Mahjourian, Martin Wicke, and Anelia Angelova. Unsupervised learning of depth and egomotion from monocular video using 3d geometric constraints. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5667–5675, 2018. 2
207
+
208
+ Fabian Manhardt, Wadim Kehl, and Adrien Gaidon. Roi-10d: Monocular lifting of 2d detection to 6d pose and metric shape. International Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1
209
+
210
+ Jeff Michels, Ashutosh Saxena, and Andrew Y Ng. High speed obstacle avoidance using monocular vision and reinforcement learning. In Proceedings of the 22nd international conference on Machine learning, pp. 593–600. ACM, 2005. 1
211
+
212
+ Matthias Ochs, Adrian Kretz, and Rudolf Mester. Sdnet: Semantically guided depth estimation network. In arXiv:1907.10659, 2019. 1, 2, 6, 7
213
+
214
+ Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. In NIPS-W, 2017. 6
215
+
216
+ Sudeep Pillai, Rares Ambrus, and Adrien Gaidon. Superdepth: Self-supervised, super-resolved monocular depth estimation. In Proceedings of the IEEE International Conference on Robotics and Automation (ICRA), 2019. 1
217
+
218
+ Lorenzo Porzi, Samuel Rota Bulo, Aleksander Colovic, and Peter Kontschieder. Seamless scene segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8277–8286, 2019. 5
219
+
220
+ Xiaojuan Qi, Renjie Liao, Zhengzhe Liu, Raquel Urtasun, and Jiaya Jia. Geonet: Geometric neural network for joint depth and surface normal estimation. In International Conference on Computer Vision and Pattern Recognition (CVPR), pp. 283–291, 2018. 2
221
+
222
+ Hang Su, Varun Jampani, Deqing Sun, Orazio Gallo, Erik Learned-Miller, and Jan Kautz. Pixeladaptive convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2, 4
223
+
224
+ Benjamin Ummenhofer, Huizhong Zhou, Jonas Uhrig, Nikolaus Mayer, Eddy Ilg, Alexey Dosovitskiy, and Thomas Brox. Demon: Depth and motion network for learning monocular stereo. In IEEE Conference on computer vision and pattern recognition (CVPR), volume 5, pp. 6, 2017. 2
225
+
226
+ Chaoyang Wang, Jose Miguel Buenaposada, Rui Zhu, and Simon Lucey. Learning depth from ´ monocular videos using direct methods. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2022–2030, 2018. 2
227
+
228
+ Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 2004. 2, 3
229
+
230
+ Yuxin Wu and Kaiming He. Group normalization. In Proceedings of the 15th European Conference on Computer Vision (ECCV), pp. 3–19, 2018. 4
231
+
232
+ Yuwen Xiong, Renjie Liao, Hengshuang Zhao, Rui Hu, Min Bai, Ersin Yumer, and Raquel Urtasun. Upsnet: A unified panoptic segmentation network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8818–8826, 2019. 5
233
+
234
+ Nan Yang, Rui Wang, Jorg St ¨ uckler, and Daniel Cremers. Deep virtual stereo odometry: Leveraging ¨ deep depth prediction for monocular direct sparse odometry. arXiv:1807.02570, 2018. 2
235
+
236
+ Zhenheng Yang, Peng Wang, Wei Xu, Liang Zhao, and Ramakant Nevatia. Unsupervised learning of geometry with edge-aware depth-normal consistency. arXiv preprint arXiv:1711.03665, 2017. 1
237
+
238
+ Zhichao Yin and Jianping Shi. Geonet: Unsupervised learning of dense depth, optical flow and camera pose. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), volume 2, 2018. 2
239
+
240
+ Huangying Zhan, Ravi Garg, Chamara Saroj Weerasekera, Kejie Li, Harsh Agarwal, and Ian Reid. Unsupervised learning of monocular depth estimation and visual odometry with deep feature reconstruction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 340–349, 2018. 6
241
+
242
+ Tinghui Zhou, Matthew Brown, Noah Snavely, and David G Lowe. Unsupervised learning of depth and ego-motion from video. In CVPR, volume 2, pp. 7, 2017. 2, 3, 5
243
+
244
+ Yuliang Zou, Zelun Luo, and Jia-Bin Huang. Df-net: Unsupervised joint learning of depth and flow using cross-task consistency. In European Conference on Computer Vision, 2018. 1, 2, 3, 6
245
+
246
+ # A PRE-TRAINING THE SEMANTIC SEGMENTATION NETWORK
247
+
248
+ The introduction of a semantic segmentation network to the depth estimation task increases the depth estimation performance, however it also increases model complexity (e.g. number of trainable parameters). To investigate that the increased performance for the depth estimation task is indeed due to the semantic features encoded in the secondary network, we perform an in-depth analysis (summarized in Table 3) where we explore the impact of pre-training the semantic segmentation network before it is used to guide the generation of depth features. From these results we can see that the presence of semantic information encoded in the secondary network indeed leads to an increase in performance, and that fine-tuning this secondary network for the speficic task of depth estimation actually decreases performance.
249
+
250
+ In the first two rows an untrained semantic network is utilized, with only its encoder initialized from ImageNet (Deng et al., 2009) weights. Two different scenarios are explored: in the first one (D) only the depth network is fine-tuned in a self-supervised fashion, while in $\mathbf { D + S }$ both networks are fine-tuned together in the same way. As expected, using untrained features as guidance leads to significantly worse results, since there is no structure encoded in the secondary network and the primary network needs to learn to filter out all this spurious information. When both networks are fine-tuned simultaneously, results improve because now the added complexity from the secondary network can be leveraged for the task of depth estimation, however there is still no improvement over the baseline.
251
+
252
+ Next, the semantic network was pre-trained on only half of the CityScapes (Cordts et al., 2016) dataset (samples chosen randomly), leading to a worse semantic segmentation performance (validation mIoU of around $7 0 \%$ vs. $\dot { 7 } 5 \%$ for the fully trained one). This partial pre-training stage was enough to enable the transfer of useful information between networks, leading to improvements over the baseline. Interestingly, fine-tuning both networks for the task of depth estimation actually hurt performance this time, which we attribute to forgetting the information contained in the secondary network, as both networks are optimized for the depth task. When the semantic network is pretrained with all of CityScapes (last two rows), these effects are magnified, with fine-tuning only the depth network leading to our best reported performance (Table 1) and fine-tuning both networks again leading to results similar to the baseline.
253
+
254
+ Table 3: Analysis of the impact of pre-training the semantic segmentation network. On the PreTrain column, $I$ indicates ImageNet (Deng et al., 2009) pretraining and CS indicates CityScapes (Cordts et al., 2016) pretraining, with $1 / 2$ indicating the use of only half the dataset (samples chosen randomly). In the Fine-Tune column, $D$ indicates fine-tuning the depth network and $s$ indicates finetuning the semantic network (note that this is a self-supervised fine-tuning for the depth task, using the objective described in Section 3.1).
255
+
256
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Pre-Train</td><td rowspan="2">Fine-Tune</td><td colspan="4">Lower is Better</td><td colspan="3">Higher is Better</td></tr><tr><td>Abs Rel</td><td>Sq Rel</td><td>RMSE</td><td>RMSElog</td><td>δ &lt;1.25 δ&lt;1.252</td><td></td><td>δ&lt;1.253</td></tr><tr><td>Baseline</td><td></td><td>D</td><td>0.108</td><td>0.727</td><td>4.426</td><td>0.184</td><td>0.885</td><td>0.963</td><td>0.983</td></tr><tr><td rowspan="6">Proposed</td><td>I</td><td>D+S</td><td>0.116</td><td>0.847</td><td>4.751</td><td>0.192</td><td>0.879</td><td>0.960</td><td>0.981</td></tr><tr><td>I</td><td>D</td><td>0.197</td><td>1.323</td><td>6.114</td><td>0.265</td><td>0.776</td><td>0.918</td><td>0.966</td></tr><tr><td>CS (1/2)</td><td>D+S</td><td>0.109</td><td>0.737</td><td>4.389</td><td>0.185</td><td>0.884</td><td>0.962</td><td>0.982</td></tr><tr><td>CS (1/2)</td><td>D</td><td>0.104</td><td>0.716</td><td>4.322</td><td>0.180</td><td>0.893</td><td>0.964</td><td>0.984</td></tr><tr><td>Cs</td><td>D+S</td><td>0.107</td><td>0.741</td><td>4.407</td><td>0.183</td><td>0.883</td><td>0.963</td><td>0.983</td></tr><tr><td>Cs</td><td>D</td><td>0.102</td><td>0.698</td><td>4.381</td><td>0.178</td><td>0.896</td><td>0.964</td><td>0.984</td></tr></table>
257
+
258
+ # B UNCERTAINTY AND GENERALIZATION TO DIFFERENT OBJECTS
259
+
260
+ In a self-supervised setting, increasing the number of unlabeled videos used for depth training is expected to lead to an increasing specialization away from the domain in which the semantic network was pre-trained. This might result in harmful guidance if our method is not robust to this gap. However, our approach does not use semantic predictions directly, but rather the decoded features of the semantic network themselves, which represent general appearance information that should be more robust to this domain gap. To validate our hypothesis, we further explore the impact of erroneous semantic information in the performance of our proposed semantically-guided depth framework. In Figure 6 we present qualitative results highlighting situations in which our pretrained semantic network failed to generate correct semantic predictions for certain objects in the scene, and yet our proposed framework was still able to properly recover depth values for that portion of the environment. These exemplify possible scenarios for erroneous semantic prediction.
261
+
262
+ • Imprecise boundaries: in the first row, we can see that the semantic segmentation network does not correctly detect the traffic sign, yet the semantically-guided depth network predicts its shape and depth accurately.
263
+ • Wrong classification: in the second row, the truck was mistakenly classified as partially “road” and “building”, however our semantically-guided depth network was still able to properly recover its overall shape with sharp delineation that was not available from its semantic contour. A similar scenario happens in the same image, with “fence” being partially labeled as “bicycle”.
264
+ • Missing ontology: there is no “trash can” class on the CityScapes ontology, however in the third row our semantically-guided depth network was able to correctly reconstruct such object even though it was classified as “fence”, similarly to its surroundings.
265
+ • Object Hallucination: in the fourth row, the contour of a “person” was erroneously introduced in the image and correctly removed by our semantically-guided framework.
266
+
267
+ These examples are evidence that our proposed framework is able to reason over the uncertainty inherent to semantic classification, leveraging this information when accurate to achieve the results reported in this paper, but also discarding it if necessary to generate a better reconstruction according to the self-supervised photometric loss.
268
+
269
+ ![](images/1571107d15766292cb50733ff1a095273dd604cd102c3c0235ac0a84b6b5dd4e.jpg)
270
+ Figure 6: Examples of erroneous semantic predictions that still led to accurate depth predictions using our proposed semantically-guided depth framework.
271
+
272
+ # C GENERALIZATION TO DIFFERENT DATASETS
273
+
274
+ In the previous sections, we show that our proposed framework is robust to a degraded semantic network, both by pretraining the semantic network with fewer annotated labels (Appendix A) and also by providing evidence that the depth network is able to reason over erroneous predictions to still generate accurate reconstructions (Appendix B). We now go one step further and analyze how our proposed semantically-guided framework generalizes to a dataset that was used neither during pre-training nor for fine-tuning. To this end, we evaluate our KITTI depth model on the recently released NuScenes dataset (Caesar et al., 2019). The official NuScenes validation split is used, containing 6019 images from the front camera with ground-truth depth maps generated by LiDAR reprojection. Results presented in Table 4 provide additional evidence that our method indeed results in generalization improvements, even on significantly different data from different platforms
275
+
276
+ and environments (Karlsruhe, Germany for KITTI vs Boston, USA and Singapore for NuScenes), outperforming the state of the art methods and our baseline (Guizilini et al., 2019).
277
+ Table 4: Generalization capability of different networks, trained on both KITTI and CityScapes datasets and evaluated on the NuScenes (Caesar et al., 2019) dataset. Our proposed semanticallyguided architecture is able to further improve upon the baseline from Guizilini et al. (2019), which only used unlabeled image sequences for self-supervised depth training.
278
+
279
+ <table><tr><td>Method</td><td>Abs Rel</td><td>Sq Rel</td><td>RMSE</td><td>RMSElog</td><td></td><td>δ&lt;1.25δ&lt;1.25²</td><td>δ&lt;1.253</td></tr><tr><td>Godard et al. (2018) (R18)</td><td>0.212</td><td>1.918</td><td>7.958</td><td>0.323</td><td>0.674</td><td>0.898</td><td>0.954</td></tr><tr><td>Godard et al. (2018) (R50)</td><td>0.210</td><td>2.017</td><td>8.111</td><td>0.328</td><td>0.697</td><td>0.903</td><td>0.960</td></tr><tr><td>Guizilini et al. (2019) (MR)</td><td>0.187</td><td>1.852</td><td>7.636</td><td>0.289</td><td>0.742</td><td>0.917</td><td>0.961</td></tr><tr><td>Ours (MR)</td><td>0.181</td><td>1.505</td><td>7.237</td><td>0.271</td><td>0.765</td><td>0.931</td><td>0.969</td></tr></table>
parse/train/ByxT7TNFvH/ByxT7TNFvH_content_list.json ADDED
@@ -0,0 +1,1495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SEMANTICALLY-GUIDED REPRESENTATION LEARNING FOR SELF-SUPERVISED MONOCULAR DEPTH ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 820,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Vitor Guizilini1 Rui Hou1,2 Jie Li1 Rares, Ambrus, 1 Adrien Gaidon1 ",
17
+ "bbox": [
18
+ 241,
19
+ 167,
20
+ 759,
21
+ 185
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1Toyota Research Institute (TRI) {first.last}@tri.global ",
28
+ "bbox": [
29
+ 259,
30
+ 189,
31
+ 472,
32
+ 218
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "2University of Michigan rayhou@umich.edu ",
39
+ "bbox": [
40
+ 552,
41
+ 189,
42
+ 712,
43
+ 217
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "ABSTRACT ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 452,
53
+ 243,
54
+ 544,
55
+ 258
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Self-supervised learning is showing great promise for monocular depth estimation, using geometry as the only source of supervision. Depth networks are indeed capable of learning representations that relate visual appearance to 3D properties by implicitly leveraging category-level patterns. In this work we investigate how to leverage more directly this semantic structure to guide geometric representation learning, while remaining in the self-supervised regime. Instead of using semantic labels and proxy losses in a multi-task approach, we propose a new architecture leveraging fixed pretrained semantic segmentation networks to guide self-supervised representation learning via pixel-adaptive convolutions. Furthermore, we propose a two-stage training process to overcome a common semantic bias on dynamic objects via resampling. Our method improves upon the state of the art for self-supervised monocular depth prediction over all pixels, fine-grained details, and per semantic categories.† ",
62
+ "bbox": [
63
+ 233,
64
+ 273,
65
+ 764,
66
+ 454
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 467,
77
+ 336,
78
+ 482
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Accurate depth estimation is a key problem in computer vision and robotics, as it is instrumental for perception, navigation, and planning. Although perceiving depth typically requires dedicated sensors (e.g., stereo rigs, LiDAR), learning to predict depth from monocular imagery can provide useful cues for a wide array of tasks (Michels et al., 2005; Kendall et al., 2018; Manhardt et al., 2019; Lee et al., 2019). Going beyond supervised learning from direct measurements (Eigen et al., 2014), self-supervised methods exploit geometry as supervision (Guo et al., 2018; Pillai et al., 2019; Zou et al., 2018; Yang et al., 2017), therefore having the potential to leverage large scale datasets of raw videos to outperform supervised methods (Guizilini et al., 2019). ",
85
+ "bbox": [
86
+ 174,
87
+ 497,
88
+ 825,
89
+ 608
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Although depth from a single image is an ill-posed inverse problem, monocular depth networks are able to make accurate predictions by learning representations connecting the appearance of scenes and objects with their geometry in Euclidean 3D space. Due to perspective, there is indeed an equivariance relationship between the visual appearance of an object in 2D and its depth, when conditioned on the object’s category. For instance, a car 25 meters away appears smaller (on the image plane) than a car only 5 meters away but bigger than a truck 50 meters away. Current depth estimation methods either do not leverage this structure explicitly or rely on strong semantic supervision to jointly optimize geometric consistency and a semantic proxy task in a multi-task objective (Ochs et al., 2019; Chen et al., 2019), thus departing from the self-supervised paradigm. ",
96
+ "bbox": [
97
+ 173,
98
+ 616,
99
+ 825,
100
+ 741
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In this paper, we explore how we can leverage semantic information to improve monocular depth prediction in a self-supervised way. Our main contribution is a novel architecture that uses a fixed pre-trained semantic segmentation network to guide geometric representation learning in a selfsupervised monocular depth network. In contrast to standard convolutional layers, our architecture uses pixel-adaptive convolutions (Su et al., 2019) to learn semantic-dependent representations that can better capture the aforementioned equivariance property. Leveraging semantics may nonetheless introduce category-specific biases. Our second contribution is a two-stage training process where we automatically detect the presence of a common bias on dynamic objects (projections at infinity) and resample the training set to de-bias it. Our method improves upon the state of the art in selfsupervised monocular depth estimation on the standard KITTI benchmark (Geiger et al., 2013), both on average over pixels, over classes, and for dynamic categories in particular. ",
107
+ "bbox": [
108
+ 174,
109
+ 748,
110
+ 825,
111
+ 901
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/b09c90637e486163bce4d7333340755790cf27ff41a391d503abe5d3014d643d.jpg",
118
+ "image_caption": [
119
+ "Figure 1: Example of a pointcloud generated using our proposed semantically-guided architecture, colored by RGB values from the input image and corresponding predicted semantic labels. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 178,
124
+ 99,
125
+ 820,
126
+ 238
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "2 RELATED WORK ",
133
+ "text_level": 1,
134
+ "bbox": [
135
+ 176,
136
+ 306,
137
+ 344,
138
+ 323
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "Since the seminal work of Eigen et al. (2014), substantial progress has been done to improve the accuracy of supervised depth estimation from monocular images, including the use of Conditional Random Fields (CRFs) (Li et al., 2015), joint optimization of surface normals (Qi et al., 2018), fusion of multiple depth maps (Lee et al., 2018), and ordinal classification (Fu et al., 2018). Consequently, as supervised techniques for depth estimation advanced rapidly, the availability of largescale depth labels became a bottleneck, especially for outdoor applications. Garg et al. (2016) and Godard et al. (2017) provided an alternative self-supervised strategy involving stereo cameras, where Spatial Transformer Networks (Jaderberg et al., 2015) can be used to geometrically warp, in a differentiable way, the right image into a synthesized left image, using the predicted depth from the left image. The photometric consistency loss between the resulting synthesized and original left images can then be minimized in an end-to-end manner using a Structural Similarity term (Wang et al., 2004) and additional depth regularization terms. Following Godard et al. (2017) and Ummenhofer et al. (2017), Zhou et al. (2017) generalized this to the purely monocular setting, where a depth and a pose networks are simultaneously learned from unlabeled monocular videos. Rapid progress in terms of architectures and objective functions (Yin & Shi, 2018; Mahjourian et al., 2018; Casser et al., 2019; Zou et al., 2018; Klodt & Vedaldi, 2018; Wang et al., 2018; Yang et al., 2018) have since then turned monocular depth estimation into one of the most successful applications of self-supervised learning, even outperforming supervised methods (Guizilini et al., 2019). ",
145
+ "bbox": [
146
+ 174,
147
+ 339,
148
+ 825,
149
+ 590
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "The introduction of semantic information to improve depth estimates has been explored in prior works, and can be broadly divided into two categories. The first one uses semantic (or instance) information to mask out or properly model dynamic portions of the image, which are not accounted for in the photometric loss calculation. Guney & Geiger ¨ (2015) leveraged object knowledge in a Markov Random Field (MRF) to resolve stereo ambiguities, while Bai et al. (2016) used a conjunction of instance-level segmentation and epipolar constraints to reduce uncertainty in optical flow estimation. Casser et al. (2019) used instance-level masks to estimate motion models for different objects in the environment, and account for their external motion in the resulting warped image. The second category attempts to learn both tasks in a single framework, and uses consistency losses to ensure that both are optimized simultaneously and regularize each other, so the information contained in one task can be transferred to improve the other. For instance, Ochs et al. (2019) estimated depth with an ordinal classification loss similar to the standard semantic classification loss, and used empirical weighting to combine them into a single loss for optimization. Similarly, Chen et al. (2019) used a unified conditional decoder that can generate either semantic or depth estimates, and both outputs are used to generate a series of losses also combined using empirical weighting to generate the final loss to be optimized. ",
156
+ "bbox": [
157
+ 174,
158
+ 597,
159
+ 825,
160
+ 819
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "Our approach focuses instead on representation learning, exploiting semantic features into the selfsupervised depth network by using a pretrained semantic segmentation network to guide the generation of depth features. This is done using pixel-adaptive convolutions, recently proposed in Su et al. (2019) and applied to tasks such as depth upsampling using RGB images for feature guidance. We show that different depth networks can be readily modified to leverage this semantic feature guidance, ranging from widely used ResNets (He et al., 2016) to the current state-of-the-art PackNet (Guizilini et al., 2019), with a consistent gain in performance across these architectures. ",
167
+ "bbox": [
168
+ 174,
169
+ 827,
170
+ 825,
171
+ 924
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "3 SELF-SUPERVISED STRUCTURE-FROM-MOTION ",
178
+ "text_level": 1,
179
+ "bbox": [
180
+ 174,
181
+ 102,
182
+ 604,
183
+ 118
184
+ ],
185
+ "page_idx": 2
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "Our semantically-guided architecture is developed within a self-supervised monocular depth estimation setting, commonly known as structure-from-motion (SfM). Learning in a self-supervised structure-from-motion setting requires two networks: a monocular depth model $f _ { D } : I D$ , that outputs a depth prediction $\\hat { D } = f _ { D } ( I ( p ) )$ for every pixel $p$ in the target image $I$ ; and a monocular ego-motion estimator $f _ { \\mathbf { x } } : ( I _ { t } , I _ { S } ) \\to \\mathbf { x } _ { t \\to S }$ , that predicts the $6 \\mathrm { D o F }$ transformations for all $s \\in S$ given by $\\mathbf { x } _ { t s } = ( \\mathbf { \\Sigma } _ { \\mathbf { 0 } } ^ { \\mathbf { R } \\textbf { t } } ) \\in \\mathbf { S } \\mathbf { E } ( 3 )$ between the target image $I _ { t }$ and a set of temporal context source images $I _ { s } \\in I _ { S }$ . In all reported experiments we use $I _ { t - 1 }$ and $I _ { t + 1 }$ as source images. ",
190
+ "bbox": [
191
+ 173,
192
+ 132,
193
+ 825,
194
+ 233
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "3.1 THE SELF-SUPERVISED OBJECTIVE LOSS ",
201
+ "text_level": 1,
202
+ "bbox": [
203
+ 173,
204
+ 248,
205
+ 503,
206
+ 263
207
+ ],
208
+ "page_idx": 2
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "We train the depth and pose networks simultaneously, using the same protocols and losses as described in Guizilini et al. (2019). Our self-supervised objective loss consists of an appearance matching term ${ \\mathcal { L } } _ { p }$ that is imposed between the synthesized $\\bar { \\hat { I } } _ { t }$ and original $I _ { t }$ target images, and a depth regularization term $\\mathcal { L } _ { s }$ that ensures edge-aware smoothing in the depth estimates $\\hat { D } _ { t }$ . The final objective loss is averaged per pixel, pyramid scale and image batch, and is defined as: ",
213
+ "bbox": [
214
+ 173,
215
+ 273,
216
+ 825,
217
+ 349
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "equation",
223
+ "img_path": "images/761f2abe68dfa81b034447e742baf1132ea0810702d321c69fdb07bf013cb13a.jpg",
224
+ "text": "$$\n\\mathcal { L } ( I _ { t } , \\hat { I } _ { t } ) = \\mathcal { L } _ { p } ( I _ { t } , \\hat { I } _ { t } ) + \\lambda _ { 1 } \\mathcal { L } _ { s } ( \\hat { D } _ { t } )\n$$",
225
+ "text_format": "latex",
226
+ "bbox": [
227
+ 379,
228
+ 352,
229
+ 619,
230
+ 371
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "where $\\lambda _ { 1 }$ is a weighting coefficient between the photometric ${ \\mathcal { L } } _ { p }$ and depth smoothness $\\mathcal { L } _ { s }$ loss terms. Following Godard et al. (2017) and Zhou et al. (2017), the similarity between synthesized $\\hat { I } _ { t }$ and original $I _ { t }$ target images is estimated using a Structural Similarity (SSIM) term (Wang et al., 2004) combined with an L1 loss term, inducing the following overall photometric loss: ",
237
+ "bbox": [
238
+ 173,
239
+ 373,
240
+ 825,
241
+ 433
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "equation",
247
+ "img_path": "images/f2a66c686ee12d86d751182aa0618de9112625ef825ac1c804f306732f83ea01.jpg",
248
+ "text": "$$\n\\mathcal { L } _ { p } ( I _ { t } , \\hat { I } _ { t } ) = \\alpha \\frac { 1 - \\mathrm { S S I M } ( I _ { t } , \\hat { I } _ { t } ) } { 2 } + ( 1 - \\alpha ) \\parallel I _ { t } - \\hat { I } _ { t } \\parallel\n$$",
249
+ "text_format": "latex",
250
+ "bbox": [
251
+ 320,
252
+ 435,
253
+ 678,
254
+ 468
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "In order to regularize the depth in low gradient regions, we incorporate an edge-aware term similar to Godard et al. (2017). This loss is weighted for each of the pyramid levels, decaying by a factor of 2 on each downsampling, starting with a weight of 1 for the $0 ^ { \\mathrm { { i } \\mathrm { { \\bar { h } } } } }$ pyramid level. ",
261
+ "bbox": [
262
+ 174,
263
+ 469,
264
+ 825,
265
+ 512
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "equation",
271
+ "img_path": "images/bdd6a57a38eb218b5f7baba4a91ebe102970a1a99333a6272f6df20bd96d94e2.jpg",
272
+ "text": "$$\n\\mathcal { L } _ { s } ( \\hat { D } _ { t } ) = | \\delta _ { x } \\hat { D } _ { t } | e ^ { - | \\delta _ { x } I _ { t } | } + | \\delta _ { y } \\hat { D } _ { t } | e ^ { - | \\delta _ { y } I _ { t } | }\n$$",
273
+ "text_format": "latex",
274
+ "bbox": [
275
+ 356,
276
+ 515,
277
+ 640,
278
+ 535
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "We also incorporate some of the insights introduced in Godard et al. (2018), namely auto-masking, minimum reprojection error, and inverse depth map upsampling to further improve depth estimation performance in our self-supervised monocular setting. ",
285
+ "bbox": [
286
+ 174,
287
+ 536,
288
+ 825,
289
+ 579
290
+ ],
291
+ "page_idx": 2
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "3.2 DEPTH AND POSE NETWORKS ",
296
+ "text_level": 1,
297
+ "bbox": [
298
+ 176,
299
+ 594,
300
+ 423,
301
+ 609
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "Our baseline depth and pose networks are based on the PackNet architecture introduced by Guizilini et al. (2019), which proposes novel packing and unpacking blocks to respectively downsample and upsample feature maps during the encoding and decoding stages. This network was selected due to its state-of-the-art performance in the task of self-supervised monocular depth estimation, so we can analyze if our proposed architecture is capable of further improving the current state-of-the-art. However, there are no restrictions as to which models our proposed semantically-guided architecture can be applied to, and in Section 5.4 we study its application to different depth networks. ",
308
+ "bbox": [
309
+ 173,
310
+ 619,
311
+ 826,
312
+ 719
313
+ ],
314
+ "page_idx": 2
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "4 SEMANTICALLY-GUIDED GEOMETRIC REPRESENTATION LEARNING ",
319
+ "text_level": 1,
320
+ "bbox": [
321
+ 171,
322
+ 737,
323
+ 769,
324
+ 755
325
+ ],
326
+ "page_idx": 2
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "In this section, we describe our method to inject semantic information into a self-supervised depth network via its augmentation with semantic-aware convolutions. Our proposed architecture is depicted in Figure 2 and is composed of two networks: a primary one, responsible for the generation of depth predictions $\\hat { D } = f _ { D } ( I ( p ) )$ ; and a secondary one, capable of producing semantic predictions. Only the first network is optimized during self-supervised learning; the semantic network is initialized from pretrained weights and is not further optimized. This is in contrast to the common practice of supervised (ImageNet) pretraining of depth encoders (Godard et al., 2018; Casser et al., 2019; Zou et al., 2018): here instead of fine-tuning from pre-trained weights, we preserve these secondary weights to guide the feature learning process of the primary depth network. Our approach also differs from learning without forgetting (Li & Hoiem, 2017) by leveraging fixed intermediate feature representations as a way to maintain consistent semantic guidance throughout training. ",
331
+ "bbox": [
332
+ 173,
333
+ 767,
334
+ 825,
335
+ 924
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "image",
341
+ "img_path": "images/768e7a4db114cab117418b58a69ddf5a06d6900d9c4ab615ba74d01856d69ab0.jpg",
342
+ "image_caption": [
343
+ "Figure 2: Diagram of our proposed architecture for self-supervised monocular depth estimation with semantically-guided feature learning. The semantic network is fixed and initialized from pretrained weights, while the depth network is trained end-to-end in a self-supervised way, including pixel-adaptive convolutions (Guidance) on its decoder to learn semantic-dependent geometric features. "
344
+ ],
345
+ "image_footnote": [],
346
+ "bbox": [
347
+ 205,
348
+ 92,
349
+ 790,
350
+ 251
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "4.1 SEMANTICALLY-GUIDED DEPTH FEATURES ",
357
+ "text_level": 1,
358
+ "bbox": [
359
+ 174,
360
+ 347,
361
+ 517,
362
+ 361
363
+ ],
364
+ "page_idx": 3
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "We leverage the information from the pretrained semantic network in the depth network through the use of pixel-adaptive convolutions (Su et al., 2019). They were recently proposed to address some limitations inherent to the standard convolution operation, namely its translation invariance making it content-agnostic. While this significantly reduces the number of parameters of the resulting network, this might also lead to sub-optimal solutions under certain conditions important for geometric representation learning. For example, spatially-shared filters globally average the loss gradients over the entire image, forcing the network to learn weights that cannot leverage location-specific information beyond their limited receptive fields. Content-agnostic filters are unable to distinguish between different pixels that are visually similar (i.e. dark areas due to shadows or black objects) or generalize to similar objects that are visually different (i.e. cars with varying colors). In this work, we use pixel-adaptive convolutions to produce semantic-aware depth features, where the fixed information encoded in the semantic network is used to disambiguate geometric representations for the generation of multi-level depth features. ",
369
+ "bbox": [
370
+ 174,
371
+ 372,
372
+ 825,
373
+ 553
374
+ ],
375
+ "page_idx": 3
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "As shown in Figure 2, we extract multi-level feature maps from the semantic network. For each feature map, we apply a $3 \\times 3$ and a $1 \\times 1$ convolutional layer followed by Group Normalization (Wu & He, 2018) and ELU non-linearities (Clevert et al., 2016). These processed semantic feature maps are then used as guidance on their respective pixel-adaptive convolutional layers, following the formulation proposed in $\\mathrm { S u }$ et al. (2019): ",
380
+ "bbox": [
381
+ 173,
382
+ 559,
383
+ 825,
384
+ 630
385
+ ],
386
+ "page_idx": 3
387
+ },
388
+ {
389
+ "type": "equation",
390
+ "img_path": "images/f3fef7cb20207b1c3ef03f527c9aea2361576831a29f017ee6708df9c24376ac.jpg",
391
+ "text": "$$\n\\mathbf { v } _ { i } ^ { \\prime } = \\sum _ { j \\in \\Omega ( i ) } K ( \\mathbf { f } _ { i } , \\mathbf { f } _ { j } ) \\mathbf { W } [ \\mathbf { p } _ { i } - \\mathbf { p } _ { j } ] \\mathbf { v } _ { j } + \\mathbf { b }\n$$",
392
+ "text_format": "latex",
393
+ "bbox": [
394
+ 369,
395
+ 633,
396
+ 629,
397
+ 670
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "In the above equation, $\\mathbf { f } \\in \\mathcal { R } ^ { D }$ are processed features from the semantic network that will serve to guide the pixel-adaptive convolutions from the depth network, $\\mathbf { p } = ( x , y ) ^ { T }$ are pixel coordinates, with $[ { \\bf p } _ { i } - { \\bf p } _ { j } ]$ denoting 2D spatial offsets between pixels, $\\mathbf { W } _ { k \\times k }$ are convolutional weights with kernel size $k , \\check { \\Omega } _ { i }$ defines a $k \\times k$ convolutional window around $i$ , $\\mathbf { v }$ is the input signal to be convolved, and $\\mathbf { b } \\in \\mathcal { R } ^ { 1 }$ is a bias term. $K$ is the kernel used to calculate the correlation between guiding features, here chosen to be the standard Gaussian kernel: ",
404
+ "bbox": [
405
+ 173,
406
+ 674,
407
+ 825,
408
+ 758
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "equation",
414
+ "img_path": "images/342bdf167552c4191233cf0175ff696f26e046329d7bb2de0a3adfc72f586e04.jpg",
415
+ "text": "$$\nK ( \\mathbf { f } _ { i } , \\mathbf { f } _ { j } ) = \\exp \\left( - \\frac { 1 } { 2 } ( \\mathbf { f } _ { i } - \\mathbf { f } _ { j } ) ^ { T } \\Sigma _ { i j } ^ { - 1 } ( \\mathbf { f } _ { i } - \\mathbf { f } _ { j } ) \\right)\n$$",
416
+ "text_format": "latex",
417
+ "bbox": [
418
+ 343,
419
+ 760,
420
+ 653,
421
+ 795
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "where $\\Sigma _ { i j }$ is the covariance matrix between features $\\mathbf { f } _ { i }$ and $\\mathbf { f } _ { j }$ , here chosen to be a diagonal matrix $\\sigma ^ { 2 } \\cdot I _ { D }$ , with $\\sigma$ as an extra learnable parameter for each convolutional filter. These kernel evaluations can be seen as a secondary set of weights applied to the standard convolutional weights, changing their impact on the resulting depth features depending on the content stored in the guiding semantic features. For example, the information contained in depth features pertaining to the sky should not be used to generate depth features describing a pedestrian, and this behavior is now captured as a larger distance between their corresponding semantic features, which in turn produces smaller weights for that particular convolutional filter. Note that the standard convolution can be considered a special case of the pixel-adaptive convolution, where $\\forall ~ i j , K ( \\mathbf { f } _ { i } , \\mathbf { f } _ { j } ) ~ = ~ 1$ . ",
428
+ "bbox": [
429
+ 173,
430
+ 796,
431
+ 825,
432
+ 925
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "image",
438
+ "img_path": "images/c1133bd34f68068e6cc07f5e3946ece1ab608146cce40ed0d3a8c96d349ad49c.jpg",
439
+ "image_caption": [
440
+ "Figure 3: Qualitative results of our proposed two-stage training to address the infinite depth problem. Top images were obtained evaluating the first-stage depth network, and bottom images were obtained using the second-stage depth network, trained with a filtered dataset. "
441
+ ],
442
+ "image_footnote": [],
443
+ "bbox": [
444
+ 186,
445
+ 95,
446
+ 812,
447
+ 193
448
+ ],
449
+ "page_idx": 4
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "4.2 SEMANTIC GUIDANCE NETWORK ",
454
+ "text_level": 1,
455
+ "bbox": [
456
+ 178,
457
+ 266,
458
+ 446,
459
+ 280
460
+ ],
461
+ "page_idx": 4
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "As the secondary network used to provide semantic guidance for the generation of depth features, we use a Feature Pyramid Network (FPN) with ResNet backbone (Lin et al., 2017). This architecture has been shown to be efficient for both semantic and instance-level predictions towards panoptic segmentation (Kirillov et al., 2019; Li et al., 2018; Xiong et al., 2019; Porzi et al., 2019). While our proposed semantically-guided architecture is not restricted to any particular network, we chose this particular implementation to facilitate the future exploration of different sources for guidance information. Architectural details follow the protocols described in Li et al. (2018), and unless mentioned otherwise the same pretrained model was used in all reported experiments. The semantic network is assumed fixed, pretrained on a held out dataset different than the raw data used for selfsupervised learning, i.e. we do not require any semantic ground truth on the target dataset. ",
466
+ "bbox": [
467
+ 174,
468
+ 292,
469
+ 825,
470
+ 431
471
+ ],
472
+ "page_idx": 4
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "4.3 TWO-STAGE TRAINING ",
477
+ "text_level": 1,
478
+ "bbox": [
479
+ 176,
480
+ 449,
481
+ 377,
482
+ 463
483
+ ],
484
+ "page_idx": 4
485
+ },
486
+ {
487
+ "type": "text",
488
+ "text": "One well-known limitation of the self-supervised photometric loss is its inability to model dynamic objects, due to a static world assumption that only accounts for camera ego-motion (Godard et al., 2018; Casser et al., 2019). A resulting common failure mode is the infinite depth problem, which is caused by the presence of objects moving at the same speed as the camera. This typically causes distinct holes in the predicted depth maps, with arbitrarily large values where these objects should be. This severely hinders the applicability of such models in real-world applications, particularly for automated driving, where the ability to detect and properly model dynamic objects is crucial. Moreover, this limitation may be further accentuated in our proposed semantically-guided architecture, as the infinite depth problem occurs mostly on dynamic categories (i.e. cars and motorcycles) and the semantic-aware features may reinforce this bias. ",
489
+ "bbox": [
490
+ 173,
491
+ 476,
492
+ 825,
493
+ 614
494
+ ],
495
+ "page_idx": 4
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "We propose a simple and efficient two-stage training method to detect and remove this bias from the training set. In the first stage, we learn a standard depth network on all available training data. This network, exhibiting the infinite depth problem, is then used to resample the dataset by automatically filtering out sequences with infinite depth predictions that violate a basic geometric prior. We indeed find that depth predictions for pixels corresponding to the nearby ground plane are generally robust. This enables getting a coarse estimate of the ground plane using RANSAC and detecting the number of pixels whose predicted depth projects them significantly below the ground. If that number is above a threshold, then the corresponding image is subsequently ignored (we found a conservative threshold of 10 to work well in all our experiments, filtering out roughly $5 \\%$ of the KITTI training dataset). During the second stage, we retrain the network on the subsampled dataset (from scratch to avoid the previous local optimum). As this subsampled dataset is de-biased, the network learns better depth estimates on dynamic objects. This process can be repeated, but we find that two stages are enough to remove any traces of infinite depth in our experiments, as shown in Figure 3. ",
500
+ "bbox": [
501
+ 174,
502
+ 622,
503
+ 825,
504
+ 803
505
+ ],
506
+ "page_idx": 4
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "5 EXPERIMENTAL RESULTS ",
511
+ "text_level": 1,
512
+ "bbox": [
513
+ 176,
514
+ 824,
515
+ 418,
516
+ 839
517
+ ],
518
+ "page_idx": 4
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "5.1 DATASETS ",
523
+ "text_level": 1,
524
+ "bbox": [
525
+ 174,
526
+ 854,
527
+ 287,
528
+ 869
529
+ ],
530
+ "page_idx": 4
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "We use the standard KITTI benchmark (Geiger et al., 2013) for self-supervised training and evaluation. More specifically, we adopt the training, validation and test splits used in Eigen et al. (2014) with the pre-processing from Zhou et al. (2017) to remove static frames, which is more suitable for ",
535
+ "bbox": [
536
+ 176,
537
+ 882,
538
+ 823,
539
+ 924
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "table",
545
+ "img_path": "images/fadcee4f355440bacfe89f4e2c7a0a5a4bb1ad8ded3e322dc5351cda42632e1c.jpg",
546
+ "table_caption": [],
547
+ "table_footnote": [],
548
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Superv.</td><td colspan=\"4\">Lower is Better</td><td colspan=\"3\">Higher is Better</td></tr><tr><td>Abs Rel</td><td>Sq Rel</td><td>RMSE</td><td>RMSEtog</td><td>δ&lt;1.25δ&lt;1.25²</td><td></td><td>δ&lt;1.253</td></tr><tr><td>Garg et al. (2016)</td><td>M</td><td>0.152</td><td>1.226</td><td>5.849</td><td>0.246</td><td>0.784</td><td>0.921</td><td>0.967</td></tr><tr><td>Zou et al. (2018)</td><td>M</td><td>0.150</td><td>1.124</td><td>5.507</td><td>0.223</td><td>0.806</td><td>0.933</td><td>0.973</td></tr><tr><td>Godard et al. (2017)</td><td>M</td><td>0.141</td><td>1.186</td><td>5.677</td><td>0.238</td><td>0.809</td><td>0.928</td><td>0.969</td></tr><tr><td>Zhan et al. (2018)</td><td>M</td><td>0.135</td><td>1.132</td><td>5.585</td><td>0.229</td><td>0.820</td><td>0.933</td><td>0.971</td></tr><tr><td>Godard et al. (2018) (R18)</td><td>M</td><td>0.115</td><td>0.903</td><td>4.863</td><td>0.193</td><td>0.877</td><td>0.959</td><td>0.981</td></tr><tr><td>Godard et al. (2018) (R50)</td><td>M</td><td>0.112</td><td>0.851</td><td>4.754</td><td>0.190</td><td>0.881</td><td>0.960</td><td>0.981</td></tr><tr><td>Guizilini et al. (2019) (MR)</td><td>M</td><td>0.108</td><td>0.727</td><td>4.426</td><td>0.184</td><td>0.885</td><td>0.963</td><td>0.983</td></tr><tr><td>Guizilini et al. (2019) (HR)</td><td>M</td><td>0.104</td><td>0.758</td><td>4.386</td><td>0.182</td><td>0.895</td><td>0.964</td><td>0.982</td></tr><tr><td>Casser et al. (2019)</td><td>S+Inst</td><td>0.141</td><td>1.025</td><td>5.290</td><td>0.215</td><td>0.816</td><td>0.945</td><td>0.979</td></tr><tr><td>Chen et al. (2019)</td><td>S+Sem</td><td>0.118</td><td>0.905</td><td>5.096</td><td>0.211</td><td>0.839</td><td>0.945</td><td>0.977</td></tr><tr><td>Ochs et al. (2019)</td><td>D+Sem</td><td>0.116</td><td>0.945</td><td>4.916</td><td>0.208</td><td>0.861</td><td>0.952</td><td>0.968</td></tr><tr><td>Ours (MR)</td><td>M+Sem</td><td>0.102</td><td>0.698</td><td>4.381</td><td>0.178</td><td>0.896</td><td>0.964</td><td>0.984</td></tr><tr><td>Ours (HR)</td><td>M+Sem</td><td>0.100</td><td>0.761</td><td>4.270</td><td>0.175</td><td>0.902</td><td>0.965</td><td>0.982</td></tr></table>",
549
+ "bbox": [
550
+ 173,
551
+ 83,
552
+ 826,
553
+ 294
554
+ ],
555
+ "page_idx": 5
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "Table 1: Quantitative performance comparison of our proposed architecture on KITTI for depths up to $8 0 \\mathrm { m }$ . $M$ refers to methods that train using monocular images, S refers to methods that train using stereo pairs, $D$ refers to methods that use ground-truth depth supervision, Sem refers to methods that include semantic information, and Inst refers to methods that include semantic and instance information. $M R$ indicates $6 4 0 \\times 1 9 2$ input images, and $H R$ indicates $1 2 8 0 \\mathrm { ~ x ~ } 3 8 4$ input images. Our proposed architecture is able to further improve the current state of the art in self-supervised monocular depth estimation, and outperforms other methods that exploit semantic information (including ground truth labels) by a substantial margin. ",
560
+ "bbox": [
561
+ 173,
562
+ 306,
563
+ 825,
564
+ 417
565
+ ],
566
+ "page_idx": 5
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "monocular self-supervised learning. This results in 39810 images for training, 4424 for validation, and 697 for evaluation. Following common practice, we pretrain our depth and pose networks on the CityScapes dataset (Cordts et al., 2016), consisting of 88250 unlabeled images. Unless noted otherwise, input images are downsampled to $6 4 0 \\times 1 9 2$ resolution and output inverse depth maps are upsampled to full resolution using bilinear interpolation. Our fixed semantic segmentation network is pretrained on Cityscapes, achieving a mIoU of $7 5 \\%$ on the validation set. ",
571
+ "bbox": [
572
+ 174,
573
+ 435,
574
+ 825,
575
+ 520
576
+ ],
577
+ "page_idx": 5
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "5.2 IMPLEMENTATION DETAILS ",
582
+ "text_level": 1,
583
+ "bbox": [
584
+ 176,
585
+ 537,
586
+ 405,
587
+ 553
588
+ ],
589
+ "page_idx": 5
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "We implement our models with PyTorch (Paszke et al., 2017) and follow the same training protocols of Guizilini et al. (2019) when optimizing our depth and pose networks. The initial training stage is conducted on the CityScapes dataset for 50 epochs, with a batch size of 4 per GPU and initial depth and pose learning rates of $2 \\cdot 1 0 ^ { - 4 }$ and $5 \\cdot { \\bar { 1 } } 0 ^ { - 4 }$ respectively, that are halved every 20 epochs. Afterwards, the depth and pose networks are fine-tuned on KITTI for 30 epochs, with the same parameters and halving the learning rates after every 12 epochs. This fine-tuning stage includes the proposed architecture, where information from the fixed semantic network, pretrained separately, is used to directly guide the generation of depth features. There is no direct supervision at any stage during depth training, all semantic information is derived from the fixed secondary network. ",
594
+ "bbox": [
595
+ 174,
596
+ 564,
597
+ 825,
598
+ 690
599
+ ],
600
+ "page_idx": 5
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "When pretraining the semantic segmentation network, we use a ResNet-50 backbone with Imagenet (Deng et al., 2009) pretrained weights and optimize the network for $4 8 k$ iterations on the CityScapes dataset with a learning rate of 0.01, momentum of 0.9, weight decay of $1 0 ^ { - 4 }$ , and a batch size of 1 per GPU. Random scaling between (0.7, 1.3), random horizontal flipping, and a crop size of $1 0 0 0 \\times 2 0 0 0$ are used for data augmentation. We decay the learning rate by a factor of 10 at iterations $3 6 k$ and $4 4 k$ . Once training is complete, the semantic segmentation network is fixed and becomes the only source of semantic information when fine-tuning the depth and pose networks on KITTI. ",
605
+ "bbox": [
606
+ 174,
607
+ 696,
608
+ 825,
609
+ 795
610
+ ],
611
+ "page_idx": 5
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "5.3 DEPTH ESTIMATION PERFORMANCE ",
616
+ "text_level": 1,
617
+ "bbox": [
618
+ 176,
619
+ 813,
620
+ 465,
621
+ 828
622
+ ],
623
+ "page_idx": 5
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "Our depth estimation results are summarized in Table 1, where we compare our proposed architecture with other published works. From these results we can see that the introduction of semanticallyguided geometric representation learning further improves upon the current state of the art in selfsupervised monocular depth estimation from Guizilini et al. (2019), which served as our baseline. Our approach also outperforms other methods that leverage semantic information by a substantial margin, even those using ground-truth KITTI semantic segmentation and depth labels during train",
628
+ "bbox": [
629
+ 174,
630
+ 839,
631
+ 823,
632
+ 924
633
+ ],
634
+ "page_idx": 5
635
+ },
636
+ {
637
+ "type": "table",
638
+ "img_path": "images/b3112d78d10a26174e02c3bc30a24a88918102e8b993042d38659c646c8ad47a.jpg",
639
+ "table_caption": [],
640
+ "table_footnote": [],
641
+ "table_body": "<table><tr><td rowspan=\"2\">Network</td><td rowspan=\"2\">SEM</td><td rowspan=\"2\">TST</td><td colspan=\"4\">Lower is Better</td><td colspan=\"2\">Higher is Better δ &lt;1.25 δ&lt;1.252 δ&lt; 1.253</td><td rowspan=\"2\">Class-Avg. Abs Rel</td></tr><tr><td>Abs Rel</td><td>Sq Rel RMSE RMSElog</td><td></td><td></td><td></td><td></td></tr><tr><td>ResNet-18</td><td>√</td><td></td><td>0.120 0.117</td><td>0.896 0.854</td><td>4.869 4.714</td><td>0.198 0.191</td><td>0.868 0.957 0.873</td><td>0.981 0.963 0.981</td><td>0.149 0.139</td></tr><tr><td>ResNet-50</td><td>√</td><td></td><td>0.117 0.113</td><td>0.900 0.831</td><td>4.826 4.663</td><td>0.196 0.189</td><td>0.873 0.967 0.878 0.971</td><td>0.980 0.983</td><td>0.144 0.136</td></tr><tr><td>PackNet</td><td>√</td><td>√</td><td>0.108 0.103 0.102</td><td>0.727 0.710 0.698</td><td>4.426 4.301 4.381</td><td>0.184 0.179 0.178</td><td>0.885 0.963 0.895 0.964 0.896 0.963</td><td>0.983 0.984 0.984</td><td>0.132 0.121 0.117</td></tr></table>",
642
+ "bbox": [
643
+ 176,
644
+ 101,
645
+ 818,
646
+ 243
647
+ ],
648
+ "page_idx": 6
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "Table 2: Ablative analysis of our semantic guidance (SEM) and two-stage-training (TST) contributions. The last column indicates class-average Abs. Rel. obtained by averaging all class-specific depth errors in Figure 4, while other columns indicate pixel-average metrics. ",
653
+ "bbox": [
654
+ 176,
655
+ 253,
656
+ 821,
657
+ 296
658
+ ],
659
+ "page_idx": 6
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "ing (Ochs et al., 2019). Furthermore, in Figure 5 we also present qualitative results showing the improvements in depth estimation generated by our proposed framework, compared to our baseline. Note how our semantically-guided architecture produces sharper boundaries and better object delineation, especially in structures further away or not clearly distinguishable in the input image. ",
664
+ "bbox": [
665
+ 174,
666
+ 306,
667
+ 825,
668
+ 363
669
+ ],
670
+ "page_idx": 6
671
+ },
672
+ {
673
+ "type": "text",
674
+ "text": "5.4 ABLATIVE ANALYSIS ",
675
+ "text_level": 1,
676
+ "bbox": [
677
+ 176,
678
+ 381,
679
+ 362,
680
+ 395
681
+ ],
682
+ "page_idx": 6
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "5.4.1 DIFFERENT DEPTH NETWORKS ",
687
+ "text_level": 1,
688
+ "bbox": [
689
+ 174,
690
+ 407,
691
+ 444,
692
+ 422
693
+ ],
694
+ "page_idx": 6
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "To better evaluate our main contribution, we provide an ablative analysis showing how it generalizes to different depth networks. To this end, we consider two variations of the widely used ResNet architecture as the encoder for our depth network: ResNet-18 and ResNet-50 (the same pretrained semantic network was used in all experiments). Depth estimation results considering these variations are shown in Table 2, where we can see that our proposed semantically-guided architecture is able to consistently improve the performance of different depth networks, for all considered metrics. ",
699
+ "bbox": [
700
+ 174,
701
+ 431,
702
+ 825,
703
+ 516
704
+ ],
705
+ "page_idx": 6
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "5.4.2 CLASS-SPECIFIC DEPTH PERFORMANCE",
710
+ "text_level": 1,
711
+ "bbox": [
712
+ 174,
713
+ 532,
714
+ 509,
715
+ 547
716
+ ],
717
+ "page_idx": 6
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "To further showcase the benefits of our semantically-guided architecture, we also provide classspecific evaluation metrics, as shown in Figure 4. As we do not have ground-truth semantic segmentation for these images, we use the prediction of the semantic network to bin pixels per predicted category, and evaluate only on those pixels. From these results we can see that our proposed architecture consistently improves depth performance for pixels across all predicted classes, especially those containing fine-grained structures and sharp boundaries, e.g. poles and traffic signs. ",
722
+ "bbox": [
723
+ 173,
724
+ 558,
725
+ 825,
726
+ 642
727
+ ],
728
+ "page_idx": 6
729
+ },
730
+ {
731
+ "type": "image",
732
+ "img_path": "images/029bba1944c05b59fd31cd1b470c4d6e1b61b263ba0128d9dbf7c9034beaab1f.jpg",
733
+ "image_caption": [
734
+ "Figure 4: Class-specific depth evaluation for our proposed architecture (blue), relative to our baseline (red). The rightmost column indicates class-average depth metrics, obtained by averaging all individual classes. The introduction of semantically-guided features, in conjunction with our proposed two-stage training methodology to address the infinite depth problem, consistently improved depth results for all considered classes (lower is better). "
735
+ ],
736
+ "image_footnote": [],
737
+ "bbox": [
738
+ 183,
739
+ 656,
740
+ 813,
741
+ 833
742
+ ],
743
+ "page_idx": 6
744
+ },
745
+ {
746
+ "type": "image",
747
+ "img_path": "images/8b4a389f1dbad0e331cbee9e393af3ad825e78c305d86b9334b90a768bca6149.jpg",
748
+ "image_caption": [
749
+ "Figure 5: Qualitative results of our proposed architecture. The left, middle, and right columns show respectively input images, baseline predicted depth maps (Guizilini et al., 2019), and the depths maps obtained using our proposed architecture. Our semantic-aware depth network predicts sharper boundaries and fine-grained details on distant objects. The dotted lines indicate class-average errors, obtained by averaging all the class-specific depth errors. "
750
+ ],
751
+ "image_footnote": [],
752
+ "bbox": [
753
+ 176,
754
+ 114,
755
+ 820,
756
+ 460
757
+ ],
758
+ "page_idx": 7
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "We also measure the impact of our two-stage training process, which is expected to address the infinite depth problem in dynamic objects. Although we find the pixel-average difference in performance to not be significant (see Table 2), there is a significant improvement in class-average depth estimation, from 0.121 to 0.117 Abs-Rel. This is because the number of pixels affected by the infinite depth problem is vastly smaller than the total number of pixels. However, when considering class-average depth evaluation, the improvement over classes such as cars (0.200 to 0.177 Abs-Rel) and motorcycles (0.091 to 0.069) becomes statistically significant. This further exemplifies the importance of fine-grained metrics in depth evaluation, so these underlying behaviors can be properly observed and accounted for in the development of new techniques. ",
763
+ "bbox": [
764
+ 174,
765
+ 569,
766
+ 825,
767
+ 694
768
+ ],
769
+ "page_idx": 7
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "6 CONCLUSION ",
774
+ "text_level": 1,
775
+ "bbox": [
776
+ 176,
777
+ 714,
778
+ 318,
779
+ 731
780
+ ],
781
+ "page_idx": 7
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "This paper introduces a novel architecture for self-supervised monocular depth estimation that leverages semantic information from a fixed pretrained network to guide the generation of multi-level depth features via pixel-adaptive convolutions. Our monodepth network learns semantic-aware geometric representations that can disambiguate photometric ambiguities in a self-supervised learning structure-from-motion context. Furthermore, we introduce a two-stage training process that resamples training data to overcome a common bias on dynamic objects resulting in predicting them at infinite depths. Our experiments on challenging real-world data shows that our proposed architecture consistently improves the performance of different monodepth architectures, thus establishing a new state of the art in self-supervised monocular depth estimation. Future directions of research include leveraging other sources of guidance (i.e. instance masks, optical flow, surface normals), as well as avenues for self-supervised fine-tuning of the semantic network. ",
786
+ "bbox": [
787
+ 174,
788
+ 746,
789
+ 825,
790
+ 898
791
+ ],
792
+ "page_idx": 7
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "REFERENCES ",
797
+ "text_level": 1,
798
+ "bbox": [
799
+ 176,
800
+ 102,
801
+ 287,
802
+ 118
803
+ ],
804
+ "page_idx": 8
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "Min Bai, Wenjie Luo, Kaustav Kundu, and Raquel Urtasun. Exploiting semantic information and deep matching for optical flow. In ECCV, 2016. 2 ",
809
+ "bbox": [
810
+ 171,
811
+ 126,
812
+ 825,
813
+ 155
814
+ ],
815
+ "page_idx": 8
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "Holger Caesar, Varun Bankiti, Alex H. Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuscenes: A multimodal dataset for autonomous driving. CoRR, 2019. 13, 14 ",
820
+ "bbox": [
821
+ 173,
822
+ 164,
823
+ 821,
824
+ 207
825
+ ],
826
+ "page_idx": 8
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "Vincent Casser, Soeren Pirk, Reza Mahjourian, and Anelia Angelova. Depth prediction without the sensors: Leveraging structure for unsupervised learning from monocular videos. AAAI, 2019. 2, 3, 5, 6 ",
831
+ "bbox": [
832
+ 173,
833
+ 217,
834
+ 823,
835
+ 258
836
+ ],
837
+ "page_idx": 8
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "Po-Yi Chen, Alexander H. Liu, Yen-Cheng Liu, and Yu-Chiang Frank Wang. Towards scene understanding: Unsupervised monocular depth estimation with semantic-aware representation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1, 2, 6 ",
842
+ "bbox": [
843
+ 173,
844
+ 268,
845
+ 826,
846
+ 313
847
+ ],
848
+ "page_idx": 8
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network ´ learning by exponential linear units (elus). In ICLR, 2016. 4 ",
853
+ "bbox": [
854
+ 173,
855
+ 320,
856
+ 821,
857
+ 351
858
+ ],
859
+ "page_idx": 8
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3213–3223, 2016. 6, 12 ",
864
+ "bbox": [
865
+ 173,
866
+ 359,
867
+ 826,
868
+ 417
869
+ ],
870
+ "page_idx": 8
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "Jia Deng, Wei Dong, Richard Socher, Li jia Li, Kai Li, and Li Fei-fei. Imagenet: A large-scale hierarchical image database. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2009. 6, 12 ",
875
+ "bbox": [
876
+ 173,
877
+ 426,
878
+ 823,
879
+ 469
880
+ ],
881
+ "page_idx": 8
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "David Eigen, Christian Puhrsch, and Rob Fergus. Depth map prediction from a single image using a multi-scale deep network. In Advances in neural information processing systems, 2014. 1, 2, 5 ",
886
+ "bbox": [
887
+ 171,
888
+ 478,
889
+ 823,
890
+ 508
891
+ ],
892
+ "page_idx": 8
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Batmanghelich, and Dacheng Tao. Deep ordinal regression network for monocular depth estimation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2002–2011, 2018. 2 ",
897
+ "bbox": [
898
+ 173,
899
+ 517,
900
+ 823,
901
+ 560
902
+ ],
903
+ "page_idx": 8
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "Ravi Garg, Vijay Kumar BG, Gustavo Carneiro, and Ian Reid. Unsupervised cnn for single view depth estimation: Geometry to the rescue. In European Conference on Computer Vision, pp. 740–756. Springer, 2016. 2, 6 ",
908
+ "bbox": [
909
+ 173,
910
+ 569,
911
+ 825,
912
+ 613
913
+ ],
914
+ "page_idx": 8
915
+ },
916
+ {
917
+ "type": "text",
918
+ "text": "Andreas Geiger, Philip Lenz, Christoph Stiller, and Raquel Urtasun. Vision meets robotics: The kitti dataset. The International Journal of Robotics Research, 32(11):1231–1237, 2013. 1, 5 ",
919
+ "bbox": [
920
+ 171,
921
+ 622,
922
+ 825,
923
+ 651
924
+ ],
925
+ "page_idx": 8
926
+ },
927
+ {
928
+ "type": "text",
929
+ "text": "Clement Godard, Oisin Mac Aodha, and Gabriel J Brostow. Unsupervised monocular depth estima- ´ tion with left-right consistency. In CVPR, volume 2, pp. 7, 2017. 2, 3, 6 ",
930
+ "bbox": [
931
+ 173,
932
+ 660,
933
+ 823,
934
+ 690
935
+ ],
936
+ "page_idx": 8
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "Clement Godard, Oisin Mac Aodha, Michael Firman, and Gabriel J. Brostow. Digging into self-´ supervised monocular depth prediction. arXiv:1806.01260, 2018. 3, 5, 6, 14 ",
941
+ "bbox": [
942
+ 173,
943
+ 699,
944
+ 823,
945
+ 728
946
+ ],
947
+ "page_idx": 8
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "Vitor Guizilini, Sudeep Pillai, Rares Ambrus, and Adrien Gaidon. Packnet-sfm: 3d packing for self-supervised monocular depth estimation. arXiv preprint arXiv:1905.02693, 2019. 1, 2, 3, 6, 8, 14 ",
952
+ "bbox": [
953
+ 173,
954
+ 738,
955
+ 825,
956
+ 780
957
+ ],
958
+ "page_idx": 8
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "Fatma Guney and Andreas Geiger. Displets: Resolving stereo ambiguities using object knowledge.¨ In Conference on Computer Vision and Pattern Recognition (CVPR), 2015. 2 ",
963
+ "bbox": [
964
+ 168,
965
+ 790,
966
+ 821,
967
+ 820
968
+ ],
969
+ "page_idx": 8
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "Xiaoyang Guo, Hongsheng Li, Shuai Yi, Jimmy Ren, and Xiaogang Wang. Learning monocular depth by distilling cross-domain stereo networks. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 484–500, 2018. 1 ",
974
+ "bbox": [
975
+ 176,
976
+ 829,
977
+ 821,
978
+ 872
979
+ ],
980
+ "page_idx": 8
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. 2 ",
985
+ "bbox": [
986
+ 176,
987
+ 881,
988
+ 823,
989
+ 922
990
+ ],
991
+ "page_idx": 8
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In Advances in neural information processing systems, pp. 2017–2025, 2015. 2 ",
996
+ "bbox": [
997
+ 171,
998
+ 103,
999
+ 823,
1000
+ 133
1001
+ ],
1002
+ "page_idx": 9
1003
+ },
1004
+ {
1005
+ "type": "text",
1006
+ "text": "Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7482–7491, 2018. 1 ",
1007
+ "bbox": [
1008
+ 174,
1009
+ 140,
1010
+ 823,
1011
+ 183
1012
+ ],
1013
+ "page_idx": 9
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "text": "Alexander Kirillov, Ross Girshick, Kaiming He, and Piotr Dollar. Panoptic feature pyramid net- ´ works. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6399–6408, 2019. 5 ",
1018
+ "bbox": [
1019
+ 174,
1020
+ 190,
1021
+ 823,
1022
+ 233
1023
+ ],
1024
+ "page_idx": 9
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "Maria Klodt and Andrea Vedaldi. Supervising the new with the old: Learning sfm from sfm. In European Conference on Computer Vision, pp. 713–728. Springer, 2018. 2 ",
1029
+ "bbox": [
1030
+ 171,
1031
+ 241,
1032
+ 823,
1033
+ 271
1034
+ ],
1035
+ "page_idx": 9
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "Jae-Han Lee, Minhyeok Heo, Kyung-Rae Kim, and Chang-Su Kim. Single-image depth estimation based on fourier domain analysis. In International Conference on Computer Vision and Pattern Recognition (CVPR), pp. 330–339, 2018. 2 ",
1040
+ "bbox": [
1041
+ 176,
1042
+ 277,
1043
+ 823,
1044
+ 321
1045
+ ],
1046
+ "page_idx": 9
1047
+ },
1048
+ {
1049
+ "type": "text",
1050
+ "text": "Kuan-Hui Lee, German Ros, Jie Li, and Adrien Gaidon. Spigan: Privileged adversarial learning from simulation. In ICLR, 2019. 1 ",
1051
+ "bbox": [
1052
+ 173,
1053
+ 328,
1054
+ 825,
1055
+ 358
1056
+ ],
1057
+ "page_idx": 9
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "Bo Li, Chunhua Shen, Yuchao Dai, Anton Van, and Mingyi He. Depth and surface normal estimation from monocular images using regression on deep features and hierarchical crfs. In International Conference on Computer Vision and Pattern Recognition (CVPR), pp. 1119–1127, 2015. 2 ",
1062
+ "bbox": [
1063
+ 174,
1064
+ 364,
1065
+ 823,
1066
+ 409
1067
+ ],
1068
+ "page_idx": 9
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "Jie Li, Allan Raventos, Arjun Bhargava, Takaaki Tagawa, and Adrien Gaidon. Learning to fuse things and stuff. arXiv preprint arXiv:1812.01192, 2018. 5 ",
1073
+ "bbox": [
1074
+ 169,
1075
+ 416,
1076
+ 823,
1077
+ 445
1078
+ ],
1079
+ "page_idx": 9
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "Zhizhong Li and Derek Hoiem. Learning without forgetting. IEEE TPAMI, 40(12):2935–2947, 2017. 3 ",
1084
+ "bbox": [
1085
+ 171,
1086
+ 453,
1087
+ 823,
1088
+ 483
1089
+ ],
1090
+ "page_idx": 9
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie.´ Feature pyramid networks for object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2117–2125, 2017. 5 ",
1095
+ "bbox": [
1096
+ 174,
1097
+ 489,
1098
+ 823,
1099
+ 534
1100
+ ],
1101
+ "page_idx": 9
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "Reza Mahjourian, Martin Wicke, and Anelia Angelova. Unsupervised learning of depth and egomotion from monocular video using 3d geometric constraints. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5667–5675, 2018. 2 ",
1106
+ "bbox": [
1107
+ 174,
1108
+ 540,
1109
+ 821,
1110
+ 584
1111
+ ],
1112
+ "page_idx": 9
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Fabian Manhardt, Wadim Kehl, and Adrien Gaidon. Roi-10d: Monocular lifting of 2d detection to 6d pose and metric shape. International Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1 ",
1117
+ "bbox": [
1118
+ 173,
1119
+ 590,
1120
+ 823,
1121
+ 633
1122
+ ],
1123
+ "page_idx": 9
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "Jeff Michels, Ashutosh Saxena, and Andrew Y Ng. High speed obstacle avoidance using monocular vision and reinforcement learning. In Proceedings of the 22nd international conference on Machine learning, pp. 593–600. ACM, 2005. 1 ",
1128
+ "bbox": [
1129
+ 173,
1130
+ 641,
1131
+ 823,
1132
+ 685
1133
+ ],
1134
+ "page_idx": 9
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "text": "Matthias Ochs, Adrian Kretz, and Rudolf Mester. Sdnet: Semantically guided depth estimation network. In arXiv:1907.10659, 2019. 1, 2, 6, 7 ",
1139
+ "bbox": [
1140
+ 169,
1141
+ 691,
1142
+ 823,
1143
+ 722
1144
+ ],
1145
+ "page_idx": 9
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. In NIPS-W, 2017. 6 ",
1150
+ "bbox": [
1151
+ 174,
1152
+ 728,
1153
+ 825,
1154
+ 772
1155
+ ],
1156
+ "page_idx": 9
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "Sudeep Pillai, Rares Ambrus, and Adrien Gaidon. Superdepth: Self-supervised, super-resolved monocular depth estimation. In Proceedings of the IEEE International Conference on Robotics and Automation (ICRA), 2019. 1 ",
1161
+ "bbox": [
1162
+ 173,
1163
+ 780,
1164
+ 823,
1165
+ 823
1166
+ ],
1167
+ "page_idx": 9
1168
+ },
1169
+ {
1170
+ "type": "text",
1171
+ "text": "Lorenzo Porzi, Samuel Rota Bulo, Aleksander Colovic, and Peter Kontschieder. Seamless scene segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8277–8286, 2019. 5 ",
1172
+ "bbox": [
1173
+ 173,
1174
+ 830,
1175
+ 823,
1176
+ 873
1177
+ ],
1178
+ "page_idx": 9
1179
+ },
1180
+ {
1181
+ "type": "text",
1182
+ "text": "Xiaojuan Qi, Renjie Liao, Zhengzhe Liu, Raquel Urtasun, and Jiaya Jia. Geonet: Geometric neural network for joint depth and surface normal estimation. In International Conference on Computer Vision and Pattern Recognition (CVPR), pp. 283–291, 2018. 2 ",
1183
+ "bbox": [
1184
+ 174,
1185
+ 882,
1186
+ 825,
1187
+ 924
1188
+ ],
1189
+ "page_idx": 9
1190
+ },
1191
+ {
1192
+ "type": "text",
1193
+ "text": "Hang Su, Varun Jampani, Deqing Sun, Orazio Gallo, Erik Learned-Miller, and Jan Kautz. Pixeladaptive convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 2, 4 ",
1194
+ "bbox": [
1195
+ 176,
1196
+ 103,
1197
+ 821,
1198
+ 146
1199
+ ],
1200
+ "page_idx": 10
1201
+ },
1202
+ {
1203
+ "type": "text",
1204
+ "text": "Benjamin Ummenhofer, Huizhong Zhou, Jonas Uhrig, Nikolaus Mayer, Eddy Ilg, Alexey Dosovitskiy, and Thomas Brox. Demon: Depth and motion network for learning monocular stereo. In IEEE Conference on computer vision and pattern recognition (CVPR), volume 5, pp. 6, 2017. 2 ",
1205
+ "bbox": [
1206
+ 176,
1207
+ 155,
1208
+ 823,
1209
+ 198
1210
+ ],
1211
+ "page_idx": 10
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "Chaoyang Wang, Jose Miguel Buenaposada, Rui Zhu, and Simon Lucey. Learning depth from ´ monocular videos using direct methods. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2022–2030, 2018. 2 ",
1216
+ "bbox": [
1217
+ 174,
1218
+ 205,
1219
+ 821,
1220
+ 250
1221
+ ],
1222
+ "page_idx": 10
1223
+ },
1224
+ {
1225
+ "type": "text",
1226
+ "text": "Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 2004. 2, 3 ",
1227
+ "bbox": [
1228
+ 171,
1229
+ 257,
1230
+ 820,
1231
+ 287
1232
+ ],
1233
+ "page_idx": 10
1234
+ },
1235
+ {
1236
+ "type": "text",
1237
+ "text": "Yuxin Wu and Kaiming He. Group normalization. In Proceedings of the 15th European Conference on Computer Vision (ECCV), pp. 3–19, 2018. 4 ",
1238
+ "bbox": [
1239
+ 173,
1240
+ 295,
1241
+ 821,
1242
+ 325
1243
+ ],
1244
+ "page_idx": 10
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "Yuwen Xiong, Renjie Liao, Hengshuang Zhao, Rui Hu, Min Bai, Ersin Yumer, and Raquel Urtasun. Upsnet: A unified panoptic segmentation network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8818–8826, 2019. 5 ",
1249
+ "bbox": [
1250
+ 176,
1251
+ 333,
1252
+ 823,
1253
+ 376
1254
+ ],
1255
+ "page_idx": 10
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "Nan Yang, Rui Wang, Jorg St ¨ uckler, and Daniel Cremers. Deep virtual stereo odometry: Leveraging ¨ deep depth prediction for monocular direct sparse odometry. arXiv:1807.02570, 2018. 2 ",
1260
+ "bbox": [
1261
+ 173,
1262
+ 385,
1263
+ 825,
1264
+ 414
1265
+ ],
1266
+ "page_idx": 10
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "Zhenheng Yang, Peng Wang, Wei Xu, Liang Zhao, and Ramakant Nevatia. Unsupervised learning of geometry with edge-aware depth-normal consistency. arXiv preprint arXiv:1711.03665, 2017. 1 ",
1271
+ "bbox": [
1272
+ 174,
1273
+ 422,
1274
+ 825,
1275
+ 464
1276
+ ],
1277
+ "page_idx": 10
1278
+ },
1279
+ {
1280
+ "type": "text",
1281
+ "text": "Zhichao Yin and Jianping Shi. Geonet: Unsupervised learning of dense depth, optical flow and camera pose. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), volume 2, 2018. 2 ",
1282
+ "bbox": [
1283
+ 173,
1284
+ 473,
1285
+ 825,
1286
+ 517
1287
+ ],
1288
+ "page_idx": 10
1289
+ },
1290
+ {
1291
+ "type": "text",
1292
+ "text": "Huangying Zhan, Ravi Garg, Chamara Saroj Weerasekera, Kejie Li, Harsh Agarwal, and Ian Reid. Unsupervised learning of monocular depth estimation and visual odometry with deep feature reconstruction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 340–349, 2018. 6 ",
1293
+ "bbox": [
1294
+ 173,
1295
+ 525,
1296
+ 823,
1297
+ 582
1298
+ ],
1299
+ "page_idx": 10
1300
+ },
1301
+ {
1302
+ "type": "text",
1303
+ "text": "Tinghui Zhou, Matthew Brown, Noah Snavely, and David G Lowe. Unsupervised learning of depth and ego-motion from video. In CVPR, volume 2, pp. 7, 2017. 2, 3, 5 ",
1304
+ "bbox": [
1305
+ 171,
1306
+ 590,
1307
+ 823,
1308
+ 621
1309
+ ],
1310
+ "page_idx": 10
1311
+ },
1312
+ {
1313
+ "type": "text",
1314
+ "text": "Yuliang Zou, Zelun Luo, and Jia-Bin Huang. Df-net: Unsupervised joint learning of depth and flow using cross-task consistency. In European Conference on Computer Vision, 2018. 1, 2, 3, 6 ",
1315
+ "bbox": [
1316
+ 171,
1317
+ 628,
1318
+ 823,
1319
+ 659
1320
+ ],
1321
+ "page_idx": 10
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "text": "A PRE-TRAINING THE SEMANTIC SEGMENTATION NETWORK ",
1326
+ "text_level": 1,
1327
+ "bbox": [
1328
+ 174,
1329
+ 102,
1330
+ 702,
1331
+ 118
1332
+ ],
1333
+ "page_idx": 11
1334
+ },
1335
+ {
1336
+ "type": "text",
1337
+ "text": "The introduction of a semantic segmentation network to the depth estimation task increases the depth estimation performance, however it also increases model complexity (e.g. number of trainable parameters). To investigate that the increased performance for the depth estimation task is indeed due to the semantic features encoded in the secondary network, we perform an in-depth analysis (summarized in Table 3) where we explore the impact of pre-training the semantic segmentation network before it is used to guide the generation of depth features. From these results we can see that the presence of semantic information encoded in the secondary network indeed leads to an increase in performance, and that fine-tuning this secondary network for the speficic task of depth estimation actually decreases performance. ",
1338
+ "bbox": [
1339
+ 174,
1340
+ 132,
1341
+ 825,
1342
+ 258
1343
+ ],
1344
+ "page_idx": 11
1345
+ },
1346
+ {
1347
+ "type": "text",
1348
+ "text": "In the first two rows an untrained semantic network is utilized, with only its encoder initialized from ImageNet (Deng et al., 2009) weights. Two different scenarios are explored: in the first one (D) only the depth network is fine-tuned in a self-supervised fashion, while in $\\mathbf { D + S }$ both networks are fine-tuned together in the same way. As expected, using untrained features as guidance leads to significantly worse results, since there is no structure encoded in the secondary network and the primary network needs to learn to filter out all this spurious information. When both networks are fine-tuned simultaneously, results improve because now the added complexity from the secondary network can be leveraged for the task of depth estimation, however there is still no improvement over the baseline. ",
1349
+ "bbox": [
1350
+ 174,
1351
+ 265,
1352
+ 825,
1353
+ 390
1354
+ ],
1355
+ "page_idx": 11
1356
+ },
1357
+ {
1358
+ "type": "text",
1359
+ "text": "Next, the semantic network was pre-trained on only half of the CityScapes (Cordts et al., 2016) dataset (samples chosen randomly), leading to a worse semantic segmentation performance (validation mIoU of around $7 0 \\%$ vs. $\\dot { 7 } 5 \\%$ for the fully trained one). This partial pre-training stage was enough to enable the transfer of useful information between networks, leading to improvements over the baseline. Interestingly, fine-tuning both networks for the task of depth estimation actually hurt performance this time, which we attribute to forgetting the information contained in the secondary network, as both networks are optimized for the depth task. When the semantic network is pretrained with all of CityScapes (last two rows), these effects are magnified, with fine-tuning only the depth network leading to our best reported performance (Table 1) and fine-tuning both networks again leading to results similar to the baseline. ",
1360
+ "bbox": [
1361
+ 174,
1362
+ 397,
1363
+ 825,
1364
+ 536
1365
+ ],
1366
+ "page_idx": 11
1367
+ },
1368
+ {
1369
+ "type": "table",
1370
+ "img_path": "images/39674a6eb79324a71abaab952b2fa2a5c0e792c6121c26ae828662acaccea15b.jpg",
1371
+ "table_caption": [
1372
+ "Table 3: Analysis of the impact of pre-training the semantic segmentation network. On the PreTrain column, $I$ indicates ImageNet (Deng et al., 2009) pretraining and CS indicates CityScapes (Cordts et al., 2016) pretraining, with $1 / 2$ indicating the use of only half the dataset (samples chosen randomly). In the Fine-Tune column, $D$ indicates fine-tuning the depth network and $s$ indicates finetuning the semantic network (note that this is a self-supervised fine-tuning for the depth task, using the objective described in Section 3.1). "
1373
+ ],
1374
+ "table_footnote": [],
1375
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Pre-Train</td><td rowspan=\"2\">Fine-Tune</td><td colspan=\"4\">Lower is Better</td><td colspan=\"3\">Higher is Better</td></tr><tr><td>Abs Rel</td><td>Sq Rel</td><td>RMSE</td><td>RMSElog</td><td>δ &lt;1.25 δ&lt;1.252</td><td></td><td>δ&lt;1.253</td></tr><tr><td>Baseline</td><td></td><td>D</td><td>0.108</td><td>0.727</td><td>4.426</td><td>0.184</td><td>0.885</td><td>0.963</td><td>0.983</td></tr><tr><td rowspan=\"6\">Proposed</td><td>I</td><td>D+S</td><td>0.116</td><td>0.847</td><td>4.751</td><td>0.192</td><td>0.879</td><td>0.960</td><td>0.981</td></tr><tr><td>I</td><td>D</td><td>0.197</td><td>1.323</td><td>6.114</td><td>0.265</td><td>0.776</td><td>0.918</td><td>0.966</td></tr><tr><td>CS (1/2)</td><td>D+S</td><td>0.109</td><td>0.737</td><td>4.389</td><td>0.185</td><td>0.884</td><td>0.962</td><td>0.982</td></tr><tr><td>CS (1/2)</td><td>D</td><td>0.104</td><td>0.716</td><td>4.322</td><td>0.180</td><td>0.893</td><td>0.964</td><td>0.984</td></tr><tr><td>Cs</td><td>D+S</td><td>0.107</td><td>0.741</td><td>4.407</td><td>0.183</td><td>0.883</td><td>0.963</td><td>0.983</td></tr><tr><td>Cs</td><td>D</td><td>0.102</td><td>0.698</td><td>4.381</td><td>0.178</td><td>0.896</td><td>0.964</td><td>0.984</td></tr></table>",
1376
+ "bbox": [
1377
+ 186,
1378
+ 549,
1379
+ 808,
1380
+ 685
1381
+ ],
1382
+ "page_idx": 11
1383
+ },
1384
+ {
1385
+ "type": "text",
1386
+ "text": "B UNCERTAINTY AND GENERALIZATION TO DIFFERENT OBJECTS ",
1387
+ "text_level": 1,
1388
+ "bbox": [
1389
+ 176,
1390
+ 809,
1391
+ 740,
1392
+ 825
1393
+ ],
1394
+ "page_idx": 11
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "In a self-supervised setting, increasing the number of unlabeled videos used for depth training is expected to lead to an increasing specialization away from the domain in which the semantic network was pre-trained. This might result in harmful guidance if our method is not robust to this gap. However, our approach does not use semantic predictions directly, but rather the decoded features of the semantic network themselves, which represent general appearance information that should be more robust to this domain gap. To validate our hypothesis, we further explore the impact of erroneous semantic information in the performance of our proposed semantically-guided depth framework. In Figure 6 we present qualitative results highlighting situations in which our pretrained semantic network failed to generate correct semantic predictions for certain objects in the scene, and yet our proposed framework was still able to properly recover depth values for that portion of the environment. These exemplify possible scenarios for erroneous semantic prediction. ",
1399
+ "bbox": [
1400
+ 174,
1401
+ 840,
1402
+ 825,
1403
+ 924
1404
+ ],
1405
+ "page_idx": 11
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "text": "",
1410
+ "bbox": [
1411
+ 176,
1412
+ 103,
1413
+ 825,
1414
+ 174
1415
+ ],
1416
+ "page_idx": 12
1417
+ },
1418
+ {
1419
+ "type": "text",
1420
+ "text": "• Imprecise boundaries: in the first row, we can see that the semantic segmentation network does not correctly detect the traffic sign, yet the semantically-guided depth network predicts its shape and depth accurately. \n• Wrong classification: in the second row, the truck was mistakenly classified as partially “road” and “building”, however our semantically-guided depth network was still able to properly recover its overall shape with sharp delineation that was not available from its semantic contour. A similar scenario happens in the same image, with “fence” being partially labeled as “bicycle”. \n• Missing ontology: there is no “trash can” class on the CityScapes ontology, however in the third row our semantically-guided depth network was able to correctly reconstruct such object even though it was classified as “fence”, similarly to its surroundings. \n• Object Hallucination: in the fourth row, the contour of a “person” was erroneously introduced in the image and correctly removed by our semantically-guided framework. ",
1421
+ "bbox": [
1422
+ 217,
1423
+ 184,
1424
+ 825,
1425
+ 377
1426
+ ],
1427
+ "page_idx": 12
1428
+ },
1429
+ {
1430
+ "type": "text",
1431
+ "text": "These examples are evidence that our proposed framework is able to reason over the uncertainty inherent to semantic classification, leveraging this information when accurate to achieve the results reported in this paper, but also discarding it if necessary to generate a better reconstruction according to the self-supervised photometric loss. ",
1432
+ "bbox": [
1433
+ 176,
1434
+ 388,
1435
+ 825,
1436
+ 444
1437
+ ],
1438
+ "page_idx": 12
1439
+ },
1440
+ {
1441
+ "type": "image",
1442
+ "img_path": "images/1571107d15766292cb50733ff1a095273dd604cd102c3c0235ac0a84b6b5dd4e.jpg",
1443
+ "image_caption": [
1444
+ "Figure 6: Examples of erroneous semantic predictions that still led to accurate depth predictions using our proposed semantically-guided depth framework. "
1445
+ ],
1446
+ "image_footnote": [],
1447
+ "bbox": [
1448
+ 178,
1449
+ 469,
1450
+ 820,
1451
+ 699
1452
+ ],
1453
+ "page_idx": 12
1454
+ },
1455
+ {
1456
+ "type": "text",
1457
+ "text": "C GENERALIZATION TO DIFFERENT DATASETS ",
1458
+ "text_level": 1,
1459
+ "bbox": [
1460
+ 174,
1461
+ 753,
1462
+ 578,
1463
+ 770
1464
+ ],
1465
+ "page_idx": 12
1466
+ },
1467
+ {
1468
+ "type": "text",
1469
+ "text": "In the previous sections, we show that our proposed framework is robust to a degraded semantic network, both by pretraining the semantic network with fewer annotated labels (Appendix A) and also by providing evidence that the depth network is able to reason over erroneous predictions to still generate accurate reconstructions (Appendix B). We now go one step further and analyze how our proposed semantically-guided framework generalizes to a dataset that was used neither during pre-training nor for fine-tuning. To this end, we evaluate our KITTI depth model on the recently released NuScenes dataset (Caesar et al., 2019). The official NuScenes validation split is used, containing 6019 images from the front camera with ground-truth depth maps generated by LiDAR reprojection. Results presented in Table 4 provide additional evidence that our method indeed results in generalization improvements, even on significantly different data from different platforms ",
1470
+ "bbox": [
1471
+ 173,
1472
+ 785,
1473
+ 825,
1474
+ 924
1475
+ ],
1476
+ "page_idx": 12
1477
+ },
1478
+ {
1479
+ "type": "table",
1480
+ "img_path": "images/bec1078c5287f03bdd3c650a6e65b61fa474c55eb675fac2632764ab582173d1.jpg",
1481
+ "table_caption": [
1482
+ "and environments (Karlsruhe, Germany for KITTI vs Boston, USA and Singapore for NuScenes), outperforming the state of the art methods and our baseline (Guizilini et al., 2019). ",
1483
+ "Table 4: Generalization capability of different networks, trained on both KITTI and CityScapes datasets and evaluated on the NuScenes (Caesar et al., 2019) dataset. Our proposed semanticallyguided architecture is able to further improve upon the baseline from Guizilini et al. (2019), which only used unlabeled image sequences for self-supervised depth training. "
1484
+ ],
1485
+ "table_footnote": [],
1486
+ "table_body": "<table><tr><td>Method</td><td>Abs Rel</td><td>Sq Rel</td><td>RMSE</td><td>RMSElog</td><td></td><td>δ&lt;1.25δ&lt;1.25²</td><td>δ&lt;1.253</td></tr><tr><td>Godard et al. (2018) (R18)</td><td>0.212</td><td>1.918</td><td>7.958</td><td>0.323</td><td>0.674</td><td>0.898</td><td>0.954</td></tr><tr><td>Godard et al. (2018) (R50)</td><td>0.210</td><td>2.017</td><td>8.111</td><td>0.328</td><td>0.697</td><td>0.903</td><td>0.960</td></tr><tr><td>Guizilini et al. (2019) (MR)</td><td>0.187</td><td>1.852</td><td>7.636</td><td>0.289</td><td>0.742</td><td>0.917</td><td>0.961</td></tr><tr><td>Ours (MR)</td><td>0.181</td><td>1.505</td><td>7.237</td><td>0.271</td><td>0.765</td><td>0.931</td><td>0.969</td></tr></table>",
1487
+ "bbox": [
1488
+ 196,
1489
+ 145,
1490
+ 795,
1491
+ 226
1492
+ ],
1493
+ "page_idx": 13
1494
+ }
1495
+ ]
parse/train/ByxT7TNFvH/ByxT7TNFvH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByxT7TNFvH/ByxT7TNFvH_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkL7n1-0b/HkL7n1-0b.md ADDED
@@ -0,0 +1,402 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # WASSERSTEIN AUTO-ENCODERS
2
+
3
+ Ilya Tolstikhin MPI for Intelligent Systems Tubingen, Germany ¨ ilya@tue.mpg.de
4
+
5
+ Olivier Bousquet
6
+ Google Brain
7
+ Zurich, Switzerland ¨
8
+ obousquet@google.com
9
+ Sylvain Gelly
10
+ Google Brain
11
+ Zurich, Switzerland¨
12
+ sylvaingelly@google.com
13
+
14
+ Bernhard Scholkopf ¨ MPI for Intelligent Systems Tubingen, Germany ¨ bs@tue.mpg.de
15
+
16
+ # ABSTRACT
17
+
18
+ We propose the Wasserstein Auto-Encoder (WAE)—a new algorithm for building a generative model of the data distribution. WAE minimizes a penalized form of the Wasserstein distance between the model distribution and the target distribution, which leads to a different regularizer than the one used by the Variational Auto-Encoder (VAE) (Kingma & Welling, 2014). This regularizer encourages the encoded training distribution to match the prior. We compare our algorithm with several other techniques and show that it is a generalization of adversarial auto-encoders (AAE) (Makhzani et al., 2016). Our experiments show that WAE shares many of the properties of VAEs (stable training, encoder-decoder architecture, nice latent manifold structure) while generating samples of better quality, as measured by the FID score.
19
+
20
+ # 1 INTRODUCTION
21
+
22
+ The field of representation learning was initially driven by supervised approaches, with impressive results using large labelled datasets. Unsupervised generative modeling, in contrast, used to be a domain governed by probabilistic approaches focusing on low-dimensional data. Recent years have seen a convergence of those two approaches. In the new field that formed at the intersection, variational auto-encoders (VAEs) (Kingma & Welling, 2014) constitute one well-established approach, theoretically elegant yet with the drawback that they tend to generate blurry samples when applied to natural images. In contrast, generative adversarial networks (GANs) (Goodfellow et al., 2014) turned out to be more impressive in terms of the visual quality of images sampled from the model, but come without an encoder, have been reported harder to train, and suffer from the “mode collapse” problem where the resulting model is unable to capture all the variability in the true data distribution. There has been a flurry of activity in assaying numerous configurations of GANs as well as combinations of VAEs and GANs. A unifying framework combining the best of GANs and VAEs in a principled way is yet to be discovered.
23
+
24
+ This work builds up on the theoretical analysis presented in Bousquet et al. (2017). Following Arjovsky et al. (2017); Bousquet et al. (2017), we approach generative modeling from the optimal transport (OT) point of view. The OT cost (Villani, 2003) is a way to measure a distance between probability distributions and provides a much weaker topology than many others, including $f$ -divergences associated with the original GAN algorithms (Nowozin et al., 2016). This is particularly important in applications, where data is usually supported on low dimensional manifolds in the input space $\mathcal { X }$ . As a result, stronger notions of distances (such as $f$ -divergences, which capture the density ratio between distributions) often max out, providing no useful gradients for training. In contrast, OT was claimed to have a nicer behaviour (Arjovsky et al., 2017; Gulrajani et al., 2017) although it requires, in its GAN-like implementation, the addition of a constraint or a regularization term into the objective.
25
+
26
+ ![](images/dfbfcc5b3c4f8ecaf5bcf4d077a22aa437f7aa7791df942b76efddc7ab3c527b.jpg)
27
+ Figure 1: Both VAE and WAE minimize two terms: the reconstruction cost and the regularizer penalizing discrepancy between $P _ { Z }$ and distribution induced by the encoder $Q$ . VAE forces $Q ( Z | X = x )$ to match $P _ { Z }$ for all the different input examples $x$ drawn from $P _ { X }$ . This is illustrated on picture (a), where every single red ball is forced to match $P _ { Z }$ depicted as the white shape. Red balls start intersecting, which leads to problems with reconstruction. In contrast, WAE forces the continuous mixture $\begin{array} { r } { \dot { Q _ { Z } } : = \int Q ( Z | X ) \dot { d } P _ { X } } \end{array}$ to match $P _ { Z }$ , as depicted with the green ball in picture (b). As a result latent codes of different examples get a chance to stay far away from each other, promoting a better reconstruction.
28
+
29
+ In this work we aim at minimizing OT $W _ { c } ( P _ { X } , P _ { G } )$ between the true (but unknown) data distribution $P _ { X }$ and a latent variable model $P _ { G }$ specified by the prior distribution $P _ { Z }$ of latent codes $Z \in { \mathcal { Z } }$ and the generative model $P _ { G } ( X | Z )$ of the data points $X \in { \mathcal { X } }$ given $Z$ . Our main contributions are listed below (cf. also Figure 1):
30
+
31
+ • A new family of regularized auto-encoders (Algorithms 1, 2 and Eq. 4), which we call Wasserstein Auto-Encoders (WAE), that minimize the optimal transport $W _ { c } ( P _ { X } , P _ { G } )$ for any cost function $c$ . Similarly to VAE, the objective of WAE is composed of two terms: the $c$ -reconstruction cost and a regularizer $\mathcal { D } _ { Z } ( P _ { Z } , Q _ { Z } )$ penalizing a discrepancy between two distributions in $\mathcal { Z }$ : $P _ { Z }$ and a distribution of encoded data points, i.e. $Q _ { Z } \backslash = \dot { \mathbb { E } } _ { P _ { X } } [ Q ( Z | X ) ]$ . When $c$ is the squared cost and $\mathcal { D } _ { Z }$ is the GAN objective, WAE coincides with adversarial auto-encoders of Makhzani et al. (2016). Empirical evaluation of WAE on MNIST and CelebA datasets with squared cost $c ( x , y ) =$ $\| x - y \| _ { 2 } ^ { 2 }$ . Our experiments show that WAE keeps the good properties of VAEs (stable training, encoder-decoder architecture, and a nice latent manifold structure) while generating samples of better quality, approaching those of GANs.
32
+ • We propose and examine two different regularizers $\mathcal { D } _ { Z } ( P _ { Z } , Q _ { Z } )$ . One is based on GANs and adversarial training in the latent space $\mathcal { Z }$ . The other uses the maximum mean discrepancy, which is known to perform well when matching high-dimensional standard normal distributions $P _ { Z }$ (Gretton et al., 2012). Importantly, the second option leads to a fully adversary-free min-min optimization problem.
33
+ • Finally, the theoretical considerations presented in Bousquet et al. (2017) and used here to derive the WAE objective might be interesting in their own right. In particular, Theorem 1 shows that in the case of generative models, the primal form of $W _ { c } ( P _ { X } , P _ { G } )$ is equivalent to a problem involving the optimization of a probabilistic encoder $Q ( Z | X )$ .
34
+
35
+ The paper is structured as follows. In Section 2 we review a novel auto-encoder formulation for OT between $P _ { X }$ and the latent variable model $P _ { G }$ derived in Bousquet et al. (2017). Relaxing the resulting constrained optimization problem we arrive at an objective of Wasserstein auto-encoders. We propose two different regularizers, leading to WAE-GAN and WAE-MMD algorithms. Section 3 discusses the related work. We present the experimental results in Section 4 and conclude by pointing out some promising directions for future work.
36
+
37
+ # 2 PROPOSED METHOD
38
+
39
+ Our new method minimizes the optimal transport cost $W _ { c } ( P _ { X } , P _ { G } )$ based on the novel auto-encoder formulation (see Theorem 1 below). In the resulting optimization problem the decoder tries to accurately reconstruct the encoded training examples as measured by the cost function $c$ . The encoder tries to simultaneously achieve two conflicting goals: it tries to match the encoded distribution of training examples ${ \dot { Q } } _ { Z } : = \mathbb { E } _ { P _ { X } } [ Q ( Z | X ) ]$ to the prior $P _ { Z }$ as measured by any specified divergence $\mathcal { D } _ { Z } ( Q _ { Z } , P _ { Z } )$ , while making sure that the latent codes provided to the decoder are informative enough to reconstruct the encoded training examples. This is schematically depicted on Fig. 1.
40
+
41
+ # 2.1 PRELIMINARIES AND NOTATIONS
42
+
43
+ We use calligraphic letters (i.e. $\mathcal { X } )$ for sets, capital letters (i.e. $X )$ for random variables, and lower case letters (i.e. $x _ { \mathrm { . } }$ ) for their values. We denote probability distributions with capital letters (i.e. $P ( X ) )$ and corresponding densities with lower case letters (i.e. $p ( x ) )$ ). In this work we will consider several measures of discrepancy between probability distributions $P _ { X }$ and $P _ { G }$ . The class of $f$ -d e & Miescke, 2008) is defined b $\begin{array} { r } { D _ { f } ( P _ { X } \| P _ { G } ) : = \int f \big ( \frac { p _ { X } ( x ) } { p _ { G } ( x ) } \big ) p _ { G } ( x ) d x } \end{array}$ $f \colon ( 0 , \infty ) \to { \mathcal { R } }$ $f ( 1 ) = 0$
44
+ Kullback-Leibler $D _ { \mathrm { K L } }$ and Jensen-Shannon $D _ { \mathrm { J S } }$ divergences.
45
+
46
+ # 2.2 OPTIMAL TRANSPORT AND ITS DUAL FORMULATIONS
47
+
48
+ A rich class of divergences between probability distributions is induced by the optimal transport (OT) problem (Villani, 2003). Kantorovich’s formulation of the problem is given by
49
+
50
+ $$
51
+ W _ { c } ( P _ { X } , P _ { G } ) : = \operatorname* { i n f } _ { \Gamma \in { \mathcal { P } } ( X \sim P _ { X } , Y \sim P _ { G } ) } \mathbb { E } _ { ( X , Y ) \sim \Gamma } [ c ( X , Y ) ] ,
52
+ $$
53
+
54
+ where $c ( x , y ) \colon \mathcal { X } \times \mathcal { X } \to \mathcal { R } _ { + }$ is any measurable cost function and ${ \mathcal { P } } ( X \sim P _ { X } , Y \sim P _ { G } )$ is a set of all joint distributions of $( X , Y )$ with marginals $P _ { X }$ and $P _ { G }$ respectively. A particularly interesting case is when $( \mathcal { X } , d )$ is a metric space and $c ( x , y ) = d ^ { p } ( x , y )$ for $p \geq 1$ . In this case $W _ { p }$ , the $p$ -th root of $W _ { c }$ , is called the $p$ -Wasserstein distance.
55
+
56
+ When $c ( x , y ) = d ( x , y )$ the following Kantorovich-Rubinstein duality holds1:
57
+
58
+ $$
59
+ W _ { 1 } ( P _ { X } , P _ { G } ) = \operatorname* { s u p } _ { f \in { \mathcal { F } } _ { L } } \mathbb { E } _ { X \sim P _ { X } } [ f ( X ) ] - \mathbb { E } _ { Y \sim P _ { G } } [ f ( Y ) ] ,
60
+ $$
61
+
62
+ where $\mathcal { F } _ { L }$ is the class of all bounded 1-Lipschitz functions on $( \mathcal { X } , d )$
63
+
64
+ # 2.3 APPLICATION TO GENERATIVE MODELS: WASSERSTEIN AUTO-ENCODERS
65
+
66
+ One way to look at modern generative models like VAEs and GANs is to postulate that they are trying to minimize certain discrepancy measures between the data distribution $P _ { X }$ and the model $P _ { G }$ . Unfortunately, most of the standard divergences known in the literature, including those listed above, are hard or even impossible to compute, especially when $P _ { X }$ is unknown and $P _ { G }$ is parametrized by deep neural networks. Previous research provides several tricks to address this issue.
67
+
68
+ In case of minimizing the KL-divergence $D _ { \mathrm { K L } } ( P _ { X } , P _ { G } )$ , or equivalently maximizing the marginal log-likelihood $E _ { P _ { X } } [ \bar { \log { p _ { G } ( X ) } } ]$ , the famous variational lower bound provides a theoretically grounded framework successfully employed by VAEs (Kingma & Welling, 2014; Mescheder et al., 2017). More generally, if the goal is to minimize the $f$ -divergence $D _ { f } ( P _ { X } , P _ { G } )$ (with one example being $D _ { \mathrm { K L } } ,$ ), one can resort to its dual formulation and make use of $f$ -GANs and the adversarial training (Nowozin et al., 2016). Finally, OT cost $W _ { c } ( P _ { X } , P _ { G } )$ is yet another option, which can be, thanks to the celebrated Kantorovich-Rubinstein duality (2), expressed as an adversarial objective as implemented by the Wasserstein-GAN (Arjovsky et al., 2017). We include an extended review of all these methods in Supplementary A.
69
+
70
+ In this work we will focus on latent variable models $P _ { G }$ defined by a two-step procedure, where first a code $Z$ is sampled from a fixed distribution $P _ { Z }$ on a latent space $\mathcal { Z }$ and then $Z$ is mapped to the image $X \in \mathcal { X } \overset { = } { = } \mathcal { R } ^ { d }$ with a (possibly random) transformation. This results in a density of the form
71
+
72
+ $$
73
+ p _ { G } ( x ) : = \int _ { \mathcal { Z } } p _ { G } ( x | \boldsymbol { z } ) p _ { z } ( \boldsymbol { z } ) d \boldsymbol { z } , \quad \forall \boldsymbol { x } \in \mathcal { X } ,
74
+ $$
75
+
76
+ assuming all involved densities are properly defined. For simplicity we will focus on non-random decoders, i.e. generative models $P _ { G } ( X | Z )$ deterministically mapping $Z$ to $X = G ( Z )$ for a given map $G \colon { \mathcal { Z } } \to { \mathcal { X } }$ . Similar results for random decoders can be found in Supplementary B.1.
77
+
78
+ It turns out that under this model, the OT cost takes a simpler form as the transportation plan factors through the map $G$ : instead of finding a coupling $\Gamma$ in (1) between two random variables living in the $\mathcal { X }$ space, one distributed according to $P _ { X }$ and the other one according to $P _ { G }$ , it is sufficient to find a conditional distribution $Q ( Z | X )$ such that its $Z$ marginal $Q _ { Z } ( Z ) \setminus : = \mathbb { E } _ { X \sim P _ { X } } \left[ Q ( Z | X ) \right]$ is identical to the prior distribution $P _ { Z }$ . This is the content of the theorem below proved in Bousquet et al. (2017). To make this paper self contained we repeat the proof in Supplementary B.
79
+
80
+ Theorem 1 For $P _ { G }$ as defined above with deterministic $P _ { G } ( X | Z )$ and any function $G \colon { \mathcal { Z } } \to { \mathcal { X } }$
81
+
82
+ $$
83
+ \operatorname* { i n f } _ { \substack { \Gamma \in \mathcal { P } ( X \sim P _ { X } , Y \sim P _ { G } ) } } \mathbb { E } _ { ( X , Y ) \sim \Gamma } \left[ c \big ( X , Y \big ) \right] = \operatorname* { i n f } _ { Q \colon Q z = P _ { Z } } \mathbb { E } _ { P _ { X } } \mathbb { E } _ { Q ( Z | X ) } \left[ c \big ( X , G ( Z ) \big ) \right] ,
84
+ $$
85
+
86
+ where $Q _ { Z }$ is the marginal distribution of $Z$ when $X \sim P _ { X }$ and $Z \sim Q ( Z | X )$
87
+
88
+ This result allows us to optimize over random encoders $Q ( Z | X )$ instead of optimizing over all couplings between $X$ and $Y$ . Of course, both problems are still constrained. In order to implement a numerical solution we relax the constraints on $Q _ { Z }$ by adding a penalty to the objective. This finally leads us to the WAE objective:
89
+
90
+ $$
91
+ D _ { \mathrm { W A E } } ( P _ { X } , P _ { G } ) : = \operatorname* { i n f } _ { Q ( Z | X ) \in \mathcal { Q } } \mathbb { E } _ { P _ { X } } \mathbb { E } _ { Q ( Z | X ) } \left[ c \bigl ( X , G ( Z ) \bigr ) \right] + \lambda \cdot \mathcal { D } _ { Z } ( Q _ { Z } , P _ { Z } ) ,
92
+ $$
93
+
94
+ where $\mathcal { Q }$ is any nonparametric set of probabilistic encoders, $\mathcal { D } _ { Z }$ is an arbitrary divergence between $Q _ { Z }$ and $P _ { Z }$ , and $\lambda > 0$ is a hyperparameter. Similarly to VAE, we propose to use deep neural networks to parametrize both encoders $Q$ and decoders $G$ . Note that as opposed to VAEs, the WAE formulation allows for non-random encoders deterministically mapping inputs to their latent codes.
95
+
96
+ We propose two different penalties $\mathcal { D } _ { Z } ( Q _ { Z } , P _ { Z } )$
97
+
98
+ GAN-based $\mathcal { D } _ { Z }$ . The first option is to choose $\mathcal { D } _ { Z } ( Q _ { Z } , P _ { Z } ) = D _ { \mathrm { J S } } ( Q _ { Z } , P _ { Z } )$ and use the adversarial training to estimate it. Specifically, we introduce an adversary (discriminator) in the latent space $\mathcal { Z }$ trying to separate2 “true” points sampled from $P _ { Z }$ and “fake” ones sampled from $Q _ { Z }$ (Goodfellow et al., 2014). This results in the WAE-GAN described in Algorithm 1. Even though WAE-GAN falls back to the min-max problem, we move the adversary from the input (pixel) space $\mathcal { X }$ to the latent space $\mathcal { Z }$ . On top of that, $P _ { Z }$ may have a nice shape with a single mode (for a Gaussian prior), in which case the task should be easier than matching an unknown, complex, and possibly multi-modal distributions as usually done in GANs. This is also a reason for our second penalty:
99
+
100
+ MMD-based $\mathcal { D } _ { Z }$ . For a positive-definite reproducing kernel $k \colon \mathcal { Z } \times \mathcal { Z } \mathcal { R }$ the following expression is called the maximum mean discrepancy (MMD):
101
+
102
+ $$
103
+ \mathrm { M M D } _ { k } ( P _ { Z } , Q _ { Z } ) = \big \lVert \int _ { \mathcal { Z } } k ( z , \cdot ) d P _ { Z } ( z ) - \int _ { \mathcal { Z } } k ( z , \cdot ) d Q _ { Z } ( z ) \big \rVert _ { \mathcal { H } _ { k } } ,
104
+ $$
105
+
106
+ where $\mathcal { H } _ { k }$ is the RKHS of real-valued functions mapping $\mathcal { Z }$ to $\mathcal { R }$ . If $k$ is characteristic then ${ \mathrm { M M D } } _ { k }$ defines a metric and can be used as a divergence measure. We propose to use $\mathcal { D } _ { Z } ( P _ { Z } , Q _ { Z } ) =$ $\mathrm { M M D } _ { k } ( P _ { Z } , Q _ { Z } )$ . Fortunately, MMD has an unbiased U-statistic estimator, which can be used in conjunction with stochastic gradient descent (SGD) methods. This results in the WAE-MMD described in Algorithm 2. It is well known that the maximum mean discrepancy performs well when matching high-dimensional standard normal distributions (Gretton et al., 2012) so we expect this penalty to work especially well working with the Gaussian prior $P _ { Z }$ .
107
+
108
+ <table><tr><td>ALGORITHM1Wasserstein Auto-Encoder with GAN-based penalty (WAE-GAN).</td><td>ALGORITHM 2Wasserstein Auto-Encoder withMMD-based penalty (WAE-MMD).</td></tr><tr><td>Require:Regularization coefficient 入&gt;0. Initialize the parameters of the encoder Q, decoder Gθ,and latent discriminator Dy. while(,θ) not converged do Sample {x1,...,xn} from the training set Sample {z1,...,zn} from the prior Pz</td><td>Require:Regularization coefficient入&gt; O,char- acteristic positive-definite kernel k. Initialize the parameters of the encoder Q𝜙, decoder Gθ,and latent discriminator D. while (,0) not converged do</td></tr><tr><td>Sample zi from Q(Z|xi) fori=1,...,n Update D, by ascending:</td><td>Sample {x1,...,xn} from the training set Sample {z1,..., zn} from the prior Pz Sample z from Q(Z|xi) fori=1,...,n</td></tr><tr><td>入 n ? logDγ(zi)+log(1-Dγ(i)) n i=1</td><td>Update Q and Ge by descending: 1 n 入</td></tr><tr><td>Update Q and Ge by descending: 1 n c(xi,Ge(zi))-λ·logDγ(zi) n</td><td>c(xi,Gθ(zi)) &gt; k(ze,zj) n(n-1) n i=1 +j</td></tr><tr><td>i=1 end while</td><td>入 2入 &gt; k(2e,) + &gt; k(ze,2j) n</td></tr><tr><td></td><td>n(n-1) l≠j e,j</td></tr></table>
109
+
110
+ We point out once again that the encoders $Q _ { \phi } ( Z | x )$ in Algorithms 1 and 2 can be non-random, i.e. deterministically mapping input points to the latent codes. In this case $Q _ { \phi } ( Z | x ) = \delta _ { \mu _ { \phi } ( x ) }$ fo r a function $\mu _ { \phi } \colon \mathcal { X } \to \mathcal { Z }$ and in order to sample $\tilde { z } _ { i }$ from $Q _ { \phi } ( Z | x _ { i } )$ we just need to return $\mu _ { \phi } ( x _ { i } )$ .
111
+
112
+ # 3 RELATED WORK
113
+
114
+ Literature on auto-encoders Classical unregularized auto-encoders minimize only the reconstruction cost. This results in different training points being encoded into non-overlapping zones chaotically scattered all across the $\mathcal { Z }$ space with “holes” in between where the decoder mapping $P _ { G } ( X | Z )$ has never been trained. Overall, the encoder $Q ( Z | X )$ trained in this way does not provide a useful representation and sampling from the latent space $\mathcal { Z }$ becomes hard (Bengio et al., 2013).
115
+
116
+ Variational auto-encoders (Kingma & Welling, 2014) minimize a variational bound on the KLdivergence $D _ { \mathrm { K L } } ( P _ { X } , P _ { G } )$ which is composed of the reconstruction cost plus the regularizer $\mathbb { E } _ { P _ { X } } \left[ D _ { \mathrm { K L } } ( Q ( Z | X ) , P _ { Z } ) \right]$ . The regularizer captures how distinct the image by the encoder of each training example is from the prior $P _ { Z }$ , which is not guaranteeing that the overall encoded distribution $\mathbb { E } _ { P _ { X } }$ $\mathinner { \langle { Q \mathopen { \left( Z \vert X \right) } } \rvert }$ matches $P _ { Z }$ like WAE does. Also, VAEs require non-degenerate (i.e. nondeterministic) Gaussian encoders and random decoders for which the term $\log p _ { G } ( x | z )$ can be computed and differentiated with respect to the parameters. Later Mescheder et al. (2017) proposed a way to use VAE with non-Gaussian encoders. WAE minimizes the optimal transport $W _ { c } ( P _ { X } , P _ { G } )$ and allows both probabilistic and deterministic encoder-decoder pairs of any kind.
117
+
118
+ The VAE regularizer can be also equivalently written (Hoffman & Johnson, 2016) as a sum of $D _ { \mathrm { K L } } ( Q _ { Z } , P _ { Z } )$ and a mutual information $\mathbb { I } _ { Q } ( X , Z )$ between the images $X$ and latent codes $Z$ jointly distributed according to $P _ { X } \times Q ( Z | X )$ . This observation provides another intuitive way to explain a difference between our algorithm and VAEs: WAEs simply drop the mutual information term $\mathbb { I } _ { Q } ( X , Z )$ in the VAE regularizer.
119
+
120
+ When used with $c ( x , y ) = \| x - y \| _ { 2 } ^ { 2 }$ WAE-GAN is equivalent to adversarial auto-encoders (AAE) proposed by Makhzani et al. (2016). Theory of Bousquet et al. (2017) (and in particular Theorem 1) thus suggests that AAEs minimize the 2-Wasserstein distance between $P _ { X }$ and $P _ { G }$ . This provides the first theoretical justification for AAEs known to the authors. WAE generalizes AAE in two ways: first, it can use any cost function $c$ in the input space $\mathcal { X }$ ; second, it can use any discrepancy measure $\mathcal { D } _ { Z }$ in the latent space $\mathcal { Z }$ (for instance MMD), not necessarily the adversarial one of WAE-GAN.
121
+
122
+ Finally, Zhao et al. (2017b) independently proposed a regularized auto-encoder objective similar to Bousquet et al. (2017) and our (4) based on very different motivations and arguments. Following
123
+
124
+ VAEs their objective (called InfoVAE) defines the reconstruction cost in the image space implicitly through the negative log likelihood term $- \log p _ { G } ( x | z )$ , which should be properly normalized for all $z \in { \mathcal { Z } }$ . In theory VAE and InfoVAE can both induce arbitrary cost functions, however in practice this may require an estimation of the normalizing constant (partition function) which can3 be different for different values of $z$ . WAEs specify the cost $c ( x , y )$ explicitly and don’t constrain it in any way.
125
+
126
+ Literature on OT Genevay et al. (2016) address computing the OT cost in large scale using SGD and sampling. They approach this task either through the dual formulation, or via a regularized version of the primal. They do not discuss any implications for generative modeling. Our approach is based on the primal form of OT, we arrive at regularizers which are very different, and our main focus is on generative modeling.
127
+
128
+ The WGAN (Arjovsky et al., 2017) minimizes the 1-Wasserstein distance $W _ { 1 } ( P _ { X } , P _ { G } )$ for generative modeling. The authors approach this task from the dual form. Their algorithm comes without an encoder and can not be readily applied to any other cost $W _ { c }$ , because the neat form of the Kantorovich-Rubinstein duality (2) holds only for $W _ { 1 }$ . WAE approaches the same problem from the primal form, can be applied for any cost function $c$ , and comes naturally with an encoder.
129
+
130
+ In order to compute the values (1) or (2) of OT we need to handle non-trivial constraints, either on the coupling distribution $\Gamma$ or on the function $f$ being considered. Various approaches have been proposed in the literature to circumvent this difficulty. For $W _ { 1 }$ Arjovsky et al. (2017) tried to implement the constraint in the dual formulation (2) by clipping the weights of the neural network $f$ . Later Gulrajani et al. (2017) proposed to relax the same constraint by penalizing the objective of (2) with a term $\lambda \cdot \mathbb { E } \left( \left\| \nabla f ( X ) \right\| - 1 \right) ^ { 2 }$ which should not be greater than 1 if $f \in \mathcal { F } _ { L }$ . In a more general OT setting of $W _ { c }$ Cuturi (2013) proposed to penalize the objective of (1) with the KLdivergence $\lambda \cdot D _ { \mathrm { K L } } ( \Gamma , P \otimes Q )$ between the coupling distribution and the product of marginals. Genevay et al. (2016) showed that this entropic regularization drops the constraints on functions in the dual formulation as opposed to (2). Finally, in the context of unbalanced optimal transport it has been proposed to relax the constraint in (1) by regularizing the objective with $\lambda \cdot \left( D _ { f } ( \Gamma _ { X } , \mathbf { \bar { \Gamma } } ^ { } P ) + \right.$ $D _ { f } ( \Gamma _ { Y } , Q ) )$ (Chizat et al., 2015; Liero et al., 2015), where $\Gamma _ { X }$ and $\Gamma _ { Y }$ are marginals of $\Gamma$ . In this paper we propose to relax OT in a way similar to the unbalanced optimal transport, i.e. by adding additional divergences to the objective. However, we show that in the particular context of generative modeling, only one extra divergence is necessary.
131
+
132
+ Literature on GANs Many of the GAN variations (including $f$ -GAN and WGAN) come without an encoder. Often it may be desirable to reconstruct the latent codes and use the learned manifold, in which cases these models are not applicable.
133
+
134
+ There have been many other approaches trying to blend the adversarial training of GANs with autoencoder architectures (Zhao et al., $2 0 1 7 \mathrm { a }$ ; Dumoulin et al., 2017; Ulyanov et al., 2017; Berthelot et al., 2017). The approach proposed by Ulyanov et al. (2017) is perhaps the most relevant to our work. The authors use the discrepancy between $Q _ { Z }$ and the distribution $\mathbb { E } _ { Z ^ { \prime } \sim P _ { Z } } [ Q \left( Z | G ( Z ^ { \prime } ) \right) ]$ of auto-encoded noise vectors as the objective for the max-min game between the encoder and decoder respectively. While the authors showed that the saddle points correspond to $P _ { X } = P _ { G }$ , they admit that encoders and decoders trained in this way have no incentive to be reciprocal. As a workaround they propose to include an additional reconstruction term to the objective. WAE does not necessarily lead to a min-max game, uses a different penalty, and has a clear theoretical foundation.
135
+
136
+ Several works used reproducing kernels in context of GANs. Li et al. (2015); Dziugaite et al. (2015) use MMD with a fixed kernel $k$ to match $P _ { X }$ and $P _ { G }$ directly in the input space $\mathcal { X }$ . These methods have been criticised to require larger mini-batches during training: estimating $\mathrm { M M D } _ { k } ( P _ { X } , P _ { G } )$ requires number of samples roughly proportional to the dimensionality of the input space $\mathcal { X }$ (Reddi et al., 2015) which is typically larger than $1 0 ^ { 3 }$ . Li et al. (2017) take a similar approach but further train $k$ adversarially so as to arrive at a meaningful loss function. WAE-MMD uses MMD to match $Q _ { Z }$ to the prior $P _ { Z }$ in the latent space $\mathcal { Z }$ . Typically $\mathcal { Z }$ has no more than 100 dimensions and $P _ { Z }$ is Gaussian, which allows us to use regular mini-batch sizes to accurately estimate MMD.
137
+
138
+ ![](images/ba6eb123cbe974ac8bc98667fc71d8053d7e708a6c4e49eac087dd03ed3734c6.jpg)
139
+ Figure 2: VAE (left column), WAE-MMD (middle column), and WAE-GAN (right column) trained on MNIST dataset. In “test reconstructions” odd rows correspond to the real test points.
140
+
141
+ # 4 EXPERIMENTS
142
+
143
+ In this section we empirically evaluate4 the proposed WAE model. We would like to test if WAE can simultaneously achieve (i) accurate reconstructions of data points, (ii) reasonable geometry of the latent manifold, and (iii) random samples of good (visual) quality. Importantly, the model should generalize well: requirements (i) and (ii) should be met on both training and test data. We trained WAE-GAN and WAE-MMD (Algorithms 1 and 2) on two real-world datasets: MNIST (LeCun et al., 1998) consisting of $7 0 \mathrm { k }$ images and CelebA (Liu et al., 2015) containing roughly 203k images.
144
+
145
+ Experimental setup In all reported experiments we used Euclidian latent spaces $\mathcal { Z } \ = \ \mathcal { R } ^ { d _ { z } }$ for various $d _ { z }$ depending on the complexity of the dataset, isotropic Gaussian prior distributions $P _ { Z } ( Z ) = \mathcal { N } ( Z ; \mathbf { 0 } , \sigma _ { z } ^ { 2 } \cdot I _ { d } )$ over $\mathcal { Z }$ , and a squared cost function $c ( \bar { x } , y ) = \| x - \bar { y } \| _ { 2 } ^ { 2 }$ for data points $x , y \in \mathcal { X } = \mathcal { R } ^ { d _ { x } }$ . We used deterministic encoder-decoder pairs, Adam (Kingma & Lei, 2014) with $\beta _ { 1 } = 0 . 5 , \beta _ { 2 } = 0 . 9 9 9$ , and convolutional deep neural network architectures for encoder mapping $\mu _ { \phi } \colon \mathcal { X } \to \mathcal { Z }$ and decoder mapping $G _ { \theta } \colon { \mathcal { Z } } \to { \mathcal { X } }$ similar to the DCGAN ones reported by Radford et al. (2016) with batch normalization (Ioffe & Szegedy, 2015). We tried various values of $\lambda$ and noticed that $\lambda = 1 0$ seems to work good across all datasets we considered.
146
+
147
+ Since we are using deterministic encoders, choosing $d _ { z }$ larger than intrinsic dimensionality of the dataset would force the encoded distribution $Q _ { Z }$ to live on a manifold in $\mathcal { Z }$ . This would make matching $Q _ { Z }$ to $P _ { Z }$ impossible if $P _ { Z }$ is Gaussian and may lead to numerical instabilities. We use $d _ { z } = 8$ for MNIST and $d _ { z } = 6 4$ for CelebA which seems to work reasonably well.
148
+
149
+ ![](images/5f9154f809ae2eb7b1b03217d0ca3922df4a01f90d50874364f5a3fe74e9b6da.jpg)
150
+ Figure 3: VAE (left column), WAE-MMD (middle column), and WAE-GAN (right column) trained on CelebA dataset. In “test reconstructions” odd rows correspond to the real test points.
151
+
152
+ We also report results of VAEs. VAEs used the same latent spaces as discussed above and standard Gaussian priors $P _ { Z } = \mathcal { N } ( \mathbf { 0 } , I _ { d } )$ . We used Gaussian encoders $Q ( Z | X ) = \mathcal { N } \big ( Z ; \mu _ { \phi } ( X ) , \Sigma ( X ) \big )$ with mean $\mu _ { \phi }$ and diagonal covariance $\Sigma$ . For both MNIST and CelebA we used Bernoulli decoders parametrized by $G _ { \theta }$ . Functions $\mu _ { \phi } , \Sigma$ , and $G _ { \theta }$ were parametrized by deep nets of the same architectures as used in WAE.
153
+
154
+ WAE-GAN and WAE-MMD specifics In WAE-GAN we used discriminator $D$ composed of several fully connected layers with ReLu. We tried WAE-MMD with the RBF kernel but observed that it fails to penalize the outliers of $Q _ { Z }$ because of the quick tail decay. If the codes $\tilde { z } = \mu _ { \phi } ( x )$ for some of the training points $x \in \mathcal { X }$ end up far away from the support of $P _ { Z }$ (which may happen in the early stages of training) the corresponding terms in the U-statistic $k ( z , \tilde { z } ) = e ^ { - \| \tilde { z } - z \| _ { 2 } ^ { 2 } / \sigma _ { k } ^ { 2 } }$ will quickly approach zero and provide no gradient for those outliers. This could be avoided by choosing the kernel bandwidth $\sigma _ { k } ^ { 2 }$ in a data-dependent manner, however in this case per-minibatch U-statistic would not provide an unbiased estimate for the gradient. Instead, we used the inverse multiquadratics kernel $\bar { k } ( x , y ) = C / ( C + \| x - y \| _ { 2 } ^ { 2 } )$ which is also characteristic and has much heavier tails. In all experiments we used $C = 2 d _ { z } \sigma _ { z } ^ { 2 }$ , which is the expected squared distance between two multivariate Gaussian vectors drawn from $P _ { Z }$ . This significantly improved the performance compared to the RBF kernel (even the one with $\sigma _ { k } ^ { 2 } = 2 d _ { z } \sigma _ { z } ^ { 2 }$ ). Trained models are presented in Figures 2 and 3. Further details are presented in Supplementary C.
155
+
156
+ Random samples are generated by sampling $P _ { Z }$ and decoding the resulting noise vectors $z$ into $G _ { \theta } ( z )$ . As expected, in our experiments we observed that for both WAE-GAN and WAE-MMD the quality of samples strongly depends on how accurately $Q _ { Z }$ matches $P _ { Z }$ . To see this, notice that during training the decoder function $G _ { \theta }$ is presented only with encoded versions $\mu _ { \phi } ( X )$ of the data points $X \sim P _ { X }$ . Indeed, the decoder is trained on samples from $Q _ { Z }$ and thus there is no reason to expect good results when feeding it with samples from $P _ { Z }$ . In our experiments we noticed that even slight differences between $Q _ { Z }$ and $P _ { Z }$ may affect the quality of samples. In some cases WAE-GAN seems to lead to a better matching and generates better samples than WAE-MMD. However, due to adversarial training WAE-GAN is highly unstable, while WAE-MMD has a very stable training much like VAE.
157
+
158
+ In order to quantitatively assess the quality of the generated images, we use the Frechet Inception Distance´ introduced by Heusel et al. (2017) and report the results on CelebA in Table 1. These results confirm that the sampled images from WAE are of better quality than from VAE, and WAE-GAN gets a slightly better score than WAEMMD, which correlates with visual inspection of the images.
159
+
160
+ Table 1: FID scores for samples on CelebA (smaller is better).
161
+
162
+ <table><tr><td>Algorithm</td><td>FID</td></tr><tr><td>VAE</td><td>82</td></tr><tr><td>WAE-MMD</td><td>55</td></tr><tr><td>WAE-GAN</td><td>42</td></tr></table>
163
+
164
+ Test reconstructions and interpolations. We take random points $x$ from the held out test set and report their auto-encoded versions $G _ { \theta } ( \mu _ { \phi } ( x ) )$ . Next, pairs $( x , y )$ of different data points are sampled randomly from the held out test set and encoded: $z _ { x } = \mu _ { \phi } ( x )$ , $z _ { y } = \mu _ { \phi } ( y )$ . We linearly interpolate between $z _ { x }$ and $z _ { y }$ with equally-sized steps in the latent space and show decoded images.
165
+
166
+ # 5 CONCLUSION
167
+
168
+ Using the optimal transport cost, we have derived Wasserstein auto-encoders—a new family of algorithms for building generative models. We discussed their relations to other probabilistic modeling techniques. We conducted experiments using two particular implementations of the proposed method, showing that in comparison to VAEs, the images sampled from the trained WAE models are of better quality, without compromising the stability of training and the quality of reconstruction. Future work will include further exploration of the criteria for matching the encoded distribution $Q _ { Z }$ to the prior distribution $P _ { Z }$ , assaying the possibility of adversarially training the cost function $c$ in the input space $\mathcal { X }$ , and a theoretical analysis of the dual formulations for WAE-GAN and WAE-MMD.
169
+
170
+ # ACKNOWLEDGMENTS
171
+
172
+ The authors are thankful to Carl Johann Simon-Gabriel, Mateo Rojas-Carulla, Arthur Gretton, Paul Rubenstein, and Fei Sha for stimulating discussions.
173
+
174
+ # REFERENCES
175
+
176
+ M. Arjovsky, S. Chintala, and L. Bottou. Wasserstein GAN, 2017.
177
+ Y. Bengio, A. Courville, and P. Vincent. Representation learning: A review and new perspectives. Pattern Analysis and Machine Intelligence, 35, 2013.
178
+ D. Berthelot, T. Schumm, and L. Metz. Began: Boundary equilibrium generative adversarial networks, 2017.
179
+ O. Bousquet, S. Gelly, I. Tolstikhin, C. J. Simon-Gabriel, and B. Scholkopf. From optimal transport ¨ to generative modeling: the VEGAN cookbook, 2017.
180
+ Lenaic Chizat, Gabriel Peyre, Bernhard Schmitzer, and Franc¸ois-Xavier Vialard. Unbalanced opti- ´ mal transport: geometry and kantorovich formulation. arXiv preprint arXiv:1508.05216, 2015.
181
+ M. Cuturi. Sinkhorn distances: Lightspeed computation of optimal transport. In Advances in Neural Information Processing Systems, pp. 2292–2300, 2013.
182
+ V. Dumoulin, I. Belghazi, B. Poole, A. Lamb, M. Arjovsky, O. Mastropietro, and A. Courville. Adversarially learned inference. In ICLR, 2017.
183
+
184
+ G. K. Dziugaite, D. M. Roy, and Z. Ghahramani. Training generative neural networks via maximum mean discrepancy optimization. In UAI, 2015.
185
+
186
+ A. Genevay, M. Cuturi, G. Peyre, and F. R. Bach. Stochastic optimization for large-scale optimal ´ transport. In Advances in Neural Information Processing Systems, pp. 3432–3440, 2016.
187
+
188
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS, pp. 2672–2680, 2014.
189
+
190
+ A. Gretton, K. M. Borgwardt, M. J. Rasch, B. Scholkopf, and A. J. Smola. A kernel two-sample ¨ test. Journal of Machine Learning Research, 13:723–773, 2012.
191
+
192
+ I. Gulrajani, F. Ahmed, M. Arjovsky, V. Domoulin, and A. Courville. Improved training of wasserstein GANs, 2017.
193
+
194
+ Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, Gunter Klambauer, and ¨ Sepp Hochreiter. GANs trained by a two time-scale update rule converge to a nash equilibrium. arXiv preprint arXiv:1706.08500, 2017.
195
+
196
+ M. D. Hoffman and M. Johnson. Elbo surgery: yet another way to carve up the variational evidence lower bound. In NIPS Workshop on Advances in Approximate Bayesian Inference, 2016.
197
+
198
+ S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift, 2015.
199
+
200
+ D. P. Kingma and J. Lei. Adam: A method for stochastic optimization, 2014.
201
+
202
+ D. P. Kingma and M. Welling. Auto-encoding variational Bayes. In ICLR, 2014.
203
+
204
+ Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. In Proceedings of the IEEE, volume 86(11), pp. 2278–2324, 1998.
205
+
206
+ C. L. Li, W. C. Chang, Y. Cheng, Y. Yang, and B. Poczos. Mmd gan: Towards deeper understanding of moment matching network, 2017.
207
+
208
+ Y. Li, K. Swersky, and R. Zemel. Generative moment matching networks. In ICML, 2015.
209
+
210
+ Matthias Liero, Alexander Mielke, and Giuseppe Savare. Optimal entropy-transport problems and a ´ new hellinger-kantorovich distance between positive measures. arXiv preprint arXiv:1508.07941, 2015.
211
+
212
+ F. Liese and K.-J. Miescke. Statistical Decision Theory. Springer, 2008.
213
+
214
+ Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), 2015.
215
+
216
+ A. Makhzani, J. Shlens, N. Jaitly, and I. Goodfellow. Adversarial autoencoders. In ICLR, 2016.
217
+
218
+ L. Mescheder, S. Nowozin, and A. Geiger. Adversarial variational bayes: Unifying variational autoencoders and generative adversarial networks, 2017.
219
+
220
+ Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-GAN: Training generative neural samplers using variational divergence minimization. In NIPS, 2016.
221
+
222
+ B. Poole, A. Alemi, J. Sohl-Dickstein, and A. Angelova. Improved generator objectives for GANs, 2016.
223
+
224
+ A. Radford, L. Metz, and S. Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In ICLR, 2016.
225
+
226
+ R. Reddi, A. Ramdas, A. Singh, B. Poczos, and L. Wasserman. On the high-dimensional power of a linear-time two sample test under mean-shift alternatives. In AISTATS, 2015.
227
+
228
+ D. Ulyanov, A. Vedaldi, and V. Lempitsky. It takes (only) two: Adversarial generator-encoder networks, 2017.
229
+
230
+ C. Villani. Topics in Optimal Transportation. AMS Graduate Studies in Mathematics, 2003.
231
+
232
+ J. Zhao, M. Mathieu, and Y. LeCun. Energy-based generative adversarial network. In ICLR, 2017a.
233
+
234
+ S. Zhao, J. Song, and S. Ermon. InfoVAE: Information maximizing variational autoencoders, 2017b.
235
+
236
+ # A IMPLICIT GENERATIVE MODELS: A SHORT TOUR OF GANS AND VAES
237
+
238
+ Even though GANs and VAEs are quite different—both in terms of the conceptual frameworks and empirical performance—they share important features: (a) both can be trained by sampling from the model $P _ { G }$ without knowing an analytical form of its density and (b) both can be scaled up with SGD. As a result, it becomes possible to use highly flexible implicit models $P _ { G }$ defined by a twostep procedure, where first a code $Z$ is sampled from a fixed distribution $P _ { Z }$ on a latent space $\mathcal { Z }$ and then $Z$ is mapped to the image $G ( Z ) \in \mathcal { X } = \mathcal { R } ^ { d }$ with a (possibly random) transformation $G \colon { \mathcal { Z } } \to { \mathcal { X } }$ . This results in latent variable models $P _ { G }$ of the form (3).
239
+
240
+ These models are indeed easy to sample and, provided $G$ can be differentiated analytically with respect to its parameters, $P _ { G }$ can be trained with SGD. The field is growing rapidly and numerous variations of VAEs and GANs are available in the literature. Next we introduce and compare several of them.
241
+
242
+ The original generative adversarial network (GAN) Goodfellow et al. (2014) approach minimizes
243
+
244
+ $$
245
+ D _ { \mathrm { G A N } } ( P _ { X } , P _ { G } ) = \operatorname* { s u p } _ { T \in { \mathcal T } } \mathbb { E } _ { X \sim P _ { X } } [ \log T ( X ) ] + \mathbb { E } _ { Z \sim P _ { Z } } [ \log \left( 1 - T ( G ( Z ) ) \right) ]
246
+ $$
247
+
248
+ with respect to a deterministic decoder $G \colon { \mathcal { Z } } \to { \mathcal { X } }$ , where $\tau$ is any non-parametric class of choice. It is known that $D _ { \mathrm { G A N } } ( P _ { X } , P _ { G } ) \leq 2 \cdot D _ { \mathrm { J S } } ( P _ { X } , P _ { G } ) - \log ( 4 )$ and the inequality turns into identity in the nonparametric limit, that is when the class $\tau$ becomes rich enough to represent all functions mapping $\mathcal { X }$ to $( 0 , 1 )$ . Hence, GANs are minimizing a lower bound on the JS-divergence. However, GANs are not only linked to the JS-divergence: the $f$ -GAN approach Nowozin et al. (2016) showed that a slight modification $D _ { \mathrm { f , G A N } }$ of the objective (5) allows to lower bound any desired $f$ -divergence in a similar way. In practice, both decoder $G$ and discriminator $T$ are trained in alternating SGD steps. Stopping criteria as well as adequate evaluation of the trained GAN models remain open questions.
249
+
250
+ Recently, the authors of Arjovsky et al. (2017) argued that the 1-Wasserstein distance $W _ { 1 }$ , which is known to induce a much weaker topology than $D _ { \mathrm { J S } }$ , may be better suited for generative modeling. When $P _ { X }$ and $P _ { G }$ are supported on largely disjoint low-dimensional manifolds (which may be the case in applications), $D _ { \mathrm { K L } } , D _ { \mathrm { J S } }$ , and other strong distances between $P _ { X }$ and $P _ { G }$ max out and no longer provide useful gradients for $P _ { G }$ . This “vanishing gradient” problem necessitates complicated scheduling between the $G / T$ updates. In contrast, $W _ { 1 }$ is still sensible in these cases and provides stable gradients. The Wasserstein GAN (WGAN) minimizes
251
+
252
+ $$
253
+ D _ { \mathrm { W G A N } } ( P _ { X } , P _ { G } ) = \operatorname* { s u p } _ { T \in \mathcal { W } } \mathbb { E } _ { X \sim P _ { X } } [ T ( X ) ] - \mathbb { E } _ { Z \sim P _ { Z } } \left[ T ( G ( Z ) ) \right] ,
254
+ $$
255
+
256
+ where $\mathcal { W }$ is any subset of 1-Lipschitz functions on $\mathcal { X }$ . It follows from (2) that $D _ { \mathrm { W G A N } } ( P _ { X } , P _ { G } ) \leq$ $W _ { 1 } ( P _ { X } , P _ { G } )$ and thus WGAN is minimizing a lower bound on the 1-Wasserstein distance.
257
+
258
+ Variational auto-encoders (VAE) Kingma & Welling (2014) utilize models $P _ { G }$ of the form (3) and minimize
259
+
260
+ $$
261
+ D _ { \mathrm { V A E } } \big ( P _ { X } , P _ { G } \big ) = \operatorname* { i n f } _ { Q ( Z | X ) \in \mathcal { Q } } \mathbb { E } _ { P _ { X } } \left[ D _ { \mathrm { K L } } \big ( Q ( Z | X ) , P _ { Z } \big ) - \mathbb { E } _ { Q ( Z | X ) } [ \log p _ { G } ( X | Z ) ] \right]
262
+ $$
263
+
264
+ with respect to a random decoder mapping $P _ { G } ( X | Z )$ . The conditional distribution $P _ { G } ( X | Z )$ is often parametrized by a deep net $G$ and can have any form as long as its density $p _ { G } ( x | z )$ can be computed and differentiated with respect to the parameters of $G$ . A typical choice is to use Gaussians $P _ { G } ( X | Z ) = \mathcal { N } ( X ; G ( Z ) , \sigma ^ { \hat { 2 } } \cdot I )$ . If $\mathcal { Q }$ is the set of all conditional probability distributions $Q ( Z | X )$ , the objective of VAE coincides with the negative marginal log-likelihood $D _ { \mathrm { V A E } } ( P _ { X } , P _ { G } ) = - \mathbb { E } _ { P _ { X } } [ \log P _ { G } ( X ) ]$ . However, in order to make the $D _ { \mathrm { K L } }$ term of (6) tractable in closed form, the original implementation of VAE uses a standard normal $P _ { Z }$ and restricts $\mathcal { Q }$ to a class of Gaussian distributions $Q ( Z | X ) = { \mathcal { N } } { \big ( } Z ; \mu ( X ) , \Sigma ( X ) { \big ) }$ with mean $\mu$ and diagonal covariance $\Sigma$ parametrized by deep nets. As a consequence, VAE is minimizing an upper bound on the negative log-likelihood or, equivalently, on the KL-divergence $D _ { \mathrm { K L } } ( P _ { X } , P _ { G } )$ .
265
+
266
+ One possible way to reduce the gap between the true negative log-likelihood and the upper bound provided by $D _ { \mathrm { V A E } }$ is to enlarge the class $\mathcal { Q }$ . Adversarial variational Bayes (AVB) Mescheder et al. (2017) follows this argument by employing the idea of GANs. Given any point $x \in \mathcal { X }$ , a noise $\epsilon \sim \mathcal { N } ( 0 , 1 )$ , and any fixed transformation $e \colon \mathcal { X } \times \mathcal { R } \mathcal { Z }$ , a random variable $e ( x , \epsilon )$
267
+
268
+ implicitly defines one particular conditional distribution $Q _ { e } ( Z | X = x )$ . AVB allows $\mathcal { Q }$ to contain all such distributions for different choices of $e$ , replaces the intractable term $D _ { \mathrm { K L } } \big ( Q _ { e } ( Z | X ) , P _ { Z } \big )$ in (6) by the adversarial approximation $D _ { \mathrm { f , G A N } }$ corresponding to the KL-divergence, and proposes to minimize5
269
+
270
+ $$
271
+ D _ { \mathrm { A V B } } ( P _ { X } , P _ { G } ) = \operatorname* { i n f } _ { Q _ { \epsilon } ( Z | X ) \in \mathcal { Q } } \mathbb { E } _ { P _ { X } } \left[ D _ { \mathrm { f } , \operatorname { G A N } } \big ( Q _ { e } ( Z | X ) , P _ { Z } \big ) - \mathbb { E } _ { Q _ { \epsilon } ( Z | X ) } [ \log p _ { G } ( X | Z ) ] \right] .
272
+ $$
273
+
274
+ The $D _ { \mathrm { K L } }$ term in (6) may be viewed as a regularizer. Indeed, VAE reduces to the classical unregularized auto-encoder if this term is dropped, minimizing the reconstruction cost of the encoder-decoder pair $Q ( Z | X ) , P _ { G } ( X | Z )$ . This often results in different training points being encoded into nonoverlapping zones chaotically scattered all across the $\mathcal { Z }$ space with “holes” in between where the decoder mapping $P _ { G } ( X | Z )$ has never been trained. Overall, the encoder $Q ( Z | X )$ trained in this way does not provide a useful representation and sampling from the latent space $\mathcal { Z }$ becomes hard Bengio et al. (2013).
275
+
276
+ Adversarial auto-encoders (AAE) Makhzani et al. (2016) replace the $D _ { \mathrm { K L } }$ term in (6) with another regularizer:
277
+
278
+ $$
279
+ D _ { \mathrm { A A E } } ( P _ { X } , P _ { G } ) = \operatorname* { i n f } _ { Q ( Z | X ) \in Q } D _ { \mathrm { G A N } } ( Q _ { Z } , P _ { Z } ) - \mathbb { E } _ { P _ { X } } \mathbb { E } _ { Q ( Z | X ) } [ \log p _ { G } ( X | Z ) ] ,
280
+ $$
281
+
282
+ where $Q _ { Z }$ is the marginal distribution of $Z$ when first $X$ is sampled from $P _ { X }$ and then $Z$ is sampled from $Q ( Z | X )$ , also known as the aggregated posterior Makhzani et al. (2016). Similarly to AVB, there is no clear link to log-likelihood, as $D _ { \mathrm { A A E } } \leq D _ { \mathrm { A V B } }$ . The authors of Makhzani et al. (2016) argue that matching $Q _ { Z }$ to $P _ { Z }$ in this way ensures that there are no “holes” left in the latent space $\mathcal { Z }$ and $P _ { G } ( X | Z )$ generates reasonable samples whenever $Z \sim P _ { Z }$ . They also report an equally good performance of different types of conditional distributions $Q ( Z | X )$ , including Gaussians as used in VAEs, implicit models $Q _ { e }$ as used in AVB, and deterministic encoder mappings, i.e. $Q ( Z | X ) =$ $\delta _ { \mu ( X ) }$ with $\mu \colon \mathcal X \to \mathcal Z$ .
283
+
284
+ # B PROOF OF THEOREM 1 AND FURTHER DETAILS
285
+
286
+ We will consider certain sets of joint probability distributions of three random variables $( X , Y , Z ) \in$ $\mathcal { X } \times \mathcal { X } \times \mathcal { Z }$ . The reader may wish to think of $X$ as true images, $Y$ as images sampled from the model, and $Z$ as latent codes. We denote by $P _ { G , Z } ( Y , Z )$ a joint distribution of a variable pair $( Y , Z )$ , where $Z$ is first sampled from $P _ { Z }$ and next $Y$ from $P _ { G } ( Y | Z )$ . Note that $P _ { G }$ defined in (3) and used throughout this work is the marginal distribution of $Y$ when $( Y , Z ) \sim P _ { G , Z }$ .
287
+
288
+ In the optimal transport problem (1), we consider joint distributions $\Gamma ( X , Y )$ which are called couplings between values of $X$ and $Y$ . Because of the marginal constraint, we can write $\Gamma ( X , Y ) =$ $\bar { \Gamma } ( \bar { Y ( X ) } P _ { X } ( X )$ and we can consider $\Gamma ( Y | X )$ as a non-deterministic mapping from $X$ to $Y$ . Theorem 1. shows how to factor this mapping through $\mathcal { Z }$ , i.e., decompose it into an encoding distribution $Q ( Z | X )$ and the generating distribution $P _ { G } ( Y | Z )$ .
289
+
290
+ As in Section 2.2, $\mathcal { P } ( X \sim P _ { X } , Y \sim P _ { G } )$ denotes the set of all joint distributions of $( X , Y )$ with marginals $P _ { X } , P _ { G }$ , and likewise for $\mathcal { P } ( X \sim P _ { X } , Z \sim P _ { Z } )$ . The set of all joint distributions of $( X , Y , Z )$ such that $X \sim P _ { X }$ , $( Y , Z ) \sim P _ { G , Z }$ , and $( Y \perp \perp X ) | Z$ will be denoted by ${ \mathcal { P } } _ { X , Y , Z }$ . Finally, we denote by $\mathcal { P } _ { X , Y }$ and $\mathcal { P } _ { X , Z }$ the sets of marginals on $( X , Y )$ and $( X , Z )$ (respectively) induced by distributions in ${ \mathcal { P } } _ { X , Y , Z }$ . Note that $\mathcal { P } ( P _ { X } , P _ { G } )$ , ${ \mathcal { P } } _ { X , Y , Z }$ , and $\mathcal { P } _ { X , Y }$ depend on the choice of conditional distributions $P _ { G } ( Y | Z )$ , while $\mathcal { P } _ { X , Z }$ does not. In fact, it is easy to check that $\mathcal { P } _ { X , Z } =$ $\mathcal { P } ( X \sim P _ { X } , Z \sim P _ { Z } )$ . From the definitions it is clear that $\mathcal { P } _ { X , Y } \subseteq \mathcal { P } ( P _ { X } , P _ { G } )$ and we immediately get the following upper bound:
291
+
292
+ $$
293
+ W _ { c } ( P _ { X } , P _ { G } ) \leq W _ { c } ^ { \dagger } ( P _ { X } , P _ { G } ) : = \operatorname* { i n f } _ { P \in \mathcal { P } _ { X , Y } } \mathbb { E } _ { ( X , Y ) \sim P } \left[ c ( X , Y ) \right] .
294
+ $$
295
+
296
+ If $P _ { G } ( Y | Z )$ are Dirac measures (i.e., $Y = G ( Z ) )$ , it turns out that $\mathcal { P } _ { X , Y } = \mathcal { P } ( P _ { X } , P _ { G } )$ :
297
+
298
+ Lemma 1 $\mathcal { P } _ { X , Y } \subseteq \mathcal { P } ( P _ { X } , P _ { G } )$ with identity $i f ^ { 6 } ~ P _ { G } ( Y | Z = z )$ are Dirac for all $z \in { \mathcal { Z } }$ .
299
+
300
+ Proof The first assertion is obvious. To prove the identity, note that when $Y$ is a deterministic function of $Z$ , for any $A$ in the sigma-algebra induced by $Y$ we have $\mathbb { E } \left[ \mathbb { 1 } _ { [ Y \in A ] } | X , Z \right] = \mathbb { E } \left[ \mathbb { 1 } _ { [ Y \in A ] } | Z \right]$ . This implies $( Y \perp \perp X ) | Z$ and concludes the proof.
301
+
302
+ We are now in place to prove Theorem 1. Lemma 1 obviously leads to
303
+
304
+ $$
305
+ W _ { c } ( P _ { X } , P _ { G } ) = W _ { c } ^ { \dagger } ( P _ { X } , P _ { G } ) .
306
+ $$
307
+
308
+ The tower rule of expectation, and the conditional independence property of ${ \mathcal { P } } _ { X , Y , Z }$ implies
309
+
310
+ $$
311
+ \begin{array} { r l } & { W _ { c } ^ { \dagger } ( P _ { X } , P _ { G } ) = \underset { P \in \mathcal { P } _ { X , Y , Z } } { \operatorname* { i n f } } \mathbb { E } _ { ( X , Y , Z ) \sim P } \left[ c ( X , Y ) \right] } \\ & { \quad \quad \quad = \underset { P \in \mathcal { P } _ { X , Y , Z } } { \operatorname* { i n f } } \mathbb { E } _ { P _ { Z } } \mathbb { E } _ { X \sim P ( X \mid Z ) } \mathbb { E } _ { Y \sim P ( Y \mid Z ) } [ c ( X , Y ) ] } \\ & { \quad \quad \quad = \underset { P \in \mathcal { P } _ { X , Y , Z } } { \operatorname* { i n f } } \mathbb { E } _ { P _ { Z } } \mathbb { E } _ { X \sim P ( X \mid Z ) } \left[ c \left( X , G ( Z ) \right) \right] } \\ & { \quad \quad \quad = \underset { P \in \mathcal { P } _ { X , Z } } { \operatorname* { i n f } } \mathbb { E } _ { ( X , Z ) \sim P } \left[ c \left( X , G ( Z ) \right) \right] . } \end{array}
312
+ $$
313
+
314
+ It remains to notice that $\mathcal { P } _ { X , Z } = \mathcal { P } ( X \sim P _ { X } , Z \sim P _ { Z } )$ as stated earlier.
315
+
316
+ # B.1 RANDOM DECODERS $P _ { G } ( Y | Z )$
317
+
318
+ If the decoders are non-deterministic, Lemma 1 provides only the inclusion of sets $\mathcal { P } _ { X , Y } \subseteq \mathcal { P } ( P _ { X } , P _ { G } )$ and we get the following upper bound on the OT:
319
+
320
+ Corollary 1 Let $\mathcal { X } ~ = ~ \mathcal { R } ^ { d }$ and assume the conditional distributions $P _ { G } ( Y | Z = z )$ have mean values $G ( z ) \in \mathcal { R } ^ { d }$ and marginal variances $\sigma _ { 1 } ^ { 2 } , \ldots , \sigma _ { d } ^ { 2 } \geq 0$ for all $z \in { \mathcal { Z } }$ , where $G \colon { \mathcal { Z } } \to { \mathcal { X } }$ . Take $c ( x , y ) = \| x - y \| _ { 2 } ^ { 2 }$ . Then
321
+
322
+ $$
323
+ W _ { c } ( P _ { X } , P _ { G } ) \leq W _ { c } ^ { \dagger } ( P _ { X } , P _ { G } ) = \sum _ { i = 1 } ^ { d } \sigma _ { i } ^ { 2 } + \operatorname* { i n f } _ { P \in \mathcal { P } ( X \setminus P _ { X } , Z \sim P _ { Z } ) } \mathbb { E } _ { ( X , Z ) \sim P } \big [ \| X - G ( Z ) \| ^ { 2 } \big ] .
324
+ $$
325
+
326
+ Proof First inequality follows from (9). For the identity we proceed similarly to the proof of Theorem 1 and write
327
+
328
+ $$
329
+ W _ { c } ^ { \dagger } ( P _ { X } , P _ { G } ) = \operatorname* { i n f } _ { P \in \mathcal { P } _ { X , Y , Z } } \mathbb { E } _ { P _ { Z } } \mathbb { E } _ { X \sim P ( X \mid Z ) } \mathbb { E } _ { Y \sim P ( Y \mid Z ) } \left[ \left\| X - Y \right\| ^ { 2 } \right] .
330
+ $$
331
+
332
+ Note that
333
+
334
+ $$
335
+ \begin{array} { l } { \mathbb { E } _ { Y \sim P ( Y \vert Z ) } \big [ \| X - Y \| ^ { 2 } \big ] = \mathbb { E } _ { Y \sim P ( Y \vert Z ) } \big [ \| X - G ( Z ) + G ( Z ) - Y \| ^ { 2 } \big ] } \\ { = \| X - G ( Z ) \| ^ { 2 } + \mathbb { E } _ { Y \sim P ( Y \vert Z ) } \big [ \langle X - G ( Z ) , G ( Z ) - Y \rangle \big ] + \mathbb { E } _ { Y \sim P ( Y \vert Z ) } \| G ( Z ) - Y \| ^ { 2 } } \\ { = \| X - G ( Z ) \| ^ { 2 } + \displaystyle \sum _ { i = 1 } ^ { d } \sigma _ { i } ^ { 2 } . } \end{array}
336
+ $$
337
+
338
+ Together with (11) and the fact that $\mathcal { P } _ { X , Z } = \mathcal { P } ( X \sim P _ { X } , Z \sim P _ { Z } )$ this concludes the proof.
339
+
340
+ # C FURTHER DETAILS ON EXPERIMENTS
341
+
342
+ # C.1 MNIST
343
+
344
+ We use mini-batches of size 100 and trained the models for 100 epochs. We used $\lambda = 1 0$ and $\sigma _ { z } ^ { 2 } = 1$ . For the encoder-decoder pair we set $\alpha = 1 0 ^ { - 3 }$ for Adam in the beginning and for the
345
+
346
+ adversary in WAE-GAN to $\alpha = 5 \times 1 0 ^ { - 4 }$ . After 30 epochs we decreased both by factor of 2, and after first 50 epochs further by factor of 5.
347
+
348
+ Both encoder and decoder used fully convolutional architectures with 4x4 convolutional filters.
349
+
350
+ Encoder architecture:
351
+
352
+ $$
353
+ \begin{array} { r l } { x \in \mathcal { R } ^ { 2 8 \times 2 8 } \mathrm { C o n v _ { 1 2 8 } } \mathrm { B N } \mathrm { R e L U } } & { } \\ { \mathrm { C o n v _ { 2 5 6 } } \mathrm { B N } \mathrm { R e L U } } & { } \\ { \mathrm { C o n v _ { 5 1 2 } } \mathrm { B N } \mathrm { R e L U } } & { } \\ { \mathrm { C o n v _ { 1 0 2 4 } } \mathrm { B N } \mathrm { R e L U } \mathrm { F C } _ { 8 } } \end{array}
354
+ $$
355
+
356
+ Decoder architecture:
357
+
358
+ $$
359
+ \begin{array} { r l } & { z \in \mathcal { R } ^ { 8 } \mathrm { F C } _ { 7 \times 7 \times 1 0 2 4 } } \\ & { \qquad \mathrm { F S C o n v } _ { 5 1 2 } \mathrm { B N } \mathrm { R e L U } } \\ & { \qquad \mathrm { F S C o n v } _ { 2 5 6 } \mathrm { B N } \mathrm { R e L U } \mathrm { F S C o n v } _ { 1 } } \end{array}
360
+ $$
361
+
362
+ Adversary architecture for WAE-GAN:
363
+
364
+ $$
365
+ \begin{array} { r l } & { z \in \mathcal { R } ^ { 8 } \mathrm { F C } _ { 5 1 2 } \mathrm { R e L U } } \\ & { ~ \mathrm { F C } _ { 5 1 2 } \mathrm { R e L U } } \\ & { ~ \mathrm { F C } _ { 5 1 2 } \mathrm { R e L U } } \\ & { ~ \mathrm { F C } _ { 5 1 2 } \mathrm { R e L U } \mathrm { F C } _ { 1 } } \end{array}
366
+ $$
367
+
368
+ Here $\operatorname { C o n v } _ { k }$ stands for a convolution with $k$ filters, $\mathrm { F S C o n v } _ { k }$ for the fractional strided convolution with $k$ filters (first two of them were doubling the resolution, the third one kept it constant), BN for the batch normalization, ReLU for the rectified linear units, and $\mathrm { F C } _ { \mathrm { k } }$ for the fully connected layer mapping to $\mathcal { R } ^ { k }$ . All the convolutions in the encoder used vertical and horizontal strides 2 and SAME padding.
369
+
370
+ Finally, we used two heuristics. First, we always pretrained separately the encoder for several minibatch steps before the main training stage so that the sample mean and covariance of $Q _ { Z }$ would try to match those of $P _ { Z }$ . Second, while training we were adding a pixel-wise Gaussian noise truncated at 0.01 to all the images before feeding them to the encoder, which was meant to make the encoders random. We played with all possible ways of combining these two heuristics and noticed that together they result in slightly (almost negligibly) better results compared to using only one or none of them.
371
+
372
+ Our VAE model used cross-entropy loss (Bernoulli decoder) and otherwise same architectures and hyperparameters as listed above.
373
+
374
+ # C.2 CELEBA
375
+
376
+ We pre-processed CelebA images by first taking a $1 4 0 \mathrm { x } 1 4 0$ center crops and then resizing to the $6 4 \mathrm { x } 6 4$ resolution. We used mini-batches of size 100 and trained the models for various number of epochs (up to 250). All reported WAE models were trained for 55 epochs and VAE for 68 epochs. For WAE-MMD we used $\lambda = 1 0 0$ and for WAE-GAN $\lambda = 1$ . Both used $\sigma _ { z } ^ { 2 } = 2$ .
377
+
378
+ For WAE-MMD the learning rate of Adam was initially set to $\alpha = 1 0 ^ { - 3 }$ . For WAE-GAN the learning rate of Adam for the encoder-decoder pair was initially set to $\alpha = 3 \times 1 0 ^ { - 4 }$ and for the adversary to $1 0 ^ { - 3 }$ . All learning rates were decreased by factor of 2 after 30 epochs, further by factor of 5 after 50 first epochs, and finally additional factor of 10 after 100 first epochs.
379
+
380
+ Both encoder and decoder used fully convolutional architectures with $5 \mathrm { x } 5$ convolutional filters.
381
+
382
+ Encoder architecture:
383
+
384
+ $$
385
+ \begin{array} { r l } & { x \in \mathcal { R } ^ { 6 4 \times 6 4 \times 3 } \to \mathrm { C o n v _ { 1 2 8 } } \to \mathrm { B N } \to \mathrm { R e L U } } \\ & { \qquad \to \mathrm { C o n v _ { 2 5 6 } } \to \mathrm { B N } \to \mathrm { R e L U } } \\ & { \qquad \to \mathrm { C o n v _ { 5 1 2 } } \to \mathrm { B N } \to \mathrm { R e L U } } \\ & { \qquad \to \mathrm { C o n v _ { 1 0 2 4 } } \to \mathrm { B N } \to \mathrm { R e L U } \to \mathrm { F C } _ { 6 4 } } \end{array}
386
+ $$
387
+
388
+ Decoder architecture:
389
+
390
+ $$
391
+ \begin{array} { r l } { z \in \mathcal { R } ^ { 6 4 } \mathrm { F C } _ { 8 \times 8 \times 1 0 2 4 } } & { } \\ { \mathrm { F S C o n v } _ { 5 1 2 } \mathrm { B N } \mathrm { R e L U } } \\ { \mathrm { F S C o n v } _ { 2 5 6 } \mathrm { B N } \mathrm { R e L U } } & { } \\ { \mathrm { F S C o n v } _ { 1 2 8 } \mathrm { B N } \mathrm { R e L U } \mathrm { F S C o n v } _ { 1 } } \end{array}
392
+ $$
393
+
394
+ Adversary architecture for WAE-GAN:
395
+
396
+ $$
397
+ \begin{array} { r l } { z \in \mathcal { R } ^ { 6 4 } \to \mathrm { F C } _ { 5 1 2 } \to \mathrm { R e L U } } \\ { \to \mathrm { F C } _ { 5 1 2 } \to \mathrm { R e L U } } \\ { \to \mathrm { F C } _ { 5 1 2 } \to \mathrm { R e L U } } \\ { \to \mathrm { F C } _ { 5 1 2 } \to \mathrm { R e L U } \to \mathrm { F C } _ { 1 } } \end{array}
398
+ $$
399
+
400
+ For WAE-GAN we used a heuristic proposed in Supplementary $\mathrm { I V }$ of Mescheder et al. (2017). Notice that the theoretically optimal discriminator would result in $D ^ { * } ( z ) = \log p _ { Z } ( z ) - \log q _ { Z } ( z )$ , where $p _ { Z }$ and $q _ { Z }$ are densities of $P _ { Z }$ and $Q _ { Z }$ respectively. In our experiments we added the log prior $\log p _ { Z } ( z )$ explicitly to the adversary output as we know it analytically. This should hopefully make it easier for the adversary to learn the remaining $Q _ { Z }$ density term.
401
+
402
+ Our VAE model used a cross-entropy reconstruction loss (Bernoulli decoder) and $\alpha = 1 0 ^ { - 4 }$ as the initial Adam learning rate and the same decay schedule as explained above. Otherwise all the architectures and hyperparameters were as explained above.
parse/train/HkL7n1-0b/HkL7n1-0b_content_list.json ADDED
@@ -0,0 +1,1956 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "WASSERSTEIN AUTO-ENCODERS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 570,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ilya Tolstikhin MPI for Intelligent Systems Tubingen, Germany ¨ ilya@tue.mpg.de ",
17
+ "bbox": [
18
+ 184,
19
+ 145,
20
+ 367,
21
+ 202
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Olivier Bousquet \nGoogle Brain \nZurich, Switzerland ¨ \nobousquet@google.com \nSylvain Gelly \nGoogle Brain \nZurich, Switzerland¨ \nsylvaingelly@google.com ",
28
+ "bbox": [
29
+ 614,
30
+ 145,
31
+ 813,
32
+ 202
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "",
39
+ "bbox": [
40
+ 184,
41
+ 222,
42
+ 411,
43
+ 279
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Bernhard Scholkopf ¨ MPI for Intelligent Systems Tubingen, Germany ¨ bs@tue.mpg.de ",
50
+ "bbox": [
51
+ 529,
52
+ 222,
53
+ 712,
54
+ 277
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "ABSTRACT ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 454,
64
+ 315,
65
+ 544,
66
+ 330
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "We propose the Wasserstein Auto-Encoder (WAE)—a new algorithm for building a generative model of the data distribution. WAE minimizes a penalized form of the Wasserstein distance between the model distribution and the target distribution, which leads to a different regularizer than the one used by the Variational Auto-Encoder (VAE) (Kingma & Welling, 2014). This regularizer encourages the encoded training distribution to match the prior. We compare our algorithm with several other techniques and show that it is a generalization of adversarial auto-encoders (AAE) (Makhzani et al., 2016). Our experiments show that WAE shares many of the properties of VAEs (stable training, encoder-decoder architecture, nice latent manifold structure) while generating samples of better quality, as measured by the FID score. ",
73
+ "bbox": [
74
+ 233,
75
+ 352,
76
+ 764,
77
+ 505
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 INTRODUCTION ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 176,
87
+ 546,
88
+ 336,
89
+ 563
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "The field of representation learning was initially driven by supervised approaches, with impressive results using large labelled datasets. Unsupervised generative modeling, in contrast, used to be a domain governed by probabilistic approaches focusing on low-dimensional data. Recent years have seen a convergence of those two approaches. In the new field that formed at the intersection, variational auto-encoders (VAEs) (Kingma & Welling, 2014) constitute one well-established approach, theoretically elegant yet with the drawback that they tend to generate blurry samples when applied to natural images. In contrast, generative adversarial networks (GANs) (Goodfellow et al., 2014) turned out to be more impressive in terms of the visual quality of images sampled from the model, but come without an encoder, have been reported harder to train, and suffer from the “mode collapse” problem where the resulting model is unable to capture all the variability in the true data distribution. There has been a flurry of activity in assaying numerous configurations of GANs as well as combinations of VAEs and GANs. A unifying framework combining the best of GANs and VAEs in a principled way is yet to be discovered. ",
96
+ "bbox": [
97
+ 174,
98
+ 583,
99
+ 825,
100
+ 763
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "This work builds up on the theoretical analysis presented in Bousquet et al. (2017). Following Arjovsky et al. (2017); Bousquet et al. (2017), we approach generative modeling from the optimal transport (OT) point of view. The OT cost (Villani, 2003) is a way to measure a distance between probability distributions and provides a much weaker topology than many others, including $f$ -divergences associated with the original GAN algorithms (Nowozin et al., 2016). This is particularly important in applications, where data is usually supported on low dimensional manifolds in the input space $\\mathcal { X }$ . As a result, stronger notions of distances (such as $f$ -divergences, which capture the density ratio between distributions) often max out, providing no useful gradients for training. In contrast, OT was claimed to have a nicer behaviour (Arjovsky et al., 2017; Gulrajani et al., 2017) although it requires, in its GAN-like implementation, the addition of a constraint or a regularization term into the objective. ",
107
+ "bbox": [
108
+ 174,
109
+ 771,
110
+ 825,
111
+ 924
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/dfbfcc5b3c4f8ecaf5bcf4d077a22aa437f7aa7791df942b76efddc7ab3c527b.jpg",
118
+ "image_caption": [
119
+ "Figure 1: Both VAE and WAE minimize two terms: the reconstruction cost and the regularizer penalizing discrepancy between $P _ { Z }$ and distribution induced by the encoder $Q$ . VAE forces $Q ( Z | X = x )$ to match $P _ { Z }$ for all the different input examples $x$ drawn from $P _ { X }$ . This is illustrated on picture (a), where every single red ball is forced to match $P _ { Z }$ depicted as the white shape. Red balls start intersecting, which leads to problems with reconstruction. In contrast, WAE forces the continuous mixture $\\begin{array} { r } { \\dot { Q _ { Z } } : = \\int Q ( Z | X ) \\dot { d } P _ { X } } \\end{array}$ to match $P _ { Z }$ , as depicted with the green ball in picture (b). As a result latent codes of different examples get a chance to stay far away from each other, promoting a better reconstruction. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 194,
124
+ 99,
125
+ 803,
126
+ 291
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "In this work we aim at minimizing OT $W _ { c } ( P _ { X } , P _ { G } )$ between the true (but unknown) data distribution $P _ { X }$ and a latent variable model $P _ { G }$ specified by the prior distribution $P _ { Z }$ of latent codes $Z \\in { \\mathcal { Z } }$ and the generative model $P _ { G } ( X | Z )$ of the data points $X \\in { \\mathcal { X } }$ given $Z$ . Our main contributions are listed below (cf. also Figure 1): ",
133
+ "bbox": [
134
+ 176,
135
+ 449,
136
+ 825,
137
+ 506
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "• A new family of regularized auto-encoders (Algorithms 1, 2 and Eq. 4), which we call Wasserstein Auto-Encoders (WAE), that minimize the optimal transport $W _ { c } ( P _ { X } , P _ { G } )$ for any cost function $c$ . Similarly to VAE, the objective of WAE is composed of two terms: the $c$ -reconstruction cost and a regularizer $\\mathcal { D } _ { Z } ( P _ { Z } , Q _ { Z } )$ penalizing a discrepancy between two distributions in $\\mathcal { Z }$ : $P _ { Z }$ and a distribution of encoded data points, i.e. $Q _ { Z } \\backslash = \\dot { \\mathbb { E } } _ { P _ { X } } [ Q ( Z | X ) ]$ . When $c$ is the squared cost and $\\mathcal { D } _ { Z }$ is the GAN objective, WAE coincides with adversarial auto-encoders of Makhzani et al. (2016). Empirical evaluation of WAE on MNIST and CelebA datasets with squared cost $c ( x , y ) =$ $\\| x - y \\| _ { 2 } ^ { 2 }$ . Our experiments show that WAE keeps the good properties of VAEs (stable training, encoder-decoder architecture, and a nice latent manifold structure) while generating samples of better quality, approaching those of GANs. \n• We propose and examine two different regularizers $\\mathcal { D } _ { Z } ( P _ { Z } , Q _ { Z } )$ . One is based on GANs and adversarial training in the latent space $\\mathcal { Z }$ . The other uses the maximum mean discrepancy, which is known to perform well when matching high-dimensional standard normal distributions $P _ { Z }$ (Gretton et al., 2012). Importantly, the second option leads to a fully adversary-free min-min optimization problem. \n• Finally, the theoretical considerations presented in Bousquet et al. (2017) and used here to derive the WAE objective might be interesting in their own right. In particular, Theorem 1 shows that in the case of generative models, the primal form of $W _ { c } ( P _ { X } , P _ { G } )$ is equivalent to a problem involving the optimization of a probabilistic encoder $Q ( Z | X )$ . ",
144
+ "bbox": [
145
+ 214,
146
+ 520,
147
+ 825,
148
+ 827
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "The paper is structured as follows. In Section 2 we review a novel auto-encoder formulation for OT between $P _ { X }$ and the latent variable model $P _ { G }$ derived in Bousquet et al. (2017). Relaxing the resulting constrained optimization problem we arrive at an objective of Wasserstein auto-encoders. We propose two different regularizers, leading to WAE-GAN and WAE-MMD algorithms. Section 3 discusses the related work. We present the experimental results in Section 4 and conclude by pointing out some promising directions for future work. ",
155
+ "bbox": [
156
+ 174,
157
+ 840,
158
+ 825,
159
+ 924
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "2 PROPOSED METHOD ",
166
+ "text_level": 1,
167
+ "bbox": [
168
+ 176,
169
+ 102,
170
+ 372,
171
+ 117
172
+ ],
173
+ "page_idx": 2
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Our new method minimizes the optimal transport cost $W _ { c } ( P _ { X } , P _ { G } )$ based on the novel auto-encoder formulation (see Theorem 1 below). In the resulting optimization problem the decoder tries to accurately reconstruct the encoded training examples as measured by the cost function $c$ . The encoder tries to simultaneously achieve two conflicting goals: it tries to match the encoded distribution of training examples ${ \\dot { Q } } _ { Z } : = \\mathbb { E } _ { P _ { X } } [ Q ( Z | X ) ]$ to the prior $P _ { Z }$ as measured by any specified divergence $\\mathcal { D } _ { Z } ( Q _ { Z } , P _ { Z } )$ , while making sure that the latent codes provided to the decoder are informative enough to reconstruct the encoded training examples. This is schematically depicted on Fig. 1. ",
178
+ "bbox": [
179
+ 173,
180
+ 133,
181
+ 825,
182
+ 233
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "2.1 PRELIMINARIES AND NOTATIONS ",
189
+ "text_level": 1,
190
+ "bbox": [
191
+ 176,
192
+ 251,
193
+ 442,
194
+ 265
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "We use calligraphic letters (i.e. $\\mathcal { X } )$ for sets, capital letters (i.e. $X )$ for random variables, and lower case letters (i.e. $x _ { \\mathrm { . } }$ ) for their values. We denote probability distributions with capital letters (i.e. $P ( X ) )$ and corresponding densities with lower case letters (i.e. $p ( x ) )$ ). In this work we will consider several measures of discrepancy between probability distributions $P _ { X }$ and $P _ { G }$ . The class of $f$ -d e & Miescke, 2008) is defined b $\\begin{array} { r } { D _ { f } ( P _ { X } \\| P _ { G } ) : = \\int f \\big ( \\frac { p _ { X } ( x ) } { p _ { G } ( x ) } \\big ) p _ { G } ( x ) d x } \\end{array}$ $f \\colon ( 0 , \\infty ) \\to { \\mathcal { R } }$ $f ( 1 ) = 0$ \nKullback-Leibler $D _ { \\mathrm { K L } }$ and Jensen-Shannon $D _ { \\mathrm { J S } }$ divergences. ",
201
+ "bbox": [
202
+ 173,
203
+ 277,
204
+ 825,
205
+ 382
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "2.2 OPTIMAL TRANSPORT AND ITS DUAL FORMULATIONS ",
212
+ "text_level": 1,
213
+ "bbox": [
214
+ 174,
215
+ 401,
216
+ 586,
217
+ 415
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "text",
223
+ "text": "A rich class of divergences between probability distributions is induced by the optimal transport (OT) problem (Villani, 2003). Kantorovich’s formulation of the problem is given by ",
224
+ "bbox": [
225
+ 171,
226
+ 428,
227
+ 821,
228
+ 457
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "equation",
234
+ "img_path": "images/d4e9d952b993474bb949c7d0c4312c3cb190b0ca448977e1d3bb429ba4007def.jpg",
235
+ "text": "$$\nW _ { c } ( P _ { X } , P _ { G } ) : = \\operatorname* { i n f } _ { \\Gamma \\in { \\mathcal { P } } ( X \\sim P _ { X } , Y \\sim P _ { G } ) } \\mathbb { E } _ { ( X , Y ) \\sim \\Gamma } [ c ( X , Y ) ] ,\n$$",
236
+ "text_format": "latex",
237
+ "bbox": [
238
+ 310,
239
+ 464,
240
+ 684,
241
+ 489
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "text",
247
+ "text": "where $c ( x , y ) \\colon \\mathcal { X } \\times \\mathcal { X } \\to \\mathcal { R } _ { + }$ is any measurable cost function and ${ \\mathcal { P } } ( X \\sim P _ { X } , Y \\sim P _ { G } )$ is a set of all joint distributions of $( X , Y )$ with marginals $P _ { X }$ and $P _ { G }$ respectively. A particularly interesting case is when $( \\mathcal { X } , d )$ is a metric space and $c ( x , y ) = d ^ { p } ( x , y )$ for $p \\geq 1$ . In this case $W _ { p }$ , the $p$ -th root of $W _ { c }$ , is called the $p$ -Wasserstein distance. ",
248
+ "bbox": [
249
+ 174,
250
+ 498,
251
+ 825,
252
+ 555
253
+ ],
254
+ "page_idx": 2
255
+ },
256
+ {
257
+ "type": "text",
258
+ "text": "When $c ( x , y ) = d ( x , y )$ the following Kantorovich-Rubinstein duality holds1: ",
259
+ "bbox": [
260
+ 174,
261
+ 561,
262
+ 684,
263
+ 577
264
+ ],
265
+ "page_idx": 2
266
+ },
267
+ {
268
+ "type": "equation",
269
+ "img_path": "images/18b31c033b1150941ed4f04e8e9e413b9559579c3c06661edc65fd560d526be3.jpg",
270
+ "text": "$$\nW _ { 1 } ( P _ { X } , P _ { G } ) = \\operatorname* { s u p } _ { f \\in { \\mathcal { F } } _ { L } } \\mathbb { E } _ { X \\sim P _ { X } } [ f ( X ) ] - \\mathbb { E } _ { Y \\sim P _ { G } } [ f ( Y ) ] ,\n$$",
271
+ "text_format": "latex",
272
+ "bbox": [
273
+ 315,
274
+ 584,
275
+ 681,
276
+ 613
277
+ ],
278
+ "page_idx": 2
279
+ },
280
+ {
281
+ "type": "text",
282
+ "text": "where $\\mathcal { F } _ { L }$ is the class of all bounded 1-Lipschitz functions on $( \\mathcal { X } , d )$ ",
283
+ "bbox": [
284
+ 174,
285
+ 621,
286
+ 627,
287
+ 636
288
+ ],
289
+ "page_idx": 2
290
+ },
291
+ {
292
+ "type": "text",
293
+ "text": "2.3 APPLICATION TO GENERATIVE MODELS: WASSERSTEIN AUTO-ENCODERS ",
294
+ "text_level": 1,
295
+ "bbox": [
296
+ 176,
297
+ 655,
298
+ 723,
299
+ 670
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "One way to look at modern generative models like VAEs and GANs is to postulate that they are trying to minimize certain discrepancy measures between the data distribution $P _ { X }$ and the model $P _ { G }$ . Unfortunately, most of the standard divergences known in the literature, including those listed above, are hard or even impossible to compute, especially when $P _ { X }$ is unknown and $P _ { G }$ is parametrized by deep neural networks. Previous research provides several tricks to address this issue. ",
306
+ "bbox": [
307
+ 174,
308
+ 681,
309
+ 825,
310
+ 752
311
+ ],
312
+ "page_idx": 2
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "In case of minimizing the KL-divergence $D _ { \\mathrm { K L } } ( P _ { X } , P _ { G } )$ , or equivalently maximizing the marginal log-likelihood $E _ { P _ { X } } [ \\bar { \\log { p _ { G } ( X ) } } ]$ , the famous variational lower bound provides a theoretically grounded framework successfully employed by VAEs (Kingma & Welling, 2014; Mescheder et al., 2017). More generally, if the goal is to minimize the $f$ -divergence $D _ { f } ( P _ { X } , P _ { G } )$ (with one example being $D _ { \\mathrm { K L } } ,$ ), one can resort to its dual formulation and make use of $f$ -GANs and the adversarial training (Nowozin et al., 2016). Finally, OT cost $W _ { c } ( P _ { X } , P _ { G } )$ is yet another option, which can be, thanks to the celebrated Kantorovich-Rubinstein duality (2), expressed as an adversarial objective as implemented by the Wasserstein-GAN (Arjovsky et al., 2017). We include an extended review of all these methods in Supplementary A. ",
317
+ "bbox": [
318
+ 173,
319
+ 757,
320
+ 825,
321
+ 883
322
+ ],
323
+ "page_idx": 2
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "In this work we will focus on latent variable models $P _ { G }$ defined by a two-step procedure, where first a code $Z$ is sampled from a fixed distribution $P _ { Z }$ on a latent space $\\mathcal { Z }$ and then $Z$ is mapped to the image $X \\in \\mathcal { X } \\overset { = } { = } \\mathcal { R } ^ { d }$ with a (possibly random) transformation. This results in a density of the form ",
328
+ "bbox": [
329
+ 173,
330
+ 103,
331
+ 825,
332
+ 146
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "equation",
338
+ "img_path": "images/3019688d70fec01fd4fd85529d1fd5d624b67899e63195cca6422579a2a212b2.jpg",
339
+ "text": "$$\np _ { G } ( x ) : = \\int _ { \\mathcal { Z } } p _ { G } ( x | \\boldsymbol { z } ) p _ { z } ( \\boldsymbol { z } ) d \\boldsymbol { z } , \\quad \\forall \\boldsymbol { x } \\in \\mathcal { X } ,\n$$",
340
+ "text_format": "latex",
341
+ "bbox": [
342
+ 357,
343
+ 152,
344
+ 638,
345
+ 185
346
+ ],
347
+ "page_idx": 3
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "assuming all involved densities are properly defined. For simplicity we will focus on non-random decoders, i.e. generative models $P _ { G } ( X | Z )$ deterministically mapping $Z$ to $X = G ( Z )$ for a given map $G \\colon { \\mathcal { Z } } \\to { \\mathcal { X } }$ . Similar results for random decoders can be found in Supplementary B.1. ",
352
+ "bbox": [
353
+ 173,
354
+ 190,
355
+ 826,
356
+ 233
357
+ ],
358
+ "page_idx": 3
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "It turns out that under this model, the OT cost takes a simpler form as the transportation plan factors through the map $G$ : instead of finding a coupling $\\Gamma$ in (1) between two random variables living in the $\\mathcal { X }$ space, one distributed according to $P _ { X }$ and the other one according to $P _ { G }$ , it is sufficient to find a conditional distribution $Q ( Z | X )$ such that its $Z$ marginal $Q _ { Z } ( Z ) \\setminus : = \\mathbb { E } _ { X \\sim P _ { X } } \\left[ Q ( Z | X ) \\right]$ is identical to the prior distribution $P _ { Z }$ . This is the content of the theorem below proved in Bousquet et al. (2017). To make this paper self contained we repeat the proof in Supplementary B. ",
363
+ "bbox": [
364
+ 173,
365
+ 239,
366
+ 825,
367
+ 324
368
+ ],
369
+ "page_idx": 3
370
+ },
371
+ {
372
+ "type": "text",
373
+ "text": "Theorem 1 For $P _ { G }$ as defined above with deterministic $P _ { G } ( X | Z )$ and any function $G \\colon { \\mathcal { Z } } \\to { \\mathcal { X } }$ ",
374
+ "bbox": [
375
+ 173,
376
+ 335,
377
+ 805,
378
+ 352
379
+ ],
380
+ "page_idx": 3
381
+ },
382
+ {
383
+ "type": "equation",
384
+ "img_path": "images/8760809b4a0490a2ea8ce6048266b52ba82d2494672ba947592689aae44a6fa0.jpg",
385
+ "text": "$$\n\\operatorname* { i n f } _ { \\substack { \\Gamma \\in \\mathcal { P } ( X \\sim P _ { X } , Y \\sim P _ { G } ) } } \\mathbb { E } _ { ( X , Y ) \\sim \\Gamma } \\left[ c \\big ( X , Y \\big ) \\right] = \\operatorname* { i n f } _ { Q \\colon Q z = P _ { Z } } \\mathbb { E } _ { P _ { X } } \\mathbb { E } _ { Q ( Z | X ) } \\left[ c \\big ( X , G ( Z ) \\big ) \\right] ,\n$$",
386
+ "text_format": "latex",
387
+ "bbox": [
388
+ 222,
389
+ 357,
390
+ 772,
391
+ 385
392
+ ],
393
+ "page_idx": 3
394
+ },
395
+ {
396
+ "type": "text",
397
+ "text": "where $Q _ { Z }$ is the marginal distribution of $Z$ when $X \\sim P _ { X }$ and $Z \\sim Q ( Z | X )$ ",
398
+ "bbox": [
399
+ 176,
400
+ 391,
401
+ 686,
402
+ 406
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "This result allows us to optimize over random encoders $Q ( Z | X )$ instead of optimizing over all couplings between $X$ and $Y$ . Of course, both problems are still constrained. In order to implement a numerical solution we relax the constraints on $Q _ { Z }$ by adding a penalty to the objective. This finally leads us to the WAE objective: ",
409
+ "bbox": [
410
+ 173,
411
+ 419,
412
+ 825,
413
+ 476
414
+ ],
415
+ "page_idx": 3
416
+ },
417
+ {
418
+ "type": "equation",
419
+ "img_path": "images/5360a52f9d5d2fbad8fcb31a5590250f91d309607420486ac7e194c2be63a660.jpg",
420
+ "text": "$$\nD _ { \\mathrm { W A E } } ( P _ { X } , P _ { G } ) : = \\operatorname* { i n f } _ { Q ( Z | X ) \\in \\mathcal { Q } } \\mathbb { E } _ { P _ { X } } \\mathbb { E } _ { Q ( Z | X ) } \\left[ c \\bigl ( X , G ( Z ) \\bigr ) \\right] + \\lambda \\cdot \\mathcal { D } _ { Z } ( Q _ { Z } , P _ { Z } ) ,\n$$",
421
+ "text_format": "latex",
422
+ "bbox": [
423
+ 238,
424
+ 481,
425
+ 759,
426
+ 507
427
+ ],
428
+ "page_idx": 3
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "where $\\mathcal { Q }$ is any nonparametric set of probabilistic encoders, $\\mathcal { D } _ { Z }$ is an arbitrary divergence between $Q _ { Z }$ and $P _ { Z }$ , and $\\lambda > 0$ is a hyperparameter. Similarly to VAE, we propose to use deep neural networks to parametrize both encoders $Q$ and decoders $G$ . Note that as opposed to VAEs, the WAE formulation allows for non-random encoders deterministically mapping inputs to their latent codes. ",
433
+ "bbox": [
434
+ 173,
435
+ 513,
436
+ 825,
437
+ 570
438
+ ],
439
+ "page_idx": 3
440
+ },
441
+ {
442
+ "type": "text",
443
+ "text": "We propose two different penalties $\\mathcal { D } _ { Z } ( Q _ { Z } , P _ { Z } )$ ",
444
+ "bbox": [
445
+ 178,
446
+ 577,
447
+ 498,
448
+ 592
449
+ ],
450
+ "page_idx": 3
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "GAN-based $\\mathcal { D } _ { Z }$ . The first option is to choose $\\mathcal { D } _ { Z } ( Q _ { Z } , P _ { Z } ) = D _ { \\mathrm { J S } } ( Q _ { Z } , P _ { Z } )$ and use the adversarial training to estimate it. Specifically, we introduce an adversary (discriminator) in the latent space $\\mathcal { Z }$ trying to separate2 “true” points sampled from $P _ { Z }$ and “fake” ones sampled from $Q _ { Z }$ (Goodfellow et al., 2014). This results in the WAE-GAN described in Algorithm 1. Even though WAE-GAN falls back to the min-max problem, we move the adversary from the input (pixel) space $\\mathcal { X }$ to the latent space $\\mathcal { Z }$ . On top of that, $P _ { Z }$ may have a nice shape with a single mode (for a Gaussian prior), in which case the task should be easier than matching an unknown, complex, and possibly multi-modal distributions as usually done in GANs. This is also a reason for our second penalty: ",
455
+ "bbox": [
456
+ 173,
457
+ 597,
458
+ 825,
459
+ 710
460
+ ],
461
+ "page_idx": 3
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "MMD-based $\\mathcal { D } _ { Z }$ . For a positive-definite reproducing kernel $k \\colon \\mathcal { Z } \\times \\mathcal { Z } \\mathcal { R }$ the following expression is called the maximum mean discrepancy (MMD): ",
466
+ "bbox": [
467
+ 171,
468
+ 715,
469
+ 821,
470
+ 744
471
+ ],
472
+ "page_idx": 3
473
+ },
474
+ {
475
+ "type": "equation",
476
+ "img_path": "images/1d5147f8e2176e1d2251c84ae0803c2fb6f0af4b7beee6cc89f3b9b737729f82.jpg",
477
+ "text": "$$\n\\mathrm { M M D } _ { k } ( P _ { Z } , Q _ { Z } ) = \\big \\lVert \\int _ { \\mathcal { Z } } k ( z , \\cdot ) d P _ { Z } ( z ) - \\int _ { \\mathcal { Z } } k ( z , \\cdot ) d Q _ { Z } ( z ) \\big \\rVert _ { \\mathcal { H } _ { k } } ,\n$$",
478
+ "text_format": "latex",
479
+ "bbox": [
480
+ 281,
481
+ 751,
482
+ 715,
483
+ 784
484
+ ],
485
+ "page_idx": 3
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "where $\\mathcal { H } _ { k }$ is the RKHS of real-valued functions mapping $\\mathcal { Z }$ to $\\mathcal { R }$ . If $k$ is characteristic then ${ \\mathrm { M M D } } _ { k }$ defines a metric and can be used as a divergence measure. We propose to use $\\mathcal { D } _ { Z } ( P _ { Z } , Q _ { Z } ) =$ $\\mathrm { M M D } _ { k } ( P _ { Z } , Q _ { Z } )$ . Fortunately, MMD has an unbiased U-statistic estimator, which can be used in conjunction with stochastic gradient descent (SGD) methods. This results in the WAE-MMD described in Algorithm 2. It is well known that the maximum mean discrepancy performs well when matching high-dimensional standard normal distributions (Gretton et al., 2012) so we expect this penalty to work especially well working with the Gaussian prior $P _ { Z }$ . ",
490
+ "bbox": [
491
+ 173,
492
+ 789,
493
+ 825,
494
+ 887
495
+ ],
496
+ "page_idx": 3
497
+ },
498
+ {
499
+ "type": "table",
500
+ "img_path": "images/bcf7713db4e4ab8f9945bd4430e63166f921e294945aa8f6d9b61f272d4dc57a.jpg",
501
+ "table_caption": [],
502
+ "table_footnote": [],
503
+ "table_body": "<table><tr><td>ALGORITHM1Wasserstein Auto-Encoder with GAN-based penalty (WAE-GAN).</td><td>ALGORITHM 2Wasserstein Auto-Encoder withMMD-based penalty (WAE-MMD).</td></tr><tr><td>Require:Regularization coefficient 入&gt;0. Initialize the parameters of the encoder Q, decoder Gθ,and latent discriminator Dy. while(,θ) not converged do Sample {x1,...,xn} from the training set Sample {z1,...,zn} from the prior Pz</td><td>Require:Regularization coefficient入&gt; O,char- acteristic positive-definite kernel k. Initialize the parameters of the encoder Q𝜙, decoder Gθ,and latent discriminator D. while (,0) not converged do</td></tr><tr><td>Sample zi from Q(Z|xi) fori=1,...,n Update D, by ascending:</td><td>Sample {x1,...,xn} from the training set Sample {z1,..., zn} from the prior Pz Sample z from Q(Z|xi) fori=1,...,n</td></tr><tr><td>入 n ? logDγ(zi)+log(1-Dγ(i)) n i=1</td><td>Update Q and Ge by descending: 1 n 入</td></tr><tr><td>Update Q and Ge by descending: 1 n c(xi,Ge(zi))-λ·logDγ(zi) n</td><td>c(xi,Gθ(zi)) &gt; k(ze,zj) n(n-1) n i=1 +j</td></tr><tr><td>i=1 end while</td><td>入 2入 &gt; k(2e,) + &gt; k(ze,2j) n</td></tr><tr><td></td><td>n(n-1) l≠j e,j</td></tr></table>",
504
+ "bbox": [
505
+ 171,
506
+ 116,
507
+ 797,
508
+ 411
509
+ ],
510
+ "page_idx": 4
511
+ },
512
+ {
513
+ "type": "text",
514
+ "text": "We point out once again that the encoders $Q _ { \\phi } ( Z | x )$ in Algorithms 1 and 2 can be non-random, i.e. deterministically mapping input points to the latent codes. In this case $Q _ { \\phi } ( Z | x ) = \\delta _ { \\mu _ { \\phi } ( x ) }$ fo r a function $\\mu _ { \\phi } \\colon \\mathcal { X } \\to \\mathcal { Z }$ and in order to sample $\\tilde { z } _ { i }$ from $Q _ { \\phi } ( Z | x _ { i } )$ we just need to return $\\mu _ { \\phi } ( x _ { i } )$ . ",
515
+ "bbox": [
516
+ 174,
517
+ 417,
518
+ 825,
519
+ 463
520
+ ],
521
+ "page_idx": 4
522
+ },
523
+ {
524
+ "type": "text",
525
+ "text": "3 RELATED WORK ",
526
+ "text_level": 1,
527
+ "bbox": [
528
+ 176,
529
+ 484,
530
+ 341,
531
+ 501
532
+ ],
533
+ "page_idx": 4
534
+ },
535
+ {
536
+ "type": "text",
537
+ "text": "Literature on auto-encoders Classical unregularized auto-encoders minimize only the reconstruction cost. This results in different training points being encoded into non-overlapping zones chaotically scattered all across the $\\mathcal { Z }$ space with “holes” in between where the decoder mapping $P _ { G } ( X | Z )$ has never been trained. Overall, the encoder $Q ( Z | X )$ trained in this way does not provide a useful representation and sampling from the latent space $\\mathcal { Z }$ becomes hard (Bengio et al., 2013). ",
538
+ "bbox": [
539
+ 174,
540
+ 517,
541
+ 823,
542
+ 588
543
+ ],
544
+ "page_idx": 4
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "Variational auto-encoders (Kingma & Welling, 2014) minimize a variational bound on the KLdivergence $D _ { \\mathrm { K L } } ( P _ { X } , P _ { G } )$ which is composed of the reconstruction cost plus the regularizer $\\mathbb { E } _ { P _ { X } } \\left[ D _ { \\mathrm { K L } } ( Q ( Z | X ) , P _ { Z } ) \\right]$ . The regularizer captures how distinct the image by the encoder of each training example is from the prior $P _ { Z }$ , which is not guaranteeing that the overall encoded distribution $\\mathbb { E } _ { P _ { X } }$ $\\mathinner { \\langle { Q \\mathopen { \\left( Z \\vert X \\right) } } \\rvert }$ matches $P _ { Z }$ like WAE does. Also, VAEs require non-degenerate (i.e. nondeterministic) Gaussian encoders and random decoders for which the term $\\log p _ { G } ( x | z )$ can be computed and differentiated with respect to the parameters. Later Mescheder et al. (2017) proposed a way to use VAE with non-Gaussian encoders. WAE minimizes the optimal transport $W _ { c } ( P _ { X } , P _ { G } )$ and allows both probabilistic and deterministic encoder-decoder pairs of any kind. ",
549
+ "bbox": [
550
+ 173,
551
+ 594,
552
+ 825,
553
+ 719
554
+ ],
555
+ "page_idx": 4
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "The VAE regularizer can be also equivalently written (Hoffman & Johnson, 2016) as a sum of $D _ { \\mathrm { K L } } ( Q _ { Z } , P _ { Z } )$ and a mutual information $\\mathbb { I } _ { Q } ( X , Z )$ between the images $X$ and latent codes $Z$ jointly distributed according to $P _ { X } \\times Q ( Z | X )$ . This observation provides another intuitive way to explain a difference between our algorithm and VAEs: WAEs simply drop the mutual information term $\\mathbb { I } _ { Q } ( X , Z )$ in the VAE regularizer. ",
560
+ "bbox": [
561
+ 174,
562
+ 727,
563
+ 825,
564
+ 796
565
+ ],
566
+ "page_idx": 4
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "When used with $c ( x , y ) = \\| x - y \\| _ { 2 } ^ { 2 }$ WAE-GAN is equivalent to adversarial auto-encoders (AAE) proposed by Makhzani et al. (2016). Theory of Bousquet et al. (2017) (and in particular Theorem 1) thus suggests that AAEs minimize the 2-Wasserstein distance between $P _ { X }$ and $P _ { G }$ . This provides the first theoretical justification for AAEs known to the authors. WAE generalizes AAE in two ways: first, it can use any cost function $c$ in the input space $\\mathcal { X }$ ; second, it can use any discrepancy measure $\\mathcal { D } _ { Z }$ in the latent space $\\mathcal { Z }$ (for instance MMD), not necessarily the adversarial one of WAE-GAN. ",
571
+ "bbox": [
572
+ 174,
573
+ 804,
574
+ 825,
575
+ 888
576
+ ],
577
+ "page_idx": 4
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "Finally, Zhao et al. (2017b) independently proposed a regularized auto-encoder objective similar to Bousquet et al. (2017) and our (4) based on very different motivations and arguments. Following ",
582
+ "bbox": [
583
+ 174,
584
+ 895,
585
+ 823,
586
+ 924
587
+ ],
588
+ "page_idx": 4
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "VAEs their objective (called InfoVAE) defines the reconstruction cost in the image space implicitly through the negative log likelihood term $- \\log p _ { G } ( x | z )$ , which should be properly normalized for all $z \\in { \\mathcal { Z } }$ . In theory VAE and InfoVAE can both induce arbitrary cost functions, however in practice this may require an estimation of the normalizing constant (partition function) which can3 be different for different values of $z$ . WAEs specify the cost $c ( x , y )$ explicitly and don’t constrain it in any way. ",
593
+ "bbox": [
594
+ 174,
595
+ 103,
596
+ 825,
597
+ 174
598
+ ],
599
+ "page_idx": 5
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "Literature on OT Genevay et al. (2016) address computing the OT cost in large scale using SGD and sampling. They approach this task either through the dual formulation, or via a regularized version of the primal. They do not discuss any implications for generative modeling. Our approach is based on the primal form of OT, we arrive at regularizers which are very different, and our main focus is on generative modeling. ",
604
+ "bbox": [
605
+ 174,
606
+ 180,
607
+ 825,
608
+ 251
609
+ ],
610
+ "page_idx": 5
611
+ },
612
+ {
613
+ "type": "text",
614
+ "text": "The WGAN (Arjovsky et al., 2017) minimizes the 1-Wasserstein distance $W _ { 1 } ( P _ { X } , P _ { G } )$ for generative modeling. The authors approach this task from the dual form. Their algorithm comes without an encoder and can not be readily applied to any other cost $W _ { c }$ , because the neat form of the Kantorovich-Rubinstein duality (2) holds only for $W _ { 1 }$ . WAE approaches the same problem from the primal form, can be applied for any cost function $c$ , and comes naturally with an encoder. ",
615
+ "bbox": [
616
+ 174,
617
+ 257,
618
+ 825,
619
+ 327
620
+ ],
621
+ "page_idx": 5
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "In order to compute the values (1) or (2) of OT we need to handle non-trivial constraints, either on the coupling distribution $\\Gamma$ or on the function $f$ being considered. Various approaches have been proposed in the literature to circumvent this difficulty. For $W _ { 1 }$ Arjovsky et al. (2017) tried to implement the constraint in the dual formulation (2) by clipping the weights of the neural network $f$ . Later Gulrajani et al. (2017) proposed to relax the same constraint by penalizing the objective of (2) with a term $\\lambda \\cdot \\mathbb { E } \\left( \\left\\| \\nabla f ( X ) \\right\\| - 1 \\right) ^ { 2 }$ which should not be greater than 1 if $f \\in \\mathcal { F } _ { L }$ . In a more general OT setting of $W _ { c }$ Cuturi (2013) proposed to penalize the objective of (1) with the KLdivergence $\\lambda \\cdot D _ { \\mathrm { K L } } ( \\Gamma , P \\otimes Q )$ between the coupling distribution and the product of marginals. Genevay et al. (2016) showed that this entropic regularization drops the constraints on functions in the dual formulation as opposed to (2). Finally, in the context of unbalanced optimal transport it has been proposed to relax the constraint in (1) by regularizing the objective with $\\lambda \\cdot \\left( D _ { f } ( \\Gamma _ { X } , \\mathbf { \\bar { \\Gamma } } ^ { } P ) + \\right.$ $D _ { f } ( \\Gamma _ { Y } , Q ) )$ (Chizat et al., 2015; Liero et al., 2015), where $\\Gamma _ { X }$ and $\\Gamma _ { Y }$ are marginals of $\\Gamma$ . In this paper we propose to relax OT in a way similar to the unbalanced optimal transport, i.e. by adding additional divergences to the objective. However, we show that in the particular context of generative modeling, only one extra divergence is necessary. ",
626
+ "bbox": [
627
+ 173,
628
+ 334,
629
+ 825,
630
+ 546
631
+ ],
632
+ "page_idx": 5
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "Literature on GANs Many of the GAN variations (including $f$ -GAN and WGAN) come without an encoder. Often it may be desirable to reconstruct the latent codes and use the learned manifold, in which cases these models are not applicable. ",
637
+ "bbox": [
638
+ 176,
639
+ 553,
640
+ 820,
641
+ 595
642
+ ],
643
+ "page_idx": 5
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "There have been many other approaches trying to blend the adversarial training of GANs with autoencoder architectures (Zhao et al., $2 0 1 7 \\mathrm { a }$ ; Dumoulin et al., 2017; Ulyanov et al., 2017; Berthelot et al., 2017). The approach proposed by Ulyanov et al. (2017) is perhaps the most relevant to our work. The authors use the discrepancy between $Q _ { Z }$ and the distribution $\\mathbb { E } _ { Z ^ { \\prime } \\sim P _ { Z } } [ Q \\left( Z | G ( Z ^ { \\prime } ) \\right) ]$ of auto-encoded noise vectors as the objective for the max-min game between the encoder and decoder respectively. While the authors showed that the saddle points correspond to $P _ { X } = P _ { G }$ , they admit that encoders and decoders trained in this way have no incentive to be reciprocal. As a workaround they propose to include an additional reconstruction term to the objective. WAE does not necessarily lead to a min-max game, uses a different penalty, and has a clear theoretical foundation. ",
648
+ "bbox": [
649
+ 174,
650
+ 603,
651
+ 825,
652
+ 728
653
+ ],
654
+ "page_idx": 5
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "Several works used reproducing kernels in context of GANs. Li et al. (2015); Dziugaite et al. (2015) use MMD with a fixed kernel $k$ to match $P _ { X }$ and $P _ { G }$ directly in the input space $\\mathcal { X }$ . These methods have been criticised to require larger mini-batches during training: estimating $\\mathrm { M M D } _ { k } ( P _ { X } , P _ { G } )$ requires number of samples roughly proportional to the dimensionality of the input space $\\mathcal { X }$ (Reddi et al., 2015) which is typically larger than $1 0 ^ { 3 }$ . Li et al. (2017) take a similar approach but further train $k$ adversarially so as to arrive at a meaningful loss function. WAE-MMD uses MMD to match $Q _ { Z }$ to the prior $P _ { Z }$ in the latent space $\\mathcal { Z }$ . Typically $\\mathcal { Z }$ has no more than 100 dimensions and $P _ { Z }$ is Gaussian, which allows us to use regular mini-batch sizes to accurately estimate MMD. ",
659
+ "bbox": [
660
+ 173,
661
+ 734,
662
+ 825,
663
+ 847
664
+ ],
665
+ "page_idx": 5
666
+ },
667
+ {
668
+ "type": "image",
669
+ "img_path": "images/ba6eb123cbe974ac8bc98667fc71d8053d7e708a6c4e49eac087dd03ed3734c6.jpg",
670
+ "image_caption": [
671
+ "Figure 2: VAE (left column), WAE-MMD (middle column), and WAE-GAN (right column) trained on MNIST dataset. In “test reconstructions” odd rows correspond to the real test points. "
672
+ ],
673
+ "image_footnote": [],
674
+ "bbox": [
675
+ 178,
676
+ 97,
677
+ 820,
678
+ 539
679
+ ],
680
+ "page_idx": 6
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "4 EXPERIMENTS ",
685
+ "text_level": 1,
686
+ "bbox": [
687
+ 176,
688
+ 603,
689
+ 326,
690
+ 619
691
+ ],
692
+ "page_idx": 6
693
+ },
694
+ {
695
+ "type": "text",
696
+ "text": "In this section we empirically evaluate4 the proposed WAE model. We would like to test if WAE can simultaneously achieve (i) accurate reconstructions of data points, (ii) reasonable geometry of the latent manifold, and (iii) random samples of good (visual) quality. Importantly, the model should generalize well: requirements (i) and (ii) should be met on both training and test data. We trained WAE-GAN and WAE-MMD (Algorithms 1 and 2) on two real-world datasets: MNIST (LeCun et al., 1998) consisting of $7 0 \\mathrm { k }$ images and CelebA (Liu et al., 2015) containing roughly 203k images. ",
697
+ "bbox": [
698
+ 174,
699
+ 635,
700
+ 825,
701
+ 718
702
+ ],
703
+ "page_idx": 6
704
+ },
705
+ {
706
+ "type": "text",
707
+ "text": "Experimental setup In all reported experiments we used Euclidian latent spaces $\\mathcal { Z } \\ = \\ \\mathcal { R } ^ { d _ { z } }$ for various $d _ { z }$ depending on the complexity of the dataset, isotropic Gaussian prior distributions $P _ { Z } ( Z ) = \\mathcal { N } ( Z ; \\mathbf { 0 } , \\sigma _ { z } ^ { 2 } \\cdot I _ { d } )$ over $\\mathcal { Z }$ , and a squared cost function $c ( \\bar { x } , y ) = \\| x - \\bar { y } \\| _ { 2 } ^ { 2 }$ for data points $x , y \\in \\mathcal { X } = \\mathcal { R } ^ { d _ { x } }$ . We used deterministic encoder-decoder pairs, Adam (Kingma & Lei, 2014) with $\\beta _ { 1 } = 0 . 5 , \\beta _ { 2 } = 0 . 9 9 9$ , and convolutional deep neural network architectures for encoder mapping $\\mu _ { \\phi } \\colon \\mathcal { X } \\to \\mathcal { Z }$ and decoder mapping $G _ { \\theta } \\colon { \\mathcal { Z } } \\to { \\mathcal { X } }$ similar to the DCGAN ones reported by Radford et al. (2016) with batch normalization (Ioffe & Szegedy, 2015). We tried various values of $\\lambda$ and noticed that $\\lambda = 1 0$ seems to work good across all datasets we considered. ",
708
+ "bbox": [
709
+ 173,
710
+ 726,
711
+ 825,
712
+ 837
713
+ ],
714
+ "page_idx": 6
715
+ },
716
+ {
717
+ "type": "text",
718
+ "text": "Since we are using deterministic encoders, choosing $d _ { z }$ larger than intrinsic dimensionality of the dataset would force the encoded distribution $Q _ { Z }$ to live on a manifold in $\\mathcal { Z }$ . This would make matching $Q _ { Z }$ to $P _ { Z }$ impossible if $P _ { Z }$ is Gaussian and may lead to numerical instabilities. We use $d _ { z } = 8$ for MNIST and $d _ { z } = 6 4$ for CelebA which seems to work reasonably well. ",
719
+ "bbox": [
720
+ 174,
721
+ 843,
722
+ 825,
723
+ 900
724
+ ],
725
+ "page_idx": 6
726
+ },
727
+ {
728
+ "type": "image",
729
+ "img_path": "images/5f9154f809ae2eb7b1b03217d0ca3922df4a01f90d50874364f5a3fe74e9b6da.jpg",
730
+ "image_caption": [
731
+ "Figure 3: VAE (left column), WAE-MMD (middle column), and WAE-GAN (right column) trained on CelebA dataset. In “test reconstructions” odd rows correspond to the real test points. "
732
+ ],
733
+ "image_footnote": [],
734
+ "bbox": [
735
+ 178,
736
+ 98,
737
+ 820,
738
+ 539
739
+ ],
740
+ "page_idx": 7
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "We also report results of VAEs. VAEs used the same latent spaces as discussed above and standard Gaussian priors $P _ { Z } = \\mathcal { N } ( \\mathbf { 0 } , I _ { d } )$ . We used Gaussian encoders $Q ( Z | X ) = \\mathcal { N } \\big ( Z ; \\mu _ { \\phi } ( X ) , \\Sigma ( X ) \\big )$ with mean $\\mu _ { \\phi }$ and diagonal covariance $\\Sigma$ . For both MNIST and CelebA we used Bernoulli decoders parametrized by $G _ { \\theta }$ . Functions $\\mu _ { \\phi } , \\Sigma$ , and $G _ { \\theta }$ were parametrized by deep nets of the same architectures as used in WAE. ",
745
+ "bbox": [
746
+ 174,
747
+ 614,
748
+ 825,
749
+ 684
750
+ ],
751
+ "page_idx": 7
752
+ },
753
+ {
754
+ "type": "text",
755
+ "text": "WAE-GAN and WAE-MMD specifics In WAE-GAN we used discriminator $D$ composed of several fully connected layers with ReLu. We tried WAE-MMD with the RBF kernel but observed that it fails to penalize the outliers of $Q _ { Z }$ because of the quick tail decay. If the codes $\\tilde { z } = \\mu _ { \\phi } ( x )$ for some of the training points $x \\in \\mathcal { X }$ end up far away from the support of $P _ { Z }$ (which may happen in the early stages of training) the corresponding terms in the U-statistic $k ( z , \\tilde { z } ) = e ^ { - \\| \\tilde { z } - z \\| _ { 2 } ^ { 2 } / \\sigma _ { k } ^ { 2 } }$ will quickly approach zero and provide no gradient for those outliers. This could be avoided by choosing the kernel bandwidth $\\sigma _ { k } ^ { 2 }$ in a data-dependent manner, however in this case per-minibatch U-statistic would not provide an unbiased estimate for the gradient. Instead, we used the inverse multiquadratics kernel $\\bar { k } ( x , y ) = C / ( C + \\| x - y \\| _ { 2 } ^ { 2 } )$ which is also characteristic and has much heavier tails. In all experiments we used $C = 2 d _ { z } \\sigma _ { z } ^ { 2 }$ , which is the expected squared distance between two multivariate Gaussian vectors drawn from $P _ { Z }$ . This significantly improved the performance compared to the RBF kernel (even the one with $\\sigma _ { k } ^ { 2 } = 2 d _ { z } \\sigma _ { z } ^ { 2 }$ ). Trained models are presented in Figures 2 and 3. Further details are presented in Supplementary C. ",
756
+ "bbox": [
757
+ 174,
758
+ 691,
759
+ 825,
760
+ 875
761
+ ],
762
+ "page_idx": 7
763
+ },
764
+ {
765
+ "type": "text",
766
+ "text": "Random samples are generated by sampling $P _ { Z }$ and decoding the resulting noise vectors $z$ into $G _ { \\theta } ( z )$ . As expected, in our experiments we observed that for both WAE-GAN and WAE-MMD the quality of samples strongly depends on how accurately $Q _ { Z }$ matches $P _ { Z }$ . To see this, notice that during training the decoder function $G _ { \\theta }$ is presented only with encoded versions $\\mu _ { \\phi } ( X )$ of the data points $X \\sim P _ { X }$ . Indeed, the decoder is trained on samples from $Q _ { Z }$ and thus there is no reason to expect good results when feeding it with samples from $P _ { Z }$ . In our experiments we noticed that even slight differences between $Q _ { Z }$ and $P _ { Z }$ may affect the quality of samples. In some cases WAE-GAN seems to lead to a better matching and generates better samples than WAE-MMD. However, due to adversarial training WAE-GAN is highly unstable, while WAE-MMD has a very stable training much like VAE. ",
767
+ "bbox": [
768
+ 176,
769
+ 882,
770
+ 823,
771
+ 924
772
+ ],
773
+ "page_idx": 7
774
+ },
775
+ {
776
+ "type": "text",
777
+ "text": "",
778
+ "bbox": [
779
+ 174,
780
+ 103,
781
+ 825,
782
+ 202
783
+ ],
784
+ "page_idx": 8
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "In order to quantitatively assess the quality of the generated images, we use the Frechet Inception Distance´ introduced by Heusel et al. (2017) and report the results on CelebA in Table 1. These results confirm that the sampled images from WAE are of better quality than from VAE, and WAE-GAN gets a slightly better score than WAEMMD, which correlates with visual inspection of the images. ",
789
+ "bbox": [
790
+ 174,
791
+ 215,
792
+ 552,
793
+ 325
794
+ ],
795
+ "page_idx": 8
796
+ },
797
+ {
798
+ "type": "table",
799
+ "img_path": "images/bb53b755aa9224ba9656ef109a4e1d971d6a6d75d2817d17ef00984c94322e3a.jpg",
800
+ "table_caption": [
801
+ "Table 1: FID scores for samples on CelebA (smaller is better). "
802
+ ],
803
+ "table_footnote": [],
804
+ "table_body": "<table><tr><td>Algorithm</td><td>FID</td></tr><tr><td>VAE</td><td>82</td></tr><tr><td>WAE-MMD</td><td>55</td></tr><tr><td>WAE-GAN</td><td>42</td></tr></table>",
805
+ "bbox": [
806
+ 617,
807
+ 217,
808
+ 772,
809
+ 290
810
+ ],
811
+ "page_idx": 8
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "Test reconstructions and interpolations. We take random points $x$ from the held out test set and report their auto-encoded versions $G _ { \\theta } ( \\mu _ { \\phi } ( x ) )$ . Next, pairs $( x , y )$ of different data points are sampled randomly from the held out test set and encoded: $z _ { x } = \\mu _ { \\phi } ( x )$ , $z _ { y } = \\mu _ { \\phi } ( y )$ . We linearly interpolate between $z _ { x }$ and $z _ { y }$ with equally-sized steps in the latent space and show decoded images. ",
816
+ "bbox": [
817
+ 174,
818
+ 333,
819
+ 823,
820
+ 388
821
+ ],
822
+ "page_idx": 8
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "5 CONCLUSION ",
827
+ "text_level": 1,
828
+ "bbox": [
829
+ 176,
830
+ 410,
831
+ 318,
832
+ 426
833
+ ],
834
+ "page_idx": 8
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "Using the optimal transport cost, we have derived Wasserstein auto-encoders—a new family of algorithms for building generative models. We discussed their relations to other probabilistic modeling techniques. We conducted experiments using two particular implementations of the proposed method, showing that in comparison to VAEs, the images sampled from the trained WAE models are of better quality, without compromising the stability of training and the quality of reconstruction. Future work will include further exploration of the criteria for matching the encoded distribution $Q _ { Z }$ to the prior distribution $P _ { Z }$ , assaying the possibility of adversarially training the cost function $c$ in the input space $\\mathcal { X }$ , and a theoretical analysis of the dual formulations for WAE-GAN and WAE-MMD. ",
839
+ "bbox": [
840
+ 174,
841
+ 443,
842
+ 825,
843
+ 554
844
+ ],
845
+ "page_idx": 8
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "ACKNOWLEDGMENTS ",
850
+ "text_level": 1,
851
+ "bbox": [
852
+ 176,
853
+ 571,
854
+ 326,
855
+ 584
856
+ ],
857
+ "page_idx": 8
858
+ },
859
+ {
860
+ "type": "text",
861
+ "text": "The authors are thankful to Carl Johann Simon-Gabriel, Mateo Rojas-Carulla, Arthur Gretton, Paul Rubenstein, and Fei Sha for stimulating discussions. ",
862
+ "bbox": [
863
+ 176,
864
+ 594,
865
+ 823,
866
+ 623
867
+ ],
868
+ "page_idx": 8
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "REFERENCES ",
873
+ "text_level": 1,
874
+ "bbox": [
875
+ 176,
876
+ 646,
877
+ 285,
878
+ 661
879
+ ],
880
+ "page_idx": 8
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "M. Arjovsky, S. Chintala, and L. Bottou. Wasserstein GAN, 2017. \nY. Bengio, A. Courville, and P. Vincent. Representation learning: A review and new perspectives. Pattern Analysis and Machine Intelligence, 35, 2013. \nD. Berthelot, T. Schumm, and L. Metz. Began: Boundary equilibrium generative adversarial networks, 2017. \nO. Bousquet, S. Gelly, I. Tolstikhin, C. J. Simon-Gabriel, and B. Scholkopf. From optimal transport ¨ to generative modeling: the VEGAN cookbook, 2017. \nLenaic Chizat, Gabriel Peyre, Bernhard Schmitzer, and Franc¸ois-Xavier Vialard. Unbalanced opti- ´ mal transport: geometry and kantorovich formulation. arXiv preprint arXiv:1508.05216, 2015. \nM. Cuturi. Sinkhorn distances: Lightspeed computation of optimal transport. In Advances in Neural Information Processing Systems, pp. 2292–2300, 2013. \nV. Dumoulin, I. Belghazi, B. Poole, A. Lamb, M. Arjovsky, O. Mastropietro, and A. Courville. Adversarially learned inference. In ICLR, 2017. ",
885
+ "bbox": [
886
+ 171,
887
+ 669,
888
+ 828,
889
+ 924
890
+ ],
891
+ "page_idx": 8
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "G. K. Dziugaite, D. M. Roy, and Z. Ghahramani. Training generative neural networks via maximum mean discrepancy optimization. In UAI, 2015. ",
896
+ "bbox": [
897
+ 169,
898
+ 103,
899
+ 823,
900
+ 132
901
+ ],
902
+ "page_idx": 9
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "A. Genevay, M. Cuturi, G. Peyre, and F. R. Bach. Stochastic optimization for large-scale optimal ´ transport. In Advances in Neural Information Processing Systems, pp. 3432–3440, 2016. ",
907
+ "bbox": [
908
+ 171,
909
+ 140,
910
+ 823,
911
+ 170
912
+ ],
913
+ "page_idx": 9
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In NIPS, pp. 2672–2680, 2014. ",
918
+ "bbox": [
919
+ 174,
920
+ 178,
921
+ 823,
922
+ 220
923
+ ],
924
+ "page_idx": 9
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "A. Gretton, K. M. Borgwardt, M. J. Rasch, B. Scholkopf, and A. J. Smola. A kernel two-sample ¨ test. Journal of Machine Learning Research, 13:723–773, 2012. ",
929
+ "bbox": [
930
+ 171,
931
+ 228,
932
+ 825,
933
+ 258
934
+ ],
935
+ "page_idx": 9
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "I. Gulrajani, F. Ahmed, M. Arjovsky, V. Domoulin, and A. Courville. Improved training of wasserstein GANs, 2017. ",
940
+ "bbox": [
941
+ 171,
942
+ 265,
943
+ 823,
944
+ 295
945
+ ],
946
+ "page_idx": 9
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, Gunter Klambauer, and ¨ Sepp Hochreiter. GANs trained by a two time-scale update rule converge to a nash equilibrium. arXiv preprint arXiv:1706.08500, 2017. ",
951
+ "bbox": [
952
+ 174,
953
+ 303,
954
+ 823,
955
+ 347
956
+ ],
957
+ "page_idx": 9
958
+ },
959
+ {
960
+ "type": "text",
961
+ "text": "M. D. Hoffman and M. Johnson. Elbo surgery: yet another way to carve up the variational evidence lower bound. In NIPS Workshop on Advances in Approximate Bayesian Inference, 2016. ",
962
+ "bbox": [
963
+ 169,
964
+ 354,
965
+ 823,
966
+ 383
967
+ ],
968
+ "page_idx": 9
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "S. Ioffe and C. Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift, 2015. ",
973
+ "bbox": [
974
+ 171,
975
+ 392,
976
+ 823,
977
+ 421
978
+ ],
979
+ "page_idx": 9
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "D. P. Kingma and J. Lei. Adam: A method for stochastic optimization, 2014. ",
984
+ "bbox": [
985
+ 174,
986
+ 429,
987
+ 679,
988
+ 445
989
+ ],
990
+ "page_idx": 9
991
+ },
992
+ {
993
+ "type": "text",
994
+ "text": "D. P. Kingma and M. Welling. Auto-encoding variational Bayes. In ICLR, 2014. ",
995
+ "bbox": [
996
+ 174,
997
+ 452,
998
+ 696,
999
+ 468
1000
+ ],
1001
+ "page_idx": 9
1002
+ },
1003
+ {
1004
+ "type": "text",
1005
+ "text": "Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. In Proceedings of the IEEE, volume 86(11), pp. 2278–2324, 1998. ",
1006
+ "bbox": [
1007
+ 173,
1008
+ 476,
1009
+ 823,
1010
+ 506
1011
+ ],
1012
+ "page_idx": 9
1013
+ },
1014
+ {
1015
+ "type": "text",
1016
+ "text": "C. L. Li, W. C. Chang, Y. Cheng, Y. Yang, and B. Poczos. Mmd gan: Towards deeper understanding of moment matching network, 2017. ",
1017
+ "bbox": [
1018
+ 176,
1019
+ 512,
1020
+ 823,
1021
+ 542
1022
+ ],
1023
+ "page_idx": 9
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "Y. Li, K. Swersky, and R. Zemel. Generative moment matching networks. In ICML, 2015. ",
1028
+ "bbox": [
1029
+ 173,
1030
+ 549,
1031
+ 767,
1032
+ 565
1033
+ ],
1034
+ "page_idx": 9
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "Matthias Liero, Alexander Mielke, and Giuseppe Savare. Optimal entropy-transport problems and a ´ new hellinger-kantorovich distance between positive measures. arXiv preprint arXiv:1508.07941, 2015. ",
1039
+ "bbox": [
1040
+ 176,
1041
+ 573,
1042
+ 826,
1043
+ 616
1044
+ ],
1045
+ "page_idx": 9
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "F. Liese and K.-J. Miescke. Statistical Decision Theory. Springer, 2008. ",
1050
+ "bbox": [
1051
+ 173,
1052
+ 625,
1053
+ 648,
1054
+ 640
1055
+ ],
1056
+ "page_idx": 9
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), 2015. ",
1061
+ "bbox": [
1062
+ 174,
1063
+ 647,
1064
+ 818,
1065
+ 678
1066
+ ],
1067
+ "page_idx": 9
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "A. Makhzani, J. Shlens, N. Jaitly, and I. Goodfellow. Adversarial autoencoders. In ICLR, 2016. ",
1072
+ "bbox": [
1073
+ 173,
1074
+ 685,
1075
+ 799,
1076
+ 702
1077
+ ],
1078
+ "page_idx": 9
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "L. Mescheder, S. Nowozin, and A. Geiger. Adversarial variational bayes: Unifying variational autoencoders and generative adversarial networks, 2017. ",
1083
+ "bbox": [
1084
+ 174,
1085
+ 708,
1086
+ 820,
1087
+ 738
1088
+ ],
1089
+ "page_idx": 9
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "Sebastian Nowozin, Botond Cseke, and Ryota Tomioka. f-GAN: Training generative neural samplers using variational divergence minimization. In NIPS, 2016. ",
1094
+ "bbox": [
1095
+ 173,
1096
+ 746,
1097
+ 821,
1098
+ 775
1099
+ ],
1100
+ "page_idx": 9
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "B. Poole, A. Alemi, J. Sohl-Dickstein, and A. Angelova. Improved generator objectives for GANs, 2016. ",
1105
+ "bbox": [
1106
+ 173,
1107
+ 784,
1108
+ 823,
1109
+ 813
1110
+ ],
1111
+ "page_idx": 9
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "A. Radford, L. Metz, and S. Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In ICLR, 2016. ",
1116
+ "bbox": [
1117
+ 173,
1118
+ 820,
1119
+ 823,
1120
+ 851
1121
+ ],
1122
+ "page_idx": 9
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "R. Reddi, A. Ramdas, A. Singh, B. Poczos, and L. Wasserman. On the high-dimensional power of a linear-time two sample test under mean-shift alternatives. In AISTATS, 2015. ",
1127
+ "bbox": [
1128
+ 174,
1129
+ 858,
1130
+ 821,
1131
+ 887
1132
+ ],
1133
+ "page_idx": 9
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "D. Ulyanov, A. Vedaldi, and V. Lempitsky. It takes (only) two: Adversarial generator-encoder networks, 2017. ",
1138
+ "bbox": [
1139
+ 176,
1140
+ 895,
1141
+ 821,
1142
+ 924
1143
+ ],
1144
+ "page_idx": 9
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "C. Villani. Topics in Optimal Transportation. AMS Graduate Studies in Mathematics, 2003. ",
1149
+ "bbox": [
1150
+ 166,
1151
+ 103,
1152
+ 779,
1153
+ 119
1154
+ ],
1155
+ "page_idx": 10
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "J. Zhao, M. Mathieu, and Y. LeCun. Energy-based generative adversarial network. In ICLR, 2017a. ",
1160
+ "bbox": [
1161
+ 174,
1162
+ 127,
1163
+ 825,
1164
+ 143
1165
+ ],
1166
+ "page_idx": 10
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "S. Zhao, J. Song, and S. Ermon. InfoVAE: Information maximizing variational autoencoders, 2017b. ",
1171
+ "bbox": [
1172
+ 173,
1173
+ 151,
1174
+ 823,
1175
+ 166
1176
+ ],
1177
+ "page_idx": 10
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "A IMPLICIT GENERATIVE MODELS: A SHORT TOUR OF GANS AND VAES ",
1182
+ "text_level": 1,
1183
+ "bbox": [
1184
+ 173,
1185
+ 102,
1186
+ 792,
1187
+ 118
1188
+ ],
1189
+ "page_idx": 11
1190
+ },
1191
+ {
1192
+ "type": "text",
1193
+ "text": "Even though GANs and VAEs are quite different—both in terms of the conceptual frameworks and empirical performance—they share important features: (a) both can be trained by sampling from the model $P _ { G }$ without knowing an analytical form of its density and (b) both can be scaled up with SGD. As a result, it becomes possible to use highly flexible implicit models $P _ { G }$ defined by a twostep procedure, where first a code $Z$ is sampled from a fixed distribution $P _ { Z }$ on a latent space $\\mathcal { Z }$ and then $Z$ is mapped to the image $G ( Z ) \\in \\mathcal { X } = \\mathcal { R } ^ { d }$ with a (possibly random) transformation $G \\colon { \\mathcal { Z } } \\to { \\mathcal { X } }$ . This results in latent variable models $P _ { G }$ of the form (3). ",
1194
+ "bbox": [
1195
+ 173,
1196
+ 132,
1197
+ 825,
1198
+ 232
1199
+ ],
1200
+ "page_idx": 11
1201
+ },
1202
+ {
1203
+ "type": "text",
1204
+ "text": "These models are indeed easy to sample and, provided $G$ can be differentiated analytically with respect to its parameters, $P _ { G }$ can be trained with SGD. The field is growing rapidly and numerous variations of VAEs and GANs are available in the literature. Next we introduce and compare several of them. ",
1205
+ "bbox": [
1206
+ 174,
1207
+ 237,
1208
+ 825,
1209
+ 292
1210
+ ],
1211
+ "page_idx": 11
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "The original generative adversarial network (GAN) Goodfellow et al. (2014) approach minimizes ",
1216
+ "bbox": [
1217
+ 173,
1218
+ 299,
1219
+ 823,
1220
+ 315
1221
+ ],
1222
+ "page_idx": 11
1223
+ },
1224
+ {
1225
+ "type": "equation",
1226
+ "img_path": "images/a59ac1d737ca8f03b353ef156dcb0aa8414c6da98612047cea30f74c36c0bb94.jpg",
1227
+ "text": "$$\nD _ { \\mathrm { G A N } } ( P _ { X } , P _ { G } ) = \\operatorname* { s u p } _ { T \\in { \\mathcal T } } \\mathbb { E } _ { X \\sim P _ { X } } [ \\log T ( X ) ] + \\mathbb { E } _ { Z \\sim P _ { Z } } [ \\log \\left( 1 - T ( G ( Z ) ) \\right) ]\n$$",
1228
+ "text_format": "latex",
1229
+ "bbox": [
1230
+ 250,
1231
+ 320,
1232
+ 746,
1233
+ 347
1234
+ ],
1235
+ "page_idx": 11
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "with respect to a deterministic decoder $G \\colon { \\mathcal { Z } } \\to { \\mathcal { X } }$ , where $\\tau$ is any non-parametric class of choice. It is known that $D _ { \\mathrm { G A N } } ( P _ { X } , P _ { G } ) \\leq 2 \\cdot D _ { \\mathrm { J S } } ( P _ { X } , P _ { G } ) - \\log ( 4 )$ and the inequality turns into identity in the nonparametric limit, that is when the class $\\tau$ becomes rich enough to represent all functions mapping $\\mathcal { X }$ to $( 0 , 1 )$ . Hence, GANs are minimizing a lower bound on the JS-divergence. However, GANs are not only linked to the JS-divergence: the $f$ -GAN approach Nowozin et al. (2016) showed that a slight modification $D _ { \\mathrm { f , G A N } }$ of the objective (5) allows to lower bound any desired $f$ -divergence in a similar way. In practice, both decoder $G$ and discriminator $T$ are trained in alternating SGD steps. Stopping criteria as well as adequate evaluation of the trained GAN models remain open questions. ",
1240
+ "bbox": [
1241
+ 173,
1242
+ 352,
1243
+ 825,
1244
+ 478
1245
+ ],
1246
+ "page_idx": 11
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Recently, the authors of Arjovsky et al. (2017) argued that the 1-Wasserstein distance $W _ { 1 }$ , which is known to induce a much weaker topology than $D _ { \\mathrm { J S } }$ , may be better suited for generative modeling. When $P _ { X }$ and $P _ { G }$ are supported on largely disjoint low-dimensional manifolds (which may be the case in applications), $D _ { \\mathrm { K L } } , D _ { \\mathrm { J S } }$ , and other strong distances between $P _ { X }$ and $P _ { G }$ max out and no longer provide useful gradients for $P _ { G }$ . This “vanishing gradient” problem necessitates complicated scheduling between the $G / T$ updates. In contrast, $W _ { 1 }$ is still sensible in these cases and provides stable gradients. The Wasserstein GAN (WGAN) minimizes ",
1251
+ "bbox": [
1252
+ 173,
1253
+ 483,
1254
+ 825,
1255
+ 582
1256
+ ],
1257
+ "page_idx": 11
1258
+ },
1259
+ {
1260
+ "type": "equation",
1261
+ "img_path": "images/11516a3278e745fdf04fed42048535c16a3a3250cb51ccdedea0ec2928ff1e7a.jpg",
1262
+ "text": "$$\nD _ { \\mathrm { W G A N } } ( P _ { X } , P _ { G } ) = \\operatorname* { s u p } _ { T \\in \\mathcal { W } } \\mathbb { E } _ { X \\sim P _ { X } } [ T ( X ) ] - \\mathbb { E } _ { Z \\sim P _ { Z } } \\left[ T ( G ( Z ) ) \\right] ,\n$$",
1263
+ "text_format": "latex",
1264
+ "bbox": [
1265
+ 282,
1266
+ 587,
1267
+ 712,
1268
+ 614
1269
+ ],
1270
+ "page_idx": 11
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "where $\\mathcal { W }$ is any subset of 1-Lipschitz functions on $\\mathcal { X }$ . It follows from (2) that $D _ { \\mathrm { W G A N } } ( P _ { X } , P _ { G } ) \\leq$ $W _ { 1 } ( P _ { X } , P _ { G } )$ and thus WGAN is minimizing a lower bound on the 1-Wasserstein distance. ",
1275
+ "bbox": [
1276
+ 174,
1277
+ 619,
1278
+ 820,
1279
+ 648
1280
+ ],
1281
+ "page_idx": 11
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "Variational auto-encoders (VAE) Kingma & Welling (2014) utilize models $P _ { G }$ of the form (3) and minimize ",
1286
+ "bbox": [
1287
+ 169,
1288
+ 655,
1289
+ 823,
1290
+ 684
1291
+ ],
1292
+ "page_idx": 11
1293
+ },
1294
+ {
1295
+ "type": "equation",
1296
+ "img_path": "images/73b2d7fec2d7342b3db2f58e91ee4dc807956f98a6dfe86d99e0a7e7e00b668d.jpg",
1297
+ "text": "$$\nD _ { \\mathrm { V A E } } \\big ( P _ { X } , P _ { G } \\big ) = \\operatorname* { i n f } _ { Q ( Z | X ) \\in \\mathcal { Q } } \\mathbb { E } _ { P _ { X } } \\left[ D _ { \\mathrm { K L } } \\big ( Q ( Z | X ) , P _ { Z } \\big ) - \\mathbb { E } _ { Q ( Z | X ) } [ \\log p _ { G } ( X | Z ) ] \\right]\n$$",
1298
+ "text_format": "latex",
1299
+ "bbox": [
1300
+ 220,
1301
+ 688,
1302
+ 776,
1303
+ 715
1304
+ ],
1305
+ "page_idx": 11
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "text": "with respect to a random decoder mapping $P _ { G } ( X | Z )$ . The conditional distribution $P _ { G } ( X | Z )$ is often parametrized by a deep net $G$ and can have any form as long as its density $p _ { G } ( x | z )$ can be computed and differentiated with respect to the parameters of $G$ . A typical choice is to use Gaussians $P _ { G } ( X | Z ) = \\mathcal { N } ( X ; G ( Z ) , \\sigma ^ { \\hat { 2 } } \\cdot I )$ . If $\\mathcal { Q }$ is the set of all conditional probability distributions $Q ( Z | X )$ , the objective of VAE coincides with the negative marginal log-likelihood $D _ { \\mathrm { V A E } } ( P _ { X } , P _ { G } ) = - \\mathbb { E } _ { P _ { X } } [ \\log P _ { G } ( X ) ]$ . However, in order to make the $D _ { \\mathrm { K L } }$ term of (6) tractable in closed form, the original implementation of VAE uses a standard normal $P _ { Z }$ and restricts $\\mathcal { Q }$ to a class of Gaussian distributions $Q ( Z | X ) = { \\mathcal { N } } { \\big ( } Z ; \\mu ( X ) , \\Sigma ( X ) { \\big ) }$ with mean $\\mu$ and diagonal covariance $\\Sigma$ parametrized by deep nets. As a consequence, VAE is minimizing an upper bound on the negative log-likelihood or, equivalently, on the KL-divergence $D _ { \\mathrm { K L } } ( P _ { X } , P _ { G } )$ . ",
1310
+ "bbox": [
1311
+ 173,
1312
+ 720,
1313
+ 825,
1314
+ 862
1315
+ ],
1316
+ "page_idx": 11
1317
+ },
1318
+ {
1319
+ "type": "text",
1320
+ "text": "One possible way to reduce the gap between the true negative log-likelihood and the upper bound provided by $D _ { \\mathrm { V A E } }$ is to enlarge the class $\\mathcal { Q }$ . Adversarial variational Bayes (AVB) Mescheder et al. (2017) follows this argument by employing the idea of GANs. Given any point $x \\in \\mathcal { X }$ , a noise $\\epsilon \\sim \\mathcal { N } ( 0 , 1 )$ , and any fixed transformation $e \\colon \\mathcal { X } \\times \\mathcal { R } \\mathcal { Z }$ , a random variable $e ( x , \\epsilon )$ ",
1321
+ "bbox": [
1322
+ 174,
1323
+ 867,
1324
+ 823,
1325
+ 924
1326
+ ],
1327
+ "page_idx": 11
1328
+ },
1329
+ {
1330
+ "type": "text",
1331
+ "text": "implicitly defines one particular conditional distribution $Q _ { e } ( Z | X = x )$ . AVB allows $\\mathcal { Q }$ to contain all such distributions for different choices of $e$ , replaces the intractable term $D _ { \\mathrm { K L } } \\big ( Q _ { e } ( Z | X ) , P _ { Z } \\big )$ in (6) by the adversarial approximation $D _ { \\mathrm { f , G A N } }$ corresponding to the KL-divergence, and proposes to minimize5 ",
1332
+ "bbox": [
1333
+ 174,
1334
+ 102,
1335
+ 825,
1336
+ 162
1337
+ ],
1338
+ "page_idx": 12
1339
+ },
1340
+ {
1341
+ "type": "equation",
1342
+ "img_path": "images/234379459d36ea6a3949d78f6e2e2e101d53bbec5ea6e1e381a3f7e12fbfbb4f.jpg",
1343
+ "text": "$$\nD _ { \\mathrm { A V B } } ( P _ { X } , P _ { G } ) = \\operatorname* { i n f } _ { Q _ { \\epsilon } ( Z | X ) \\in \\mathcal { Q } } \\mathbb { E } _ { P _ { X } } \\left[ D _ { \\mathrm { f } , \\operatorname { G A N } } \\big ( Q _ { e } ( Z | X ) , P _ { Z } \\big ) - \\mathbb { E } _ { Q _ { \\epsilon } ( Z | X ) } [ \\log p _ { G } ( X | Z ) ] \\right] .\n$$",
1344
+ "text_format": "latex",
1345
+ "bbox": [
1346
+ 187,
1347
+ 167,
1348
+ 789,
1349
+ 194
1350
+ ],
1351
+ "page_idx": 12
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "The $D _ { \\mathrm { K L } }$ term in (6) may be viewed as a regularizer. Indeed, VAE reduces to the classical unregularized auto-encoder if this term is dropped, minimizing the reconstruction cost of the encoder-decoder pair $Q ( Z | X ) , P _ { G } ( X | Z )$ . This often results in different training points being encoded into nonoverlapping zones chaotically scattered all across the $\\mathcal { Z }$ space with “holes” in between where the decoder mapping $P _ { G } ( X | Z )$ has never been trained. Overall, the encoder $Q ( Z | X )$ trained in this way does not provide a useful representation and sampling from the latent space $\\mathcal { Z }$ becomes hard Bengio et al. (2013). ",
1356
+ "bbox": [
1357
+ 173,
1358
+ 207,
1359
+ 825,
1360
+ 306
1361
+ ],
1362
+ "page_idx": 12
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "Adversarial auto-encoders (AAE) Makhzani et al. (2016) replace the $D _ { \\mathrm { K L } }$ term in (6) with another regularizer: ",
1367
+ "bbox": [
1368
+ 171,
1369
+ 311,
1370
+ 823,
1371
+ 340
1372
+ ],
1373
+ "page_idx": 12
1374
+ },
1375
+ {
1376
+ "type": "equation",
1377
+ "img_path": "images/11bed2c41516f97c0b74ab2c2d62f438bc2924db0fe43e1adcfa303325913ed1.jpg",
1378
+ "text": "$$\nD _ { \\mathrm { A A E } } ( P _ { X } , P _ { G } ) = \\operatorname* { i n f } _ { Q ( Z | X ) \\in Q } D _ { \\mathrm { G A N } } ( Q _ { Z } , P _ { Z } ) - \\mathbb { E } _ { P _ { X } } \\mathbb { E } _ { Q ( Z | X ) } [ \\log p _ { G } ( X | Z ) ] ,\n$$",
1379
+ "text_format": "latex",
1380
+ "bbox": [
1381
+ 240,
1382
+ 347,
1383
+ 756,
1384
+ 372
1385
+ ],
1386
+ "page_idx": 12
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "where $Q _ { Z }$ is the marginal distribution of $Z$ when first $X$ is sampled from $P _ { X }$ and then $Z$ is sampled from $Q ( Z | X )$ , also known as the aggregated posterior Makhzani et al. (2016). Similarly to AVB, there is no clear link to log-likelihood, as $D _ { \\mathrm { A A E } } \\leq D _ { \\mathrm { A V B } }$ . The authors of Makhzani et al. (2016) argue that matching $Q _ { Z }$ to $P _ { Z }$ in this way ensures that there are no “holes” left in the latent space $\\mathcal { Z }$ and $P _ { G } ( X | Z )$ generates reasonable samples whenever $Z \\sim P _ { Z }$ . They also report an equally good performance of different types of conditional distributions $Q ( Z | X )$ , including Gaussians as used in VAEs, implicit models $Q _ { e }$ as used in AVB, and deterministic encoder mappings, i.e. $Q ( Z | X ) =$ $\\delta _ { \\mu ( X ) }$ with $\\mu \\colon \\mathcal X \\to \\mathcal Z$ . ",
1391
+ "bbox": [
1392
+ 173,
1393
+ 378,
1394
+ 825,
1395
+ 491
1396
+ ],
1397
+ "page_idx": 12
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "B PROOF OF THEOREM 1 AND FURTHER DETAILS ",
1402
+ "text_level": 1,
1403
+ "bbox": [
1404
+ 174,
1405
+ 511,
1406
+ 598,
1407
+ 526
1408
+ ],
1409
+ "page_idx": 12
1410
+ },
1411
+ {
1412
+ "type": "text",
1413
+ "text": "We will consider certain sets of joint probability distributions of three random variables $( X , Y , Z ) \\in$ $\\mathcal { X } \\times \\mathcal { X } \\times \\mathcal { Z }$ . The reader may wish to think of $X$ as true images, $Y$ as images sampled from the model, and $Z$ as latent codes. We denote by $P _ { G , Z } ( Y , Z )$ a joint distribution of a variable pair $( Y , Z )$ , where $Z$ is first sampled from $P _ { Z }$ and next $Y$ from $P _ { G } ( Y | Z )$ . Note that $P _ { G }$ defined in (3) and used throughout this work is the marginal distribution of $Y$ when $( Y , Z ) \\sim P _ { G , Z }$ . ",
1414
+ "bbox": [
1415
+ 173,
1416
+ 541,
1417
+ 825,
1418
+ 613
1419
+ ],
1420
+ "page_idx": 12
1421
+ },
1422
+ {
1423
+ "type": "text",
1424
+ "text": "In the optimal transport problem (1), we consider joint distributions $\\Gamma ( X , Y )$ which are called couplings between values of $X$ and $Y$ . Because of the marginal constraint, we can write $\\Gamma ( X , Y ) =$ $\\bar { \\Gamma } ( \\bar { Y ( X ) } P _ { X } ( X )$ and we can consider $\\Gamma ( Y | X )$ as a non-deterministic mapping from $X$ to $Y$ . Theorem 1. shows how to factor this mapping through $\\mathcal { Z }$ , i.e., decompose it into an encoding distribution $Q ( Z | X )$ and the generating distribution $P _ { G } ( Y | Z )$ . ",
1425
+ "bbox": [
1426
+ 173,
1427
+ 618,
1428
+ 825,
1429
+ 689
1430
+ ],
1431
+ "page_idx": 12
1432
+ },
1433
+ {
1434
+ "type": "text",
1435
+ "text": "As in Section 2.2, $\\mathcal { P } ( X \\sim P _ { X } , Y \\sim P _ { G } )$ denotes the set of all joint distributions of $( X , Y )$ with marginals $P _ { X } , P _ { G }$ , and likewise for $\\mathcal { P } ( X \\sim P _ { X } , Z \\sim P _ { Z } )$ . The set of all joint distributions of $( X , Y , Z )$ such that $X \\sim P _ { X }$ , $( Y , Z ) \\sim P _ { G , Z }$ , and $( Y \\perp \\perp X ) | Z$ will be denoted by ${ \\mathcal { P } } _ { X , Y , Z }$ . Finally, we denote by $\\mathcal { P } _ { X , Y }$ and $\\mathcal { P } _ { X , Z }$ the sets of marginals on $( X , Y )$ and $( X , Z )$ (respectively) induced by distributions in ${ \\mathcal { P } } _ { X , Y , Z }$ . Note that $\\mathcal { P } ( P _ { X } , P _ { G } )$ , ${ \\mathcal { P } } _ { X , Y , Z }$ , and $\\mathcal { P } _ { X , Y }$ depend on the choice of conditional distributions $P _ { G } ( Y | Z )$ , while $\\mathcal { P } _ { X , Z }$ does not. In fact, it is easy to check that $\\mathcal { P } _ { X , Z } =$ $\\mathcal { P } ( X \\sim P _ { X } , Z \\sim P _ { Z } )$ . From the definitions it is clear that $\\mathcal { P } _ { X , Y } \\subseteq \\mathcal { P } ( P _ { X } , P _ { G } )$ and we immediately get the following upper bound: ",
1436
+ "bbox": [
1437
+ 173,
1438
+ 694,
1439
+ 825,
1440
+ 808
1441
+ ],
1442
+ "page_idx": 12
1443
+ },
1444
+ {
1445
+ "type": "equation",
1446
+ "img_path": "images/766228ca76f59ab0764a694e387d78f86a68c940c93d4443b7b327b70efb8a9e.jpg",
1447
+ "text": "$$\nW _ { c } ( P _ { X } , P _ { G } ) \\leq W _ { c } ^ { \\dagger } ( P _ { X } , P _ { G } ) : = \\operatorname* { i n f } _ { P \\in \\mathcal { P } _ { X , Y } } \\mathbb { E } _ { ( X , Y ) \\sim P } \\left[ c ( X , Y ) \\right] .\n$$",
1448
+ "text_format": "latex",
1449
+ "bbox": [
1450
+ 287,
1451
+ 813,
1452
+ 710,
1453
+ 840
1454
+ ],
1455
+ "page_idx": 12
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "text": "If $P _ { G } ( Y | Z )$ are Dirac measures (i.e., $Y = G ( Z ) )$ , it turns out that $\\mathcal { P } _ { X , Y } = \\mathcal { P } ( P _ { X } , P _ { G } )$ : ",
1460
+ "bbox": [
1461
+ 171,
1462
+ 845,
1463
+ 751,
1464
+ 863
1465
+ ],
1466
+ "page_idx": 12
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "Lemma 1 $\\mathcal { P } _ { X , Y } \\subseteq \\mathcal { P } ( P _ { X } , P _ { G } )$ with identity $i f ^ { 6 } ~ P _ { G } ( Y | Z = z )$ are Dirac for all $z \\in { \\mathcal { Z } }$ . ",
1471
+ "bbox": [
1472
+ 171,
1473
+ 102,
1474
+ 751,
1475
+ 119
1476
+ ],
1477
+ "page_idx": 13
1478
+ },
1479
+ {
1480
+ "type": "text",
1481
+ "text": "Proof The first assertion is obvious. To prove the identity, note that when $Y$ is a deterministic function of $Z$ , for any $A$ in the sigma-algebra induced by $Y$ we have $\\mathbb { E } \\left[ \\mathbb { 1 } _ { [ Y \\in A ] } | X , Z \\right] = \\mathbb { E } \\left[ \\mathbb { 1 } _ { [ Y \\in A ] } | Z \\right]$ . This implies $( Y \\perp \\perp X ) | Z$ and concludes the proof. ",
1482
+ "bbox": [
1483
+ 173,
1484
+ 128,
1485
+ 825,
1486
+ 174
1487
+ ],
1488
+ "page_idx": 13
1489
+ },
1490
+ {
1491
+ "type": "text",
1492
+ "text": "We are now in place to prove Theorem 1. Lemma 1 obviously leads to ",
1493
+ "bbox": [
1494
+ 173,
1495
+ 200,
1496
+ 635,
1497
+ 217
1498
+ ],
1499
+ "page_idx": 13
1500
+ },
1501
+ {
1502
+ "type": "equation",
1503
+ "img_path": "images/5fad4c089ed46e041e888e1354250fd12c2da03691113069d45e7c34d2eb98f7.jpg",
1504
+ "text": "$$\nW _ { c } ( P _ { X } , P _ { G } ) = W _ { c } ^ { \\dagger } ( P _ { X } , P _ { G } ) .\n$$",
1505
+ "text_format": "latex",
1506
+ "bbox": [
1507
+ 397,
1508
+ 222,
1509
+ 599,
1510
+ 241
1511
+ ],
1512
+ "page_idx": 13
1513
+ },
1514
+ {
1515
+ "type": "text",
1516
+ "text": "The tower rule of expectation, and the conditional independence property of ${ \\mathcal { P } } _ { X , Y , Z }$ implies ",
1517
+ "bbox": [
1518
+ 173,
1519
+ 246,
1520
+ 776,
1521
+ 261
1522
+ ],
1523
+ "page_idx": 13
1524
+ },
1525
+ {
1526
+ "type": "equation",
1527
+ "img_path": "images/653bed1e8cad7ed1de42342b9a7c0aa95c3d1fe17f75f4d5d3812d5573a3ca76.jpg",
1528
+ "text": "$$\n\\begin{array} { r l } & { W _ { c } ^ { \\dagger } ( P _ { X } , P _ { G } ) = \\underset { P \\in \\mathcal { P } _ { X , Y , Z } } { \\operatorname* { i n f } } \\mathbb { E } _ { ( X , Y , Z ) \\sim P } \\left[ c ( X , Y ) \\right] } \\\\ & { \\quad \\quad \\quad = \\underset { P \\in \\mathcal { P } _ { X , Y , Z } } { \\operatorname* { i n f } } \\mathbb { E } _ { P _ { Z } } \\mathbb { E } _ { X \\sim P ( X \\mid Z ) } \\mathbb { E } _ { Y \\sim P ( Y \\mid Z ) } [ c ( X , Y ) ] } \\\\ & { \\quad \\quad \\quad = \\underset { P \\in \\mathcal { P } _ { X , Y , Z } } { \\operatorname* { i n f } } \\mathbb { E } _ { P _ { Z } } \\mathbb { E } _ { X \\sim P ( X \\mid Z ) } \\left[ c \\left( X , G ( Z ) \\right) \\right] } \\\\ & { \\quad \\quad \\quad = \\underset { P \\in \\mathcal { P } _ { X , Z } } { \\operatorname* { i n f } } \\mathbb { E } _ { ( X , Z ) \\sim P } \\left[ c \\left( X , G ( Z ) \\right) \\right] . } \\end{array}\n$$",
1529
+ "text_format": "latex",
1530
+ "bbox": [
1531
+ 284,
1532
+ 267,
1533
+ 712,
1534
+ 376
1535
+ ],
1536
+ "page_idx": 13
1537
+ },
1538
+ {
1539
+ "type": "text",
1540
+ "text": "It remains to notice that $\\mathcal { P } _ { X , Z } = \\mathcal { P } ( X \\sim P _ { X } , Z \\sim P _ { Z } )$ as stated earlier. ",
1541
+ "bbox": [
1542
+ 173,
1543
+ 381,
1544
+ 648,
1545
+ 397
1546
+ ],
1547
+ "page_idx": 13
1548
+ },
1549
+ {
1550
+ "type": "text",
1551
+ "text": "B.1 RANDOM DECODERS $P _ { G } ( Y | Z )$ ",
1552
+ "text_level": 1,
1553
+ "bbox": [
1554
+ 174,
1555
+ 412,
1556
+ 429,
1557
+ 428
1558
+ ],
1559
+ "page_idx": 13
1560
+ },
1561
+ {
1562
+ "type": "text",
1563
+ "text": "If the decoders are non-deterministic, Lemma 1 provides only the inclusion of sets $\\mathcal { P } _ { X , Y } \\subseteq \\mathcal { P } ( P _ { X } , P _ { G } )$ and we get the following upper bound on the OT: ",
1564
+ "bbox": [
1565
+ 171,
1566
+ 439,
1567
+ 823,
1568
+ 468
1569
+ ],
1570
+ "page_idx": 13
1571
+ },
1572
+ {
1573
+ "type": "text",
1574
+ "text": "Corollary 1 Let $\\mathcal { X } ~ = ~ \\mathcal { R } ^ { d }$ and assume the conditional distributions $P _ { G } ( Y | Z = z )$ have mean values $G ( z ) \\in \\mathcal { R } ^ { d }$ and marginal variances $\\sigma _ { 1 } ^ { 2 } , \\ldots , \\sigma _ { d } ^ { 2 } \\geq 0$ for all $z \\in { \\mathcal { Z } }$ , where $G \\colon { \\mathcal { Z } } \\to { \\mathcal { X } }$ . Take $c ( x , y ) = \\| x - y \\| _ { 2 } ^ { 2 }$ . Then ",
1575
+ "bbox": [
1576
+ 174,
1577
+ 479,
1578
+ 825,
1579
+ 525
1580
+ ],
1581
+ "page_idx": 13
1582
+ },
1583
+ {
1584
+ "type": "equation",
1585
+ "img_path": "images/3191801fdce877583d57ab64b281fe1a4a2f12b841d0bc7daead3630c2b31298.jpg",
1586
+ "text": "$$\nW _ { c } ( P _ { X } , P _ { G } ) \\leq W _ { c } ^ { \\dagger } ( P _ { X } , P _ { G } ) = \\sum _ { i = 1 } ^ { d } \\sigma _ { i } ^ { 2 } + \\operatorname* { i n f } _ { P \\in \\mathcal { P } ( X \\setminus P _ { X } , Z \\sim P _ { Z } ) } \\mathbb { E } _ { ( X , Z ) \\sim P } \\big [ \\| X - G ( Z ) \\| ^ { 2 } \\big ] .\n$$",
1587
+ "text_format": "latex",
1588
+ "bbox": [
1589
+ 191,
1590
+ 529,
1591
+ 781,
1592
+ 571
1593
+ ],
1594
+ "page_idx": 13
1595
+ },
1596
+ {
1597
+ "type": "text",
1598
+ "text": "Proof First inequality follows from (9). For the identity we proceed similarly to the proof of Theorem 1 and write ",
1599
+ "bbox": [
1600
+ 173,
1601
+ 583,
1602
+ 826,
1603
+ 612
1604
+ ],
1605
+ "page_idx": 13
1606
+ },
1607
+ {
1608
+ "type": "equation",
1609
+ "img_path": "images/435b3f67c7089dcb32fdf511c52506db9c9f938851293f40e5095673d00dd171.jpg",
1610
+ "text": "$$\nW _ { c } ^ { \\dagger } ( P _ { X } , P _ { G } ) = \\operatorname* { i n f } _ { P \\in \\mathcal { P } _ { X , Y , Z } } \\mathbb { E } _ { P _ { Z } } \\mathbb { E } _ { X \\sim P ( X \\mid Z ) } \\mathbb { E } _ { Y \\sim P ( Y \\mid Z ) } \\left[ \\left\\| X - Y \\right\\| ^ { 2 } \\right] .\n$$",
1611
+ "text_format": "latex",
1612
+ "bbox": [
1613
+ 272,
1614
+ 616,
1615
+ 725,
1616
+ 643
1617
+ ],
1618
+ "page_idx": 13
1619
+ },
1620
+ {
1621
+ "type": "text",
1622
+ "text": "Note that ",
1623
+ "bbox": [
1624
+ 173,
1625
+ 648,
1626
+ 238,
1627
+ 662
1628
+ ],
1629
+ "page_idx": 13
1630
+ },
1631
+ {
1632
+ "type": "equation",
1633
+ "img_path": "images/6635a165dd4c7884d61bad12d4d8eafea9a3505f1a3845db267635dbf26e8001.jpg",
1634
+ "text": "$$\n\\begin{array} { l } { \\mathbb { E } _ { Y \\sim P ( Y \\vert Z ) } \\big [ \\| X - Y \\| ^ { 2 } \\big ] = \\mathbb { E } _ { Y \\sim P ( Y \\vert Z ) } \\big [ \\| X - G ( Z ) + G ( Z ) - Y \\| ^ { 2 } \\big ] } \\\\ { = \\| X - G ( Z ) \\| ^ { 2 } + \\mathbb { E } _ { Y \\sim P ( Y \\vert Z ) } \\big [ \\langle X - G ( Z ) , G ( Z ) - Y \\rangle \\big ] + \\mathbb { E } _ { Y \\sim P ( Y \\vert Z ) } \\| G ( Z ) - Y \\| ^ { 2 } } \\\\ { = \\| X - G ( Z ) \\| ^ { 2 } + \\displaystyle \\sum _ { i = 1 } ^ { d } \\sigma _ { i } ^ { 2 } . } \\end{array}\n$$",
1635
+ "text_format": "latex",
1636
+ "bbox": [
1637
+ 205,
1638
+ 666,
1639
+ 792,
1640
+ 753
1641
+ ],
1642
+ "page_idx": 13
1643
+ },
1644
+ {
1645
+ "type": "text",
1646
+ "text": "Together with (11) and the fact that $\\mathcal { P } _ { X , Z } = \\mathcal { P } ( X \\sim P _ { X } , Z \\sim P _ { Z } )$ this concludes the proof. ",
1647
+ "bbox": [
1648
+ 168,
1649
+ 757,
1650
+ 779,
1651
+ 775
1652
+ ],
1653
+ "page_idx": 13
1654
+ },
1655
+ {
1656
+ "type": "text",
1657
+ "text": "C FURTHER DETAILS ON EXPERIMENTS ",
1658
+ "text_level": 1,
1659
+ "bbox": [
1660
+ 173,
1661
+ 814,
1662
+ 517,
1663
+ 830
1664
+ ],
1665
+ "page_idx": 13
1666
+ },
1667
+ {
1668
+ "type": "text",
1669
+ "text": "C.1 MNIST ",
1670
+ "text_level": 1,
1671
+ "bbox": [
1672
+ 173,
1673
+ 844,
1674
+ 272,
1675
+ 859
1676
+ ],
1677
+ "page_idx": 13
1678
+ },
1679
+ {
1680
+ "type": "text",
1681
+ "text": "We use mini-batches of size 100 and trained the models for 100 epochs. We used $\\lambda = 1 0$ and $\\sigma _ { z } ^ { 2 } = 1$ . For the encoder-decoder pair we set $\\alpha = 1 0 ^ { - 3 }$ for Adam in the beginning and for the ",
1682
+ "bbox": [
1683
+ 174,
1684
+ 871,
1685
+ 826,
1686
+ 900
1687
+ ],
1688
+ "page_idx": 13
1689
+ },
1690
+ {
1691
+ "type": "text",
1692
+ "text": "adversary in WAE-GAN to $\\alpha = 5 \\times 1 0 ^ { - 4 }$ . After 30 epochs we decreased both by factor of 2, and after first 50 epochs further by factor of 5. ",
1693
+ "bbox": [
1694
+ 173,
1695
+ 103,
1696
+ 825,
1697
+ 132
1698
+ ],
1699
+ "page_idx": 14
1700
+ },
1701
+ {
1702
+ "type": "text",
1703
+ "text": "Both encoder and decoder used fully convolutional architectures with 4x4 convolutional filters. ",
1704
+ "bbox": [
1705
+ 173,
1706
+ 138,
1707
+ 795,
1708
+ 154
1709
+ ],
1710
+ "page_idx": 14
1711
+ },
1712
+ {
1713
+ "type": "text",
1714
+ "text": "Encoder architecture: ",
1715
+ "bbox": [
1716
+ 174,
1717
+ 160,
1718
+ 315,
1719
+ 174
1720
+ ],
1721
+ "page_idx": 14
1722
+ },
1723
+ {
1724
+ "type": "equation",
1725
+ "img_path": "images/4ec08ef2fb77f6182905c1b2463089a01ddd69b21d39057868d34af6a063a0a8.jpg",
1726
+ "text": "$$\n\\begin{array} { r l } { x \\in \\mathcal { R } ^ { 2 8 \\times 2 8 } \\mathrm { C o n v _ { 1 2 8 } } \\mathrm { B N } \\mathrm { R e L U } } & { } \\\\ { \\mathrm { C o n v _ { 2 5 6 } } \\mathrm { B N } \\mathrm { R e L U } } & { } \\\\ { \\mathrm { C o n v _ { 5 1 2 } } \\mathrm { B N } \\mathrm { R e L U } } & { } \\\\ { \\mathrm { C o n v _ { 1 0 2 4 } } \\mathrm { B N } \\mathrm { R e L U } \\mathrm { F C } _ { 8 } } \\end{array}\n$$",
1727
+ "text_format": "latex",
1728
+ "bbox": [
1729
+ 325,
1730
+ 175,
1731
+ 673,
1732
+ 248
1733
+ ],
1734
+ "page_idx": 14
1735
+ },
1736
+ {
1737
+ "type": "text",
1738
+ "text": "Decoder architecture: ",
1739
+ "bbox": [
1740
+ 174,
1741
+ 257,
1742
+ 316,
1743
+ 272
1744
+ ],
1745
+ "page_idx": 14
1746
+ },
1747
+ {
1748
+ "type": "equation",
1749
+ "img_path": "images/5f2642888c10b61733327ce52932487c854bc6e0a19397bc95bd54e41612f99b.jpg",
1750
+ "text": "$$\n\\begin{array} { r l } & { z \\in \\mathcal { R } ^ { 8 } \\mathrm { F C } _ { 7 \\times 7 \\times 1 0 2 4 } } \\\\ & { \\qquad \\mathrm { F S C o n v } _ { 5 1 2 } \\mathrm { B N } \\mathrm { R e L U } } \\\\ & { \\qquad \\mathrm { F S C o n v } _ { 2 5 6 } \\mathrm { B N } \\mathrm { R e L U } \\mathrm { F S C o n v } _ { 1 } } \\end{array}\n$$",
1751
+ "text_format": "latex",
1752
+ "bbox": [
1753
+ 316,
1754
+ 273,
1755
+ 678,
1756
+ 329
1757
+ ],
1758
+ "page_idx": 14
1759
+ },
1760
+ {
1761
+ "type": "text",
1762
+ "text": "Adversary architecture for WAE-GAN: ",
1763
+ "bbox": [
1764
+ 176,
1765
+ 337,
1766
+ 433,
1767
+ 352
1768
+ ],
1769
+ "page_idx": 14
1770
+ },
1771
+ {
1772
+ "type": "equation",
1773
+ "img_path": "images/e1f139d7840af0aceff1b6d56897c99b40596ad65bd6ff3df7eeac4824de9bbf.jpg",
1774
+ "text": "$$\n\\begin{array} { r l } & { z \\in \\mathcal { R } ^ { 8 } \\mathrm { F C } _ { 5 1 2 } \\mathrm { R e L U } } \\\\ & { ~ \\mathrm { F C } _ { 5 1 2 } \\mathrm { R e L U } } \\\\ & { ~ \\mathrm { F C } _ { 5 1 2 } \\mathrm { R e L U } } \\\\ & { ~ \\mathrm { F C } _ { 5 1 2 } \\mathrm { R e L U } \\mathrm { F C } _ { 1 } } \\end{array}\n$$",
1775
+ "text_format": "latex",
1776
+ "bbox": [
1777
+ 375,
1778
+ 353,
1779
+ 620,
1780
+ 426
1781
+ ],
1782
+ "page_idx": 14
1783
+ },
1784
+ {
1785
+ "type": "text",
1786
+ "text": "Here $\\operatorname { C o n v } _ { k }$ stands for a convolution with $k$ filters, $\\mathrm { F S C o n v } _ { k }$ for the fractional strided convolution with $k$ filters (first two of them were doubling the resolution, the third one kept it constant), BN for the batch normalization, ReLU for the rectified linear units, and $\\mathrm { F C } _ { \\mathrm { k } }$ for the fully connected layer mapping to $\\mathcal { R } ^ { k }$ . All the convolutions in the encoder used vertical and horizontal strides 2 and SAME padding. ",
1787
+ "bbox": [
1788
+ 173,
1789
+ 434,
1790
+ 825,
1791
+ 506
1792
+ ],
1793
+ "page_idx": 14
1794
+ },
1795
+ {
1796
+ "type": "text",
1797
+ "text": "Finally, we used two heuristics. First, we always pretrained separately the encoder for several minibatch steps before the main training stage so that the sample mean and covariance of $Q _ { Z }$ would try to match those of $P _ { Z }$ . Second, while training we were adding a pixel-wise Gaussian noise truncated at 0.01 to all the images before feeding them to the encoder, which was meant to make the encoders random. We played with all possible ways of combining these two heuristics and noticed that together they result in slightly (almost negligibly) better results compared to using only one or none of them. ",
1798
+ "bbox": [
1799
+ 173,
1800
+ 511,
1801
+ 825,
1802
+ 609
1803
+ ],
1804
+ "page_idx": 14
1805
+ },
1806
+ {
1807
+ "type": "text",
1808
+ "text": "Our VAE model used cross-entropy loss (Bernoulli decoder) and otherwise same architectures and hyperparameters as listed above. ",
1809
+ "bbox": [
1810
+ 173,
1811
+ 616,
1812
+ 823,
1813
+ 645
1814
+ ],
1815
+ "page_idx": 14
1816
+ },
1817
+ {
1818
+ "type": "text",
1819
+ "text": "C.2 CELEBA ",
1820
+ "text_level": 1,
1821
+ "bbox": [
1822
+ 174,
1823
+ 660,
1824
+ 277,
1825
+ 675
1826
+ ],
1827
+ "page_idx": 14
1828
+ },
1829
+ {
1830
+ "type": "text",
1831
+ "text": "We pre-processed CelebA images by first taking a $1 4 0 \\mathrm { x } 1 4 0$ center crops and then resizing to the $6 4 \\mathrm { x } 6 4$ resolution. We used mini-batches of size 100 and trained the models for various number of epochs (up to 250). All reported WAE models were trained for 55 epochs and VAE for 68 epochs. For WAE-MMD we used $\\lambda = 1 0 0$ and for WAE-GAN $\\lambda = 1$ . Both used $\\sigma _ { z } ^ { 2 } = 2$ . ",
1832
+ "bbox": [
1833
+ 174,
1834
+ 686,
1835
+ 825,
1836
+ 742
1837
+ ],
1838
+ "page_idx": 14
1839
+ },
1840
+ {
1841
+ "type": "text",
1842
+ "text": "For WAE-MMD the learning rate of Adam was initially set to $\\alpha = 1 0 ^ { - 3 }$ . For WAE-GAN the learning rate of Adam for the encoder-decoder pair was initially set to $\\alpha = 3 \\times 1 0 ^ { - 4 }$ and for the adversary to $1 0 ^ { - 3 }$ . All learning rates were decreased by factor of 2 after 30 epochs, further by factor of 5 after 50 first epochs, and finally additional factor of 10 after 100 first epochs. ",
1843
+ "bbox": [
1844
+ 173,
1845
+ 750,
1846
+ 825,
1847
+ 806
1848
+ ],
1849
+ "page_idx": 14
1850
+ },
1851
+ {
1852
+ "type": "text",
1853
+ "text": "Both encoder and decoder used fully convolutional architectures with $5 \\mathrm { x } 5$ convolutional filters. ",
1854
+ "bbox": [
1855
+ 169,
1856
+ 811,
1857
+ 794,
1858
+ 827
1859
+ ],
1860
+ "page_idx": 14
1861
+ },
1862
+ {
1863
+ "type": "text",
1864
+ "text": "Encoder architecture: ",
1865
+ "bbox": [
1866
+ 174,
1867
+ 834,
1868
+ 315,
1869
+ 848
1870
+ ],
1871
+ "page_idx": 14
1872
+ },
1873
+ {
1874
+ "type": "equation",
1875
+ "img_path": "images/0b4a05953840371a154045fa91646c9656f16a1d3250d31dbf4bb2d438b78793.jpg",
1876
+ "text": "$$\n\\begin{array} { r l } & { x \\in \\mathcal { R } ^ { 6 4 \\times 6 4 \\times 3 } \\to \\mathrm { C o n v _ { 1 2 8 } } \\to \\mathrm { B N } \\to \\mathrm { R e L U } } \\\\ & { \\qquad \\to \\mathrm { C o n v _ { 2 5 6 } } \\to \\mathrm { B N } \\to \\mathrm { R e L U } } \\\\ & { \\qquad \\to \\mathrm { C o n v _ { 5 1 2 } } \\to \\mathrm { B N } \\to \\mathrm { R e L U } } \\\\ & { \\qquad \\to \\mathrm { C o n v _ { 1 0 2 4 } } \\to \\mathrm { B N } \\to \\mathrm { R e L U } \\to \\mathrm { F C } _ { 6 4 } } \\end{array}\n$$",
1877
+ "text_format": "latex",
1878
+ "bbox": [
1879
+ 313,
1880
+ 848,
1881
+ 686,
1882
+ 922
1883
+ ],
1884
+ "page_idx": 14
1885
+ },
1886
+ {
1887
+ "type": "text",
1888
+ "text": "Decoder architecture: ",
1889
+ "bbox": [
1890
+ 174,
1891
+ 103,
1892
+ 316,
1893
+ 117
1894
+ ],
1895
+ "page_idx": 15
1896
+ },
1897
+ {
1898
+ "type": "equation",
1899
+ "img_path": "images/3e05e6baaffed94a4836e3264097296730055df532749b1f7b051889c00086f8.jpg",
1900
+ "text": "$$\n\\begin{array} { r l } { z \\in \\mathcal { R } ^ { 6 4 } \\mathrm { F C } _ { 8 \\times 8 \\times 1 0 2 4 } } & { } \\\\ { \\mathrm { F S C o n v } _ { 5 1 2 } \\mathrm { B N } \\mathrm { R e L U } } \\\\ { \\mathrm { F S C o n v } _ { 2 5 6 } \\mathrm { B N } \\mathrm { R e L U } } & { } \\\\ { \\mathrm { F S C o n v } _ { 1 2 8 } \\mathrm { B N } \\mathrm { R e L U } \\mathrm { F S C o n v } _ { 1 } } \\end{array}\n$$",
1901
+ "text_format": "latex",
1902
+ "bbox": [
1903
+ 312,
1904
+ 123,
1905
+ 681,
1906
+ 196
1907
+ ],
1908
+ "page_idx": 15
1909
+ },
1910
+ {
1911
+ "type": "text",
1912
+ "text": "Adversary architecture for WAE-GAN: ",
1913
+ "bbox": [
1914
+ 174,
1915
+ 209,
1916
+ 433,
1917
+ 224
1918
+ ],
1919
+ "page_idx": 15
1920
+ },
1921
+ {
1922
+ "type": "equation",
1923
+ "img_path": "images/efe2c9405faf9db2c3548f178daba26ef0ed251f5b288574f892bd82ed35f8f0.jpg",
1924
+ "text": "$$\n\\begin{array} { r l } { z \\in \\mathcal { R } ^ { 6 4 } \\to \\mathrm { F C } _ { 5 1 2 } \\to \\mathrm { R e L U } } \\\\ { \\to \\mathrm { F C } _ { 5 1 2 } \\to \\mathrm { R e L U } } \\\\ { \\to \\mathrm { F C } _ { 5 1 2 } \\to \\mathrm { R e L U } } \\\\ { \\to \\mathrm { F C } _ { 5 1 2 } \\to \\mathrm { R e L U } \\to \\mathrm { F C } _ { 1 } } \\end{array}\n$$",
1925
+ "text_format": "latex",
1926
+ "bbox": [
1927
+ 372,
1928
+ 228,
1929
+ 624,
1930
+ 303
1931
+ ],
1932
+ "page_idx": 15
1933
+ },
1934
+ {
1935
+ "type": "text",
1936
+ "text": "For WAE-GAN we used a heuristic proposed in Supplementary $\\mathrm { I V }$ of Mescheder et al. (2017). Notice that the theoretically optimal discriminator would result in $D ^ { * } ( z ) = \\log p _ { Z } ( z ) - \\log q _ { Z } ( z )$ , where $p _ { Z }$ and $q _ { Z }$ are densities of $P _ { Z }$ and $Q _ { Z }$ respectively. In our experiments we added the log prior $\\log p _ { Z } ( z )$ explicitly to the adversary output as we know it analytically. This should hopefully make it easier for the adversary to learn the remaining $Q _ { Z }$ density term. ",
1937
+ "bbox": [
1938
+ 173,
1939
+ 314,
1940
+ 825,
1941
+ 386
1942
+ ],
1943
+ "page_idx": 15
1944
+ },
1945
+ {
1946
+ "type": "text",
1947
+ "text": "Our VAE model used a cross-entropy reconstruction loss (Bernoulli decoder) and $\\alpha = 1 0 ^ { - 4 }$ as the initial Adam learning rate and the same decay schedule as explained above. Otherwise all the architectures and hyperparameters were as explained above. ",
1948
+ "bbox": [
1949
+ 174,
1950
+ 391,
1951
+ 823,
1952
+ 434
1953
+ ],
1954
+ "page_idx": 15
1955
+ }
1956
+ ]
parse/train/HkL7n1-0b/HkL7n1-0b_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkL7n1-0b/HkL7n1-0b_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1IRctqxg/r1IRctqxg.md ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SAMPLE IMPORTANCE IN TRAINING DEEP NEURAL NETWORKS
2
+
3
+ Tianxiang Gao, Vladimir Jojic Department of Computer Science University of North Carolina at Chapel Hill Chapel Hill, NC, 27599 , USA {tgao,vjojic}@cs.unc.edu
4
+
5
+ # ABSTRACT
6
+
7
+ The contribution of each sample during model training varies across training iterations and the model’s parameters. We define the concept of sample importance as the change in parameters induced by a sample. In this paper, we explored the sample importance in training deep neural networks using stochastic gradient descent. We found that “easy” samples – samples that are correctly and confidently classified at the end of the training – shape parameters closer to the output, while the “hard” samples impact parameters closer to the input to the network. Further, “easy” samples are relevant in the early training stages, and “hard” in the late training stage. Further, we show that constructing batches which contain samples of comparable difficulties tends to be a poor strategy compared to maintaining a mix of both hard and easy samples in all of the batches. Interestingly, this contradicts some of the results on curriculum learning which suggest that ordering training examples in terms of difficulty can lead to better performance.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Sample importance is the sample’s contribution to the parameter change during training. In statistics, the concept “leverage” of a point is used (St Laurent & Cook (1992)) to measure the impact of a sample on the training of a model. In the context of SVM, the most important samples are the support vectors as they define the separating hyperplane. Understanding the importance of the samples can help us interpret trained models and structure training to speed up convergence and improve prediction accuracy. For example, Curriculum learning (CL) from Bengio et al. (2009) shows that training with easy samples first, then gradually transitioning to difficult samples can improve the learning. In CL, the “easiness” of a sample is predefined either manually or using an evaluation model. Self-paced learning (SPL) (Kumar et al. (2010)) shows that it is possible to learn from samples in order of easiness. In this framework, easiness is related to the prediction error and can be estimated from the model. However, easiness of a sample may not be sufficient to decide when it should be introduced to a learner. Maintaining diversity among the training samples can have a substantial effect on the training (Jiang et al. (2014)).
12
+
13
+ In this work, we explore the sample importance in deep neural networks. Deep learning methods have been successfully applied in many tasks and routinely achieve better generalization error than classical shallow methods (LeCun et al. (2015)). One of the key characteristics of a deep network is its capacity to construct progressively more complex features throughout its layers (Lee et al. (2011)). An intuitive question arises: which samples contribute the most to the training of the different layer’s parameters? From literature Saxe et al. (2011), we know that even randomly generated filters can compute features that lead to good performance – presumably on easy samples. However, to learn hard samples correctly, the model may need to construct complex features, which require both more training time and refined filters from bottom layers. Hence, we hypothesized that the hard samples shape the bottom layers – closer to the input – and easy samples shape the top layers – closer to the output.
14
+
15
+ Motivated by the above hypothesis, we analyzed the sample importance in a 3 layer ReLU network on two standard datasets. The results reveal several interesting facts about the sample importance in easy and hard samples:
16
+
17
+ 1. Easy and hard samples impact the parameters in different training stages. The biggest impact of easy samples on parameters are mostly during the early training stage, while the impact of hard samples become large in the late training stage.
18
+
19
+ 2. Easy and hard samples impact the parameters in different layers. Easy samples impact have larger impact on top layer parameters, while hard samples shape the bottom layer parameters.
20
+
21
+ 3. Mixing hard samples with easy samples in each batch helps training. We conducted batches with homogeneous or mixed “easiness”. We found that use of homogeneous batches hinders the training. Hence, it is preferable for network to see both easy and hard samples during all stages of training.
22
+
23
+ Next, we are going to give the definition of sample importance in Section 2. The empirical analysis for sample importance in the deep neural network in two real datasets is discussed in Section 3. Extension about sample importance is showed in Section 4.
24
+
25
+ # 2 SAMPLE IMPORTANCE
26
+
27
+ In this section, we are going to introduce the terminology and provide a quantitative measurement of sample importance for a training procedure.
28
+
29
+ # 2.1 SAMPLE WEIGHT
30
+
31
+ In supervised learning, a model is trained by optimizing an objective over a set of observed training samples $\left( \mathbf { x } _ { i } , y _ { i } \right)$ . Let $f ( \mathbf { x } _ { i } , \pmb { \theta } )$ be the output of a model for parameter $\pmb { \theta }$ . The training objective can be written as:
32
+
33
+ $$
34
+ \sum _ { i = 1 } ^ { n } L ( y _ { i } , f ( \mathbf { x } _ { i } , \pmb { \theta } ) ) + R ( \pmb { \theta } ) ,
35
+ $$
36
+
37
+ where $L ( y _ { i } , f ( \mathbf { x } _ { i } , \pmb { \theta } ) )$ is the loss on sample $i$ , and $R ( \pmb \theta )$ is the regularization on the parameters. In order to highlight contribution of each sample, we can introduce sample specific weights $v _ { i } \in [ 0 , 1 ]$ which scale sample’s contribution to the loss. Hence, the objective in (1) can be rewritten as:
38
+
39
+ $$
40
+ \sum _ { i = 1 } ^ { n } v _ { i } L ( y _ { i } , f ( \mathbf { x } _ { i } , \pmb { \theta } ) ) + R ( \pmb { \theta } ) ,
41
+ $$
42
+
43
+ We define the weight $v _ { i }$ as the sample weight. Similar definitions on $v _ { i }$ has been proposed in Self-paced learning (SPL) Kumar et al. (2010).
44
+
45
+ In Stochastic Gradient descend (SGD) methods, parameters $\pmb \theta$ are updated with a certain step size $\eta$ in each iteration with regard to a set of training samples. If we allow different sample weights in different iterations, a single update can be written as:
46
+
47
+ $$
48
+ \pmb { \theta } ^ { t + 1 } = \pmb { \theta } ^ { t } - \eta \sum _ { i = 1 } ^ { n } v _ { i } ^ { t } \mathbf { g } _ { i } ^ { t } - \eta \mathbf { r } ^ { t } ,
49
+ $$
50
+
51
+ where $\theta ^ { t }$ is the parameter vector at epoch $t$ , $\begin{array} { r } { \mathbf { g } _ { i } ^ { t } = \frac { \partial } { \partial \pmb { \theta } ^ { t } } L _ { i } ( y _ { i } , f ( \mathbf { x } _ { i } , \pmb { \theta } ^ { t } ) ) , \mathbf { r } ^ { t } = \frac { \partial } { \partial \pmb { \theta } ^ { t } } R ( \pmb { \theta } ^ { t } ) } \end{array}$ , and $\boldsymbol { v } _ { i } ^ { t }$ is the weight of ith sample at iteration $t$ .
52
+
53
+ # 2.2 SAMPLE IMPORTANCE
54
+
55
+ If we change the weight of a sample $i$ at iteration $t$ , how would such change impact the parameter training in that iteration? We can answer this question by calculating the first order derivative of parameter change $\Delta \pmb { \theta } ^ { t } = \pmb { \theta } ^ { t + 1 } - \pmb { \theta } ^ { t }$ with regard to sample weight $\boldsymbol { v } _ { i } ^ { t }$ :
56
+
57
+ $$
58
+ { \boldsymbol { \phi } } _ { i } ^ { t } = { \frac { \partial } { \partial v _ { i } ^ { t } } } \Delta { \pmb { \theta } } ^ { t } = - \eta \mathbf { g } _ { i } ^ { t } .
59
+ $$
60
+
61
+ We call $\boldsymbol { \phi } _ { i } ^ { t }$ the parameter affectibility by ith sample at iteration $t$ . $\boldsymbol { \phi } _ { i } ^ { t }$ is a vector consists of parameter affectibility from all parameters in the network. Specifically, $\boldsymbol { \phi } _ { i , j } ^ { t }$ is the parameter affectibility for $j$ th parameter in the network. $\boldsymbol { \phi } _ { i } ^ { t }$ reflects the relationship between parameter change and different samples.
62
+
63
+ Typical deep networks contains millions of parameters. Hence, we are going to focus on groups of parameters of interests. We define ith sample’s importance for parameters of $d \mathrm { t h }$ layer of as:
64
+
65
+ $$
66
+ \beta _ { i , d } ^ { t } = \sum _ { j \in \mathcal { Q } _ { d } } ( \phi _ { i , j } ^ { t } ) ^ { 2 } ,
67
+ $$
68
+
69
+ where $\mathcal { Q } _ { d }$ is a set consists of the indexes of all parameters in layer $d$ . Hence, sample’s importance for all the parameters in the model is:
70
+
71
+ $$
72
+ \alpha _ { i } ^ { t } = \sum _ { j } ( \phi _ { i , j } ^ { t } ) ^ { 2 } ,
73
+ $$
74
+
75
+ Obviously, we have $\begin{array} { r } { \alpha _ { i } ^ { t } = \sum _ { d = 1 } ^ { D } \beta _ { i , d } ^ { t } } \end{array}$
76
+
77
+ The sum of sample’s importance across all iterations is defined as overall importance of a sample:
78
+
79
+ $$
80
+ \tau _ { i } = \sum _ { t } \alpha _ { i } ^ { t }
81
+ $$
82
+
83
+ In general, for each sample $i$ , computing $\beta _ { i , d } ^ { t }$ allows us to decompose its influence in the model’s training across training stages and different layers.
84
+
85
+ We note that the sample importance is a high-level measurement of the samples influence on parameters at each iteration of the update. This quantity is not an accurate measurement of the relationship between a sample and final trained model. Refinements of this concept are discussed in Section 4.
86
+
87
+ # 3 EMPIRICAL ANALYSIS OF SAMPLE IMPORTANCE
88
+
89
+ We are going to explore the samples’ importance for different layers at different epoch through a series of empirical experiments on two standard datasets.
90
+
91
+ # 3.1 EXPERIMENT SETUP
92
+
93
+ Dataset All the analysis are performed on two standard datasets: MNIST 1 (LeCun et al. (1998)), a benchmark dataset that contains handwritten digit images. Each sample is a $2 8 \times 2 8$ image from 10 classes. We used 50000 samples for training and 10000 samples for testing. CIFAR-10 2 (Krizhevsky & Hinton (2009)), a dataset contains $3 2 \times 3 2$ tiny color images from 10 classes. Each sample has 3072 features. We used 50000 samples for training and 10000 samples for testing.
94
+
95
+ Architecture We used a multilayer feed forward neural network with 3 hidden layers of 512 hidden nodes with rectified linear units (ReLU) activation function, a linear output layer, and a softmax layer on top for classification. The weights in each hidden layer are initialized according to Glorot & Bengio (2010). For hyper-parameters, we used learning rate of 0.1, batch size of 100, 50 total epochs, and weight-decay of $1 e - 5$ . No momentum or learning decay was used. All the code are based on a common deep learning package Theano from Bergstra et al. (2010); Bastien et al. (2012).
96
+
97
+ # 3.2 SAMPLE IMPORTANCE IS STABLE WITH RESPECT TO DIFFERENT INITIALIZATIONS
98
+
99
+ Firstly, we want to explore whether the sample importance is stable under different initializations. We used three different random seeds to initialize the network parameters and calculated the sample importance every five epochs. We computed the Spearman’s rank correlation between sample importance to the model, $\alpha _ { i } ^ { t }$ , in each pair of initializations. This correlation remains high in all epochs, above 0.9, as shown in Figure 1. This indicates that the sample importance is relatively stable to initialization of the network. Hence, all the following analysis are based on the results from initialization seed 1. (Details of training and test error for the chosen model can be viewed in Appendix Figure 9).
100
+
101
+ ![](images/0a3fc09ab1365aa5c2ccb287411ae343403bce7f9654cd12222a19101f92d457.jpg)
102
+ Figure 1: Does initialization affect sample’s importance? Sample importance is preserved between initializations of the network. For each epoch, and a pair of initializations, we computed Spearman Correlation of samples’ importance. Across all epochs, the correlation is of greater than 0.9 in both MNIST and CIFAR-10. Early epochs show higher consistency between ranks of sample importance across different initializations.
103
+
104
+ # 3.3 DECOMPOSITION OF SAMPLE IMPORTANCE
105
+
106
+ To better understand and visualize the sample importance, we firstly calculate the overall sample importance at each epoch as $\begin{array} { r } { A ^ { t } = \sum _ { i = 1 } ^ { n } \dot { \alpha _ { i } ^ { t } } } \end{array}$ . Similarly, the overall sample importance to layer $d$ is $\begin{array} { r } { B _ { d } ^ { t } = \sum _ { i = 1 } ^ { n } \beta _ { i , d } ^ { t } } \end{array}$ . We show the overall sample importance and its decomposition in layers for two datasets in Figure 2. Firstly, we found that even with a fixed learning rate, the overall sample importance is different under different epochs. Output layer always has the largest average sample importance per parameter, and its contribution reaches the maximum in the early training stage and then drops. Each layer contributes differently to the total sample importance. In both MNIST and CIFAR-10, the 2nd layer contributes more than the 3rd layer. In CIFAR-10, the 1st layer’s provides largest contribution the total sample importance, as it contains much more parameters than other layers. Interestingly, all classes do not provide the same amount of sample importance.
107
+
108
+ We found that most samples have small sample importance (Appendix Figure 10). To visualize the contribution of different samples, we split the samples based on their total importance into three groups: $10 \%$ , top $10 \%$ – top $20 \%$ most important samples, and other $80 \%$ samples. We show the decomposition of importance contribution in each layer in Figure 3. In MNIST, the top $10 \%$ samples contribute almost all the sample importance. In CIFAR-10, most important samples contribute more in lower layers rather than output layer. This result indicates that top $20 \%$ most important samples contribute to the majority of the sample importance.
109
+
110
+ # 3.4 SAMPLE IMPORTANCE AND NEGATIVE LOG-LIKELIHOOD
111
+
112
+ Negative log likelihood (NLL) is the loss metric we used for training objective. It has been used to measure the “easiness” of a sample in Curriculum learning Bengio et al. (2009) and Self-paced learning Kumar et al. (2010). Intuitively, the samples with large NLL should also have large sample importance (SI). However, in our experiment, we found that this is not always the case. In Figure 4, we found that 1) NLL and SI become more correlated as training goes on. However, 2) NLL is not predictive of the SI. There are many points with high NLL but small SI, and otherwise.
113
+
114
+ ![](images/7b01f6ee56ad410d554315b0e829197fb194fba35538582c41bb8eb261a1288f.jpg)
115
+ Figure 2: Which classes and at which stage shape the network’s layer’s parameters? Parameters of different layers are learned at different times. Parameters in Output layers are learned mostly during the early training stage. In the lower layers, parameters are learned predominantly during the middle and late training stage. All classes do not contribute equally to training of the model.
116
+
117
+ ![](images/c65928096336387e31f6986d8a5c1157a406686b28f9f2fb2cc62ef0c29e1cd8.jpg)
118
+ Figure 3: Are all data samples equally important for all layers? The top $20 \%$ most important samples contributes to the majority of parameter learning, especially in lower layers. “L1” to “L3” stands for Layer 1 to Layer 3. “Out” stands for output layer.
119
+
120
+ # 3.5 CLUSTERING SAMPLES BASED ON SAMPLE IMPORTANCE
121
+
122
+ To better visualize the importance of different samples, we provide three representative clusters of samples for each dataset. In MNIST, we clustered all digit “5” samples into 20 clusters based on their epoch-specific, layer-specific sample importance. In CIFAR-10, we clustered all “horse” samples into 30 clusters using the same features as MNIST. Kmeans algorithm is used for clustering.
123
+
124
+ ![](images/366cabd6209561647cb6d00ed6cdc1387b95f239c1a5c25a3d36e0ae64232719.jpg)
125
+ Figure 4: Is Sample Importance correlated with Negative log-likelihood of a sample? Sample importance is positively correlated with negative log-likelihood. As training goes on, their correlation becomes higher. However, there remain many samples with high NLL and low SI, and vice versa. Left column: correlation between sample importance and negative log likelihood for all samples across epochs. Right column: scatter plot for NLL in the last epoch and all epoch sample importance for each sample.
126
+
127
+ MNIST In Figure 5, we showed 3 example clusters on digit $\cdot 5 ^ { , }$ . In the cluster of easy samples, where NLL converges very fast, most of the sample importance is concentrated in the first few epochs in output layer parameters. The cluster of medium samples has a slow NLL convergence compared to the easy cluster. The biggest impact is in middle training stage and more towards bottom layer parameters. Hard samples hardly converge even during the late stage of training. As training goes on, the sample importance for the bottom layer parameters become larger.
128
+
129
+ CIFAR-10 In Figure 6, we showed 3 examples clusters on class “horse”. We observed very similar sample importance changing pattern as for the MNIST examples for easy, medium and hard clusters. Comparing to MNIST, all three clusters in CIFAR-10 have a very large impact on the parameters in the bottom layer. We note that the CIFAR-10 has almost 4 times larger number of parameters $( 3 0 7 5 \times 5 1 2 \approx 1 5 7 4 k )$ in the first layer than MNIST $7 8 5 \times 5 1 2 \approx 4 0 1 k$ ).
130
+
131
+ # 3.6 BATCH ORDER AND SAMPLE IMPORTANCE
132
+
133
+ With the observations from empirical analysis on sample importance, we know that time – iteration – and place – layer – of sample’s impact varies according to its “easiness” . We wanted to know whether constructing batches based on the sample importance or negative log likelihood would make a difference in training. Hence, we designed an experiment to explore how the different construction of batches influence the training. We note that the information used to structure the batches (negative log-likelihood and sample importance) – was obtained from a full training run.
134
+
135
+ We split all 50, 000 samples into $b = 5 0 0$ batch subsets $\{ B _ { 1 } , B _ { 2 } , \ldots , B _ { b } \}$ . Each batch has batch size $| B _ { i } | = 1 0 0$ . In our experiment, each training sample must be in exactly one batch. There is no intersection between batches.
136
+
137
+ During training, in each epoch, we update the parameters with each batch in order $1 , 2 , \ldots , b$ iteratively.
138
+
139
+ We used seven different batch construction methods in this experiment:
140
+
141
+ ![](images/beca3d0da8b2003b41df3f1588b013088625e0966c9a1ccd126e7c77463862f6.jpg)
142
+ Figure 5: When and where does an MNIST sample make the biggest impact? For “easy” samples, their biggest impact is on output layers and during the early training stage. As sample’s difficulty increases (medium and hard), the biggest impact moves to lower layers and in the late training stage. Each row is a sample cluster. In each row, from left to right: example images in the cluster; average sample importance and layer-wise decomposition across epochs; A boxplot of average training negative log likelihood across epochs.
143
+
144
+ 1. Rand: Randomly constructed batch. All $5 0 \mathrm { k }$ samples are randomly split into $b$ batches before training. The batches and orders stay fixed during training.
145
+ 2. NLO: Negative Log-likelihood Order. We sort all the samples based on their final NLL from low to high. The batches are constructed based on the sorted samples. First 100 samples with least NLL are in $\boldsymbol { B } _ { 1 }$ , 101 to 200 samples are in $B _ { 2 }$ , and so on. Hence, during training, the batches with small NLL will be trained first.
146
+ 3. RNLO Reverse-Negative Log-likelihood Order. We construct the batches same as NLO. During training, we update the batches in reverse order $B _ { b } , B _ { b - 1 } , \ldots , B _ { 1 }$ . Hence, the batches with large NLL will be trained first.
147
+ 4. NLM Negative Log-likelihood Mixed. We sort all the samples based on their final NLL from low to high. Next, for each sample $i$ in the sorted sequence, we put that sample into batch $j = ( i { \bmod { b } } ) + 1$ . This ordering constructs batches out of samples with diverse levels of NLL.
148
+ 5. SIO: Sample Importance Order. Similar to NLO, except that we sort all the samples based on their sum sample importance over all epochs from low to high. Hence, batches with small sample importance will be trained first.
149
+ 6. RSIO Reverse-Sample Importance Order. We construct the batches same as SIO. During training, we update the batches in reverse order $B _ { b } , B _ { b - 1 } , \ldots , B _ { 1 }$ . Hence, during training, the batches with large sample importance will be trained first.
150
+
151
+ ![](images/06ecd2bfd33d18b39d48776d6ab4984ee42b58766a17f2e0d0d3d92cd9424928.jpg)
152
+ Figure 6: When and where does a CIFAR-10 sample make the biggest impact? For “easy” samples, their biggest impact is on the first layer during the early training stage. As samples’s difficulty increases (medium and hard), the biggest impact moves to lower layers and to late training stage. Each row is a sample cluster. In each row, from left to right: example images in the cluster; average sample importance and layer-wise decomposition across epochs; A boxplot of average training negative log likelihood across epochs.
153
+
154
+ 7. SIM Sample Important Mixed. Similar to NLM, but we sort the samples based on overall sample importance. Thus, batches contain samples with divers sample importance.
155
+
156
+ We performed five different runs (with different random initializations) on MNIST and CIFAR-10. The result is shown in Figure 7. From the result, we found that: 1) In both MNIST and CIFAR-10, Rand, SIS, and NLS have the lowest test error compared to all other methods. This indicates that diverse batches are helpful for training. 2) NLO and SIO got the worst performance in CIFAR10. Their training error even goes up after the early stage. RNLO and RSIO have same batch constructions as NLO and SIO, but their performances are drastically different. This indicates that the order of batches during training is important. Further, training on easy samples first and hard later seems to be counter-productive.
157
+
158
+ To better understand the impact of different batch construction, we performed the principle component analysis on the learned parameters in each epoch (Figure 8). In MNIST, the impact of batch construction is not very significant. In CIFAR-10, batch construction and even the order of batch training do have a large impact on the training.
159
+
160
+ Our experiment result shows a different conclusion to Curriculum Learning and Self-paced learning, where easy samples are trained on before introducing hard samples. We found that constructing and ordering the batches – hard to easy and easy to hard – seems to hinder the performance of learning. Having hard samples mixed in with the easy ones in each batch helps the training.
161
+
162
+ Also, the results show that we want to learn from the hard samples in early epochs and “see” hard samples more frequently, even if their major impact on parameters is during the late stage. As hard examples are few compared to easy samples and hard examples need a longer time to train, we do want to mix the hard samples into each batch to start learning from those samples early and learn longer.
163
+
164
+ ![](images/42716aa645f0c758ca13ad616d456e30f3c7f969dca4da6b441665f267b2d69c.jpg)
165
+ Figure 7: Does organizing batches by “easiness” affect training? When batches are constructed with homogeneous easiness, the training performance become worse. Batches with mixed easiness have lower test error. The solid color line represents the mean over 5 runs. The error bar indicates the standard error over 5 runs.
166
+
167
+ ![](images/2356039eb64f765e3572f2159baff9807ba4501ba29d7c5578292085327cf2f9.jpg)
168
+ Figure 8: Do parameters converge differently under different batch construction? In MNIST, the converging path for all batch constructions are very similar. In CIFAR-10, batch construction with mixed easiness (Rand, NLM, SIM) has a very different converging path with all other methods. Notably, we found that even with same batch constructions but just reversed order (NLO vs. RNLO, SIO vs. RSIO), the parameters converge to different points. Each circle dotted line shows the path of the first two principle components of all parameters in different epochs. Note that in CIFAR-10, the paths of Rand, NLS and SIS are very similar and they are overlapped in the plot.
169
+
170
+ # 4 EXTENSIONS OF SAMPLE IMPORTANCE
171
+
172
+ We calculated the sample importance in each iteration in Stochastic Gradient Descent. However, such quantity only reflects the impact on the change in parameters within each iteration. The influence of a sample at a particular iteration can be accumulated through updates and impact the final model. Here, we are going to derive the exact calculation of the sample’s influence to the model. We rewrite the Objective (2) in Section 2 here:
173
+
174
+ $$
175
+ \operatorname* { m i n } _ { \pmb { \theta } } \sum _ { i = 1 } ^ { n } v _ { i } L ( y _ { i } , f ( \mathbf { x } _ { i } , \pmb { \theta } ) ) + R ( \pmb { \theta } ) ,
176
+ $$
177
+
178
+ Here, we deem the sample weight $v _ { i }$ is fixed across all iterations. The update rule for stochastic gradient descent in each iteration is:
179
+
180
+ $$
181
+ \pmb { \theta } ^ { t + 1 } = \pmb { \theta } ^ { t } - \eta \sum _ { i } v _ { i } \mathbf { g } _ { i } ^ { t } - \eta \mathbf { r } _ { i } ^ { t }
182
+ $$
183
+
184
+ The derivative of $\pmb { \theta } ^ { t + 1 }$ with respect to sample weight $v _ { i }$ is:
185
+
186
+ $$
187
+ \begin{array} { r c l } { { \displaystyle \frac { \partial } { \partial v _ { i } } \pmb { \theta } ^ { t + 1 } } } & { { = } } & { { \displaystyle \frac { \partial } { \partial v _ { i } } \pmb { \theta } ^ { t } - \eta \mathbf { g } _ { i } ^ { t } - \eta H ( \pmb { \theta } ^ { t } ) \frac { \partial } { \partial v _ { i } } \pmb { \theta } ^ { t } } } \\ { { \displaystyle \frac { \partial } { \partial v _ { i } } \pmb { \theta } ^ { 1 } } } & { { = } } & { { \displaystyle - \eta \mathbf { g } _ { i } ^ { 0 } , } } \end{array}
188
+ $$
189
+
190
+ where $H ( \pmb \theta ^ { t } )$ is the Hessian matrix of the objective in (2) with regard to all parameters in iteration $t$ . If we iterate the updates until convergence, then we can assume that $\theta ^ { T }$ is a fix-point, $\pmb { \theta } ^ { \ast } = \pmb { \theta } ^ { T + 1 } =$ $\theta ^ { T }$ , and we obtain:
191
+
192
+ $$
193
+ \frac { \partial } { \partial v _ { i } } \pmb { \theta } ^ { T + 1 } - \frac { \partial } { \partial v _ { i } } \pmb { \theta } ^ { T } = - \eta \mathbf { g } _ { i } ^ { t } - \eta H ( \pmb { \theta } ^ { * } ) \frac { \partial } { \partial v _ { i } } \pmb { \theta } ^ { * }
194
+ $$
195
+
196
+ Hence, the derivative of parameters in the final model with regard to a sample weight is:
197
+
198
+ $$
199
+ \frac { \partial } { \partial v _ { i } } \pmb { \theta } ^ { * } = - H ( \pmb { \theta } ^ { * } ) ^ { - 1 } \mathbf { g } _ { i } ^ { T }
200
+ $$
201
+
202
+ Equation (4) indicates that we can calculate the sample specific impact on final trained model by using the parameters learned at the convergence point. In deep learning methods, due to early stopping, fix point might not be achieved, and Equation (4) might not be an accurate.
203
+
204
+ For any target quantity $\boldsymbol { \mathcal { T } } ( \boldsymbol { \theta } ^ { * } )$ that depends on the final trained parameter $\pmb { \theta } ^ { * }$ , we can calculate the impact of a particular sample on that target as:
205
+
206
+ $$
207
+ \frac { \partial } { \partial v _ { i } } T ( \pmb { \theta } ^ { * } ) = \frac { \partial } { \partial \pmb { \theta } ^ { * } } T ( \pmb { \theta } ^ { * } ) \frac { \partial } { \partial v _ { i } } \pmb { \theta } ^ { * }
208
+ $$
209
+
210
+ For example, if we are interested in the sum of predictions on a set of samples ${ \mathcal { T } } ( \theta ^ { * } ) ~ =$ $\textstyle \sum _ { i \in { \mathcal { S } } _ { c } } f ( \mathbf { x } _ { i } , { \pmb \theta } ^ { t } )$ , we can use Equation (5) to calculate the derivative:
211
+
212
+ $$
213
+ \begin{array} { r c l } { \displaystyle \frac { \partial } { \partial v _ { i } } \mathcal { T } ( \pmb { \theta } ^ { * } ) } & { = } & { \displaystyle \sum _ { i \in \mathcal { S } _ { c } } \frac { \partial } { \partial \pmb { \theta } ^ { * } } f ( \mathbf { x } _ { i } , \pmb { \theta } ^ { t } ) \frac { \partial } { \partial v _ { i } } \pmb { \theta } ^ { * } } \end{array}
214
+ $$
215
+
216
+ We note evaluating the exact impact of a sample, as shown above, is computationally cumbersome for all but the simplest models.
217
+
218
+ # 5 DISCUSSION
219
+
220
+ Samples’ impact on the deep network’s parameters vary across stages of training and network’s layers. In our work, we found that easy samples predominantly shape parameters the top layers at the early training stages, while hard samples predominantly shape the parameters of the bottom layers at the late training stage. Our experiments show that it is important to mix hard samples into different batches rather than keep them together in the same batch and away from other examples.
221
+
222
+ There are many future extensions to the current work. Firstly, we want to expand our sample importance analysis to different deep learning structures, like Convolution Neural Network and Recurrent Neural Networks. Secondly, we want to use the sample importance as a guidance to extract a minimal subset of samples that are sufficient to achieve performance comparable to a network trained on the full dataset.
223
+
224
+ # REFERENCES
225
+
226
+ Fred´ eric Bastien, Pascal Lamblin, Razvan Pascanu, James Bergstra, Ian J. Goodfellow, Arnaud ´ Bergeron, Nicolas Bouchard, and Yoshua Bengio. Theano: new features and speed improvements. Deep Learning and Unsupervised Feature Learning NIPS 2012 Workshop, 2012.
227
+
228
+ Yoshua Bengio, Jer´ ome Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In ˆ Proceedings of the 26th annual international conference on machine learning, pp. 41–48. ACM, 2009.
229
+
230
+ James Bergstra, Olivier Breuleux, Fred´ eric Bastien, Pascal Lamblin, Razvan Pascanu, Guillaume ´ Desjardins, Joseph Turian, David Warde-Farley, and Yoshua Bengio. Theano: a CPU and GPU math expression compiler. In Proceedings of the Python for Scientific Computing Conference (SciPy), June 2010. Oral Presentation.
231
+
232
+ Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In International Conference on Artificial Intelligence and Statistics, pp. 249–256, 2010.
233
+
234
+ Lu Jiang, Deyu Meng, Shoou-I Yu, Zhenzhong Lan, Shiguang Shan, and Alexander Hauptmann. Self-paced learning with diversity. In Advances in Neural Information Processing Systems, pp. 2078–2086, 2014.
235
+
236
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images, 2009.
237
+
238
+ M Pawan Kumar, Benjamin Packer, and Daphne Koller. Self-paced learning for latent variable models. In Advances in Neural Information Processing Systems, pp. 1189–1197, 2010.
239
+
240
+ Yann LeCun, Corinna Cortes, and Christopher JC Burges. The MNIST database of handwritten digits, 1998.
241
+
242
+ Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015.
243
+
244
+ Honglak Lee, Roger Grosse, Rajesh Ranganath, and A. Y. Ng. Unsupervised learning of hierarchical representations with convolutional deep belief networks. Communications of the ACM, 54(10): 95–103, 2011.
245
+
246
+ Andrew Saxe, Pang W Koh, Zhenghao Chen, Maneesh Bhand, Bipin Suresh, and Andrew Y Ng. On random weights and unsupervised feature learning. In Proceedings of the 28th international conference on machine learning (ICML-11), pp. 1089–1096, 2011.
247
+
248
+ Roy T St Laurent and R Dennis Cook. Leverage and superleverage in nonlinear regression. Journal of the American Statistical Association, 87(420):985–990, 1992.
249
+
250
+ # APPENDIX
251
+
252
+ ![](images/b50b1bc5189d4cb3fa5ad2950a2e80b6a0c2b3a70f01fab8b5c6bf2838fbfbfa.jpg)
253
+ Figure 9: The training and test error on MNIST (first row) and CIFAR-10 (second row). The left column showed the average class-specific negative log likelihood.
254
+
255
+ ![](images/f8db2eb88900f5393079c3638df2a7dc58b9a63367a73c5ed63a70e9013e6e1f.jpg)
256
+ Figure 10: Histogram of total sample importance.
parse/train/r1IRctqxg/r1IRctqxg_content_list.json ADDED
@@ -0,0 +1,1286 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SAMPLE IMPORTANCE IN TRAINING DEEP NEURAL NETWORKS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 823,
10
+ 145
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Tianxiang Gao, Vladimir Jojic Department of Computer Science University of North Carolina at Chapel Hill Chapel Hill, NC, 27599 , USA {tgao,vjojic}@cs.unc.edu ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 470,
21
+ 241
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 276,
32
+ 544,
33
+ 291
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "The contribution of each sample during model training varies across training iterations and the model’s parameters. We define the concept of sample importance as the change in parameters induced by a sample. In this paper, we explored the sample importance in training deep neural networks using stochastic gradient descent. We found that “easy” samples – samples that are correctly and confidently classified at the end of the training – shape parameters closer to the output, while the “hard” samples impact parameters closer to the input to the network. Further, “easy” samples are relevant in the early training stages, and “hard” in the late training stage. Further, we show that constructing batches which contain samples of comparable difficulties tends to be a poor strategy compared to maintaining a mix of both hard and easy samples in all of the batches. Interestingly, this contradicts some of the results on curriculum learning which suggest that ordering training examples in terms of difficulty can lead to better performance. ",
40
+ "bbox": [
41
+ 233,
42
+ 316,
43
+ 764,
44
+ 497
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 544,
55
+ 336,
56
+ 560
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Sample importance is the sample’s contribution to the parameter change during training. In statistics, the concept “leverage” of a point is used (St Laurent & Cook (1992)) to measure the impact of a sample on the training of a model. In the context of SVM, the most important samples are the support vectors as they define the separating hyperplane. Understanding the importance of the samples can help us interpret trained models and structure training to speed up convergence and improve prediction accuracy. For example, Curriculum learning (CL) from Bengio et al. (2009) shows that training with easy samples first, then gradually transitioning to difficult samples can improve the learning. In CL, the “easiness” of a sample is predefined either manually or using an evaluation model. Self-paced learning (SPL) (Kumar et al. (2010)) shows that it is possible to learn from samples in order of easiness. In this framework, easiness is related to the prediction error and can be estimated from the model. However, easiness of a sample may not be sufficient to decide when it should be introduced to a learner. Maintaining diversity among the training samples can have a substantial effect on the training (Jiang et al. (2014)). ",
63
+ "bbox": [
64
+ 174,
65
+ 583,
66
+ 825,
67
+ 763
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "In this work, we explore the sample importance in deep neural networks. Deep learning methods have been successfully applied in many tasks and routinely achieve better generalization error than classical shallow methods (LeCun et al. (2015)). One of the key characteristics of a deep network is its capacity to construct progressively more complex features throughout its layers (Lee et al. (2011)). An intuitive question arises: which samples contribute the most to the training of the different layer’s parameters? From literature Saxe et al. (2011), we know that even randomly generated filters can compute features that lead to good performance – presumably on easy samples. However, to learn hard samples correctly, the model may need to construct complex features, which require both more training time and refined filters from bottom layers. Hence, we hypothesized that the hard samples shape the bottom layers – closer to the input – and easy samples shape the top layers – closer to the output. ",
74
+ "bbox": [
75
+ 174,
76
+ 771,
77
+ 825,
78
+ 924
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Motivated by the above hypothesis, we analyzed the sample importance in a 3 layer ReLU network on two standard datasets. The results reveal several interesting facts about the sample importance in easy and hard samples: ",
85
+ "bbox": [
86
+ 174,
87
+ 103,
88
+ 823,
89
+ 146
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "1. Easy and hard samples impact the parameters in different training stages. The biggest impact of easy samples on parameters are mostly during the early training stage, while the impact of hard samples become large in the late training stage. ",
96
+ "bbox": [
97
+ 174,
98
+ 152,
99
+ 821,
100
+ 195
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "2. Easy and hard samples impact the parameters in different layers. Easy samples impact have larger impact on top layer parameters, while hard samples shape the bottom layer parameters. ",
107
+ "bbox": [
108
+ 171,
109
+ 202,
110
+ 823,
111
+ 231
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "3. Mixing hard samples with easy samples in each batch helps training. We conducted batches with homogeneous or mixed “easiness”. We found that use of homogeneous batches hinders the training. Hence, it is preferable for network to see both easy and hard samples during all stages of training. ",
118
+ "bbox": [
119
+ 174,
120
+ 236,
121
+ 825,
122
+ 292
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Next, we are going to give the definition of sample importance in Section 2. The empirical analysis for sample importance in the deep neural network in two real datasets is discussed in Section 3. Extension about sample importance is showed in Section 4. ",
129
+ "bbox": [
130
+ 174,
131
+ 299,
132
+ 825,
133
+ 342
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 SAMPLE IMPORTANCE ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 174,
143
+ 362,
144
+ 390,
145
+ 378
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "In this section, we are going to introduce the terminology and provide a quantitative measurement of sample importance for a training procedure. ",
152
+ "bbox": [
153
+ 173,
154
+ 393,
155
+ 823,
156
+ 422
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "2.1 SAMPLE WEIGHT ",
163
+ "text_level": 1,
164
+ "bbox": [
165
+ 174,
166
+ 439,
167
+ 336,
168
+ 454
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "In supervised learning, a model is trained by optimizing an objective over a set of observed training samples $\\left( \\mathbf { x } _ { i } , y _ { i } \\right)$ . Let $f ( \\mathbf { x } _ { i } , \\pmb { \\theta } )$ be the output of a model for parameter $\\pmb { \\theta }$ . The training objective can be written as: ",
175
+ "bbox": [
176
+ 174,
177
+ 464,
178
+ 825,
179
+ 506
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "equation",
185
+ "img_path": "images/6c9700eb2b2cae7d3282a001c5cf3d7cfe57b076643c802dab9b5964942bf55a.jpg",
186
+ "text": "$$\n\\sum _ { i = 1 } ^ { n } L ( y _ { i } , f ( \\mathbf { x } _ { i } , \\pmb { \\theta } ) ) + R ( \\pmb { \\theta } ) ,\n$$",
187
+ "text_format": "latex",
188
+ "bbox": [
189
+ 401,
190
+ 502,
191
+ 593,
192
+ 544
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "where $L ( y _ { i } , f ( \\mathbf { x } _ { i } , \\pmb { \\theta } ) )$ is the loss on sample $i$ , and $R ( \\pmb \\theta )$ is the regularization on the parameters. In order to highlight contribution of each sample, we can introduce sample specific weights $v _ { i } \\in [ 0 , 1 ]$ which scale sample’s contribution to the loss. Hence, the objective in (1) can be rewritten as: ",
199
+ "bbox": [
200
+ 174,
201
+ 546,
202
+ 825,
203
+ 588
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "equation",
209
+ "img_path": "images/908eabf6f381664fd44fceefb840a8d6b32a49e06bd6bb8d0623fbfe011e5f72.jpg",
210
+ "text": "$$\n\\sum _ { i = 1 } ^ { n } v _ { i } L ( y _ { i } , f ( \\mathbf { x } _ { i } , \\pmb { \\theta } ) ) + R ( \\pmb { \\theta } ) ,\n$$",
211
+ "text_format": "latex",
212
+ "bbox": [
213
+ 395,
214
+ 594,
215
+ 599,
216
+ 636
217
+ ],
218
+ "page_idx": 1
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "We define the weight $v _ { i }$ as the sample weight. Similar definitions on $v _ { i }$ has been proposed in Self-paced learning (SPL) Kumar et al. (2010). ",
223
+ "bbox": [
224
+ 173,
225
+ 640,
226
+ 823,
227
+ 670
228
+ ],
229
+ "page_idx": 1
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "In Stochastic Gradient descend (SGD) methods, parameters $\\pmb \\theta$ are updated with a certain step size $\\eta$ in each iteration with regard to a set of training samples. If we allow different sample weights in different iterations, a single update can be written as: ",
234
+ "bbox": [
235
+ 173,
236
+ 676,
237
+ 825,
238
+ 718
239
+ ],
240
+ "page_idx": 1
241
+ },
242
+ {
243
+ "type": "equation",
244
+ "img_path": "images/f911e47349428d3009a00bd32a2c526871c2ec2abfcf626fe3b2210dd57be4e3.jpg",
245
+ "text": "$$\n\\pmb { \\theta } ^ { t + 1 } = \\pmb { \\theta } ^ { t } - \\eta \\sum _ { i = 1 } ^ { n } v _ { i } ^ { t } \\mathbf { g } _ { i } ^ { t } - \\eta \\mathbf { r } ^ { t } ,\n$$",
246
+ "text_format": "latex",
247
+ "bbox": [
248
+ 395,
249
+ 723,
250
+ 601,
251
+ 765
252
+ ],
253
+ "page_idx": 1
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "where $\\theta ^ { t }$ is the parameter vector at epoch $t$ , $\\begin{array} { r } { \\mathbf { g } _ { i } ^ { t } = \\frac { \\partial } { \\partial \\pmb { \\theta } ^ { t } } L _ { i } ( y _ { i } , f ( \\mathbf { x } _ { i } , \\pmb { \\theta } ^ { t } ) ) , \\mathbf { r } ^ { t } = \\frac { \\partial } { \\partial \\pmb { \\theta } ^ { t } } R ( \\pmb { \\theta } ^ { t } ) } \\end{array}$ , and $\\boldsymbol { v } _ { i } ^ { t }$ is the weight of ith sample at iteration $t$ . ",
258
+ "bbox": [
259
+ 174,
260
+ 772,
261
+ 825,
262
+ 801
263
+ ],
264
+ "page_idx": 1
265
+ },
266
+ {
267
+ "type": "text",
268
+ "text": "2.2 SAMPLE IMPORTANCE ",
269
+ "text_level": 1,
270
+ "bbox": [
271
+ 174,
272
+ 818,
273
+ 369,
274
+ 833
275
+ ],
276
+ "page_idx": 1
277
+ },
278
+ {
279
+ "type": "text",
280
+ "text": "If we change the weight of a sample $i$ at iteration $t$ , how would such change impact the parameter training in that iteration? We can answer this question by calculating the first order derivative of parameter change $\\Delta \\pmb { \\theta } ^ { t } = \\pmb { \\theta } ^ { t + 1 } - \\pmb { \\theta } ^ { t }$ with regard to sample weight $\\boldsymbol { v } _ { i } ^ { t }$ : ",
281
+ "bbox": [
282
+ 174,
283
+ 844,
284
+ 825,
285
+ 888
286
+ ],
287
+ "page_idx": 1
288
+ },
289
+ {
290
+ "type": "equation",
291
+ "img_path": "images/78153153295e27c983546c99d6faeb9380990239d25380c67002d86e081ab9d0.jpg",
292
+ "text": "$$\n{ \\boldsymbol { \\phi } } _ { i } ^ { t } = { \\frac { \\partial } { \\partial v _ { i } ^ { t } } } \\Delta { \\pmb { \\theta } } ^ { t } = - \\eta \\mathbf { g } _ { i } ^ { t } .\n$$",
293
+ "text_format": "latex",
294
+ "bbox": [
295
+ 418,
296
+ 895,
297
+ 580,
298
+ 928
299
+ ],
300
+ "page_idx": 1
301
+ },
302
+ {
303
+ "type": "text",
304
+ "text": "We call $\\boldsymbol { \\phi } _ { i } ^ { t }$ the parameter affectibility by ith sample at iteration $t$ . $\\boldsymbol { \\phi } _ { i } ^ { t }$ is a vector consists of parameter affectibility from all parameters in the network. Specifically, $\\boldsymbol { \\phi } _ { i , j } ^ { t }$ is the parameter affectibility for $j$ th parameter in the network. $\\boldsymbol { \\phi } _ { i } ^ { t }$ reflects the relationship between parameter change and different samples. ",
305
+ "bbox": [
306
+ 174,
307
+ 102,
308
+ 825,
309
+ 165
310
+ ],
311
+ "page_idx": 2
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "Typical deep networks contains millions of parameters. Hence, we are going to focus on groups of parameters of interests. We define ith sample’s importance for parameters of $d \\mathrm { t h }$ layer of as: ",
316
+ "bbox": [
317
+ 173,
318
+ 171,
319
+ 825,
320
+ 200
321
+ ],
322
+ "page_idx": 2
323
+ },
324
+ {
325
+ "type": "equation",
326
+ "img_path": "images/8626b5054cbdde3860883ba9c05d0db064409126f521bc710cb5c5be7c6c90de.jpg",
327
+ "text": "$$\n\\beta _ { i , d } ^ { t } = \\sum _ { j \\in \\mathcal { Q } _ { d } } ( \\phi _ { i , j } ^ { t } ) ^ { 2 } ,\n$$",
328
+ "text_format": "latex",
329
+ "bbox": [
330
+ 431,
331
+ 205,
332
+ 563,
333
+ 241
334
+ ],
335
+ "page_idx": 2
336
+ },
337
+ {
338
+ "type": "text",
339
+ "text": "where $\\mathcal { Q } _ { d }$ is a set consists of the indexes of all parameters in layer $d$ . Hence, sample’s importance for all the parameters in the model is: ",
340
+ "bbox": [
341
+ 174,
342
+ 246,
343
+ 825,
344
+ 275
345
+ ],
346
+ "page_idx": 2
347
+ },
348
+ {
349
+ "type": "equation",
350
+ "img_path": "images/a5f3836f8436def08a638eb774f585b8a6c938e4ea65ef386dd35259b0013a1d.jpg",
351
+ "text": "$$\n\\alpha _ { i } ^ { t } = \\sum _ { j } ( \\phi _ { i , j } ^ { t } ) ^ { 2 } ,\n$$",
352
+ "text_format": "latex",
353
+ "bbox": [
354
+ 441,
355
+ 281,
356
+ 555,
357
+ 316
358
+ ],
359
+ "page_idx": 2
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "Obviously, we have $\\begin{array} { r } { \\alpha _ { i } ^ { t } = \\sum _ { d = 1 } ^ { D } \\beta _ { i , d } ^ { t } } \\end{array}$ ",
364
+ "bbox": [
365
+ 174,
366
+ 323,
367
+ 419,
368
+ 342
369
+ ],
370
+ "page_idx": 2
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "The sum of sample’s importance across all iterations is defined as overall importance of a sample: ",
375
+ "bbox": [
376
+ 173,
377
+ 348,
378
+ 812,
379
+ 363
380
+ ],
381
+ "page_idx": 2
382
+ },
383
+ {
384
+ "type": "equation",
385
+ "img_path": "images/24968536f95e16a13035e3f1082522378fa5bfb112efbdcb7d333c36ee2a3446.jpg",
386
+ "text": "$$\n\\tau _ { i } = \\sum _ { t } \\alpha _ { i } ^ { t }\n$$",
387
+ "text_format": "latex",
388
+ "bbox": [
389
+ 459,
390
+ 368,
391
+ 539,
392
+ 402
393
+ ],
394
+ "page_idx": 2
395
+ },
396
+ {
397
+ "type": "text",
398
+ "text": "In general, for each sample $i$ , computing $\\beta _ { i , d } ^ { t }$ allows us to decompose its influence in the model’s training across training stages and different layers. ",
399
+ "bbox": [
400
+ 171,
401
+ 415,
402
+ 823,
403
+ 446
404
+ ],
405
+ "page_idx": 2
406
+ },
407
+ {
408
+ "type": "text",
409
+ "text": "We note that the sample importance is a high-level measurement of the samples influence on parameters at each iteration of the update. This quantity is not an accurate measurement of the relationship between a sample and final trained model. Refinements of this concept are discussed in Section 4. ",
410
+ "bbox": [
411
+ 174,
412
+ 453,
413
+ 823,
414
+ 496
415
+ ],
416
+ "page_idx": 2
417
+ },
418
+ {
419
+ "type": "text",
420
+ "text": "3 EMPIRICAL ANALYSIS OF SAMPLE IMPORTANCE ",
421
+ "text_level": 1,
422
+ "bbox": [
423
+ 176,
424
+ 516,
425
+ 606,
426
+ 531
427
+ ],
428
+ "page_idx": 2
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "We are going to explore the samples’ importance for different layers at different epoch through a series of empirical experiments on two standard datasets. ",
433
+ "bbox": [
434
+ 174,
435
+ 546,
436
+ 825,
437
+ 574
438
+ ],
439
+ "page_idx": 2
440
+ },
441
+ {
442
+ "type": "text",
443
+ "text": "3.1 EXPERIMENT SETUP ",
444
+ "text_level": 1,
445
+ "bbox": [
446
+ 174,
447
+ 592,
448
+ 357,
449
+ 607
450
+ ],
451
+ "page_idx": 2
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "Dataset All the analysis are performed on two standard datasets: MNIST 1 (LeCun et al. (1998)), a benchmark dataset that contains handwritten digit images. Each sample is a $2 8 \\times 2 8$ image from 10 classes. We used 50000 samples for training and 10000 samples for testing. CIFAR-10 2 (Krizhevsky & Hinton (2009)), a dataset contains $3 2 \\times 3 2$ tiny color images from 10 classes. Each sample has 3072 features. We used 50000 samples for training and 10000 samples for testing. ",
456
+ "bbox": [
457
+ 173,
458
+ 617,
459
+ 825,
460
+ 688
461
+ ],
462
+ "page_idx": 2
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "Architecture We used a multilayer feed forward neural network with 3 hidden layers of 512 hidden nodes with rectified linear units (ReLU) activation function, a linear output layer, and a softmax layer on top for classification. The weights in each hidden layer are initialized according to Glorot & Bengio (2010). For hyper-parameters, we used learning rate of 0.1, batch size of 100, 50 total epochs, and weight-decay of $1 e - 5$ . No momentum or learning decay was used. All the code are based on a common deep learning package Theano from Bergstra et al. (2010); Bastien et al. (2012). ",
467
+ "bbox": [
468
+ 174,
469
+ 703,
470
+ 825,
471
+ 787
472
+ ],
473
+ "page_idx": 2
474
+ },
475
+ {
476
+ "type": "text",
477
+ "text": "3.2 SAMPLE IMPORTANCE IS STABLE WITH RESPECT TO DIFFERENT INITIALIZATIONS ",
478
+ "text_level": 1,
479
+ "bbox": [
480
+ 171,
481
+ 804,
482
+ 776,
483
+ 818
484
+ ],
485
+ "page_idx": 2
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "Firstly, we want to explore whether the sample importance is stable under different initializations. We used three different random seeds to initialize the network parameters and calculated the sample importance every five epochs. We computed the Spearman’s rank correlation between sample importance to the model, $\\alpha _ { i } ^ { t }$ , in each pair of initializations. This correlation remains high in all epochs, above 0.9, as shown in Figure 1. This indicates that the sample importance is relatively stable to initialization of the network. Hence, all the following analysis are based on the results from initialization seed 1. (Details of training and test error for the chosen model can be viewed in Appendix Figure 9). ",
490
+ "bbox": [
491
+ 174,
492
+ 829,
493
+ 825,
494
+ 886
495
+ ],
496
+ "page_idx": 2
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "",
501
+ "bbox": [
502
+ 174,
503
+ 103,
504
+ 825,
505
+ 160
506
+ ],
507
+ "page_idx": 3
508
+ },
509
+ {
510
+ "type": "image",
511
+ "img_path": "images/0a3fc09ab1365aa5c2ccb287411ae343403bce7f9654cd12222a19101f92d457.jpg",
512
+ "image_caption": [
513
+ "Figure 1: Does initialization affect sample’s importance? Sample importance is preserved between initializations of the network. For each epoch, and a pair of initializations, we computed Spearman Correlation of samples’ importance. Across all epochs, the correlation is of greater than 0.9 in both MNIST and CIFAR-10. Early epochs show higher consistency between ranks of sample importance across different initializations. "
514
+ ],
515
+ "image_footnote": [],
516
+ "bbox": [
517
+ 274,
518
+ 188,
519
+ 723,
520
+ 358
521
+ ],
522
+ "page_idx": 3
523
+ },
524
+ {
525
+ "type": "text",
526
+ "text": "3.3 DECOMPOSITION OF SAMPLE IMPORTANCE ",
527
+ "text_level": 1,
528
+ "bbox": [
529
+ 178,
530
+ 503,
531
+ 509,
532
+ 517
533
+ ],
534
+ "page_idx": 3
535
+ },
536
+ {
537
+ "type": "text",
538
+ "text": "To better understand and visualize the sample importance, we firstly calculate the overall sample importance at each epoch as $\\begin{array} { r } { A ^ { t } = \\sum _ { i = 1 } ^ { n } \\dot { \\alpha _ { i } ^ { t } } } \\end{array}$ . Similarly, the overall sample importance to layer $d$ is $\\begin{array} { r } { B _ { d } ^ { t } = \\sum _ { i = 1 } ^ { n } \\beta _ { i , d } ^ { t } } \\end{array}$ . We show the overall sample importance and its decomposition in layers for two datasets in Figure 2. Firstly, we found that even with a fixed learning rate, the overall sample importance is different under different epochs. Output layer always has the largest average sample importance per parameter, and its contribution reaches the maximum in the early training stage and then drops. Each layer contributes differently to the total sample importance. In both MNIST and CIFAR-10, the 2nd layer contributes more than the 3rd layer. In CIFAR-10, the 1st layer’s provides largest contribution the total sample importance, as it contains much more parameters than other layers. Interestingly, all classes do not provide the same amount of sample importance. ",
539
+ "bbox": [
540
+ 174,
541
+ 534,
542
+ 825,
543
+ 675
544
+ ],
545
+ "page_idx": 3
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "We found that most samples have small sample importance (Appendix Figure 10). To visualize the contribution of different samples, we split the samples based on their total importance into three groups: $10 \\%$ , top $10 \\%$ – top $20 \\%$ most important samples, and other $80 \\%$ samples. We show the decomposition of importance contribution in each layer in Figure 3. In MNIST, the top $10 \\%$ samples contribute almost all the sample importance. In CIFAR-10, most important samples contribute more in lower layers rather than output layer. This result indicates that top $20 \\%$ most important samples contribute to the majority of the sample importance. ",
550
+ "bbox": [
551
+ 174,
552
+ 683,
553
+ 825,
554
+ 780
555
+ ],
556
+ "page_idx": 3
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "3.4 SAMPLE IMPORTANCE AND NEGATIVE LOG-LIKELIHOOD ",
561
+ "text_level": 1,
562
+ "bbox": [
563
+ 174,
564
+ 810,
565
+ 604,
566
+ 823
567
+ ],
568
+ "page_idx": 3
569
+ },
570
+ {
571
+ "type": "text",
572
+ "text": "Negative log likelihood (NLL) is the loss metric we used for training objective. It has been used to measure the “easiness” of a sample in Curriculum learning Bengio et al. (2009) and Self-paced learning Kumar et al. (2010). Intuitively, the samples with large NLL should also have large sample importance (SI). However, in our experiment, we found that this is not always the case. In Figure 4, we found that 1) NLL and SI become more correlated as training goes on. However, 2) NLL is not predictive of the SI. There are many points with high NLL but small SI, and otherwise. ",
573
+ "bbox": [
574
+ 174,
575
+ 839,
576
+ 825,
577
+ 924
578
+ ],
579
+ "page_idx": 3
580
+ },
581
+ {
582
+ "type": "image",
583
+ "img_path": "images/7b01f6ee56ad410d554315b0e829197fb194fba35538582c41bb8eb261a1288f.jpg",
584
+ "image_caption": [
585
+ "Figure 2: Which classes and at which stage shape the network’s layer’s parameters? Parameters of different layers are learned at different times. Parameters in Output layers are learned mostly during the early training stage. In the lower layers, parameters are learned predominantly during the middle and late training stage. All classes do not contribute equally to training of the model. "
586
+ ],
587
+ "image_footnote": [],
588
+ "bbox": [
589
+ 176,
590
+ 102,
591
+ 869,
592
+ 415
593
+ ],
594
+ "page_idx": 4
595
+ },
596
+ {
597
+ "type": "image",
598
+ "img_path": "images/c65928096336387e31f6986d8a5c1157a406686b28f9f2fb2cc62ef0c29e1cd8.jpg",
599
+ "image_caption": [
600
+ "Figure 3: Are all data samples equally important for all layers? The top $20 \\%$ most important samples contributes to the majority of parameter learning, especially in lower layers. “L1” to “L3” stands for Layer 1 to Layer 3. “Out” stands for output layer. "
601
+ ],
602
+ "image_footnote": [],
603
+ "bbox": [
604
+ 179,
605
+ 510,
606
+ 913,
607
+ 751
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "3.5 CLUSTERING SAMPLES BASED ON SAMPLE IMPORTANCE ",
614
+ "text_level": 1,
615
+ "bbox": [
616
+ 181,
617
+ 842,
618
+ 602,
619
+ 856
620
+ ],
621
+ "page_idx": 4
622
+ },
623
+ {
624
+ "type": "text",
625
+ "text": "To better visualize the importance of different samples, we provide three representative clusters of samples for each dataset. In MNIST, we clustered all digit “5” samples into 20 clusters based on their epoch-specific, layer-specific sample importance. In CIFAR-10, we clustered all “horse” samples into 30 clusters using the same features as MNIST. Kmeans algorithm is used for clustering. ",
626
+ "bbox": [
627
+ 174,
628
+ 867,
629
+ 825,
630
+ 924
631
+ ],
632
+ "page_idx": 4
633
+ },
634
+ {
635
+ "type": "image",
636
+ "img_path": "images/366cabd6209561647cb6d00ed6cdc1387b95f239c1a5c25a3d36e0ae64232719.jpg",
637
+ "image_caption": [
638
+ "Figure 4: Is Sample Importance correlated with Negative log-likelihood of a sample? Sample importance is positively correlated with negative log-likelihood. As training goes on, their correlation becomes higher. However, there remain many samples with high NLL and low SI, and vice versa. Left column: correlation between sample importance and negative log likelihood for all samples across epochs. Right column: scatter plot for NLL in the last epoch and all epoch sample importance for each sample. "
639
+ ],
640
+ "image_footnote": [],
641
+ "bbox": [
642
+ 318,
643
+ 104,
644
+ 678,
645
+ 385
646
+ ],
647
+ "page_idx": 5
648
+ },
649
+ {
650
+ "type": "text",
651
+ "text": "MNIST In Figure 5, we showed 3 example clusters on digit $\\cdot 5 ^ { , }$ . In the cluster of easy samples, where NLL converges very fast, most of the sample importance is concentrated in the first few epochs in output layer parameters. The cluster of medium samples has a slow NLL convergence compared to the easy cluster. The biggest impact is in middle training stage and more towards bottom layer parameters. Hard samples hardly converge even during the late stage of training. As training goes on, the sample importance for the bottom layer parameters become larger. ",
652
+ "bbox": [
653
+ 173,
654
+ 520,
655
+ 825,
656
+ 604
657
+ ],
658
+ "page_idx": 5
659
+ },
660
+ {
661
+ "type": "text",
662
+ "text": "CIFAR-10 In Figure 6, we showed 3 examples clusters on class “horse”. We observed very similar sample importance changing pattern as for the MNIST examples for easy, medium and hard clusters. Comparing to MNIST, all three clusters in CIFAR-10 have a very large impact on the parameters in the bottom layer. We note that the CIFAR-10 has almost 4 times larger number of parameters $( 3 0 7 5 \\times 5 1 2 \\approx 1 5 7 4 k )$ in the first layer than MNIST $7 8 5 \\times 5 1 2 \\approx 4 0 1 k$ ). ",
663
+ "bbox": [
664
+ 174,
665
+ 619,
666
+ 825,
667
+ 690
668
+ ],
669
+ "page_idx": 5
670
+ },
671
+ {
672
+ "type": "text",
673
+ "text": "3.6 BATCH ORDER AND SAMPLE IMPORTANCE ",
674
+ "text_level": 1,
675
+ "bbox": [
676
+ 174,
677
+ 708,
678
+ 504,
679
+ 722
680
+ ],
681
+ "page_idx": 5
682
+ },
683
+ {
684
+ "type": "text",
685
+ "text": "With the observations from empirical analysis on sample importance, we know that time – iteration – and place – layer – of sample’s impact varies according to its “easiness” . We wanted to know whether constructing batches based on the sample importance or negative log likelihood would make a difference in training. Hence, we designed an experiment to explore how the different construction of batches influence the training. We note that the information used to structure the batches (negative log-likelihood and sample importance) – was obtained from a full training run. ",
686
+ "bbox": [
687
+ 174,
688
+ 734,
689
+ 825,
690
+ 818
691
+ ],
692
+ "page_idx": 5
693
+ },
694
+ {
695
+ "type": "text",
696
+ "text": "We split all 50, 000 samples into $b = 5 0 0$ batch subsets $\\{ B _ { 1 } , B _ { 2 } , \\ldots , B _ { b } \\}$ . Each batch has batch size $| B _ { i } | = 1 0 0$ . In our experiment, each training sample must be in exactly one batch. There is no intersection between batches. ",
697
+ "bbox": [
698
+ 174,
699
+ 824,
700
+ 825,
701
+ 867
702
+ ],
703
+ "page_idx": 5
704
+ },
705
+ {
706
+ "type": "text",
707
+ "text": "During training, in each epoch, we update the parameters with each batch in order $1 , 2 , \\ldots , b$ iteratively. ",
708
+ "bbox": [
709
+ 174,
710
+ 875,
711
+ 823,
712
+ 902
713
+ ],
714
+ "page_idx": 5
715
+ },
716
+ {
717
+ "type": "text",
718
+ "text": "We used seven different batch construction methods in this experiment: ",
719
+ "bbox": [
720
+ 174,
721
+ 909,
722
+ 640,
723
+ 924
724
+ ],
725
+ "page_idx": 5
726
+ },
727
+ {
728
+ "type": "image",
729
+ "img_path": "images/beca3d0da8b2003b41df3f1588b013088625e0966c9a1ccd126e7c77463862f6.jpg",
730
+ "image_caption": [
731
+ "Figure 5: When and where does an MNIST sample make the biggest impact? For “easy” samples, their biggest impact is on output layers and during the early training stage. As sample’s difficulty increases (medium and hard), the biggest impact moves to lower layers and in the late training stage. Each row is a sample cluster. In each row, from left to right: example images in the cluster; average sample importance and layer-wise decomposition across epochs; A boxplot of average training negative log likelihood across epochs. "
732
+ ],
733
+ "image_footnote": [],
734
+ "bbox": [
735
+ 184,
736
+ 108,
737
+ 816,
738
+ 470
739
+ ],
740
+ "page_idx": 6
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "1. Rand: Randomly constructed batch. All $5 0 \\mathrm { k }$ samples are randomly split into $b$ batches before training. The batches and orders stay fixed during training. \n2. NLO: Negative Log-likelihood Order. We sort all the samples based on their final NLL from low to high. The batches are constructed based on the sorted samples. First 100 samples with least NLL are in $\\boldsymbol { B } _ { 1 }$ , 101 to 200 samples are in $B _ { 2 }$ , and so on. Hence, during training, the batches with small NLL will be trained first. \n3. RNLO Reverse-Negative Log-likelihood Order. We construct the batches same as NLO. During training, we update the batches in reverse order $B _ { b } , B _ { b - 1 } , \\ldots , B _ { 1 }$ . Hence, the batches with large NLL will be trained first. \n4. NLM Negative Log-likelihood Mixed. We sort all the samples based on their final NLL from low to high. Next, for each sample $i$ in the sorted sequence, we put that sample into batch $j = ( i { \\bmod { b } } ) + 1$ . This ordering constructs batches out of samples with diverse levels of NLL. \n5. SIO: Sample Importance Order. Similar to NLO, except that we sort all the samples based on their sum sample importance over all epochs from low to high. Hence, batches with small sample importance will be trained first. \n6. RSIO Reverse-Sample Importance Order. We construct the batches same as SIO. During training, we update the batches in reverse order $B _ { b } , B _ { b - 1 } , \\ldots , B _ { 1 }$ . Hence, during training, the batches with large sample importance will be trained first. ",
745
+ "bbox": [
746
+ 209,
747
+ 611,
748
+ 826,
749
+ 924
750
+ ],
751
+ "page_idx": 6
752
+ },
753
+ {
754
+ "type": "image",
755
+ "img_path": "images/06ecd2bfd33d18b39d48776d6ab4984ee42b58766a17f2e0d0d3d92cd9424928.jpg",
756
+ "image_caption": [
757
+ "Figure 6: When and where does a CIFAR-10 sample make the biggest impact? For “easy” samples, their biggest impact is on the first layer during the early training stage. As samples’s difficulty increases (medium and hard), the biggest impact moves to lower layers and to late training stage. Each row is a sample cluster. In each row, from left to right: example images in the cluster; average sample importance and layer-wise decomposition across epochs; A boxplot of average training negative log likelihood across epochs. "
758
+ ],
759
+ "image_footnote": [],
760
+ "bbox": [
761
+ 184,
762
+ 108,
763
+ 816,
764
+ 470
765
+ ],
766
+ "page_idx": 7
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "7. SIM Sample Important Mixed. Similar to NLM, but we sort the samples based on overall sample importance. Thus, batches contain samples with divers sample importance. ",
771
+ "bbox": [
772
+ 210,
773
+ 611,
774
+ 823,
775
+ 638
776
+ ],
777
+ "page_idx": 7
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "We performed five different runs (with different random initializations) on MNIST and CIFAR-10. The result is shown in Figure 7. From the result, we found that: 1) In both MNIST and CIFAR-10, Rand, SIS, and NLS have the lowest test error compared to all other methods. This indicates that diverse batches are helpful for training. 2) NLO and SIO got the worst performance in CIFAR10. Their training error even goes up after the early stage. RNLO and RSIO have same batch constructions as NLO and SIO, but their performances are drastically different. This indicates that the order of batches during training is important. Further, training on easy samples first and hard later seems to be counter-productive. ",
782
+ "bbox": [
783
+ 174,
784
+ 651,
785
+ 825,
786
+ 762
787
+ ],
788
+ "page_idx": 7
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "To better understand the impact of different batch construction, we performed the principle component analysis on the learned parameters in each epoch (Figure 8). In MNIST, the impact of batch construction is not very significant. In CIFAR-10, batch construction and even the order of batch training do have a large impact on the training. ",
793
+ "bbox": [
794
+ 174,
795
+ 770,
796
+ 823,
797
+ 825
798
+ ],
799
+ "page_idx": 7
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "Our experiment result shows a different conclusion to Curriculum Learning and Self-paced learning, where easy samples are trained on before introducing hard samples. We found that constructing and ordering the batches – hard to easy and easy to hard – seems to hinder the performance of learning. Having hard samples mixed in with the easy ones in each batch helps the training. ",
804
+ "bbox": [
805
+ 174,
806
+ 833,
807
+ 823,
808
+ 888
809
+ ],
810
+ "page_idx": 7
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "Also, the results show that we want to learn from the hard samples in early epochs and “see” hard samples more frequently, even if their major impact on parameters is during the late stage. As hard examples are few compared to easy samples and hard examples need a longer time to train, we do want to mix the hard samples into each batch to start learning from those samples early and learn longer. ",
815
+ "bbox": [
816
+ 174,
817
+ 895,
818
+ 821,
819
+ 924
820
+ ],
821
+ "page_idx": 7
822
+ },
823
+ {
824
+ "type": "image",
825
+ "img_path": "images/42716aa645f0c758ca13ad616d456e30f3c7f969dca4da6b441665f267b2d69c.jpg",
826
+ "image_caption": [
827
+ "Figure 7: Does organizing batches by “easiness” affect training? When batches are constructed with homogeneous easiness, the training performance become worse. Batches with mixed easiness have lower test error. The solid color line represents the mean over 5 runs. The error bar indicates the standard error over 5 runs. "
828
+ ],
829
+ "image_footnote": [],
830
+ "bbox": [
831
+ 223,
832
+ 102,
833
+ 772,
834
+ 270
835
+ ],
836
+ "page_idx": 8
837
+ },
838
+ {
839
+ "type": "image",
840
+ "img_path": "images/2356039eb64f765e3572f2159baff9807ba4501ba29d7c5578292085327cf2f9.jpg",
841
+ "image_caption": [
842
+ "Figure 8: Do parameters converge differently under different batch construction? In MNIST, the converging path for all batch constructions are very similar. In CIFAR-10, batch construction with mixed easiness (Rand, NLM, SIM) has a very different converging path with all other methods. Notably, we found that even with same batch constructions but just reversed order (NLO vs. RNLO, SIO vs. RSIO), the parameters converge to different points. Each circle dotted line shows the path of the first two principle components of all parameters in different epochs. Note that in CIFAR-10, the paths of Rand, NLS and SIS are very similar and they are overlapped in the plot. "
843
+ ],
844
+ "image_footnote": [],
845
+ "bbox": [
846
+ 222,
847
+ 371,
848
+ 774,
849
+ 536
850
+ ],
851
+ "page_idx": 8
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "",
856
+ "bbox": [
857
+ 174,
858
+ 693,
859
+ 825,
860
+ 736
861
+ ],
862
+ "page_idx": 8
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "4 EXTENSIONS OF SAMPLE IMPORTANCE ",
867
+ "text_level": 1,
868
+ "bbox": [
869
+ 174,
870
+ 765,
871
+ 529,
872
+ 781
873
+ ],
874
+ "page_idx": 8
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "We calculated the sample importance in each iteration in Stochastic Gradient Descent. However, such quantity only reflects the impact on the change in parameters within each iteration. The influence of a sample at a particular iteration can be accumulated through updates and impact the final model. Here, we are going to derive the exact calculation of the sample’s influence to the model. We rewrite the Objective (2) in Section 2 here: ",
879
+ "bbox": [
880
+ 173,
881
+ 801,
882
+ 825,
883
+ 872
884
+ ],
885
+ "page_idx": 8
886
+ },
887
+ {
888
+ "type": "equation",
889
+ "img_path": "images/8ca9c38e6c5150d63505cc23867c20c4d293b98739219cf5bd6679bd8c8ccc7f.jpg",
890
+ "text": "$$\n\\operatorname* { m i n } _ { \\pmb { \\theta } } \\sum _ { i = 1 } ^ { n } v _ { i } L ( y _ { i } , f ( \\mathbf { x } _ { i } , \\pmb { \\theta } ) ) + R ( \\pmb { \\theta } ) ,\n$$",
891
+ "text_format": "latex",
892
+ "bbox": [
893
+ 382,
894
+ 887,
895
+ 614,
896
+ 928
897
+ ],
898
+ "page_idx": 8
899
+ },
900
+ {
901
+ "type": "text",
902
+ "text": "Here, we deem the sample weight $v _ { i }$ is fixed across all iterations. The update rule for stochastic gradient descent in each iteration is: ",
903
+ "bbox": [
904
+ 171,
905
+ 103,
906
+ 823,
907
+ 132
908
+ ],
909
+ "page_idx": 9
910
+ },
911
+ {
912
+ "type": "equation",
913
+ "img_path": "images/6cc13f76fb0dc2b8abc82ce34dff334fff073e9fe51d4eef1884b1df7628cc5a.jpg",
914
+ "text": "$$\n\\pmb { \\theta } ^ { t + 1 } = \\pmb { \\theta } ^ { t } - \\eta \\sum _ { i } v _ { i } \\mathbf { g } _ { i } ^ { t } - \\eta \\mathbf { r } _ { i } ^ { t }\n$$",
915
+ "text_format": "latex",
916
+ "bbox": [
917
+ 398,
918
+ 138,
919
+ 599,
920
+ 174
921
+ ],
922
+ "page_idx": 9
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "The derivative of $\\pmb { \\theta } ^ { t + 1 }$ with respect to sample weight $v _ { i }$ is: ",
927
+ "bbox": [
928
+ 173,
929
+ 181,
930
+ 560,
931
+ 198
932
+ ],
933
+ "page_idx": 9
934
+ },
935
+ {
936
+ "type": "equation",
937
+ "img_path": "images/55051f6288701aec5bc042041645cddaf7911962d699ba048cc340f009ad8f71.jpg",
938
+ "text": "$$\n\\begin{array} { r c l } { { \\displaystyle \\frac { \\partial } { \\partial v _ { i } } \\pmb { \\theta } ^ { t + 1 } } } & { { = } } & { { \\displaystyle \\frac { \\partial } { \\partial v _ { i } } \\pmb { \\theta } ^ { t } - \\eta \\mathbf { g } _ { i } ^ { t } - \\eta H ( \\pmb { \\theta } ^ { t } ) \\frac { \\partial } { \\partial v _ { i } } \\pmb { \\theta } ^ { t } } } \\\\ { { \\displaystyle \\frac { \\partial } { \\partial v _ { i } } \\pmb { \\theta } ^ { 1 } } } & { { = } } & { { \\displaystyle - \\eta \\mathbf { g } _ { i } ^ { 0 } , } } \\end{array}\n$$",
939
+ "text_format": "latex",
940
+ "bbox": [
941
+ 346,
942
+ 204,
943
+ 653,
944
+ 271
945
+ ],
946
+ "page_idx": 9
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "where $H ( \\pmb \\theta ^ { t } )$ is the Hessian matrix of the objective in (2) with regard to all parameters in iteration $t$ . If we iterate the updates until convergence, then we can assume that $\\theta ^ { T }$ is a fix-point, $\\pmb { \\theta } ^ { \\ast } = \\pmb { \\theta } ^ { T + 1 } =$ $\\theta ^ { T }$ , and we obtain: ",
951
+ "bbox": [
952
+ 173,
953
+ 287,
954
+ 825,
955
+ 333
956
+ ],
957
+ "page_idx": 9
958
+ },
959
+ {
960
+ "type": "equation",
961
+ "img_path": "images/8ccd2bd9ca63663dc86b7ef0562ad15de38ed0ccf52a47be5041531fd09326a6.jpg",
962
+ "text": "$$\n\\frac { \\partial } { \\partial v _ { i } } \\pmb { \\theta } ^ { T + 1 } - \\frac { \\partial } { \\partial v _ { i } } \\pmb { \\theta } ^ { T } = - \\eta \\mathbf { g } _ { i } ^ { t } - \\eta H ( \\pmb { \\theta } ^ { * } ) \\frac { \\partial } { \\partial v _ { i } } \\pmb { \\theta } ^ { * }\n$$",
963
+ "text_format": "latex",
964
+ "bbox": [
965
+ 331,
966
+ 340,
967
+ 665,
968
+ 375
969
+ ],
970
+ "page_idx": 9
971
+ },
972
+ {
973
+ "type": "text",
974
+ "text": "Hence, the derivative of parameters in the final model with regard to a sample weight is: ",
975
+ "bbox": [
976
+ 168,
977
+ 390,
978
+ 751,
979
+ 406
980
+ ],
981
+ "page_idx": 9
982
+ },
983
+ {
984
+ "type": "equation",
985
+ "img_path": "images/d30cb4417f117e660ccdc2a6eee39501c9d3a39ed7f1bff4e22e84cfa00b7d0f.jpg",
986
+ "text": "$$\n\\frac { \\partial } { \\partial v _ { i } } \\pmb { \\theta } ^ { * } = - H ( \\pmb { \\theta } ^ { * } ) ^ { - 1 } \\mathbf { g } _ { i } ^ { T }\n$$",
987
+ "text_format": "latex",
988
+ "bbox": [
989
+ 416,
990
+ 412,
991
+ 581,
992
+ 445
993
+ ],
994
+ "page_idx": 9
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "Equation (4) indicates that we can calculate the sample specific impact on final trained model by using the parameters learned at the convergence point. In deep learning methods, due to early stopping, fix point might not be achieved, and Equation (4) might not be an accurate. ",
999
+ "bbox": [
1000
+ 173,
1001
+ 459,
1002
+ 825,
1003
+ 502
1004
+ ],
1005
+ "page_idx": 9
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "For any target quantity $\\boldsymbol { \\mathcal { T } } ( \\boldsymbol { \\theta } ^ { * } )$ that depends on the final trained parameter $\\pmb { \\theta } ^ { * }$ , we can calculate the impact of a particular sample on that target as: ",
1010
+ "bbox": [
1011
+ 174,
1012
+ 508,
1013
+ 823,
1014
+ 537
1015
+ ],
1016
+ "page_idx": 9
1017
+ },
1018
+ {
1019
+ "type": "equation",
1020
+ "img_path": "images/99669177b9d03a381895ef1d3e8c83623a18afe29a5d5ceb5234ccb87dc95e73.jpg",
1021
+ "text": "$$\n\\frac { \\partial } { \\partial v _ { i } } T ( \\pmb { \\theta } ^ { * } ) = \\frac { \\partial } { \\partial \\pmb { \\theta } ^ { * } } T ( \\pmb { \\theta } ^ { * } ) \\frac { \\partial } { \\partial v _ { i } } \\pmb { \\theta } ^ { * }\n$$",
1022
+ "text_format": "latex",
1023
+ "bbox": [
1024
+ 393,
1025
+ 544,
1026
+ 604,
1027
+ 577
1028
+ ],
1029
+ "page_idx": 9
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "For example, if we are interested in the sum of predictions on a set of samples ${ \\mathcal { T } } ( \\theta ^ { * } ) ~ =$ $\\textstyle \\sum _ { i \\in { \\mathcal { S } } _ { c } } f ( \\mathbf { x } _ { i } , { \\pmb \\theta } ^ { t } )$ , we can use Equation (5) to calculate the derivative: ",
1034
+ "bbox": [
1035
+ 174,
1036
+ 592,
1037
+ 825,
1038
+ 623
1039
+ ],
1040
+ "page_idx": 9
1041
+ },
1042
+ {
1043
+ "type": "equation",
1044
+ "img_path": "images/8e4ed9df320fa4f39c893488bb13c88063209723ed58f1f12dd7b772e9e01530.jpg",
1045
+ "text": "$$\n\\begin{array} { r c l } { \\displaystyle \\frac { \\partial } { \\partial v _ { i } } \\mathcal { T } ( \\pmb { \\theta } ^ { * } ) } & { = } & { \\displaystyle \\sum _ { i \\in \\mathcal { S } _ { c } } \\frac { \\partial } { \\partial \\pmb { \\theta } ^ { * } } f ( \\mathbf { x } _ { i } , \\pmb { \\theta } ^ { t } ) \\frac { \\partial } { \\partial v _ { i } } \\pmb { \\theta } ^ { * } } \\end{array}\n$$",
1046
+ "text_format": "latex",
1047
+ "bbox": [
1048
+ 356,
1049
+ 631,
1050
+ 640,
1051
+ 671
1052
+ ],
1053
+ "page_idx": 9
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "We note evaluating the exact impact of a sample, as shown above, is computationally cumbersome for all but the simplest models. ",
1058
+ "bbox": [
1059
+ 173,
1060
+ 694,
1061
+ 823,
1062
+ 724
1063
+ ],
1064
+ "page_idx": 9
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "5 DISCUSSION ",
1069
+ "text_level": 1,
1070
+ "bbox": [
1071
+ 174,
1072
+ 744,
1073
+ 312,
1074
+ 761
1075
+ ],
1076
+ "page_idx": 9
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "Samples’ impact on the deep network’s parameters vary across stages of training and network’s layers. In our work, we found that easy samples predominantly shape parameters the top layers at the early training stages, while hard samples predominantly shape the parameters of the bottom layers at the late training stage. Our experiments show that it is important to mix hard samples into different batches rather than keep them together in the same batch and away from other examples. ",
1081
+ "bbox": [
1082
+ 173,
1083
+ 776,
1084
+ 825,
1085
+ 847
1086
+ ],
1087
+ "page_idx": 9
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "There are many future extensions to the current work. Firstly, we want to expand our sample importance analysis to different deep learning structures, like Convolution Neural Network and Recurrent Neural Networks. Secondly, we want to use the sample importance as a guidance to extract a minimal subset of samples that are sufficient to achieve performance comparable to a network trained on the full dataset. ",
1092
+ "bbox": [
1093
+ 174,
1094
+ 853,
1095
+ 825,
1096
+ 924
1097
+ ],
1098
+ "page_idx": 9
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "REFERENCES ",
1103
+ "text_level": 1,
1104
+ "bbox": [
1105
+ 176,
1106
+ 102,
1107
+ 287,
1108
+ 117
1109
+ ],
1110
+ "page_idx": 10
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "Fred´ eric Bastien, Pascal Lamblin, Razvan Pascanu, James Bergstra, Ian J. Goodfellow, Arnaud ´ Bergeron, Nicolas Bouchard, and Yoshua Bengio. Theano: new features and speed improvements. Deep Learning and Unsupervised Feature Learning NIPS 2012 Workshop, 2012. ",
1115
+ "bbox": [
1116
+ 174,
1117
+ 126,
1118
+ 825,
1119
+ 167
1120
+ ],
1121
+ "page_idx": 10
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "Yoshua Bengio, Jer´ ome Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In ˆ Proceedings of the 26th annual international conference on machine learning, pp. 41–48. ACM, 2009. ",
1126
+ "bbox": [
1127
+ 178,
1128
+ 178,
1129
+ 821,
1130
+ 219
1131
+ ],
1132
+ "page_idx": 10
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "James Bergstra, Olivier Breuleux, Fred´ eric Bastien, Pascal Lamblin, Razvan Pascanu, Guillaume ´ Desjardins, Joseph Turian, David Warde-Farley, and Yoshua Bengio. Theano: a CPU and GPU math expression compiler. In Proceedings of the Python for Scientific Computing Conference (SciPy), June 2010. Oral Presentation. ",
1137
+ "bbox": [
1138
+ 174,
1139
+ 228,
1140
+ 825,
1141
+ 285
1142
+ ],
1143
+ "page_idx": 10
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In International Conference on Artificial Intelligence and Statistics, pp. 249–256, 2010. ",
1148
+ "bbox": [
1149
+ 173,
1150
+ 294,
1151
+ 823,
1152
+ 323
1153
+ ],
1154
+ "page_idx": 10
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "Lu Jiang, Deyu Meng, Shoou-I Yu, Zhenzhong Lan, Shiguang Shan, and Alexander Hauptmann. Self-paced learning with diversity. In Advances in Neural Information Processing Systems, pp. 2078–2086, 2014. ",
1159
+ "bbox": [
1160
+ 173,
1161
+ 332,
1162
+ 825,
1163
+ 375
1164
+ ],
1165
+ "page_idx": 10
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images, 2009. ",
1170
+ "bbox": [
1171
+ 173,
1172
+ 383,
1173
+ 821,
1174
+ 398
1175
+ ],
1176
+ "page_idx": 10
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "M Pawan Kumar, Benjamin Packer, and Daphne Koller. Self-paced learning for latent variable models. In Advances in Neural Information Processing Systems, pp. 1189–1197, 2010. ",
1181
+ "bbox": [
1182
+ 174,
1183
+ 406,
1184
+ 821,
1185
+ 436
1186
+ ],
1187
+ "page_idx": 10
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "Yann LeCun, Corinna Cortes, and Christopher JC Burges. The MNIST database of handwritten digits, 1998. ",
1192
+ "bbox": [
1193
+ 176,
1194
+ 444,
1195
+ 821,
1196
+ 474
1197
+ ],
1198
+ "page_idx": 10
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015. ",
1203
+ "bbox": [
1204
+ 174,
1205
+ 482,
1206
+ 821,
1207
+ 512
1208
+ ],
1209
+ "page_idx": 10
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Honglak Lee, Roger Grosse, Rajesh Ranganath, and A. Y. Ng. Unsupervised learning of hierarchical representations with convolutional deep belief networks. Communications of the ACM, 54(10): 95–103, 2011. ",
1214
+ "bbox": [
1215
+ 174,
1216
+ 520,
1217
+ 825,
1218
+ 563
1219
+ ],
1220
+ "page_idx": 10
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Andrew Saxe, Pang W Koh, Zhenghao Chen, Maneesh Bhand, Bipin Suresh, and Andrew Y Ng. On random weights and unsupervised feature learning. In Proceedings of the 28th international conference on machine learning (ICML-11), pp. 1089–1096, 2011. ",
1225
+ "bbox": [
1226
+ 174,
1227
+ 571,
1228
+ 825,
1229
+ 616
1230
+ ],
1231
+ "page_idx": 10
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "Roy T St Laurent and R Dennis Cook. Leverage and superleverage in nonlinear regression. Journal of the American Statistical Association, 87(420):985–990, 1992. ",
1236
+ "bbox": [
1237
+ 173,
1238
+ 625,
1239
+ 823,
1240
+ 652
1241
+ ],
1242
+ "page_idx": 10
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "APPENDIX ",
1247
+ "text_level": 1,
1248
+ "bbox": [
1249
+ 176,
1250
+ 103,
1251
+ 263,
1252
+ 117
1253
+ ],
1254
+ "page_idx": 11
1255
+ },
1256
+ {
1257
+ "type": "image",
1258
+ "img_path": "images/b50b1bc5189d4cb3fa5ad2950a2e80b6a0c2b3a70f01fab8b5c6bf2838fbfbfa.jpg",
1259
+ "image_caption": [
1260
+ "Figure 9: The training and test error on MNIST (first row) and CIFAR-10 (second row). The left column showed the average class-specific negative log likelihood. "
1261
+ ],
1262
+ "image_footnote": [],
1263
+ "bbox": [
1264
+ 222,
1265
+ 140,
1266
+ 774,
1267
+ 482
1268
+ ],
1269
+ "page_idx": 11
1270
+ },
1271
+ {
1272
+ "type": "image",
1273
+ "img_path": "images/f8db2eb88900f5393079c3638df2a7dc58b9a63367a73c5ed63a70e9013e6e1f.jpg",
1274
+ "image_caption": [
1275
+ "Figure 10: Histogram of total sample importance. "
1276
+ ],
1277
+ "image_footnote": [],
1278
+ "bbox": [
1279
+ 277,
1280
+ 561,
1281
+ 717,
1282
+ 728
1283
+ ],
1284
+ "page_idx": 11
1285
+ }
1286
+ ]
parse/train/r1IRctqxg/r1IRctqxg_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1IRctqxg/r1IRctqxg_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rknt2Be0-/rknt2Be0-.md ADDED
@@ -0,0 +1,340 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # COMPOSITIONAL OBVERTER COMMUNICATION LEARNING FROM RAW VISUAL INPUT
2
+
3
+ Edward Choi ∗
4
+ Georgia Institute of Technology
5
+ Atlanta, GA, USA
6
+ mp2893@gatech.edu
7
+ Angeliki Lazaridou & Nando de Freitas
8
+ DeepMind
9
+ London, UK
10
+ {angeliki, nandodefreitas}@google.com
11
+
12
+ # ABSTRACT
13
+
14
+ One of the distinguishing aspects of human language is its compositionality, which allows us to describe complex environments with limited vocabulary. Previously, it has been shown that neural network agents can learn to communicate in a highly structured, possibly compositional language based on disentangled input (e.g. handengineered features). Humans, however, do not learn to communicate based on well-summarized features. In this work, we train neural agents to simultaneously develop visual perception from raw image pixels, and learn to communicate with a sequence of discrete symbols. The agents play an image description game where the image contains factors such as colors and shapes. We train the agents using the obverter technique where an agent introspects to generate messages that maximize its own understanding. Through qualitative analysis, visualization and a zero-shot test, we show that the agents can develop, out of raw image pixels, a language with compositional properties, given a proper pressure from the environment.
15
+
16
+ # 1 INTRODUCTION
17
+
18
+ One of the key requirements for artificial general intelligence (AGI) to thrive in the real world is its ability to communicate with humans in natural language. Natural language processing (NLP) has been an active field of research for a long time, and the introduction of deep learning (LeCun et al., 2015) enabled great progress in NLP tasks such as translation, image captioning, text generation and visual question answering (Cho et al., 2014; Bahdanau et al., 2014; Vinyals et al., 2015; Karpathy & Fei-Fei, 2015; Hu et al., 2017; Serban et al., 2016; Lewis et al., 2017; Antol et al., 2015). However, training machines in a supervised manner with a large dataset has its limits when it comes to communication. Supervised methods are effective for capturing statistical associations between discrete symbols (i.e. words, letters). The essence of communication is more than just predicting the most likely word to come next; it is a means to coordinate with others and potentially achieve a common goal (Austin, 1975; Clark, 1996; Wittgenstein, 1953).
19
+
20
+ An alternative path to teaching machines the art of communication is to give them a specific task and encourage them to learn how to communicate on their own. This approach will encourage the agents to use languages grounded to task-related entities as well as communicate with other agents, which is one of the ways humans learn to communicate (Bruner, 1981). Recently, there have been several notable works that demonstrated the emergence of communication between neural network agents. Even though each work produced very interesting results of its own, in all cases, communication was either achieved with a single discrete symbol (as opposed to a sequence of discrete symbols) (Foerster et al., 2016; Lazaridou et al., 2017) or via a continuous value (Sukhbaatar et al., 2016; Jorge et al., 2016). Not only is human communication un-differentiable, but also using a single discrete symbol is quite far from natural language communication. One of the key features of human language is its compositional nature; the meaning of a complex expression is determined by its structure and the meanings of its constituents (Frege, 1892). More recently, Mordatch & Abbeel (2017) and Kottur et al. (2017) trained the agents to communicate in grounded, compositional language. In both studies, however, inputs given to the agents were hand-engineered features (disentangled input) rather than raw perceptual signals that we receive as humans.
21
+
22
+ In this work, we train neural agents to simultaneously develop visual perception from raw image pixels, and learn to communicate with a sequence of discrete symbols. Unlike previous works, our setup poses greater challenges to the agents since visual understanding and discrete communication have to be induced from scratch in parallel. We place the agents in a two-person image description game, where images contain objects of various color and shape. Inspired by the pioneering work of Batali (1998), we employ a communication philosophy named obverter to train the agents. Having its root in the theory of mind (Premack & Woodruff, 1978) and human language development (Milligan et al., 2007), the obverter technique motivates an agent to search over messages and generate the ones that maximize their own understanding. The contribution of our work can be summarized as follows:
23
+
24
+ • We train artificial agents to learn to disentangle raw image pixels and communicate in compositional language at the same time.
25
+ • We describe how the obverter technique, a differentiable learning algorithm for discrete communication, could be employed in a communication game with raw visual input.
26
+ • We visualize how the agents are perceiving the images and show that they learn to disentangle color and shape without any explicit supervision other than the communication one.
27
+ • Experiment results suggest that the agents could develop, out of raw image input, a language with compositional properties, given a proper pressure from the environment (i.e. the image description game).
28
+
29
+ Finally, while our exposition follows a multi-agent perspective, it is also possible to interpret our results in the single-agent setting. We are effectively learning a neural network that is able to learn disentangled compositional representations of visual scenes, without any supervision. Subject to the constraints imposed by their environment, our agents learn disentangled concepts, and how to compose these to form new concepts. This is an important milestone in the path to AGI.
30
+
31
+ # 2 METHOD
32
+
33
+ # 2.1 THE TWO-PERSON IMAGE DESCRIPTION GAME
34
+
35
+ ![](images/fe848c0db6f5de8bab346ead880e705a22d31e75c43a4509f5ea6f47130e08f7.jpg)
36
+ Figure 1: The two-person image description game. Speaker observes an image and generates a message (i.e. a sequence of discrete symbols). The listener, after observing a separate image and the message, must correctly decide whether it is seeing the same object as the speaker (left side; output 1) or not (right side; output 0).
37
+
38
+ ![](images/b0f08c116783796164e0f37b02eb2fea29ddc93f0d918fda9b7fa3e6ebcdda8e.jpg)
39
+ Figure 2: Example images of the dataset. There are eight colors (blue, red, white, gray, yellow, green, cyan, magenta), and five shapes (box, sphere, cylinder, capsule, ellipsoid), giving us total 40 combinations.
40
+
41
+ We choose a straightforward image description game with two factors (color and shape) so that we can perform extensive analysis on the outcome confidently, based on full control of the experiment. In a single round of the two-person image description game, one agent becomes the speaker and the other the listener. The speaker is given a random image, and generates a message to describe it. The listener is also given a random image, possibly the same image as the speaker’s. After hearing the message from the speaker, the listener must decide if it is seeing the same object as the speaker (Figure 1). Note that an image is the raw pixels given to the agents, and an object is the thing described by the image. Therefore two different images can depict the same object. In each round the agents change roles of being the speaker and the listener.
42
+
43
+ We generated synthetic images using Mujoco physics simulator1. The example images are shown in Figure 2. Each image depicts a single object with a specific color and shape in $1 2 8 \times 1 2 8$ resolution. There are eight colors (blue, red, white, gray, yellow, green, cyan, magenta) and five shapes (box, sphere, cylinder, capsule, ellipsoid), giving us 40 combinations. We generated 100 variations for each of the 40 object type. Note that the position of the object varies in each image, changing the object size and the orientation. Therefore even if the speaker and the listener are given the same object type, the actual images are very likely to be different, preventing the agents from using pixel-specific information, rather than object-related information to win the game.
44
+
45
+ # 2.2 MODEL ARCHITECTURE
46
+
47
+ ![](images/7902c027c72b5a000bf12271e28b3cfff9c03cda8af5899e656377dae25107a7.jpg)
48
+ Figure 3: Agent model architecture. The visual module processes the image, and the language module generates or consumes messages. The decision module accepts embeddings from both modules and produces the output. The solid arrows indicate modifying the output from the previous layer. The dotted arrows indicate copying the output from the previous layer.
49
+
50
+ Aside from using disentangled input, another strong assumption made in previous works(Batali, 1998; Mordatch & Abbeel, 2017) was that the agents had access to the true intention of the speaker. In Batali (1998), the listener was trained to modify its RNN hidden vector as closely to the speaker’s intention (meaning vector; please see Table 5 in Appendix A) as possible. In Mordatch & Abbeel (2017), each agent had an auxiliary task to predict the goals of all other agents. In both cases, the true meaning/goal vector was used to update the model parameters, exposing the disentangled information to the agents. In order to relax this assumption and encourage the agents to develop communication with minimal guidance, our model uses no other signal than whether the listener made a correct decision.
51
+
52
+ Figure 3 depicts the agent model architecture. We use a convolutional neural network followed by a fully-connected layer to process the image. A single RNN, specifically the gated recurrent units (GRU) (Cho et al., 2014), is used for both generating and consuming messages (the message generation using the obverter strategy is described in the next section). When consuming a message, the image embedding from the visual module and the message embedding from the language module are concatenated and processed by another fully-connected layers (i.e. decision module) with the sigmoid output $\hat { y }$ , 0 being “My (listener) image is different from the speaker’s” and 1 being “My image is the same as the speaker’s”. Further details of the model architecture (e.g. number of layers) are described in Appendix C.
53
+
54
+ # 2.3 OBVERTER TECHNIQUE
55
+
56
+ Although our work is inspired by Batali (1998) (see Appendix A for the description of Batali (1998)), obverter technique is a general message generation philosophy used/discussed in a number of communication and language evolution studies (Hurford, 1989; Oliphant & Batali, 1997; Smith, 2001; Kirby & Hurford, 2002), which has its root in the theory of mind. Theory of mind (Premack & Woodruff, 1978) observes that a human has direct access only to one’s own mind and not to the others’. Therefore we typically assume that the mind of others is analogous to ours, and such assumption is reflected in the functional use of language (Bruner, 1981). For example, if we want to convey a piece of information to the listener2, it is best to speak in a way that maximizes the listener’s understanding. However, since we cannot directly observe the listener’s state of mind, we cannot exactly solve this optimization problem. Therefore we posit that the listener’s mind operates in a similar manner as ours, and speak in a way that maximizes our understanding, thus approximately solving the optimization problem. This is exactly what the obverter technique tries to achieve.
57
+
58
+ When an agent becomes the teacher (i.e. speaker), the model parameters are fixed. The image is converted to an embedding via the visual module. After initializing its RNN hidden layer to zeros, the teacher at each timestep evaluates $\hat { y }$ for all possible symbols and selects the one that maximizes $\hat { y }$ The RNN hidden vector induced by the chosen symbol is used in the next timestep. This is repeated until $\hat { y }$ becomes bigger than the predefined threshold, or the maximum message length is reached (see Appendix D for algorithm). Therefore the teacher, through introspection, greedily selects characters at each timestep to generate a message such that the consistency between the image and the message is as clear to itself as possible. When an agent becomes the learner (i.e. listener), its parameters are updated via back-propagating the cross entropy loss between its output $\hat { y }$ and the true label $y$ . Therefore the agents must learn to communicate only from the true label indicating whether the teacher and the learner are seeing the same object.
59
+
60
+ We remind the reader that only the learner’s RNN parameters are updated, and the teacher uses its fixed RNN. Therefore an agent uses only one RNN for both speaking and listening, guaranteeing self-consistency (see Appendix B for a detailed comparison between the obverter technique and the RL-based approach). Furthermore, because the teacher’s parameters are fixed, message generation can easily be extended to be more exploratory. Although in this work we deterministically selected a character in each timestep, one can, for example, sample characters proportionally to $\hat { y }$ and still use gradient descent for training the agents. Using a more exploratory message generation strategy could help us discover a more optimal communication language when dealing with complex tasks.
61
+
62
+ Another feature of the obverter technique is that it observes the principle of least effort (Zipf, 1949). Because the teacher stops generating symbols as soon as $\hat { y }$ reaches the threshold, it does not waste any more effort trying to perfect the message. The same principle was implemented in one way or another in previous works, such as choosing the shortest among the generated strings (Kirby & Hurford, 2002) or imposing a small cost for generating a message (Mordatch & Abbeel, 2017).
63
+
64
+ # 2.4 ENVIRONMENTAL PRESSURE FOR COMPOSITIONAL COMMUNICATION
65
+
66
+ During the early stages of research, we noticed that randomly sampling object pairs (one for the teacher, one for the learner) lead to agents focusing only on colors and ignoring shapes. When the teacher’s object is fixed, there are 40 (8 colors $\times 5$ shapes) possibilities on the learner’s side. If the teacher only talks about the color of the object, the learner can correctly decide for 36 out of 40 possible object types. The learner makes incorrect decisions only when the teacher and the learner are given objects of the same color but different shapes, resulting in $9 0 \%$ accuracy on average. This is actually what we observed; the accuracy plateaued between 0.9 and 0.92 during the training, and the messages were more or less the same for objects with the same color. Therefore when constructing a mini-batch of images, we set $2 5 \%$ to be the object pairs of the same color and shape, $30 \%$ the same shape but different colors, $20 \%$ the same color but different shapes. The remaining $2 5 \%$ object pairs were picked randomly3.
67
+
68
+ Vocabulary size (i.e. number of unique symbols) and the maximum message length were also influential to the final outcome. We noticed that a larger vocabulary and a longer message length helped the agents achieve a high communication accuracy more easily. But the resulting messages were more challenging to analyze for compositional patterns. In all our experiments we used 5 and 20 respectively for the vocabulary size and the maximum message length, similar to what Batali (1998) used. This suggests that the environment plays as important, if not more, role as the model architecture in the emergence of complex communication as discussed by previous studies (Kirby et al., 2014; Bratman et al., 2010; Kottur et al., 2017) and should be a main consideration for future efforts. Further details regarding hyperparameters are described in Appendix E.
69
+
70
+ # 3 EXPERIMENTS
71
+
72
+ In this section, we first study the convergence behavior during the training phase. Then we analyze the language developed by the agents in terms of compositionality. As stated in the introduction, in compositional language, the meaning of a complex expression is determined by its structure and the meanings of its constituents. With this definition in mind, we focus on two aspects of the inter-agent communication to evaluate its compositional properties: the structure (i.e. grammar) of the communication, and zero-shot performance (i.e. generalizing to novel stimuli). These two aspects, which are both necessary conditions for any language to be considered compositional, have been used by previous works to study the compositional nature of artificial communication (Batali, 1998; Mordatch & Abbeel, 2017; Kottur et al., 2017).
73
+
74
+ To evaluate the structure of the messages, we study the evolution of the communication as training proceeds, and try to derive a grammar for expressing colors and shapes. To evaluate the zero-shot capabilities, we test if the agents can compose consistent messages for objects they have not seen during the training. Moreover, we visualize the image embeddings from the visual modules of both agents to understand how they are recognizing colors and shapes, the results of which, for a better view of the figures, are provided in Appendix H.
75
+
76
+ # 3.1 CONVERGENCE BEHAVIOR
77
+
78
+ ![](images/e4918ef563341b6e90dc729d2d56d92b62fe35943fcf79abaaa0650a641662d6.jpg)
79
+ Figure 4: Progress during the training (best seen in color). (Top) We plot the training accuracy, training loss, average message length and average message distinctness in each round. (Bottom) We plot the perplexities and the Jaccard similarity of the messages spoken by both agents in each round. Note that the average message length and the perplexities are divided by 20 to match the y-axis range with other metrics.
80
+
81
+ Figure 4 shows the convergence behavior during the training. Training accuracy was calculated by rounding the learner’s sigmoid output by 0.5. Message distinctness was calculated by dividing the number of unique messages in the mini-batch by the size of the mini-batch. Ideally there should be, on average, 40 distinct messages in the mini-batch of 50 images, therefore giving us 0.8 distinctness. Every 10 round, both agents were given the same 1, 000 randomly sampled images to generate 1, 000 message pairs. Then perplexity was calculated for each object type and averaged, thus indicating the average number of distinct messages used by the agents to describe a single object type (note that perplexities in the plot was divided by 20). Jaccard similarity between both agents’ messages was also calculated for each object type and averaged.
82
+
83
+ At the beginning, the listener (i.e. learner) always decides it is not seeing the same object as the speaker, giving us 0.75 accuracy4. But after 7, 000 rounds, accuracy starts to go beyond 0.9. Loss is negatively correlated with accuracy until round 15, 000, where it starts to fluctuate. Accuracy, however, remains high due to how accuracy is measured; by rounding the learner’s output by 0.5. Although we could occasionally observe some patterns in the messages when both accuracy and loss were high, a lower loss generally resulted in a clearer communication structure (i.e. grammar) and better zero-shot performance. The loss fluctuation also indicates some instability in the training process, which is a potential direction for future work. Message distinctness starts at near 0, indicating the agents are generating the same message for all object types. After round 7, 000, where both message distinctness and message length reach their maximum, both start to decrease. But message distinctness never goes as high as the ideal 0.8, meaning that the agents are occasionally using the same message for different object types, as will be shown in the following section.
84
+
85
+ Both perplexities and Jaccard similarity show seemingly meaningless fluctuation at early rounds. After round 7, 000, perplexities and Jaccard similarity show negatively correlated behavior, meaning that not only is each agent using consistent messages to describe each object type, but also both agents are using very similar messages to describe each object type. We found perplexity and Jaccard similarity to be an important indicator of the degree of the communication structure. During rounds $7 , 0 0 0 \sim 8 , 0 0 0$ , performance was excellent in terms of loss and accuracy, but perplexity was high and Jaccard similarity low, indicating the agents were assigning incoherent strings to each object type just to win the game. Similar behavior was observed in the early stages of language evolution simulation in Kirby & Hurford (2002) where words represented some meanings but had no structure (i.e. protolanguage). It seems that artificial communication acquires compositional properties after the emergence of protolanguage regardless of whether the input is entangled or disentangled.
86
+
87
+ # 3.2 GRAMMAR ANALYSIS
88
+
89
+ We choose agents from different training rounds to highlight how the language becomes more structured over time. Table 1 shows agents’ messages in the beginning (round 40), when the training accuracy starts pushing beyond $9 0 \%$ (round 6, 940), when agents settle on a common language (round 16, 760).
90
+
91
+ In round 40, both agents are respectively producing the same message for all object types as mentioned in section 3.1. We might say the messages are structured, but considering that the listener always answers 0 in early rounds, we cannot say the agents are communicating. In round 6, 940, which is roughly when the agents begin to communicate more efficiently, training accuracy is significantly higher than round 40. However, perplexities show that both agents are assigning many names to a single object type (40-80 names depending on the object type), indicating that the agents are focusing on pixel-level differences between images of the same object type. Table 1 shows, as an example, the messages used by both agents to describe the red sphere. Due to high perplexity, it is difficult to capture the underlying grammar of the messages even with regular expression. Furthermore, as Jaccard similarity indicates, both agents are generating completely different messages for the same object type. In round 16, 760, as the perplexities and Jaccard similarity tell us, the agents came to share a very narrow set of names for each object type (1-4 names depending on the object type). Moreover, the names of the same-colored objects and same-shaped objects clearly seem to follow a pattern. Overall, each of the three phases (round 40, round 6,940, round 16,760) seem to represent the development of visual perception, learning to communicate, and emergence of structure.
92
+
93
+ We found the messages in round 16, 760 could be decomposed in a similar manner as Table 6 in Appendix A. The top of Table 2 shows a possible decomposition of the messages from round 16, 760 and the bottom shows the rules for each color and shape derived from the decomposition. According to our analysis, the agents use the first part of the message (i.e. prefix) to specify a shape, and the second part (i.e. suffix) to specify a color. However, they use two different strings to specify a shape. For example, the agents use either aaaa or bbbbb to describe a box. The strings used for specifying colors show slightly weaker regularity. For example, red is always described by either the suffix c or suffix e, but magenta is described by the suffix bb, bd, and sometimes b or bc. a used for ¯ gray objects
94
+
95
+ Round 40 (Training accuracy: $6 6 . 1 \%$ , Agent0 perplexity:1.0, Agent1 perplexity:1.0, Jaccard similarity:0.0)
96
+
97
+ <table><tr><td rowspan=1 colspan=1>■</td><td rowspan=1 colspan=1>All objectsdescribed by Agent 0</td><td rowspan=1 colspan=1>All objectsdescribed byAgent1</td></tr><tr><td rowspan=1 colspan=1>Message</td><td rowspan=1 colspan=1>dddddddddddddddddddd</td><td rowspan=1 colspan=1>bbbbbbbbbbbbbbbbbbbb</td></tr></table>
98
+
99
+ # Round 6,940
100
+
101
+ (Training accuracy: $9 3 . 1 \%$ , Agent0 perplexity:9.90, Agent1 perplexity:17.73, Jaccard similarity:0.0)
102
+
103
+ <table><tr><td>■</td><td>Redsphere described byagent 0</td><td>Redspheredescribedbyagent1</td></tr><tr><td rowspan="9">Messages</td><td>aeceaeaeaaaeeeeeeeee</td><td>aaedacacaaaaaaaaaaaa</td></tr><tr><td>aacceeaaaaeeeeeeeeee</td><td>aaccdaacaaaaaaaaaaaa</td></tr><tr><td>aaccceaaaaaaaaeeeeee</td><td>aaabcdadaaaaaaaaaaaa</td></tr><tr><td>aeeeeaaaaeeeeeeeeeee</td><td>aaeeacaeaaaaaaaaaaaa</td></tr><tr><td>aeaceeaeaeeeeeeeeeee</td><td>aaccdadaaaaaaacaaaaa</td></tr><tr><td>aceacacaaaaaaeeeeeee</td><td>aaedaceaaaaaaaaaaaaa</td></tr><tr><td>abeeeeaeeeeeeeeeeeee</td><td>aaeaccaeaaaaaaaaaaaa</td></tr><tr><td>aacceeaeeeeeeeeeeeee</td><td>aaceacaacaaaaaaaaaaa</td></tr><tr><td>aacceeaeaaeeeeeeeeee</td><td>aacdacdaaaaaaaaaaaaa</td></tr><tr><td>aeeacacaaaeeccceeeee</td><td></td><td>aaccdadaaaaacaaaaaaa</td></tr></table>
104
+
105
+ Round 16,760 (Training accuracy: $9 8 . 0 \%$ , Agent0 perplexity:1.69, Agent1 perplexity:1.62, Jaccard similarity:0.82)
106
+ Table 1: (Top) Messages used by both agents when speaking about any object in round 40. (Middle) Ten most frequent messages used by each agent to describe a red sphere in round 6, 940. (Bottom) Messages most often used by both agents for each object type in round 16, 760. Brackets indicate the variation often seen at the last character. Underscores indicate blanks.
107
+
108
+ <table><tr><td>:</td><td>Box</td><td>Sphere</td><td>Cylinder</td><td>Capsule</td><td>Ellipsoid</td></tr><tr><td>Blue</td><td>bbbbbbb{b.d}</td><td>bb{b,d}</td><td>bbbbbb{b,d}</td><td>bbbbb{c,d}</td><td>bbbb{-,c,d}</td></tr><tr><td>Red White</td><td>aaaa{c,e}</td><td>aa{c,e}</td><td>aaa{c,e}</td><td>a{c,e}</td><td>c,e</td></tr><tr><td></td><td>bbbbbb</td><td>b,d</td><td>bbbb{b,d}</td><td>bbb{b.d}</td><td>bb{-,c,d}</td></tr><tr><td>Gray</td><td>aaa</td><td>a</td><td>aa</td><td>C</td><td>b,bd</td></tr><tr><td>Yellow</td><td>aaaaaa</td><td>aaaa</td><td>aaaaa</td><td>aaa</td><td>a{a,e}</td></tr><tr><td>Green</td><td>aaaa{a,ad}</td><td>aa{a,ad}</td><td>aaa{a.ad}</td><td>a{a,ad}</td><td>a</td></tr><tr><td>Cyan</td><td>ax20</td><td>bbb{b,d}</td><td>bbbbbbb{b,d}</td><td>bbbbbbd</td><td>bbbbb{b.d}</td></tr><tr><td>Magenta</td><td>bbbbbbb</td><td>b{b.d</td><td>bbbbb{b,d}</td><td>bbbbd</td><td>bbb{-.c,d}</td></tr></table>
109
+
110
+ represents deletion of the prefix a. Note that removing prefixes beyond their length causes the pattern to break. For example, gray box, gray sphere and gray cylinder use the same a¯aa to express the color, ¯ but gray capsule and gray ellipsoid use irregular suffixes.
111
+
112
+ Despite some irregularities and one exceptional case (cyan box), the messages provide strong evidence that the agents learned to properly recognize color and shape from raw pixel input (see Appendix H for studying what the visual module learned), mapped each color and shape to prefixes and suffixes, and are able to compose meaningful messages to describe a given image to one another. Communication accuracy for each object type is described in Appendix F. Communication examples and their analysis are given in Appendix G.
113
+
114
+ # 3.3 ZERO-SHOT EVALUATION
115
+
116
+ If the agents have truly learned to compose a message that can be divided into a color part and a shape part, then they should be able to accurately describe an object they have not seen before, which is another necessary condition for a compositional language. Therefore, we hold out five objects (the shaded cells in Table 3) from the dataset during the training and observe how agents describe five novel objects during the test phase. The agents were chosen from round 19, 980, which showed a high accuracy $( 9 7 . 8 \% )$ , low perplexities (1.48, 1.65) and a high Jaccard similarity (0.75). Table 3 shows a potential decomposition of the messages used by the agents (original messages are described by Table 8 in Appendix I). We can observe that there is clearly a structure in the communication, although some messages show somewhat weaker patterns compared to when the agents were trained with all object types (Table 2). Suffixes for specifying yellow and magenta are especially irregular, even when we consider the effects of b and ¯ e. However, the messages describing the held-out object ¯ types show clear structure with the exception of yellow ellipsoid.
117
+
118
+ <table><tr><td>■</td><td>Box</td><td>Sphere</td><td>Cylinder</td><td>Capsule</td><td>Ellipsoid</td></tr><tr><td>Blue Red</td><td>bbbbb bb{b,d} aaaa {c,e}</td><td>bb{b,d} aa {c,e}</td><td>bbbb bb{b.d} aaa {c,e}</td><td>bbb bb{c,d} a{c,e}</td><td>bb bb{-.c,d} {c,e}</td></tr><tr><td>White</td><td>bbbbbb</td><td>{b.d}</td><td>bbbb{b.d}</td><td>bbb {b.d}</td><td>bb{-c,d}</td></tr><tr><td>Gray</td><td>aaaa aaa</td><td>aa aaa</td><td>aaa aaa</td><td>a aac</td><td>aa{b,bd}</td></tr><tr><td>Yellow</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>aaaa aa</td><td>aaaa</td><td>aaaaa</td><td>aaa</td><td>a{ae}</td></tr><tr><td>Green</td><td>aaaa {a,ad}</td><td>aa {a,ad}</td><td>aaa {a,ad}</td><td>a{a,ad}</td><td>a</td></tr><tr><td>Cyan</td><td>a×20</td><td>bbb{b,d}</td><td>bbbb bbb{b,d}</td><td>bbb bbbd</td><td>bb bbb{b.d}</td></tr><tr><td>Magenta</td><td>bbbbbbb</td><td>b{b,d}</td><td>bbbbb{b.d}</td><td>bbb bd</td><td>bbb{-c,d}</td></tr></table>
119
+
120
+ Define Blue, White, Cyan, Magenta as color group 0, rest as color group 1.
121
+
122
+ <table><tr><td rowspan=1 colspan=1>■</td><td rowspan=1 colspan=1>Rule</td></tr><tr><td rowspan=1 colspan=1>Blue</td><td rowspan=3 colspan=1>End with bbb or bbdEnd with c or eEnd with b or dEnd with aaaEnd with aaEnd with a or adEnd with bbbb or bbbdEnd with bb or bd</td></tr><tr><td rowspan=1 colspan=1>RedWhite</td></tr><tr><td rowspan=1 colspan=1>Gray</td><td rowspan=1 colspan=1>GrayYellowGreenCyanMagenta</td></tr><tr><td rowspan=1 colspan=1>BoxSphereCylinderCapsuleEllipsoid</td><td rowspan=1 colspan=1>Start with bbbbb for color group O, start with aaaa for color group 1Start with aa for color group 1Start with bbbb for color group O, start with aaa for color group 1Start with bbb for color group O,start with a for color group 1Start with bb for color group 0</td></tr></table>
123
+
124
+ Table 2: (Top) Potential composition analysis of the messages from round 16,760 (bottom of Table 1). Italic symbols are used to specify shapes and roman symbols are used to specify colors. a indicates ¯ deleting a single prefix a. (Bottom) Rules for each color and shape derived from the top table.
125
+ Table 3: Potential analysis of the messages observed in the zero-shot test. Gray cells indicate object types unseen during the training phase. Italic symbols are used to specify shapes and roman symbols to specify colors. b indicates deleting a single prefix¯ $b$ . e indicates deleting a single prefix ¯ $e$ . Underscores indicate blanks.
126
+
127
+ <table><tr><td rowspan=1 colspan=1>■</td><td rowspan=1 colspan=3>Box</td><td rowspan=1 colspan=2>Sphere</td><td rowspan=1 colspan=3>Cylinder</td><td rowspan=1 colspan=1>Capsule</td><td rowspan=1 colspan=1>Ellipsoid</td></tr><tr><td rowspan=7 colspan=1>BlueRedWhiteGrayYellowGreen</td><td rowspan=1 colspan=3>eeeeee e{e,ee}</td><td rowspan=1 colspan=2>eeeeee</td><td rowspan=2 colspan=3>eeeee e{e,ed}eeeee eeee{e,a}</td><td rowspan=3 colspan=1>eee e{e,ed}eee eeee{b,ba}bb {b.d}</td><td rowspan=5 colspan=1>eee{e,a}ee eeee{a,c}bbb {d.c}ee eee{b.d}</td></tr><tr><td rowspan=6 colspan=3>eeeeee eeee{e.a}bbbbbeeeeeeeeeebbbb bb{c,d}eeeeee {e,a}</td><td rowspan=1 colspan=2>eeee eeee{e,ea}</td><td rowspan=1 colspan=2>eeee</td></tr><tr><td rowspan=1 colspan=2>bb</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=2></td><td rowspan=2 colspan=1></td><td rowspan=2 colspan=1>eeee eee{-,a}</td><td rowspan=1 colspan=1></td><td rowspan=2 colspan=3>eeeee eee{e,a}</td><td rowspan=2 colspan=1>eee eee{e,a}</td></tr><tr><td rowspan=4 colspan=2>bbbe{e,ec}eeee {e,a}eeee ee{e,a}bb{c.d</td></tr><tr><td rowspan=3 colspan=3>bbb bb{c,d}eeeee {e,a}eeeee ee{e,ea}bbbb{b.d}</td><td rowspan=2 colspan=1>bb bb{a.c}eee{e,a}</td><td rowspan=1 colspan=1>bbb bb{a,e}</td></tr><tr><td rowspan=2 colspan=1>eee{e,a}eee ee{e,a}bb bb</td><td rowspan=2 colspan=1>ee {e,a}ee eeabbb bb{c.a}</td></tr><tr><td rowspan=1 colspan=1>CyanMagenta</td><td rowspan=1 colspan=3>eeeeee eeeabbbb b{b.d}</td><td rowspan=1 colspan=1></td></tr></table>
128
+
129
+ In order to assess the communication accuracy when held-out objects are involved, we conducted another test with the agents from round 19, 980. Each held-out object was given to the speaker, the listener, or both. In the first two cases, the held-out object was paired with all 40 object types and each pair was tested 10 times. In the last case, the held-out object was tested against itself 10 times. In all cases, the agents switched roles after 5 times. Table 4 shows communication accuracies for each case. We can see the agents can successfully communicate most of the time even when given novel objects. The last column shows that the listener is not simply producing 0 to maximize its chance to win the game. It is also notable that the objects described without $\bar { \mathsf b }$ or e show better performance in general. ¯ We noticed the communication accuracy for held-out objects seems relatively weak considering the messages used to describe them strongly showed structure. (Table 3). This, however, results from the grammar (i.e. structure) being not as straightforward as Table 2, especially with short messages (i.e. frequent use of $\bar { \mathsf b }$ and e). The same tendency can be observed for non-held-out objects as described ¯ by the per-object communication accuracy Table 9 in Appendix J.
130
+
131
+ Table 4: Communication accuracy when agents were given objects not seen during the training.
132
+
133
+ <table><tr><td></td><td>Given to speaker</td><td>Given to listener</td><td>Given to both</td></tr><tr><td>BlueBox</td><td>0.97</td><td>0.97</td><td>1.00</td></tr><tr><td>Red Sphere</td><td>0.92</td><td>0.91</td><td>0.80</td></tr><tr><td>White Cylinder</td><td>0.95</td><td>0.95</td><td>0.90</td></tr><tr><td>Gray Capsule</td><td>0.91</td><td>0.91</td><td>1.00</td></tr><tr><td>Yellow Ellipsoid</td><td>0.91</td><td>0.90</td><td>1.00</td></tr></table>
134
+
135
+ From the grammar analysis in the previous section, we have shown that the emerged language strongly follows a well-defined grammar. In the zero-shot test, the agents demonstrated that they can successfully describe novel object, although not perfectly, by also following a similar grammar. Both are, as stated in the beginning of section 3, necessary conditions for any communication to be considered compositional. Therefore we can safely conclude that the emerged language in this work possesses some qualifications to be considered compositional.
136
+
137
+ # 4 DISCUSSION
138
+
139
+ In this work, we used the obverter technique to train neural network agents to communicate in a two-person image description game. Through qualitative analysis, visualization and the zero-shot test, we have shown that even though the agents receive raw perception in the form of image pixels, under the right environment pressures, the emerged language had properties consistent with the ones found in compositional languages.
140
+
141
+ As an evaluation strategy, we followed previous works and focused on assessing the necessary conditions of compositional languages. However, the exact definition of compositional language is still somewhat debatable, and, to the best of our knowledge, there is no reliable way to mathematically quantify the degree of compositionality of an arbitrary language. Therefore, in order to encourage active research and discussion among researchers in this domain, we propose for future work, a quantitatively measurable definition of compositionality. We believe compositionality of a language is not binary (e.g. language A is compositional/not compositional), but a spectrum. For example, human language has some aspects that are compositional (e.g., syntactic constructions, most morphological combinations) and some that are not (e.g., irregular verb tenses in English, character-level word composition). It is also important to clearly define grounded language and compositional language. If one agent says abc (eat red apple) and another says cba (apple red eat), and they both understand each other, are they speaking compositional language? We believe such questions should be asked and addressed to shape the definition of compositionality.
142
+
143
+ In addition to the definition/evaluation of compositional languages, there are numerous directions of future work. Observing the emergence of a compositional language among more than two agents is an apparent next step. Designing an environment to motivate the agents to disentangle more than two factors is also an interesting direction. Training agents to consider the context (i.e. pragmatics), such as giving each agent several images instead of one, is another exciting future work.
144
+
145
+ # ACKNOWLEDGMENTS
146
+
147
+ We would like to thank Scott Reed for discussions on pragmatics, Tom Le Paine for advising the visual module architecture, Jakob Foerster for discussions on grammar induction, Sookyung Kim and Joonseok Lee for discussions on human language and compositionality, Phil Blunsom and Jimeng Sun for helpful comments on the manuscript.
148
+
149
+ # REFERENCES
150
+
151
+ Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2425–2433, 2015.
152
+
153
+ John Langshaw Austin. How to do things with words. Oxford university press, 1975.
154
+
155
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2014.
156
+
157
+ John Batali. Computational simulations of the emergence of grammar. Approaches to the evolution of language: Social and cognitive bases, 405:426, 1998.
158
+
159
+ Jeshua Bratman, Michael Shvartsman, Richard L Lewis, and Satinder Singh. A new approach to exploring language emergence as boundedly optimal control in the face of environmental and cognitive constraints. In International Conference on Cognitive Modeling, pp. 7–12, 2010.
160
+
161
+ Jerome S Bruner. Intention in the structure of action and interaction. Advances in infancy research, 1981.
162
+
163
+ Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger ¨ Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In EMNLP, 2014.
164
+
165
+ Herbert H Clark. Using language. Cambridge university press, 1996.
166
+
167
+ Jakob Foerster, Yannis M Assael, Nando de Freitas, and Shimon Whiteson. Learning to communicate with deep multi-agent reinforcement learning. In NIPS, pp. 2137–2145, 2016.
168
+
169
+ Gottlob Frege. Zeitschrift fur philosophie und philosophische kritik. ¨ NF, 100:25–50, 1892.
170
+
171
+ Zhiting Hu, Zichao Yang, Xiaodan Liang, Ruslan Salakhutdinov, and Eric P Xing. Toward controlled generation of text. In ICML, pp. 1587–1596, 2017.
172
+
173
+ James R Hurford. Biological evolution of the saussurean sign as a component of the language acquisition device. Lingua, 77(2):187–222, 1989.
174
+
175
+ Emilio Jorge, Mikael Kageb ˚ ack, and Emil Gustavsson. Learning to play guess who? and inventing a ¨ grounded language as a consequence. arXiv preprint arXiv:1611.03218, 2016.
176
+
177
+ Andrej Karpathy and Li Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In CVPR, pp. 3128–3137, 2015.
178
+
179
+ Simon Kirby and James R Hurford. The emergence of linguistic structure: An overview of the iterated learning model. In Simulating the evolution of language, pp. 121–147. Springer, 2002.
180
+
181
+ Simon Kirby, Tom Griffiths, and Kenny Smith. Iterated learning and the evolution of language. Current opinion in neurobiology, 28:108–114, 2014.
182
+
183
+ Satwik Kottur, Jose MF Moura, Stefan Lee, and Dhruv Batra. Natural language does not ´ emerge’naturally’in multi-agent dialog. In EMNLP, 2017.
184
+
185
+ Angeliki Lazaridou, Alexander Peysakhovich, and Marco Baroni. Multi-agent cooperation and the emergence of (natural) language. In ICLR, 2017.
186
+
187
+ Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015.
188
+
189
+ Mike Lewis, Denis Yarats, Yann N Dauphin, Devi Parikh, and Dhruv Batra. Deal or no deal? end-to-end learning for negotiation dialogues. arXiv preprint arXiv:1706.05125, 2017.
190
+
191
+ Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9(Nov):2579–2605, 2008.
192
+
193
+ Karen Milligan, Janet Wilde Astington, and Lisa Ain Dack. Language and theory of mind: metaanalysis of the relation between language ability and false-belief understanding. Child development, 78(2):622–646, 2007.
194
+
195
+ Igor Mordatch and Pieter Abbeel. Emergence of grounded compositional language in multi-agent populations. arXiv preprint arXiv:1703.04908, 2017.
196
+
197
+ Michael Oliphant and John Batali. Learning and the emergence of coordinated communication. Center for research on language newsletter, 11(1):1–46, 1997.
198
+
199
+ David Premack and Guy Woodruff. Does the chimpanzee have a theory of mind? Behavioral and brain sciences, 1(4):515–526, 1978.
200
+
201
+ Iulian Vlad Serban, Alessandro Sordoni, Yoshua Bengio, Aaron C Courville, and Joelle Pineau. Building end-to-end dialogue systems using generative hierarchical neural network models. In AAAI, 2016.
202
+
203
+ Andrew Smith. Establishing communication systems without explicit meaning transmission. Advances in artificial life, pp. 381–390, 2001.
204
+
205
+ Sainbayar Sukhbaatar, Rob Fergus, et al. Learning multiagent communication with backpropagation. In NIPS, pp. 2244–2252, 2016.
206
+
207
+ Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In CVPR, pp. 3156–3164, 2015.
208
+
209
+ Ludwig Wittgenstein. Philosophical investigations. Blackwell, Oxford, UK, 1953.
210
+
211
+ George Kingsley Zipf. Human behavior and the principle of least effort. Addison-Wesley, 1949.
212
+
213
+ ![](images/81623d6fa1690cf173bcc5d807c2fd91fc367f71b2d863a4604fa77be6c9f3a2.jpg)
214
+ Table 5: Meaning vectors are composed of (a) subject vectors and (b) predicate vectors. (c) shows 10 out of 100 possible meaning vectors.
215
+
216
+ # A EMERGENCE OF GRAMMAR, BATALI (1998)
217
+
218
+ In Batali (1998), the author successfully trained neural agents to develop a structured (i.e. grammatical) language using disentangled meaning vectors as the input. Using 10 subject vectors and 10 predicate vectors, all represented as explicit binary vectors, total 100 meaning vectors could be composed(Table 5). Each digit in the subject vector 5a serves a clear role, respectively representing speaker $( s p )$ , hearer $( h r )$ , other $( o t )$ , and plural $( p l )$ . The predicate vector values, on the other hand, are randomly chosen so that each predicate vector will have three 1’s and three 0’s. The combination of ten subject vectors and ten predicate vectors allows 100 meaning vectors.
219
+
220
+ The author used twenty neural agents for the experiment. Each agent was implemented with the vanilla recurrent neural networks (RNN), where the hidden vector h’s size was 10, same as the size of the meaning vector m in order to treat h as the agent’s understanding of m. In each training round a single learner (i.e. listener) and ten teachers (i.e. speaker) were randomly chosen. Each teacher, given all $1 0 0 \mathbf { m }$ ’s in random order, generates a message $\mathbf { s } ^ { 5 }$ for each $\mathbf { m }$ and sends it to the learner. The messages are generated using the obverter techinque, which is described in Algorithm 1. The learner is trained to minimize the mean squared error (MSE) between $\mathbf { h }$ (after consuming the s) and m. After the learner has learned from all ten teachers, the next round begins, repeating the process until the error goes below some threshold.
221
+
222
+ 1 $\mathbf { h } ^ { ( 0 ) } = \mathbf { 0 }$ //Initialize RNN hidden layer with zeros;
223
+ 2 $\mathbf { s } = \left[ \mathbf { \epsilon } \right]$ //Initialize the message vector;
224
+ 3 $t = 0$ //Timestep index;
225
+ 4 $\mathbf { V } = \mathbf { I } \in \mathbb { R } ^ { 4 \times 4 }$ //Each row $\mathbf { v } _ { 0 } , \mathbf { v } _ { 1 } , \mathbf { v } _ { 2 } , \mathbf { v } _ { 3 }$ corresponds to $a , b , c , d$ ;
226
+ 5 while $| \mathbf { s } | < m a x$ message length do
227
+ 6 $\mathbf { h } _ { \mathbf { v } _ { i } } ^ { ( t ) } = \sigma ( \mathbf { v } _ { i } \mathbf { W } _ { i } + \mathbf { h } ^ { ( t - 1 ) } \mathbf { W } _ { h } + \mathbf { b } )$ ;
228
+ 7 $i = \mathrm { a r g m i n } _ { i } \vert \vert \mathbf { m } - \mathbf { h } _ { \mathbf { v } _ { i } } ^ { ( t ) } \vert \vert ^ { 2 }$ ;
229
+ 8 $\mathbf { h } ^ { ( t ) } = \mathbf { h } _ { \mathbf { v } _ { i } } ^ { ( t ) }$ ;
230
+ 9 Append $i$ to s;
231
+ 10 if $| | \mathbf { m } - \mathbf { h } ^ { ( t ) } | | ^ { 2 } < t h r e s h o l d \mathbf { t } 1$ hen
232
+ 11 Terminate;
233
+
234
+ When the training was complete, the author was able to find strong patterns in the messages used by the agents (Table 6). Note that the messages using predicates tired, scared, sick and happy especially follow a very clear pattern. Batali also conducted a zero-shot test where the agents were trained without the diagonal elements in Table 6 and tested with all 100 meaning vectors. The agents were able to successfully communicate even when held-out meaning vectors were used, but the
235
+
236
+ <table><tr><td>=</td><td>one</td><td>they</td><td>you</td><td>yall</td><td>yup</td><td>me</td><td>we</td><td>mip</td><td>yumi</td><td>all</td></tr><tr><td>tired</td><td>cda</td><td>cdab</td><td>cdc</td><td>cdcb</td><td>cdba</td><td>cd</td><td>cdd</td><td>cddb</td><td>cdcd</td><td>cdb</td></tr><tr><td>scared</td><td>caa</td><td>caab</td><td>cac</td><td>cacb</td><td>caba</td><td>ca</td><td>cad</td><td>cadb</td><td>cacd</td><td>cab</td></tr><tr><td>sick</td><td>daa</td><td>daab</td><td>dac</td><td>dacb</td><td>daba</td><td>da</td><td>dad</td><td>dadb</td><td>dacd</td><td>dab</td></tr><tr><td>happy sad</td><td>baa</td><td>baab abab</td><td>bca</td><td>bcab</td><td>baac</td><td>ba</td><td>badc</td><td>bab</td><td>bac</td><td>babc</td></tr><tr><td>excited</td><td>aba cba</td><td>cbab</td><td>ac</td><td>acb cacb</td><td>abac cbca</td><td>a</td><td>abdc ccdc</td><td>abb</td><td>abc</td><td>abbc</td></tr><tr><td>angry</td><td>bb</td><td>bbb</td><td>cca bc</td><td></td><td></td><td>c</td><td></td><td>cb</td><td>ccb</td><td>cbc</td></tr><tr><td></td><td></td><td></td><td></td><td>bcb</td><td>bbc</td><td>b</td><td>bddc</td><td>bdb</td><td>bdc</td><td>bdbc</td></tr><tr><td>silly</td><td>aa</td><td>aaab</td><td>aca</td><td>acab</td><td>adba</td><td>add</td><td>addc</td><td>adad</td><td>adc</td><td>adbc</td></tr><tr><td>thirsty</td><td>dbaa</td><td>dbab</td><td>dca</td><td>dcba</td><td>dbca</td><td>dda</td><td>ddac</td><td>dbad</td><td>dcad</td><td>dbacd</td></tr><tr><td>hungry</td><td>dbb</td><td>dbbd</td><td>dc</td><td>dcb</td><td>dbc</td><td>dd</td><td>ddc</td><td>dbd</td><td>dcd</td><td>dbcd</td></tr></table>
237
+
238
+ <table><tr><td>-</td><td>one</td><td>they</td><td>you</td><td>yall</td><td>yup</td><td>me</td><td>we</td><td>mip</td><td>yumi</td><td>all</td></tr><tr><td>tired</td><td>cda</td><td>cdab</td><td>cdc</td><td>cdcb</td><td>cdba</td><td>cd</td><td>cdd</td><td>cddb</td><td>cdcd</td><td>cdb</td></tr><tr><td>scared</td><td>caa</td><td>caab</td><td>cac</td><td>cacb</td><td>caba</td><td>ca</td><td>cad</td><td>cadb</td><td>cacd</td><td>cab</td></tr><tr><td>sick</td><td>daa</td><td>daab</td><td>dac</td><td>dacb</td><td>daba</td><td>da</td><td>dad</td><td>dadb</td><td>dacd</td><td>dab</td></tr><tr><td>happy</td><td>baa</td><td>baab</td><td>bca</td><td>bcab</td><td>baac</td><td>ba</td><td>badc</td><td>bab</td><td>bac</td><td>babc</td></tr><tr><td>sad excited</td><td>aba</td><td>abab</td><td>ac</td><td>acb</td><td>abac</td><td>a</td><td>abdc</td><td>abb</td><td>abc</td><td>abbc</td></tr><tr><td></td><td>cba</td><td>cbab</td><td>cca</td><td>cacb</td><td>cbca</td><td>C</td><td>ccdc</td><td>cb</td><td>ccb</td><td>cbc</td></tr><tr><td>angry</td><td>cb</td><td>cbb</td><td>CC</td><td>ccb</td><td>cbc</td><td>C</td><td>cddc</td><td>cdb</td><td>cdc</td><td>cdbc</td></tr><tr><td>silly</td><td>(aa)</td><td>(aaab)</td><td>(aca)</td><td>(acab)</td><td>adba</td><td>add</td><td>addc</td><td>adad</td><td>adc</td><td>adbc</td></tr><tr><td>thirsty</td><td>dbaa</td><td>dbab</td><td>dca</td><td>dcba</td><td>dbca</td><td>dda</td><td>ddac</td><td>dbad</td><td>dcad</td><td>dbacd</td></tr><tr><td>hungry</td><td>dbb</td><td>dbbd</td><td>dc</td><td>dcb</td><td>dbc</td><td>dd</td><td>ddc</td><td>dbd</td><td>dcd</td><td>dbcd</td></tr></table>
239
+
240
+ Table 6: (Top) Messages used by a majority of the population for each of the given meanings. (Bottom) A potential analysis of the system in terms of a root plus modifications. Italic symbols are used to specify predicates and roman symbols are used to specify subjects. Messages in parentheses cannot be made to fit into this analysis.
241
+
242
+ messages used for the held-out meaning vectors did not show as strong compositional patterns as the non-zero-shot case.
243
+
244
+ # B COMPARISON BETWEEN THE OBVERTER TECHINQUE AND THEREINFORCEMENT LEARNING-BASED APPROACH
245
+
246
+ The obverter technique allows us to generate messages that encourage the agents to use a shared language, even a highly structured one, via using a single RNN for both speaking and listening.
247
+
248
+ This is quite different from other RL-based related works (Lazaridou et al., 2017; Mordatch & Abbeel, 2017; Foerster et al., 2016; Jorge et al., 2016; Kottur et al., 2017) where each agent has separate components (e.g. two RNNs) for generating messages and consuming messages. This is necessary typically because the message generation module and the message consumption module have different input/output requirements. The message generation module accepts some input related to the task (e.g. goal description vector, question embedding, or image embedding) and generates discrete symbols. The message consumption module, on the other hand, accepts discrete symbols (i.e. the message) and generates some output related to the task (e.g. some prediction or some action to take). Therefore, when a neural agent speaks in the RL-based approach, its message generation process is completely separated from its own listening process, but tied to the listening process of another agent (i.e. listener)6. This means an agent may not have internal consistency; what an agent speaks may not make sense to itself. However, agents in the RL-based setting do converge on a common language because, during the training, the error signal flows from the listener to the speaker directly.
249
+
250
+ Obverter approach, on the other hand, requires that each agent has a single component for both message generation and message consumption. This single component accepts discrete symbols and generates some output related to the task. This guarantees internal consistency because an agent’s message generation process is tied to its own message consumption process; it will only generate messages that make sense to itself. In the obverter setting, the error signal does not flow between agents directly, but agents converge on a common language by taking turns to be the listener; the listener tries to understand what the speaker says, so that when the listener becomes the speaker, it can generate messages that make sense to itself and, at the same time, will be understood by the former speaker (now listener).
251
+
252
+ The advantage of obverter approach over RL-based approach is that it is motivated by the theory of mind and more resembles the acquisition/development process of human language. Having a single mechanism for both speaking and listening, and training oneself to be a good listener leads to the emergence of self-consistent, shared language. However, obverter technique requires that all agents perform the same task, which means all agents must have identical model architectures. This is because, during the message generation process, the speaker internally simulates what the listener will go though when it hears the message. Therefore we cannot play an asymmetrical game such as where the speaker sees only one image and generates a message but the listener is given multiple images and must choose one after hearing the message. RL-based approaches do not have this problem since there are separate modules for speaking and listening.
253
+
254
+ We believe obverter technique could be the better choice for certain tasks regarding human mind emulation. But it certainly is not the tool for every occasion. The RL-based approach is a robust tool for any general task that may or may not involve human-like communication. We conclude this section with a possible future research direction that combines the strengths of both approaches to enable communication in more interesting and complicated tasks.
255
+
256
+ # C MODEL ARCHITECTURE DETAILS
257
+
258
+ We used TensorFlow and the Sonnet library for all implementation.
259
+
260
+ # C.1 VISUAL MODULE
261
+
262
+ We used an eight-layer convolutional neural network. We used 32 filters with the kernel size 3 for every layer. The strides were $[ 2 , 1 , 1 , 2 , 1 , 2 , 1 , 2 ]$ for each layer. We used rectified linear unit (ReLU) as the activation function for every layer. Batch normalization was used for every layer. We did not use the bias parameters since we used Batch normalization. For padding, we used the TensorFlow VALID padding option for every layer. The fully connected layer that follows the convolutional neural network was of 256 dimensions, with ReLU as the activation function.
263
+
264
+ # C.2 LANGUAGE MODULE
265
+
266
+ We used a single layer Gated Recurrent Units (GRU) to implement the language module. The size of the hidden layer was 64.
267
+
268
+ # C.3 DECISION MODULE
269
+
270
+ We used a two-layer feedforward neural network. The first layer reduces the dimensionality to 128 with ReLU as the activation function, then the second layer generates a scalar value with sigmoid as the activation function.
271
+
272
+ # D MESSAGE GENERATION ALGORITHM USED IN OUR WORK
273
+
274
+ # E TRAINING DETAILS
275
+
276
+ Both agents’ model parameters are randomly initialized. The training process consists of rounds where teacher/learner roles are changed, and each round consists of multiple games where learner’s model parameters are updated. In each game, the teacher, given a mini-batch of images, generates corresponding messages. The learner, given a separate mini-batch of images and the messages from the teacher, decides whether it is seeing the same object type as the teacher. Learner’s model parameters are updated to minimize the cross entropy loss. After playing a predefined number of games, we move on to the next round where two agents change their roles.
277
+
278
+ 1 $\mathbf { h } ^ { ( 0 ) } = \mathbf { 0 }$ //Initialize GRU hidden layer with zeros;
279
+ 2 $\mathbf { s } = \left[ \mathbf { \epsilon } \right]$ //Initialize the message vector;
280
+ 3 $t = 0$ //Timestep index;
281
+ 4 $\mathbf { V } = \mathbf { I } \in \mathbb { R } ^ { 5 \times 5 }$ //Each row $\mathbf { v } _ { 0 } , \mathbf { v } _ { 1 } , \mathbf { v } _ { 2 } , \mathbf { v } _ { 3 } , \mathbf { v } _ { 4 }$ corresponds to $a , b , c , d , e$ ;
282
+ 5 $\mathbf { x } =$ image;
283
+ 6 $\mathbf { z } = V i s u a l M o d u l e ( \mathbf { x } )$ ;
284
+ 7 while $| \mathbf { s } | < m a x$ message length do
285
+ 8 $\mathbf { h } _ { \mathbf { v } _ { i } } ^ { ( t ) } = G R U ( \mathbf { v } _ { i } , \mathbf { h } ^ { ( t - 1 ) } )$ ;
286
+ 9 $\mathbf { h } ^ { ( t ) } = \mathbf { h } _ { \mathbf { v } _ { i } } ^ { ( t ) }$ $i = \mathrm { a r g m a x } _ { i }$ DecisionModule $( [ \mathbf { h } _ { \mathbf { v } _ { i } } ^ { ( t ) } , \mathbf { z } ] )$ ;
287
+ 11 Append $i$ to s;
288
+ 12 if DecisionModule $( [ \mathbf { h } _ { \mathbf { v } _ { i } } ^ { ( t ) } , \mathbf { z } ] ) >$ threshold then
289
+ 13 Terminate;
290
+
291
+ We found twenty games per round, with fifty images per mini-batch to work well. We repeat the rounds for 20, 000 times. Further rounds did not improve the results, or even degraded the performance. For vocabulary size (i.e. number of unique symbols) and the maximum message length, we used 5 and 20 respectively, similar to what Batali (1998) used. Note that when generating a message using the obverter technique, the generation process stops as soon as the speaker’s (i.e. teacher) output $\hat { y }$ becomes bigger than some threshold. In our work, we experimented with various values from 0.5 to 0.95, and found higher values to work better than lower values. We used 0.95 for all our final experiments.
292
+
293
+ # F COMMUNICATION ACCURACY FOR EACH OBJECT TYPE
294
+
295
+ Algorithm 2: Message generation process used in our work.
296
+ Table 7: Accuracy when each object type is given to the speaker.
297
+
298
+ <table><tr><td>■</td><td>Box</td><td>Sphere</td><td>Cylinder</td><td>Capsule</td><td>Ellipsoid</td></tr><tr><td>Blue</td><td>97.75</td><td>97.00</td><td>95.00</td><td>93.75</td><td>93.50</td></tr><tr><td>Red</td><td>95.50</td><td>93.00</td><td>95.75</td><td>95.25</td><td>97.00</td></tr><tr><td>White</td><td>95.25</td><td>96.25</td><td>93.50</td><td>94.50</td><td>97.00</td></tr><tr><td>Gray</td><td>93.00</td><td>95.00</td><td>94.25</td><td>96.75</td><td>97.25</td></tr><tr><td>Yellow</td><td>98.00</td><td>95.00</td><td>95.50</td><td>94.25</td><td>94.25</td></tr><tr><td>Green</td><td>96.00</td><td>93.50</td><td>95.00</td><td>94.50</td><td>95.25</td></tr><tr><td>Cyan</td><td>97.50</td><td>94.50</td><td>97.00</td><td>94.00</td><td>94.75</td></tr><tr><td>Magenta</td><td>95.25</td><td>96.75</td><td>94.75</td><td>94.50</td><td>95.25</td></tr></table>
299
+
300
+ We conducted a separate test with the agents from round 16, 760 to assess the communication accuracy for each object type. The agents were given 1, 600 total object pairs $( 4 0 \times 4 0 )$ . Each object pair was tested 10 times, where after 5 times the agents switched speaker/listener roles. The average accuracy was $9 5 . 4 \%$ , and only 88 out of 1, 600 object pairs were communicated with accuracy lower than 0.8.
301
+
302
+ Table 7 describes the accuracy when each object type was given to the speaker. We can observe that the accuracy is higher for objects that are described with less overlapping messages. For example, yellow box is communicated with the accuracy of $9 8 \%$ , and it is described with aaaaaa, which is not used for any other object types. Gray box, on the other hand, is communicated with accuracy $9 3 \%$ . It is described with aaa, which is also used for yellow capsule and green sphere, both of which are communicated with low accuracies as well.
303
+
304
+ ![](images/a3223aef4b5cd4670d5f3f12325fbeb3c69cf08d9078f75c33cd75f24d8f0912.jpg)
305
+ Figure 5: Ten communication examples when the speaker is given a blue box. Five examples on the left show when the listener is given blue objects. Five examples on the right show when the listener is given objects of different colors.
306
+
307
+ # G COMMUNICATION EXAMPLE AND ANALYSIS
308
+
309
+ Figure 5 provides ten examples of communication when the speaker is given a blue box and the listener is given various object types. The listener’s belief (i.e. score) that it is seeing the same image as the speaker changes each time it consumes a symbol. It is notable that most of the time the score jumps between 0 and 1, rather than gradually changing in between. This is natural given that messages that differ by only a single character can mean different objects (e.g. blue box and blue cylinder). This phenomenon can also be seen in human language. For example, blue can and blue cat differ by a single alphabet, but the semantics are completely different.
310
+
311
+ Object types that are described by similar messages as blue box, such as blue cylinder and magenta box cause marginal confusion to the listener such that prediction scores for both objects are not complete zeros. There are also cases where two completely different objects are described by the same message as mentioned in Section 3.1. From Table 2 we can see that blue box and cyan cylinder are described by the same message $b b b b b b \{ b , d \}$ , although the messages were composed using different rules. Therefore the listener generates high scores for both objects, occasionally losing the game when the agents are given this specific object pair (1 out of 40 chance). This can be seen as a side effect coming from the principle of least effort which motivates the agents to win the game most of the time while minimizing the effort to generate messages.
312
+
313
+ # H VISUALIZATION OF IMAGE EMBEDDINGS
314
+
315
+ Section 3.2 provides strong evidence that the agents are properly recognizing the color and shape of an object. In this section, we study the visual module of both agents to study how they are processing the pixel input. We give each agent 1600 images, 40 per object type, and take their image embeddings (output of the fully-connected layer in the visual module). We use t-SNE (Maaten & Hinton, 2008) to reduce the dimensionality to 2D, and generate scatter plots as shown by Figure 6. The top row and the bottom row are the same scatter plots, but the dots are colored with different labels; the top row shows the color of each object, and the bottom row shows the shape of each object.
316
+
317
+ ![](images/2bfef7d4a774b0f9d6527840974612b010564b9945e307d3641516c2479550bc.jpg)
318
+ Figure 6: Scatter plots of the image embedding from the agents’ visual module. T-SNE was used to reduce the dimension to 2D.
319
+
320
+ It is notable that the image embeddings form clear clusters, and all clusters are quite disentangled from one another. This means that the agents have learned to differentiate objects by their color and shape, and each color and shape have a specific place in the agents’ mind. It is also impressive that not only both agents learned similar relationships between colors and shapes(Figure 6 (a) and (b) show similar clusters, as do (d) and (e)), but also they learned similar absolute values for colors and shapes. Even when we plot image embeddings from both agents together (Figure 6 (c) and (f)) the cluster qualities are kept almost identical (with slightly higher number of clusters) to when we plot them separately. Therefore when one agent thinks of color red, and utters a message to describe it, the other agent hears the message and think of something red as well. This is, of course, what we wanted to achieve by using the obverter technique.
321
+
322
+ The fact that a couple of color or shapes are occasionally in the same cluster suggests the agents have not perfectly disentangled colors and shapes. For perfect disentanglement, we believe some modifications to the image description game is required, which can be an important topic for future work. However, studying the cluster sheds some light on why the agents generate specific messages for each object type. For example, in Figure 6 (a) and (b), blue, white, cyan and magenta are often intertwined or their respective clusters are located nearby, as is the case for red, gray, yellow and green. This suggests the reason agents use prefix $^ b$ ’s to specify shapes for former color group and prefix a’s to specify shapes for the latter color group. Additionally, in Figure 6 (d) and (e), Box and cylinder are often located nearby, and sphere and ellipsoid show similar behavior7. We conjecture that this is the reason the messages describing box and cylinder are similarly long, and the messages describing sphere and ellipsoid tend to be similarly short.
323
+
324
+ I ORIGINAL MESSAGES FROM THE ZERO-SHOT TEST
325
+ Table 8: Messages most often used by the two agents when speaking about a given object. Shaded cells indicate the objects not seen during the training. Brackets indicate the variation often seen at the last character.
326
+
327
+ <table><tr><td>■</td><td>Box</td><td>Sphere</td><td>Cylinder</td><td>Capsule</td><td>Ellipsoid</td></tr><tr><td>Blue Red</td><td>eeeeeee{e,ee}</td><td>eeeeee</td><td>eeeeee{e,ed}</td><td>eeee{e,ed}</td><td>eee{e,a}</td></tr><tr><td>White</td><td>ee{e,a} bbbbb</td><td>e,ea</td><td>e{e,a}</td><td>b,ba</td><td>a,c</td></tr><tr><td></td><td></td><td>bb e,ea</td><td>bbb{b,d}</td><td>bb{b,d}</td><td>bbb{d.c}</td></tr><tr><td>Gray</td><td>eeee</td><td>e{e,ec}</td><td>ee{e,a} b{c,d}</td><td>e,a</td><td>b,d</td></tr><tr><td>Yellow</td><td>bb{c.d}</td><td>eeee{e,a}</td><td>eeeee{e,a}</td><td>a,c</td><td>a,e</td></tr><tr><td>Green</td><td>eeeeee{e,a}</td><td></td><td></td><td>eee{e,a}</td><td>ee{e,a}</td></tr><tr><td>Cyan</td><td>eeeeeeeeea,a×20</td><td>eeeeee{e,a}</td><td>eeeeeee{e,ea}</td><td>eeeee{e,a}</td><td>eeeea</td></tr><tr><td>Magenta</td><td>bbb{b,d}</td><td>c,d</td><td>bb{b,d}</td><td>bb</td><td>b{c.a}</td></tr></table>
328
+
329
+ J COMMUNICATION ACCURACY FOR EACH OBJECT TYPE IN ZERO-SHOT TEST
330
+ Table 9: Accuracy when each object type is given to the speaker. Shaded cells indicate the objects not seen during the training.
331
+
332
+ <table><tr><td></td><td rowspan=1 colspan=1>■</td><td rowspan=1 colspan=1>Box</td><td rowspan=1 colspan=1>Sphere</td><td rowspan=1 colspan=1>Cylinder</td><td rowspan=1 colspan=1>Capsule</td><td rowspan=1 colspan=1>Ellipsoid</td></tr><tr><td></td><td rowspan=1 colspan=1>Blue</td><td rowspan=1 colspan=1>96.75</td><td rowspan=1 colspan=1>95.00</td><td rowspan=1 colspan=1>94.75</td><td rowspan=1 colspan=1>95.75</td><td rowspan=1 colspan=1>96.50</td></tr><tr><td></td><td rowspan=2 colspan=1>RedWhite</td><td rowspan=1 colspan=1>94.25</td><td rowspan=1 colspan=1>90.00</td><td rowspan=1 colspan=1>94.25</td><td rowspan=1 colspan=1>96.75</td><td rowspan=3 colspan=1>91.2595.7596.00</td></tr><tr><td></td><td rowspan=1 colspan=1>99.00</td><td rowspan=1 colspan=1>96.00</td><td rowspan=1 colspan=1>95.75</td><td rowspan=1 colspan=1>97.25</td></tr><tr><td></td><td rowspan=2 colspan=1>GrayYellow</td><td rowspan=2 colspan=1>93.5098.75</td><td rowspan=1 colspan=1>91.00</td><td rowspan=1 colspan=1>94.75</td><td rowspan=1 colspan=1>91.50</td></tr><tr><td></td><td rowspan=1 colspan=1>94.75</td><td rowspan=1 colspan=1>95.75</td><td rowspan=1 colspan=1>92.00</td><td rowspan=1 colspan=1>91.50</td></tr><tr><td></td><td rowspan=1 colspan=1>Green</td><td rowspan=1 colspan=1>95.00</td><td rowspan=1 colspan=1>95.00</td><td rowspan=1 colspan=1>95.00</td><td rowspan=1 colspan=1>95.00</td><td rowspan=1 colspan=1>94.50</td></tr><tr><td rowspan=2 colspan=2>CyanMagenta</td><td rowspan=1 colspan=1>Cyan</td><td rowspan=1 colspan=1>92.00</td><td rowspan=1 colspan=1>95.00</td><td rowspan=1 colspan=1>97.50</td><td rowspan=1 colspan=1>95.00</td></tr><tr><td rowspan=1 colspan=1>95.25</td><td rowspan=1 colspan=1>96.00</td><td rowspan=1 colspan=1>97.00</td><td rowspan=1 colspan=1>96.00</td><td rowspan=1 colspan=1>95.75</td></tr></table>
333
+
334
+ In the same manner as Appendix F, we conducted a separate test with the agents from round 19, 980 to assess the communication accuracy for each object type. The agents were given 1, 600 total object pairs $( 4 0 \times 4 0 )$ . Each object pair was tested 10 times, where after 5 times the agents switched speaker/listener roles. The average accuracy was $9 4 . 7 3 \%$ , and 103 out of 1, 600 object pairs were communicated with accuracy lower than 0.8.
335
+
336
+ Table 9 describes the accuracy when each object type was given the speaker. Shaded cells indicate objects not seen during the training. Here we can observe the same tendency as the one seen in Appendix F; the accuracy is higher for objects that are described with less overlapping messages.
337
+
338
+ # K AN EXAMPLE OF USING NEGATION TO PASS A ZERO-SHOT TEST
339
+
340
+ Lets assume agent0 is aware of red circle, blue square and green triangle. If agent0 came upon a blue circle for the first time and had to describe it to agent1, the efficient way would be to say blue circle. But it could also say blue not square not triangle. If agent1 had a similar knowledge as agent0 did, then both agents would have a successful communication. However, it is debatable whether saying blue not square not triangle is as compositional as blue circle.
parse/train/rknt2Be0-/rknt2Be0-_content_list.json ADDED
@@ -0,0 +1,1734 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "COMPOSITIONAL OBVERTER COMMUNICATION LEARNING FROM RAW VISUAL INPUT ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 743,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Edward Choi ∗ \nGeorgia Institute of Technology \nAtlanta, GA, USA \nmp2893@gatech.edu \nAngeliki Lazaridou & Nando de Freitas \nDeepMind \nLondon, UK \n{angeliki, nandodefreitas}@google.com ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 392,
21
+ 227
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "",
28
+ "bbox": [
29
+ 431,
30
+ 170,
31
+ 794,
32
+ 227
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 262,
43
+ 544,
44
+ 277
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "One of the distinguishing aspects of human language is its compositionality, which allows us to describe complex environments with limited vocabulary. Previously, it has been shown that neural network agents can learn to communicate in a highly structured, possibly compositional language based on disentangled input (e.g. handengineered features). Humans, however, do not learn to communicate based on well-summarized features. In this work, we train neural agents to simultaneously develop visual perception from raw image pixels, and learn to communicate with a sequence of discrete symbols. The agents play an image description game where the image contains factors such as colors and shapes. We train the agents using the obverter technique where an agent introspects to generate messages that maximize its own understanding. Through qualitative analysis, visualization and a zero-shot test, we show that the agents can develop, out of raw image pixels, a language with compositional properties, given a proper pressure from the environment. ",
51
+ "bbox": [
52
+ 233,
53
+ 295,
54
+ 766,
55
+ 474
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 502,
66
+ 336,
67
+ 517
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "One of the key requirements for artificial general intelligence (AGI) to thrive in the real world is its ability to communicate with humans in natural language. Natural language processing (NLP) has been an active field of research for a long time, and the introduction of deep learning (LeCun et al., 2015) enabled great progress in NLP tasks such as translation, image captioning, text generation and visual question answering (Cho et al., 2014; Bahdanau et al., 2014; Vinyals et al., 2015; Karpathy & Fei-Fei, 2015; Hu et al., 2017; Serban et al., 2016; Lewis et al., 2017; Antol et al., 2015). However, training machines in a supervised manner with a large dataset has its limits when it comes to communication. Supervised methods are effective for capturing statistical associations between discrete symbols (i.e. words, letters). The essence of communication is more than just predicting the most likely word to come next; it is a means to coordinate with others and potentially achieve a common goal (Austin, 1975; Clark, 1996; Wittgenstein, 1953). ",
74
+ "bbox": [
75
+ 174,
76
+ 532,
77
+ 825,
78
+ 685
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "An alternative path to teaching machines the art of communication is to give them a specific task and encourage them to learn how to communicate on their own. This approach will encourage the agents to use languages grounded to task-related entities as well as communicate with other agents, which is one of the ways humans learn to communicate (Bruner, 1981). Recently, there have been several notable works that demonstrated the emergence of communication between neural network agents. Even though each work produced very interesting results of its own, in all cases, communication was either achieved with a single discrete symbol (as opposed to a sequence of discrete symbols) (Foerster et al., 2016; Lazaridou et al., 2017) or via a continuous value (Sukhbaatar et al., 2016; Jorge et al., 2016). Not only is human communication un-differentiable, but also using a single discrete symbol is quite far from natural language communication. One of the key features of human language is its compositional nature; the meaning of a complex expression is determined by its structure and the meanings of its constituents (Frege, 1892). More recently, Mordatch & Abbeel (2017) and Kottur et al. (2017) trained the agents to communicate in grounded, compositional language. In both studies, however, inputs given to the agents were hand-engineered features (disentangled input) rather than raw perceptual signals that we receive as humans. ",
85
+ "bbox": [
86
+ 174,
87
+ 694,
88
+ 825,
89
+ 900
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this work, we train neural agents to simultaneously develop visual perception from raw image pixels, and learn to communicate with a sequence of discrete symbols. Unlike previous works, our setup poses greater challenges to the agents since visual understanding and discrete communication have to be induced from scratch in parallel. We place the agents in a two-person image description game, where images contain objects of various color and shape. Inspired by the pioneering work of Batali (1998), we employ a communication philosophy named obverter to train the agents. Having its root in the theory of mind (Premack & Woodruff, 1978) and human language development (Milligan et al., 2007), the obverter technique motivates an agent to search over messages and generate the ones that maximize their own understanding. The contribution of our work can be summarized as follows: ",
96
+ "bbox": [
97
+ 173,
98
+ 103,
99
+ 825,
100
+ 229
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "• We train artificial agents to learn to disentangle raw image pixels and communicate in compositional language at the same time. \n• We describe how the obverter technique, a differentiable learning algorithm for discrete communication, could be employed in a communication game with raw visual input. \n• We visualize how the agents are perceiving the images and show that they learn to disentangle color and shape without any explicit supervision other than the communication one. \n• Experiment results suggest that the agents could develop, out of raw image input, a language with compositional properties, given a proper pressure from the environment (i.e. the image description game). ",
107
+ "bbox": [
108
+ 181,
109
+ 241,
110
+ 826,
111
+ 381
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Finally, while our exposition follows a multi-agent perspective, it is also possible to interpret our results in the single-agent setting. We are effectively learning a neural network that is able to learn disentangled compositional representations of visual scenes, without any supervision. Subject to the constraints imposed by their environment, our agents learn disentangled concepts, and how to compose these to form new concepts. This is an important milestone in the path to AGI. ",
118
+ "bbox": [
119
+ 174,
120
+ 391,
121
+ 825,
122
+ 462
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 METHOD ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 174,
132
+ 481,
133
+ 282,
134
+ 497
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "2.1 THE TWO-PERSON IMAGE DESCRIPTION GAME ",
141
+ "text_level": 1,
142
+ "bbox": [
143
+ 174,
144
+ 513,
145
+ 537,
146
+ 526
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "image",
152
+ "img_path": "images/fe848c0db6f5de8bab346ead880e705a22d31e75c43a4509f5ea6f47130e08f7.jpg",
153
+ "image_caption": [
154
+ "Figure 1: The two-person image description game. Speaker observes an image and generates a message (i.e. a sequence of discrete symbols). The listener, after observing a separate image and the message, must correctly decide whether it is seeing the same object as the speaker (left side; output 1) or not (right side; output 0). "
155
+ ],
156
+ "image_footnote": [],
157
+ "bbox": [
158
+ 228,
159
+ 541,
160
+ 777,
161
+ 664
162
+ ],
163
+ "page_idx": 1
164
+ },
165
+ {
166
+ "type": "image",
167
+ "img_path": "images/b0f08c116783796164e0f37b02eb2fea29ddc93f0d918fda9b7fa3e6ebcdda8e.jpg",
168
+ "image_caption": [
169
+ "Figure 2: Example images of the dataset. There are eight colors (blue, red, white, gray, yellow, green, cyan, magenta), and five shapes (box, sphere, cylinder, capsule, ellipsoid), giving us total 40 combinations. "
170
+ ],
171
+ "image_footnote": [],
172
+ "bbox": [
173
+ 222,
174
+ 757,
175
+ 776,
176
+ 811
177
+ ],
178
+ "page_idx": 1
179
+ },
180
+ {
181
+ "type": "text",
182
+ "text": "We choose a straightforward image description game with two factors (color and shape) so that we can perform extensive analysis on the outcome confidently, based on full control of the experiment. In a single round of the two-person image description game, one agent becomes the speaker and the other the listener. The speaker is given a random image, and generates a message to describe it. The listener is also given a random image, possibly the same image as the speaker’s. After hearing the message from the speaker, the listener must decide if it is seeing the same object as the speaker (Figure 1). Note that an image is the raw pixels given to the agents, and an object is the thing described by the image. Therefore two different images can depict the same object. In each round the agents change roles of being the speaker and the listener. ",
183
+ "bbox": [
184
+ 176,
185
+ 882,
186
+ 825,
187
+ 924
188
+ ],
189
+ "page_idx": 1
190
+ },
191
+ {
192
+ "type": "text",
193
+ "text": "",
194
+ "bbox": [
195
+ 174,
196
+ 103,
197
+ 825,
198
+ 188
199
+ ],
200
+ "page_idx": 2
201
+ },
202
+ {
203
+ "type": "text",
204
+ "text": "We generated synthetic images using Mujoco physics simulator1. The example images are shown in Figure 2. Each image depicts a single object with a specific color and shape in $1 2 8 \\times 1 2 8$ resolution. There are eight colors (blue, red, white, gray, yellow, green, cyan, magenta) and five shapes (box, sphere, cylinder, capsule, ellipsoid), giving us 40 combinations. We generated 100 variations for each of the 40 object type. Note that the position of the object varies in each image, changing the object size and the orientation. Therefore even if the speaker and the listener are given the same object type, the actual images are very likely to be different, preventing the agents from using pixel-specific information, rather than object-related information to win the game. ",
205
+ "bbox": [
206
+ 173,
207
+ 194,
208
+ 825,
209
+ 306
210
+ ],
211
+ "page_idx": 2
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "2.2 MODEL ARCHITECTURE ",
216
+ "text_level": 1,
217
+ "bbox": [
218
+ 174,
219
+ 330,
220
+ 382,
221
+ 344
222
+ ],
223
+ "page_idx": 2
224
+ },
225
+ {
226
+ "type": "image",
227
+ "img_path": "images/7902c027c72b5a000bf12271e28b3cfff9c03cda8af5899e656377dae25107a7.jpg",
228
+ "image_caption": [
229
+ "Figure 3: Agent model architecture. The visual module processes the image, and the language module generates or consumes messages. The decision module accepts embeddings from both modules and produces the output. The solid arrows indicate modifying the output from the previous layer. The dotted arrows indicate copying the output from the previous layer. "
230
+ ],
231
+ "image_footnote": [],
232
+ "bbox": [
233
+ 220,
234
+ 373,
235
+ 769,
236
+ 534
237
+ ],
238
+ "page_idx": 2
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "Aside from using disentangled input, another strong assumption made in previous works(Batali, 1998; Mordatch & Abbeel, 2017) was that the agents had access to the true intention of the speaker. In Batali (1998), the listener was trained to modify its RNN hidden vector as closely to the speaker’s intention (meaning vector; please see Table 5 in Appendix A) as possible. In Mordatch & Abbeel (2017), each agent had an auxiliary task to predict the goals of all other agents. In both cases, the true meaning/goal vector was used to update the model parameters, exposing the disentangled information to the agents. In order to relax this assumption and encourage the agents to develop communication with minimal guidance, our model uses no other signal than whether the listener made a correct decision. ",
243
+ "bbox": [
244
+ 174,
245
+ 627,
246
+ 825,
247
+ 753
248
+ ],
249
+ "page_idx": 2
250
+ },
251
+ {
252
+ "type": "text",
253
+ "text": "Figure 3 depicts the agent model architecture. We use a convolutional neural network followed by a fully-connected layer to process the image. A single RNN, specifically the gated recurrent units (GRU) (Cho et al., 2014), is used for both generating and consuming messages (the message generation using the obverter strategy is described in the next section). When consuming a message, the image embedding from the visual module and the message embedding from the language module are concatenated and processed by another fully-connected layers (i.e. decision module) with the sigmoid output $\\hat { y }$ , 0 being “My (listener) image is different from the speaker’s” and 1 being “My image is the same as the speaker’s”. Further details of the model architecture (e.g. number of layers) are described in Appendix C. ",
254
+ "bbox": [
255
+ 174,
256
+ 760,
257
+ 825,
258
+ 886
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "2.3 OBVERTER TECHNIQUE ",
265
+ "text_level": 1,
266
+ "bbox": [
267
+ 176,
268
+ 103,
269
+ 377,
270
+ 117
271
+ ],
272
+ "page_idx": 3
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "Although our work is inspired by Batali (1998) (see Appendix A for the description of Batali (1998)), obverter technique is a general message generation philosophy used/discussed in a number of communication and language evolution studies (Hurford, 1989; Oliphant & Batali, 1997; Smith, 2001; Kirby & Hurford, 2002), which has its root in the theory of mind. Theory of mind (Premack & Woodruff, 1978) observes that a human has direct access only to one’s own mind and not to the others’. Therefore we typically assume that the mind of others is analogous to ours, and such assumption is reflected in the functional use of language (Bruner, 1981). For example, if we want to convey a piece of information to the listener2, it is best to speak in a way that maximizes the listener’s understanding. However, since we cannot directly observe the listener’s state of mind, we cannot exactly solve this optimization problem. Therefore we posit that the listener’s mind operates in a similar manner as ours, and speak in a way that maximizes our understanding, thus approximately solving the optimization problem. This is exactly what the obverter technique tries to achieve. ",
277
+ "bbox": [
278
+ 174,
279
+ 130,
280
+ 825,
281
+ 296
282
+ ],
283
+ "page_idx": 3
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "When an agent becomes the teacher (i.e. speaker), the model parameters are fixed. The image is converted to an embedding via the visual module. After initializing its RNN hidden layer to zeros, the teacher at each timestep evaluates $\\hat { y }$ for all possible symbols and selects the one that maximizes $\\hat { y }$ The RNN hidden vector induced by the chosen symbol is used in the next timestep. This is repeated until $\\hat { y }$ becomes bigger than the predefined threshold, or the maximum message length is reached (see Appendix D for algorithm). Therefore the teacher, through introspection, greedily selects characters at each timestep to generate a message such that the consistency between the image and the message is as clear to itself as possible. When an agent becomes the learner (i.e. listener), its parameters are updated via back-propagating the cross entropy loss between its output $\\hat { y }$ and the true label $y$ . Therefore the agents must learn to communicate only from the true label indicating whether the teacher and the learner are seeing the same object. ",
288
+ "bbox": [
289
+ 174,
290
+ 304,
291
+ 825,
292
+ 455
293
+ ],
294
+ "page_idx": 3
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "We remind the reader that only the learner’s RNN parameters are updated, and the teacher uses its fixed RNN. Therefore an agent uses only one RNN for both speaking and listening, guaranteeing self-consistency (see Appendix B for a detailed comparison between the obverter technique and the RL-based approach). Furthermore, because the teacher’s parameters are fixed, message generation can easily be extended to be more exploratory. Although in this work we deterministically selected a character in each timestep, one can, for example, sample characters proportionally to $\\hat { y }$ and still use gradient descent for training the agents. Using a more exploratory message generation strategy could help us discover a more optimal communication language when dealing with complex tasks. ",
299
+ "bbox": [
300
+ 174,
301
+ 463,
302
+ 825,
303
+ 574
304
+ ],
305
+ "page_idx": 3
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "Another feature of the obverter technique is that it observes the principle of least effort (Zipf, 1949). Because the teacher stops generating symbols as soon as $\\hat { y }$ reaches the threshold, it does not waste any more effort trying to perfect the message. The same principle was implemented in one way or another in previous works, such as choosing the shortest among the generated strings (Kirby & Hurford, 2002) or imposing a small cost for generating a message (Mordatch & Abbeel, 2017). ",
310
+ "bbox": [
311
+ 174,
312
+ 582,
313
+ 825,
314
+ 651
315
+ ],
316
+ "page_idx": 3
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "2.4 ENVIRONMENTAL PRESSURE FOR COMPOSITIONAL COMMUNICATION ",
321
+ "text_level": 1,
322
+ "bbox": [
323
+ 178,
324
+ 670,
325
+ 691,
326
+ 684
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "During the early stages of research, we noticed that randomly sampling object pairs (one for the teacher, one for the learner) lead to agents focusing only on colors and ignoring shapes. When the teacher’s object is fixed, there are 40 (8 colors $\\times 5$ shapes) possibilities on the learner’s side. If the teacher only talks about the color of the object, the learner can correctly decide for 36 out of 40 possible object types. The learner makes incorrect decisions only when the teacher and the learner are given objects of the same color but different shapes, resulting in $9 0 \\%$ accuracy on average. This is actually what we observed; the accuracy plateaued between 0.9 and 0.92 during the training, and the messages were more or less the same for objects with the same color. Therefore when constructing a mini-batch of images, we set $2 5 \\%$ to be the object pairs of the same color and shape, $30 \\%$ the same shape but different colors, $20 \\%$ the same color but different shapes. The remaining $2 5 \\%$ object pairs were picked randomly3. ",
333
+ "bbox": [
334
+ 174,
335
+ 695,
336
+ 825,
337
+ 849
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "Vocabulary size (i.e. number of unique symbols) and the maximum message length were also influential to the final outcome. We noticed that a larger vocabulary and a longer message length helped the agents achieve a high communication accuracy more easily. But the resulting messages were more challenging to analyze for compositional patterns. In all our experiments we used 5 and 20 respectively for the vocabulary size and the maximum message length, similar to what Batali (1998) used. This suggests that the environment plays as important, if not more, role as the model architecture in the emergence of complex communication as discussed by previous studies (Kirby et al., 2014; Bratman et al., 2010; Kottur et al., 2017) and should be a main consideration for future efforts. Further details regarding hyperparameters are described in Appendix E. ",
344
+ "bbox": [
345
+ 178,
346
+ 856,
347
+ 823,
348
+ 883
349
+ ],
350
+ "page_idx": 3
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "",
355
+ "bbox": [
356
+ 173,
357
+ 103,
358
+ 825,
359
+ 202
360
+ ],
361
+ "page_idx": 4
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "3 EXPERIMENTS ",
366
+ "text_level": 1,
367
+ "bbox": [
368
+ 176,
369
+ 224,
370
+ 326,
371
+ 239
372
+ ],
373
+ "page_idx": 4
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "In this section, we first study the convergence behavior during the training phase. Then we analyze the language developed by the agents in terms of compositionality. As stated in the introduction, in compositional language, the meaning of a complex expression is determined by its structure and the meanings of its constituents. With this definition in mind, we focus on two aspects of the inter-agent communication to evaluate its compositional properties: the structure (i.e. grammar) of the communication, and zero-shot performance (i.e. generalizing to novel stimuli). These two aspects, which are both necessary conditions for any language to be considered compositional, have been used by previous works to study the compositional nature of artificial communication (Batali, 1998; Mordatch & Abbeel, 2017; Kottur et al., 2017). ",
378
+ "bbox": [
379
+ 174,
380
+ 257,
381
+ 825,
382
+ 382
383
+ ],
384
+ "page_idx": 4
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "To evaluate the structure of the messages, we study the evolution of the communication as training proceeds, and try to derive a grammar for expressing colors and shapes. To evaluate the zero-shot capabilities, we test if the agents can compose consistent messages for objects they have not seen during the training. Moreover, we visualize the image embeddings from the visual modules of both agents to understand how they are recognizing colors and shapes, the results of which, for a better view of the figures, are provided in Appendix H. ",
389
+ "bbox": [
390
+ 174,
391
+ 388,
392
+ 825,
393
+ 473
394
+ ],
395
+ "page_idx": 4
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "3.1 CONVERGENCE BEHAVIOR ",
400
+ "text_level": 1,
401
+ "bbox": [
402
+ 174,
403
+ 492,
404
+ 398,
405
+ 506
406
+ ],
407
+ "page_idx": 4
408
+ },
409
+ {
410
+ "type": "image",
411
+ "img_path": "images/e4918ef563341b6e90dc729d2d56d92b62fe35943fcf79abaaa0650a641662d6.jpg",
412
+ "image_caption": [
413
+ "Figure 4: Progress during the training (best seen in color). (Top) We plot the training accuracy, training loss, average message length and average message distinctness in each round. (Bottom) We plot the perplexities and the Jaccard similarity of the messages spoken by both agents in each round. Note that the average message length and the perplexities are divided by 20 to match the y-axis range with other metrics. "
414
+ ],
415
+ "image_footnote": [],
416
+ "bbox": [
417
+ 191,
418
+ 526,
419
+ 808,
420
+ 723
421
+ ],
422
+ "page_idx": 4
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "Figure 4 shows the convergence behavior during the training. Training accuracy was calculated by rounding the learner’s sigmoid output by 0.5. Message distinctness was calculated by dividing the number of unique messages in the mini-batch by the size of the mini-batch. Ideally there should be, on average, 40 distinct messages in the mini-batch of 50 images, therefore giving us 0.8 distinctness. Every 10 round, both agents were given the same 1, 000 randomly sampled images to generate 1, 000 message pairs. Then perplexity was calculated for each object type and averaged, thus indicating the average number of distinct messages used by the agents to describe a single object type (note that perplexities in the plot was divided by 20). Jaccard similarity between both agents’ messages was also calculated for each object type and averaged. ",
427
+ "bbox": [
428
+ 173,
429
+ 825,
430
+ 825,
431
+ 924
432
+ ],
433
+ "page_idx": 4
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "",
438
+ "bbox": [
439
+ 173,
440
+ 103,
441
+ 823,
442
+ 132
443
+ ],
444
+ "page_idx": 5
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "At the beginning, the listener (i.e. learner) always decides it is not seeing the same object as the speaker, giving us 0.75 accuracy4. But after 7, 000 rounds, accuracy starts to go beyond 0.9. Loss is negatively correlated with accuracy until round 15, 000, where it starts to fluctuate. Accuracy, however, remains high due to how accuracy is measured; by rounding the learner’s output by 0.5. Although we could occasionally observe some patterns in the messages when both accuracy and loss were high, a lower loss generally resulted in a clearer communication structure (i.e. grammar) and better zero-shot performance. The loss fluctuation also indicates some instability in the training process, which is a potential direction for future work. Message distinctness starts at near 0, indicating the agents are generating the same message for all object types. After round 7, 000, where both message distinctness and message length reach their maximum, both start to decrease. But message distinctness never goes as high as the ideal 0.8, meaning that the agents are occasionally using the same message for different object types, as will be shown in the following section. ",
449
+ "bbox": [
450
+ 174,
451
+ 138,
452
+ 825,
453
+ 305
454
+ ],
455
+ "page_idx": 5
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "Both perplexities and Jaccard similarity show seemingly meaningless fluctuation at early rounds. After round 7, 000, perplexities and Jaccard similarity show negatively correlated behavior, meaning that not only is each agent using consistent messages to describe each object type, but also both agents are using very similar messages to describe each object type. We found perplexity and Jaccard similarity to be an important indicator of the degree of the communication structure. During rounds $7 , 0 0 0 \\sim 8 , 0 0 0$ , performance was excellent in terms of loss and accuracy, but perplexity was high and Jaccard similarity low, indicating the agents were assigning incoherent strings to each object type just to win the game. Similar behavior was observed in the early stages of language evolution simulation in Kirby & Hurford (2002) where words represented some meanings but had no structure (i.e. protolanguage). It seems that artificial communication acquires compositional properties after the emergence of protolanguage regardless of whether the input is entangled or disentangled. ",
460
+ "bbox": [
461
+ 174,
462
+ 313,
463
+ 825,
464
+ 465
465
+ ],
466
+ "page_idx": 5
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "3.2 GRAMMAR ANALYSIS ",
471
+ "text_level": 1,
472
+ "bbox": [
473
+ 176,
474
+ 483,
475
+ 364,
476
+ 497
477
+ ],
478
+ "page_idx": 5
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "We choose agents from different training rounds to highlight how the language becomes more structured over time. Table 1 shows agents’ messages in the beginning (round 40), when the training accuracy starts pushing beyond $9 0 \\%$ (round 6, 940), when agents settle on a common language (round 16, 760). ",
483
+ "bbox": [
484
+ 176,
485
+ 508,
486
+ 823,
487
+ 565
488
+ ],
489
+ "page_idx": 5
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "In round 40, both agents are respectively producing the same message for all object types as mentioned in section 3.1. We might say the messages are structured, but considering that the listener always answers 0 in early rounds, we cannot say the agents are communicating. In round 6, 940, which is roughly when the agents begin to communicate more efficiently, training accuracy is significantly higher than round 40. However, perplexities show that both agents are assigning many names to a single object type (40-80 names depending on the object type), indicating that the agents are focusing on pixel-level differences between images of the same object type. Table 1 shows, as an example, the messages used by both agents to describe the red sphere. Due to high perplexity, it is difficult to capture the underlying grammar of the messages even with regular expression. Furthermore, as Jaccard similarity indicates, both agents are generating completely different messages for the same object type. In round 16, 760, as the perplexities and Jaccard similarity tell us, the agents came to share a very narrow set of names for each object type (1-4 names depending on the object type). Moreover, the names of the same-colored objects and same-shaped objects clearly seem to follow a pattern. Overall, each of the three phases (round 40, round 6,940, round 16,760) seem to represent the development of visual perception, learning to communicate, and emergence of structure. ",
494
+ "bbox": [
495
+ 174,
496
+ 571,
497
+ 825,
498
+ 780
499
+ ],
500
+ "page_idx": 5
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "We found the messages in round 16, 760 could be decomposed in a similar manner as Table 6 in Appendix A. The top of Table 2 shows a possible decomposition of the messages from round 16, 760 and the bottom shows the rules for each color and shape derived from the decomposition. According to our analysis, the agents use the first part of the message (i.e. prefix) to specify a shape, and the second part (i.e. suffix) to specify a color. However, they use two different strings to specify a shape. For example, the agents use either aaaa or bbbbb to describe a box. The strings used for specifying colors show slightly weaker regularity. For example, red is always described by either the suffix c or suffix e, but magenta is described by the suffix bb, bd, and sometimes b or bc. a used for ¯ gray objects ",
505
+ "bbox": [
506
+ 174,
507
+ 786,
508
+ 825,
509
+ 898
510
+ ],
511
+ "page_idx": 5
512
+ },
513
+ {
514
+ "type": "table",
515
+ "img_path": "images/2c381fd8435b01fc87bc68d60455552c27183e5f39e5f786d9a4cfa16e943f4a.jpg",
516
+ "table_caption": [
517
+ "Round 40 (Training accuracy: $6 6 . 1 \\%$ , Agent0 perplexity:1.0, Agent1 perplexity:1.0, Jaccard similarity:0.0) "
518
+ ],
519
+ "table_footnote": [],
520
+ "table_body": "<table><tr><td rowspan=1 colspan=1>■</td><td rowspan=1 colspan=1>All objectsdescribed by Agent 0</td><td rowspan=1 colspan=1>All objectsdescribed byAgent1</td></tr><tr><td rowspan=1 colspan=1>Message</td><td rowspan=1 colspan=1>dddddddddddddddddddd</td><td rowspan=1 colspan=1>bbbbbbbbbbbbbbbbbbbb</td></tr></table>",
521
+ "bbox": [
522
+ 200,
523
+ 126,
524
+ 787,
525
+ 155
526
+ ],
527
+ "page_idx": 6
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "Round 6,940 ",
532
+ "text_level": 1,
533
+ "bbox": [
534
+ 455,
535
+ 169,
536
+ 539,
537
+ 180
538
+ ],
539
+ "page_idx": 6
540
+ },
541
+ {
542
+ "type": "table",
543
+ "img_path": "images/2e2f6d38361b624e84533ab1404050752c80d29d1359536ccff6bde3e0194449.jpg",
544
+ "table_caption": [
545
+ "(Training accuracy: $9 3 . 1 \\%$ , Agent0 perplexity:9.90, Agent1 perplexity:17.73, Jaccard similarity:0.0) "
546
+ ],
547
+ "table_footnote": [],
548
+ "table_body": "<table><tr><td>■</td><td>Redsphere described byagent 0</td><td>Redspheredescribedbyagent1</td></tr><tr><td rowspan=\"9\">Messages</td><td>aeceaeaeaaaeeeeeeeee</td><td>aaedacacaaaaaaaaaaaa</td></tr><tr><td>aacceeaaaaeeeeeeeeee</td><td>aaccdaacaaaaaaaaaaaa</td></tr><tr><td>aaccceaaaaaaaaeeeeee</td><td>aaabcdadaaaaaaaaaaaa</td></tr><tr><td>aeeeeaaaaeeeeeeeeeee</td><td>aaeeacaeaaaaaaaaaaaa</td></tr><tr><td>aeaceeaeaeeeeeeeeeee</td><td>aaccdadaaaaaaacaaaaa</td></tr><tr><td>aceacacaaaaaaeeeeeee</td><td>aaedaceaaaaaaaaaaaaa</td></tr><tr><td>abeeeeaeeeeeeeeeeeee</td><td>aaeaccaeaaaaaaaaaaaa</td></tr><tr><td>aacceeaeeeeeeeeeeeee</td><td>aaceacaacaaaaaaaaaaa</td></tr><tr><td>aacceeaeaaeeeeeeeeee</td><td>aacdacdaaaaaaaaaaaaa</td></tr><tr><td>aeeacacaaaeeccceeeee</td><td></td><td>aaccdadaaaaacaaaaaaa</td></tr></table>",
549
+ "bbox": [
550
+ 192,
551
+ 194,
552
+ 800,
553
+ 335
554
+ ],
555
+ "page_idx": 6
556
+ },
557
+ {
558
+ "type": "table",
559
+ "img_path": "images/517503722029e95167c4f50fb278299fcd9199e1a5f19f39b6c93f3be6ba0bfd.jpg",
560
+ "table_caption": [
561
+ "Round 16,760 (Training accuracy: $9 8 . 0 \\%$ , Agent0 perplexity:1.69, Agent1 perplexity:1.62, Jaccard similarity:0.82) ",
562
+ "Table 1: (Top) Messages used by both agents when speaking about any object in round 40. (Middle) Ten most frequent messages used by each agent to describe a red sphere in round 6, 940. (Bottom) Messages most often used by both agents for each object type in round 16, 760. Brackets indicate the variation often seen at the last character. Underscores indicate blanks. "
563
+ ],
564
+ "table_footnote": [],
565
+ "table_body": "<table><tr><td>:</td><td>Box</td><td>Sphere</td><td>Cylinder</td><td>Capsule</td><td>Ellipsoid</td></tr><tr><td>Blue</td><td>bbbbbbb{b.d}</td><td>bb{b,d}</td><td>bbbbbb{b,d}</td><td>bbbbb{c,d}</td><td>bbbb{-,c,d}</td></tr><tr><td>Red White</td><td>aaaa{c,e}</td><td>aa{c,e}</td><td>aaa{c,e}</td><td>a{c,e}</td><td>c,e</td></tr><tr><td></td><td>bbbbbb</td><td>b,d</td><td>bbbb{b,d}</td><td>bbb{b.d}</td><td>bb{-,c,d}</td></tr><tr><td>Gray</td><td>aaa</td><td>a</td><td>aa</td><td>C</td><td>b,bd</td></tr><tr><td>Yellow</td><td>aaaaaa</td><td>aaaa</td><td>aaaaa</td><td>aaa</td><td>a{a,e}</td></tr><tr><td>Green</td><td>aaaa{a,ad}</td><td>aa{a,ad}</td><td>aaa{a.ad}</td><td>a{a,ad}</td><td>a</td></tr><tr><td>Cyan</td><td>ax20</td><td>bbb{b,d}</td><td>bbbbbbb{b,d}</td><td>bbbbbbd</td><td>bbbbb{b.d}</td></tr><tr><td>Magenta</td><td>bbbbbbb</td><td>b{b.d</td><td>bbbbb{b,d}</td><td>bbbbd</td><td>bbb{-.c,d}</td></tr></table>",
566
+ "bbox": [
567
+ 191,
568
+ 375,
569
+ 803,
570
+ 491
571
+ ],
572
+ "page_idx": 6
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "represents deletion of the prefix a. Note that removing prefixes beyond their length causes the pattern to break. For example, gray box, gray sphere and gray cylinder use the same a¯aa to express the color, ¯ but gray capsule and gray ellipsoid use irregular suffixes. ",
577
+ "bbox": [
578
+ 174,
579
+ 594,
580
+ 825,
581
+ 636
582
+ ],
583
+ "page_idx": 6
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "Despite some irregularities and one exceptional case (cyan box), the messages provide strong evidence that the agents learned to properly recognize color and shape from raw pixel input (see Appendix H for studying what the visual module learned), mapped each color and shape to prefixes and suffixes, and are able to compose meaningful messages to describe a given image to one another. Communication accuracy for each object type is described in Appendix F. Communication examples and their analysis are given in Appendix G. ",
588
+ "bbox": [
589
+ 174,
590
+ 643,
591
+ 825,
592
+ 727
593
+ ],
594
+ "page_idx": 6
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "3.3 ZERO-SHOT EVALUATION ",
599
+ "text_level": 1,
600
+ "bbox": [
601
+ 176,
602
+ 755,
603
+ 388,
604
+ 768
605
+ ],
606
+ "page_idx": 6
607
+ },
608
+ {
609
+ "type": "text",
610
+ "text": "If the agents have truly learned to compose a message that can be divided into a color part and a shape part, then they should be able to accurately describe an object they have not seen before, which is another necessary condition for a compositional language. Therefore, we hold out five objects (the shaded cells in Table 3) from the dataset during the training and observe how agents describe five novel objects during the test phase. The agents were chosen from round 19, 980, which showed a high accuracy $( 9 7 . 8 \\% )$ , low perplexities (1.48, 1.65) and a high Jaccard similarity (0.75). Table 3 shows a potential decomposition of the messages used by the agents (original messages are described by Table 8 in Appendix I). We can observe that there is clearly a structure in the communication, although some messages show somewhat weaker patterns compared to when the agents were trained with all object types (Table 2). Suffixes for specifying yellow and magenta are especially irregular, even when we consider the effects of b and ¯ e. However, the messages describing the held-out object ¯ types show clear structure with the exception of yellow ellipsoid. ",
611
+ "bbox": [
612
+ 174,
613
+ 785,
614
+ 825,
615
+ 924
616
+ ],
617
+ "page_idx": 6
618
+ },
619
+ {
620
+ "type": "table",
621
+ "img_path": "images/dacd9fe559f2ed7b036c0b7cab2d949618cf2c40cf80ad45e099c0e858753566.jpg",
622
+ "table_caption": [],
623
+ "table_footnote": [],
624
+ "table_body": "<table><tr><td>■</td><td>Box</td><td>Sphere</td><td>Cylinder</td><td>Capsule</td><td>Ellipsoid</td></tr><tr><td>Blue Red</td><td>bbbbb bb{b,d} aaaa {c,e}</td><td>bb{b,d} aa {c,e}</td><td>bbbb bb{b.d} aaa {c,e}</td><td>bbb bb{c,d} a{c,e}</td><td>bb bb{-.c,d} {c,e}</td></tr><tr><td>White</td><td>bbbbbb</td><td>{b.d}</td><td>bbbb{b.d}</td><td>bbb {b.d}</td><td>bb{-c,d}</td></tr><tr><td>Gray</td><td>aaaa aaa</td><td>aa aaa</td><td>aaa aaa</td><td>a aac</td><td>aa{b,bd}</td></tr><tr><td>Yellow</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td>aaaa aa</td><td>aaaa</td><td>aaaaa</td><td>aaa</td><td>a{ae}</td></tr><tr><td>Green</td><td>aaaa {a,ad}</td><td>aa {a,ad}</td><td>aaa {a,ad}</td><td>a{a,ad}</td><td>a</td></tr><tr><td>Cyan</td><td>a×20</td><td>bbb{b,d}</td><td>bbbb bbb{b,d}</td><td>bbb bbbd</td><td>bb bbb{b.d}</td></tr><tr><td>Magenta</td><td>bbbbbbb</td><td>b{b,d}</td><td>bbbbb{b.d}</td><td>bbb bd</td><td>bbb{-c,d}</td></tr></table>",
625
+ "bbox": [
626
+ 217,
627
+ 101,
628
+ 777,
629
+ 218
630
+ ],
631
+ "page_idx": 7
632
+ },
633
+ {
634
+ "type": "table",
635
+ "img_path": "images/6f670dc99afe992b1e6c0df384ee179a8d2c33499e913f45b4b7f17f66ccdb8a.jpg",
636
+ "table_caption": [
637
+ "Define Blue, White, Cyan, Magenta as color group 0, rest as color group 1. "
638
+ ],
639
+ "table_footnote": [],
640
+ "table_body": "<table><tr><td rowspan=1 colspan=1>■</td><td rowspan=1 colspan=1>Rule</td></tr><tr><td rowspan=1 colspan=1>Blue</td><td rowspan=3 colspan=1>End with bbb or bbdEnd with c or eEnd with b or dEnd with aaaEnd with aaEnd with a or adEnd with bbbb or bbbdEnd with bb or bd</td></tr><tr><td rowspan=1 colspan=1>RedWhite</td></tr><tr><td rowspan=1 colspan=1>Gray</td><td rowspan=1 colspan=1>GrayYellowGreenCyanMagenta</td></tr><tr><td rowspan=1 colspan=1>BoxSphereCylinderCapsuleEllipsoid</td><td rowspan=1 colspan=1>Start with bbbbb for color group O, start with aaaa for color group 1Start with aa for color group 1Start with bbbb for color group O, start with aaa for color group 1Start with bbb for color group O,start with a for color group 1Start with bb for color group 0</td></tr></table>",
641
+ "bbox": [
642
+ 246,
643
+ 242,
644
+ 746,
645
+ 420
646
+ ],
647
+ "page_idx": 7
648
+ },
649
+ {
650
+ "type": "table",
651
+ "img_path": "images/33a781e3e5d4062ed9e9d59d3c69194abbcc7c1739d074727eba66f914b690dc.jpg",
652
+ "table_caption": [
653
+ "Table 2: (Top) Potential composition analysis of the messages from round 16,760 (bottom of Table 1). Italic symbols are used to specify shapes and roman symbols are used to specify colors. a indicates ¯ deleting a single prefix a. (Bottom) Rules for each color and shape derived from the top table. ",
654
+ "Table 3: Potential analysis of the messages observed in the zero-shot test. Gray cells indicate object types unseen during the training phase. Italic symbols are used to specify shapes and roman symbols to specify colors. b indicates deleting a single prefix¯ $b$ . e indicates deleting a single prefix ¯ $e$ . Underscores indicate blanks. "
655
+ ],
656
+ "table_footnote": [],
657
+ "table_body": "<table><tr><td rowspan=1 colspan=1>■</td><td rowspan=1 colspan=3>Box</td><td rowspan=1 colspan=2>Sphere</td><td rowspan=1 colspan=3>Cylinder</td><td rowspan=1 colspan=1>Capsule</td><td rowspan=1 colspan=1>Ellipsoid</td></tr><tr><td rowspan=7 colspan=1>BlueRedWhiteGrayYellowGreen</td><td rowspan=1 colspan=3>eeeeee e{e,ee}</td><td rowspan=1 colspan=2>eeeeee</td><td rowspan=2 colspan=3>eeeee e{e,ed}eeeee eeee{e,a}</td><td rowspan=3 colspan=1>eee e{e,ed}eee eeee{b,ba}bb {b.d}</td><td rowspan=5 colspan=1>eee{e,a}ee eeee{a,c}bbb {d.c}ee eee{b.d}</td></tr><tr><td rowspan=6 colspan=3>eeeeee eeee{e.a}bbbbbeeeeeeeeeebbbb bb{c,d}eeeeee {e,a}</td><td rowspan=1 colspan=2>eeee eeee{e,ea}</td><td rowspan=1 colspan=2>eeee</td></tr><tr><td rowspan=1 colspan=2>bb</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=2></td><td rowspan=2 colspan=1></td><td rowspan=2 colspan=1>eeee eee{-,a}</td><td rowspan=1 colspan=1></td><td rowspan=2 colspan=3>eeeee eee{e,a}</td><td rowspan=2 colspan=1>eee eee{e,a}</td></tr><tr><td rowspan=4 colspan=2>bbbe{e,ec}eeee {e,a}eeee ee{e,a}bb{c.d</td></tr><tr><td rowspan=3 colspan=3>bbb bb{c,d}eeeee {e,a}eeeee ee{e,ea}bbbb{b.d}</td><td rowspan=2 colspan=1>bb bb{a.c}eee{e,a}</td><td rowspan=1 colspan=1>bbb bb{a,e}</td></tr><tr><td rowspan=2 colspan=1>eee{e,a}eee ee{e,a}bb bb</td><td rowspan=2 colspan=1>ee {e,a}ee eeabbb bb{c.a}</td></tr><tr><td rowspan=1 colspan=1>CyanMagenta</td><td rowspan=1 colspan=3>eeeeee eeeabbbb b{b.d}</td><td rowspan=1 colspan=1></td></tr></table>",
658
+ "bbox": [
659
+ 179,
660
+ 492,
661
+ 813,
662
+ 611
663
+ ],
664
+ "page_idx": 7
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "",
669
+ "bbox": [
670
+ 176,
671
+ 707,
672
+ 821,
673
+ 736
674
+ ],
675
+ "page_idx": 7
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "In order to assess the communication accuracy when held-out objects are involved, we conducted another test with the agents from round 19, 980. Each held-out object was given to the speaker, the listener, or both. In the first two cases, the held-out object was paired with all 40 object types and each pair was tested 10 times. In the last case, the held-out object was tested against itself 10 times. In all cases, the agents switched roles after 5 times. Table 4 shows communication accuracies for each case. We can see the agents can successfully communicate most of the time even when given novel objects. The last column shows that the listener is not simply producing 0 to maximize its chance to win the game. It is also notable that the objects described without $\\bar { \\mathsf b }$ or e show better performance in general. ¯ We noticed the communication accuracy for held-out objects seems relatively weak considering the messages used to describe them strongly showed structure. (Table 3). This, however, results from the grammar (i.e. structure) being not as straightforward as Table 2, especially with short messages (i.e. frequent use of $\\bar { \\mathsf b }$ and e). The same tendency can be observed for non-held-out objects as described ¯ by the per-object communication accuracy Table 9 in Appendix J. ",
680
+ "bbox": [
681
+ 173,
682
+ 743,
683
+ 826,
684
+ 924
685
+ ],
686
+ "page_idx": 7
687
+ },
688
+ {
689
+ "type": "table",
690
+ "img_path": "images/b88809ab7238f10aacf21f76006badba3743f4dadd2459290f80dd87b5acee65.jpg",
691
+ "table_caption": [
692
+ "Table 4: Communication accuracy when agents were given objects not seen during the training. "
693
+ ],
694
+ "table_footnote": [],
695
+ "table_body": "<table><tr><td></td><td>Given to speaker</td><td>Given to listener</td><td>Given to both</td></tr><tr><td>BlueBox</td><td>0.97</td><td>0.97</td><td>1.00</td></tr><tr><td>Red Sphere</td><td>0.92</td><td>0.91</td><td>0.80</td></tr><tr><td>White Cylinder</td><td>0.95</td><td>0.95</td><td>0.90</td></tr><tr><td>Gray Capsule</td><td>0.91</td><td>0.91</td><td>1.00</td></tr><tr><td>Yellow Ellipsoid</td><td>0.91</td><td>0.90</td><td>1.00</td></tr></table>",
696
+ "bbox": [
697
+ 267,
698
+ 101,
699
+ 725,
700
+ 181
701
+ ],
702
+ "page_idx": 8
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "From the grammar analysis in the previous section, we have shown that the emerged language strongly follows a well-defined grammar. In the zero-shot test, the agents demonstrated that they can successfully describe novel object, although not perfectly, by also following a similar grammar. Both are, as stated in the beginning of section 3, necessary conditions for any communication to be considered compositional. Therefore we can safely conclude that the emerged language in this work possesses some qualifications to be considered compositional. ",
707
+ "bbox": [
708
+ 174,
709
+ 234,
710
+ 825,
711
+ 318
712
+ ],
713
+ "page_idx": 8
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "4 DISCUSSION ",
718
+ "text_level": 1,
719
+ "bbox": [
720
+ 176,
721
+ 340,
722
+ 310,
723
+ 357
724
+ ],
725
+ "page_idx": 8
726
+ },
727
+ {
728
+ "type": "text",
729
+ "text": "In this work, we used the obverter technique to train neural network agents to communicate in a two-person image description game. Through qualitative analysis, visualization and the zero-shot test, we have shown that even though the agents receive raw perception in the form of image pixels, under the right environment pressures, the emerged language had properties consistent with the ones found in compositional languages. ",
730
+ "bbox": [
731
+ 174,
732
+ 373,
733
+ 825,
734
+ 443
735
+ ],
736
+ "page_idx": 8
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "As an evaluation strategy, we followed previous works and focused on assessing the necessary conditions of compositional languages. However, the exact definition of compositional language is still somewhat debatable, and, to the best of our knowledge, there is no reliable way to mathematically quantify the degree of compositionality of an arbitrary language. Therefore, in order to encourage active research and discussion among researchers in this domain, we propose for future work, a quantitatively measurable definition of compositionality. We believe compositionality of a language is not binary (e.g. language A is compositional/not compositional), but a spectrum. For example, human language has some aspects that are compositional (e.g., syntactic constructions, most morphological combinations) and some that are not (e.g., irregular verb tenses in English, character-level word composition). It is also important to clearly define grounded language and compositional language. If one agent says abc (eat red apple) and another says cba (apple red eat), and they both understand each other, are they speaking compositional language? We believe such questions should be asked and addressed to shape the definition of compositionality. ",
741
+ "bbox": [
742
+ 174,
743
+ 450,
744
+ 825,
745
+ 630
746
+ ],
747
+ "page_idx": 8
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "In addition to the definition/evaluation of compositional languages, there are numerous directions of future work. Observing the emergence of a compositional language among more than two agents is an apparent next step. Designing an environment to motivate the agents to disentangle more than two factors is also an interesting direction. Training agents to consider the context (i.e. pragmatics), such as giving each agent several images instead of one, is another exciting future work. ",
752
+ "bbox": [
753
+ 174,
754
+ 637,
755
+ 825,
756
+ 707
757
+ ],
758
+ "page_idx": 8
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "ACKNOWLEDGMENTS ",
763
+ "text_level": 1,
764
+ "bbox": [
765
+ 176,
766
+ 727,
767
+ 326,
768
+ 738
769
+ ],
770
+ "page_idx": 8
771
+ },
772
+ {
773
+ "type": "text",
774
+ "text": "We would like to thank Scott Reed for discussions on pragmatics, Tom Le Paine for advising the visual module architecture, Jakob Foerster for discussions on grammar induction, Sookyung Kim and Joonseok Lee for discussions on human language and compositionality, Phil Blunsom and Jimeng Sun for helpful comments on the manuscript. ",
775
+ "bbox": [
776
+ 174,
777
+ 750,
778
+ 825,
779
+ 806
780
+ ],
781
+ "page_idx": 8
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "REFERENCES ",
786
+ "text_level": 1,
787
+ "bbox": [
788
+ 176,
789
+ 829,
790
+ 285,
791
+ 844
792
+ ],
793
+ "page_idx": 8
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2425–2433, 2015. ",
798
+ "bbox": [
799
+ 178,
800
+ 853,
801
+ 825,
802
+ 896
803
+ ],
804
+ "page_idx": 8
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "John Langshaw Austin. How to do things with words. Oxford university press, 1975. ",
809
+ "bbox": [
810
+ 173,
811
+ 909,
812
+ 728,
813
+ 924
814
+ ],
815
+ "page_idx": 8
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In ICLR, 2014. ",
820
+ "bbox": [
821
+ 171,
822
+ 103,
823
+ 823,
824
+ 132
825
+ ],
826
+ "page_idx": 9
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "John Batali. Computational simulations of the emergence of grammar. Approaches to the evolution of language: Social and cognitive bases, 405:426, 1998. ",
831
+ "bbox": [
832
+ 173,
833
+ 142,
834
+ 823,
835
+ 171
836
+ ],
837
+ "page_idx": 9
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "Jeshua Bratman, Michael Shvartsman, Richard L Lewis, and Satinder Singh. A new approach to exploring language emergence as boundedly optimal control in the face of environmental and cognitive constraints. In International Conference on Cognitive Modeling, pp. 7–12, 2010. ",
842
+ "bbox": [
843
+ 174,
844
+ 180,
845
+ 825,
846
+ 223
847
+ ],
848
+ "page_idx": 9
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "Jerome S Bruner. Intention in the structure of action and interaction. Advances in infancy research, 1981. ",
853
+ "bbox": [
854
+ 173,
855
+ 233,
856
+ 823,
857
+ 262
858
+ ],
859
+ "page_idx": 9
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger ¨ Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In EMNLP, 2014. ",
864
+ "bbox": [
865
+ 174,
866
+ 272,
867
+ 826,
868
+ 315
869
+ ],
870
+ "page_idx": 9
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "Herbert H Clark. Using language. Cambridge university press, 1996. ",
875
+ "bbox": [
876
+ 173,
877
+ 325,
878
+ 629,
879
+ 340
880
+ ],
881
+ "page_idx": 9
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "Jakob Foerster, Yannis M Assael, Nando de Freitas, and Shimon Whiteson. Learning to communicate with deep multi-agent reinforcement learning. In NIPS, pp. 2137–2145, 2016. ",
886
+ "bbox": [
887
+ 173,
888
+ 349,
889
+ 823,
890
+ 380
891
+ ],
892
+ "page_idx": 9
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "Gottlob Frege. Zeitschrift fur philosophie und philosophische kritik. ¨ NF, 100:25–50, 1892. ",
897
+ "bbox": [
898
+ 174,
899
+ 388,
900
+ 771,
901
+ 405
902
+ ],
903
+ "page_idx": 9
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "Zhiting Hu, Zichao Yang, Xiaodan Liang, Ruslan Salakhutdinov, and Eric P Xing. Toward controlled generation of text. In ICML, pp. 1587–1596, 2017. ",
908
+ "bbox": [
909
+ 171,
910
+ 415,
911
+ 823,
912
+ 444
913
+ ],
914
+ "page_idx": 9
915
+ },
916
+ {
917
+ "type": "text",
918
+ "text": "James R Hurford. Biological evolution of the saussurean sign as a component of the language acquisition device. Lingua, 77(2):187–222, 1989. ",
919
+ "bbox": [
920
+ 169,
921
+ 453,
922
+ 825,
923
+ 483
924
+ ],
925
+ "page_idx": 9
926
+ },
927
+ {
928
+ "type": "text",
929
+ "text": "Emilio Jorge, Mikael Kageb ˚ ack, and Emil Gustavsson. Learning to play guess who? and inventing a ¨ grounded language as a consequence. arXiv preprint arXiv:1611.03218, 2016. ",
930
+ "bbox": [
931
+ 169,
932
+ 492,
933
+ 823,
934
+ 521
935
+ ],
936
+ "page_idx": 9
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "Andrej Karpathy and Li Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In CVPR, pp. 3128–3137, 2015. ",
941
+ "bbox": [
942
+ 171,
943
+ 530,
944
+ 825,
945
+ 560
946
+ ],
947
+ "page_idx": 9
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "Simon Kirby and James R Hurford. The emergence of linguistic structure: An overview of the iterated learning model. In Simulating the evolution of language, pp. 121–147. Springer, 2002. ",
952
+ "bbox": [
953
+ 174,
954
+ 570,
955
+ 823,
956
+ 599
957
+ ],
958
+ "page_idx": 9
959
+ },
960
+ {
961
+ "type": "text",
962
+ "text": "Simon Kirby, Tom Griffiths, and Kenny Smith. Iterated learning and the evolution of language. Current opinion in neurobiology, 28:108–114, 2014. ",
963
+ "bbox": [
964
+ 176,
965
+ 608,
966
+ 823,
967
+ 638
968
+ ],
969
+ "page_idx": 9
970
+ },
971
+ {
972
+ "type": "text",
973
+ "text": "Satwik Kottur, Jose MF Moura, Stefan Lee, and Dhruv Batra. Natural language does not ´ emerge’naturally’in multi-agent dialog. In EMNLP, 2017. ",
974
+ "bbox": [
975
+ 173,
976
+ 647,
977
+ 825,
978
+ 678
979
+ ],
980
+ "page_idx": 9
981
+ },
982
+ {
983
+ "type": "text",
984
+ "text": "Angeliki Lazaridou, Alexander Peysakhovich, and Marco Baroni. Multi-agent cooperation and the emergence of (natural) language. In ICLR, 2017. ",
985
+ "bbox": [
986
+ 173,
987
+ 686,
988
+ 825,
989
+ 717
990
+ ],
991
+ "page_idx": 9
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015. ",
996
+ "bbox": [
997
+ 173,
998
+ 724,
999
+ 825,
1000
+ 755
1001
+ ],
1002
+ "page_idx": 9
1003
+ },
1004
+ {
1005
+ "type": "text",
1006
+ "text": "Mike Lewis, Denis Yarats, Yann N Dauphin, Devi Parikh, and Dhruv Batra. Deal or no deal? end-to-end learning for negotiation dialogues. arXiv preprint arXiv:1706.05125, 2017. ",
1007
+ "bbox": [
1008
+ 169,
1009
+ 765,
1010
+ 825,
1011
+ 794
1012
+ ],
1013
+ "page_idx": 9
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "text": "Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of Machine Learning Research, 9(Nov):2579–2605, 2008. ",
1018
+ "bbox": [
1019
+ 169,
1020
+ 803,
1021
+ 825,
1022
+ 833
1023
+ ],
1024
+ "page_idx": 9
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "Karen Milligan, Janet Wilde Astington, and Lisa Ain Dack. Language and theory of mind: metaanalysis of the relation between language ability and false-belief understanding. Child development, 78(2):622–646, 2007. ",
1029
+ "bbox": [
1030
+ 173,
1031
+ 842,
1032
+ 825,
1033
+ 885
1034
+ ],
1035
+ "page_idx": 9
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "Igor Mordatch and Pieter Abbeel. Emergence of grounded compositional language in multi-agent populations. arXiv preprint arXiv:1703.04908, 2017. ",
1040
+ "bbox": [
1041
+ 173,
1042
+ 895,
1043
+ 821,
1044
+ 924
1045
+ ],
1046
+ "page_idx": 9
1047
+ },
1048
+ {
1049
+ "type": "text",
1050
+ "text": "Michael Oliphant and John Batali. Learning and the emergence of coordinated communication. Center for research on language newsletter, 11(1):1–46, 1997. ",
1051
+ "bbox": [
1052
+ 169,
1053
+ 103,
1054
+ 825,
1055
+ 132
1056
+ ],
1057
+ "page_idx": 10
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "David Premack and Guy Woodruff. Does the chimpanzee have a theory of mind? Behavioral and brain sciences, 1(4):515–526, 1978. ",
1062
+ "bbox": [
1063
+ 171,
1064
+ 140,
1065
+ 825,
1066
+ 170
1067
+ ],
1068
+ "page_idx": 10
1069
+ },
1070
+ {
1071
+ "type": "text",
1072
+ "text": "Iulian Vlad Serban, Alessandro Sordoni, Yoshua Bengio, Aaron C Courville, and Joelle Pineau. Building end-to-end dialogue systems using generative hierarchical neural network models. In AAAI, 2016. ",
1073
+ "bbox": [
1074
+ 174,
1075
+ 178,
1076
+ 823,
1077
+ 222
1078
+ ],
1079
+ "page_idx": 10
1080
+ },
1081
+ {
1082
+ "type": "text",
1083
+ "text": "Andrew Smith. Establishing communication systems without explicit meaning transmission. Advances in artificial life, pp. 381–390, 2001. ",
1084
+ "bbox": [
1085
+ 171,
1086
+ 229,
1087
+ 826,
1088
+ 260
1089
+ ],
1090
+ "page_idx": 10
1091
+ },
1092
+ {
1093
+ "type": "text",
1094
+ "text": "Sainbayar Sukhbaatar, Rob Fergus, et al. Learning multiagent communication with backpropagation. In NIPS, pp. 2244–2252, 2016. ",
1095
+ "bbox": [
1096
+ 171,
1097
+ 267,
1098
+ 825,
1099
+ 297
1100
+ ],
1101
+ "page_idx": 10
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "Oriol Vinyals, Alexander Toshev, Samy Bengio, and Dumitru Erhan. Show and tell: A neural image caption generator. In CVPR, pp. 3156–3164, 2015. ",
1106
+ "bbox": [
1107
+ 173,
1108
+ 306,
1109
+ 823,
1110
+ 335
1111
+ ],
1112
+ "page_idx": 10
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Ludwig Wittgenstein. Philosophical investigations. Blackwell, Oxford, UK, 1953. ",
1117
+ "bbox": [
1118
+ 173,
1119
+ 343,
1120
+ 717,
1121
+ 359
1122
+ ],
1123
+ "page_idx": 10
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "George Kingsley Zipf. Human behavior and the principle of least effort. Addison-Wesley, 1949. ",
1128
+ "bbox": [
1129
+ 169,
1130
+ 367,
1131
+ 805,
1132
+ 383
1133
+ ],
1134
+ "page_idx": 10
1135
+ },
1136
+ {
1137
+ "type": "image",
1138
+ "img_path": "images/81623d6fa1690cf173bcc5d807c2fd91fc367f71b2d863a4604fa77be6c9f3a2.jpg",
1139
+ "image_caption": [
1140
+ "Table 5: Meaning vectors are composed of (a) subject vectors and (b) predicate vectors. (c) shows 10 out of 100 possible meaning vectors. "
1141
+ ],
1142
+ "image_footnote": [],
1143
+ "bbox": [
1144
+ 209,
1145
+ 99,
1146
+ 785,
1147
+ 262
1148
+ ],
1149
+ "page_idx": 11
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "A EMERGENCE OF GRAMMAR, BATALI (1998) ",
1154
+ "text_level": 1,
1155
+ "bbox": [
1156
+ 174,
1157
+ 330,
1158
+ 575,
1159
+ 348
1160
+ ],
1161
+ "page_idx": 11
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "In Batali (1998), the author successfully trained neural agents to develop a structured (i.e. grammatical) language using disentangled meaning vectors as the input. Using 10 subject vectors and 10 predicate vectors, all represented as explicit binary vectors, total 100 meaning vectors could be composed(Table 5). Each digit in the subject vector 5a serves a clear role, respectively representing speaker $( s p )$ , hearer $( h r )$ , other $( o t )$ , and plural $( p l )$ . The predicate vector values, on the other hand, are randomly chosen so that each predicate vector will have three 1’s and three 0’s. The combination of ten subject vectors and ten predicate vectors allows 100 meaning vectors. ",
1166
+ "bbox": [
1167
+ 174,
1168
+ 364,
1169
+ 825,
1170
+ 463
1171
+ ],
1172
+ "page_idx": 11
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "The author used twenty neural agents for the experiment. Each agent was implemented with the vanilla recurrent neural networks (RNN), where the hidden vector h’s size was 10, same as the size of the meaning vector m in order to treat h as the agent’s understanding of m. In each training round a single learner (i.e. listener) and ten teachers (i.e. speaker) were randomly chosen. Each teacher, given all $1 0 0 \\mathbf { m }$ ’s in random order, generates a message $\\mathbf { s } ^ { 5 }$ for each $\\mathbf { m }$ and sends it to the learner. The messages are generated using the obverter techinque, which is described in Algorithm 1. The learner is trained to minimize the mean squared error (MSE) between $\\mathbf { h }$ (after consuming the s) and m. After the learner has learned from all ten teachers, the next round begins, repeating the process until the error goes below some threshold. ",
1177
+ "bbox": [
1178
+ 173,
1179
+ 469,
1180
+ 825,
1181
+ 594
1182
+ ],
1183
+ "page_idx": 11
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "1 $\\mathbf { h } ^ { ( 0 ) } = \\mathbf { 0 }$ //Initialize RNN hidden layer with zeros; \n2 $\\mathbf { s } = \\left[ \\mathbf { \\epsilon } \\right]$ //Initialize the message vector; \n3 $t = 0$ //Timestep index; \n4 $\\mathbf { V } = \\mathbf { I } \\in \\mathbb { R } ^ { 4 \\times 4 }$ //Each row $\\mathbf { v } _ { 0 } , \\mathbf { v } _ { 1 } , \\mathbf { v } _ { 2 } , \\mathbf { v } _ { 3 }$ corresponds to $a , b , c , d$ ; \n5 while $| \\mathbf { s } | < m a x$ message length do \n6 $\\mathbf { h } _ { \\mathbf { v } _ { i } } ^ { ( t ) } = \\sigma ( \\mathbf { v } _ { i } \\mathbf { W } _ { i } + \\mathbf { h } ^ { ( t - 1 ) } \\mathbf { W } _ { h } + \\mathbf { b } )$ ; \n7 $i = \\mathrm { a r g m i n } _ { i } \\vert \\vert \\mathbf { m } - \\mathbf { h } _ { \\mathbf { v } _ { i } } ^ { ( t ) } \\vert \\vert ^ { 2 }$ ; \n8 $\\mathbf { h } ^ { ( t ) } = \\mathbf { h } _ { \\mathbf { v } _ { i } } ^ { ( t ) }$ ; \n9 Append $i$ to s; \n10 if $| | \\mathbf { m } - \\mathbf { h } ^ { ( t ) } | | ^ { 2 } < t h r e s h o l d \\mathbf { t } 1$ hen \n11 Terminate; ",
1188
+ "bbox": [
1189
+ 158,
1190
+ 627,
1191
+ 607,
1192
+ 810
1193
+ ],
1194
+ "page_idx": 11
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "When the training was complete, the author was able to find strong patterns in the messages used by the agents (Table 6). Note that the messages using predicates tired, scared, sick and happy especially follow a very clear pattern. Batali also conducted a zero-shot test where the agents were trained without the diagonal elements in Table 6 and tested with all 100 meaning vectors. The agents were able to successfully communicate even when held-out meaning vectors were used, but the ",
1199
+ "bbox": [
1200
+ 173,
1201
+ 821,
1202
+ 825,
1203
+ 892
1204
+ ],
1205
+ "page_idx": 11
1206
+ },
1207
+ {
1208
+ "type": "table",
1209
+ "img_path": "images/004fdabe8b0e0e6a8ff74df89bf7550173c82bf401750b5a2790f081cd9bf041.jpg",
1210
+ "table_caption": [],
1211
+ "table_footnote": [],
1212
+ "table_body": "<table><tr><td>=</td><td>one</td><td>they</td><td>you</td><td>yall</td><td>yup</td><td>me</td><td>we</td><td>mip</td><td>yumi</td><td>all</td></tr><tr><td>tired</td><td>cda</td><td>cdab</td><td>cdc</td><td>cdcb</td><td>cdba</td><td>cd</td><td>cdd</td><td>cddb</td><td>cdcd</td><td>cdb</td></tr><tr><td>scared</td><td>caa</td><td>caab</td><td>cac</td><td>cacb</td><td>caba</td><td>ca</td><td>cad</td><td>cadb</td><td>cacd</td><td>cab</td></tr><tr><td>sick</td><td>daa</td><td>daab</td><td>dac</td><td>dacb</td><td>daba</td><td>da</td><td>dad</td><td>dadb</td><td>dacd</td><td>dab</td></tr><tr><td>happy sad</td><td>baa</td><td>baab abab</td><td>bca</td><td>bcab</td><td>baac</td><td>ba</td><td>badc</td><td>bab</td><td>bac</td><td>babc</td></tr><tr><td>excited</td><td>aba cba</td><td>cbab</td><td>ac</td><td>acb cacb</td><td>abac cbca</td><td>a</td><td>abdc ccdc</td><td>abb</td><td>abc</td><td>abbc</td></tr><tr><td>angry</td><td>bb</td><td>bbb</td><td>cca bc</td><td></td><td></td><td>c</td><td></td><td>cb</td><td>ccb</td><td>cbc</td></tr><tr><td></td><td></td><td></td><td></td><td>bcb</td><td>bbc</td><td>b</td><td>bddc</td><td>bdb</td><td>bdc</td><td>bdbc</td></tr><tr><td>silly</td><td>aa</td><td>aaab</td><td>aca</td><td>acab</td><td>adba</td><td>add</td><td>addc</td><td>adad</td><td>adc</td><td>adbc</td></tr><tr><td>thirsty</td><td>dbaa</td><td>dbab</td><td>dca</td><td>dcba</td><td>dbca</td><td>dda</td><td>ddac</td><td>dbad</td><td>dcad</td><td>dbacd</td></tr><tr><td>hungry</td><td>dbb</td><td>dbbd</td><td>dc</td><td>dcb</td><td>dbc</td><td>dd</td><td>ddc</td><td>dbd</td><td>dcd</td><td>dbcd</td></tr></table>",
1213
+ "bbox": [
1214
+ 222,
1215
+ 101,
1216
+ 772,
1217
+ 242
1218
+ ],
1219
+ "page_idx": 12
1220
+ },
1221
+ {
1222
+ "type": "table",
1223
+ "img_path": "images/41a1513b8f0051663e2b6f09172f21f3ea517adf28bdd283c3cc3c0bb5f347b6.jpg",
1224
+ "table_caption": [],
1225
+ "table_footnote": [],
1226
+ "table_body": "<table><tr><td>-</td><td>one</td><td>they</td><td>you</td><td>yall</td><td>yup</td><td>me</td><td>we</td><td>mip</td><td>yumi</td><td>all</td></tr><tr><td>tired</td><td>cda</td><td>cdab</td><td>cdc</td><td>cdcb</td><td>cdba</td><td>cd</td><td>cdd</td><td>cddb</td><td>cdcd</td><td>cdb</td></tr><tr><td>scared</td><td>caa</td><td>caab</td><td>cac</td><td>cacb</td><td>caba</td><td>ca</td><td>cad</td><td>cadb</td><td>cacd</td><td>cab</td></tr><tr><td>sick</td><td>daa</td><td>daab</td><td>dac</td><td>dacb</td><td>daba</td><td>da</td><td>dad</td><td>dadb</td><td>dacd</td><td>dab</td></tr><tr><td>happy</td><td>baa</td><td>baab</td><td>bca</td><td>bcab</td><td>baac</td><td>ba</td><td>badc</td><td>bab</td><td>bac</td><td>babc</td></tr><tr><td>sad excited</td><td>aba</td><td>abab</td><td>ac</td><td>acb</td><td>abac</td><td>a</td><td>abdc</td><td>abb</td><td>abc</td><td>abbc</td></tr><tr><td></td><td>cba</td><td>cbab</td><td>cca</td><td>cacb</td><td>cbca</td><td>C</td><td>ccdc</td><td>cb</td><td>ccb</td><td>cbc</td></tr><tr><td>angry</td><td>cb</td><td>cbb</td><td>CC</td><td>ccb</td><td>cbc</td><td>C</td><td>cddc</td><td>cdb</td><td>cdc</td><td>cdbc</td></tr><tr><td>silly</td><td>(aa)</td><td>(aaab)</td><td>(aca)</td><td>(acab)</td><td>adba</td><td>add</td><td>addc</td><td>adad</td><td>adc</td><td>adbc</td></tr><tr><td>thirsty</td><td>dbaa</td><td>dbab</td><td>dca</td><td>dcba</td><td>dbca</td><td>dda</td><td>ddac</td><td>dbad</td><td>dcad</td><td>dbacd</td></tr><tr><td>hungry</td><td>dbb</td><td>dbbd</td><td>dc</td><td>dcb</td><td>dbc</td><td>dd</td><td>ddc</td><td>dbd</td><td>dcd</td><td>dbcd</td></tr></table>",
1227
+ "bbox": [
1228
+ 209,
1229
+ 253,
1230
+ 782,
1231
+ 395
1232
+ ],
1233
+ "page_idx": 12
1234
+ },
1235
+ {
1236
+ "type": "text",
1237
+ "text": "Table 6: (Top) Messages used by a majority of the population for each of the given meanings. (Bottom) A potential analysis of the system in terms of a root plus modifications. Italic symbols are used to specify predicates and roman symbols are used to specify subjects. Messages in parentheses cannot be made to fit into this analysis. ",
1238
+ "bbox": [
1239
+ 173,
1240
+ 405,
1241
+ 825,
1242
+ 462
1243
+ ],
1244
+ "page_idx": 12
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "messages used for the held-out meaning vectors did not show as strong compositional patterns as the non-zero-shot case. ",
1249
+ "bbox": [
1250
+ 176,
1251
+ 491,
1252
+ 823,
1253
+ 518
1254
+ ],
1255
+ "page_idx": 12
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "B COMPARISON BETWEEN THE OBVERTER TECHINQUE AND THEREINFORCEMENT LEARNING-BASED APPROACH",
1260
+ "text_level": 1,
1261
+ "bbox": [
1262
+ 174,
1263
+ 541,
1264
+ 723,
1265
+ 574
1266
+ ],
1267
+ "page_idx": 12
1268
+ },
1269
+ {
1270
+ "type": "text",
1271
+ "text": "The obverter technique allows us to generate messages that encourage the agents to use a shared language, even a highly structured one, via using a single RNN for both speaking and listening. ",
1272
+ "bbox": [
1273
+ 174,
1274
+ 592,
1275
+ 823,
1276
+ 619
1277
+ ],
1278
+ "page_idx": 12
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "This is quite different from other RL-based related works (Lazaridou et al., 2017; Mordatch & Abbeel, 2017; Foerster et al., 2016; Jorge et al., 2016; Kottur et al., 2017) where each agent has separate components (e.g. two RNNs) for generating messages and consuming messages. This is necessary typically because the message generation module and the message consumption module have different input/output requirements. The message generation module accepts some input related to the task (e.g. goal description vector, question embedding, or image embedding) and generates discrete symbols. The message consumption module, on the other hand, accepts discrete symbols (i.e. the message) and generates some output related to the task (e.g. some prediction or some action to take). Therefore, when a neural agent speaks in the RL-based approach, its message generation process is completely separated from its own listening process, but tied to the listening process of another agent (i.e. listener)6. This means an agent may not have internal consistency; what an agent speaks may not make sense to itself. However, agents in the RL-based setting do converge on a common language because, during the training, the error signal flows from the listener to the speaker directly. ",
1283
+ "bbox": [
1284
+ 174,
1285
+ 626,
1286
+ 825,
1287
+ 820
1288
+ ],
1289
+ "page_idx": 12
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "Obverter approach, on the other hand, requires that each agent has a single component for both message generation and message consumption. This single component accepts discrete symbols and generates some output related to the task. This guarantees internal consistency because an agent’s message generation process is tied to its own message consumption process; it will only generate messages that make sense to itself. In the obverter setting, the error signal does not flow between agents directly, but agents converge on a common language by taking turns to be the listener; the listener tries to understand what the speaker says, so that when the listener becomes the speaker, it can generate messages that make sense to itself and, at the same time, will be understood by the former speaker (now listener). ",
1294
+ "bbox": [
1295
+ 174,
1296
+ 828,
1297
+ 823,
1298
+ 883
1299
+ ],
1300
+ "page_idx": 12
1301
+ },
1302
+ {
1303
+ "type": "text",
1304
+ "text": "",
1305
+ "bbox": [
1306
+ 174,
1307
+ 103,
1308
+ 825,
1309
+ 172
1310
+ ],
1311
+ "page_idx": 13
1312
+ },
1313
+ {
1314
+ "type": "text",
1315
+ "text": "The advantage of obverter approach over RL-based approach is that it is motivated by the theory of mind and more resembles the acquisition/development process of human language. Having a single mechanism for both speaking and listening, and training oneself to be a good listener leads to the emergence of self-consistent, shared language. However, obverter technique requires that all agents perform the same task, which means all agents must have identical model architectures. This is because, during the message generation process, the speaker internally simulates what the listener will go though when it hears the message. Therefore we cannot play an asymmetrical game such as where the speaker sees only one image and generates a message but the listener is given multiple images and must choose one after hearing the message. RL-based approaches do not have this problem since there are separate modules for speaking and listening. ",
1316
+ "bbox": [
1317
+ 174,
1318
+ 180,
1319
+ 825,
1320
+ 319
1321
+ ],
1322
+ "page_idx": 13
1323
+ },
1324
+ {
1325
+ "type": "text",
1326
+ "text": "We believe obverter technique could be the better choice for certain tasks regarding human mind emulation. But it certainly is not the tool for every occasion. The RL-based approach is a robust tool for any general task that may or may not involve human-like communication. We conclude this section with a possible future research direction that combines the strengths of both approaches to enable communication in more interesting and complicated tasks. ",
1327
+ "bbox": [
1328
+ 174,
1329
+ 327,
1330
+ 825,
1331
+ 396
1332
+ ],
1333
+ "page_idx": 13
1334
+ },
1335
+ {
1336
+ "type": "text",
1337
+ "text": "C MODEL ARCHITECTURE DETAILS ",
1338
+ "text_level": 1,
1339
+ "bbox": [
1340
+ 176,
1341
+ 416,
1342
+ 483,
1343
+ 431
1344
+ ],
1345
+ "page_idx": 13
1346
+ },
1347
+ {
1348
+ "type": "text",
1349
+ "text": "We used TensorFlow and the Sonnet library for all implementation. ",
1350
+ "bbox": [
1351
+ 174,
1352
+ 446,
1353
+ 612,
1354
+ 460
1355
+ ],
1356
+ "page_idx": 13
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "C.1 VISUAL MODULE ",
1361
+ "text_level": 1,
1362
+ "bbox": [
1363
+ 176,
1364
+ 477,
1365
+ 336,
1366
+ 491
1367
+ ],
1368
+ "page_idx": 13
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "We used an eight-layer convolutional neural network. We used 32 filters with the kernel size 3 for every layer. The strides were $[ 2 , 1 , 1 , 2 , 1 , 2 , 1 , 2 ]$ for each layer. We used rectified linear unit (ReLU) as the activation function for every layer. Batch normalization was used for every layer. We did not use the bias parameters since we used Batch normalization. For padding, we used the TensorFlow VALID padding option for every layer. The fully connected layer that follows the convolutional neural network was of 256 dimensions, with ReLU as the activation function. ",
1373
+ "bbox": [
1374
+ 174,
1375
+ 503,
1376
+ 825,
1377
+ 587
1378
+ ],
1379
+ "page_idx": 13
1380
+ },
1381
+ {
1382
+ "type": "text",
1383
+ "text": "C.2 LANGUAGE MODULE ",
1384
+ "text_level": 1,
1385
+ "bbox": [
1386
+ 176,
1387
+ 603,
1388
+ 362,
1389
+ 617
1390
+ ],
1391
+ "page_idx": 13
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "We used a single layer Gated Recurrent Units (GRU) to implement the language module. The size of the hidden layer was 64. ",
1396
+ "bbox": [
1397
+ 173,
1398
+ 628,
1399
+ 825,
1400
+ 657
1401
+ ],
1402
+ "page_idx": 13
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "C.3 DECISION MODULE ",
1407
+ "text_level": 1,
1408
+ "bbox": [
1409
+ 176,
1410
+ 674,
1411
+ 351,
1412
+ 689
1413
+ ],
1414
+ "page_idx": 13
1415
+ },
1416
+ {
1417
+ "type": "text",
1418
+ "text": "We used a two-layer feedforward neural network. The first layer reduces the dimensionality to 128 with ReLU as the activation function, then the second layer generates a scalar value with sigmoid as the activation function. ",
1419
+ "bbox": [
1420
+ 174,
1421
+ 700,
1422
+ 825,
1423
+ 742
1424
+ ],
1425
+ "page_idx": 13
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "D MESSAGE GENERATION ALGORITHM USED IN OUR WORK ",
1430
+ "text_level": 1,
1431
+ "bbox": [
1432
+ 174,
1433
+ 763,
1434
+ 683,
1435
+ 779
1436
+ ],
1437
+ "page_idx": 13
1438
+ },
1439
+ {
1440
+ "type": "text",
1441
+ "text": "E TRAINING DETAILS ",
1442
+ "text_level": 1,
1443
+ "bbox": [
1444
+ 176,
1445
+ 795,
1446
+ 369,
1447
+ 810
1448
+ ],
1449
+ "page_idx": 13
1450
+ },
1451
+ {
1452
+ "type": "text",
1453
+ "text": "Both agents’ model parameters are randomly initialized. The training process consists of rounds where teacher/learner roles are changed, and each round consists of multiple games where learner’s model parameters are updated. In each game, the teacher, given a mini-batch of images, generates corresponding messages. The learner, given a separate mini-batch of images and the messages from the teacher, decides whether it is seeing the same object type as the teacher. Learner’s model parameters are updated to minimize the cross entropy loss. After playing a predefined number of games, we move on to the next round where two agents change their roles. ",
1454
+ "bbox": [
1455
+ 174,
1456
+ 825,
1457
+ 825,
1458
+ 924
1459
+ ],
1460
+ "page_idx": 13
1461
+ },
1462
+ {
1463
+ "type": "text",
1464
+ "text": "1 $\\mathbf { h } ^ { ( 0 ) } = \\mathbf { 0 }$ //Initialize GRU hidden layer with zeros; \n2 $\\mathbf { s } = \\left[ \\mathbf { \\epsilon } \\right]$ //Initialize the message vector; \n3 $t = 0$ //Timestep index; \n4 $\\mathbf { V } = \\mathbf { I } \\in \\mathbb { R } ^ { 5 \\times 5 }$ //Each row $\\mathbf { v } _ { 0 } , \\mathbf { v } _ { 1 } , \\mathbf { v } _ { 2 } , \\mathbf { v } _ { 3 } , \\mathbf { v } _ { 4 }$ corresponds to $a , b , c , d , e$ ; \n5 $\\mathbf { x } =$ image; \n6 $\\mathbf { z } = V i s u a l M o d u l e ( \\mathbf { x } )$ ; \n7 while $| \\mathbf { s } | < m a x$ message length do \n8 $\\mathbf { h } _ { \\mathbf { v } _ { i } } ^ { ( t ) } = G R U ( \\mathbf { v } _ { i } , \\mathbf { h } ^ { ( t - 1 ) } )$ ; \n9 $\\mathbf { h } ^ { ( t ) } = \\mathbf { h } _ { \\mathbf { v } _ { i } } ^ { ( t ) }$ $i = \\mathrm { a r g m a x } _ { i }$ DecisionModule $( [ \\mathbf { h } _ { \\mathbf { v } _ { i } } ^ { ( t ) } , \\mathbf { z } ] )$ ; \n11 Append $i$ to s; \n12 if DecisionModule $( [ \\mathbf { h } _ { \\mathbf { v } _ { i } } ^ { ( t ) } , \\mathbf { z } ] ) >$ threshold then \n13 Terminate; ",
1465
+ "bbox": [
1466
+ 158,
1467
+ 126,
1468
+ 647,
1469
+ 339
1470
+ ],
1471
+ "page_idx": 14
1472
+ },
1473
+ {
1474
+ "type": "text",
1475
+ "text": "We found twenty games per round, with fifty images per mini-batch to work well. We repeat the rounds for 20, 000 times. Further rounds did not improve the results, or even degraded the performance. For vocabulary size (i.e. number of unique symbols) and the maximum message length, we used 5 and 20 respectively, similar to what Batali (1998) used. Note that when generating a message using the obverter technique, the generation process stops as soon as the speaker’s (i.e. teacher) output $\\hat { y }$ becomes bigger than some threshold. In our work, we experimented with various values from 0.5 to 0.95, and found higher values to work better than lower values. We used 0.95 for all our final experiments. ",
1476
+ "bbox": [
1477
+ 173,
1478
+ 385,
1479
+ 826,
1480
+ 496
1481
+ ],
1482
+ "page_idx": 14
1483
+ },
1484
+ {
1485
+ "type": "text",
1486
+ "text": "F COMMUNICATION ACCURACY FOR EACH OBJECT TYPE ",
1487
+ "text_level": 1,
1488
+ "bbox": [
1489
+ 173,
1490
+ 532,
1491
+ 658,
1492
+ 549
1493
+ ],
1494
+ "page_idx": 14
1495
+ },
1496
+ {
1497
+ "type": "table",
1498
+ "img_path": "images/2b0aae3d0c28893d77741dbe8bd14fdbc46cd11b53335f3d7760608d62e3e0c7.jpg",
1499
+ "table_caption": [
1500
+ "Algorithm 2: Message generation process used in our work. ",
1501
+ "Table 7: Accuracy when each object type is given to the speaker. "
1502
+ ],
1503
+ "table_footnote": [],
1504
+ "table_body": "<table><tr><td>■</td><td>Box</td><td>Sphere</td><td>Cylinder</td><td>Capsule</td><td>Ellipsoid</td></tr><tr><td>Blue</td><td>97.75</td><td>97.00</td><td>95.00</td><td>93.75</td><td>93.50</td></tr><tr><td>Red</td><td>95.50</td><td>93.00</td><td>95.75</td><td>95.25</td><td>97.00</td></tr><tr><td>White</td><td>95.25</td><td>96.25</td><td>93.50</td><td>94.50</td><td>97.00</td></tr><tr><td>Gray</td><td>93.00</td><td>95.00</td><td>94.25</td><td>96.75</td><td>97.25</td></tr><tr><td>Yellow</td><td>98.00</td><td>95.00</td><td>95.50</td><td>94.25</td><td>94.25</td></tr><tr><td>Green</td><td>96.00</td><td>93.50</td><td>95.00</td><td>94.50</td><td>95.25</td></tr><tr><td>Cyan</td><td>97.50</td><td>94.50</td><td>97.00</td><td>94.00</td><td>94.75</td></tr><tr><td>Magenta</td><td>95.25</td><td>96.75</td><td>94.75</td><td>94.50</td><td>95.25</td></tr></table>",
1505
+ "bbox": [
1506
+ 287,
1507
+ 589,
1508
+ 707,
1509
+ 707
1510
+ ],
1511
+ "page_idx": 14
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "We conducted a separate test with the agents from round 16, 760 to assess the communication accuracy for each object type. The agents were given 1, 600 total object pairs $( 4 0 \\times 4 0 )$ . Each object pair was tested 10 times, where after 5 times the agents switched speaker/listener roles. The average accuracy was $9 5 . 4 \\%$ , and only 88 out of 1, 600 object pairs were communicated with accuracy lower than 0.8. ",
1516
+ "bbox": [
1517
+ 173,
1518
+ 762,
1519
+ 825,
1520
+ 833
1521
+ ],
1522
+ "page_idx": 14
1523
+ },
1524
+ {
1525
+ "type": "text",
1526
+ "text": "Table 7 describes the accuracy when each object type was given to the speaker. We can observe that the accuracy is higher for objects that are described with less overlapping messages. For example, yellow box is communicated with the accuracy of $9 8 \\%$ , and it is described with aaaaaa, which is not used for any other object types. Gray box, on the other hand, is communicated with accuracy $9 3 \\%$ . It is described with aaa, which is also used for yellow capsule and green sphere, both of which are communicated with low accuracies as well. ",
1527
+ "bbox": [
1528
+ 173,
1529
+ 840,
1530
+ 825,
1531
+ 922
1532
+ ],
1533
+ "page_idx": 14
1534
+ },
1535
+ {
1536
+ "type": "image",
1537
+ "img_path": "images/a3223aef4b5cd4670d5f3f12325fbeb3c69cf08d9078f75c33cd75f24d8f0912.jpg",
1538
+ "image_caption": [
1539
+ "Figure 5: Ten communication examples when the speaker is given a blue box. Five examples on the left show when the listener is given blue objects. Five examples on the right show when the listener is given objects of different colors. "
1540
+ ],
1541
+ "image_footnote": [],
1542
+ "bbox": [
1543
+ 184,
1544
+ 104,
1545
+ 825,
1546
+ 493
1547
+ ],
1548
+ "page_idx": 15
1549
+ },
1550
+ {
1551
+ "type": "text",
1552
+ "text": "G COMMUNICATION EXAMPLE AND ANALYSIS",
1553
+ "text_level": 1,
1554
+ "bbox": [
1555
+ 174,
1556
+ 578,
1557
+ 575,
1558
+ 593
1559
+ ],
1560
+ "page_idx": 15
1561
+ },
1562
+ {
1563
+ "type": "text",
1564
+ "text": "Figure 5 provides ten examples of communication when the speaker is given a blue box and the listener is given various object types. The listener’s belief (i.e. score) that it is seeing the same image as the speaker changes each time it consumes a symbol. It is notable that most of the time the score jumps between 0 and 1, rather than gradually changing in between. This is natural given that messages that differ by only a single character can mean different objects (e.g. blue box and blue cylinder). This phenomenon can also be seen in human language. For example, blue can and blue cat differ by a single alphabet, but the semantics are completely different. ",
1565
+ "bbox": [
1566
+ 174,
1567
+ 609,
1568
+ 825,
1569
+ 707
1570
+ ],
1571
+ "page_idx": 15
1572
+ },
1573
+ {
1574
+ "type": "text",
1575
+ "text": "Object types that are described by similar messages as blue box, such as blue cylinder and magenta box cause marginal confusion to the listener such that prediction scores for both objects are not complete zeros. There are also cases where two completely different objects are described by the same message as mentioned in Section 3.1. From Table 2 we can see that blue box and cyan cylinder are described by the same message $b b b b b b \\{ b , d \\}$ , although the messages were composed using different rules. Therefore the listener generates high scores for both objects, occasionally losing the game when the agents are given this specific object pair (1 out of 40 chance). This can be seen as a side effect coming from the principle of least effort which motivates the agents to win the game most of the time while minimizing the effort to generate messages. ",
1576
+ "bbox": [
1577
+ 174,
1578
+ 714,
1579
+ 825,
1580
+ 839
1581
+ ],
1582
+ "page_idx": 15
1583
+ },
1584
+ {
1585
+ "type": "text",
1586
+ "text": "H VISUALIZATION OF IMAGE EMBEDDINGS ",
1587
+ "text_level": 1,
1588
+ "bbox": [
1589
+ 174,
1590
+ 863,
1591
+ 549,
1592
+ 878
1593
+ ],
1594
+ "page_idx": 15
1595
+ },
1596
+ {
1597
+ "type": "text",
1598
+ "text": "Section 3.2 provides strong evidence that the agents are properly recognizing the color and shape of an object. In this section, we study the visual module of both agents to study how they are processing the pixel input. We give each agent 1600 images, 40 per object type, and take their image embeddings (output of the fully-connected layer in the visual module). We use t-SNE (Maaten & Hinton, 2008) to reduce the dimensionality to 2D, and generate scatter plots as shown by Figure 6. The top row and the bottom row are the same scatter plots, but the dots are colored with different labels; the top row shows the color of each object, and the bottom row shows the shape of each object. ",
1599
+ "bbox": [
1600
+ 174,
1601
+ 895,
1602
+ 823,
1603
+ 924
1604
+ ],
1605
+ "page_idx": 15
1606
+ },
1607
+ {
1608
+ "type": "image",
1609
+ "img_path": "images/2bfef7d4a774b0f9d6527840974612b010564b9945e307d3641516c2479550bc.jpg",
1610
+ "image_caption": [
1611
+ "Figure 6: Scatter plots of the image embedding from the agents’ visual module. T-SNE was used to reduce the dimension to 2D. "
1612
+ ],
1613
+ "image_footnote": [],
1614
+ "bbox": [
1615
+ 176,
1616
+ 103,
1617
+ 820,
1618
+ 375
1619
+ ],
1620
+ "page_idx": 16
1621
+ },
1622
+ {
1623
+ "type": "text",
1624
+ "text": "",
1625
+ "bbox": [
1626
+ 174,
1627
+ 445,
1628
+ 825,
1629
+ 515
1630
+ ],
1631
+ "page_idx": 16
1632
+ },
1633
+ {
1634
+ "type": "text",
1635
+ "text": "It is notable that the image embeddings form clear clusters, and all clusters are quite disentangled from one another. This means that the agents have learned to differentiate objects by their color and shape, and each color and shape have a specific place in the agents’ mind. It is also impressive that not only both agents learned similar relationships between colors and shapes(Figure 6 (a) and (b) show similar clusters, as do (d) and (e)), but also they learned similar absolute values for colors and shapes. Even when we plot image embeddings from both agents together (Figure 6 (c) and (f)) the cluster qualities are kept almost identical (with slightly higher number of clusters) to when we plot them separately. Therefore when one agent thinks of color red, and utters a message to describe it, the other agent hears the message and think of something red as well. This is, of course, what we wanted to achieve by using the obverter technique. ",
1636
+ "bbox": [
1637
+ 174,
1638
+ 522,
1639
+ 825,
1640
+ 661
1641
+ ],
1642
+ "page_idx": 16
1643
+ },
1644
+ {
1645
+ "type": "text",
1646
+ "text": "The fact that a couple of color or shapes are occasionally in the same cluster suggests the agents have not perfectly disentangled colors and shapes. For perfect disentanglement, we believe some modifications to the image description game is required, which can be an important topic for future work. However, studying the cluster sheds some light on why the agents generate specific messages for each object type. For example, in Figure 6 (a) and (b), blue, white, cyan and magenta are often intertwined or their respective clusters are located nearby, as is the case for red, gray, yellow and green. This suggests the reason agents use prefix $^ b$ ’s to specify shapes for former color group and prefix a’s to specify shapes for the latter color group. Additionally, in Figure 6 (d) and (e), Box and cylinder are often located nearby, and sphere and ellipsoid show similar behavior7. We conjecture that this is the reason the messages describing box and cylinder are similarly long, and the messages describing sphere and ellipsoid tend to be similarly short. ",
1647
+ "bbox": [
1648
+ 173,
1649
+ 669,
1650
+ 825,
1651
+ 821
1652
+ ],
1653
+ "page_idx": 16
1654
+ },
1655
+ {
1656
+ "type": "table",
1657
+ "img_path": "images/4381fb9534e586f1c124e2c94e60600a3fa1ced6341dcf861bac5e549c080214.jpg",
1658
+ "table_caption": [
1659
+ "I ORIGINAL MESSAGES FROM THE ZERO-SHOT TEST ",
1660
+ "Table 8: Messages most often used by the two agents when speaking about a given object. Shaded cells indicate the objects not seen during the training. Brackets indicate the variation often seen at the last character. "
1661
+ ],
1662
+ "table_footnote": [],
1663
+ "table_body": "<table><tr><td>■</td><td>Box</td><td>Sphere</td><td>Cylinder</td><td>Capsule</td><td>Ellipsoid</td></tr><tr><td>Blue Red</td><td>eeeeeee{e,ee}</td><td>eeeeee</td><td>eeeeee{e,ed}</td><td>eeee{e,ed}</td><td>eee{e,a}</td></tr><tr><td>White</td><td>ee{e,a} bbbbb</td><td>e,ea</td><td>e{e,a}</td><td>b,ba</td><td>a,c</td></tr><tr><td></td><td></td><td>bb e,ea</td><td>bbb{b,d}</td><td>bb{b,d}</td><td>bbb{d.c}</td></tr><tr><td>Gray</td><td>eeee</td><td>e{e,ec}</td><td>ee{e,a} b{c,d}</td><td>e,a</td><td>b,d</td></tr><tr><td>Yellow</td><td>bb{c.d}</td><td>eeee{e,a}</td><td>eeeee{e,a}</td><td>a,c</td><td>a,e</td></tr><tr><td>Green</td><td>eeeeee{e,a}</td><td></td><td></td><td>eee{e,a}</td><td>ee{e,a}</td></tr><tr><td>Cyan</td><td>eeeeeeeeea,a×20</td><td>eeeeee{e,a}</td><td>eeeeeee{e,ea}</td><td>eeeee{e,a}</td><td>eeeea</td></tr><tr><td>Magenta</td><td>bbb{b,d}</td><td>c,d</td><td>bb{b,d}</td><td>bb</td><td>b{c.a}</td></tr></table>",
1664
+ "bbox": [
1665
+ 217,
1666
+ 137,
1667
+ 776,
1668
+ 255
1669
+ ],
1670
+ "page_idx": 17
1671
+ },
1672
+ {
1673
+ "type": "table",
1674
+ "img_path": "images/a20c0aaf7f9221bafb1a13cbcfdbb633fec04b47610d7e533553f9733bbff3f3.jpg",
1675
+ "table_caption": [
1676
+ "J COMMUNICATION ACCURACY FOR EACH OBJECT TYPE IN ZERO-SHOT TEST ",
1677
+ "Table 9: Accuracy when each object type is given to the speaker. Shaded cells indicate the objects not seen during the training. "
1678
+ ],
1679
+ "table_footnote": [],
1680
+ "table_body": "<table><tr><td></td><td rowspan=1 colspan=1>■</td><td rowspan=1 colspan=1>Box</td><td rowspan=1 colspan=1>Sphere</td><td rowspan=1 colspan=1>Cylinder</td><td rowspan=1 colspan=1>Capsule</td><td rowspan=1 colspan=1>Ellipsoid</td></tr><tr><td></td><td rowspan=1 colspan=1>Blue</td><td rowspan=1 colspan=1>96.75</td><td rowspan=1 colspan=1>95.00</td><td rowspan=1 colspan=1>94.75</td><td rowspan=1 colspan=1>95.75</td><td rowspan=1 colspan=1>96.50</td></tr><tr><td></td><td rowspan=2 colspan=1>RedWhite</td><td rowspan=1 colspan=1>94.25</td><td rowspan=1 colspan=1>90.00</td><td rowspan=1 colspan=1>94.25</td><td rowspan=1 colspan=1>96.75</td><td rowspan=3 colspan=1>91.2595.7596.00</td></tr><tr><td></td><td rowspan=1 colspan=1>99.00</td><td rowspan=1 colspan=1>96.00</td><td rowspan=1 colspan=1>95.75</td><td rowspan=1 colspan=1>97.25</td></tr><tr><td></td><td rowspan=2 colspan=1>GrayYellow</td><td rowspan=2 colspan=1>93.5098.75</td><td rowspan=1 colspan=1>91.00</td><td rowspan=1 colspan=1>94.75</td><td rowspan=1 colspan=1>91.50</td></tr><tr><td></td><td rowspan=1 colspan=1>94.75</td><td rowspan=1 colspan=1>95.75</td><td rowspan=1 colspan=1>92.00</td><td rowspan=1 colspan=1>91.50</td></tr><tr><td></td><td rowspan=1 colspan=1>Green</td><td rowspan=1 colspan=1>95.00</td><td rowspan=1 colspan=1>95.00</td><td rowspan=1 colspan=1>95.00</td><td rowspan=1 colspan=1>95.00</td><td rowspan=1 colspan=1>94.50</td></tr><tr><td rowspan=2 colspan=2>CyanMagenta</td><td rowspan=1 colspan=1>Cyan</td><td rowspan=1 colspan=1>92.00</td><td rowspan=1 colspan=1>95.00</td><td rowspan=1 colspan=1>97.50</td><td rowspan=1 colspan=1>95.00</td></tr><tr><td rowspan=1 colspan=1>95.25</td><td rowspan=1 colspan=1>96.00</td><td rowspan=1 colspan=1>97.00</td><td rowspan=1 colspan=1>96.00</td><td rowspan=1 colspan=1>95.75</td></tr></table>",
1681
+ "bbox": [
1682
+ 287,
1683
+ 373,
1684
+ 707,
1685
+ 491
1686
+ ],
1687
+ "page_idx": 17
1688
+ },
1689
+ {
1690
+ "type": "text",
1691
+ "text": "In the same manner as Appendix F, we conducted a separate test with the agents from round 19, 980 to assess the communication accuracy for each object type. The agents were given 1, 600 total object pairs $( 4 0 \\times 4 0 )$ . Each object pair was tested 10 times, where after 5 times the agents switched speaker/listener roles. The average accuracy was $9 4 . 7 3 \\%$ , and 103 out of 1, 600 object pairs were communicated with accuracy lower than 0.8. ",
1692
+ "bbox": [
1693
+ 174,
1694
+ 547,
1695
+ 825,
1696
+ 617
1697
+ ],
1698
+ "page_idx": 17
1699
+ },
1700
+ {
1701
+ "type": "text",
1702
+ "text": "Table 9 describes the accuracy when each object type was given the speaker. Shaded cells indicate objects not seen during the training. Here we can observe the same tendency as the one seen in Appendix F; the accuracy is higher for objects that are described with less overlapping messages. ",
1703
+ "bbox": [
1704
+ 174,
1705
+ 625,
1706
+ 825,
1707
+ 666
1708
+ ],
1709
+ "page_idx": 17
1710
+ },
1711
+ {
1712
+ "type": "text",
1713
+ "text": "K AN EXAMPLE OF USING NEGATION TO PASS A ZERO-SHOT TEST",
1714
+ "text_level": 1,
1715
+ "bbox": [
1716
+ 176,
1717
+ 688,
1718
+ 733,
1719
+ 703
1720
+ ],
1721
+ "page_idx": 17
1722
+ },
1723
+ {
1724
+ "type": "text",
1725
+ "text": "Lets assume agent0 is aware of red circle, blue square and green triangle. If agent0 came upon a blue circle for the first time and had to describe it to agent1, the efficient way would be to say blue circle. But it could also say blue not square not triangle. If agent1 had a similar knowledge as agent0 did, then both agents would have a successful communication. However, it is debatable whether saying blue not square not triangle is as compositional as blue circle. ",
1726
+ "bbox": [
1727
+ 174,
1728
+ 718,
1729
+ 826,
1730
+ 787
1731
+ ],
1732
+ "page_idx": 17
1733
+ }
1734
+ ]
parse/train/rknt2Be0-/rknt2Be0-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rknt2Be0-/rknt2Be0-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
vlm/dev/17RDXeF-skZ/0.png ADDED

Git LFS Details

  • SHA256: 5d99f4907c4c9ad3e576fbe13e88a7bceb46dc4156e346806fe2eea75b21b40a
  • Pointer size: 131 Bytes
  • Size of remote file: 494 kB
vlm/dev/17RDXeF-skZ/1.png ADDED

Git LFS Details

  • SHA256: af4a03da330f60539783326d446485ef2d89765409c5b09d32ec31548d363283
  • Pointer size: 131 Bytes
  • Size of remote file: 603 kB
vlm/dev/17RDXeF-skZ/10.png ADDED

Git LFS Details

  • SHA256: f52c470c7e2918cd591517a6bf847b8280b4af5b1823736af9f16822f2a64b46
  • Pointer size: 131 Bytes
  • Size of remote file: 542 kB
vlm/dev/17RDXeF-skZ/11.png ADDED

Git LFS Details

  • SHA256: 661f8c60580dfa7dae81b45ef88eb8131188a845d500508a49c8b75205276e07
  • Pointer size: 131 Bytes
  • Size of remote file: 540 kB
vlm/dev/17RDXeF-skZ/12.png ADDED

Git LFS Details

  • SHA256: 771067dadc0ba3cc7abd6a4f476e7ff50d1688f2a4fbd92d85f934fe3623da79
  • Pointer size: 131 Bytes
  • Size of remote file: 622 kB
vlm/dev/17RDXeF-skZ/13.png ADDED

Git LFS Details

  • SHA256: c00c69c6b0f1b6e2596e6aa7af890b45163d58a61edd862114562caa80765f4b
  • Pointer size: 131 Bytes
  • Size of remote file: 191 kB
vlm/dev/17RDXeF-skZ/2.png ADDED

Git LFS Details

  • SHA256: 2799efe986d3b0e1daacf37e5fbb4d02d4b08946a8f89c5b3228067fa5184831
  • Pointer size: 131 Bytes
  • Size of remote file: 500 kB
vlm/dev/17RDXeF-skZ/3.png ADDED

Git LFS Details

  • SHA256: 0fc6d83492b2da1688cb7752378be7d2aa091ae6717d2d334c82b2290195d034
  • Pointer size: 131 Bytes
  • Size of remote file: 547 kB
vlm/dev/17RDXeF-skZ/4.png ADDED

Git LFS Details

  • SHA256: e9934f799afbe9b91209b3d04a9b67744f9ef4eda14b87ebab99f7f88ded6a9d
  • Pointer size: 131 Bytes
  • Size of remote file: 492 kB
vlm/dev/17RDXeF-skZ/5.png ADDED

Git LFS Details

  • SHA256: 6751282fdbc33c2ee89a9d363b12dd87b6553b9798ff3e3686fca39752a45a45
  • Pointer size: 131 Bytes
  • Size of remote file: 628 kB
vlm/dev/17RDXeF-skZ/6.png ADDED

Git LFS Details

  • SHA256: 6a2c144a027c505d2010907e3e868241414cd03d7594d4b1bf1a5bfad237e96b
  • Pointer size: 131 Bytes
  • Size of remote file: 492 kB
vlm/dev/17RDXeF-skZ/7.png ADDED

Git LFS Details

  • SHA256: 2d9643f6b7eebb0454280ca8f2829d9f1a094da4f06d93629197b23dcdfb8bf6
  • Pointer size: 131 Bytes
  • Size of remote file: 476 kB
vlm/dev/17RDXeF-skZ/8.png ADDED

Git LFS Details

  • SHA256: 974bbbd1abb8b690a95cc367963501e377214afb45f33d73072b2ea0be9d4c95
  • Pointer size: 131 Bytes
  • Size of remote file: 481 kB
vlm/dev/17RDXeF-skZ/9.png ADDED

Git LFS Details

  • SHA256: dad1d598ad7f765f6e665d4714a9fc893bb49d910ccb931e3f7c23ffb6fd11eb
  • Pointer size: 131 Bytes
  • Size of remote file: 462 kB
vlm/dev/5Xc1ecxO1h/0.png ADDED

Git LFS Details

  • SHA256: 73df55eac03b67460579d7e7616a8dc39c799d4d07add7bff96965c7445b14ac
  • Pointer size: 131 Bytes
  • Size of remote file: 446 kB
vlm/dev/5Xc1ecxO1h/1.png ADDED

Git LFS Details

  • SHA256: 2ef98911d61867e72cb94e1a83922331f1c7fd58d76fbc86bbdac3a5553aa883
  • Pointer size: 131 Bytes
  • Size of remote file: 512 kB
vlm/dev/5Xc1ecxO1h/10.png ADDED

Git LFS Details

  • SHA256: 93b42e4865e696e06f9adfd64601a1a898c74139acb6780e15cd9e8d391df9f6
  • Pointer size: 131 Bytes
  • Size of remote file: 500 kB
vlm/dev/5Xc1ecxO1h/11.png ADDED

Git LFS Details

  • SHA256: 76308489f1056d2874e0aa6b8591005700d41ca82fa52b22d1a0f5aaa2f27964
  • Pointer size: 131 Bytes
  • Size of remote file: 311 kB
vlm/dev/5Xc1ecxO1h/12.png ADDED

Git LFS Details

  • SHA256: ed1565afeef1163df59c44b7aa80d5e61aa74a8f346d99d61af5860aa56332ea
  • Pointer size: 131 Bytes
  • Size of remote file: 363 kB
vlm/dev/5Xc1ecxO1h/13.png ADDED

Git LFS Details

  • SHA256: 8960cc734b28775137a615793e63dab1341c785ae0c499ef8c87be40d5dd57af
  • Pointer size: 131 Bytes
  • Size of remote file: 478 kB
vlm/dev/5Xc1ecxO1h/2.png ADDED

Git LFS Details

  • SHA256: 8d97c7bcc726459d71e27aa351f6c91a56317bc4a54e9516e8992ff1387eb211
  • Pointer size: 131 Bytes
  • Size of remote file: 646 kB
vlm/dev/5Xc1ecxO1h/3.png ADDED

Git LFS Details

  • SHA256: 7cb26548583ea7c74dc939ee4662ac313ecf324c57c0070684ecff6a6525bc90
  • Pointer size: 131 Bytes
  • Size of remote file: 608 kB
vlm/dev/5Xc1ecxO1h/4.png ADDED

Git LFS Details

  • SHA256: 419441833669c3b90c4b66708e4ed8d0b5b71d0beac737e5cfcb732058ebe980
  • Pointer size: 131 Bytes
  • Size of remote file: 525 kB
vlm/dev/5Xc1ecxO1h/5.png ADDED

Git LFS Details

  • SHA256: f9d51dd076a9c5dc0a35169e257d90cc583d75e67259e13543b40d370ea51ba0
  • Pointer size: 131 Bytes
  • Size of remote file: 578 kB
vlm/dev/5Xc1ecxO1h/6.png ADDED

Git LFS Details

  • SHA256: a0e340202b3d5b71141e3674761743c4706f063d9813314cd2083872b32b2050
  • Pointer size: 131 Bytes
  • Size of remote file: 554 kB
vlm/dev/5Xc1ecxO1h/7.png ADDED

Git LFS Details

  • SHA256: c6b0c6ed4c78eb405485dbbdbc981bd04e8ed3aff7867dfc9202482cd504e257
  • Pointer size: 131 Bytes
  • Size of remote file: 553 kB
vlm/dev/5Xc1ecxO1h/8.png ADDED

Git LFS Details

  • SHA256: 3651affc363f46308fd760a022bff0bc8fdf330e784784964ca33b7cc51ba514
  • Pointer size: 131 Bytes
  • Size of remote file: 587 kB
vlm/dev/5Xc1ecxO1h/9.png ADDED

Git LFS Details

  • SHA256: a106d566482a6997af6d68885d1d2ea93ba9c70595d87081f4b070031365c9c3
  • Pointer size: 131 Bytes
  • Size of remote file: 494 kB
vlm/dev/6Dz7RiRiMFd/0.png ADDED

Git LFS Details

  • SHA256: 147e2e5397bcdc57a8eef34a703565ea8d6ab6deb8b8a03785f998de9c07049d
  • Pointer size: 131 Bytes
  • Size of remote file: 488 kB
vlm/dev/6Dz7RiRiMFd/1.png ADDED

Git LFS Details

  • SHA256: 4f72d917b06ef4999a9db5656aed496352f2be8342b17808ad56998075e24564
  • Pointer size: 131 Bytes
  • Size of remote file: 543 kB