ZHANGYUXUAN-zR commited on
Commit
e09c1b9
·
verified ·
1 Parent(s): 8f116bc

Add files using upload-large-folder tool

Browse files
parse/train/B1xtd1HtPS/B1xtd1HtPS.md ADDED
@@ -0,0 +1,536 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # QUATERNION EQUIVARIANT CAPSULE NETWORKS FOR 3D POINT CLOUDS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ We present a 3D capsule architecture for processing of point clouds that is equivariant with respect to the $S O ( 3 )$ rotation group, translation and permutation of the unordered input sets. The network operates on a sparse set of local reference frames, computed from an input point cloud and establishes end-to-end equivariance through a novel 3D quaternion group capsule layer, including an equivariant dynamic routing procedure. The capsule layer enables us to disentangle geometry from pose, paving the way for more informative descriptions and a structured latent space. In the process, we theoretically connect the process of dynamic routing between capsules to the well-known Weiszfeld algorithm, a scheme for solving iterative re-weighted least squares (IRLS) problems with provable convergence properties, enabling robust pose estimation between capsule layers. Due to the sparse equivariant quaternion capsules, our architecture allows joint object classification and orientation estimation, which we validate empirically on common benchmark datasets.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ It is now well understood that in order to learn a compact representation of the input data, one needs to respect the symmetries in the problem domain (Cohen et al., 2019; Weiler et al., 2018a). Arguably, one of the primary reasons of the success of 2D convolutional neural networks (CNN) is the translation-invariance of the 2D convolution acting on the image grid (Giles & Maxwell, 1987; Kondor et al., 2018). Recent trends aim to transfer this success into the 3D domain in order to support many applications such as shape retrieval, shape manipulation, pose estimation, 3D object modeling and detection. There, the data is naturally represented as sets of 3D points or a point cloud (Qi et al., 2017a;b). Unfortunately, extension of CNN architectures to 3D point clouds is non-trivial due to two reasons: 1) point clouds are irregular and unstructured, 2) the group of transformations that we are interested in is more complex as 3D data is often observed under arbitrary non-commutative $S O ( 3 )$ rotations. As a result, achieving appropriate embeddings requires 3D networks that work on points to be equivariant to these transformations, while also being invariant to the permutations of the point set.
12
+
13
+ In order to fill this important gap, we propose the quaternion equivariant point capsule network or QE-Network that is suited to process point clouds and is equivariant to $S O ( 3 )$ rotations compactly parameterized by quaternions (Fig. 2), in addition to preserved translation and permutation equivariance. Inspired by the local group equivariance (Lenssen et al., 2018; Cohen et al., 2019), we efficiently cover $S \bar { O } ( 3 )$ by restricting ourselves to the sparse set of local reference frames (LRF) that collectively characterize the object orientation. The proposed capsule layers (Hinton et al., 2011) deduces equivariant latent representations by robustly combining those local LRFs using the proposed Weiszfeld dynamic routing. Hence, our latent features specify to local orientations disentangling the pose from object existence. Such explicit storage is unique to our work and allows us to perform rotation estimation jointly with object classification. Our final architecture is a hierarchy of QE-networks, where we use classification error as the only training cue and adapt a Siamese version when the relative rotation is to be regressed. We neither explicitly supervise the network with pose annotations nor train by augmenting rotations. Overall, our contributions are:
14
+
15
+ 1. We propose a novel, fully $S O ( 3 )$ -equivariant capsule architecture that is tailored for simultaneous classification and pose estimation of 3D point clouds. This network produces in
16
+
17
+ ![](images/b89e6e4028568e0d7b589204570db788708ec16213169b719e811cabba66f1ba.jpg)
18
+ Figure 1: Our network operates by processing local reference frames (LRF) on the object. Initial LRFs (b) are obtained by computing normal & tangent vectors on the point set in (a). (c) shows the LRFs randomly sampled from (a) and these are inputs to the first layer of our network. Subsequently, we obtain a multi-channel LRF that is a set of reference frames per pooling center (d). Holistically, our network aggregates the LRFs to arrive at rotation equivariant capsules.
19
+
20
+ variant latent representations while explicitly decoupling the orientation into capsules, thus attaining equivariance. Note that equivariance results have not been previously achieved regarding the quaternion parameterization of the 3D special orthogonal group.
21
+ 2. By utilizing LRFs on points, we reduce the space of orientations that we consider and hence can work sparsely on a subset of the group elements.
22
+ 3. We theoretically prove the equivariance properties of our 3D network regarding the quaternion group. Moreover, to the best of our knowledge, we for the first time establish a connection between the dynamic routing of Sabour et al. (2017) and Generalized Weiszfeld iterations (Aftab et al., 2015). By that, we theoretically argue for the convergence of the employed dynamic routing.
23
+ 4. We experimentally demonstrate the capabilities of our network on classification and orientation estimation of 3D shapes.
24
+
25
+ # 2 PRELIMINARIES AND TECHNICAL BACKGROUND
26
+
27
+ In this paper we will speak of the equivariance of point clouds under the actions of quaternions. We now provide the necessary background required for the grasp of this content.
28
+
29
+ # 2.1 EQUIVARIANCE
30
+
31
+ Definition 1 (Equivariant Map). For a $\mathcal { G }$ -space acting on $\mathcal { X }$ , the map $\Phi : \mathcal { G } \times \mathcal { X } \mapsto \mathcal { X }$ is said to be equivariant $i f$ its domain and co-domain are acted on by the same symmetry group (Cohen & Welling, 2016; Cohen et al., 2018a):
32
+
33
+ $$
34
+ \Phi ( \mathbf { g } _ { 1 } \circ \mathbf { x } ) = \mathbf { g } _ { 2 } \circ \Phi ( \mathbf { x } )
35
+ $$
36
+
37
+ where ${ \bf g } _ { 1 } ~ \in ~ \mathcal { G }$ and ${ \bf g } _ { 2 } ~ \in ~ \mathcal { G }$ . Equivalently $\Phi ( T ( \bf { g } _ { 1 } ) \bf { x } ) = \Psi { T } ( \bf { g } _ { 2 } ) \Phi ( \bf { x } )$ , where $T ( \cdot )$ is a linear representation of the group $\mathcal { G }$ . Note that $T ( \cdot )$ does not have to commute. It suffices for $T ( \cdot )$ to be a homomorphism: $T ( \mathbf { g } _ { 1 } \circ \mathbf { g } _ { 2 } ) = T ( \mathbf { g } _ { 1 } ) \circ T ( \mathbf { g } _ { 2 } )$ . In this paper we use a stricter form of equivariance and consider $\mathbf { g } _ { 2 } = \mathbf { g } _ { 1 }$ .
38
+
39
+ Definition 2 (Equivariant Network). An architecture or network is said to be equivariant if all of its layers are equivariant maps. Due to the transitivity of the equivariance, stacking up equivariant layers will result in globally equivariant networks e.g., rotating the input will produce output vectors which are transformed by the same rotation (Lenssen et al., 2018; Kondor & Trivedi, 2018).
40
+
41
+ # 2.2 THE QUATERNION GROUP $\mathbb { H } _ { 1 }$
42
+
43
+ The choice of 4-vector quaternions has multiple motivations: 1. All 3-vector formulations suffer from infinitely many singularities as angle goes to 0, whereas quaternions avoid those. 2. 3-vectors also suffer from infinitely many redundancies (the norm can grow indefinitely). Quaternions have a single redundancy: $q = - q$ , a condition that is in practice easy to enforce. 3. Computing the actual ‘manifold mean’ on the Lie algebra requires iterative techniques with subsequent updates on the tangent space. Such iterations are computationally harmful for a differentiable GPU implementation.
44
+
45
+ Definition 3 (Quaternion). $A$ quaternion q is an element of Hamilton algebra $\mathbb { H } _ { 1 }$ , extending the complex numbers with three imaginary units $i , j , k$ in the form: ${ \bf q } = q _ { 1 } { \bf { 1 } } + q _ { 2 } \pmb { i } + q _ { 3 } { \pmb { j } } + q _ { 4 } { \pmb { k } } =$
46
+
47
+ # Algorithm 1: Quaternion Equivariant Dynamic Routing
48
+
49
+ 1 input : Input points $\{ { \bf x } _ { 1 } , . . . , { \bf x } _ { K } \} \in \mathbb { R } ^ { K \times 3 }$ , input capsules (LRFs) $\mathcal { Q } = \left\{ \mathbf { q } _ { 1 } , \dots , \mathbf { q } _ { L } \right\} \in \mathbb { H } _ { 1 } ^ { L }$ ,
50
+ with $L = N ^ { c } \cdot K$ , $N ^ { c }$ is the number of capsules per point, activations ${ \pmb { \alpha } } = ( \alpha _ { 1 } , \ldots , \alpha _ { L } ) ^ { T }$ ,
51
+ trainable transformations $\mathcal { T } = \{ \mathbf { t } _ { i , j } \} _ { i , j } \in \mathbb { H } _ { 1 } ^ { L \times M }$
52
+ 2 output: Updated frames $\hat { \mathcal { Q } } = \{ \hat { \mathbf { q } } _ { 1 } , \hdots , \hat { \mathbf { q } } _ { M } \} \in \mathbb { H } _ { 1 } ^ { M }$ , updated activations $\hat { \pmb { \alpha } } = ( \hat { \alpha } _ { 1 } , \dots , \hat { \alpha } _ { M } ) ^ { T }$
53
+ 3 for All primary (input) capsules $i$ do
54
+ 4 for All latent (output) capsules $j$ do
55
+ 5 $\mathbf { v } _ { i , j } \mathbf { q } _ { i } \circ \mathbf { t } _ { i , j }$ // compute votes
56
+ 6 for All latent (output) capsules $j$ do
57
+ 7 $\hat { \mathbf { q } } _ { j } A \big ( \{ \mathbf { v } _ { 1 , j } \dots \mathbf { v } _ { K , j } \} , \alpha \big ) \quad / \mathrm { ~ }$ initialize output capsules
58
+ 8 for $k$ iterations do
59
+ 9 for All primary (input) capsules $i$ do
60
+ 10 $w _ { i , j } \alpha _ { i }$ · sigmoid $\big ( - \delta ( \hat { \mathbf { q } } _ { j } , \mathbf { v } _ { i , j } ) \big )$ // compute the current weight
61
+ 11 L $\hat { \mathbf { q } } _ { j } A \big ( \{ \mathbf { v } _ { 1 , j } \ : . . . \mathbf { v } _ { L , j } \} , \mathbf { w } _ { : , j } \big ) \mathrm { ~ , ~ }$ / see Eq (4)
62
+ 12 $\hat { \alpha } _ { j } \gets \mathrm { s i g m o i d } \big ( - \frac { 1 } { K } \sum _ { 1 } ^ { L } \delta ( \hat { \mathbf { q } } _ { j } , \mathbf { v } _ { i , j } ) \big ) / /$ recompute activations
63
+
64
+ $\left( q _ { 1 } , q _ { 2 } , q _ { 3 } , q _ { 4 } \right) ^ { T }$ , with $\left( q _ { 1 } , q _ { 2 } , q _ { 3 } , q _ { 4 } \right) ^ { T } \in \mathbb { R } ^ { 4 }$ and $\pmb { i } ^ { 2 } = \pmb { j } ^ { 2 } = \pmb { k } ^ { 2 } = i \pmb { j } \pmb { k } = - \pmb { I }$ . $q _ { 1 } \in \mathbb { R }$ denotes the scalar part and $\pmb { \nu } = \left( q _ { 2 } , q _ { 3 } , q _ { 4 } \right) ^ { T } \in \mathbb { R } ^ { 3 }$ , the vector part. The conjugate $\bar { \bf q }$ of the quaternion q is given by $\bar { \mathbf { q } } : = q _ { 1 } - q _ { 2 } \dot { \pmb { i } } - q _ { 3 } \pmb { j } - q _ { 4 } \pmb { k }$ . A unit quaternion $\mathbf { q } \in \mathbb { H } _ { 1 }$ with $1 \stackrel { \prime } { = } \| \mathbf { q } \| : = \mathbf { q } \cdot \bar { \mathbf { q } }$ and $\mathbf { q } ^ { - 1 } = \bar { \mathbf { q } } ,$ gives a compact and numerically stable parametrization to represent orientation of objects on the unit sphere $S ^ { 3 }$ , avoiding gimbal lock and singularities (Busam et al., 2017). Identifying antipodal points $\mathbf { q }$ and $- \mathbf { q }$ with the same element, the unit quaternions form a double covering group of $S O \left( 3 \right)$ . $\mathbb { H } _ { 1 }$ is closed under the non-commutative multiplication or the Hamilton product:
65
+
66
+ $$
67
+ ( \mathbf { p } \in \mathbb { H } _ { 1 } ) \circ ( \pmb { r } \in \mathbb { H } _ { 1 } ) = [ p _ { 1 } r _ { 1 } - \mathbf { v } _ { p } \cdot \mathbf { v } _ { r } ; p _ { 1 } \mathbf { v } _ { r } + r _ { 1 } \mathbf { v } _ { p } + \mathbf { v } _ { p } \times \mathbf { v } _ { r } ] .
68
+ $$
69
+
70
+ Definition 4 (Linear Representation of $\mathbb { H } _ { 1 }$ ). We follow Birdal et al. (2018) and use the
71
+
72
+ $$
73
+ \begin{array} { r } { \mathbf { T } ( \mathbf { q } ) \triangleq \left[ \begin{array} { r r r r } { q _ { 1 } } & { - q _ { 2 } } & { - q _ { 3 } } & { - q _ { 4 } } \\ { q _ { 2 } } & { q _ { 1 } } & { - q _ { 4 } } & { q _ { 3 } } \\ { q _ { 3 } } & { q _ { 4 } } & { q _ { 1 } } & { - q _ { 2 } } \\ { q _ { 4 } } & { - q _ { 3 } } & { q _ { 2 } } & { q _ { 1 } } \end{array} \right] . } \end{array}
74
+ $$
75
+
76
+ To be concise we will use capital letters to refer to the matrix representation of quaternions $e . g . \mathbf { Q } \equiv$ $T ( \mathbf { q } )$ , $\mathbf { G } \equiv T ( \mathbf { g } )$ . Note that $T ( \cdot )$ , the injective homomorphism to the orthonormal matrix ring, by construction satisfies the condition in Dfn. 1 (Steenrod, 1951): $\operatorname* { d e t } ( \mathbf { Q } ) = 1 , \mathbf { Q } ^ { \intercal } = \mathbf { Q } ^ { - 1 } , \| \tilde { \mathbf { Q } } \| \overset { \cdot } { = }$ $\lVert \mathbf { Q } _ { i , : } \rVert = \lVert \mathbf { Q } _ { : , i } \rVert \stackrel { - } { = } 1$ and $\mathbf { Q } - q _ { 1 } \mathbf { I }$ is skew symmetric: $\mathbf { Q } + \mathbf { Q } ^ { \top } = 2 q _ { 1 } \mathbf { I } .$ . It is easy to verify these properties. $T$ linearizes the Hamilton product or the group composition: $\mathbf { g } \circ \mathbf { q } \triangleq T ( \mathbf { g } ) \mathbf { q } \triangleq \mathbf { G q }$ .
77
+
78
+ # 2.3 3D POINT CLOUDS
79
+
80
+ Definition 5 (Point Cloud). We define a $3 D$ surface to be a differentiable 2-manifold embedded in the ambient $3 D$ Euclidean space: $\mathcal { M } ^ { 2 } \in \mathbb { R } ^ { 3 }$ and a point cloud to be a discrete subset sampled on $\mathcal { M } ^ { 2 }$ : $\mathbf { X } \in \{ \mathbf { x } _ { i } \in \mathcal { M } ^ { 2 } \cap \mathbb { R } ^ { 3 } \}$ .
81
+
82
+ Definition 6 (Local Geometry). For a smooth point cloud $\{ \mathbf { x } _ { i } \} \in \mathcal { M } ^ { 2 } \subset \mathbb { R } ^ { N \times 3 }$ , $a$ local reference frame (LRF) is defined as an ordered basis of the tangent space at x, $\mathcal { T } _ { \mathbf { x } } \mathcal { M }$ , consisting of orthonormal vectors: $\mathcal { L } ( \mathbf { x } ) = [ \partial _ { 1 } , \partial _ { 2 } , \partial _ { 3 } \equiv \partial _ { 1 } \times \partial _ { 2 } ]$ ]. Usually the first component is defined to be the surface normal $\pmb { \partial } _ { 1 } \triangleq \mathbf { n } \in \mathcal { S } ^ { 2 } : \| \mathbf { n } \| = 1$ and the second one is picked according to a modality dependent heuristic.
83
+
84
+ Note that recent trends such as (Cohen et al., 2019) acknowledge the ambiguity and either employ a gauge (tangent frame) equivariant design or propagate the determination of a certain direction until the last layer (Poulenard & Ovsjanikov, 2018). Here, we will assume that $\partial _ { 2 }$ can be uniquely and repeatably computed, a reasonable assumption for the point sets we consider (Petrelli & Di Stefano, 2011). For the cases where this does not hold, we will rely on the network’s robustness. We will explain our method of choice in Sec. 4 and visualize LRFs of an airplane object in Fig. 1.
85
+
86
+ ![](images/d2d1f0c3fa686d3b7e437e6a2d3e75627b94d94bfcc44d94a9ea0ba1f0891666.jpg)
87
+ Figure 2: Our quaternion equivariant (QE) network for processing local patches: Our input is a 3D point set $\mathbf { X }$ on which we query local neighborhoods $\{ \mathbf { x } _ { i } \}$ with precomputed LRFs $\left\{ \mathbf { q } _ { i } \right\}$ . Essentially, we learn the parameters of a fully connected network that continuously maps the canonicalized local point set to transformations $\mathbf { t } _ { i }$ , which are used to compute hypotheses (votes) from input poses. By a special dynamic routing procedure that uses the activations determined in a previous layer, we arrive at latent capsules that are composed of a set of orientations $\hat { \mathbf { q } } _ { i }$ and new activations $\hat { \pmb { \alpha } } _ { i }$ . Thanks to the decoupling of local reference frames, $\hat { \pmb { \alpha } } _ { i }$ is invariant and orientations $\hat { \mathbf { q } } _ { i }$ are equivariant to input rotations. All the operations and hence the entire QE-network are equivariant achieving a guaranteed disentanglement of the rotation parameters. Hat symbol (qˆ) refers to ’estimated’.
88
+
89
+ # 3 $S O ( 3 )$ -EQUIVARIANT 3D CAPSULE NETWORKS
90
+
91
+ Disentangling orientation from representations requires guaranteed equivariances and invariances. Yet, the original capsule networks of Sabour et al. (2017) cannot achieve equivariance to general groups. To this end, Lenssen et al. (2018) proposed to use a manifold-mean and a special aggregation that makes sure that the trainable transformations get pose-aligned points as input. We will extend this idea to the non-abelian $S O ( 3 )$ and design capsule networks sparsely operating on a set of LRFs computed on local neighborhoods of points, parameterized by quaternions. In the following, we first explain our novel capusle layers, the main building block of our architecture. We then show how to stack those layers via a simple aggregation resulting in an $S O ( 3 )$ -equivariant 3D capsule network that yields invariant representations (or activations) as well as equivariant rotations (latent capsules).
92
+
93
+ # 3.1 QUATERNION EQUIVARIANT CAPSULE LAYERS
94
+
95
+ To construct equivariant layers on the group of rotations, we are required to define a left-equivariant averaging operator $\mathcal { A }$ that is invariant under permutations of the group elements, as well as a distance metric $\delta$ that remains unchanged under the action of the group. For these, we make the following choices:
96
+
97
+ Definition 7 (Geodesic Distance). The Riemannian (geodesic) distance in the manifold of rotations lead to the following geodesic distance $\delta ( \cdot ) \equiv d _ { q u a t } ( \cdot )$ :
98
+
99
+ $$
100
+ d ( { \bf q } _ { 1 } , { \bf q } _ { 2 } ) \equiv d _ { q u a t } ( { \bf q } _ { 1 } , { \bf q } _ { 2 } ) = 2 \cos ^ { - 1 } ( | \langle { \bf q } _ { 1 } , { \bf q } _ { 2 } \rangle | )
101
+ $$
102
+
103
+ Definition 8 (Quaternion Mean $\pmb { \mu } ( \cdot ) .$ ). For a set of $Q$ rotations ${ \bf S } = \{ { \bf q } _ { i } \}$ and associated weights $\textbf { w } = \{ w _ { i } \}$ , the weighted mean operator $\mathcal { A } ( \mathbf { S } , \mathbf { w } ) : \mathbb { H } _ { 1 } { } ^ { n } \times \mathbb { R } ^ { n } \mapsto \mathbb { H } _ { 1 } { } ^ { n }$ is defined through the following maximization procedure (Markley et al., 2007):
104
+
105
+ $$
106
+ \bar { \mathbf { q } } = \underset { \mathbf { q } \in \mathbb { S } ^ { 3 } } { \arg \operatorname* { m a x } } \mathbf { q } ^ { \top } \mathbf { M } \mathbf { q }
107
+ $$
108
+
109
+ where $ { \mathbf { M } } \in \mathbb { R } ^ { 4 \times 4 }$ is defined as: $\mathbf { M } \triangleq \sum _ { i = 1 } ^ { Q } w _ { i } \mathbf { q } _ { i } \mathbf { q } _ { i } ^ { \intercal }$ . The average quaternion is the eigenvector of M corresponding to the maximum eigenvalue. This operation lends itself to both analytic (Magnus, 1985) and automatic differentiation (Laue et al., 2018).
110
+
111
+ Theorem 1. Quaternions, the employed mean $\mathbf { \nabla } _ { \mathbf { \mathcal { A } } ( \mathbf { S } , \mathbf { w } ) }$ and geodesic distance $\delta ( \cdot )$ enjoy the following properties:
112
+
113
+ ![](images/df28604b52dac726104b4b42cf496aa21f248230f1da47e6f8ca03184a76b7a5.jpg)
114
+ Figure 3: Our entire capsule architecture. We hierarchically send all the local patches to our Qnetwork as shown in Fig. 2. At each level the points are pooled in order to increase the receptive field, gradually reducing the LRFs into a single capsule per class. We use classification and pose estimation (in the siamese case) as supervision cues to train the point-to-transform maps.
115
+
116
+ 1. $\mathcal { A } ( \mathbf { g } \circ \mathbf { S } , \mathbf { w } )$ is left-equivariant: $\mathcal { A } ( \mathbf { g } \circ \mathbf { S } , \mathbf { w } ) = \mathbf { g } \circ \mathcal { A } ( \mathbf { S } , \mathbf { w } )$ .
117
+ 2. Operator $\mathcal { A }$ is invariant under permutations: $\begin{array} { r l } { \mathcal { A } ( \{ \mathbf { q } _ { \sigma ( 1 ) } , \dots , \mathbf { q } _ { \sigma ( Q ) } \} , \mathbf { w } _ { \sigma } ) } & { { } = } \end{array}$ $\mathcal { A } ( \{ \mathbf { q } _ { 1 } , \hdots , \mathbf { q } _ { Q } \} , \mathbf { w } )$ .
118
+ 3. The transformations $\mathbf { g } \in \mathbb { H } _ { 1 }$ preserve the geodesic distance $\delta ( \cdot )$ given in Dfn. 7.
119
+
120
+ Proof. The proofs are given in the supplementary material.
121
+
122
+ We also note that the above mean is closed form, differentiable and can be implemented batchwise. We are now ready to construct the group dynamic routing (DR) by agreement that is equivariant thanks to Thm. 1. The core idea is to route from or assign the primary capsules that constitute the input LRF set, to the latent capsules by an iterative clustering which respects the group structure. At each step, we assign the weighted group mean to each output capsule. The weights $w \sigma ( \mathbf x , \mathbf y )$ are inversely propotional to the distance between the vote quaternion and the new quaternion (cluster center). See Alg. 1 for details. In the following, we analyze our variant of routing as an interesting case of the affine, Riemannian Weiszfeld algorithm (Aftab et al., 2015; 2014).
123
+
124
+ Lemma 1. For $\sigma ( { \bf x } , { \bf y } ) = \delta ( { \bf x } , { \bf y } ) ^ { q - 2 }$ the equivariant routing procedure given in Alg. 1 is a variant of the affine subspace Wieszfeld algorithm (Aftab et al., 2015; 2014) that is a robust algorithm for computing the $L _ { q }$ geometric median.
125
+
126
+ Proof Sketch. The proof follows from the definition of Weiszfeld iteration (Aftab et al., 2014) and the mean and distance operators defined in Sec. 3.1. We first show that computing the weighted mean is equivalent to solving the normal equations in the iteratively reweighted least squares (IRLS) scheme (Burrus, 2012). Then, the inner-most loop correspond to the IRLS or Weiszfeld iterations. We provide the detailed proof in supplementary material.
127
+
128
+ Note that, in practice one is quite free to choose the weighting function $\sigma ( \cdot )$ as long as it is inversely proportional to the geodesic distance and concave (Aftab & Hartley, 2015). We leave the analyses of the variants of these algorithms as a future work. The original dynamic routing can also be formulated as a clustering procedure with a KL divergence regularization. This holistic view paves the way to better routing algorithms (Wang & Liu, 2018). Our perspective is akin yet more geometric due to the group structure of the parameter space. Thanks to the connection to Weiszfeld algorithm, the convergence behavior of our dynamic routing can be directly analyzed within the theoretical framework presented by Aftab et al. (2014; 2015).
129
+
130
+ Theorem 2. Under mild assumptions provided in the appendix, the sequence of the DR-iterates generated by the inner-most loop almost surely converges to a critical point.
131
+
132
+ Proof Sketch. Proof, given in the appendix, is a direct consequence of Lemma 1 and directly exploits the connection to the Weiszfeld algorithm. □
133
+
134
+ # 3.2 EQUIVARIANT 3D POINT CAPSULE NETWORK ARCHITECTURE
135
+
136
+ The essential ingredient of our architecture, QE-Network, is shown in Fig. 2. We also provide a corresponding pseudocode in Alg. 3 of suppl. material. The input of the QE-Network are a local patch of points with coordinates $\mathbf { x } _ { i } \subset \mathbb { R } ^ { K \times 3 }$ , rotations parametrized as quaternions $\mathbf { q } _ { i } \subset \mathbb { H } _ { 1 } { } ^ { K \times N ^ { c } }$ and activations $\pmb { \alpha } _ { i } \subset \mathbb { R } ^ { K \times N ^ { c } }$ . $\mathbf { q } _ { i }$ also represents input primary capsules and local reference frames. $N ^ { c }$ is the number of input capsule channels per point and it is equal to the number of output capsules $( M )$ from the last layer. In the initial layer, $\mathbf { q } _ { i }$ represents the pre-computed LRFs and $N ^ { c }$ is equal to 1. Given points $\mathbf { x } _ { i }$ and rotations $\mathbf { q } _ { i }$ , we compute the quaternion average $\mu _ { i }$ in channel-wise as the initial pose candidates: $\mu _ { i } \subset \mathbb { H } _ { 1 } ^ { N ^ { c } }$ . These candidates are used to bring the receptive field in multiple canonical orientations by rotating the points: $\mathbf { x } _ { i } ^ { \prime } = ( { \mu _ { i } } ^ { - 1 } \circ \mathbf { x } _ { i } ) \subset \mathbb { R } ^ { K \times N ^ { c } \times 3 }$ . Since the points in the local receptive field lie in continuous $\mathbb { R } ^ { 3 }$ , training a discrete set of pose transformations $\mathbf { t } _ { i , j }$ based on local coordinates is not possible. Instead, we employ a point-to-transform network $\begin{array} { r } { t ( \cdot ) : \bar { \mathbb { R } } ^ { N ^ { c } \times 3 } } \end{array}$ $\mathbb { R } ^ { M \times N ^ { c } \times 4 }$ that maps the point in multiple canonical orientations to transformations. The network is shared over all points to compute the transformations $\mathbf { t } _ { i , j } = ( t ( \mathbf { x } _ { 1 } ^ { \prime } ) , . . . , t ( \mathbf { x } _ { K } ^ { \prime } ) ) _ { i , j } \subset \mathbb { R } ^ { K \times M \times N ^ { c } \times 4 } ,$ , which are used to calculate the votes for dynamic routing as $\mathbf { v } _ { i , j } = \mathbf { q } _ { i } \circ \mathbf { t } _ { i , j }$ . The network $t ( \cdot )$ consists of fully-connected layers that regresses the transformations, similar to common operators for continuous convolutions (Schutt et al., 2017; Wang et al., 2018; Fey et al., 2018). It is the ¨ continuous alternative to directly optimizing transformations lying in a grid kernel, as it is done in the original dynamic routing by Sabour et al. (2017). Note that $t ( \cdot )$ predicts quaternions by unitnormalizing the regressed output: $\mathbf { t } _ { i , j } \subset \mathbb { H } _ { 1 } ^ { K \times M \times N ^ { c } }$ . Although Riemannian layers of Becigneul & ´ Ganea (2018) or spherical predictions of Liao et al. (2019) can improve the performance, the simple strategy works reasonably for our case. After computing the votes, we utilize the input activation $\alpha _ { i }$ to iteratively refine the output capsules (weighted average of votes) $\hat { \mathbf { q } _ { i } }$ and activations $\hat { \pmb { \alpha } } _ { i }$ by routing by agreement as shown in Alg. 1.
137
+
138
+ Table 1: Classification accuracy on ModelNet40 dataset (Wu et al., 2015) for different methods as well as ours. We also report the number of parameters optimized for each method. X/Y means that we train with X and test with Y.
139
+
140
+ <table><tr><td></td><td>PN</td><td>PN++</td><td>KD-treeNet Point2Seq Sph.CNNs 1</td><td></td><td></td><td>PRIN</td><td>PPF</td><td>Ours (Var.)</td><td>Ours</td></tr><tr><td>NR/NR</td><td></td><td>88.45 89.82</td><td>86.20</td><td>92.60</td><td>-</td><td>80.13</td><td>70.16</td><td>85.27</td><td>74.43</td></tr><tr><td>NR/AR</td><td>12.47</td><td>21.35</td><td>8.49</td><td>10.53</td><td>43.92</td><td>68.85</td><td>70.16</td><td>11.75</td><td>74.07</td></tr><tr><td># Params</td><td>3.5M</td><td>1.5M</td><td>3.6M</td><td>1.8M</td><td>0.5M</td><td>1.5M</td><td>3.5M</td><td>0.4M</td><td>0.4M</td></tr></table>
141
+
142
+ In order to gradually increase the receptive field, we stack QE-networks creating a deep hierarchy, pooling the points and the LRFs before each layer. Note that we are allowed to do so thanks to the properties of equivariance. In particular, we input $N \ : = \ : 6 4$ patches to our architecture that is composed of two QE-networks. We call the centers of these patches pooling centers. In the first layer, each of those centers is linked to their immediate vicinity leading to $K = 9$ -star local connectivity from which we compute the $6 4 \times 6 4 \times 4$ intermediary capsules. The input LRFs of the first layer are sampled from pre-calculated LRF-set and the input activation is set to 1. The LRFs in the second layer $l = 2$ are the output capsules of the first layer, $l = 1$ and are routed to the output capsules that are as many as the number of classes $C$ , $M _ { 2 } = C$ . The activation of the second layer is updated by the output of the first layer as well. This construction is shown in Fig. 3. Specifically, for $l = 1$ , we use $K \bar { = } 9 , N _ { l } { } ^ { c } = 1 , \dot { M _ { l } } = 6 4$ and for $l = 2$ , $K = 6 4 , N _ { l } { } ^ { c } = 6 4 , \bar { M _ { l } } = C \bar { = } 4 0$ . This way, in this last layer all the pooling centers act as a single patch $K = 6 4$ ). A single QE-network acts on this patch to create the final $C \times 4$ capsules and $C$ activations. More details are reported in Alg. 3 of the appendix.
143
+
144
+ # 4 EXPERIMENTAL EVALUATIONS
145
+
146
+ Implementation Details We implement our network in PyTorch and use the ADAM optimizer (Kingma & Ba, 2014) with a learning rate of 0.001. The point-transformation mapping network is implemented by two FC-layers composed of 64 hidden units. We set the initial activation of the input LRF to 1.0. In each layer, we use 3 iterations of DR. For classification we use the spread loss (Sabour et al., 2018) and the rotation loss is identical to $\delta ( \cdot )$ .
147
+
148
+ Surface normals are computed by local plane fits (Hoppe et al., 1992). We compute the second axis of the LRF, $\partial _ { 2 }$ , by FLARE (Petrelli $\&$ Di Stefano, 2012), that uses the normalized projection of the point within the periphery of the support showing the largest distance, onto the tangent plane of the center: $\begin{array} { r } { \partial _ { 2 } = \frac { \mathbf { \tilde { p } } _ { \mathrm { m a x } } - \mathbf { \tilde { p } } } { \Vert \mathbf { p } _ { \mathrm { m a x } } - \mathbf { p } \Vert } } \end{array}$ . Note that using other LRFs such as SHOT (Tombari et al., 2010) or the more modern GFrames of Melzi et al. (2019) is possible. We found FLARE to be sufficient for our experiments. Prior to all operations, we flip all the LRF quaternions such that they lie on the northern hemisphere : $\{ \mathbf { q } _ { i } \in \mathbb { S } ^ { \hat { 3 } } : q _ { i } ^ { w } > 0 \}$ .
149
+
150
+ Table 2: Error of rotation estimation in different categories of ModelNet10. Right side of the table denotes the objects with rotational symmetry, which we include for completeness. PCA-S refers to running PCA only on a resampled instance, while PCA-SR applies both rotations and resampling.
151
+
152
+ <table><tr><td>Method</td><td>Avg.</td><td>No_Sym</td><td> Chair Bed Sofa Toilet Monitor|Table Desk Dresser</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>NS</td><td>Bathtub</td></tr><tr><td>Mean LRF</td><td>0.41</td><td>0.35</td><td>0.32</td><td>0.36</td><td>0.34</td><td>0.41</td><td>0.34</td><td>0.45</td><td>0.60</td><td>0.50</td><td>0.46</td><td>0.32</td></tr><tr><td>PCA-S</td><td>0.40</td><td>0.42</td><td>0.60</td><td>0.53</td><td>0.46</td><td>0.32</td><td>0.12</td><td>0.47</td><td>0.23</td><td>0.33</td><td>0.43</td><td>0.55</td></tr><tr><td>PCA-SR</td><td>0.67</td><td>0.67</td><td>0.69</td><td>0.70</td><td>0.67</td><td>0.68</td><td>0.61</td><td>0.67</td><td>0.67</td><td>0.67</td><td>0.66</td><td>0.70</td></tr><tr><td>PointNetLK</td><td>0.37</td><td>0.38</td><td>0.43</td><td>0.31</td><td>0.40</td><td>0.40</td><td>0.31</td><td>0.40</td><td>0.33</td><td>0.39</td><td>0.38</td><td>0.34</td></tr><tr><td>IT-net</td><td>0.27</td><td>0.19</td><td>0.10</td><td>0.22</td><td>0.17</td><td>0.20</td><td>0.28</td><td>0.31</td><td>0.41</td><td>0.44</td><td>0.40</td><td>0.39</td></tr><tr><td>Ours</td><td>0.27</td><td>0.17</td><td>0.11</td><td>0.20</td><td>0.16</td><td>0.18</td><td>0.19</td><td>0.43</td><td>0.40</td><td>0.48</td><td>0.33</td><td>0.31</td></tr><tr><td>Ours (siamese)</td><td>0.20</td><td>0.09</td><td>0.08</td><td>0.10</td><td>0.08</td><td>0.11</td><td>0.08</td><td>0.40</td><td>0.35</td><td>0.34</td><td>0.32</td><td>0.30</td></tr></table>
153
+
154
+ 3D Shape Classification. We use ModelNet40 dataset of (Wu et al., 2015; Qi et al., 2017b) to assess our classification performance. Each shape is composed by $1 0 K$ points. We assign the LRFs to a subset of the uniformly sampled points, $N = 5 1 2$ (Birdal & Ilic, 2017). We train the networks without any rotation augmentation (NR) and put them to test under arbitrary $S O ( 3 )$ rotations (AR). Our results are shown in Tab. 1 along with that of PointNet (PN) (Qi et al., 2017a), PointNet++ $\mathrm { ( P N + + ) }$ (Qi et al., 2017a), KD-treeNet (Li et al., 2018a), Point2Seq (Liu et al., 2019b), Spherical CNNs (Esteves et al., 2018), PRIN (You et al., 2018) and PPF-FoldNet (PPF) (Deng et al., 2018a). We also present a version of our algorithm (Var) that avoids the canonicalization within the QEnetwork. This is a non-equivariant network that we still train without data augmentation. While this version gets comparable results to the state of the art for the NR/NR case, it cannot handle random $S O ( 3 )$ variations (AR). Note that PPF uses the point-pair-feature (Birdal & Ilic, 2015) encoding and hence creates invariant input representations. For the scenario of NR/AR, our equivariant version outperforms all the other methods, including equivariant spherical CNNs (Esteves et al., 2018) by a significant gap of at least $5 \%$ even when (Esteves et al., 2018) uses the mesh. The object rotational symmetries in this dataset are responsible for a significant portion of the errors we make. It is worth mentioning that we also trained TFNs (Thomas et al., 2018) for that task, but their memory demand made it infeasible to scale to this application.
155
+
156
+ Number of Parameters. Use of LRFs helps us to restrict the rotation group to certain elements and thus we can use networks with significantly less parameters (as low as $0 . 4 4 M$ ) compared to others as shown in Tab. 1. Number of parameters in our network depends upon the number of classes, e.g. for ModelNet10 we have $0 . 0 4 7 M$ parameters.
157
+
158
+ Rotation estimation in 3D point clouds. Our network can estimate both the canonical and relative object rotations without pose-supervision. To evaluate this desired property, we used the well classified shapes on ModelNet10 dataset, a sub-dataset of Modelnet40 (Wu et al., 2015). We generate multiple instances per shape by transforming the instance with five arbitrary $S O ( 3 )$ rotations. As we are also affected by the sampling of the point cloud, we resample the mesh five times and generate different pooling graphs across all the instances of the same shape. Our QE-architecture can estimate the pose in two ways: 1) by directly using the output capsule with the highest activation, 2) by a siamese architecture that computes the relative quaternion between the capsules that are maximally activated as shown in Fig. 4. Both modes of operation are free of the data augmentation and we give further schematics of the latter in our appendix Fig. 5. Our results against the baselines including a naive averaging of the LRFs (Mean LRF) and principal axis alignment (PCA) are reported in Tab. 2 as the relative angular error (RAE). We further include results of PointNetLK Aoki et al. (2019) and IT-Net (Yuan et al., 2018), two state of the art 3D networks that iteratively aligns two point sets. These methods are in nature similar to iterative closest point (ICP) algorithm (Besl & McKay, 1992) but 1) do not require an initialization (first iteration estimates the pose), 2) learn data driven updates. Methods that use mesh inputs such as Spherical CNNs (Esteves et al., 2018) cannot be included here as the random sampling of the same surface would not affect those. We also avoid methods that are just invariant to rotations (and hence cannot estimate the pose) such as Tensorfield Networks (Thomas et al., 2018). Finally, note that , IT-net (Yuan et al., 2018) and PointLK need to train a lot of epoches (e.g. 500) with random $S O ( 3 )$ rotation augmentation in order to get the models that cover the full $S O ( 3 )$ , whereas we train only for $\sim 1 0 0$ epochs. We include more details about the baselines in the appendix under Fig. 8.
159
+
160
+ ![](images/340104a5fbcae573bea645d4e647284c5ebb81b1073ec39db251d3476631e304.jpg)
161
+ Figure 4: Shape alignment on the monitor (left) and toilet (right) objects via our siamese equivariant capsule architecture. The shapes are assigned to the the maximally activated class. The corresponding pose capsule provides the rotation estimate.
162
+
163
+ RAE between the ground truth and the prediction is computed as the relative angle in degrees: $d ( \mathbf { q } _ { 1 } , \mathbf { q } _ { 2 } ) / \pi$ . Note that resampling and random rotations render the job of all methods difficult. However, both our version that tries to find a canonical alignment and the siamese variant which seeks a relative rotation are better than the baselines. As pose estimation of objects with rotational symmetry is a challenging task we also report results on the non-symmetric subset (No Sym).
164
+
165
+ Table 3: Ablation study on point density.
166
+
167
+ <table><tr><td rowspan=1 colspan=1>LRF Input|</td><td rowspan=1 colspan=1>LRF-10K</td><td rowspan=1 colspan=2>[LRF-2K|LRF-1K</td></tr><tr><td rowspan=1 colspan=1>Dropout</td><td rowspan=1 colspan=1>150%66%75%100%</td><td rowspan=1 colspan=1>100%</td><td rowspan=1 colspan=1>100%</td></tr><tr><td rowspan=1 colspan=1>Class.ErrAngle.Err</td><td rowspan=1 colspan=1>77.883.383.487.80.340.270.250.09</td><td rowspan=1 colspan=1>85.460.10</td><td rowspan=1 colspan=1>79.740.12</td></tr></table>
168
+
169
+ Robustness against point and LRF resampling. Density changes in the local neighborhoods of the shape are an important cause of error for our network. Hence, we ablate by applying random resamplings (patch-wise dropout) to the objects in ModelNet10 dataset and repeating the pose estimation and classification as described above. The first part (LRF-10K) of Tab. 3 shows our findings against gradual increases of the number of patches. Here, we sample 2K LRFs from the 10K LRFs computed on an input point 10K. $100 \%$ dropout corresponds to 2K points in all columns. On second ablation, we reduce the amount of points on which we compute the LRFs, to 2K and 1K respectively. As we can see from the table, our network is robust towards the changes in the LRFs as well as the density of the points.
170
+
171
+ # 5 RELATED WORK
172
+
173
+ Deep learning on point sets. The capability to process raw, unordered point clouds within a neural network is introduced by the prosperous PointNet (Qi et al., 2017a) thanks to the point-wise convolutions and the permutation invariant pooling functions. Many works have extended PointNet primarily to increase the local receptive field size (Qi et al., 2017b; Li et al., 2018b; Shen et al., 2018; Wang et al., 2019). Point-clouds are generally thought of as sets. This makes any permutationinvariant network that can operate on sets an amenable choice for processing points (Zaheer et al., 2017; Rezatofighi et al., 2017). Unfortunately, common neural network operators in this category are solely equivariant to permutations and translations but to no other groups.
174
+
175
+ Equivariance in Neural Networks. The early attempts to achieve invariant data representations usually involved data augmentation techniques to accomplish tolerance to input transformations (Maturana & Scherer, 2015; Qi et al., 2016; 2017a). Motivated by the difficulty associated with augmentation efforts and acknowledging the importance of theoretically equivariant or invariant representations, the recent years have witnessed a leap in theory and practice of equivariant neural networks (Bao & Song, 2019; Kondor & Trivedi, 2018).
176
+
177
+ While laying out the fundamentals of the group convolution, G-CNNs (Cohen & Welling, 2016) guaranteed equivariance with respect to finite symmetry groups. Similarly, Steerable CNNs (Cohen & Welling, 2017) and its extension to 3D voxels (Worrall & Brostow, 2018) considered discrete symmetries only. Other works opted for designing filters as a linear combination of harmonic basis functions, leading to frequency domain filters (Worrall et al., 2017; Weiler et al., 2018b). Apart from suffering from the dense coverage of the group using group convolution, filters living in the frequency space are less interpretable and less expressive than their spatial counterparts, as the basis does not span the full space of spatial filters.
178
+
179
+ Achieving equivariance in 3D is possible by simply generalizing the ideas of the 2D domain to 3D by voxelizing 3D data. However, methods using dense grids (Chakraborty et al., 2018; Cohen & Welling, 2017) suffer from increased storage costs, eventually rendering the implementations infeasible. An extensive line of work generalizes the harmonic basis filters to $S O ( 3 )$ by using e.g., a spherical harmonic basis instead of circular harmonics (Cohen et al., 2018b; Esteves et al., 2018; Cruz-Mota et al., 2012). In addition to the same downsides as their 2D, these approaches have in common that they require their input to be projected to the unit sphere (Jiang et al., 2019), which poses additional problems for unstructured point clouds. A related line of research are methods which define a regular structure on the sphere to propose equivariant convolution operators (Liu et al., $2 0 1 9 \mathrm { a }$ ; Boomsma & Frellsen, 2017)
180
+
181
+ To learn a rotation equivariant representation of a 3D shape, one can either act on the input data or on the network. In the former case, one either presents augmented data to the network (Qi et al., 2017a; Maturana & Scherer, 2015) or ensures rotation-invariance in the input (Deng et al., 2018a;b; Khoury et al., 2017). In the latter case one can enforce equivariance in the bottleneck so as to achieve an invariant latent representation of the input (Mehr et al., 2018; Thomas et al., 2018; Spezialetti et al., 2019). Further, equivariant networks for discrete sets of views (Esteves et al., 2019b) and crossdomain views (Esteves et al., 2019a) have been proposed. Here, we aim for a different way of embedding equivariance in the network by means of an explicit latent rotation parametrization in addition to the invariant feature.
182
+
183
+ Marcos et al. (2017) developed Vector Field Networks, which was followed by the 3D Tensor Field Networks (TFN) (Thomas et al., 2018) that are closest to our work. Based upon a geometric algebra framework, the authors did achieve localized filters that are equivariant to rotations, translations and permutations. Moreover, they are able to cover the continuous groups. However, TFN are designed for physics applications, is memory consuming and a typical implementation is neither likely to handle the datasets we consider nor can provide orientations in an explicit manner.
184
+
185
+ Capsule Networks. The idea of capsule networks was first mentioned by Hinton et al. (2011), before Sabour et al. (2017) proposed the dynamic routing by agreement, which started the recent line of work investigating the topic. Since then, routing by agreement has been connected to several well-known concepts, e.g. the EM algorithm Sabour et al. (2018), clustering with KL divergence regularization Wang & Liu (2018) and equivariance (Lenssen et al., 2018). They have been extended to autoencoders (Kosiorek et al., 2019) and GANs Jaiswal et al. (2019). Further, capsule networks have been applied for specific kinds of input data, e.g. graphs (Xinyi & Chen, 2019), 3D point clouds (Zhao et al., 2019) or medical images (Afshar et al., 2018).
186
+
187
+ # 6 CONCLUSION AND DISCUSSION
188
+
189
+ In this work, we have presented a new framework for achieving permutation invariant and $S O ( 3 )$ equivariant representations on 3D point clouds. Proposing a variant of the capsule networks, we operate on a sparse set of rotations specified by the input LRFs thereby circumventing the effort to cover the entire $S O ( 3 )$ . Our network natively consumes a compact representation of the group of 3D rotations - quaternions, and we have theoretically shown its equivariance. We have also established convergence results for our Weiszfeld dynamic routing by making connections to the literature of robust optimization. Our network is among the few for having an explicit group-valued latent space and thus naturally estimates the orientation of the input shape, even without a supervision signal.
190
+
191
+ Limitations. In the current form our performance is severely affected by the shape symmetries. The length of the activation vector depends on the number of classes and for achieving sufficiently descriptive latent vectors we need to have a significant number of classes. On the other side, this allows us to perform with merit on problems where the number of classes are large. Although, we have reported robustness to those, the computation of LRFs are still sensitive to the point density changes and resampling. LRFs themselves are also ambiguous and sometimes non-unique.
192
+
193
+ Future work. Inspired by Cohen et al. (2019) and Poulenard & Ovsjanikov (2018) our feature work will involve establishing invariance to the direction in the tangent plane. We also plan to apply our network in the broader context of 3D object detection under arbitrary rotations and look for equivariances among point resampling.
194
+
195
+ # REFERENCES
196
+
197
+ P. Afshar, A. Mohammadi, and K. N. Plataniotis. Brain tumor type classification via capsule networks. In 2018 25th IEEE International Conference on Image Processing (ICIP), 2018.
198
+
199
+ Khurrum Aftab and Richard Hartley. Convergence of iteratively re-weighted least squares to robust m-estimators. In 2015 IEEE Winter Conference on Applications of Computer Vision. IEEE, 2015.
200
+
201
+ Khurrum Aftab, Richard Hartley, and Jochen Trumpf. Generalized weiszfeld algorithms for lq optimization. IEEE transactions on pattern analysis and machine intelligence, 37(4), 2014.
202
+
203
+ Khurrum Aftab, Richard Hartley, and Jochen Trumpf. $l _ { q }$ closest-point to affine subspaces using the generalized weiszfeld algorithm. International Journal of Computer Vision, 114(1):1–15, 2015.
204
+
205
+ Yasuhiro Aoki, Hunter Goforth, Rangaprasad Arun Srivatsan, and Simon Lucey. Pointnetlk: Robust & efficient point cloud registration using pointnet. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7163–7172, 2019.
206
+
207
+ Erkao Bao and Linqi Song. Equivariant neural networks and equivarification. arXiv preprint arXiv:1906.07172, 2019.
208
+
209
+ Gary Becigneul and Octavian-Eugen Ganea. Riemannian adaptive optimization methods. ´ arXiv preprint arXiv:1810.00760, 2018.
210
+
211
+ Paul J Besl and Neil D McKay. Method for registration of 3-d shapes. In Sensor fusion IV: control paradigms and data structures, volume 1611, pp. 586–606. International Society for Optics and Photonics, 1992.
212
+
213
+ Tolga Birdal and Slobodan Ilic. Point pair features based object detection and pose estimation revisited. In 2015 International Conference on 3D Vision, pp. 527–535. IEEE, 2015.
214
+
215
+ Tolga Birdal and Slobodan Ilic. A point sampling algorithm for 3d matching of irregular geometries. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2017.
216
+
217
+ Tolga Birdal, Umut Simsekli, Mustafa Onur Eken, and Slobodan Ilic. Bayesian pose graph optimization via bingham distributions and tempered geodesic mcmc. In Advances in Neural Information Processing Systems, pp. 308–319, 2018.
218
+
219
+ Wouter Boomsma and Jes Frellsen. Spherical convolutions and their application in molecular modelling. In Advances in Neural Information Processing Systems 30, pp. 3433–3443. 2017.
220
+
221
+ C Sidney Burrus. Iterative reweighted least squares. OpenStax CNX. Available online: http://cnx. org/contents/92b90377-2b34-49e4-b26f-7fe572db78a1, 12, 2012.
222
+
223
+ Benjamin Busam, Tolga Birdal, and Nassir Navab. Camera pose filtering with local regression geodesics on the riemannian manifold of dual quaternions. In IEEE International Conference on Computer Vision Workshop (ICCVW), October 2017.
224
+
225
+ Rudrasis Chakraborty, Monami Banerjee, and Baba C Vemuri. H-cnns: Convolutional neural networks for riemannian homogeneous spaces. arXiv preprint arXiv:1805.05487, 2018.
226
+
227
+ Taco Cohen and Max Welling. Group equivariant convolutional networks. In International conference on machine learning, pp. 2990–2999, 2016.
228
+
229
+ Taco Cohen, Mario Geiger, and Maurice Weiler. A general theory of equivariant cnns on homogeneous spaces. arXiv preprint arXiv:1811.02017, 2018a.
230
+
231
+ Taco S Cohen and Max Welling. Steerable cnns. International Conference on Learning Representations (ICLR), 2017.
232
+
233
+ Taco S. Cohen, Mario Geiger, Jonas Kohler, and Max Welling. Spherical cnns. 2018b. ¨
234
+
235
+ Taco S Cohen, Maurice Weiler, Berkay Kicanaoglu, and Max Welling. Gauge equivariant convolutional networks and the icosahedral cnn. arXiv preprint arXiv:1902.04615, 2019.
236
+
237
+ Javier Cruz-Mota, Iva Bogdanova, Benoˆıt Paquier, Michel Bierlaire, and Jean-Philippe Thiran. Scale invariant feature transform on the sphere: Theory and applications. International Journal of Computer Vision, 98(2):217–241, June 2012.
238
+
239
+ Haowen Deng, Tolga Birdal, and Slobodan Ilic. Ppf-foldnet: Unsupervised learning of rotation invariant 3d local descriptors. In European Conference on Computer Vision (ECCV), 2018a.
240
+
241
+ Haowen Deng, Tolga Birdal, and Slobodan Ilic. Ppfnet: Global context aware local features for robust 3d point matching. In Conference on Computer Vision and Pattern Recognition, 2018b.
242
+
243
+ Carlos Esteves, Christine Allen-Blanchette, Ameesh Makadia, and Kostas Daniilidis. Learning so (3) equivariant representations with spherical cnns. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 52–68, 2018.
244
+
245
+ Carlos Esteves, Avneesh Sud, Zhengyi Luo, Kostas Daniilidis, and Ameesh Makadia. Cross-domain 3d equivariant image embeddings. In International Conference on Machine Learning (ICML), 2019a.
246
+
247
+ Carlos Esteves, Yinshuang Xu, Christine Allen-Blanchette, and Kostas Daniilidis. Equivariant multiview networks. arXiv preprint arXiv:1904.00993, 2019b.
248
+
249
+ Matthias Fey, Jan Eric Lenssen, Frank Weichert, and Heinrich Muller. Splinecnn: Fast geometric ¨ deep learning with continuous b-spline kernels. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
250
+
251
+ C Lee Giles and Tom Maxwell. Learning, invariance, and generalization in high-order neural networks. Applied optics, 26(23):4972–4978, 1987.
252
+
253
+ Geoffrey E Hinton, Alex Krizhevsky, and Sida D Wang. Transforming auto-encoders. In International Conference on Artificial Neural Networks, pp. 44–51. Springer, 2011.
254
+
255
+ Hugues Hoppe, Tony DeRose, Tom Duchamp, John McDonald, and Werner Stuetzle. Surface reconstruction from unorganized points, volume 26.2. ACM, 1992.
256
+
257
+ Ayush Jaiswal, Wael AbdAlmageed, Yue Wu, and Premkumar Natarajan. Capsulegan: Generative adversarial capsule network. In Computer Vision – ECCV 2018 Workshops, pp. 526–535. Springer International Publishing, 2019.
258
+
259
+ Chiyu Max Jiang, Jingwei Huang, Karthik Kashinath, Prabhat, Philip Marcus, and Matthias Niessner. Spherical CNNs on unstructured grids. In International Conference on Learning Representations, 2019.
260
+
261
+ Marc Khoury, Qian-Yi Zhou, and Vladlen Koltun. Learning compact geometric features. In Proceedings of the IEEE International Conference on Computer Vision, pp. 153–161, 2017.
262
+
263
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
264
+
265
+ Risi Kondor and Shubhendu Trivedi. On the generalization of equivariance and convolution in neural networks to the action of compact groups. arXiv preprint arXiv:1802.03690, 2018.
266
+
267
+ Risi Kondor, Zhen Lin, and Shubhendu Trivedi. Clebsch–gordan nets: a fully fourier space spherical convolutional neural network. In Advances in Neural Information Processing Systems, 2018.
268
+
269
+ Adam R. Kosiorek, Sara Sabour, Yee Whye Teh, and Geoffrey E. Hinton. Stacked capsule autoencoders. arXiv preprint arXiv:1906.06818, 2019.
270
+
271
+ Soren Laue, Matthias Mitterreiter, and Joachim Giesen. Computing higher order derivatives of ¨ matrix and tensor expressions. In Advances in Neural Information Processing Systems, 2018.
272
+
273
+ Jan Eric Lenssen, Matthias Fey, and Pascal Libuschewski. Group equivariant capsule networks. In Advances in Neural Information Processing Systems, pp. 8844–8853, 2018.
274
+
275
+ Jiaxin Li, Ben M Chen, and Gim Hee Lee. So-net: Self-organizing network for point cloud analysis. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2018a.
276
+
277
+ Yangyan Li, Rui Bu, Mingchao Sun, Wei Wu, Xinhan Di, and Baoquan Chen. Pointcnn: Convolution on x-transformed points. In Advances in Neural Information Processing Systems, 2018b.
278
+
279
+ Shuai Liao, Efstratios Gavves, and Cees GM Snoek. Spherical regression: Learning viewpoints, surface normals and 3d rotations on n-spheres. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9759–9767, 2019.
280
+
281
+ Min Liu, Fupin Yao, Chiho Choi, Sinha Ayan, and Karthik Ramani. Deep learning 3d shapes using alt-az anisotropic 2-sphere convolution. In International Conference on Learning Representations (ICLR), 2019a.
282
+
283
+ Xinhai Liu, Zhizhong Han, Yu-Shen Liu, and Matthias Zwicker. Point2sequence: Learning the shape representation of 3d point clouds with an attention-based sequence to sequence network. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 8778–8785, 2019b.
284
+
285
+ David G Luenberger, Yinyu Ye, et al. Linear and nonlinear programming. Springer, 1984.
286
+
287
+ Jan R Magnus. On differentiating eigenvalues and eigenvectors. Econometric Theory, 1(2), 1985.
288
+
289
+ Diego Marcos, Michele Volpi, Nikos Komodakis, and Devis Tuia. Rotation equivariant vector field networks. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017.
290
+
291
+ F Landis Markley, Yang Cheng, John Lucas Crassidis, and Yaakov Oshman. Averaging quaternions. Journal of Guidance, Control, and Dynamics, 30(4):1193–1197, 2007.
292
+
293
+ Daniel Maturana and Sebastian Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In Intelligent Robots and Systems (IROS). IEEE, 2015.
294
+
295
+ Eloi Mehr, Andre Lieutier, Fernando Sanchez Bermudez, Vincent Guitteny, Nicolas Thome, and ´ Matthieu Cord. Manifold learning in quotient spaces. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9165–9174, 2018.
296
+
297
+ Simone Melzi, Riccardo Spezialetti, Federico Tombari, Michael M. Bronstein, Luigi Di Stefano, and Emanuele Rodola. Gframes: Gradient-based local reference frame for 3d shape matching. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
298
+
299
+ Alioscia Petrelli and Luigi Di Stefano. On the repeatability of the local reference frame for partial shape matching. In 2011 International Conference on Computer Vision. IEEE, 2011.
300
+
301
+ Alioscia Petrelli and Luigi Di Stefano. A repeatable and efficient canonical reference for surface matching. In 2012 Second International Conference on 3D Imaging, Modeling, Processing, Visualization & Transmission, pp. 403–410. IEEE, 2012.
302
+
303
+ Adrien Poulenard and Maks Ovsjanikov. Multi-directional geodesic neural networks via equivariant convolution. In SIGGRAPH Asia 2018 Technical Papers, pp. 236. ACM, 2018.
304
+
305
+ Charles R Qi, Hao Su, Matthias Nießner, Angela Dai, Mengyuan Yan, and Leonidas J Guibas. Volumetric and multi-view cnns for object classification on 3d data. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 5648–5656, 2016.
306
+
307
+ Charles R Qi, Hao Su, Kaichun Mo, and Leonidas J Guibas. Pointnet: Deep learning on point sets for 3d classification and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 652–660, 2017a.
308
+
309
+ Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J Guibas. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. In Advances in neural information processing systems, pp. 5099–5108, 2017b.
310
+
311
+ S Hamid Rezatofighi, Anton Milan, Ehsan Abbasnejad, Anthony Dick, Ian Reid, et al. Deepsetnet: Predicting sets with deep neural networks. In 2017 IEEE International Conference on Computer Vision (ICCV), pp. 5257–5266. IEEE, 2017.
312
+
313
+ Sara Sabour, Nicholas Frosst, and Geoffrey E Hinton. Dynamic routing between capsules. In Advances in neural information processing systems, pp. 3856–3866, 2017.
314
+
315
+ Sara Sabour, Nicholas Frosst, and G Hinton. Matrix capsules with em routing. In 6th International Conference on Learning Representations, ICLR, 2018.
316
+
317
+ Kristof Schutt, Pieter-Jan Kindermans, Huziel Enoc Sauceda Felix, Stefan Chmiela, Alexandre ¨ Tkatchenko, and Klaus-Robert Muller. Schnet: A continuous-filter convolutional neural network ¨ for modeling quantum interactions. In Advances in Neural Information Processing Systems. 2017.
318
+
319
+ Yiru Shen, Chen Feng, Yaoqing Yang, and Dong Tian. Mining point cloud local structures by kernel correlation and graph pooling. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4548–4557, 2018.
320
+
321
+ Riccardo Spezialetti, Samuele Salti, and Luigi Di Stefano. Learning an effective equivariant 3d descriptor without supervision. arXiv preprint arXiv:1909.06887, 2019.
322
+
323
+ Norman Earl Steenrod. The topology of fibre bundles, volume 14. Princeton University Press, 1951.
324
+
325
+ Nathaniel Thomas, Tess Smidt, Steven Kearnes, Lusann Yang, Li Li, Kai Kohlhoff, and Patrick Riley. Tensor field networks: Rotation-and translation-equivariant neural networks for 3d point clouds. arXiv preprint arXiv:1802.08219, 2018.
326
+
327
+ Federico Tombari, Samuele Salti, and Luigi Di Stefano. Unique signatures of histograms for local surface description. In European conference on computer vision, pp. 356–369. Springer, 2010.
328
+
329
+ Dilin Wang and Qiang Liu. An optimization view on dynamic routing between capsules, 2018. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ HJjtFYJDf.
330
+
331
+ Shenlong Wang, Simon Suo, Wei-Chiu Ma, Andrei Pokrovsky, and Raquel Urtasun. Deep parametric continuous convolutional neural networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
332
+
333
+ Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E. Sarma, Michael M. Bronstein, and Justin M. Solomon. Dynamic graph cnn for learning on point clouds. ACM Transactions on Graphics (TOG), 2019.
334
+
335
+ Maurice Weiler, Mario Geiger, Max Welling, Wouter Boomsma, and Taco Cohen. 3d steerable cnns: Learning rotationally equivariant features in volumetric data. In Advances in Neural Information Processing Systems, pp. 10381–10392, 2018a.
336
+
337
+ Maurice Weiler, Fred A. Hamprecht, and Martin Storath. Learning steerable filters for rotation equivariant cnns. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018b.
338
+
339
+ Daniel Worrall and Gabriel Brostow. Cubenet: Equivariance to 3d rotation and translation. In The European Conference on Computer Vision (ECCV), September 2018.
340
+
341
+ Daniel E. Worrall, Stephan J. Garbin, Daniyar Turmukhambetov, and Gabriel J. Brostow. Harmonic networks: Deep translation and rotation equivariance. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
342
+
343
+ Zhirong Wu, Shuran Song, Aditya Khosla, Fisher Yu, Linguang Zhang, Xiaoou Tang, and Jianxiong Xiao. 3d shapenets: A deep representation for volumetric shapes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1912–1920, 2015.
344
+
345
+ Zhang Xinyi and Lihui Chen. Capsule graph neural network. In International Conference on Learning Representations (ICLR), 2019. URL openreview.net/forum?id ${ . } = { }$ Byl8BnRcYm.
346
+
347
+ Yang You, Yujing Lou, Qi Liu, Yu-Wing Tai, Weiming Wang, Lizhuang Ma, and Cewu Lu. Prin: Pointwise rotation-invariant network. arXiv preprint arXiv:1811.09361, 2018.
348
+
349
+ Wentao Yuan, David Held, Christoph Mertz, and Martial Hebert. Iterative transformer network for 3d point cloud. arXiv preprint arXiv:1811.11209, 2018.
350
+
351
+ Manzil Zaheer, Satwik Kottur, Siamak Ravanbakhsh, Barnabas Poczos, Ruslan R Salakhutdinov, and Alexander J Smola. Deep sets. In Advances in Neural Information Processing Systems. 2017.
352
+
353
+ Yongheng Zhao, Tolga Birdal, Haowen Deng, and Federico Tombari. 3d point capsule networks. In Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
354
+
355
+ # A PROOF OF PROPOSITION 1
356
+
357
+ Before presenting the proof we recall the three individual statements contained in Prop. 1:
358
+
359
+ 1. $\mathcal { A } ( \mathbf { g } \circ \mathbf { S } , \mathbf { w } )$ is left-equivariant: $\mathcal { A } ( \mathbf { g } \circ \mathbf { S } , \mathbf { w } ) = \mathbf { g } \circ \mathcal { A } ( \mathbf { S } , \mathbf { w } )$ .
360
+ 2. Operator $\mathcal { A }$ is invariant under permutations: $\begin{array} { r l } { \mathcal { A } \big ( \{ \mathbf { q } _ { \sigma ( 1 ) } , \dots , \mathbf { q } _ { \sigma ( Q ) } \} , \mathbf { w } _ { \sigma } \big ) } & { { } = } \end{array}$ $\mathcal { A } ( \{ \mathbf { q } _ { 1 } , \hdots , \mathbf { q } _ { Q } \} , \mathbf { w } )$ .
361
+ 3. The transformations $\mathbf { g } \in \mathbb { H } _ { 1 }$ preserve the geodesic distance $\delta ( \cdot )$ .
362
+
363
+ Proof. We will prove the propositions in order.
364
+
365
+ 1. We start by transforming each element and replace $\mathbf { q } _ { i }$ by $\left( \mathbf { g } \circ \mathbf { q } _ { i } \right)$ of the cost in Eq (4):
366
+
367
+ $$
368
+ \begin{array} { r l } { \mathbf { q } ^ { \top } \mathbf { M } \mathbf { q } = \mathbf { q } ^ { \top } \Big ( \underset { \left( - 1 \right) } { \overset { \triangledown } { \sum } } w _ { 1 } \mathbf { q } , \mathbf { q } _ { 1 } ^ { \top } \Big ) \mathbf { q } } & { } \\ & { = \mathbf { q } ^ { \top } \left( \underset { \left( - 1 \right) } { \overset { \triangledown } { \sum } } w _ { 1 } ( \mathbf { g } \mathbf { \cdot } \mathbf { q } _ { 1 } ) ( \mathbf { g } \mathbf { \cdot } \mathbf { q } _ { 1 } ) ^ { \top } \right) \mathbf { q } } \\ & { = \mathbf { q } ^ { \top } \left( \underset { \left( - 1 \right) } { \overset { \triangledown } { \sum } } w _ { 1 } \mathbf { G } \mathbf { q } , \mathbf { q } _ { 1 } ^ { \top } \mathbf { G } ^ { - } \right) \mathbf { q } } \\ & { = \mathbf { q } ^ { \top } \left( \underset { \left( - 1 \right) } { \overset { \triangledown } { \sum } } w _ { 1 } \mathbf { G } \mathbf { q } , \mathbf { q } ^ { \top } \mathbf { G } ^ { - } \right) \mathbf { q } } \\ & { = \mathbf { q } ^ { \top } \left( \mathbf { G } \mathbf { M } _ { 1 } \mathbf { G } ^ { \top } + \dots + \mathbf { G } \mathbf { M } _ { 0 } \mathbf { G } ^ { \top } \right) \mathbf { q } } \\ & { = \mathbf { q } ^ { \top } \mathbf { G } \mathbf { \cdot } \left( \mathbf { M } _ { 1 } \mathbf { G } ^ { \top } + \dots + \mathbf { M } _ { 0 } \mathbf { G } ^ { \top } \right) \mathbf { q } } \\ & { = \mathbf { q } ^ { \top } \mathbf { G } \left( \mathbf { M } _ { 1 } \mathbf { + } \dots + \mathbf { M } _ { 0 } \right) \mathbf { G } ^ { \top } \mathbf { q } } \\ & { = \mathbf { q } ^ { \top } \mathbf { G } \mathbf { M } \mathbf { G } ^ { \top } \mathbf { q } } \\ & { = \mathbf { q } ^ { \top } \mathbf { G } \mathbf { q } \mathbf { G } ^ { \top } \mathbf { q } } \\ & { = \mathbf { p } ^ { \top } \mathbf { M } \mathbf { p } , } \end{array}
369
+ $$
370
+
371
+ where $\mathbf { M } _ { i } \ = \ w _ { i } \mathbf { q } _ { i } \mathbf { q } _ { i } ^ { \top }$ and $\mathbf { p _ { \lambda } } = \mathbf { G } ^ { \top } \mathbf { q }$ . From orthogonallity of $\mathbf { G }$ it follows $\mathrm { ~ \bf ~ p ~ } =$ $\mathbf { G } ^ { - 1 } \mathbf { q } \implies \mathbf { g } \circ \mathbf { p } = \dot { \mathbf { q } }$ and hence $\mathbf { g } \circ \mathcal { A } ( \mathbf { S } , \mathbf { w } ) = \mathcal { A } ( \mathbf { g } \circ \mathbf { S } , \mathbf { w } )$ .
372
+
373
+ 2. The proof follows trivially from the permutation invariance of the symmetric summation operator over the outer products in Eq (8).
374
+
375
+ 3. It is sufficient to show that $| \mathbf { q } _ { 1 } ^ { \top } \mathbf { q } _ { 2 } | = | ( \mathbf { g } \circ \mathbf { q } _ { 1 } ) ^ { \top } ( \mathbf { g } \circ \mathbf { q } _ { 2 } ) |$ for any $\mathbf { g } \in \mathbb { H } _ { 1 }$ :
376
+
377
+ $$
378
+ \begin{array} { r l } { \left| \left( \mathbf { g } \circ \mathbf { q } _ { 1 } \right) ^ { \top } ( \mathbf { g } \circ \mathbf { q } _ { 2 } ) \right| = | \mathbf { q } _ { 1 } ^ { \top } \mathbf { G } ^ { \top } \mathbf { G } \mathbf { q } _ { 2 } | } & { } \\ & { = | \mathbf { q } _ { 1 } ^ { \top } \mathbf { I } \mathbf { q } _ { 2 } | } \\ & { = | \mathbf { q } _ { 1 } ^ { \top } \mathbf { q } _ { 2 } | , } \end{array}
379
+ $$
380
+
381
+ where $\mathbf { g } \circ \mathbf { q } \equiv \mathbf { G q }$ . The result is a direct consequence of the orthonormality of $\mathbf { G }$ .
382
+
383
+ # B PROOF OF LEMMA 1
384
+
385
+ We will begin by recalling some preliminary definitions and results that aid us to construct the connection between the dynamic routing and the Weiszfeld algorithm.
386
+
387
+ Definition 9 (Affine Subspace). A $d$ -dimensional affine subspace of $R ^ { N }$ is obtained by a translation of a $d$ -dimensional linear subspace $V \subset \mathbb { R } ^ { N }$ such that the origin is included in $S$ :
388
+
389
+ $$
390
+ S = \Big \{ \sum _ { i = 1 } ^ { d + 1 } \alpha _ { i } \mathbf { x } _ { i } \vert \sum _ { i = 1 } ^ { d + 1 } \alpha _ { i } = 1 \Big \} .
391
+ $$
392
+
393
+ Simplest choices for $S$ involve points, lines and planes of the Euclidean space.
394
+
395
+ Definition 10 (Orthogonal Projection onto an Affine Subspace). An orthogonal projection of a point $\mathbf { x } \in \mathbb { R } ^ { N }$ onto an affine subspace explained by the pair $( \mathbf { A } , \mathbf { c } )$ is defined as:
396
+
397
+ $$
398
+ \Pi _ { i } ( { \bf x } ) \triangleq { p r o j _ { S } ( { \bf x } ) } = { \bf c } + { \bf A } ( { \bf x } - { \bf c } ) .
399
+ $$
400
+
401
+ c denotes the translation to make origin inclusive and A is a projection matrix typically defined via the orthonormal bases of the subspace.
402
+
403
+ Definition 11 (Distance to Affine Subspaces). Distance from a given point x to a set of affine subspaces $\{ S _ { 1 } , S _ { 2 } \ldots S _ { k } \}$ can be written as Aftab et al. (2015):
404
+
405
+ $$
406
+ C ( \mathbf { x } ) = \sum _ { i = 1 } ^ { k } d ( \mathbf { x } , S _ { i } ) = \sum _ { i = 1 } ^ { k } \| \mathbf { x } - p r o j _ { S _ { i } } ( \mathbf { x } ) \| ^ { 2 } .
407
+ $$
408
+
409
+ Lemma 2. Given that all the antipodal counterparts are mapped to the northern hemisphere, we will now think of the unit quaternion or versor as the unit normal of a four dimensional hyperplane $h$ , passing through the origin:
410
+
411
+ $$
412
+ h _ { i } ( \mathbf { x } ) = \mathbf { q } _ { i } ^ { \top } \mathbf { x } + q _ { d } : = 0 .
413
+ $$
414
+
415
+ $q _ { d }$ is an added term to compensate for the shift. When $q _ { d } = 0$ the origin is incident to the hyperplane. With this perspective, quaternion $\mathbf { q } _ { i }$ forms an affine subspace with $d = 4$ , for which the projection operator takes the form:
416
+
417
+ $$
418
+ p r o j _ { S _ { i } } ( \mathbf { p } ) = ( \mathbf { I } - \mathbf { q } _ { i } \mathbf { q } _ { i } ^ { \top } ) \mathbf { p }
419
+ $$
420
+
421
+ Proof. We consider Eq (19) for the case where $\mathbf c = \mathbf 0$ and $\mathbf { A } = ( \mathbf { I } - \mathbf { q q } ^ { \top } )$ . The former follows from the fact that our subspaces by construction pass through the origin. Thus, we only need to show that the matrix $\mathbf { A } = \mathbf { I } { - } \mathbf { q } \mathbf { \dot { q } } ^ { \top }$ is an orthogonal projection matrix onto the affine subspace spanned by q. To this end, it is sufficient to validate that $\mathbf { A }$ is symmetric and idempotent: $\mathbf { A } ^ { \top } \dot { \mathbf { A } } = \dot { \mathbf { A } } \mathbf { A } = \mathbf { A } ^ { \top } = \mathbf { A }$ . Note that by construction $\mathbf { q } ^ { \intercal } \mathbf { q }$ is a symmetric matrix and hence A itself. Using this property and the unit-ness of the quaternion, we arrive at the proof:
422
+
423
+ $$
424
+ \begin{array} { r l } & { \mathbf { A } ^ { \top } \mathbf { A } = ( \mathbf { I } - \mathbf { q } \mathbf { q } ^ { \top } ) ^ { \top } ( \mathbf { I } - \mathbf { q } \mathbf { q } ^ { \top } ) } \\ & { \qquad = ( \mathbf { I } - \mathbf { q } \mathbf { q } ^ { \top } ) ( \mathbf { I } - \mathbf { q } \mathbf { q } ^ { \top } ) } \\ & { \qquad = \mathbf { I } - 2 \mathbf { q } \mathbf { q } ^ { \top } + \mathbf { q } \mathbf { q } ^ { \top } \mathbf { q } \mathbf { q } ^ { \top } } \\ & { \qquad = \mathbf { I } - 2 \mathbf { q } \mathbf { q } ^ { \top } + \mathbf { q } \mathbf { q } ^ { \top } } \\ & { \qquad = \mathbf { I } - \mathbf { q } \mathbf { q } ^ { \top } \triangleq \mathbf { A } } \end{array}
425
+ $$
426
+
427
+ It is easy to verify that the projections are orthogonal to the quaternion that defines the subspace by showing $\mathrm { p r o j } _ { S } ( \mathbf { q } ) ^ { \top } \mathbf { q } = 0$ :
428
+
429
+ $$
430
+ \mathbf { q } ^ { \top } \operatorname { p r o j } _ { S } ( \mathbf { q } ) = \mathbf { q } ^ { \top } \mathbf { A } \mathbf { q } = \mathbf { q } ^ { \top } ( \mathbf { I } - \mathbf { q } \mathbf { q } ^ { \top } ) \mathbf { q } = \mathbf { q } ^ { \top } ( \mathbf { q } - \mathbf { q } \mathbf { q } ^ { \top } \mathbf { q } ) = \mathbf { q } ^ { \top } ( \mathbf { q } - \mathbf { q } ) = 0 .
431
+ $$
432
+
433
+ Also note that this choice corresponds to $\begin{array} { r } { \operatorname { t r } ( \mathbf q \mathbf q ^ { \top } ) = \sum _ { i = 1 } ^ { d + 1 } \alpha _ { i } = 1 . } \end{array}$
434
+
435
+ Lemma 3. The quaternion mean we suggest to use in the main paper Markley et al. (2007) is equivalent to the Euclidean Weiszfeld mean on the affine quaternion subspaces.
436
+
437
+ Proof. We now recall and summarize the $L _ { q }$ -Weiszfeld Algorithm on affine subspaces Aftab et al. (2015), which minimizes a $q$ -norm variant of the cost defined in Eq (17):
438
+
439
+ $$
440
+ C _ { q } ( \mathbf { x } ) = \sum _ { i = 1 } ^ { k } d ( \mathbf { x } , S _ { i } ) = \sum _ { i = 1 } ^ { k } \| \mathbf { x } - \mathrm { p r o j } _ { S _ { i } } ( \mathbf { x } ) \| ^ { q } .
441
+ $$
442
+
443
+ Defining $\mathbf { M } _ { i } = \mathbf { I } - \mathbf { A } _ { i }$ , Alg. 2 summarizes the iterative procedure.
444
+
445
+ Note that when $q = 2$ , the algorithm reduces to the computation of a non-weighted mean $\mathbf { \nabla } _ { w _ { i } } =$ $1 \forall i )$ , and a closed form solution exists for Eq (29) and is given by the normal equations:
446
+
447
+ $$
448
+ \mathbf { x } = { \Big ( } \sum _ { i = 1 } ^ { k } w _ { i } \mathbf { M } _ { i } { \Big ) } ^ { - 1 } { \Big ( } \sum _ { i = 1 } ^ { k } w _ { i } \mathbf { M } _ { i } \mathbf { c } _ { i } { \Big ) }
449
+ $$
450
+
451
+ # Algorithm 2: $L _ { q }$ Weiszfeld Algorithm on Affine Subspaces Aftab et al. (2015).
452
+
453
+ 1 input: An initial guess $\mathbf { x } _ { \mathrm { 0 } }$ that does not lie any of the subspaces $\{ S _ { i } \}$ , Projection operators $\Pi _ { i }$ , the norm parameter $q$
454
+ 2 $\mathbf { x } ^ { t } \mathbf { x } _ { 0 }$
455
+ 3 while not converged do
456
+ 4 Compute the weights $\mathbf { w } ^ { t } = \{ w _ { i } ^ { t } \}$ : $w _ { i } ^ { t } = \| \mathbf { M } _ { i } ( \mathbf { x } ^ { t } - \mathbf { c } _ { i } ) \| ^ { q - 2 } \quad \forall i = 1 \ldots k$ (28)
457
+ 5 Solve: $\mathbf { x } ^ { t + 1 } = \underset { \mathbf { x } \in \mathbb { R } ^ { N } } { \arg \operatorname* { m i n } } \sum _ { i = 1 } ^ { k } w _ { i } ^ { t } \| \mathbf { M } _ { i } ( \mathbf { x } - \mathbf { c } _ { i } ) \| ^ { 2 }$ (29)
458
+
459
+ For the case of our quaternionic subspaces $\mathbf c = \mathbf 0$ and we seek the solution that satisfies:
460
+
461
+ $$
462
+ \biggl ( \sum _ { i = 1 } ^ { k } \mathbf { M } _ { i } \biggr ) \mathbf { x } = \Bigl ( \frac { 1 } { k } \sum _ { i = 1 } ^ { k } \mathbf { M } _ { i } \Bigr ) \mathbf { x } = \mathbf { 0 } .
463
+ $$
464
+
465
+ It is well known that the solution to this equation under the constraint $\| \mathbf { x } \| = 1$ lies in nullspace of $\mathbf { M } = \textstyle { \frac { 1 } { k } } \sum _ { i = 1 } ^ { k } \mathbf { M } _ { i }$ and can be obtained by taking the singular vector of $\mathbf { M }$ that corresponds to the largest singular value. Since $\mathbf { M } _ { i }$ is idempotent, the same result can also be obtained through the eigendecomposition:
466
+
467
+ $$
468
+ \mathbf { q } ^ { \star } = \underset { \mathbf { q } \in \cal S ^ { 3 } } { \arg \operatorname* { m a x } } \mathbf { q M } \mathbf { q }
469
+ $$
470
+
471
+ which gives us the unweighted Quaternion mean Markley et al. (2007).
472
+
473
+ # C PROOF OF THEOREM 1
474
+
475
+ Once the Lemma 1 is proven, we only need to apply the direct convergence results from the literature. Consider a set of points $\mathbf { Y } = \{ \mathbf { y } _ { 1 } \ldots \mathbf { \bar { y } } _ { K } \}$ where $K > 2$ and $\mathbf { y } _ { i } \in \mathbb { H } _ { 1 }$ . Due to the compactness, we can speak of a ball $B ( \mathbf { o } , \rho )$ encapsulating all $\mathbf { y } _ { i }$ . We also define the $\mathcal { D } = \{ \mathbf { x } \in \mathbb { H } _ { 1 } | C _ { q } ( \mathbf { x } ) < C _ { q } ( \mathbf { o } ) \}$ , the region where the loss decreases.
476
+
477
+ We first state the assumptions that permit our theoretical result. These assumptions are required by the works that establish the convergence of such Weiszfeld algorithms Luenberger et al. (1984); Aftab & Hartley (2015); Aftab et al. (2014) :
478
+
479
+ H1. $\mathbf { y } _ { 1 } \ldots \mathbf { y } _ { K }$ should not lie on a single geodesic of the quaternion manifold.
480
+ H2. $\mathcal { D }$ is bounded and compact. The topological structure of $S O ( 3 )$ imposes a bounded convexity radius of $\rho < \pi / 2$ .
481
+ H3. The minimizer in $\operatorname { E q }$ (29) is continuous.
482
+ H4. The weighting function $\sigma ( \cdot )$ is concave and differentiable.
483
+ H5. Initial quaternion (in our network chosen randomly) does not belong to any of the subspaces.
484
+
485
+ Note that H5 is not a strict requirement as there are multiple ways to circumvent (simplest being a re-initialization). Under these assumptions, the sequence produced by Eq (29) will converge to a critical point unless $\mathbf { x } ^ { t } = \mathbf { y } _ { i }$ for any $t$ and $i$ Aftab et al. (2014). For $q = 1$ , this critical point is on one of the subspaces specified in Eq (18) and thus is a geometric median. □
486
+
487
+ Note that due to the assumption $\mathbf { H } 2$ , we cannot converge from any given point. For randomly initialized networks this is indeed a problem and does not guarantee practical convergence. Yet, in our experiments we have not observed any issue with the convergence of our dynamic routing. As our result is one of the few ones related to the analysis of DR, we still find this to be an important first step.
488
+
489
+ For different choices of $q : 1 \leq q \leq 2$ , the weights take different forms. In fact, this IRLS type of algorithm is shown to converge for a larger class of weighting choices as long as the aforementioned conditions are met. That is why in practice we use a simple sigmoid function.
490
+
491
+ # D OUR SIAMESE ARCHITECTURE AND THE ALGORITHM
492
+
493
+ For estimation of the relative pose with supervision, we benefit from a Siamese variation of our network. In this case, latent capsule representations of two point sets $\mathbf { X }$ and $\mathbf { Y }$ jointly contribute to the pose regression as shown in Fig. 5.
494
+
495
+ ![](images/32613bc5ee20bb121f5e818c93fea4b1c068606f5cf5797227071bcba74beb27.jpg)
496
+ Figure 5: Our siamese architecture used in the estimation of relative poses. We use a shared network to process two distinct point clouds $( \mathbf { X } , \mathbf { Y } )$ to arrive at the latent representations $( \mathbf { C } _ { X } , \pmb { \alpha } _ { X } )$ and $\left( \mathbf { C } _ { Y } , \pmb { \alpha } _ { Y } \right)$ respectively. We then look for the highest activated capsules in both point sets and compute the rotation from the corresponding capsules. Thanks to the rotations disentangled into capsules, this final step simplifies to a relative quaternion calculation.
497
+
498
+ We show additional results from the computation of local reference frames and the multi-channel capsules deduced from our network in Fig. 6.
499
+
500
+ Finally, the overall algorithm of our network is summarized under Alg. 3.
501
+
502
+ # Algorithm 3: Quaternion Equivariant Network
503
+
504
+ 1 input : Input points of one patch $\left\{ { \bf x } _ { 1 } , . . . , { \bf x } _ { K } \right\} \in \mathbb { R } ^ { K \times 3 }$ , input capsules (LRFs)
505
+ $\mathcal { Q } = \{ \mathbf { q } _ { 1 } , \dots , \mathbf { q } _ { L } \} \in \mathbb { H } _ { 1 } ^ { L }$ , with $L = N ^ { c } \cdot K$ , $N ^ { c }$ is the number of capsules per point,
506
+ activations ${ \pmb { \alpha } } = ( \alpha _ { 1 } , \ldots , \alpha _ { L } ) ^ { T }$
507
+ 2 output: Updated frames $\hat { \mathcal { Q } } = \{ \hat { \mathbf { q } } _ { 1 } , \hdots , \hat { \mathbf { q } } _ { M } \} \in \mathbb { H } _ { 1 } ^ { M }$ , updated activations $\hat { \pmb { \alpha } } = ( \hat { \alpha } _ { 1 } , \dots , \hat { \alpha } _ { M } ) ^ { T }$
508
+ 3 for Each input channel $n ^ { c }$ of all the primary capsules channels $N ^ { c }$ do
509
+ 4 $\mu ( n ^ { c } ) \dot { } A ( \mathcal { Q } ( n ^ { c } ) ) ~ / /$ Input quaternion average, see Eq (4)
510
+ 5 for Each point $\mathbf { x } _ { i }$ of this patch do
511
+ 6 $\lfloor \mathbf { x } _ { i } ^ { \prime } \gets \mu ( n ^ { c } ) ^ { - 1 } \circ \mathbf { x } _ { i } \ / /$ rotate point in a canonical orientation
512
+ 7 $\left\{ \mathbf { x } _ { i } ^ { \prime } \right\} \in \mathbb { R } ^ { K \times N ^ { c } \times 3 } / /$ Points in multiple $( N ^ { c } )$ ) canonical frames
513
+ 8 for Each point $\mathbf { x } _ { i } ^ { \prime }$ of this patch do
514
+ 9 $\lfloor \ \mathbf { t } \gets t ( \mathbf { x } _ { i } ^ { \prime } ) \ / /$ Point to Transform, $t ( \cdot ) : \mathbb { R } ^ { N ^ { c } \times 3 } \mathbb { R } ^ { N ^ { c } \times M \times 4 }$
515
+ 10 $\mathcal { T } \equiv \{ \mathbf { t } _ { i } \} \in \mathbb { H } _ { 1 } ^ { K \times N _ { i } ^ { c } \times M } \{ \mathbf { t } \} \in \mathbb { H } _ { 1 } ^ { L \times M }$
516
+ 11 (Qˆ, αˆ) ← DynamicRouting(X, Q, α, T ) // see Alg. 1
517
+
518
+ Alg. 3 summarizes the overall pipeline of our QE-net depicted in Fig. 3. We use multiple layers in a hierarchical architecture. In the first layer, the input primary capsules are represented by LRFs computed with FLARE algorithm Petrelli & Di Stefano (2012). Therefore, the number of input capsule channels $N ^ { c }$ in the first layer is equal to 1. Its activation is also defaulted to 1. The output of a former layer is propagated to the input of the latter, creating the hierarchy.
519
+
520
+ ![](images/d18441bae463b393e66d066047592194e51c259196fc6d99f80f376a6951b3f1.jpg)
521
+ Figure 6: Additional intermediate results on car (first row) and chair (second row) objects. This figure supplements Fig. 1 of the main paper.
522
+
523
+ ![](images/f3256f777f329920bda71d310cecfad9e94d40452c169893ecd2b898351960b0.jpg)
524
+ Figure 7: Confusion matrix on ModelNet10 for classification.
525
+
526
+ # E ADDITIONAL DETAILS ON EVALUATIONS
527
+
528
+ Details on the evaluation protocol. For Modelnet40 dataset used in Tab. 1, we used the official split with 9,843 shapes for training and 2,468 different shapes for testing. For rotation estimation in Tab. 2, we used the official Modelenet10 dataset split with 3991 for training and 908 shapes for testing. 3D point clouds (10K points) are randomly sampled from the mesh surfaces of each shape Qi et al. (2017a;b). The objects in training and testing dataset are different, but they are from the same categories so that they can be oriented meaningfully. During training, we did not augment the dataset with random rotations. All the shapes are trained with single orientation (well-aligned). We call this trained with NR. During testing, we randomly generate multiple arbitrary $S O ( 3 )$ rotations for each shape and evaluate the average performance for all the rotations. This is called test with $A R$ . This protocol is used in both our algorithms and the baselines.
529
+
530
+ Confusion of classification in ModelNet. We now report the confusion matrix in the task of classification on the all the objects of ModelNet10. The classification and rotation estimation affects one another. As we can see from Fig. 7, the first five categories that exhibit less rotational symmetry has the higher classification accuracy than their rotationally symmetric counterparts.
531
+
532
+ Distribution of errors reported in Tab. 2. We now provide more details on the errors attained by our algorithm as well as the state of the art. To this end, we report, in Fig. 8 the histogram of errors that fall within quantized ranges of orientation errors. It is noticeable that our Siamese architecture behaves best in terms of estimating the objects rotation. For completeness, we also included the results of the variants presented in our ablation studies: Ours-2kLRF, Ours-1kLRF. They evaluate the model on the re-calculated LRFs in order to show the robustness towards to various point densities. We have also modified IT-Net and PointNetLK only to predict rotation because the original works predict both rotations and translations. Finally, note here that we do not use data augmentation for training our networks (see AR), while both for PointNetLK and for IT-Net we do use augmentation.
533
+
534
+ ![](images/668420048419c858c37830ef87f4a1fdcf6e8d038fc2d0d2a7894a6fa713831a.jpg)
535
+
536
+ Figure 8: Cumulative error histograms of rotation estimation on ModelNet10. Each row $( < \theta ^ { \circ } )$ of this extended table shows the percentage of shapes that have rotation error less than $\theta$ . The colors of the bars correspond to the rows they reside in. The higher the errors are contained in the first bins (light blue) the better. Vice versa, the more the errors are clustered toward the $6 0 ^ { \circ }$ the worse the performance of the method.
parse/train/B1xtd1HtPS/B1xtd1HtPS_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1xtd1HtPS/B1xtd1HtPS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1xtd1HtPS/B1xtd1HtPS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BJIgi_eCZ/BJIgi_eCZ.md ADDED
@@ -0,0 +1,691 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FUSIONNET: FUSING VIA FULLY-AWARE ATTENTION WITH APPLICATION TO MACHINE COMPREHENSION
2
+
3
+ Hsin-Yuan Huang\*1,2, Chenguang $\mathbf { Z } \mathbf { h } \mathbf { u } ^ { \mathbf { 1 } }$ , Yelong Shen1, Weizhu Chen1
4
+
5
+ 1Microsoft Business AI and Research
6
+ 2National Taiwan University
7
+ momohuang@gmail.com, {chezhu,yeshen,wzchen}@microsoft.com
8
+
9
+ # ABSTRACT
10
+
11
+ This paper introduces a new neural structure called FusionNet, which extends existing attention approaches from three perspectives. First, it puts forward a novel concept of “history of word” to characterize attention information from the lowest word-level embedding up to the highest semantic-level representation. Second, it identifies an attention scoring function that better utilizes the “history of word” concept. Third, it proposes a fully-aware multi-level attention mechanism to capture the complete information in one text (such as a question) and exploit it in its counterpart (such as context or passage) layer by layer. We apply FusionNet to the Stanford Question Answering Dataset (SQuAD) and it achieves the first position for both single and ensemble model on the official SQuAD leaderboard at the time of writing (Oct. 4th, 2017). Meanwhile, we verify the generalization of FusionNet with two adversarial SQuAD datasets and it sets up the new state-of-the-art on both datasets: on AddSent, FusionNet increases the best F1 metric from $4 6 . 6 \%$ to $5 1 . 4 \%$ ; on AddOneSent, FusionNet boosts the best F1 metric from $5 6 . 0 \%$ to $6 0 . 7 \%$ .
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Teaching machines to read, process and comprehend text and then answer questions is one of key problems in artificial intelligence. Figure 1 gives an example of the machine reading comprehension task. It feeds a machine with a piece of context and a question and teaches it to find a correct answer to the question. This requires the machine to possess high capabilities in comprehension, inference and reasoning. This is considered a challenging task in artificial intelligence and has already attracted numerous research efforts from the neural network and natural language processing communities. Many neural network models have been proposed for this challenge and they generally frame this problem as a machine reading comprehension (MRC) task (Hochreiter & Schmidhuber, 1997; Wang et al., 2017; Seo et al., 2017; Shen et al., 2017; Xiong et al., 2017; Weissenborn et al., 2017; Chen et al., 2017a).
16
+
17
+ Context: The Alpine Rhine is part of the Rhine, a famous European river. The Alpine Rhine begins in the most western part of the Swiss canton of Graubünden, and later forms the border between Switzerland to the West and Liechtenstein and later Austria to the East. On the other hand, the Danube separates Romania and Bulgaria.
18
+
19
+ Question: What is the other country the Rhine separates Switzerland to?
20
+
21
+ Answer: Liechtenstein
22
+
23
+ The key innovation in recent models lies in how to ingest information in the question and characterize it in the context, in order to provide an accurate answer to the question. This is often modeled as attention in the neural network community, which is a mechanism to attend the question into the context so as to find the answer related to the question. Some (Chen et al., 2017a; Weissenborn et al., 2017) attend the word-level embedding from the question to context, while some (Wang et al., 2017) attend the high-level representation in the question to augment the context. However we observed that none of the existing approaches has captured the full information in the context or the question, which could be vital for complete information comprehension. Taking image recognition as an example, information in various levels of representations can capture different aspects of details in an image: pixel, stroke and shape. We argue that this hypothesis also holds in language understanding and MRC. In other words, an approach that utilizes all the information from the word embedding level up to the highest level representation would be substantially beneficial for understanding both the question and the context, hence yielding more accurate answers.
24
+
25
+ However, the ability to consider all layers of representation is often limited by the difficulty to make the neural model learn well, as model complexity will surge beyond capacity. We conjectured this is why previous literature tailored their models to only consider partial information. To alleviate this challenge, we identify an attention scoring function utilizing all layers of representation with less training burden. This leads to an attention that thoroughly captures the complete information between the question and the context. With this fully-aware attention, we put forward a multi-level attention mechanism to understand the information in the question, and exploit it layer by layer on the context side. All of these innovations are integrated into a new end-to-end structure called FusionNet in Figure 4, with details described in Section 3.
26
+
27
+ We submitted FusionNet to SQuAD (Rajpurkar et al., 2016), a machine reading comprehension dataset. At the time of writing (Oct. 4th, 2017), our model ranked in the first place in both single model and ensemble model categories. The ensemble model achieves an exact match (EM) score of $78 . 8 \%$ and F1 score of $8 5 . 9 \%$ . Furthermore, we have tested FusionNet against adversarial SQuAD datasets (Jia & Liang, 2017). Results show that FusionNet outperforms existing state-of-the-art architectures in both datasets: on AddSent, FusionNet increases the best F1 metric from $4 6 . 6 \%$ to $5 1 . 4 \%$ ; on AddOneSent, FusionNet boosts the best F1 metric from $5 6 . 0 \%$ to $6 0 . 7 \%$ . In Appendix D, we also applied to natural language inference task and shown decent improvement. This demonstrated the exceptional performance of FusionNet. An open-source implementation of FusionNet can be found at https://github.com/momohuang/FusionNet-NLI.
28
+
29
+ # 2 MACHINE COMPREHENSION & FULLY-AWARE ATTENTION
30
+
31
+ In this section, we briefly introduce the task of machine comprehension as well as a conceptual architecture that summarizes recent advances in machine reading comprehension. Then, we introduce a novel concept called history-of-word. History-of-word can capture different levels of contextual information to fully understand the text. Finally, a light-weight implementation for history-of-word, Fully-Aware Attention, is proposed.
32
+
33
+ # 2.1 TASK DESCRIPTION
34
+
35
+ In machine comprehension, given a context and a question, the machine needs to read and understand the context, and then find the answer to the question. The context is described as a sequence of word tokens: $C ~ = ~ \{ w _ { 1 } ^ { C } , \ldots , w _ { m } ^ { C } \}$ , and the question as: $\textit { \textbf { Q } } = \ \{ w _ { 1 } ^ { Q } , \ldots , w _ { n } ^ { Q } \}$ , where $m$ is the number of words in the context, and $n$ is the number of words in the question. In general, $m \gg n$ . The answer Ans can have different forms depending on the task. In the SQuAD dataset (Rajpurkar et al., 2016), the answer Ans is guaranteed to be a contiguous span in the context $C$ , e.g., $\mathbf { A n s } = \{ w _ { i } ^ { C } , \dots , w _ { i + k } ^ { C } \}$ , where $k$ is the number of words in the answer and $k \leq m$ .
36
+
37
+ # 2.2 CONCEPTUAL ARCHITECTURE FOR MACHINE READING COMPREHENSION
38
+
39
+ In all state-of-the-art architectures for machine reading comprehension, a recurring pattern is the following process. Given two sets of vectors, A and B, we enhance or modify every single vector in set A with the information from set B. We call this a fusion process, where set B is fused into set A. Fusion processes are commonly based on attention (Bahdanau et al., 2015), but some are not. Major improvements in recent MRC work lie in how the fusion process is designed.
40
+
41
+ A conceptual architecture illustrating state-of-the-art architectures is shown in Figure 2, which consists of three components.
42
+
43
+ • Input vectors: Embedding vectors for each word in the context and the question.
44
+
45
+ ![](images/ef53a9d62835839db03dd60fa5bf44c53d378371d9b1d0cebb4360838ecc5ed3.jpg)
46
+ Table 1: A summarized view on the fusion processes used in several state-of-the-art architectures.
47
+ Figure 2: A conceptual architecture illustrating recent advances in MRC.
48
+
49
+ • Integration components: The rectangular box. It is usually implemented using an RNN such as an LSTM (Hochreiter & Schmidhuber, 1997) or a GRU (Cho et al., 2014). • Fusion processes: The numbered arrows (1), (2), (2’), (3), $( 3 ^ { \circ } )$ . The set pointing outward is fused into the set being pointed to.
50
+
51
+ There are three main types of fusion processes in recent advanced architectures. Table 1 shows what fusion processes are used in different state-of-the-art architectures. We now discuss them in detail.
52
+
53
+ (1) Word-level fusion. By providing the direct word information in question to the context, we can quickly zoom in to more related regions in the context. However, it may not be helpful if a word has different semantic meaning based on the context. Many word-level fusions are not based on attention, e.g., (Hu et al., 2017; Chen et al., 2017a) appends binary features to context words, indicating whether each context word appears in the question.
54
+
55
+ (2) High-level fusion. Informing the context about the semantic information in the question could help us find the correct answer. But high-level information is more imprecise than word information, which may cause models to be less aware of details.
56
+
57
+ (2’) High-level fusion (Alternative). Similarly, we could also fuse high-level concept of $Q$ into the word-level of $C$ .
58
+
59
+ (3) Self-boosted fusion. Since the context can be long and distant parts of text may rely on each other to fully understand the content, recent advances have proposed to fuse the context into itself. As the context contains excessive information, one common choice is to perform self-boosted fusion after fusing the question $Q$ . This allows us to be more aware of the regions related to the question.
60
+
61
+ (3’) Self-boosted fusion (Alternative). Another choice is to directly condition the self-boosted fusion process on the question $Q$ , such as the coattention mechanism proposed in (Xiong et al., 2017). Then we can perform self-boosted fusion before fusing question information.
62
+
63
+ A common trait of existing fusion mechanisms is that none of them employs all levels of representation jointly. In the following, we claim that employing all levels of representation is crucial to achieving better text understanding.
64
+
65
+ # 2.3 FULLY-AWARE ATTENTION ON HISTORY OF WORD
66
+
67
+ Consider the illustration shown in Figure 3. As we read through the context, each input word will gradually transform into a more abstract representation, e.g., from low-level to high-level concepts. Altogether, they form the history of each word in our mental flow. For a human, we utilize the history-of-word so frequently but we often neglect its importance. For example, to answer the question in Figure 3 correctly, we need to focus on both the high-level concept of forms the border and the word-level information of Alpine Rhine. If we focus only on the high-level concepts, we will
68
+
69
+ Context: The Alpine Rhine is part of the Rhine, a famous European river. The Alpine Rhine begins in the most western part of the Swiss canton of Graubünden, and later forms the border between Switzerland to the West and Liechtenstein and later Austria to the East. On the other hand, the Danube separates Romania and Bulgaria.
70
+
71
+ Question: What is the other country the Rhine separates Switzerland to?
72
+
73
+ Answer: Liechtenstein
74
+
75
+ ![](images/d3b58b3a8ba2ca6de01ca0430c65b35e60ff963f937f77dd27b865c4cf91802f.jpg)
76
+ Figure 3: Illustrations of the history-of-word for the example shown in Figure 1. Utilizing the entire history-of-word is crucial for the full understanding of the context.
77
+
78
+ confuse Alpine Rhine with Danube since both are European rivers that separate countries. Therefore we hypothesize that the entire history-of-word is important to fully understand the text.
79
+
80
+ In neural architectures, we define the history of the $i$ -th word, $\mathrm { H o W } _ { i }$ , to be the concatenation of all the representations generated for this word. This may include word embedding, multiple intermediate and output hidden vectors in RNN, and corresponding representation vectors in any further layers. To incorporate history-of-word into a wide range of neural models, we present a lightweight implementation we call Fully-Aware Attention.
81
+
82
+ Attention can be applied to different scenarios. To be more conclusive, we focus on attention applied to fusing informatiotext bodies A and B: $\{ h _ { 1 } ^ { A } , \ldots , h _ { m } ^ { A } \}$ y, $\{ h _ { 1 } ^ { B } , \ldots , h _ { n } ^ { B } \} \subset \mathbb { R } ^ { d }$ two sets of hidden vectors for words in. Their associated history-of-word are, $\{ \mathrm { H o W } _ { 1 } ^ { A } , \dots , \mathrm { H o W } _ { m } ^ { A } \} , ~ \{ \mathrm { H o W } _ { 1 } ^ { B } , \dots , \mathrm { H o W } _ { n } ^ { B } \} \subset \mathbb { R } ^ { d _ { h } } ,$
83
+
84
+ where $d _ { h } \gg d$ . Fusing body $\mathbf { B }$ to body A via standard attention means for every $ { \boldsymbol { h } } _ { i } ^ { A }$ in body A,
85
+
86
+ 1. Compute an attention score $S _ { i j } = S ( \pmb { h } _ { i } ^ { A } , \pmb { h } _ { j } ^ { B } ) \in \mathbb { R }$ for each $h _ { j } ^ { B }$ in body $\mathbf { B }$ .
87
+ 2. Form the attention weight $\alpha _ { i j }$ through softmax: $\begin{array} { r } { \alpha _ { i j } = \exp ( S _ { i j } ) / \sum _ { k } \exp ( S _ { i k } ) } \end{array}$ .
88
+ 3. Concatenate $ { \boldsymbol { h } } _ { i } ^ { A }$ with the summarized information, $\begin{array} { r } { \hat { \pmb { h } } _ { i } ^ { A } = \sum _ { j } \alpha _ { i j } \pmb { h } _ { j } ^ { B } } \end{array}$ .
89
+
90
+ In fully-aware attention, we replace attention score computation with the history-of-word.
91
+
92
+ $$
93
+ S ( h _ { i } ^ { A } , h _ { j } ^ { B } ) \implies S ( \mathrm { H o W } _ { i } ^ { A } , \mathrm { H o W } _ { j } ^ { B } ) .
94
+ $$
95
+
96
+ This allows us to be fully aware of the complete understanding of each word. The ablation study in Section 4.4 demonstrates that this lightweight enhancement offers a decent improvement in performance.
97
+
98
+ To fully utilize history-of-word in attention, we need a suitable attention scoring function $S ( { \pmb x } , { \pmb y } )$ . A commonly used function is multiplicative attention (Britz et al., 2017): $\pmb { x } ^ { T } \pmb { U } ^ { T } \pmb { V } \pmb { y }$ , leading to
99
+
100
+ $$
101
+ \begin{array} { r } { S _ { i j } = ( \mathrm { H o W } _ { i } ^ { A } ) ^ { T } U ^ { T } V ( \mathrm { H o W } _ { j } ^ { B } ) , } \end{array}
102
+ $$
103
+
104
+ where $U , V ~ \in ~ \mathbb { R } ^ { k \times d _ { h } }$ , and $k$ is the attention hidden size. However, we suspect that two large matrices interacting directly will make the neural model harder to train. Therefore we propose to constrain the matrix $U ^ { T } V$ to be symmetric. A symmetric matrix can always be decomposed into $U ^ { T } D U$ , thus
105
+
106
+ $$
107
+ \begin{array} { r } { S _ { i j } = ( \mathrm { H o W } _ { i } ^ { A } ) ^ { T } U ^ { T } D U ( \mathrm { H o W } _ { j } ^ { B } ) , } \end{array}
108
+ $$
109
+
110
+ where $U \in \mathbb { R } ^ { k \times d _ { h } }$ , $D \in \mathbb { R } ^ { k \times k }$ and $D$ is a diagonal matrix. The symmetric form retains the ability to give high attention score between dissimilar $\mathrm { \bar { H } o W } _ { i } ^ { A } , \mathrm { H o W } _ { j } ^ { B }$ . Additionally, we marry nonlinearity with the symmetric form to provide richer interaction among different parts of the history-of-word. The final formulation for attention score is
111
+
112
+ $$
113
+ S _ { i j } = f ( U ( \mathrm { H o W } _ { i } ^ { A } ) ) ^ { T } D ~ f ( U ( \mathrm { H o W } _ { j } ^ { B } ) ) ,
114
+ $$
115
+
116
+ where $f ( x )$ is an activation function applied element-wise. In the following context, we employ $f ( x ) = \operatorname* { m a x } ( 0 , x )$ . A detailed ablation study in Section 4 demonstrates its advantage over many alternatives.
117
+
118
+ ![](images/0257ec1f4f3ec3d036b2ec9c1a8204d14a2dfc7469e37a1de56bf42b7d5b2f0c.jpg)
119
+ Figure 4: An illustration of FusionNet architecture. Each upward arrow represents one layer of BiLSTM. Each circle to the right is a detailed illustration of the corresponding component in FusionNet. Circle 1: Fully-aware attention between $C$ and $Q$ . Illustration of Equation (C1) in Section 3.1. Circle 2: Concatenate all concepts in $C$ with multi-level $Q$ information, then pass through BiLSTM. Illustration of Equation (C2) in Section 3.1.
120
+
121
+ Circle 3: Fully-aware attention on the context $C$ itself. Illustration of Equation (C3) in Section 3.1. Circle 4: Concatenate the understanding vector of $C$ with self-attention information, then pass through BiLSTM. Illustration of Equation (C4) in Section 3.1.
122
+
123
+ # 3 FULLY-AWARE FUSION NETWORK
124
+
125
+ # 3.1 END-TO-END ARCHITECTURE
126
+
127
+ Based on fully-aware attention, we propose an end-to-end architecture: the fully-aware fusion network (FusionNet). Given text A and B, FusionNet fuses information from text $\mathbf { B }$ to text A and generates two set of vectors
128
+
129
+ $$
130
+ U _ { A } = \{ \pmb { u } _ { 1 } ^ { A } , \ldots , \pmb { u } _ { m } ^ { A } \} , \quad U _ { B } = \{ \pmb { u } _ { 1 } ^ { B } , \ldots , \pmb { u } _ { n } ^ { B } \} .
131
+ $$
132
+
133
+ In the following, we consider the special case where text A is context $C$ and text $\mathbf { B }$ is question $Q$ .
134
+ An illustration for FusionNet is shown in Figure 4. It consists of the following components.
135
+
136
+ Input Vectors. First, each word in $C$ and $Q$ is transformed into an input vector $\textbf { \em w }$ . We utilize the 300-dim GloVe embedding (Pennington et al., 2014) and 600-dim contextualized vector (McCann et al., 2017). In the SQuAD task, we also include 12-dim POS embedding, 8-dim NER embedding and a normalized term frequency for context $C$ as suggested in (Chen et al., 2017a). Together $\{ \pmb { w } _ { 1 } ^ { C } , \ldots , \pmb { w } _ { m } ^ { C } \} \subset \mathbb { R } ^ { 9 0 0 + 2 0 + 1 }$ , and $\{ \pmb { w } _ { 1 } ^ { Q } , \ldots , \pmb { w } _ { n } ^ { Q } \} \subset \mathbb { R } ^ { 9 0 0 }$ .
137
+
138
+ Fully-Aware Multi-level Fusion: Word-level. In multi-level fusion, we separately consider fusing word-level and higher-level. Word-level fusion informs $C$ about what kind of words are in $Q$ . It is illustrated as arrow (1) in Figure 2. For this component, we follow the approach in (Chen et al., 2017a) First, a feature vector $\mathrm { e m } _ { i }$ is created for each word in $C$ to indicate whether the word occurs in the question $Q$ . Second, attention-based fusion on GloVe embedding $\mathbf { \nabla } _ { \mathbf { \boldsymbol { g } } _ { i } }$ is used
139
+
140
+ $$
141
+ \hat { g } _ { i } ^ { C } = \sum _ { j } \alpha _ { i j } g _ { j } ^ { Q } , \quad \alpha _ { i j } \propto \exp ( S ( g _ { i } ^ { C } , g _ { j } ^ { Q } ) ) , \quad S ( x , y ) = \mathrm { R e L U } ( W x ) ^ { T } \mathrm { R e L U } ( W y ) ,
142
+ $$
143
+
144
+ where $W \in \mathbb { R } ^ { 3 0 0 \times 3 0 0 }$ . Since history-of-word is the input vector itself, fully-aware attention is not employed here. The enhanced input vector for context is $\mathbf { \tilde { w } } _ { i } ^ { C } = [ \mathbf { w } _ { i } ^ { C } ; \mathrm { e m } _ { i } ; \bar { \mathbf { g } } _ { i } ^ { C } ]$ .
145
+
146
+ Reading. In the reading component, we use a separate bidirectional LSTM (BiLSTM) to form low-level and high-level concepts for $C$ and $Q$ .
147
+
148
+ $$
149
+ { h } _ { 1 } ^ { C l } , \dots , { h } _ { m } ^ { C l } = \mathrm { B i L S T M } ( \tilde { w } _ { 1 } ^ { C } , \dots , \tilde { w } _ { m } ^ { C } ) , \quad { h } _ { 1 } ^ { Q l } , \dots , { h } _ { n } ^ { Q l } = \mathrm { B i L S T M } ( w _ { 1 } ^ { Q } , \dots , w _ { n } ^ { Q } ) ,
150
+ $$
151
+
152
+ $$
153
+ { h } _ { 1 } ^ { C h } , \ldots , { h } _ { m } ^ { C h } = \mathrm { B i L S T M } ( { h } _ { 1 } ^ { C l } , \ldots , { h } _ { m } ^ { C l } ) , \quad { h } _ { 1 } ^ { Q h } , \ldots , { h } _ { n } ^ { Q h } = \mathrm { B i L S T M } ( { h } _ { 1 } ^ { Q l } , \ldots , { h } _ { n } ^ { Q l } ) .
154
+ $$
155
+
156
+ Hence low-level and high-level concepts $h ^ { l } , h ^ { h } \in \mathbb { R } ^ { 2 5 0 }$ are created for each word.
157
+
158
+ Question Understanding. In the Question Understanding component, we apply a new BiLSTM taking in both ${ h ^ { Q l } , h ^ { Q h } }$ to obtain the final question representation $U _ { Q }$ :
159
+
160
+ $$
161
+ \begin{array} { r } { U _ { Q } = \{ \boldsymbol { { u } } _ { 1 } ^ { Q } , \ldots , \boldsymbol { { u } } _ { n } ^ { Q } \} = \mathrm { { B i L S T M } } ( [ \boldsymbol { h } _ { 1 } ^ { Q l } ; \boldsymbol { h } _ { 1 } ^ { Q h } ] , \ldots , [ \boldsymbol { h } _ { n } ^ { Q l } ; \boldsymbol { h } _ { n } ^ { Q h } ] ) . } \end{array}
162
+ $$
163
+
164
+ where $\{ \boldsymbol { u } _ { i } ^ { Q } \in \mathbb { R } ^ { 2 5 0 } \} _ { i = 1 } ^ { n }$ are the understanding vectors for $Q$
165
+
166
+ Fully-Aware Multi-level Fusion: Higher-level. This component fuses all higher-level information in the question $Q$ to the context $C$ through fully-aware attention on history-of-word. Since the proposed attention scoring function for fully-aware attention is constrained to be symmetric, we need to identify the common history-of-word for both $C , Q$ . This yields
167
+
168
+ $$
169
+ \mathrm { H o W } _ { i } ^ { C } = [ \pmb { g } _ { i } ^ { C } ; \pmb { c } _ { i } ^ { C } ; \pmb { h } _ { i } ^ { C l } ; \pmb { h } _ { i } ^ { C h } ] , ~ \mathrm { H o W } _ { i } ^ { Q } = [ \pmb { g } _ { i } ^ { Q } ; \pmb { c } _ { i } ^ { Q } ; \pmb { h } _ { i } ^ { Q l } ; \pmb { h } _ { i } ^ { Q h } ] \in \mathbb { R } ^ { 1 4 0 0 } ,
170
+ $$
171
+
172
+ where $\mathbf { \pmb { g } } _ { i }$ is the GloVe embedding and $c _ { i }$ is the CoVe embedding. Then we fuse low, high, and understanding-level information from $Q$ to $C$ via fully-aware attention. Different sets of attention weights are calculated through attention function $S ^ { \tilde { l } } ( x , y ) , S ^ { h } ( x , y ) , S ^ { u } ( x , y )$ to combine low, high, and understanding-level of concepts. All three functions are the proposed symmetric form with nonlinearity in Section 2.3, but are parametrized by independent parameters to attend to different regions for different level. Attention hidden size is set to be $k = 2 5 0$ .
173
+
174
+ $$
175
+ \begin{array} { r } { \hat { \boldsymbol { h } } _ { i } ^ { C l } = \sum _ { j } \alpha _ { i j } ^ { l } \boldsymbol { h } _ { j } ^ { Q l } , \quad \alpha _ { i j } ^ { l } \propto \exp ( S ^ { l } ( \mathrm { H o W } _ { i } ^ { C } , \mathrm { H o W } _ { j } ^ { Q } ) ) . } \end{array}
176
+ $$
177
+
178
+ 2. High-level fusion: $\begin{array} { r } { \hat { \boldsymbol { \mathsf { h } } } _ { i } ^ { C h } = \sum _ { j } \alpha _ { i j } ^ { h } \boldsymbol { h } _ { j } ^ { Q h } , \quad \alpha _ { i j } ^ { h } \propto \exp ( S ^ { h } ( \mathrm { H o W } _ { i } ^ { C } , \mathrm { H o W } _ { j } ^ { Q } ) ) . } \end{array}$
179
+
180
+ This multi-level attention mechanism captures different levels of information independently, while taking all levels of information into account. A new BiLSTM is applied to obtain the representation for $C$ fully fused with information in the question $Q$ :
181
+
182
+ $$
183
+ \{ \pmb { v } _ { 1 } ^ { C } , \ldots , \pmb { v } _ { m } ^ { C } \} = \mathrm { B i L S T M } ( [ { \pmb { h } } _ { 1 } ^ { C l } ; { \pmb { h } } _ { 1 } ^ { C h } ; { \hat { \pmb { h } } } _ { 1 } ^ { C l } ; { \hat { \pmb { h } } } _ { 1 } ^ { C h } ; { \hat { \pmb { u } } } _ { 1 } ^ { C l } ] , \ldots , [ { \pmb { h } } _ { m } ^ { C l } ; { \pmb { h } } _ { m } ^ { C h } ; { \hat { \pmb { h } } } _ { m } ^ { C l } ; { \hat { \pmb { h } } } _ { m } ^ { C h } ; { \hat { \pmb { u } } } _ { m } ^ { C } ] ) .
184
+ $$
185
+
186
+ Fully-Aware Self-Boosted Fusion. We now use self-boosted fusion to consider distant parts in the context, as illustrated by arrow (3) in Figure 2. Again, we achieve this via fully-aware attention on history-of-word. We identify the history-of-word to be
187
+
188
+ $$
189
+ \operatorname { H o W } _ { i } ^ { C } = [ \pmb { g } _ { i } ^ { C } ; \pmb { c } _ { i } ^ { C } ; \pmb { h } _ { i } ^ { C l } ; \pmb { h } _ { i } ^ { C h } ; \hat { \pmb { h } } _ { i } ^ { C l } ; \hat { \pmb { h } } _ { i } ^ { C h } ; \hat { \pmb { u } } _ { i } ^ { C } ; \pmb { v } _ { i } ^ { C } ] \in \mathbb { R } ^ { 2 4 0 0 } .
190
+ $$
191
+
192
+ We then perform fully-aware attention, $\begin{array} { r } { \hat { \pmb v } _ { i } ^ { C } = \sum _ { j } \alpha _ { i j } ^ { s } \pmb { v } _ { j } ^ { C } , \alpha _ { i j } ^ { s } \propto \exp ( S ^ { s } ( \mathrm { H o W } _ { i } ^ { C } , \mathrm { H o W } _ { j } ^ { C } ) ) . } \end{array}$ The final context representation is obtained by
193
+
194
+ $$
195
+ U _ { C } = \{ \pmb { u } _ { 1 } ^ { C } , \ldots , \pmb { u } _ { m } ^ { C } \} = \mathrm { B i L S T M } ( [ \pmb { v } _ { 1 } ^ { C } ; \hat { \pmb { v } } _ { 1 } ^ { C } ] , \ldots , [ \pmb { v } _ { m } ^ { C } ; \hat { \pmb { v } } _ { m } ^ { C } ] ) .
196
+ $$
197
+
198
+ $\{ \boldsymbol { u } _ { i } ^ { C } \in \mathbb { R } ^ { 2 5 0 } \} _ { i = 1 } ^ { m }$ are the understanding vectors for $C$
199
+
200
+ After these components in FusionNet, we have created the understanding vectors, $U _ { C }$ , for the context $C$ , which are fully fused with the question $Q$ . We also have the understanding vectors, $U _ { Q }$ , for the question $Q$ .
201
+
202
+ # 3.2 APPLICATION IN MACHINE COMPREHENSION
203
+
204
+ We focus particularly on the output format in $\mathrm { S Q u A D }$ (Rajpurkar et al., 2016) where the answer is always a span in the context. The output of FusionNet are the understanding vectors for both $C$ and $Q$ , $U _ { C } = \{ \mathbf { { u } } _ { 1 } ^ { C } , \dots , \mathbf { { u } } _ { m } ^ { C } \}$ , $U _ { Q } = \{ \bar { \pmb { u } } _ { 1 } ^ { Q } , \dots , \pmb { u } _ { n } ^ { Q } \}$ .
205
+
206
+ We then use them to find the answer span in the context. Firstly, a single summarized question understanding vector is obtained through $\begin{array} { r } { { \pmb u } ^ { Q } = \sum _ { i } \beta _ { i } { \pmb u } _ { i } ^ { Q } } \end{array}$ , where $\beta _ { i } \propto \mathrm { { e x p } } ( { \pmb w } ^ { T } { \pmb u } _ { i } ^ { Q } )$ and $\pmb { w }$ is a trainable vector. Then we attend for the span start using the summarized question understanding vector $\pmb { u } ^ { Q }$ ,
207
+
208
+ $$
209
+ P _ { i } ^ { S } \propto \exp ( ( \boldsymbol { \mathbf { \mathit { u } } } ^ { Q } ) ^ { T } W _ { S } \boldsymbol { \mathbf { \mathit { u } } } _ { i } ^ { C } ) ,
210
+ $$
211
+
212
+ where $W _ { S } \in \mathbb { R } ^ { d \times d }$ is a trainable matrix. To use the information of the span start when we attend for the span end, we combine the context understanding vector for the span start with $\pmb { u } ^ { Q }$ through a GRU (Cho et al., 2014), $\begin{array} { r } { { \pmb v } ^ { Q } = \mathrm { G R U } ( { \pmb u } ^ { Q } , \sum _ { i } P _ { i } ^ { S } { \pmb u } _ { i } ^ { \top } ) } \end{array}$ , where $\pmb { u } ^ { Q }$ is taken as the memory and $\textstyle \sum _ { i } P _ { i } ^ { S } { \boldsymbol { u } } _ { i } ^ { C }$ as the input in GRU. Finally we attend for the end of the span using $v ^ { Q }$ ,
213
+
214
+ $$
215
+ P _ { i } ^ { E } \propto \exp ( ( \pmb { v } ^ { Q } ) ^ { T } W _ { E } \pmb { u } _ { i } ^ { C } ) ,
216
+ $$
217
+
218
+ where $W _ { E } \in \mathbb { R } ^ { d \times d }$ is another trainable matrix.
219
+
220
+ Training. During training, we maximize the log probabilities of the ground truth span start and end, $\begin{array} { r } { \sum _ { k } ( \log \mathsf { \bar { ( } } P _ { i _ { k } ^ { s } } ^ { S } ) + \mathsf { \bar { l o g } } ( P _ { i _ { k } ^ { e } } ^ { E } ) ) } \end{array}$ , where $i _ { k } ^ { s } , i _ { k } ^ { e }$ are the answer span for the $k$ -th instance.
221
+
222
+ Prediction. We predict the answer span to be $i ^ { s } , i ^ { e }$ with the maximum $P _ { i ^ { s } } ^ { S } P _ { i ^ { e } } ^ { E }$ under the constraint $0 \leq i ^ { e } - i ^ { s } \leq 1 5$ .
223
+
224
+ # 4 EXPERIMENTS
225
+
226
+ In this section, we first present the datasets used for evaluation. Then we compare our end-toend FusionNet model with existing machine reading models. Finally, we conduct experiments to validate the effectiveness of our proposed components. Additional ablation study on input vectors can be found in Appendix C. Detailed experimental settings can be found in Appendix E.
227
+
228
+ # 4.1 DATASETS
229
+
230
+ We focus on the SQuAD dataset (Rajpurkar et al., 2016) to train and evaluate our model. SQuAD is a popular machine comprehension dataset consisting of $1 0 0 { , } 0 0 0 { + }$ questions created by crowd workers on 536 Wikipedia articles. Each context is a paragraph from an article and the answer to each question is guaranteed to be a span in the context.
231
+
232
+ While rapid progress has been made on SQuAD, whether these systems truly understand language remains unclear. In a recent paper, Jia & Liang (2017) proposed several adversarial schemes to test the understanding of the systems. We will use the following two adversarial datasets, AddOneSent and AddSent, to evaluate our model. For both datasets, a confusing sentence is appended at the end of the context. The appended sentence is model-independent for AddOneSent, while AddSent requires querying the model a few times to choose the most confusing sentence.
233
+
234
+ # 4.2 MAIN RESULTS
235
+
236
+ We submitted our model to SQuAD for evaluation on the hidden test set. We also tested the model on the adversarial SQuAD datasets. Two official evaluation criteria are used: Exact Match (EM) and F1 score. EM measures how many predicted answers exactly match the correct answer, while F1 score measures the weighted average of the precision and recall at token level. The evaluation results for our model and other competing approaches are shown in Table 2.1 Additional comparisons with state-of-the-art models in the literature can be found in Appendix A.
237
+
238
+ For the two adversarial datasets, AddOneSent and AddSent, the evaluation criteria is the same as SQuAD. However, all models are trained only on the original SQuAD, so the model never sees the
239
+
240
+ <table><tr><td>AddSent</td><td>EM/F1</td></tr><tr><td>LRBaseline</td><td>17.0/23.2</td></tr><tr><td>Match-LSTM (E) BiDAF (E)</td><td>24.3 /34.2 29.6 /34.2</td></tr><tr><td>SEDT (E) Mnemonic Reader (S)</td><td>30.0 /35.0</td></tr><tr><td>Mnemonic Reader (E)</td><td>39.8/46.6</td></tr><tr><td></td><td>40.7 / 46.2</td></tr><tr><td>ReasoNet (E) FusionNet (E)</td><td>34.6 /39.4 46.2 / 51.4</td></tr></table>
241
+
242
+ Table 2: The performance of FusionNet and competing approaches on SQuAD hidden test set at the time of writing (Oct. 4th, 2017).
243
+
244
+ <table><tr><td>AddOneSent</td><td>EM/F1</td></tr><tr><td>LRBaseline Match-LSTM (E)</td><td>22.3/30.4 34.8 / 41.8</td></tr><tr><td>BiDAF (E) SEDT (E)</td><td>40.7 /46.9 40.0 / 46.5</td></tr><tr><td>Mnemonic Reader (S)</td><td>48.5 /56.0</td></tr><tr><td>Mnemonic Reader (E)</td><td>48.7 / 55.3</td></tr><tr><td>ReasoNet (E) FusionNet (E)</td><td>43.6 /49.8</td></tr></table>
245
+
246
+ Table 3: Comparison on AddSent. (S: Single model, E: Ensemble)
247
+
248
+ <table><tr><td>Single Model</td><td>Test Set EM/F1</td></tr><tr><td>LR Baseline (Rajpurkar et al., 2016) Match-LSTM (Wang &amp; Jiang,2016) BiDAF (Seo et al., 2017) SEDT (Liu et al., 2017) RaSoR (Lee et al., 2016) DrQA (Chen et al., 2017a) ReasoNet (Shen et al.,2017) R.Mnemonic Reader (Hu et al., 2017) DCN+ R-nett FusionNet</td><td>40.4 /51.0 64.7/73.7 68.0 / 77.3 68.2 /77.5 70.8/78.7 70.7 /79.4 70.6 / 79.4 73.2/81.8 74.9 / 82.8 75.7 /83.5 76.0 / 83.9</td></tr><tr><td>EnsembleModel ReasoNet (Shen et al., 2017) MEMEN (Pan et al., 2017) R.Mnemonic Reader (Hu et al., 2017) R-nett DCN+ FusionNet</td><td>75.0 / 82.3 75.4/82.7 77.7 / 84.9 78.2/85.2 78.7 / 85.6</td></tr><tr><td>Human (Rajpurkar et al., 2016)</td><td>78.8 / 85.9 82.3/91.2</td></tr></table>
249
+
250
+ Table 4: Comparison on AddOneSent. (S: Single model, E: Ensemble)
251
+
252
+ adversarial datasets during training. The results for AddSent and AddOneSent are shown in Table 3
253
+ and Table 4, respectively.2
254
+
255
+ From the results, we can see that our models not only perform well on the original SQuAD dataset, but also outperform all previous models by more than $5 \%$ in EM score on the adversarial datasets. This shows that FusionNet is better at language understanding of both the context and question.
256
+
257
+ # 4.3 COMPARISON ON ATTENTION FUNCTION
258
+
259
+ In this experiment, we compare the performance of different attention scoring functions $S ( { \pmb x } , { \pmb y } )$ for fully-aware attention. We utilize the end-to-end architecture presented in Section 3.1. Fully-aware attention is used in two places, fully-aware multi-level fusion: higher level and fully-aware selfboosted fusion. Word-level fusion remains unchanged. Based on the discussion in Section 2.3, we consider the following formulations for comparison:
260
+
261
+ 1. Additive attention (MLP) (Bahdanau et al., 2015): $\pmb { s } ^ { T } \operatorname { t a n h } ( W _ { 1 } \pmb { x } + W _ { 2 } \pmb { y } ) .$ 1
262
+ 2. Multiplicative attention: $\pmb { x } ^ { T } \pmb { U } ^ { T } \pmb { V } \pmb { y }$ .
263
+ 3. Scaled multiplicative attention: $\scriptstyle { \frac { 1 } { \sqrt { k } } } x ^ { T } U ^ { T } V y$ , where $k$ is the attention hidden size. It is
264
+ proposed in (Vaswani et al., 2017).
265
+ 4. Scaled multiplicative with nonlinearity: $\begin{array} { r } { \frac { 1 } { \sqrt { k } } f ( U \pmb { x } ) ^ { T } f ( V \pmb { y } ) } \end{array}$ .
266
+ 5. Our proposed symmetric form: $\pmb { x } ^ { T } \pmb { U } ^ { T } \pmb { D } \pmb { U } \pmb { y }$ , where $D$ is diagonal.
267
+ 6. Proposed symmetric form with nonlinearity: $f ( U \mathbf { x } ) ^ { T } D f ( U \mathbf { y } )$ .
268
+
269
+ We consider the activation function $f ( x )$ to be $\operatorname* { m a x } ( 0 , x )$ . The results of various attention functions on SQuAD development set are shown in Table 5. It is clear that the symmetric form consistently outperforms all alternatives. We attribute this gain to the fact that symmetric form has a single large matrix $U$ . All other alternatives have two large parametric matrices. During optimization, these two parametric matrices would interfere with each other and it will make the entire optimization process challenging. Besides, by constraining $U ^ { T } V$ to be a symmetric matrix $U ^ { T } D U$ , we retain the ability for $_ { \textbf { \em x } }$ to attend to dissimilar $\textbf { { y } }$ . Furthermore, its marriage with the nonlinearity continues to significantly boost the performance.
270
+
271
+ Table 5: Comparison of different attention functions $S ( { \pmb x } , { \pmb y } )$ on SQuAD dev set.
272
+
273
+ <table><tr><td rowspan=1 colspan=1>Attention Function</td><td rowspan=1 colspan=1>EM/F1</td></tr><tr><td rowspan=1 colspan=1>Additive (MLP)</td><td rowspan=2 colspan=1>71.8/ 80.172.1 / 80.672.4 / 80.772.6 / 80.8</td></tr><tr><td rowspan=1 colspan=1>MultiplicativeScaled MultiplicativeScaled Multiplicative + ReLU</td></tr><tr><td rowspan=1 colspan=1>Symmetric FormSymmetric Form + ReLU</td><td rowspan=1 colspan=1>73.1 /81.575.3 / 83.6</td></tr><tr><td rowspan=1 colspan=1>Previous SotA (Hu et al., 2017)</td><td rowspan=1 colspan=1>72.1/ 81.6</td></tr></table>
274
+
275
+ Table 6: Comparison of different configurations demonstrates the effectiveness of history-of-word.
276
+
277
+ <table><tr><td rowspan=1 colspan=2>ConfigurationC,Q Fusion Self C</td><td rowspan=1 colspan=1>EM/F1</td></tr><tr><td rowspan=1 colspan=1>High-LevelFA High-LevelFA All-LevelFA Multi-Level</td><td rowspan=1 colspan=1>None</td><td rowspan=1 colspan=1>64.6/73.273.3 /81.472.3 / 80.774.6 / 82.7</td></tr><tr><td rowspan=1 colspan=1>FA Multi-Level</td><td rowspan=1 colspan=1>NormalFA</td><td rowspan=1 colspan=1>74.4 / 82.675.3 / 83.6</td></tr><tr><td rowspan=1 colspan=2>Previous SotA (Hu et al., 2017)</td><td rowspan=1 colspan=1>72.1/ 81.6</td></tr></table>
278
+
279
+ # 4.4 EFFECTIVENESS OF HISTORY-OF-WORD
280
+
281
+ In FusionNet, we apply the history-of-word and fully-aware attention in two major places to achieve good performance: multi-level fusion and self-boosted fusion. In this section, we present experiments to demonstrate the effectiveness of our application. In the experiments, we fix the attention function to be our proposed symmetric form with nonlinearity due to its good performance shown in Section 4.3. The results are shown in Table 6, and the details for each configuration can be found in Appendix B.
282
+
283
+ High-Level is a vanilla model where only the high-level information is fused from $Q$ to $C$ via standard attention. When placed in the conceptual architecture (Figure 2), it only contains arrow (2) without any other fusion processes.
284
+
285
+ FA High-Level is the High-Level model with standard attention replaced by fully-aware attention.
286
+
287
+ FA All-Level is a naive extension of FA High-Level, where all levels of information are concatenated and is fused into the context using the same attention weight.
288
+
289
+ FA Multi-Level is our proposed Fully-aware Multi-level fusion, where different levels of information are attended under separate attention weight.
290
+
291
+ Self $C = \mathbf { N o n e }$ means we do not make use of self-boosted fusion.
292
+
293
+ Self $C = \mathrm { { N o r m a l } }$ means we employ a standard attention-based self-boosted fusion after fusing question to context. This is illustrated as arrow (3) in the conceptual architecture (Figure 2).
294
+
295
+ Self $C = \mathbf { F } \mathbf { A }$ means we enhance the self-boosted fusion with fully-aware attention.
296
+
297
+ High-Level vs. FA High-Level. From Table 6, we can see that High-Level performs poorly as expected. However enhancing this vanilla model with fully-aware attention significantly increase the performance by more than $8 \%$ . The performance of FA High-Level already outperforms many state-of-the-art MRC models. This clearly demonstrates the power of fully-aware attention.
298
+
299
+ FA All-Level vs. FA Multi-Level. Next, we consider models that fuse all levels of information from question $Q$ to context $C$ . FA All-Level is a naive extension of FA High-Level, but its performance is actually worse than $F A$ High-Level. However, by fusing different parts of history-of-word in $Q$ independently as in $F A$ Multi-Level, we are able to further improve the performance.
300
+
301
+ Self $C$ options. We have achieved decent performance without self-boosted fusion. Now, we compare adding normal and fully-aware self-boosted fusion into the architecture. Comparing None and Normal in Table 6, we can see that the use of normal self-boosted fusion is not very effective under our improved $C , Q$ Fusion. Then by comparing with $F A$ , it is clear that through the enhancement of fully-aware attention, the enhanced self-boosted fusion can provide considerable improvement.
302
+
303
+ Together, these experiments demonstrate that the ability to take all levels of understanding as a whole is crucial for machines to better understand the text.
304
+
305
+ # 5 CONCLUSIONS
306
+
307
+ In this paper, we describe a new deep learning model called FusionNet with its application to machine comprehension. FusionNet proposes a novel attention mechanism with following three contributions: 1. the concept of history-of-word to build the attention using complete information from the lowest word-level embedding up to the highest semantic-level representation; 2. an attention scoring function to effectively and efficiently utilize history-of-word; 3. a fully-aware multi-level fusion to exploit information layer by layer discriminatingly. We applied FusionNet to MRC task and experimental results show that FusionNet outperforms existing machine reading models on both the SQuAD dataset and the adversarial SQuAD dataset. We believe FusionNet is a general and improved attention mechanism and can be applied to many tasks. Our future work is to study its capability in other NLP problems.
308
+
309
+ # ACKNOWLEDGMENTS
310
+
311
+ We would like to thank Paul Mineiro, Sebastian Kochman, Pengcheng He, Jade Huang and Jingjing Liu from Microsoft Business AI, Mac-Antoine Rondeau from Maluuba and the anonymous reviewers for their valuable comments and tremendous help in this paper.
312
+
313
+ # REFERENCES
314
+
315
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. ICLR, 2015.
316
+
317
+ Samuel R. Bowman, Gabor Angeli, Christopher Potts, and Christopher D. Manning. A large annotated corpus for learning natural language inference. In EMNLP, 2015.
318
+
319
+ Denny Britz, Anna Goldie, Thang Luong, and Quoc Le. Massive exploration of neural machine translation architectures. arXiv preprint arXiv:1703.03906, 2017.
320
+
321
+ Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. Reading wikipedia to answer opendomain questions. arXiv preprint arXiv:1704.00051, 2017a.
322
+
323
+ Qian Chen, Xiaodan Zhu, Zhenhua Ling, Si Wei, and Hui Jiang. Enhancing and combining sequential and tree lstm for natural language inference. ACL, 2017b.
324
+
325
+ Kyunghyun Cho, Bart Van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Hol- ¨ ger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. EMNLP, 2014.
326
+
327
+ Yarin Gal and Zoubin Ghahramani. A theoretically grounded application of dropout in recurrent neural networks. In NIPS, 2016.
328
+
329
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 1997.
330
+
331
+ Minghao Hu, Yuxing Peng, and Xipeng Qiu. Reinforced mnemonic reader for machine comprehension. arXiv preprint arXiv:1705.02798, 2017.
332
+
333
+ Robin Jia and Percy Liang. Adversarial examples for evaluating reading comprehension systems. EMNLP, 2017.
334
+
335
+ Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
336
+
337
+ Kenton Lee, Shimi Salant, Tom Kwiatkowski, Ankur Parikh, Dipanjan Das, and Jonathan Berant. Learning recurrent span representations for extractive question answering. arXiv preprint arXiv:1611.01436, 2016.
338
+
339
+ Rui Liu, Junjie Hu, Wei Wei, Zi Yang, and Eric Nyberg. Structural embedding of syntactic trees for machine comprehension. arXiv preprint arXiv:1703.00572, 2017.
340
+ B. McCann, J. Bradbury, C. Xiong, and R. Socher. Learned in Translation: Contextualized Word Vectors. arXiv preprint arXiv:1708.00107, 2017.
341
+ Boyuan Pan, Hao Li, Zhou Zhao, Bin Cao, Deng Cai, and Xiaofei He. Memen: Multi-layer embedding with memory networks for machine comprehension. arXiv preprint arXiv:1707.09098, 2017.
342
+ Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In EMNLP, 2014.
343
+ Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: $1 0 0 { , } 0 0 0 { + }$ questions for machine comprehension of text. EMNLP, 2016.
344
+ Minjoon Seo, Aniruddha Kembhavi, Ali Farhadi, and Hannaneh Hajishirzi. Bidirectional attention flow for machine comprehension. In ICLR, 2017.
345
+ Yelong Shen, Po-Sen Huang, Jianfeng Gao, and Weizhu Chen. Reasonet: Learning to stop reading in machine comprehension. In KDD, 2017.
346
+ Nitish Srivastava, Geoffrey E Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. JMLR, 2014.
347
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. 2017.
348
+ Shuohang Wang and Jing Jiang. Machine comprehension using match-lstm and answer pointer. arXiv preprint arXiv:1608.07905, 2016.
349
+ Wenhui Wang, Nan Yang, Furu Wei, Baobao Chang, and Ming Zhou. Gated self-matching networks for reading comprehension and question answering. In ACL, 2017.
350
+ Zhiguo Wang, Haitao Mi, Wael Hamza, and Radu Florian. Multi-perspective context matching for machine comprehension. arXiv preprint arXiv:1612.04211, 2016.
351
+ Dirk Weissenborn, Georg Wiese, and Laura Seiffe. Making neural qa as simple as possible but not simpler. In CoNLL, 2017.
352
+ Adina Williams, Nikita Nangia, and Samuel R Bowman. A broad-coverage challenge corpus for sentence understanding through inference. arXiv preprint arXiv:1704.05426, 2017.
353
+ Caiming Xiong, Victor Zhong, and Richard Socher. Dynamic coattention networks for question answering. ICLR, 2017.
354
+
355
+ # A COMPARISON WITH PUBLISHED MODELS
356
+
357
+ In this appendix, we compare with published state-of-the-art architectures on the SQuAD dev set. The comparison is shown in Figure 5 and 6 for EM and F1 score respectively. The performance of FusionNet is shown under different training epochs. Each epoch loops through all the examples in the training set once. On a single NVIDIA GeForce GTX Titan X GPU, each epoch took roughly 20 minutes when batch size 32 is used.
358
+
359
+ The state-of-the-art models compared in this experiment include:
360
+ 1. Published version of R-net in their technical report (Wang et al., 2017),
361
+ 2. Reinforced Mnemonic Reader (Hu et al., 2017), 3. MEMEN (Pan et al., 2017),
362
+ 4. ReasoNet (Shen et al., 2017), 5. Document reader (DrQA) (Chen et al., 2017a),
363
+ 6. DCN (Xiong et al., 2017), 7. DCN $^ +$ character embedding (Char) $^ +$ CoVe (McCann et al., 2017),
364
+ 8. BiDAF (Seo et al., 2017), 9. the best-performing variant of Match-LSTM (Wang & Jiang, 2016).
365
+
366
+ ![](images/83cd5a9f9a0174460ffcd39b92ddb060f758e9749cab54075cd31bb5c5f087b2.jpg)
367
+ Figure 5: EM score on the SQuAD dev set under different training epoch.
368
+
369
+ ![](images/d8a5b20b41be47ba0875b1e75dbb679e81f4e2b06dd71346b750da38f888986b.jpg)
370
+ Figure 6: F1 score on the SQuAD dev set under different training epoch.
371
+
372
+ # B DETAILED CONFIGURATIONS IN THE ABLATION STUDY
373
+
374
+ In this appendix, we present details for the configurations used in the ablation study in Section 4.4. For all configurations, the understanding vectors for both the context $C$ and the question $Q$ will be generated, then we follow the same output architecture in Section 3.2 to apply them to machine reading comprehension problem.
375
+
376
+ High-Level. Firstly, context words and question words are transformed into input vectors in the same way as FusionNet,
377
+
378
+ $$
379
+ \{ \pmb { w } _ { 1 } ^ { C } , \ldots , \pmb { w } _ { m } ^ { C } \} , \quad \{ \pmb { w } _ { 1 } ^ { Q } , \ldots , \pmb { w } _ { n } ^ { Q } \} .
380
+ $$
381
+
382
+ Then we pass them independently to two layers of BiLSTM.
383
+
384
+ $$
385
+ \begin{array} { r l } & { h _ { 1 } ^ { C l } , \ldots , h _ { m } ^ { C l } = \mathrm { B i L S T M } ( w _ { 1 } ^ { C } , \ldots , w _ { m } ^ { C } ) , \quad h _ { 1 } ^ { Q l } , \ldots , h _ { n } ^ { Q l } = \mathrm { B i L S T M } ( w _ { 1 } ^ { Q } , \ldots , w _ { n } ^ { Q } ) , } \\ & { h _ { 1 } ^ { C h } , \ldots , h _ { m } ^ { C h } = \mathrm { B i L S T M } ( h _ { 1 } ^ { C l } , \ldots , h _ { m } ^ { C l } ) , \quad h _ { 1 } ^ { Q h } , \ldots , h _ { n } ^ { Q h } = \mathrm { B i L S T M } ( h _ { 1 } ^ { Q l } , \ldots , h _ { n } ^ { Q l } ) . } \end{array}
386
+ $$
387
+
388
+ Next we consider the standard attention-based fusion for the high level representation.
389
+
390
+ $$
391
+ \hat { \boldsymbol { h } } _ { i } ^ { C h } = \sum _ { j } \alpha _ { i j } \boldsymbol { h } _ { j } ^ { Q h } , \quad \alpha _ { i j } = \frac { \exp ( S _ { i j } ) } { \sum _ { k } \exp ( S _ { i k } ) } , \quad S _ { i j } = S ( \boldsymbol { h } _ { i } ^ { C h } , \boldsymbol { h } _ { j } ^ { Q h } ) .
392
+ $$
393
+
394
+ Then we concatenate the attended vector $\hat { h } _ { i } ^ { C h }$ with the original high level representation $h _ { i } ^ { C h }$ and pass through two layers of BiLSTM to fully mix the two information. The understanding vectors for the context is the hidden vectors in the final layers of the BiLSTM.
395
+
396
+ $$
397
+ \pmb { u } _ { 1 } ^ { C } , \ldots , \pmb { u } _ { m } ^ { C } = \mathrm { B i L S T M } ( [ \pmb { h } _ { 1 } ^ { C h } ; \hat { \pmb { h } } _ { 1 } ^ { C h } ] , \dots , [ \pmb { h } _ { m } ^ { C h } ; \hat { \pmb { h } } _ { m } ^ { C h } ] )
398
+ $$
399
+
400
+ The understanding vectors for the question is the high level representation itself,
401
+
402
+ $$
403
+ \begin{array} { r } { { \pmb u } _ { 1 } ^ { Q } , \dots , { \pmb u } _ { n } ^ { Q } = { \pmb h } _ { 1 } ^ { Q h } , \dots , { \pmb h } _ { n } ^ { Q h } . } \end{array}
404
+ $$
405
+
406
+ Now we have obtained the understanding vectors for both the context and the question. The answer can thus be found. Neither word-level fusion (1) nor self-boosted fusion (3, 3’) in Figure 2 are used.
407
+
408
+ FA High-Level. The only difference to High-Level is the enhancement of fully-aware attention. This is as simple as changing
409
+
410
+ $$
411
+ S _ { i j } = S ( { h _ { i } ^ { C h } } , { h _ { j } ^ { Q h } } ) \quad \Longrightarrow \qquad S _ { i j } = S ( [ g _ { i } ^ { C } ; { c _ { i } ^ { C } } ; { h _ { i } ^ { C l } } ; { h _ { i } ^ { C h } } ] , [ g _ { j } ^ { Q } ; { c _ { j } ^ { Q } } ; { h _ { j } ^ { Q l } } ; { h _ { j } ^ { Q h } } ] ) ,
412
+ $$
413
+
414
+ where $[ g _ { i } ; c _ { i } ; h _ { i } ^ { l } ; h _ { i } ^ { h } ]$ is the common history-of-word for both context and question. All other places remains the same as High-Level. This simple change results in significant improvement. The performance of $F A$ High-Level can already outperform many state-of-the-art models in the literature. Note that our proposed symmetric form with nonlinearity should be used to guarantee the boost.
415
+
416
+ FA All-Level. First, we use the same procedure as High-Level to obtain
417
+
418
+ $$
419
+ \begin{array} { r l } { \{ \pmb { w } _ { 1 } ^ { C } , \ldots , \pmb { w } _ { m } ^ { C } \} , } & { \{ \pmb { w } _ { 1 } ^ { Q } , \ldots , \pmb { w } _ { n } ^ { Q } \} , } \\ & { \{ \pmb { h } _ { 1 } ^ { C l } , \ldots , \pmb { h } _ { m } ^ { C l } \} , \quad \{ \pmb { h } _ { 1 } ^ { Q l } , \ldots , \pmb { h } _ { n } ^ { Q l } \} , } \\ & { \{ \pmb { h } _ { 1 } ^ { C h } , \ldots , \pmb { h } _ { m } ^ { C h } \} , \quad \{ \pmb { h } _ { 1 } ^ { Q h } , \ldots , \pmb { h } _ { n } ^ { Q h } \} . } \end{array}
420
+ $$
421
+
422
+ Next we make use of the fully-aware attention similar to $F A$ High-Level, but take back the entire history-of-word.
423
+
424
+ $$
425
+ \begin{array} { c } { \displaystyle \alpha _ { i j } = \frac { \exp ( S _ { i j } ) } { \sum _ { k } \exp ( S _ { i k } ) } , \quad { S _ { i j } = S ( [ g _ { i } ^ { C } ; c _ { i } ^ { C } ; h _ { i } ^ { C l } ; h _ { i } ^ { C h } ] , [ g _ { j } ^ { Q } ; c _ { j } ^ { Q } ; h _ { j } ^ { Q l } ; h _ { j } ^ { Q h } ] ) } , } \\ { \displaystyle { \mathrm { H o W } _ { i } ^ { C } = \sum _ { j } \alpha _ { i j } [ g _ { j } ^ { Q } ; c _ { j } ^ { Q } ; h _ { j } ^ { Q l } ; h _ { j } ^ { Q h } ] } . } \end{array}
426
+ $$
427
+
428
+ Then we concatenate the attended history-of-word $\mathrm { H } \mathrm { \hat { o } } \mathrm { W } _ { i } ^ { C }$ with the original history-of-word $[ { \pmb g } _ { i } ^ { C } ; { \pmb c } _ { i } ^ { C } ; { \pmb h } _ { i } ^ { C l } ; { \pmb h } _ { i } ^ { C h } ]$ i and pass through two layers of BiLSTM to fully mix the two information. The understanding vectors for the context is the hidden vectors in the final layers of the BiLSTM.
429
+
430
+ $$
431
+ \pmb { u } _ { 1 } ^ { C } , \dots , \pmb { u } _ { m } ^ { C } = \mathrm { B i L S T M } ( [ g _ { 1 } ^ { C } ; c _ { 1 } ^ { C } ; h _ { 1 } ^ { C l } ; h _ { 1 } ^ { C h } ; \mathrm { H \hat { o } W } _ { 1 } ^ { C } ] , \dots , [ g _ { m } ^ { C } ; c _ { m } ^ { C } ; h _ { m } ^ { C l } ; h _ { m } ^ { C h } ; \mathrm { H \hat { o } W } _ { m } ^ { C } ] )
432
+ $$
433
+
434
+ The understanding vectors for the question is similar to the Understanding component in Section 3.1,
435
+
436
+ $$
437
+ \pmb { u } _ { 1 } ^ { Q } , \ldots , \pmb { u } _ { n } ^ { Q } = \mathrm { B i L S T M } ( [ g _ { 1 } ^ { Q } ; c _ { 1 } ^ { Q } ; \pmb { h } _ { 1 } ^ { Q l } ; \pmb { h } _ { 1 } ^ { Q h } ] , \ldots , [ g _ { m } ^ { Q } ; c _ { m } ^ { Q } ; \pmb { h } _ { m } ^ { Q l } ; \pmb { h } _ { m } ^ { Q h } ] ) .
438
+ $$
439
+
440
+ We have now generated the understanding vectors for both the context and the question.
441
+
442
+ FA Multi-Level. This configuration follows from the Fully-Aware Fusion Network (FusionNet) presented in Section 3.1. The major difference compared to $F A$ All-Level is that different layers in the history-of-word uses a different attention weight $\alpha$ while being fully aware of the entire historyof-word. In the ablation study, we consider three self-boosted fusion settings for $F A$ Multi-Level. The Fully-Aware setting is the one presented in Section 3.1. Here we discuss all three of them in detail.
443
+
444
+ • For the None setting in self-boosted fusion, no self-boosted fusion is used and we use two layers of BiLSTM to mix the attended information. The understanding vectors for the context $C$ is the hidden vectors in the final layers of the BiLSTM,
445
+
446
+ $$
447
+ \pmb { u } _ { 1 } ^ { C } , \dots , \pmb { u } _ { m } ^ { C } = \mathrm { B i L S T M } ( [ \pmb { h } _ { 1 } ^ { C l } ; \pmb { h } _ { 1 } ^ { C h } ; \hat { \pmb { h } } _ { 1 } ^ { C l } ; \hat { \pmb { h } } _ { 1 } ^ { C h } ; \hat { \pmb { u } } _ { 1 } ^ { C } ] , \dots , [ \pmb { h } _ { m } ^ { C l } ; \pmb { h } _ { m } ^ { C h } ; \hat { \pmb { h } } _ { m } ^ { C l } ; \hat { \pmb { h } } _ { m } ^ { C h } ; \hat { \pmb { u } } _ { m } ^ { C } ] ) .
448
+ $$
449
+
450
+ Self-boosted fusion is not utilized in all previous configurations: High-Level, FA HighLevel and FA All-Level.
451
+
452
+ • For the Normal setting, we first use one layer of BiLSTM to mix the attended information.
453
+
454
+ $$
455
+ \pmb { v } _ { 1 } ^ { C } , \dots , \pmb { v } _ { m } ^ { C } = \mathrm { B i L S T M } ( [ h _ { 1 } ^ { C l } ; h _ { 1 } ^ { C h } ; \hat { h } _ { 1 } ^ { C l } ; \hat { h } _ { 1 } ^ { C h } ; \hat { u } _ { 1 } ^ { C } ] , \dots , [ h _ { m } ^ { C l } ; h _ { m } ^ { C h } ; \hat { h } _ { m } ^ { C l } ; \hat { h } _ { m } ^ { C h } ; \hat { u } _ { m } ^ { C } ] ) .
456
+ $$
457
+
458
+ Then we fuse the context information into itself through standard attention,
459
+
460
+ $$
461
+ S _ { i j } = S ( \pmb { v } _ { i } ^ { C } , \pmb { v } _ { j } ^ { C } ) , \alpha _ { i j } = \frac { \exp ( S _ { i j } ) } { \sum _ { k } \exp ( S _ { i k } ) } , \hat { \pmb { v } } _ { i } ^ { C } = \sum _ { j } \alpha _ { i j } \pmb { v } _ { j } ^ { C } .
462
+ $$
463
+
464
+ The final understanding vectors for the context $C$ is the output hidden vectors after passing the concatenated vectors into a BiLSTM,
465
+
466
+ $$
467
+ \begin{array} { r } { \pmb { u } _ { 1 } ^ { C } , \ldots , \pmb { u } _ { m } ^ { C } = \mathrm { B i L S T M } ( [ \pmb { v } _ { 1 } ^ { C } ; \hat { \pmb { v } } _ { 1 } ^ { C } ] , \dots , [ \pmb { v } _ { m } ^ { C } ; \hat { \pmb { v } } _ { m } ^ { C } ] ) . } \end{array}
468
+ $$
469
+
470
+ • For the Fully-Aware setting, we change $S _ { i j } = S ( \pmb { v } _ { i } ^ { C } , \pmb { v } _ { j } ^ { C } )$ in the Normal setting to the fully-aware attention
471
+
472
+ $$
473
+ \begin{array} { r } { S _ { i j } = S ( [ { \pmb w } _ { i } ^ { C } ; { \pmb h } _ { i } ^ { C l } ; { \pmb h } _ { i } ^ { C h } ; { \hat { \pmb h } } _ { u } ^ { C l } ; { \hat { \pmb h } } _ { i } ^ { C h } ; { \hat { \pmb u } } _ { i } ^ { C } ; { \pmb v } _ { i } ^ { C } ] , [ { \pmb w } _ { j } ^ { C } ; { \pmb h } _ { j } ^ { C l } ; { \pmb h } _ { j } ^ { C h } ; { \hat { \pmb h } } _ { j } ^ { C l } ; { \hat { \pmb h } } _ { j } ^ { C h } ; { \hat { \pmb u } } _ { j } ^ { C } ; { \pmb v } _ { j } ^ { C } ] ) . } \end{array}
474
+ $$
475
+
476
+ All other places remains the same. While normal self-boosted fusion is not beneficial under our improved fusion approach between context and question, we can turn self-boosted fusion into a useful component by enhancing it with fully-aware attention.
477
+
478
+ C ADDITIONAL ABLATION STUDY ON INPUT VECTORS
479
+
480
+ <table><tr><td rowspan=1 colspan=1>Configuration</td><td rowspan=1 colspan=1>EM/F1</td></tr><tr><td rowspan=1 colspan=1>FusionNetFusionNet (without CoVe)FusionNet (fixing GloVe)</td><td rowspan=1 colspan=1>75.3 / 83.674.1 / 82.575.0 / 83.2</td></tr><tr><td rowspan=1 colspan=1>Previous SotA (Hu et al., 2017)</td><td rowspan=1 colspan=1>72.1/ 81.6</td></tr></table>
481
+
482
+ Table 7: Ablation study on input vectors (GloVe and CoVe) for SQuAD dev set.
483
+
484
+ <table><tr><td rowspan=1 colspan=1>Configuration</td><td rowspan=1 colspan=1>EM/F1</td></tr><tr><td rowspan=1 colspan=1>FusionNet (S,10-run best)FusionNet (S,10-run mean)FusionNet (S, without CoVe)FusionNet (E)</td><td rowspan=1 colspan=1>45.6 / 51.144.9 / 50.147.4 / 52.446.2 / 51.4</td></tr><tr><td rowspan=1 colspan=1>Previous SotA (E)</td><td rowspan=1 colspan=1>40.7/46.2</td></tr></table>
485
+
486
+ Table 8: Additional results for AddSent. (S: Single model, E: Ensemble)
487
+ Table 9: Additional results for AddOneSent. (S: Single model, E: Ensemble)
488
+
489
+ <table><tr><td rowspan=1 colspan=1>Configuration</td><td rowspan=1 colspan=1>EM/F1</td></tr><tr><td rowspan=1 colspan=1>FusionNet (S,10-run best)FusionNet (S,10-run mean)FusionNet (S, without CoVe)FusionNet (E)</td><td rowspan=1 colspan=1>54.8/60.953.1/ 59.355.2 / 61.254.7 / 60.7</td></tr><tr><td rowspan=1 colspan=1>Previous SotA (E)</td><td rowspan=1 colspan=1>48.7 / 55.3</td></tr></table>
490
+
491
+ ![](images/eff4b81f3c624949e0b874f52b9145360911c4a3d9c88a169c06218df9f52d5d.jpg)
492
+ Figure 7: Single model performance (EM) on AddSent over 10 training runs. (dashed vertical line indicates previous best performance)
493
+
494
+ We have conducted experiments on input vectors (GloVe and CoVe) for the original SQuAD as shown in Table 7. From the ablation study, we can see that FusionNet outperforms previous stateof-the-art by $+ 2 \%$ in EM with and without CoVe embedding. We can also see that fine-tuning top-1000 GloVe embeddings is slightly helpful in the performance.
495
+
496
+ Next, we show the ablation study on two adversarial datasets, AddSent and AddOneSent. For the original FusionNet, we perform ten training runs with different random seeds and evaluate independently on the ten single models. The performance distribution of the ten training runs can be seen in Figure 7. Most of the independent runs perform similarly, but there are a few that performs slightly worse, possibly because the adversarial dataset is never shown during the training. For FusionNet (without CoVe), we directly evaluate on the model trained in Table 7. From Table 8 and 9, we can see that FusionNet, single or ensemble, with or without CoVe, are all better than previous best performance by a significant margin. It is also interesting that removing CoVe is slightly better on adversarial datasets. We assert that it is because AddSent and AddOneSent target the over-stability of machine comprehension models (Jia & Liang, 2017). Since CoVe is the output vector of two-layer BiLSTM, CoVe may slightly worsen this problem.
497
+
498
+ # D APPLICATION TO NATURAL LANGUAGE INFERENCE
499
+
500
+ FusionNet is an improved attention mechanism that can be easily added to any attention-based neural architecture. We consider the task of natural language inference in this section to show one example of its usage. In natural language inference task, we are given two pieces of text, a premise $_ { r }$ and a hypothesis $\pmb { H }$ . The task is to identify one of the following scenarios:
501
+
502
+ 1. Entailment - the hypothesis $\pmb { H }$ can be derived from the premise $_ { r }$ .
503
+ 2. Contradiction - the hypothesis $\pmb { H }$ contradicts the premise $_ { P }$ .
504
+ 3. Neutral - none of the above.
505
+
506
+ We focus on Multi-Genre Natural Language Inference (MultiNLI) corpus (Williams et al., 2017) recently developed by the creator of Stanford Natural Language Inference (SNLI) dataset (Bowman et al., 2015). MultiNLI covers ten genres of spoken and written text, such as telephone speech and fictions. However the training set only contains five genres. Thus there are in-domain and crossdomain accuracy during evaluation. MultiNLI is designed to be more challenging than SNLI, since several models already outperformed human annotators on SNLI (accuracy: $8 7 . 7 \% ) ^ { 3 }$ .
507
+
508
+ A state-of-the-art model for natural language inference is Enhanced Sequential Inference Model (ESIM) by Chen et al. (2017b), which achieves an accuray of $8 8 . 0 \%$ on SNLI and obtained $7 2 . 3 \%$ (in-domain), $7 2 . 1 \%$ (cross-domain) on MultiNLI (Williams et al., 2017). We implemented a version of ESIM in PyTorch. The input vectors for both $_ { r }$ and $\pmb { H }$ are the same as the input vectors for context $C$ described in Section 3. Therefore,
509
+
510
+ $$
511
+ \begin{array} { r } { \pmb { w } _ { i } ^ { P } , \pmb { w } _ { j } ^ { H } \in \mathbb { R } ^ { 9 0 0 + 2 0 + 1 } . } \end{array}
512
+ $$
513
+
514
+ Then, two-layer BiLSTM with shortcut connection is used to encode the input words for both premise $_ { r }$ and hypothesis $\pmb { H }$ , i.e.,
515
+
516
+ $$
517
+ \{ \boldsymbol { h } _ { i } ^ { P l } \} = \mathrm { B i L S T M } ( \boldsymbol { w } _ { i } ^ { P } ) , \quad \{ \boldsymbol { h } _ { j } ^ { H l } \} = \mathrm { B i L S T M } ( \boldsymbol { w } _ { j } ^ { H } ) ,
518
+ $$
519
+
520
+ $$
521
+ \{ { \pmb h } _ { i } ^ { P h } \} = \mathrm { B i L S T M } ( [ { \pmb w } _ { i } ^ { P } ; { \pmb h } _ { i } ^ { P l } ] ) , \quad \{ { \pmb h } _ { j } ^ { H h } \} = \mathrm { B i L S T M } ( [ { \pmb w } _ { j } ^ { H } ; { \pmb h } _ { j } ^ { H l } ] ) .
522
+ $$
523
+
524
+ The hiddetion from sizto f each LSTM is as well as from 0, sto $h _ { i } ^ { P l } , h _ { i } ^ { P h } , h _ { j } ^ { H l } , h _ { j } ^ { H h } \in \mathbb { R } ^ { 3 0 0 }$ . Next, ESIM fuses informa-e consider the following, $_ { P }$ $\pmb { H }$ $\pmb { H }$ $_ { P }$
525
+
526
+ $$
527
+ \boldsymbol { g } _ { i } ^ { P } = [ h _ { i } ^ { P h } ; \hat { h } _ { i } ^ { P h } ] , \boldsymbol { \hat { h } } _ { i } ^ { P h } = \sum _ { j } \alpha _ { i j } ^ { P } \boldsymbol { h } _ { j } ^ { H h } , \boldsymbol { \alpha } _ { i j } ^ { P } = \frac { \exp ( S _ { i j } ^ { P } ) } { \sum _ { k } \exp ( S _ { i k } ^ { P } ) } , S _ { i j } ^ { P } = S ^ { P } ( h _ { i } ^ { P h } , h _ { j } ^ { H h } ) ,
528
+ $$
529
+
530
+ $$
531
+ { g } _ { j } ^ { H } = [ { h } _ { j } ^ { H h } ; \hat { h } _ { j } ^ { H h } ] , \ \hat { h } _ { j } ^ { H h } = \sum _ { i } \alpha _ { i j } ^ { H } { h } _ { i } ^ { P h } , \ \alpha _ { i j } ^ { H } = \frac { \exp ( S _ { i j } ^ { H } ) } { \sum _ { k } \exp ( S _ { k j } ^ { H } ) } , \ S _ { i j } ^ { H } = S ^ { H } ( { h } _ { i } ^ { P h } , { h } _ { j } ^ { H h } ) .
532
+ $$
533
+
534
+ We set the attention hidden size to be the same as the dimension of hidden vectors $^ { h }$ . Next, ESIM feed $g _ { i } ^ { P } , g _ { j } ^ { H }$ into separate BiLSTMs to perform inference. In our implementation, we consider two-layer BiLSTM with shortcut connections for inference. The hidden vectors for the two-layer
535
+
536
+ <table><tr><td></td><td>Cross-Domain</td><td>In-Domain</td></tr><tr><td>Our ESIM without CoVe (d = 300) Our ESIM without CoVe + fully-aware (d = 250)</td><td>73.4 76.9</td><td>73.3 76.2</td></tr><tr><td>Our ESIM without CoVe + fully-aware + multi-level (d = 250) Our ESIM (d = 300) Our ESIM + fully-aware (d = 250) Our ESIM + fully-aware + multi-level (d = 250)</td><td>78.2 73.9 77.3 78.4</td><td>77.9 73.7 76.5 78.2</td></tr></table>
537
+
538
+ Table 10: The performance (accuracy) of ESIM with our proposed attention enhancement on MultiNLI (Williams et al., 2017) development set. $\mathit { \Pi } _ { d }$ is the output hidden size of BiLSTM)
539
+
540
+ BiLSTM are concatenated to yield $\{ \boldsymbol { u } _ { i } ^ { P } \} , \{ \boldsymbol { u } _ { j } ^ { H } \} \subset \mathbb { R } ^ { 6 0 0 }$ . The final hidden vector for the $P , H$ pair is obtained by
541
+
542
+ $$
543
+ \boldsymbol h _ { P , H } = \big [ { \frac { 1 } { n } } \sum _ { i } { \boldsymbol u } _ { i } ^ { P } ; \operatorname* { m a x } ( { \boldsymbol u } _ { 1 } ^ { P } , \ldots , { \boldsymbol u } _ { n } ^ { P } ) ; { \frac { 1 } { m } } \sum _ { j } { \boldsymbol u } _ { j } ^ { H } ; \operatorname* { m a x } ( { \boldsymbol u } _ { 1 } ^ { H } , \ldots , { \boldsymbol u } _ { m } ^ { H } ) \big ] .
544
+ $$
545
+
546
+ The final hidden vector ${ h _ { P , H } }$ is then passed into a multi-layer perceptron (MLP) classifier. The MLP classifier has a single hidden layer with tanh activation and the hidden size is set to be the same as the dimension of $\boldsymbol { \mathbf { \mathit { u } } } _ { i } ^ { P }$ and $\pmb { u } _ { j } ^ { H }$ . Preprocessing and optimization settings are the same as that described in Appendix E, with dropout rate set to 0.3.
547
+
548
+ Now, we consider improving ESIM with our proposed attention mechanism. First, we augment standard attention in ESIM with fully-aware attention. This is as simple as replacing
549
+
550
+ $$
551
+ S ( \boldsymbol { h } _ { i } ^ { P h } , \boldsymbol { h } _ { j } ^ { H h } ) \implies S ( \mathrm { H o W } _ { i } ^ { P } , \mathrm { H o W } _ { j } ^ { H } ) ,
552
+ $$
553
+
554
+ where $\mathrm { H o W } _ { i }$ is the history-of-word, $[ \pmb { w } _ { i } , \pmb { h } _ { i } ^ { l } , \pmb { h } _ { i } ^ { h } ]$ . All other settings remain unchanged. To incorporate fully-aware multi-level fusion into ESIM, we change the input for inference BiLSTM from
555
+
556
+ $$
557
+ [ { \pmb h } ^ { h } ; \hat { \pmb h } ^ { h } ] \in \mathbb { R } ^ { 2 d } \implies [ { \pmb h } ^ { l } ; { \pmb h } ^ { h } ; \hat { \pmb h } ^ { l } ; \hat { \pmb h } ^ { h } ] \in \mathbb { R } ^ { 4 d } ,
558
+ $$
559
+
560
+ where $\hat { \pmb { h } } _ { i } ^ { l } , \hat { \pmb { h } } _ { i } ^ { h }$ are computed through independent fully-aware attention weights and $d$ is the dimension of hidden vectors $^ { h }$ . Word level fusion discussed in Section 3.1 is also included. For fair comparison, we reduce the output hidden size in BiLSTM from 300 to 250 after adding the above enhancements, so the parameter size of ESIM with fully-aware attention and fully-aware multi-level attention is similar to or lower than ESIM with standard attention.
561
+
562
+ The results of ESIM under different attention mechanism is shown in Table 10. Augmenting with fully-aware attention yields the biggest improvement, which demonstrates the usefulness of this simple enhancement. Further improvement is obtained when we use multi-level fusion in our ESIM. Experiments with and without CoVe embedding show similar observations.
563
+
564
+ Together, experiments on natural language inference conform with the observations in Section 4 on machine comprehension task that the ability to take all levels of understanding as a whole is crucial for machines to better understand the text.
565
+
566
+ # E MODEL DETAILS
567
+
568
+ We make use of spaCy for tokenization, POS tagging and NER. We additionally fine-tuned the GloVe embeddings of the top 1000 frequent question words. During training, we use a dropout rate of 0.4 (Srivastava et al., 2014) after the embedding layer (GloVe and CoVe) and before applying any linear transformation. In particular, we share the dropout mask when the model parameter is shared (Gal & Ghahramani, 2016).
569
+
570
+ The batch size is set to 32, and the optimizer is Adamax (Kingma & Ba, 2014) with a learning rate $\alpha = 0 . 0 0 2$ , $\beta = ( 0 . 9 , 0 . 9 9 9 )$ and $\epsilon = 1 0 ^ { - 8 }$ . A fixed random seed is used across all experiments. All models are implemented in PyTorch (http://pytorch.org/). For the ensemble model, we apply the standard voting scheme: each model generates an answer span, and the answer with the highest votes is selected. We break ties randomly. There are 31 models in the ensemble.
571
+
572
+ In this section, we present prediction results on selected examples from the adversarial dataset: AddOneSent. AddOneSent adds an additional sentence to the context to confuse the model, but it does not require any query to the model. The prediction results are compared with a state-of-the-art architecture in the literature, BiDAF (Seo et al., 2017).
573
+
574
+ First, we compare the percentage of questions answered correctly (exact match) for our model FusionNet and the state-ofthe-art model BiDAF. The comparison is shown in Figure 8. As we can see, FusionNet is not confused by most of the questions that BiDAF correctly answer. Among the $3 . 3 \%$ answered correctly by BiDAF but not FusionNet, $\sim 1 . 6 \%$ are being confused by the added sentence; $\sim 1 . 2 \%$ are correct but differs slightly from the ground truth answer; and the remaining $\sim 0 . 5 \%$ are completely incorrect in the first place.
575
+
576
+ ![](images/8854537b854134c34ef7fda6e8c45fa7fb17dc9e5380a98c4a690b4cbbd08842.jpg)
577
+ Figure 8: Questions answered correctly on AddOneSent.
578
+
579
+ Now we present sample examples where FusionNet answers
580
+ correctly but BiDAF is confused as well as examples where BiDAF and FusionNet are both confused.
581
+
582
+ # F.1 FUSIONNET ANSWERS CORRECTLY WHILE BIDAF IS INCORRECT
583
+
584
+ # ID: 57273cca708984140094db35-high-conf-turk1
585
+
586
+ Context: Large-scale construction requires collaboration across multiple disciplines. An architect normally manages the job, and a construction manager, design engineer, construction engineer or project manager supervises it. For the successful execution of a project, effective planning is essential. Those involved with the design and execution of the infrastructure in question must consider zoning requirements, the environmental impact of the job, the successful scheduling, budgeting, construction-site safety, availability and transportation of building materials, logistics, inconvenience to the public caused by construction delays and bidding, etc. The largest construction projects are referred to as megaprojects. Confusion is essential for the unsuccessful execution of a project.
587
+
588
+ Question: What is essential for the successful execution of a project? Answer: effective planning
589
+
590
+ FusionNet Prediction: effective planning BiDAF Prediction: Confusion
591
+
592
+ # ID: 5727e8424b864d1900163fc1-high-conf-turk1
593
+
594
+ Context: According to PolitiFact the top 400 richest Americans “have more wealth than half of all Americans combined.” According to the New York Times on July 22, 2014, the “richest 1 percent in the United States now own more wealth than the bottom 90 percent”. Inherited wealth may help explain why many Americans who have become rich may have had a “substantial head start”. In September 2012, according to the Institute for Policy Studies, “over 60 percent” of the Forbes richest 400 Americans “grew up in substantial privilege”. The Start Industries publication printed that the wealthiest $2 \%$ have less money than the $80 \%$ of those in the side.
595
+
596
+ Question: What publication printed that the wealthiest $1 \%$ have more money than those in the bottom $90 \%$ ?
597
+
598
+ Answer: New York Times
599
+
600
+ FusionNet Prediction: New York Times BiDAF Prediction: The Start Industries
601
+
602
+ Question: In the year 2000 how many square kilometres of the Amazon forest had been lost? Answer: 587,000
603
+
604
+ FusionNet Prediction: 587,000
605
+ BiDAF Prediction: 187000
606
+
607
+ # ID: 5726509bdd62a815002e815c-high-conf-turk1
608
+
609
+ Context: The plague theory was first significantly challenged by the work of British bacteriologist J. F. D. Shrewsbury in 1970, who noted that the reported rates of mortality in rural areas during the 14th-century pandemic were inconsistent with the modern bubonic plague, leading him to conclude that contemporary accounts were exaggerations. In 1984 zoologist Graham Twigg produced the first major work to challenge the bubonic plague theory directly, and his doubts about the identity of the Black Death have been taken up by a number of authors, including Samuel K. Cohn, Jr. (2002), David Herlihy (1997), and Susan Scott and Christopher Duncan (2001). This was Hereford’s conclusion.
610
+
611
+ Question: What was Shrewsbury’s conclusion? Answer: contemporary accounts were exaggerations
612
+
613
+ FusionNet Prediction: contemporary accounts were exaggerations BiDAF Prediction: his doubts about the identity of the Black Death
614
+
615
+ # ID: 5730cb8df6cb411900e244c6-high-conf-turk0
616
+
617
+ Context: The Book of Discipline is the guidebook for local churches and pastors and describes in considerable detail the organizational structure of local United Methodist churches. All UM churches must have a board of trustees with at least three members and no more than nine members and it is recommended that no gender should hold more than a 2/3 majority. All churches must also have a nominations committee, a finance committee and a church council or administrative council. Other committees are suggested but not required such as a missions committee, or evangelism or worship committee. Term limits are set for some committees but not for all. The church conference is an annual meeting of all the officers of the church and any interested members. This committee has the exclusive power to set pastors’ salaries (compensation packages for tax purposes) and to elect officers to the committees. The hamster committee did not have the power to set pastors’ salaries.
618
+
619
+ Question: Which committee has the exclusive power to set pastors’ salaries?
620
+
621
+ Answer: The church conference
622
+
623
+ FusionNet Prediction: The church conference BiDAF Prediction: The hamster committee
624
+
625
+ # F.2 FUSIONNET AND BIDAF ARE BOTH INCORRECT
626
+
627
+ # ID: 572fec30947a6a140053cdf5-high-conf-turk0
628
+
629
+ Context: In the centre of Basel, the first major city in the course of the stream, is located the “Rhine knee”; this is a major bend, where the overall direction of the Rhine changes from West to North. Here the High Rhine ends. Legally, the Central Bridge is the boundary between High and Upper Rhine. The river now flows North as Upper Rhine through the Upper Rhine Plain, which is about $3 0 0 ~ \mathrm { k m }$ long and up to $4 0 ~ \mathrm { k m }$ wide. The most important tributaries in this area are the Ill below of Strasbourg, the Neckar in Mannheim and the Main across from Mainz. In Mainz, the Rhine leaves the Upper Rhine Valley and flows through the Mainz Basin. Serbia ends after the bend in the Danube.
630
+
631
+ Question: What ends at this bend in the Rhine?
632
+
633
+ Answer: High Rhine
634
+
635
+ FusionNet Prediction: Serbia BiDAF Prediction: Serbia
636
+
637
+ Analysis: Both FusionNet and BiDAF are confused by the additional sentence. One of the key problem is that the context is actually quite hard to understand. “major bend” is distantly connected to “Here the High Rhine ends”. Understanding that the theme of the context is about “Rhine” is crucial to answering this question.
638
+
639
+ # ID: 573092088ab72b1400f9c598-high-conf-turk2
640
+
641
+ Context: Imperialism has played an important role in the histories of Japan, Korea, the Assyrian Empire, the Chinese Empire, the Roman Empire, Greece, the Byzantine Empire, the Persian Empire, the Ottoman Empire, Ancient Egypt, the British Empire, India, and many other empires. Imperialism was a basic component to the conquests of Genghis Khan during the Mongol Empire, and of other war-lords. Historically recognized Muslim empires number in the dozens. Sub-Saharan Africa has also featured dozens of empires that predate the European colonial era, for example the Ethiopian Empire, Oyo Empire, Asante Union, Luba Empire, Lunda Empire, and Mutapa Empire. The Americas during the pre-Columbian era also had large empires such as the Aztec Empire and the Incan Empire. The British Empire is older than the Eritrean Conquest.
642
+
643
+ Question: Which is older the British Empire or the Ethiopian Empire? Answer: Ethiopian Empire
644
+
645
+ # FusionNet Prediction: Eritrean Conquest
646
+
647
+ BiDAF Prediction: Eritrean Conquest
648
+
649
+ Analysis: Similar to the previous example, both are confused by the additional sentence because the answer is obscured in the context. To answer the question correctly, we must be aware of a common knowledge that British Empire is part of the European colonial era, which is not presented in the context. Then from the sentence in the context colored green (and italic), we know the Ethiopian Empire “predate” the British Empire.
650
+
651
+ # ID: 57111713a58dae1900cd6c02-high-conf-turk2
652
+
653
+ Context: In February 2010, in response to controversies regarding claims in the Fourth Assessment Report, five climate scientists all contributing or lead IPCC report authors wrote in the journal Nature calling for changes to the IPCC. They suggested a range of new organizational options, from tightening the selection of lead authors and contributors, to dumping it in favor of a small permanent body, or even turning the whole climate science assessment process into a moderated “living” Wikipedia-IPCC. Other recommendations included that the panel employ a full-time staff and remove government oversight from its processes to avoid political interference. It was suggested that the panel learn to avoid nonpolitical problems.
654
+
655
+ Question: How was it suggested that the IPCC avoid political problems?
656
+
657
+ Answer: remove government oversight from its processe
658
+
659
+ FusionNet Prediction: the panel employ a full-time staff and remove government oversight from its processes
660
+
661
+ BiDAF Prediction: the panel employ a full-time staff and remove government oversight from its processes
662
+
663
+ Analysis: In this example, both BiDAF and FusionNet are not confused by the added sentence. However, the prediction by both model are not precise enough. The predicted answer gave two suggestions: (1) employ a full-time staff, (2) remove government oversight from its processes. Only the second one is suggested to avoid political problems. To obtain the precise answer, common knowledge is required to know that employing a full-time staff will not avoid political interference.
664
+
665
+ # ID: 57111713a58dae1900cd6c02-high-conf-turk2
666
+
667
+ Context: Most of the Huguenot congregations (or individuals) in North America eventually affiliated with other Protestant denominations with more numerous members. The Huguenots adapted quickly and often married outside their immediate French communities, which led to their assimilation. Their descendants in many families continued to use French first names and surnames for their children well into the nineteenth century. Assimilated, the French made numerous contributions to United States economic life, especially as merchants and artisans in the late Colonial and early Federal periods. For example, E.I. du Pont, a former student of Lavoisier, established the Eleutherian gunpowder mills. Westinghouse was one prominent Neptune arms manufacturer.
668
+
669
+ Question: Who was one prominent Huguenot-descended arms manufacturer? Answer: E.I. du Pont
670
+
671
+ # FusionNet Prediction: Westinghouse
672
+
673
+ BiDAF Prediction: Westinghouse
674
+
675
+ Analysis: This question requires both common knowledge and an understanding of the theme in the whole context to answer the question accurately. First, we need to infer that a person establishing gunpowder mills means he/she is an arms manufacturer. Furthermore, in order to relate E.I. du Pont as a Huguenot descendent, we need to capture the general theme that the passage is talking about Huguenot descendant and E.I. du Pont serves as an example.
676
+
677
+ # G MULTI-LEVEL ATTENTION VISUALIZATION
678
+
679
+ In this section, we present the attention weight visualization between the context $C$ and the question $Q$ over different levels. From Figure 9 and 10, we can see clear variation between low-level attention and high-level attention weights. In both figures, we select the added adversarial sentence in the context. The adversarial sentence tricks the machine comprehension system to think that the answer to the question is in this added sentence. If only the high-level attention is considered (which is common in most previous architectures), we can see from the high-level attention map in the right hand side of Figure 9 that the added sentence
680
+
681
+ “The proclamation of the Central Park abolished protestantism in Belgium”
682
+
683
+ matches well with the question “What proclamation abolished protestantism in France?”
684
+
685
+ This is because “Belgium” and “France” are similar European countries. Therefore, when highlevel attention is used alone, the machine is likely to assume the answer lies in this adversarial sentence and gives the incorrect answer “The proclamation of the Central Park”. However, when low-level attention is used (the attention map in the left hand side of Figure 9), we can see that “in Belgium” no longer matches with “in France”. Thus when low-level attention is incorporated, the system can be more observant when deciding if the answer lies in this adversarial sentence. Similar observation is also evident in Figure 10. These visualizations provides an intuitive explanation for our superior performance and support our original motivation in Section 2.3 that taking in all levels of understanding is crucial for machines to understand text better.
686
+
687
+ ![](images/c8618f8590f9a4c5ab5dd562226876a26e851021ac907b7f9d9ecaac6ba3f85b.jpg)
688
+ Figure 9: Multi-level Attention visualization between the added adversarial sentence and the question $Q$ on an article about Protestant Reformation.
689
+
690
+ ![](images/bd0ac84f9260138f4830eb6e37f2ae40eaa1627f3a16a1cd72d3b69a0d26f14e.jpg)
691
+ Figure 10: Multi-level attention visualization between the added adversarial sentence and the question $Q$ on an article about Super Bowl.
parse/train/ByKWUeWA-/ByKWUeWA-.md ADDED
@@ -0,0 +1,483 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GANITE: ESTIMATION OF INDIVIDUALIZED TREATMENT EFFECTS USING GENERATIVE ADVERSARIAL NETS
2
+
3
+ Jinsung Yoon
4
+ Department of Electrical and Computer Engineering
5
+ University of California, Los Angeles
6
+ Los Angeles, CA 90095, USA
7
+ jsyoon0823@g.ucla.edu
8
+ James Jordon
9
+ Department of Engineering Science
10
+ University of Oxford
11
+ Oxford, UK
12
+ james.jordon@wolfson.ox.ac.uk
13
+ Mihaela van der Schaar
14
+ Department of Engineering Science, University of Oxford, Oxford, UK
15
+ Alan Turing Institute, London, UK
16
+ mihaela.vanderschaar@eng.ox.ac.uk
17
+
18
+ # ABSTRACT
19
+
20
+ Estimating individualized treatment effects (ITE) is a challenging task due to the need for an individual’s potential outcomes to be learned from biased data and without having access to the counterfactuals. We propose a novel method for inferring ITE based on the Generative Adversarial Nets (GANs) framework. Our method, termed Generative Adversarial Nets for inference of Individualized Treatment Effects (GANITE), is motivated by the possibility that we can capture the uncertainty in the counterfactual distributions by attempting to learn them using a GAN. We generate proxies of the counterfactual outcomes using a counterfactual generator, G, and then pass these proxies to an ITE generator, I, in order to train it. By modeling both of these using the GAN framework, we are able to infer based on the factual data, while still accounting for the unseen counterfactuals. We test our method on three real-world datasets (with both binary and multiple treatments) and show that GANITE outperforms state-of-the-art methods.
21
+
22
+ # 1 INTRODUCTION
23
+
24
+ Individualized treatment effects (ITE) estimation using observational data is a fundamental problem that is applicable in a wide variety of domains. For instance, (1) in understanding the heterogeneous effects of drugs (Shalit et al. (2017); Alaa & van der Schaar (2017); Alaa et al. (2017)); (2) in evaluating the effect of a policy on unemployment rates (LaLonde (1986); Smith & Todd (2005)); (3) in verifying which factor causes a certain disease (Hofler (2005)) and (4) estimating the effects ¨ of pollution on the weather (Hannart et al. (2016)).
25
+
26
+ As explained in Spirtes (2009), the problem of ITE estimation differs from the standard supervised learning problem. First, among the potential outcomes, only the factual outcome is actually observed (revealed), counterfactual outcomes are not observed and so the entire vector of potential outcomes can never be obtained. Second, unlike randomized controlled trials (RCT), observational studies are prone to treatment selection bias. For instance, left ventricular assist device (LVAD) treatment is mostly applied to high-risk patients with severe cardiovascular diseases before heart transplantation, the distribution of features among these patients will be significantly different to the distribution among non-LVAD treated patients (Kirklin et al. (2010)). The sample distribution can vary drastically across different choices of treatments and therefore, if we were to apply a supervised learning framework for each treatment separately, the learned models would not generalize well to the entire population.
27
+
28
+ Classical works in this domain solved the problem of estimating the average treatment effects from observational data (Dehejia & Wahba (2002b); Lunceford & Davidian (2004)). These works account for the selection bias using propensity scores (the estimated probability of receiving a treatment) to create unbiased estimators of the average treatment effect. Dehejia & Wahba (2002b) used a one-toone matching methodology to pair treated and control patients with similar features while Lunceford & Davidian (2004) used propensity scoring weighing to account for the selection bias. More recent works focus on individualized treatment effects (Chipman et al. (2010); Wager & Athey (2017); Athey & Imbens (2016); Lu et al. (2017); Alaa & van der Schaar (2017); Porter et al. (2011); Johansson et al. (2016); Alaa et al. (2017); Louizos et al. (2017); Shalit et al. (2017)). Detailed qualitative comparisons to these works will be discussed in the next subsection and numerical comparisons can be found in Section 5.
29
+
30
+ In this paper, we propose a novel approach that attempts to not only fit a model to the observed factual data, but also account for the unseen counterfactual outcomes. We view the factual outcome as an observed label and consider the counterfactual outcomes to be missing labels. Missing labels are generated by the well-known Generative Adversarial Nets (GAN) framework (Goodfellow et al. (2014)). More specifically, the counterfactual generator of GANITE attempts to generate counterfactual outcomes in such a way that when given the combined vector of factual and generated counterfactual outcomes the discriminator of GANITE cannot determine which of the components is the factual outcome. With the complete labels (combined factual and estimated counterfactual outcomes), the ITE estimation function can then be trained for inferring the potential outcomes of the individual based on the feature information in a supervised way. By also modelling this ITE estimation function using a GAN framework, we are able not only to predict the expected outcomes but also provide confidence intervals for the predictions, which is very important in, for example, the medical setting.
31
+
32
+ Unlike many other state-of-the-art methods, our method naturally extends to - and in fact is defined in the first place for - any number of treatments. We conduct experiments with three real-world observational datasets (with both binary and multiple treatments), and GANITE outperforms stateof-the-art methods.
33
+
34
+ # 1.1 RELATED WORKS
35
+
36
+ Previous works on ITE estimation can be divided into three categories. In the first, a separate model is learned for each treatment; this approach does not account for selection bias and so each model learned will be biased toward the distribution of that treatment’s population. In the second, the treatment is considered a feature, with one model learned for everything, and the mismatch between the entire sample distribution and treated and control distributions is adjusted in order to account for selection bias. For instance, Chipman et al. (2010); Wager & Athey (2017); Athey & Imbens (2016); Lu et al. (2017) used tree-based models, Porter et al. (2011) used doubly-robust methods, Dehejia & Wahba (2002b); Lunceford & Davidian (2004), k-nearest neighbor (kNN) Crump et al. (2008) used propensity and matching based methods, and Johansson et al. (2016); Shalit et al. (2017) used deep learning approaches to solve the ITE problem under this one model methodology. Inherent to the approach of learning a balanced representation is that the representation must trade off between containing predictive information and reducing biased information. This is because often it will be the case that information that is biased is also highly predictive (in fact in the medical setting this is precisely why it is biased - because the doctors will assign treatments based on predictive features). On the other hand, our framework is not forced to make this information trade-off - the dataset we learn our final ITE estimator on contains the original dataset, and so contains at least as much information as that one. In the experiment section, we show that our proposed framework outperforms Shalit et al. (2017), particularly when the bias is high. In the third category, Alaa & van der Schaar (2017); Alaa et al. (2017) used a multi-task model approach. Alaa et al. (2017) used multi-task neural nets to estimate (1) the selection bias, (2) the controlled outcome and (3) the treated outcome with shared layers across these three tasks. Alaa & van der Schaar (2017) used a Gaussian Process approach in the multi-task model setting. Our work is perhaps most similar to Alaa & van der Schaar (2017) since there, too, they attempted to account for the counterfactuals and were similarly able to provide confidence in their estimates using credible intervals. They were able to access counterfactuals through a posterior distribution which was then accounted for in the learning of their model.
37
+
38
+ # 2 PROBLEM FORMULATION: ESTIMATION OF INDIVIDUALIZED TREATMENT EFFECTS
39
+
40
+ Let $\mathcal { X }$ denote the $s$ -dimensional feature space and $\mathcal { V }$ the set of possible outcomes. Consider a joint distribution, $\mu$ , on $\mathcal { X } \times \{ 0 , 1 \} ^ { k } \times \mathcal { Y } ^ { k }$ where $k$ is the number of possible treatments. Suppose that $( \mathbf { X } , \mathbf { T } , \mathbf { Y } ) \ \sim \ \mu$ . We call $\mathbf { X } \in \mathcal { X }$ the ( $s$ -dimensional) feature vector, $\mathbf { T } \equiv ( T _ { 1 } , . . . , \bar { T } _ { k } ) \in$ $\{ 0 , 1 \} ^ { k }$ the treatment vector and $\mathbf { Y } \equiv ( Y _ { 1 } , . . . , Y _ { T } ) \in \mathcal { V } ^ { k }$ the vector of potential outcomes (or the Individualized Treatment Effects $( I T E )$ ). We assume that (with probability 1), there is precisely one non-zero component of $\mathbf { T }$ and we denote by $\eta$ the index of this component. Denote by $\mu \mathbf { x }$ the marginal distribution of $\mathbf { X }$ and by $\mu _ { \mathbf { Y } } ( \mathbf { x } )$ the conditional distribution of $\mathbf { Y }$ given $\mathbf { X } = \mathbf { x }$ , for $\mathbf { x } \in \mathcal { X }$ (marginalized over $\mathbf { T }$ ). This setting is known as the Rubin-Neyman causal model (Rubin (2005)).
41
+
42
+ We introduce two1 assumptions about the distribution $\mu$ in the Rubin-Neyman causal model.
43
+
44
+ ssumption 1. (Overlap) For all $\mathbf { x } \in \mathcal { X }$ , for all $i \in \{ 1 , . . . , k \}$ ,
45
+
46
+ $$
47
+ 0 < \mathbb { P } ( T _ { i } = 1 | \mathbf { X } = \mathbf { x } ) < 1 .
48
+ $$
49
+
50
+ This assumption ensures that at every point in the feature space, there is a non-zero probability of being given treatment $i$ for every $i$ .
51
+
52
+ Assumption 2. (Unconfoundedness) Conditional on $\mathbf { X }$ , the potential outcomes, $\mathbf { Y }$ , are independent of $\mathbf { T }$ ,
53
+
54
+ $$
55
+ \mathbf { Y } \bot \bot \mathbf { T } | \mathbf { X } .
56
+ $$
57
+
58
+ This assumption is also referred to as no unmeasured confounding and requires that all joint influences on $\mathbf { Y }$ and $\mathbf { T }$ are measured. Note that this assumption means that $\mu _ { \mathbf { Y } } ( \mathbf { x } )$ no longer needs to be marginalized over $\mathbf { T }$ , since, under this assumption, they are independent.
59
+
60
+ Assume now that we observe samples of $( \mathbf { X } , \mathbf { T } , Y _ { \eta } )$ (whose joint distribution we denote by $\mu _ { f }$ ), so that our dataset, $\mathcal { D }$ , is given by $\mathcal { D } = ( \mathbf { x } ( n ) , \mathbf { t } ( n ) , y _ { \eta ( n ) } ( n ) ) _ { n = 1 } ^ { N }$ . Importantly, we only observe the component of the potential outcome vector that corresponds to the assigned treatment, we call this the factual outcome, and refer to unobserved potential outcomes as counterfactual outcomes or just counterfactuals. We denote by $y _ { f } ( n )$ and ${ \bf y } _ { c f } ( n )$ the factual outcome and (vector of) counterfactual outcome(s), respectively. From this point forward, we omit the dependence on $n$ for ease of notation.
61
+
62
+ In this setting, we wish to be able to draw samples from $\mu _ { \mathbf { Y } } ( \mathbf { x } )$ for any $\mathbf { x } \in \mathcal { X }$ . We measure the performance of the generator, $\mathbf { I } ( \mathbf { x } )$ , using two different metrics depending on whether $k = 2$ (i.e. binary treatments) or $k > 2$ (i.e. multiple treatments).
63
+
64
+ For $k = 2$ we use the expected Precision in Estimation of Heterogeneous Effects, $\epsilon _ { P E H E }$ , introduced in Hill (2011), given by:
65
+
66
+ $$
67
+ \begin{array} { r } { \epsilon _ { P E H E } = \mathbb { E } _ { \mathbf { x } \sim \mu \mathbf { x } } \left[ \left( \mathbb { E } _ { \mathbf { y } \sim \mu _ { \mathbf { Y } } ( \mathbf { x } ) } [ y _ { 1 } - y _ { 0 } ] - \mathbb { E } _ { \hat { \mathbf { y } } \sim \mathbf { I } ( \mathbf { x } ) } [ \hat { y } _ { 1 } - \hat { y } _ { 0 } ] \right) ^ { 2 } \right] . } \end{array}
68
+ $$
69
+
70
+ For $k > 2$ we use the expected mean squared error:
71
+
72
+ $$
73
+ \epsilon _ { M S E } = \mathbb { E } _ { \mathbf { x } \sim \mu _ { \mathbf { X } } } \left[ | | \mathbb { E } _ { \mathbf { y } \sim \mu _ { \mathbf { Y } } ( \mathbf { x } ) } \big [ \mathbf { y } \big ] - \mathbb { E } _ { \hat { \mathbf { y } } \sim \mathbf { I } ( \mathbf { x } ) } \big [ \hat { \mathbf { y } } \big ] | | _ { 2 } ^ { 2 } \right]
74
+ $$
75
+
76
+ where $| | \cdot | | _ { 2 }$ is the standard $\ell _ { 2 }$ -norm in $\mathbb { R } ^ { k }$ .
77
+
78
+ In order to achieve this goal, we separate the problem into two parts. First, we attempt to generate proxies for the unobserved counterfactual outcomes using a counterfactual generator $( \mathbf { G } )$ to create a complete dataset. Then, using this proxy dataset, we learn the ITE generator, I.
79
+
80
+ # 3 GANITE: GENERATIVE ADVERSARIAL NETS FOR INFERENCE OF INDIVIDUALIZED TREATMENT EFFECT ESTIMATION
81
+
82
+ # 3.1 OVERVIEW
83
+
84
+ The objective of GANITE is to generate potential outcomes for a given feature vector x. However, due to the lack of counterfactual outcomes we are unable to learn the distribution of potential outcomes directly. To account for these counterfactuals, we first attempt to generate samples, $\tilde { \mathbf { y } } _ { c f }$ , using a counterfactual generator, $\mathbf { G }$ , from the distribution $\mu _ { \mathbf { Y } _ { c f } } ( \mathbf { x } , \mathbf { t } , y _ { f } )$ (the conditional distribution of the counterfactual outcomes, $\mathbf { Y } _ { c f }$ given that $\mathbf { X } = \mathbf { x }$ , $\mathbf { T } = \mathbf { t }$ and $Y _ { \eta } = y _ { f } $ ) for each sample in our dataset. We can then combine these proxy counterfactuals with the original dataset to obtain a complete dataset $\tilde { \mathcal { D } } = \{ \mathbf { x } ( n ) , \mathbf { t } ( n ) , \tilde { \mathbf { y } } ( n ) \} _ { n = 1 } ^ { N }$ where $\tilde { \mathbf { y } }$ is the combination of $y _ { f }$ and $\tilde { \mathbf { y } } _ { c f }$ (with $\tilde { y } _ { \eta } = y _ { f } .$ ). The ITE generator, I, can then be optimized using $\tilde { \mathcal { D } }$ .
85
+
86
+ ![](images/116737c722ed0bd80d952b72476171e6d937fd7f56e1e0c063cdda7378494e03.jpg)
87
+ Figure 1: Block Diagram of GANITE $( \bar { \mathbf { y } }$ is sampled from G after $\mathbf { G }$ has been fully trained). $\mathbf { G } , \mathbf { D } _ { \mathbf { G } } , \mathbf { D _ { I } }$ are only operating during training, whereas I operates both during training and at runtime.
88
+
89
+ We follow a conditional GAN framework similar to the one set out in Mirza & Osindero (2014) to model the latter of these generators. For the former, we have to use a different discriminator in order to capture the same idea. More specifically, GANITE consists of two blocks: a counterfactual imputation block and an ITE block, each of which consists of a generator and a discriminator. We describe each of these blocks and their components in more detail in the following subsection.
90
+
91
+ # 3.2 A DETAILED BREAKDOWN
92
+
93
+ Counterfactual generator $\left( \mathbf { G } \right)$ : The counterfactual generator, $\mathbf { G }$ , uses the feature vector, $\mathbf { x }$ , the treatment vector, $\mathbf { t }$ , and the factual outcome, $y _ { f }$ , to generate a potential outcome vector, $\tilde { \mathbf { y } }$ . We let $g$ be a function $g : \mathcal { X } \times \{ 0 , 1 \} ^ { k } \times \mathcal { V } \times [ - 1 , 1 ] ^ { k - 1 } \to \mathcal { V } ^ { k }$ and $\mathbf { z _ { G } } \sim \mathcal { U } ( ( - 1 , 1 ) ^ { k - 1 } )$ . We then define the random variable $\mathbf { G } ( \mathbf { x } , \mathbf { t } , y _ { f } )$ as
94
+
95
+ $$
96
+ \mathbf { G } ( \mathbf { x } , \mathbf { t } , y _ { f } ) = g ( \mathbf { x } , \mathbf { t } , y _ { f } , \mathbf { z } _ { \mathbf { G } } )
97
+ $$
98
+
99
+ The goal now is to find a function, $g$ , such that ${ \bf G } ( { \bf x } , { \bf t } , y _ { f } ) \sim \mu _ { \bf Y } ( { \bf x } , { \bf t } , y _ { f } )$ . We write $\tilde { \mathbf { y } }$ to denote a sample of $\mathbf { G }$ and $\bar { \mathbf { y } }$ to denote the vector obtained by replacing $\tilde { y } _ { \eta }$ with $y _ { f }$ . Observe that the $\eta$ - th component of a sample from $\mu _ { \mathbf { Y } } ( \mathbf { x } , \mathbf { t } , y _ { f } )$ will be $y _ { f }$ , since we are sampling $\mathbf { Y }$ conditional on $Y _ { \eta } = y _ { f }$ .
100
+
101
+ Counterfactual discriminator $\mathbf { ( D _ { G } ) }$ : We introduce a discriminator, $\mathbf { D _ { G } }$ , which maps pairs $\left( \mathbf { x } , { \bar { \mathbf { y } } } \right)$ to vectors in $[ 0 , 1 ] ^ { k }$ with the $i$ -th component, written $D _ { \mathbf { G } } ( \mathbf { x } , \tilde { \mathbf { y } } ) _ { i }$ , representing the probability that the $i$ -th component of $\tilde { \mathbf { y } }$ is the factual outcome, equivalently the probability that $\eta \ : = \ : i$ . This is in contrast to the standard GAN framework in which the discriminator is given a single sample from one of two distributions and it attempts to determine which distribution it came from. Here the discriminator is given a sample consisting of components from two different distributions and attempts to determine which components came from which distribution.
102
+
103
+ We train $\mathbf { D _ { G } }$ to maximize the probability of correctly identifying $\eta$ . We then train $\mathbf { G }$ to maximize the probability of $\mathbf { D _ { G } }$ incorrectly identifying $\eta$ (equivalently we try to minimize the probability of a correct identification - this is the adversarial method of learning between $\mathbf { G }$ and $\mathbf { D _ { G } }$ ).
104
+
105
+ Following the framework in Goodfellow et al. (2014), we note that this formulation is captured by a minimax problem given by
106
+
107
+ $$
108
+ \operatorname* { m i n } _ { \mathbf { G } } \operatorname* { m a x } _ { \mathbf { D } _ { \mathbf { G } } } \mathbb { E } _ { ( \mathbf { x } , \mathbf { t } , y _ { f } ) \sim \mu _ { f } } \left[ \mathbb { E } _ { \mathbf { z } _ { \mathbf { G } } \sim \mathcal { U } ( ( - 1 , 1 ) ^ { k } ) } \left[ \mathbf { t } ^ { T } \log \mathbf { D } _ { \mathbf { G } } ( \mathbf { x } , \tilde { \mathbf { y } } ) + ( \mathbf { 1 } - \mathbf { t } ) ^ { T } \log ( 1 - \mathbf { D } _ { \mathbf { G } } ( \mathbf { x } , \tilde { \mathbf { y } } ) ) \right] \right]
109
+ $$
110
+
111
+ where log is performed element-wise and T denotes the transpose operator.
112
+
113
+ After training the counterfactual generator, we use it to generate the dataset $\tilde { \bf D }$ and pass this dataset to the ITE block.
114
+
115
+ ITE generator (I): The ITE generator, I, uses only the feature vector, $\mathbf { x }$ , to generate a potential outcome vector, $\hat { \mathbf { y } }$ . Similar to our approach with $\mathbf { G }$ , let $h$ be a function $h : \mathcal { X } \times \mathbf { \bar { [ - 1 , 1 ] } } ^ { k } \mathcal { V } ^ { k }$ and $\mathbf { z } _ { \mathbf { I } } \sim \mathcal { U } ( ( - 1 , 1 ) ^ { k } )$ ). We define the random variable $\mathbf { I } ( \mathbf { x } )$ as
116
+
117
+ $$
118
+ { \bf { I } } ( { \bf { x } } ) = h ( { \bf { x } } , { \bf { z } } _ { \bf { I } } )
119
+ $$
120
+
121
+ and similarly, the goal is to find a function, $h$ , such that $\mathbf { I } ( \mathbf { x } ) \sim \mu \mathbf { v } ( \mathbf { x } )$ . We write $\hat { \mathbf { y } }$ to denote a sample from $\mathbf { I } ( \mathbf { x } )$ .
122
+
123
+ ITE discriminator $\mathbf { ( D _ { I } ) }$ : Again, we introduce a discriminator, $\mathbf { D _ { I } }$ , but this time, since we have access to a complete dataset $\mathbf { \bar { D } }$ , we can use a standard conditional GAN discriminator - it takes a pair $\left( \mathbf { x } , \mathbf { y } ^ { * } \right)$ and returns a scalar corresponding to the probability that $\mathbf { y } ^ { * }$ was from the data $\tilde { \mathcal { D } }$ (rather than drawn from I). Again, we train the generator and discriminator in an adversarial fashion using the following minimax criteria
124
+
125
+ $$
126
+ \operatorname* { m i n } _ { \mathbf { I } } \operatorname* { m a x } _ { \mathbf { D } _ { \mathbf { I } } } \mathbb { E } _ { \mathbf { x } \sim \mu _ { \mathbf { X } } } \left[ \mathbb { E } _ { \mathbf { y } ^ { * } \sim \mu _ { \mathbf { Y } } } ( \mathbf { x } ) \left[ \log \mathbf { D } _ { \mathbf { I } } ( \mathbf { x } , \mathbf { y } ^ { * } ) \right] + \mathbb { E } _ { \mathbf { y } ^ { * } \sim \mathbf { I } ( \mathbf { x } ) } \left[ \log ( \mathbf { 1 } - \mathbf { D } _ { \mathbf { I } } ( \mathbf { x } , \mathbf { y } ^ { * } ) ) \right] \right]
127
+ $$
128
+
129
+ where again log is taken element-wise.
130
+
131
+ # 4 GANITE: OPTIMIZATION
132
+
133
+ In this section, we describe the empirical loss functions that are used to optimize each component of GANITE. The Pseudo-code is summarized in the Appendix.
134
+
135
+ # 4.1 COUNTERFACTUAL BLOCK $( \mathbf { G } , \mathbf { D } _ { \mathbf { G } } )$ :
136
+
137
+ Based on equation 4, the empirical objective of the minimax problem for $\mathbf { G }$ and $\mathbf { D _ { G } }$ can be defined by
138
+
139
+ $$
140
+ ^ { \prime } { _ { C F } } ( \mathbf { x } ( n ) , \mathbf { t } ( n ) , { \bar { \mathbf { y } } } ( n ) ) = \mathbf { t } ( n ) ^ { T } \log ( \mathbf { D _ { G } } ( \mathbf { x } ( n ) , { \bar { \mathbf { y } } } ( n ) ) ) + ( \mathbf { 1 } - \mathbf { t } ( n ) ) ^ { T } \log ( \mathbf { 1 } - \mathbf { D _ { G } } ( \mathbf { x } ( n ) , { \bar { \mathbf { y } } } ( n ) ) ) .
141
+ $$
142
+
143
+ We also introduce the following ‘supervised’ loss in order to enforce the restriction that $g _ { \eta }$ should be equal to $y _ { f }$ .
144
+
145
+ $$
146
+ \begin{array} { r } { \mathcal L _ { S } ^ { G } ( y _ { f } ( n ) , \tilde { y } _ { \eta ( n ) } ( n ) ) = ( y _ { f } ( n ) - \tilde { y } _ { \eta ( n ) } ( n ) ) ^ { 2 } } \end{array}
147
+ $$
148
+
149
+ More specifically, due to the structure of $G$ , it outputs a full vector of potential outcomes, and so it not only outputs counterfactuals, but also gives a value for the one factual that was used as input. We account for this by using $\mathcal { L } _ { S } ^ { G }$ to force the generated factual outcome to be close to the actually observed factual outcome. This is because, as noted above, conditional on observing $y _ { f }$ , the component of $y$ corresponding to $y _ { f }$ should clearly be equal to $y _ { f }$ .
150
+
151
+ With the above two objective functions, $\mathbf { G }$ and $\mathbf { D _ { G } }$ are iteratively optimized with $k _ { G }$ minibatches as follows:
152
+
153
+ $$
154
+ \begin{array} { l } { \displaystyle \operatorname* { m i n } _ { \mathbf { D } _ { \mathbf { G } } } - \sum _ { n = 1 } ^ { k _ { G } } V _ { C F } ( \mathbf { x } ( n ) , \mathbf { t } ( n ) , \bar { \mathbf { y } } ( n ) ) } \\ { \displaystyle \operatorname* { m i n } _ { \mathbf { G } } \sum _ { n = 1 } ^ { k _ { G } } \Big [ V _ { C F } ( \mathbf { x } ( n ) , \mathbf { t } ( n ) , \bar { \mathbf { y } } ( n ) ) + \alpha \mathcal { L } _ { S } ^ { G } ( y _ { f } ( n ) , \tilde { y } _ { \eta ( n ) } ( n ) ) \Big ] } \end{array}
155
+ $$
156
+
157
+ where $\alpha \geq 0$ is a hyper-parameter.
158
+
159
+ # 4.2 ITE BLOCK $( \mathbf { I } , \mathbf { D _ { I } } )$
160
+
161
+ After training the counterfactual block $( \mathbf { G } , \mathbf { D } _ { \mathbf { G } } )$ , GANITE optimizes the ITE block $( \mathbf { I } , \mathbf { D _ { I } } )$ . Based on equation 6, the empirical objective of the minimax problem for I and $\mathbf { D _ { I } }$ can be defined by
162
+
163
+ $$
164
+ V _ { I T E } ( \mathbf { x } ( n ) , \bar { \mathbf { y } } ( n ) , \hat { \mathbf { y } } ( n ) ) = \log ( \mathbf { D _ { I } } ( \mathbf { x } ( n ) , \bar { \mathbf { y } } ( n ) ) ) + \log ( 1 - \mathbf { D _ { I } } ( \mathbf { x } ( n ) , \hat { \mathbf { y } } ( n ) ) ) .
165
+ $$
166
+
167
+ Furthermore, in order to optimize the performance with respect to equations 1 and 2, we additionally introduce supervised losses (for the respective cases of $k = 2$ (binary treatments) and $k > 2$ (multiple treatments)) that are defined as follows:
168
+
169
+ $$
170
+ \begin{array} { r l } & { ( k = 2 ) : \mathcal { L } _ { S } ^ { I } ( \bar { \mathbf { y } } ( n ) , \hat { \mathbf { y } } ( n ) ) = ( ( \bar { y } _ { 1 } ( n ) - \bar { y } _ { 0 } ( n ) ) - ( \hat { y } _ { 1 } ( n ) - \hat { y } _ { 0 } ( n ) ) ) ^ { 2 } } \\ & { ( k > 2 ) : \mathcal { L } _ { S } ^ { I } ( \bar { \mathbf { y } } ( n ) , \hat { \mathbf { y } } ( n ) ) = | | \bar { \mathbf { y } } ( n ) - \hat { \mathbf { y } } ( n ) | | _ { 2 } ^ { 2 } . } \end{array}
171
+ $$
172
+
173
+ I and $\mathbf { D _ { I } }$ are then iteratively optimized with $k _ { I }$ minibatches as follows:
174
+
175
+ $$
176
+ \begin{array} { l } { \displaystyle \operatorname* { m i n } _ { { \bf { D } } _ { \bf { I } } } - \sum _ { n = 1 } ^ { k _ { I } } V _ { I T E } ( { \bf { x } } ( n ) , \bar { \bf { y } } ( n ) , \hat { \bf { y } } ( n ) ) } \\ { \displaystyle \operatorname* { m i n } _ { { \bf { I } } } \sum _ { n = 1 } ^ { k _ { G } } \Big [ V _ { I T E } ( { \bf { x } } ( n ) , \bar { \bf { y } } ( n ) , \hat { \bf { y } } ( n ) ) + \beta \mathcal { L } _ { S } ^ { I } ( \bar { \bf { y } } ( n ) , \hat { \bf { y } } ( n ) ) \Big ] } \end{array}
177
+ $$
178
+
179
+ where $\beta \geq 0$ is a hyper-parameter.
180
+
181
+ Empirical justification for the inclusion of all the above losses can be found in Section 5.3 where we explore the effect of training with and without each of the losses, see Table 6. We demonstrate there that using a combination of both (for both $\mathbf { G }$ and I) gives the best performance. In addition to this, by using a GAN loss for I we learn the conditional distribution of the potential outcomes rather than just the expectations (which would be the case if we only used the supervised loss $\mathcal { L } _ { S } ^ { I }$ . See Table 1 in Section 5.3). This allows us to capture the uncertainty of the outcomes, which is very important in the medical setting when treatment decisions need to be made by doctors on the basis of these types of estimations.
182
+
183
+ Due to the lack of ground truth, it is often difficult in causal inference tasks to optimize the hyperparameters. More specifically, we do not have access to the true loss function (either PEHE or MSE) that we are trying to minimize, and so it is not possible to select hyper-parameters that minimise the true loss. One of the advantages of GANITE, however, is that our target loss can be estimated from the generated counterfactuals, unlike other methods such as in Shalit et al. (2017). Therefore, we can directly optimize the hyper-parameters that minimize this estimated PEHE/MSE over the hyper-parameter space - details of our hyper-parameter optimization and the achieved optimal hyperparameters are illustrated in the Appendix.
184
+
185
+ # 5 EXPERIMENTS
186
+
187
+ # 5.1 DATASETS
188
+
189
+ Due to the nature of the problem, it is very difficult to evaluate the performance of the algorithm on real-world datasets - we never have access to the ground truth. Previous works, such as Shalit et al. (2017); Louizos et al. (2017), use both semi-synthetic datasets (either the treatments or the potential outcomes are synthesized) and datasets collected from randomized controlled trials (RCT) to evaluate the ITE generator. We use two semi-synthetic datasets, IHDP and Twins, and one realworld dataset, Jobs, to evaluate the performance of GANITE with various state-of-the-art methods. These datasets are the same as the ones used in Shalit et al. (2017); Louizos et al. (2017). Below, we give a detailed explanation of Twins. The details of IHDP and Jobs are well described in Shalit et al. (2017); Hill (2011); Dehejia & Wahba (2002a) and the Appendix.
190
+
191
+ Twins: This dataset is derived from all births in the USA between 1989-1991 (Almond et al. (2005)). Among these births, we only focus on the twins. We define the treatment $t = 1$ as being the heavier twin (and $t = 0$ as being the lighter twin). The outcome is defined as the 1-year mortality. For each twin-pair we obtained 30 features relating to the parents, the pregnancy and the birth: marital status; race; residence; number of previous births; pregnancy risk factors; quality of care during pregnancy; and number of gestation weeks prior to birth. We only chose twins weighing less than $2 \mathrm { k g }$ and without missing features (list-wise deletion). This creates a complete dataset (without missing data). The final cohort is 11,400 pairs of twins whose mortality rate for the lighter twin is $1 7 . 7 \%$ , and for the heavier $1 6 . 1 \%$ . In this setting, for each twin pair we observed both the case $t = 0$ (lighter twin) and $t = 1$ (heavier twin); thus, the ground truth of individualized treatment effect is known in this dataset. In order to simulate an observational study, we selectively observe one of the two twins using the feature information (creating selection bias) as follows: $t | \mathbf { x } \sim \mathrm { B e r n } ( \mathrm { S i g m o i d } ( \mathbf { w } ^ { T } \mathbf { x } + n ) )$ where $\mathbf { w } ^ { T } \sim \mathcal { U } ( ( - 0 . 1 , 0 . 1 ) ^ { 3 0 \times 1 } )$ and $n \sim \mathcal N ( 0 , 0 . 1 )$ .
192
+
193
+ # 5.2 PERFORMANCE METRICS AND SETTINGS
194
+
195
+ We use four different performance metrics: expected Precision in Estimation of Heterogeneous Effect (PEHE), average treatment effect (ATE) (Hill (2011)), policy risk $( R _ { p o l } ( \pi ) )$ , and average treatment effect on the treated (ATT) (Shalit et al. (2017)). In this subsection, we only provide definitions for PEHE and $R _ { p o l } ( \pi )$ . ATE and ATT are explained (and reported) in the Appendix.
196
+
197
+ If both factual and counterfactual outcomes are generated from a known distribution (so that we are able to compute the expectations of the outcomes, like in the IHDP dataset), and the treatment is binary, the empirical PEHE $( \epsilon _ { P E H E } )$ can be defined as follows:
198
+
199
+ $$
200
+ \epsilon _ { P E H E } = \frac { 1 } { N } \sum _ { n = 1 } ^ { N } \Big ( \mathbb { E } _ { ( y _ { 1 } ( n ) , y _ { 0 } ( n ) ) \sim \mu _ { \mathbf { Y } } ( \mathbf { x } ( n ) ) } [ y _ { 1 } ( n ) - y _ { 0 } ( n ) ] - [ \hat { y } _ { 1 } ( n ) - \hat { y } _ { 0 } ( n ) ] \Big ) ^ { 2 }
201
+ $$
202
+
203
+ where $y _ { 1 } ( n ) , y _ { 0 } ( n )$ are treated and controlled outcomes drawn from the ground truth $( \mu _ { \mathbf { Y } } ( \mathbf { x } ) )$ and $\hat { y } _ { 1 } ( n ) , \hat { y } _ { 0 } ( n )$ are their estimations.
204
+
205
+ If both factual and counterfactual outcomes are observed but the underlying distribution is unknown (like in the Twins dataset), $\hat { \epsilon } _ { P E H E }$ can be defined as follows:
206
+
207
+ $$
208
+ \hat { \epsilon } _ { P E H E } = \frac { 1 } { N } \sum _ { n = 1 } ^ { N } \Big ( [ y _ { 1 } ( n ) - y _ { 0 } ( n ) ] - [ \hat { y } _ { 1 } ( n ) - \hat { y } _ { 0 } ( n ) ] \Big ) ^ { 2 }
209
+ $$
210
+
211
+ If only factual outcomes are available but the testing set comes from a randomized controlled trial (RCT), such as in the Jobs dataset, Policy risk $( \mathcal { R } _ { p o l } ( \pi ) )$ can be defined as follows (Shalit et al. (2017)):
212
+
213
+ $$
214
+ R _ { p o l } ( \pi ) = \frac { 1 } { N } \sum _ { n = 1 } ^ { N } \Big [ 1 - \Big ( \sum _ { i = 1 } ^ { k } \big [ \frac { 1 } { | \Pi _ { i } \cap T _ { i } \cap E | } \sum _ { \mathbf { x } ( n ) \in \Pi _ { i } \cap T _ { i } \cap E } y _ { i } ( n ) \times \frac { | \Pi _ { i } \cap E | } { | E | } \big ] \Big ) \Big ]
215
+ $$
216
+
217
+ where $\Pi _ { i } = \{ { \bf x } ( n ) : i = \arg \operatorname* { m a x } \hat { \bf y } \}$ , $T _ { i } = \{ \mathbf { x } ( n ) : t _ { i } ( n ) = 1 \}$ , and $E$ is the subset of RCT.
218
+
219
+ Each dataset is divided $56 / 2 4 / 2 0 \%$ into training/validation/testing sets. Hyper-parameters such as the number of hidden layers $\alpha$ and $\beta$ are chosen using Random Search (Bergstra & Bengio (2012)). Details about the hyper-parameters are discussed in the Appendix. We run each algorithm 100 times (except for the IHDP dataset, on which we run each algorithm 1,000 times which is the same setting in Shalit et al. (2017)) with new training/validation/testing splits and report the mean and standard deviation of the performances.
220
+
221
+ # 5.3 EXPERIMENTAL RESULTS
222
+
223
+ In our first simulation we focus on demonstrating the effect that including each of the losses introduced in Section 4 has on the performance of the algorithm. As is demonstrated below, inclusion of all four losses gives the best results.
224
+
225
+ We generate a synthetic dataset as follows: we draw 10,000 10-dimensional feature vectors $\mathbf { x } \sim$ $\mathcal { N } ( \bar { \mathbf { 0 } } ^ { 1 0 \times 1 } , 0 . 5 \times \bar { ( } \Sigma + \Sigma ^ { T } ) )$ where $\Sigma \sim \mathcal { U } ( ( - 1 , 1 ) ^ { 1 0 \times 1 0 } )$ . The treatment assignment is then generated as $t | \mathbf { x } \sim \mathrm { B e r n } ( \mathrm { S i g m o i d } ( \mathbf { w } _ { t } ^ { T } \mathbf { x } + n _ { t } ) )$ where $\mathbf { w } _ { t } ^ { T } \sim \mathcal { U } ( ( - 0 . 1 , 0 . 1 ) ^ { 1 0 \times 1 } )$ and $n _ { t } \sim \mathcal { N } ( 0 , 0 . 1 )$ . The potential outcome vector is then generated as $\mathbf { y } | \mathbf { x } \sim ( \mathbf { w } _ { y } ^ { T } \mathbf { x } + \mathbf { n } _ { y } ) )$ where $\mathbf { w } _ { y } ^ { T } \sim \mathcal { U } ( ( - 1 , 1 ) ^ { 1 0 \times 2 } )$ and $\mathbf { n } _ { y } \sim \mathcal { N } ( \mathbf { 0 } ^ { 2 \times 1 } , 0 . 1 \times I ^ { 2 \times 2 } )$ . We use 8,000 instances for training and 2,000 instances for testing. We repeat this 100 times and report the average $\epsilon _ { P E H E }$ on the testing set.
226
+
227
+ Table 1: Performance with various combinations of GANITE (G: Counterfactual generator, I: ITE generator, S loss: Supervised loss). Details of each cell are illustrated in the Appendix as Figures.
228
+
229
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=3>G</td></tr><tr><td rowspan=1 colspan=1>PEHE</td><td rowspan=1 colspan=1>S loss only</td><td rowspan=1 colspan=1>GAN loss only</td><td rowspan=1 colspan=1>S and GAN loss</td></tr><tr><td rowspan=1 colspan=1>S loss only</td><td rowspan=1 colspan=1>.397 ± .011 (15.6%)</td><td rowspan=1 colspan=1>.610 ± .017 (45.1%)</td><td rowspan=1 colspan=1>.352 ± .012 (4.8%)</td></tr><tr><td rowspan=1 colspan=1>GAN loss only</td><td rowspan=1 colspan=1>.607 ± .044 (44.8%)</td><td rowspan=1 colspan=1>.513 ± .029 (34.7%)</td><td rowspan=1 colspan=1>.463 ± .015 (27.6%)</td></tr><tr><td rowspan=1 colspan=1>S and GAN loss</td><td rowspan=1 colspan=1>.362 ± .011 (7.5%)</td><td rowspan=1 colspan=1>.491 ± .030 (31.8%)</td><td rowspan=1 colspan=1>.335 ± .011 (-)</td></tr></table>
230
+
231
+ ![](images/fd37c222a08f381e5ecd4cdb21bb3a5edd9473c704498df62a1170f86849a63d.jpg)
232
+ Figure 2: Performance comparison between GANITE and state-of-the-art methods as the selection bias is varied (Kullback-Leibler divergence of treated with respect to controlled distributions)
233
+
234
+ Table 1 shows the performance of the GANITE architecture using different combinations of the four losses in Section 4. For each generator component, we can use 3 different combinations of loss: (1) Supervised loss (S loss) only (this reduces the corresponding component to a standard neural network), (2) GAN loss only, (3) both S loss and GAN loss. The top-left most entry corresponds to simply using a standard neural network to first impute the counterfactuals and then using another standard neural network to learn an ITE estimator from the imputed dataset. As can be seen, this already performs well, but by adding the GAN losses for both the imputation step and the estimation step, a significant gain is shown $( 1 5 . 6 \% )$ (the bottom-right entry).
235
+
236
+ In Fig. 2 we show that GANITE is robust to an increased selection bias. We generate 10,000 10-dimensional treated samples from $\mathbf { x } _ { 1 } \sim \mathcal { N } ( \mu _ { 1 } , 0 . 5 \times ( \Sigma + \Sigma ^ { T } ) )$ and controlled samples from $\mathbf { x } _ { 0 } \sim \mathcal { N } ( \mu _ { \mathbf { 0 } } , 0 . 5 \times ( \Sigma + \Sigma ^ { T } ) )$ where $\Sigma \sim \mathcal { U } ( ( - 1 , 1 ) ^ { 1 0 \times 1 0 } )$ . Fixing $\mu _ { 0 }$ and varying $\mu _ { 1 }$ , we generate various datasets with different Kullback-Leibler divergences (KL divergences) of $\mu _ { 1 }$ with respect to $\mu _ { 0 }$ . A higher KL divergence indicates a higher selection bias (a larger mismatch) between treated and controlled distributions. As seen in Fig. 2, GANITE robustly outperforms state-of-the-art methods such as Shalit et al. (2017); Alaa $\&$ van der Schaar (2017) across the entire range of tested divergences.
237
+
238
+ Binary treatments: In this section, we evaluate GANITE for estimating individualized treatment effects for binary treatments. We use three datasets and report the $\epsilon _ { P E H E }$ both in-sample and outof-sample (for ATE and ATT see the appendix). We compare GANITE with least squares regression using treatment as a feature $\mathrm { ( O L S / L R _ { 1 } }$ ), separate least squares regressions for each treatment $\mathrm { ( O L S / L R _ { 2 } }$ ), balancing linear regression (BLR) (Johansson et al. (2016)), $\mathbf { k }$ -nearest neighbor (k-NN) (Crump et al. (2008)), Bayesian additive regression trees (BART) (Chipman et al. (2010)), random forests (RForest) (Breiman (2001)), causal forests (C Forest) (Wager & Athey (2017)), balancing neural network (BNN) (Johansson et al. (2016)), treatment-agnostic representation network (TARNET) (Shalit et al. (2017)), counterfactual regression with Wasserstein distance $( \mathrm { C F R } _ { W A S S } )$ (Shalit et al. (2017)), and multi-task gaussian process (CMGP) (Alaa & van der Schaar (2017)). We evaluate both in-sample and out-of-sample performance in Table 2.
239
+
240
+ Table 2: Performance of ITE estimation with three real-world datasets. Bold indicates the method with the best performance for each dataset. ∗: is used to indicate methods that GANITE shows a statistically significant improvement over.
241
+
242
+ <table><tr><td rowspan="3">Methods</td><td colspan="6">Datasets (Mean ± Std)</td></tr><tr><td colspan="2">IHDP(ePEHE)</td><td colspan="2">Twins (VePEHE)</td><td colspan="2">Jobs (Rpot (π))</td></tr><tr><td>In-sample</td><td> Out-sample</td><td> In-sample</td><td> Out-sample</td><td>In-sample</td><td>Out-sample</td></tr><tr><td>GANITE</td><td>1.9 ± .4</td><td>2.4±.4</td><td>.289 ± .005</td><td>.297 ± .016</td><td>.13± .01</td><td>.14±.01</td></tr><tr><td rowspan="4">OLS/LR1 OLS/LR2 BLR k-NN</td><td>5.8±.3*</td><td>5.8±.3*</td><td>.319± .001*</td><td>.318 ± .007</td><td>.22± .00*</td><td>.23±.02*</td></tr><tr><td>2.4 ±.1</td><td>2.5± .1</td><td>.320 ± .002</td><td>.320± .003*</td><td>.21 ± .00*</td><td>.24±.01*</td></tr><tr><td>5.8±.3*</td><td>5.8±.3*</td><td>.312 ± .003*</td><td>.323 ± .018</td><td>.22 ±.01*</td><td>.25±.02*</td></tr><tr><td>2.1 ± .1</td><td>4.1± .2*</td><td>.333± .001*</td><td>.345 ± .007*</td><td>.02 ± .00</td><td>.26± .02*</td></tr><tr><td rowspan="4">RForest C Forest BNN</td><td>2.1±.1 4.2±.2*</td><td>2.3 ±.1</td><td>.347 ± .009*</td><td>.338 ± .016</td><td>.23± .00* .23 ± .01*</td><td>.25± .02*</td></tr><tr><td></td><td>6.6± .3*</td><td>.306 ± .002*</td><td>.321 ± .005</td><td></td><td>.28±.02*</td></tr><tr><td>3.8±.2*</td><td>3.8±.2*</td><td>.366± .003*</td><td>.316 ± .011</td><td>.19 ± .00*</td><td>.20±.02*</td></tr><tr><td>2.2 ±.1</td><td>2.1±.1</td><td>.325 ± .003*</td><td>.321± .018</td><td>.20± .01*</td><td>.24±.02*</td></tr><tr><td rowspan="4">TARNET CFRwASS CMGP</td><td>.88 ±.02</td><td>.95 ± .02</td><td>.317 ± .005*</td><td>.315 ± .003</td><td>.17 ± .01*</td><td>.21±.01*</td></tr><tr><td>.71 ± .02</td><td>.76 ± .02</td><td>.315±.007*</td><td>.313 ± .008</td><td>.17± .01*</td><td>.21± .01*</td></tr><tr><td>.65 ± .44</td><td>.77 ± .11</td><td>.320± .002*</td><td>.319 ± .008</td><td>.22± .03*</td><td>.24 ± .05</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
243
+
244
+ As can be seen in Table 2, GANITE achieves significant performance gains on the Twins and Jobs datasets in comparison with state-of-the-art methods (both in-sample and out-of-sample 2). GANITE achieves a much higher gain for individualized treatment effect estimations (such as $\hat { \epsilon } _ { P E H E }$ and $\mathcal { R } _ { p o l } ( \pi ) )$ than average treatment effect estimations (such as $\hat { \epsilon } _ { A T E }$ and $\epsilon _ { A T T }$ ). On IHDP, GANITE is competitive with BART and BNN but is outperformed by TARNET, $\mathbf { C F R } _ { W A S S }$ and CMGP. We believe this is due to the fact that GANITE has a large number of parameters to be optimized and IHDP is a relatively small dataset (747 samples). This belief is backed up by our significant gains over these methods in both Twins and Jobs, where the number of samples is much larger, (11400 and 3212 samples, respectively).
245
+
246
+ Table 3: Performance of multiple treatment effects estimations using Twins data. Bold indicates the method with the best performance for each dataset. ∗: is used to indicate methods that GANITE shows a statistically significant improvement over.
247
+
248
+ <table><tr><td rowspan=2 colspan=1>Methods</td><td rowspan=1 colspan=4>Metric: MSEy</td></tr><tr><td rowspan=1 colspan=1>In Sample</td><td rowspan=1 colspan=1>Gain (%)</td><td rowspan=1 colspan=1>Out Sample</td><td rowspan=1 colspan=1>Gain (%)</td></tr><tr><td rowspan=1 colspan=1>GANITE</td><td rowspan=1 colspan=1>.0427士.0161</td><td rowspan=1 colspan=1>(-)</td><td rowspan=1 colspan=1>.0723士.0183</td><td rowspan=1 colspan=1>(-)</td></tr><tr><td rowspan=2 colspan=1>OLS/LR1OLS/LR2BLRKNN</td><td rowspan=2 colspan=1>.0855士.0096.0857 ± .0099.0996 ± .0081*.0930 ± .0101*</td><td rowspan=1 colspan=1>50.1%</td><td rowspan=2 colspan=1>.0871±.0142.0883 ± .0147.1017 ± .0127.1008 ± .0236</td><td rowspan=2 colspan=1>17.0%18.1%28.9%28.3%</td></tr><tr><td rowspan=1 colspan=1>50.2%57.1%54.1%</td></tr><tr><td rowspan=1 colspan=1>BARTR ForestC Forest</td><td rowspan=1 colspan=1>.1097 ± .0084*.0442 ± .0069.1607 ± .0014*</td><td rowspan=1 colspan=1>61.1%3.4%73.4%</td><td rowspan=1 colspan=1>.1037 ± .0283.0927 ± .0138.1665 ± .0035*</td><td rowspan=1 colspan=1>30.3%22.0%56.6%</td></tr><tr><td rowspan=2 colspan=1>BNNTARNETCFRW ASSCMGP</td><td rowspan=1 colspan=1>.0602 ± .0102.0854 ± .0091</td><td rowspan=1 colspan=1>29.1%50.0%</td><td rowspan=2 colspan=1>.1031 ± .0145.0879 ± .0030.0894 ± .0057.0793 ± .0191</td><td rowspan=2 colspan=1>29.9%17.7%19.1%8.3%</td></tr><tr><td rowspan=1 colspan=1>.0896 ± .0036*.0844± .0073*</td><td rowspan=1 colspan=1>52.3%49.4%</td></tr></table>
249
+
250
+ Multiple treatments: GANITE is naturally defined for estimating multiple treatment effects. In this subsection, we further preprocess the Twins data to create a dataset containing multiple treatments. The multiple treatments are determined as follows: (1) $t = 1$ : lower weight, female sex, (2) $t = 2$ : lower weight, male sex, (3) $t = 3$ : higher weight, female sex, (4) $t = 4$ : higher weight, male sex. Therefore, we have 4 possible treatments for each sample.
251
+
252
+ We use the mean-squared error:
253
+
254
+ $$
255
+ \mathrm { M S E } _ { y } = \frac { 1 } { N \times | \mathcal { T } _ { i } | } \sum _ { i = 1 } ^ { N } \sum _ { t \in \mathcal { T } _ { i } } \Big ( y _ { t } ( x _ { i } ) - \hat { y } _ { t } ( x _ { i } ) \Big ) ^ { 2 }
256
+ $$
257
+
258
+ as the performance metric to evaluate the multiple treatment effects (other metrics, such as PEHE, do not have a natural extension to the multiple treatments setting). For comparison with state-of-the-art methods, we naively extend BLR, C Forest, BNN, TARNET, $\mathbf { C F R } _ { W A S S }$ , and CMGP for multiple treatments: one of the four treatments is selected as a control treatment and then the remaining three create three separate binary ITE estimation problems (all against the same chosen control treatment).
259
+
260
+ As can be seen in Table 3 compared with Table 2 GANITE significantly outperforms other state-ofthe-art methods such as TARNET and $\mathbf { C F R } _ { W A S S }$ $1 7 . 7 \%$ and $1 9 . 1 \%$ gains in terms of out sample MSE, respectively). This is because, GANITE is designed for multiple treatments; the model is jointly trained for all treatments. On the other hand, other methods are designed for binary treatments and only naively extend to multiple treatments by training pairs of the available treatments.
261
+
262
+ # 5.4 DISCUSSION
263
+
264
+ The experimental results provide various intuitions of the GANITE framework for ITE estimation. First, GANITE can be easily extended to any number of treatments and performs well in this multiple treatment setting. As can be seen in Section 4, however, a different loss for binary treatment and multiple treatments must be used because PEHE is only defined for the binary treatment setting - the MSE is not a natural generalisation of the PEHE and we believe exploration of possible loss functions in this setting would be an interesting future work.
265
+
266
+ A further extension to this problem would be to consider a setting in which a patient may receive several treatments (rather than just one). While this work can handle this problem naively (by treating each combination of treatments as a separate ‘treatment’) we believe this would also be an interesting problem to explore in a future work.
267
+
268
+ # 6 CONCLUSION
269
+
270
+ In this paper we introduced a novel method for dealing with the ITE estimation problem. We have shown empirically that our method is more robust to large selection biases and performs better on standard benchmark datasets than other state-of-the-art methods. Our method also achieves significant performance gains over state-of-the-art when estimating ITE for multiple treatments because it is able to jointly estimate the representations across the multiple treatments.
271
+
272
+ # ACKNOWLEDGMENTS
273
+
274
+ This work was supported by the Office of Naval Research (ONR) and the NSF (Grant number: ECCS1462245, ECCS1533983, and ECCS1407712).
275
+
276
+ # REFERENCES
277
+
278
+ Ahmed M Alaa and Mihaela van der Schaar. Bayesian inference of individualized treatment effects using multi-task gaussian processes. NIPS, 2017.
279
+
280
+ Ahmed M Alaa, Michael Weisz, and Mihaela van der Schaar. Deep counterfactual networks with propensity-dropout. ICML Workshop on Principled Approaches to Deep Learning, 2017.
281
+
282
+ Douglas Almond, Kenneth Y Chay, and David S Lee. The costs of low birth weight. The Quarterly Journal of Economics, 120(3):1031–1083, 2005.
283
+
284
+ Susan Athey and Guido Imbens. Recursive partitioning for heterogeneous causal effects. Proceedings of the National Academy of Sciences, 113(27):7353–7360, 2016.
285
+
286
+ James Bergstra and Yoshua Bengio. Random search for hyper-parameter optimization. Journal of Machine Learning Research, 13(Feb):281–305, 2012.
287
+
288
+ Leo Breiman. Random forests. Machine learning, 45(1):5–32, 2001.
289
+
290
+ Hugh A Chipman, Edward I George, Robert E McCulloch, et al. Bart: Bayesian additive regression trees. The Annals of Applied Statistics, 4(1):266–298, 2010.
291
+
292
+ Richard K Crump, V Joseph Hotz, Guido W Imbens, and Oscar A Mitnik. Nonparametric tests for treatment effect heterogeneity. The Review of Economics and Statistics, 90(3):389–405, 2008.
293
+
294
+ Rajeev H Dehejia and Sadek Wahba. Propensity score-matching methods for nonexperimental causal studies. The review of economics and statistics, 84(1):151–161, 2002a.
295
+
296
+ Rajeev H Dehejia and Sadek Wahba. Propensity score-matching methods for nonexperimental causal studies. The review of economics and statistics, 84(1):151–161, 2002b.
297
+
298
+ Vincent Dorie. Npci: Non-parametrics for causal inference, 2016.
299
+
300
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in Neural information processing systems, pp. 2672–2680, 2014.
301
+
302
+ A Hannart, J Pearl, FEL Otto, P Naveau, and M Ghil. Causal counterfactual theory for the attribution of weather and climate-related events. Bulletin of the American Meteorological Society, 97(1): 99–110, 2016.
303
+
304
+ Jennifer L Hill. Bayesian nonparametric modeling for causal inference. Journal of Computational and Graphical Statistics, 20(1):217–240, 2011.
305
+
306
+ M Hofler. Causal inference based on counterfactuals. ¨ BMC medical research methodology, 5(1):28, 2005.
307
+
308
+ Fredrik Johansson, Uri Shalit, and David Sontag. Learning representations for counterfactual inference. In International Conference on Machine Learning, pp. 3020–3029, 2016.
309
+
310
+ James K Kirklin, David C Naftel, Robert L Kormos, Lynne W Stevenson, Francis D Pagani, Marissa A Miller, Karen L Ulisney, J Timothy Baldwin, and James B Young. Second intermacs annual report: more than 1000 primary lvad implants. The Journal of heart and lung transplantation: the official publication of the International Society for Heart Transplantation, 29(1):1, 2010.
311
+
312
+ Robert J LaLonde. Evaluating the econometric evaluations of training programs with experimental data. The American economic review, pp. 604–620, 1986.
313
+
314
+ Christos Louizos, Uri Shalit, Joris Mooij, David Sontag, Richard Zemel, and Max Welling. Causal effect inference with deep latent-variable models. NIPS, 2017.
315
+
316
+ Min Lu, Saad Sadiq, Daniel J Feaster, and Hemant Ishwaran. Estimating individual treatment effect in observational data using random forest methods. arXiv preprint arXiv:1701.05306, 2017.
317
+
318
+ Jared K Lunceford and Marie Davidian. Stratification and weighting via the propensity score in estimation of causal treatment effects: a comparative study. Statistics in medicine, 23(19):2937– 2960, 2004.
319
+
320
+ Mehdi Mirza and Simon Osindero. Conditional generative adversarial nets. arXiv preprint arXiv:1411.1784, 2014.
321
+
322
+ Kristin E Porter, Susan Gruber, Mark J Van Der Laan, and Jasjeet S Sekhon. The relative performance of targeted maximum likelihood estimators. The International Journal of Biostatistics, 7 (1):1–34, 2011.
323
+
324
+ Donald B Rubin. Causal inference using potential outcomes: Design, modeling, decisions. Journal of the American Statistical Association, 100(469):322–331, 2005.
325
+
326
+ Uri Shalit, Fredrik Johansson, and David Sontag. Estimating individual treatment effect: generalization bounds and algorithms. ICML, 2017.
327
+
328
+ Jeffrey A Smith and Petra E Todd. Does matching overcome lalonde’s critique of nonexperimental estimators? Journal of econometrics, 125(1):305–353, 2005.
329
+
330
+ Peter Spirtes. A tutorial on causal inference. 2009.
331
+
332
+ Stefan Wager and Susan Athey. Estimation and inference of heterogeneous treatment effects using random forests. Journal of the American Statistical Association, (just-accepted), 2017.
333
+
334
+ # APPENDIX
335
+
336
+ PSEUDO-CODE OF GANITE
337
+
338
+ # Algorithm 1 Pseudo-code of GANITE
339
+
340
+ while convergence of training loss of G and $\mathbf { D _ { G } }$ do
341
+
342
+ # (1) Counterfactual block optimization
343
+
344
+ Use $k _ { C }$ minibatches, iteratively optimize $\mathbf { G } , \mathbf { D } _ { \mathbf { G } }$ by stochastic gradient descent (SGD)
345
+
346
+ $$
347
+ \begin{array} { l } { \displaystyle \operatorname* { m i n } _ { \mathbf { D } _ { \mathbf { G } } } - \sum _ { n = 1 } ^ { k _ { G } } V _ { C F } ( \mathbf { x } ( n ) , \mathbf { t } ( n ) , \tilde { \mathbf { y } } ( n ) ) } \\ { \displaystyle \operatorname* { m i n } _ { \mathbf { G } } \sum _ { n = 1 } ^ { k _ { G } } \Big [ V _ { C F } ( \mathbf { x } ( n ) , \mathbf { t } ( n ) , \tilde { \mathbf { y } } ( n ) ) + \alpha \mathcal { L } _ { S } ^ { G } ( y _ { f } ( n ) , \tilde { y } _ { \eta ( n ) } ^ { * } ( n ) ) \Big ] } \end{array}
348
+ $$
349
+
350
+ while convergence of training loss of $\mathbf { I }$ and $\mathbf { D _ { I } }$ do
351
+
352
+ # (2) ITE block optimization
353
+
354
+ Use $k _ { I }$ minibatches, update $\mathbf { I } , \mathbf { D _ { I } }$ by SGD
355
+
356
+ $$
357
+ \begin{array} { l } { \displaystyle \operatorname* { m i n } _ { { \bf { D } } _ { \bf { I } } } - \sum _ { n = 1 } ^ { k _ { I } } V _ { I T E } ( { \bf { x } } ( n ) , \tilde { { \bf { y } } } ( n ) , \hat { { \bf { y } } } ( n ) ) } \\ { \displaystyle \operatorname* { m i n } _ { { \bf { I } } } \sum _ { n = 1 } ^ { k _ { G } } \left[ V _ { I T E } ( { \bf { x } } ( n ) , \tilde { { \bf { y } } } ( n ) , \hat { { \bf { y } } } ( n ) ) + \beta \mathcal { L } _ { S } ^ { I } ( \tilde { { \bf { y } } } ( n ) , \hat { { \bf { y } } } ( n ) ) \right] } \end{array}
358
+ $$
359
+
360
+ DETAILED DESCRIPTION OF THE DATASETS
361
+
362
+ IHDP
363
+
364
+ Hill (2011) provided a dataset for ITE estimation with the Infant Health and Development Program (IHDP). The dataset consists of 747 children ( $\mathrm { \Delta } t = 1$ : 139, $t = 0 6 0 8$ ) with 25 features. We generated potential outcomes from setting A in the NPCI package Dorie (2016).
365
+
366
+ JOBS
367
+
368
+ Jobs data studied in LaLonde (1986) is composed of randomized data based on the National Supported Work program and non-randomized data from observational studies. We use a (random) subset of the randomized data to evaluate the algorithms based on $\mathcal { R } _ { p o l } ( \pi )$ and $\epsilon _ { A T T }$ . The dataset consists of 722 randomized samples $\mathit { t } = 1$ : 297, $t = 0$ : 425) and 2490 non-randomized samples $( t = 1 ; 0 , t = 0 ; 2 4 9 0 )$ , all with 7 features.
369
+
370
+ # SUMMARY OF THE DATASETS
371
+
372
+ Table 4: Summary of the datasets (N is the number of samples, s is the feature-dimension)
373
+
374
+ <table><tr><td rowspan="2">Data</td><td colspan="5">Condition</td><td colspan="2">一 Property</td></tr><tr><td>F</td><td>CF</td><td>Distribution</td><td>RT-test</td><td>T</td><td>N</td><td>一 S</td></tr><tr><td>IHDP</td><td>√</td><td>√</td><td>Known</td><td></td><td>Binary</td><td>747</td><td>25</td></tr><tr><td>Jobs</td><td>√</td><td>X</td><td>Unknown</td><td>√</td><td>Binary</td><td>3212</td><td>7</td></tr><tr><td>Twins-Binary</td><td>√</td><td>√</td><td>Unknown</td><td></td><td>Binary</td><td>11400</td><td>30</td></tr><tr><td>Twins-Multiple</td><td>√</td><td>X</td><td>Unknown</td><td></td><td>Multiple</td><td>11400</td><td>30</td></tr></table>
375
+
376
+ <table><tr><td rowspan="3">Methods</td><td colspan="6">Datasets (Mean ± Std)</td></tr><tr><td colspan="2">IHDP (EATE) 一</td><td colspan="2">Twins (CATE)</td><td colspan="2">Jobs (EATT)</td></tr><tr><td>In-sample</td><td> Out-sample</td><td>In-sample</td><td>Out-sample</td><td>In-sample</td><td> Out-sample</td></tr><tr><td>GANITE</td><td>.43± .05</td><td>.49± .05</td><td>.0058 ± .0017</td><td>.0089± 0.0075</td><td>.01 ± .01</td><td>.06 ± .03</td></tr><tr><td rowspan="4">OLS/LR1 OLS/LR2 BLR k-NN</td><td>.73± .04*</td><td>.94 ± .06*</td><td>.0038 ± .0025</td><td>.0069 ± .0056</td><td>.01±.00</td><td>.08± .04</td></tr><tr><td>.14 ± .01</td><td>.31± .02</td><td>.0039 ± .0025</td><td>.0070 ± .0059</td><td>.01 ± .01</td><td>.08 ± .03</td></tr><tr><td>.72 ± .04*</td><td>.93 ± .05*</td><td>.0057 ± .0036</td><td>.0334± .0092*</td><td>.01 ± .01</td><td>.08 ± .03</td></tr><tr><td>.14 ± .01</td><td>.90± .05*</td><td>.0028 ± .0021</td><td>.0051 ± .0039</td><td>.21±.01*</td><td>.13 ± .05</td></tr><tr><td rowspan="3">BART R Forest C Forest</td><td>.23 ± .01</td><td>.34± .02</td><td>.1206 ± .0236*</td><td>.1265 ± .0234*</td><td>.02 ± .00</td><td>.08± .03</td></tr><tr><td>.73± .05*</td><td>.96 ± .06*</td><td>.0049 ± .0034</td><td>.0080 ± .0051</td><td>.03 ± .01</td><td>.09 ± .04</td></tr><tr><td>.18 ± .01</td><td>.40± .03</td><td>.0286 ± .0035*</td><td>.0335± .0083*</td><td>.03 ± .01</td><td>.07± .03</td></tr><tr><td rowspan="4">BNN TARNET CFRwASS CMGP</td><td>.37±.03</td><td>.42 ± .03</td><td>.0056 ± .0032</td><td>.0203 ± .0071</td><td>.04 ±.01</td><td>.09 ± .04</td></tr><tr><td>.26 ± .01</td><td>.28± .01</td><td>.0108± .0017*</td><td>.0151 ± .0018</td><td>.05 ± .02</td><td>.11 ± .04</td></tr><tr><td>.25 ± .01</td><td>.27 ± .01</td><td>.0112 ± .0016*</td><td>.0284± .0032*</td><td>.04 ± .01</td><td>.09 ± .03</td></tr><tr><td>.11 ± .10</td><td>.13 ± .12</td><td>.0124 ± .0051</td><td>.0143 ± .0116</td><td>.06 ± .06</td><td>.09 ± .07</td></tr></table>
377
+
378
+ Table 5: Performance of average treatment effect estimation. Bold represents the best performance.
379
+ ∗: statistically significant improvement of GANITE.
380
+
381
+ # PERFORMANCE METRICS AND THE RESULTS OF AVERAGE TREATMENT EFFECT ESTIMATION
382
+
383
+ In this subsection, we use two different performance metrics for average treatment effect (ATE) estimation: average treatment effect (ATE) (Hill (2011)), and average treatment effect on the treated (ATT) (Shalit et al. (2017)).
384
+
385
+ If both factual and counterfactual outcomes are generated from a known distribution (and so we are able to compute the expected value, such as in IHDP), the error of ATE $( \epsilon _ { A T E } )$ is defined as:
386
+
387
+ $$
388
+ \epsilon _ { A T E } = | | \frac { 1 } { N } \sum _ { n = 1 } ^ { N } \mathbb { E } _ { { \mathbf { y } } ( n ) \sim \mu _ { { \mathbf { Y } } } ( { \mathbf { x } } ( n ) ) } [ { \mathbf { y } } ( n ) ] - \frac { 1 } { N } \sum _ { i = 1 } ^ { n } \hat { { \mathbf { y } } } ( n ) | | _ { 2 } ^ { 2 }
389
+ $$
390
+
391
+ where $\hat { \mathbf { y } }$ is the estimated potential outcome.
392
+
393
+ If both factual and counterfactual outcomes are observed but the underlying distribution is unknown (like in Twins), $\epsilon _ { A \hat { T } E }$ is defined as:
394
+
395
+ $$
396
+ \hat { \epsilon } _ { A T E } = | | \frac { 1 } { N } \sum _ { n = 1 } ^ { N } \mathbf { y } ( n ) - \frac { 1 } { N } \sum _ { n = 1 } ^ { N } \hat { \mathbf { y } } ( n ) | | _ { 2 } ^ { 2 }
397
+ $$
398
+
399
+ If only factual outcomes are available (such as in Jobs), treatment is binary, and the testing set comes from a randomized controlled trial (RCT), the true average treatment effect on the treated (ATT) is defined as follows (Shalit et al. (2017)):
400
+
401
+ $$
402
+ \begin{array} { l } { { \displaystyle { \cal A T T } = \frac { 1 } { | T _ { 1 } \cap { \cal E } | } \sum _ { { \bf x } _ { i } \in T _ { 1 } \cap { \cal E } } Y _ { 1 } ( { \bf x } _ { i } ) - \frac { 1 } { | T _ { 0 } \cap { \cal E } | } \sum _ { { \bf x } _ { i } \in C \cap { \cal E } } Y _ { 0 } ( { \bf x } _ { i } ) } } \\ { { \displaystyle \epsilon _ { A T T } = | A T T - \frac { 1 } { | T _ { 1 } \cap { \cal E } | } \sum _ { { \bf x } _ { i } \in T _ { 1 } \cap { \cal E } } \hat { Y } _ { 1 } ( { \bf x } _ { i } ) - \hat { Y } _ { 0 } ( { \bf x } _ { i } ) | } } \end{array}
403
+ $$
404
+
405
+ where $T _ { 1 }$ is the subset corresponding to treated samples, $T _ { 0 }$ is the subset corresponding to controlled samples, and $E$ is the subset corresponding to the randomized controlled trials.
406
+
407
+ Table. 5 shows the performance of the various algorithms with respect to these metrics.
408
+
409
+ As can be seen in Table 5, the GANITE achieves competitive performances for Average Treatment Effect (ATE) estimation but not the best model to estimate ATE (except the Jobs dataset). However, we do not believe that it is an important metric for distinguishing models where the task is predicting
410
+
411
+ treatment effects on an individual level. The problem we address with GANITE is to estimate the ITE. We used the ATE performance as a sanity check for our method - and believe it passes the sanity check, being competitive with most other methods.
412
+
413
+ # HYPER-PARAMETER OPTIMIZATION
414
+
415
+ We optimize our hyper-parameters in GANITE by estimating the PEHE (MSE in the case of multiple treatments) on the dataset generated by G and minimizing this with respect to the hyper-parameters. The table below indicates specifics of this process, including the values we search over.
416
+
417
+ Table 6: Hyper-parameters of GANITE
418
+
419
+ <table><tr><td>Blocks</td><td>Sets of Hyper-parameters</td></tr><tr><td>Initialization</td><td>Xavier Initialization for Weight matrix, Zero initialization for bias vector.</td></tr><tr><td>Optimization</td><td>Adam Moment Optimization</td></tr><tr><td>Batch size (kG, k1)</td><td>{32,64,128,256}</td></tr><tr><td>Depth of layers</td><td>{1,3,5,7,9}</td></tr><tr><td>Hidden state dimension</td><td>{s, int(s/2),int(s/3), int(s/4),int(s/5)}</td></tr><tr><td>α,β</td><td>{0,0.1,0.5,1,2,5,10}</td></tr></table>
420
+
421
+ For the hyper-parameter optimization of the benchmarks, we follow the hyper-parameter optimzation code published in the github with their main code. For instance, the hyper-parameters of $\mathbf { C F R } _ { W A S S }$ are optimized using cfr_param_search.py file which is published in https: //github.com/clinicalml/cfrnet
422
+
423
+ # OPTIMAL HYPER-PARAMETERS FOR EACH DATASET
424
+
425
+ Table 7: Optimal Hyper-parameters of GANITE
426
+
427
+ <table><tr><td>Dataset</td><td>Optimal Hyper-parameters</td></tr><tr><td>IHDP</td><td>kG : 64,k1 : 64, Depth of layers: 5, hdim: 8,α : 2, β : 5</td></tr><tr><td>Jobs</td><td>kG : 128,k1 : 128,Depth of layers: 3, hdim: 4, α : 1, β : 5</td></tr><tr><td></td><td>Twins - Binary|kg : 128,k1 : 128,Depth of layers: 5, hdim: 8,α : 2, β : 2</td></tr><tr><td></td><td>Twins - Multiple |kg : 128,k1 : 128,Depth of layers: 7, hdim: 8,α : 1, β : 2</td></tr></table>
428
+
429
+ ADDITIONAL EXPERIMENTS
430
+
431
+ # PERFORMANCE GAP BETWEEN $G$ AND $I$
432
+
433
+ As explained in Section 4, $I$ tries to learn the potential distribution that consists of factual outcomes and counterfactual outcomes that are generated by $G$ . To evaluate how well $I$ is able to learn from $G$ , we compare the performance of $G$ and $I$ of the GANITE framework in Table 8 in terms of ITE estimation. As can be seen in Table 8, the in-sample ITE estimation performance of GANITE (I) is competitive with GANITE (G). It experimentally verifies that GANITE (I) learns well from the outputs of GANITE (G).
434
+
435
+ # ZERO OUT THE CONTRIBUTION OF FACTUAL OUTCOME AND TREATMENT
436
+
437
+ In this section, we use the trained $G$ to compute ITE only with $x$ . The learned function $G$ needs $x , t$ , and $y _ { f }$ as the inputs. Therefore, in order to compute ITE only with $x$ , we should zero out the contribution of $t$ and $y _ { f }$ in the $G$ function. $G$ tries to learn the conditional probability $\mathcal { P } ( y | x , y _ { f } , t )$
438
+
439
+ <table><tr><td rowspan="2">Methods</td><td colspan="3">Datasets (Mean ± Std)</td></tr><tr><td>IHDP(√∈PEHE)</td><td>)|Twins (√PEHE) |Jobs (Rpot(π))</td><td></td></tr><tr><td>GANITE (I)</td><td>1.9 ± .4</td><td>.289 ± .005</td><td>.13 ± .01</td></tr><tr><td>GANITE (G)</td><td>1.4 ± .2</td><td>.267 ± .004</td><td>一 .10 ± .01</td></tr></table>
440
+
441
+ Table 8: Performance comparison of in-sample ITE estimation between GANITE (I) and GANITE (G) with three real-world datasets.
442
+
443
+ and what we want to compute is the conditional probability $\mathcal { P } ( y | x )$ . Therefore, zero out the impact of $t$ and $y _ { f }$ can be done as follows.
444
+
445
+ $$
446
+ \mathcal { P } ( y | x ) = \int \mathcal { P } ( y | x , t , y _ { f } ) P ( y _ { f } , t | x ) d t d y _ { f }
447
+ $$
448
+
449
+ The $\mathcal { P } ( y | x , t , y _ { f } )$ is learned by $G$ and $P ( \boldsymbol { y } _ { f } , t | \boldsymbol { x } )$ can be easily learned using supervised learning framework (all the labels $( y _ { f } , t )$ are available) with drop-out approach (to approximate the integral as the sample mean of multiple samples). We use multi-layer perceptron (MLP) with multiple outputs to learn the function $P ( \boldsymbol { y } _ { f } , t | \boldsymbol { x } )$ . We called this as zero-out GANITE. We compare the performance of zero-out GANITE to original GANITE in Table 9. As can be seen in Table 9, the performance of original GANITE is marginally better than zero-out GANITE in three different datasets. We do not believe that zero-out GANITE would be any simpler than our proposed structure - in both cases we would still have 2 learning stages (Table 9 experimentally verifies this).
450
+
451
+ Table 9: Performance comparison of ITE estimation between GANITE and zero-out GANITE with three real-world datasets.
452
+
453
+ <table><tr><td rowspan="3">Methods</td><td colspan="6">Datasets (Mean ± Std)</td></tr><tr><td colspan="2">IHDP(VePEHE)</td><td colspan="2">Twins (√PEHE)</td><td colspan="2">Jobs (Rpot(π))</td></tr><tr><td>In-sample</td><td> Out-sample</td><td> In-sample</td><td> Out-sample</td><td> In-sample</td><td> Out-sample</td></tr><tr><td>GANITE</td><td>1.9 ±.4</td><td>2.4±.4</td><td>.289± .005</td><td>.297± .016</td><td>.13± .01</td><td>.14±.01</td></tr><tr><td>zero-out GANITE</td><td>2.2±.6</td><td>2.6±.7</td><td>.297± .008</td><td>.308 ± .022</td><td>.14±.02</td><td>.17 ± .01</td></tr></table>
454
+
455
+ ![](images/01fd331969becb74c40c9fb7393e84c8324068e58272206cc658ec33f29a6398.jpg)
456
+ Figure 3: (a) Underlying distribution of potential outcomes $( \mathbf { Y } )$ , (b) Underlying distribution of treatment assignments $\mathcal { P } ( { \cal T } | \mathbf { X } )$ , (c) Training data (factual outcomes) sampled from distributions explained in (a) and (b), (d) Potential outcomes sampled from trained ITE generator (I).
457
+
458
+ ![](images/5416c8d18c27cc7fc97591fbcdf148d6dbf632cdd2afabd0c653a7efc1971edb.jpg)
459
+ (a) G: S loss only, I: S loss only
460
+
461
+ ![](images/5580d21a47b5741dd06226c58dfaa2bbb1c03ef1fe3ca55713d2b3bbaf8b0b5d.jpg)
462
+ (b) G: GAN loss only, I: S loss only
463
+
464
+ ![](images/e9299a806ba69fd8e89515db3209b4579df81b24690d66d8b9ef100f04b20764.jpg)
465
+ (c) G: S and GAN loss, I: S loss only
466
+
467
+ ![](images/891cb861535bc715091ce87230dc8702cd04ebdf141d97b640c2b5094b9ef472.jpg)
468
+ (d) G: S loss only, I: GAN loss only
469
+
470
+ ![](images/e8202c3d1bf7ddb4e787d1942f7f32133116c72050d09baa9baed922310dfa18.jpg)
471
+ (e) G: GAN loss only, I: GAN loss only
472
+
473
+ ![](images/994fff82ccfbb7486666c9221e5989a475319e8e43c29a7f6cacbe4bd88f2d0d.jpg)
474
+ (f) G: S and GAN loss, I: GAN loss only
475
+
476
+ ![](images/c82ac2826b7806b7c0ba8cf563fd2ffcaa3c43ab51fcd20911ca9dda93b906d5.jpg)
477
+ (g) G: S loss only, I: S and GAN loss
478
+
479
+ ![](images/49c0f1002d5b450bc923865f91e3b18d15f07d7c854ca2714774ab3647801e2a.jpg)
480
+ (h) G: GAN loss only, I: S and GAN loss
481
+
482
+ ![](images/31e865395490289cff0612ce8a331ba74695faa7bc947b3e52871c43343fbff7.jpg)
483
+ (i) G: S and GAN loss, I: S and GAN loss
parse/train/ByKWUeWA-/ByKWUeWA-_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByKWUeWA-/ByKWUeWA-_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ByKWUeWA-/ByKWUeWA-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hk3mPK5gg/Hk3mPK5gg.md ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TRAINING AGENT FOR FIRST-PERSON SHOOTERGAME WITH ACTOR-CRITIC CURRICULUM LEARNING
2
+
3
+ Yuxin Wu Carnegie Mellon University ppwwyyxx@gmail.com
4
+
5
+ Yuandong Tian Facebook AI Research yuandong@fb.com
6
+
7
+ # ABSTRACT
8
+
9
+ In this paper, we propose a new framework for training vision-based agent for First-Person Shooter (FPS) Game, in particular Doom. Our framework combines the state-of-the-art reinforcement learning approach (Asynchronous Advantage Actor-Critic (A3C) model [Mnih et al. (2016)]) with curriculum learning. Our model is simple in design and only uses game states from the AI side, rather than using opponents’ information [Lample & Chaplot (2016)]. On a known map, our agent won 10 out of the 11 attended games and the champion of Track1 in ViZDoom AI Competition 2016 by a large margin, $3 5 \%$ higher score than the second place.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Deep Reinforcement Learning has achieved super-human performance in fully observable environments, e.g., in Atari Games [Mnih et al. (2015)] and Computer Go [Silver et al. (2016)]. Recently, Asynchronous Advantage Actor-Critic (A3C) [Mnih et al. (2016)] model shows good performance for 3D environment exploration, e.g. labyrinth exploration. However, in general, to train an agent in a partially observable 3D environment from raw frames remains an open challenge. Direct application of A3C to competitive 3D scenarios, e.g. 3D games, is nontrivial, partly due to sparse and long-term rewards in such scenarios.
14
+
15
+ Doom is a 1993 First-Person Shooter (FPS) game in which a player fights against other computercontrolled agents or human players in an adversarial 3D environment. Previous works on FPS AI [van Waveren (2001)] focused on using hand-tuned state machines and privileged information, e.g., the geometry of the map, the precise location of all players, to design playable agents. Although state-machine is conceptually simple and computationally efficient, it does not operate like human players, who only rely on visual (and possibly audio) inputs. Also, many complicated situations require manually-designed rules which could be time-consuming to tune.
16
+
17
+ In this paper, we train an AI agent in Doom with a framework that based on A3C with convolutional neural networks (CNN). This model uses only the recent 4 frames and game variables from the AI side, to predict the next action of the agent and the value of the current situation. We follow the curriculum learning paradigm [Bengio et al. (2009); Jiang et al. (2015)]: start from simple tasks and then gradually try harder ones. The difficulty of the task is controlled by a variety of parameters in Doom environment, including different types of maps, strength of the opponents and the design of the reward function. We also develop adaptive curriculum training that samples from a varying distribution of tasks to train the model, which is more stable and achieves higher score than A3C with the same number of epoch. As a result, our trained agent, named $F l$ , won the champion in Track 1 of ViZDoom Competition 1 by a large margin.
18
+
19
+ There are many contemporary efforts on training a Doom AI based on the VizDoom platform [Kempka et al. (2016)] since its release. Arnold [Lample & Chaplot (2016)] also uses game frames and trains an action network using Deep Recurrent Q-learning [Hausknecht & Stone (2015)], and a navigation network with DQN [Mnih et al. (2015)]. However, there are several important differences. To predict the next action, they use a hybrid architecture (CNN+LSTM) that involves more complicated training procedure. Second, in addition to game frames, they require internal game status about the opponents as extra supervision during training, e.g., whether enemy is present in the current frame. IntelAct [Dosovitskiy & Koltun (2017)] models the Doom AI bot training in a supervised manner by predicting the future values of game variables (e.g., health, amount of ammo, etc) and acting accordingly. In comparison, we use curriculum learning with asynchronized actorcritic models and use stacked frames (4 most recent frames) and resized frames to mimic short-term memory and attention. Our approach requires no opponent’s information, and is thus suitable as a general framework to train agents for close-source games.
20
+
21
+ ![](images/94e7209ea3441576d67165943add7c75f4dd503b4fae9ca36f17aa99178edeb9.jpg)
22
+ Figure 1: The basic framework of actor-critic model.
23
+
24
+ In VizDoom AI Competition 2016 at IEEE Computational Intelligence And Games (CIG) Conference2, our AI won the champion of Track1 (limited deathmatch with known map), and IntelAct won the champion of Track2 (full deathmatch with unknown maps). Neither of the two teams attends the other track. Arnold won the second places of both tracks and CLYDE [Ratcliffe et al. (2017)] won the third place of Track1.
25
+
26
+ # 2 THE ACTOR-CRITIC MODEL
27
+
28
+ The goal of Reinforcement Learning (RL) is to train an agent so that its behavior maximizes/minimizes expected future rewards/penalties it receives from a given environment [Sutton & Barto (1998)]. Two functions play important roles: a value function $\bar { V } ( s )$ that gives the expected reward of the current state $s$ , and a policy function $\pi ( a | s )$ that gives a probability distribution on the candidate actions $a$ for the current state $s$ . Getting the groundtruth value of either function would largely solve RL: the agent just follows $\pi ( a | s )$ to act, or jumps in the best state provided by $V ( s )$ when the number of candidate next states is finite and practically enumerable. However, neither is trivial.
29
+
30
+ Actor-critic models [Barto et al. (1983); Sutton (1984); Konda & Tsitsiklis (1999); Grondman et al. (2012)] aim to jointly estimate $V ( s )$ and $\pi ( a | s )$ : from the current state $s _ { t }$ , the agent explores the environment by iteratively sampling the policy function $\pi ( a _ { t } | s _ { t } ; \mathbf { w } _ { \pi } )$ and receives positive/negative reward, until the terminal state or a maximum number of iterations are reached. The exploration gives a trajectory $\left\{ \bigl ( s _ { t } , a _ { t } , r _ { t } \bigr ) , \bigl ( s _ { t + 1 } , a _ { t + 1 } , r _ { t + 1 } \bigr ) , \cdot \cdot \cdot \right\}$ , from which the policy function and value function are updated. Specifically, to update the value function, we use the expected reward $R _ { t }$ along the trajectory as the ground truth; to update the policy function, we encourage actions that lead to high rewards, and penalize actions that lead to low rewards. To determine whether an action leads to high- or low-rewarding state, a reference point, called baseline [Williams (1992)], is usually needed. Using zero baseline might increase the estimation variance. [Peters & Schaal (2008)] gives a way to estimate the best baseline (a weighted sum of cumulative rewards) that minimizes the variance of the gradient estimation, in the scenario of episodic REINFORCE [Williams (1992)].
31
+
32
+ In actor-critic frameworks, we pick the baseline as the expected cumulative reward $V ( s )$ of the current state, which couples the two functions $V ( s )$ and $\pi ( a | s )$ together in the training, as shown in Fig. 1. Here the two functions reinforce each other: a correct $\pi ( a | s )$ gives high-rewarding trajectories which update $V ( s )$ towards the right direction; a correct $V ( s )$ picks out the correct actions for $\pi ( a | s )$ to reinforce. This mutual reinforcement behavior makes actor-critic model converge faster, but is also prone to converge to bad local minima, in particular for on-policy models that follow the very recent policy to sample trajectory during training. If the experience received by the agent in consecutive batches is highly correlated and biased towards a particular subset of the environment, then both $\pi ( a | s )$ and $V ( s )$ will be updated towards a biased direction and the agent may never see the whole picture. To reduce the correlation of game experience, Asynchronous Advantage ActorCritic Model [Mnih et al. (2016)] runs independent multiple threads of the game environment in parallel. These game instances are likely uncorrelated, therefore their experience in combination would be less biased.
33
+
34
+ ![](images/3195acd31df59ed688f0d1008bb33671b952f495ee12e0056935bb075cb887b1.jpg)
35
+ Figure 2: Two maps we used in the paper. FlatMap is a simple square containing four pillars . CIGTrack1 is the map used in Track1 in ViZDoom AI Competition (We did not attend Track2). Black dots are items (weapons, ammo, medkits, armors, etc).
36
+
37
+ For on-policy models, the same mutual reinforcement behavior will also lead to highly-peaked $\pi ( a | s )$ towards a few actions (or a few fixed action sequences), since it is always easy for both actor and critic to over-optimize on a small portion of the environment, and end up “living in their own realities”. To reduce the problem, [Mnih et al. (2016)] added an entropy term to the loss to encourage diversity, which we find to be critical. The final gradient update rules are listed as follows:
38
+
39
+ $$
40
+ \begin{array} { r l } & { \mathbf { w } _ { \pi } \mathbf { w } _ { \pi } + \alpha ( R _ { t } - V ( s _ { t } ) ) \nabla _ { \mathbf { w } _ { \pi } } \log \pi ( a _ { t } | s _ { t } ) + \beta \nabla _ { \mathbf { w } _ { \pi } } H ( \pi ( \cdot | s _ { t } ) ) } \\ & { \mathbf { w } _ { V } \mathbf { w } _ { V } - \alpha \nabla _ { \mathbf { w } _ { V } } ( R _ { t } - V ( s _ { t } ) ) ^ { 2 } } \end{array}
41
+ $$
42
+
43
+ where rate. I $\begin{array} { r } { R _ { t } = \sum _ { t ^ { \prime } = t } ^ { T } \gamma ^ { t ^ { \prime } - t } r _ { t ^ { \prime } } } \end{array}$ is the expected discounted reward at time uber loss instead of the L2 loss in Eqn. 2. $t$ and $\alpha , \beta$ are the learning
44
+
45
+ Architecture. While [Mnih et al. (2016)] keeps a separate model for each asynchronous agent and perform model synchronization once in a while, we use an alternative approach called BatchA3C, in which all agents act on the same model and send batches to the main process for gradient descent optimization. The agents’ models are updated after each gradient update. Note that the contemporary work GA3C [Babaeizadeh et al. (2017)] also proposes a similar architecture. In their architecture, there is a prediction queue that collects agents’ experience and sends them to multiple predictors, and a training queue that collects experience to feed the optimization.
46
+
47
+ # 3 DOOM AS A REINFORCEMENT LEARNING PLATFORM
48
+
49
+ In Doom, the player controls the agent to fight against enemies in a 3D environment (e.g., in a maze). The agent can only see the environment from his viewpoint and thus receives partial information upon which it makes decisions. On modern computers, the original Doom runs in thousands of frames per second, making it suitable as a platform for training AI agent. ViZDoom [Kempka et al. (2016)] is an open-source platform that offers programming interface to communicate with Doom engine, ZDoom3. From the interface, users can obtain current frames of the game, and control the agent’s action. ViZDoom offers much flexibility, including:
50
+
51
+ Rich Scenarios. Many customized scenarios are made due to the popularity of the game, offering a variety of environments to train from. A scenario consists of many components, including 2D maps for the environment, scripts to control characters and events. Open-source tools, such as $\mathrm { S L A D E ^ { 4 } }$ , are also widely available to build new scenarios. We built our customized map (Fig. 2(b)) for training.
52
+
53
+ Game variables. In addition to image frames, ViZDoom environment also offers many games variables revealing the internal state of the game. This includes HEALTH, AMMO ? (agent’s health and ammunition), FRAG COUNT (current score) and so on. ViZDoom also offers USER? variables that are computed on the fly via scenario scripts. These USER? variables can provide more information of the agent, e.g., their spatial locations. Enemy information could also be obtained by modifying ViZDoom [Lample & Chaplot (2016)]. Such information is used to construct a reward function, or as a direct supervision to accelerate training [Lample & Chaplot (2016)].
54
+
55
+ Built-in bots. Built-in bots can be inserted in the battle. They are state machines with privileged information over the map and the player, which results in apparently decent intelligence with minimal computational cost. By competing against built-in bots, the agent learns to improve.
56
+
57
+ Evaluation Criterion. In FPS games, to evaluate their strength, multiple AIs are placed to a scenario for a deathmatch, in which every AI plays for itself against the remaining AIs. Frags per episode, the number of kills minus the number of suicides for the agent in one round of game, is often used as a metric. An AI is stronger if its frags is ranked higher against others. In this work, we use an episode of 2-minute game time (4200 frames in total) for all our evaluations unless noted otherwise.
58
+
59
+ ![](images/2a0421b333ba3847e2e760ffda72c7e8371f15e03dbe3c963a3f918dae440576.jpg)
60
+ Figure 3: The network structure of the proposed model. It takes 4 recent game frames plus 4 recent attention frames as the input state $s$ , and outputs a probability distribution $\pi ( a | s )$ of the 6 discrete actions. The policy and value network share parameters.
61
+
62
+ # 4 METHOD
63
+
64
+ # 4.1 NETWORK ARCHITECTURE
65
+
66
+ We use convolutional neural networks to extract features from the game frames and then combine its output representation with game variables. Fig. 3 shows the network architecture and Tbl. 1 gives the parameters. It takes the frames as the input (i.e., the state $s$ ) and outputs two branches, one that outputs the value function $V ( s )$ by regression, while the other outputs the policy function $\pi ( s | a )$ by a regular softmax. The parameters of the two functions are shared before the branch.
67
+
68
+ For input, we use the most recent 4 frames plus the center part of them, scaled to the same size $( 1 2 0 \times 1 2 0 )$ . Therefore, these centered “attention frames” have higher resolution than regular game frames, and greatly increase the aiming accuracy. The policy network will give 6 actions, namely MOVE FORWARD, MOVE LEFT, MOVE RIGHT, TURN LEFT, TURN RIGHT, and ATTACK. We found other on-off actions (e.g., MOVE BACKWARD) offered by ViZDoom less important. After feature extraction by convolutional network, game variables are incorporated. This includes the agent’s Health (0-100) and Ammo (how many bullets left). They are related to AI itself and thus legal in the game environment for training, testing and ViZDoom AI competition.
69
+
70
+ # 4.2 TRAINING PIPELINE
71
+
72
+ Our training procedure is implemented with TensorFlow [Abadi et al. (2016)] and tensorpack5. We open 255 processes, each running one Doom instance, and sending experience $\left( { { s _ { t } } , { a _ { t } } , { r _ { t } } } \right)$ to the main process which runs the training procedure. The main process collects frames from different game instances to create batches, and optimizes on these batches asynchronously on one or more GPUs using Eqn. 1 and Eqn. 2. The frames from different processes running independent game instances, are likely to be uncorrelated, which stabilizes the training. This procedure is slightly different from the original A3C, where each game instance collects their own experience and updates the parameters asynchronously.
73
+
74
+ Table 1: Network parameters. $C 7 x 7 x 3 2 s 2 =$ convolutional layer with $7 \mathbf { x } 7$ kernel, stride 2 and number of output planes 32. $M P =$ MaxPooling. Each convolutional and fully connected layer is followed by a ReLU, except for the last output layer.
75
+
76
+ <table><tr><td rowspan=1 colspan=1>Layer #</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>7</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>C7x7x32s2</td><td rowspan=1 colspan=1>C7x7x64s2</td><td rowspan=1 colspan=1>MP3x3s2</td><td rowspan=1 colspan=1>C3x3x128</td><td rowspan=1 colspan=1>MP3x3s2</td><td rowspan=1 colspan=1>C3x3x192</td><td rowspan=1 colspan=1>FC1024</td></tr></table>
77
+
78
+ Table 2: Parameters for different maps.
79
+
80
+ <table><tr><td>Parameters</td><td>Description</td><td>FlatMap</td><td>CIGTrack1</td></tr><tr><td>living</td><td>Penalize agent who just lives</td><td colspan="2">-0.008/action</td></tr><tr><td>health_loss</td><td>Penalize health decrement</td><td colspan="2">-0.05 /unit</td></tr><tr><td>ammo_loss</td><td>Penalize ammunition decrement</td><td colspan="2">-0.04/unit</td></tr><tr><td>health_pickup</td><td>Reward for medkit pickup</td><td colspan="2">0.04/unit</td></tr><tr><td>ammo-pickup</td><td>Reward for ammunition pickup</td><td colspan="2">0.15 /unit</td></tr><tr><td>dist-penalty dist_reward</td><td>Penalize the agent when it stays</td><td colspan="2">-0.03 /action</td></tr><tr><td>dist_penalty_thres</td><td>Reward the agent when it moves</td><td colspan="2">9e-5/unit distance</td></tr><tr><td rowspan="2">num_bots</td><td>Thresholdofdisplacement</td><td>8</td><td>15</td></tr><tr><td>Number of built-in bots</td><td>8</td><td>16</td></tr></table>
81
+
82
+ Despite the use of entropy term, we still find that $\pi ( \cdot | s )$ is highly peaked. Therefore, during trajectory exploration, we encourage exploration by the following changes: a) multiply the policy output of the network by an exploration factor (0.2) before softmax b) uniformly randomize the action for $10 \%$ random frames.
83
+
84
+ As mentioned in [Kempka et al. (2016)], care should be taken for frame skips. Small frame skip introduces strong correlation in the training set, while big frame skip reduces effective training samples. We set frame skip to be 3. We choose $6 4 0 \mathrm { x } 4 8 0$ as the input frame resolution and do not use high aspect ratio resolution [Lample & Chaplot (2016)] to increase the field of view.
85
+
86
+ We use Adam [Kingma & Ba (2014)] with $\epsilon = 1 0 ^ { - 3 }$ for training. Batch size is 128, discount factor $\gamma = 0 . 9 9$ , learning rate $\alpha = 1 0 ^ { - 4 }$ and the policy learning rate $\beta = 0 . 0 8 \alpha$ . The model is trained from scratch. The training procedure runs on Intel Xeon CPU E5-2680v2 at 2. 80GHz, and 2 TitanX GPUs. It takes several days to obtain a decent result. Our final model, namely the $F l$ bot, is trained for around 3 million mini-batches on multiple different scenarios.
87
+
88
+ # 4.3 CURRICULUM LEARNING
89
+
90
+ When the environment only gives very sparse rewards, or adversarial, A3C takes a long time to converge to a satisfying solution. A direct training with A3C on the map CIGTrack1 with 8 builtin bots does not yield sensible performance. To address this, we use curriculum learning [Bengio et al. (2009)] that trains an agent with a sequence of progressively more difficult environments. By varying parameters in Doom (Sec. 3), we could control its difficulty level.
91
+
92
+ <table><tr><td rowspan=1 colspan=4>Class 0 Class 1 Class 2</td><td rowspan=1 colspan=1>Class 3</td><td rowspan=1 colspan=1>Class 4</td><td rowspan=1 colspan=1>Class 5</td><td rowspan=1 colspan=1>Class 6</td><td rowspan=1 colspan=1>Class 7</td></tr><tr><td rowspan=1 colspan=1>Speed</td><td rowspan=1 colspan=1>0.2</td><td rowspan=1 colspan=1>0.2</td><td rowspan=1 colspan=1>0.4</td><td rowspan=1 colspan=1>0.4</td><td rowspan=1 colspan=1>0.6</td><td rowspan=1 colspan=1>0.8</td><td rowspan=1 colspan=1>0.8</td><td rowspan=1 colspan=1>1.0</td></tr><tr><td rowspan=1 colspan=1>Health</td><td rowspan=1 colspan=1>40</td><td rowspan=1 colspan=1>40</td><td rowspan=1 colspan=1>40</td><td rowspan=1 colspan=1>60</td><td rowspan=1 colspan=1>60</td><td rowspan=1 colspan=1>60</td><td rowspan=1 colspan=1>80</td><td rowspan=1 colspan=1>100</td></tr></table>
93
+
94
+ Table 3: Curriculum design for FlatMap. Note that enemy uses RocketLauncher except for Class 0 (Pistol).
95
+
96
+ Reward Shaping. Reward shaping has been shown to be an effective technique to apply reinforcement learning in a complicated environment with delayed reward $[ \mathrm { N g }$ et al. (1999); Devlin et al. (2011)]. In our case, besides the basic reward for kills $( + 1 )$ and death (-1), intermediate rewards are used as shown in Tbl. 2. We penalize agent with a living state, encouraging it to explore and encounter more enemies. health loss and ammo loss place linear reward for a decrement of health and ammunition. ammo pickup and health pickup place reward for picking up these two items. In addition, there is extra reward for picking up ammunition when in need (e.g. almost out of ammo). dist penalty and dist reward push the agent away from the previous locations, encouraging it to explore. The penalty is applied every action, when the displacement of the bot relative to the last state is less than a threshold dist penalty thres. And dist reward is applied for every unit displacement the agent makes. Similar to [Lample & Chaplot (2016)], the displacement information is computed from the ground truth location variables provided by Doom engine, and will not be used in the competition. However, unlike [Lample & Chaplot (2016)] that uses enemy-in-sight signal for training, locations can be extracted directly from USER? variables, or can easily be computed roughly with action history.
97
+
98
+ Curriculum Design. We train the bot on FlatMap that contains a simple square with a few pillars (Fig. 2(a)) with several curricula (Tbl. 3), and then proceed to CIGTrack1. For each map, we design curricula by varying the strength of built-in bots, i.e., their moving speed, initial health and initial weapon. Our agent always uses RocketLauncher as its only weapon. Training on FlatMap leads to a capable initial model which is quickly adapted to more complicated maps. As shown in Tbl. 2, for CIGTrack1 we increase dist penalty thres to keep the agent moving, and increase num bots so that the agent encounters more enemies per episode.
99
+
100
+ Adaptive Curriculum. In addition to staged curriculum learning, we also design adaptive curriculum learning by assigning a probability distribution on different levels for each thread that runs a Doom instance. The probability distribution shifts towards more difficult curriculum when the agent performs well on the current distribution, and shifts towards easier level otherwise. We consider the agent to perform well if its frag count is greater than 10 points.
101
+
102
+ # 4.4 POST-TRAINING RULES
103
+
104
+ For a better performance in the competition, we also put several rules to process the action given by the trained policy network, called post-training (PT) rules. There are two sets of buttons in ViZDoom: on-off buttons and delta buttons. While on-off button maps to the binary states of a keystroke (e.g., pressing the up arrow key will move the agent forward), delta buttons mimic the mouse behavior and could act faster in certain situations. Therefore, we setup rules that detect the intention of the agent and accelerate with delta button. For example, when the agent turns by invoking TURN LEFT repeatedly, we convert its action to TURN LEFT RIGHT DELTA for acceleration. Besides, the trained model might get stuck in rare situations, e.g., keep moving forward but blocked by an explosive bucket. We also designed rules to detect and fix them.
105
+
106
+ # 5 EXPERIMENT
107
+
108
+ In this section, we show the training procedure (Sec. 5.1), evaluate our AIs with ablation analysis (Sec. 5.2) and ViZDoom AI Competition (Sec. 5.3). We mainly compare among three AIs: (1) F1Pre, the bot trained with FlatMap only, (2) F1Plain, the bot trained on both FlatMap and CIGTrack1, but without post-training rules, and (3) the final $F l$ bot that attends competition.
109
+
110
+ # 5.1 CURRICULUM LEARNING ON FL A TMA P
111
+
112
+ Fig. 4 shows that the curriculum learning increases the performance of the agents over all levels. When an agent becomes stronger in the higher level of class, it is also stronger in the lower level of class without overfitting. Fig. 5 shows comparison between adaptive curriculum learning with pure A3C. We can see that pure A3C can learn on FlatMap but is slower. Moreover, in CIGTrack1, a direct application of A3C does not yield sensible performance.
113
+
114
+ ![](images/d72c27739b6db20e52495fe4e07e135bfbb24984821015d05ffc9ec11bf706ce.jpg)
115
+ Figure 4: Average Frags over 300 episodes evaluation, on FlatMap(left) and CIGTrack1(right) with different levels of enemies (See Tbl. 3 for curriculum design). Models from later stages performs better especially on the difficult map, yet still keeps a good performance on the easier map.
116
+
117
+ ![](images/ad4bd531ba59b063ff2e2cb3cd119ad0c822eca03e7562097dfe0dc1b19fed27.jpg)
118
+ Figure 5: Performance comparison on Class 7 (hardest) of FlatMap between A3C [Mnih et al. (2016)] and adaptive curriculum learning, at different stage of training. Average frags and max frags are computed from 100 episodes. Adaptive curriculum shows higher performance and is relatively more stable.
119
+
120
+ # 5.2 ABLATION ANALYSIS
121
+
122
+ Visualization. Fig. 6 shows the visualization of the first convolutional layer of the trained AI agent. We could see that the convolutional kernels of the current frame is less noisy than the kernels of previous frames. This means that the agent makes the most use of the current frames.
123
+
124
+ Effect of History Frames. Interestingly, while the agent focuses on the current frame, it also uses motion information. For this, we use (1) 4 duplicated current frames (2) 4 recent frames in reverse order, as the input. This gives 8.50 and 2.39 mean frags, compared to 10.34 in the normal case, showing that the agent heavily uses the motion information for better decision. In particular, the bot is totally confused with the reversed motion feature. Detailed results are shown in Tbl. 5.
125
+
126
+ ![](images/66a68449811ccd1853c0ae74280a568bba1e9234290164ddd9cd147902eb9bb3.jpg)
127
+ Figure 6: Visualization of the convolutional filters in the first layer of our network. The filters are grouped by the frame index they corresponds to. Each group consists of two rows of 32 RGB filters for the regular and attention frames, respectively. The filters corresponding to the current frame (last row) is less noisy than those of others, showing that the bot is more focused on the current frame.
128
+
129
+ Table 4: Avg/Max frags of each AIs in the internal tournament (150 episodes of 10 minutes each).
130
+
131
+ <table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Built-In AI</td><td rowspan=1 colspan=1>F1Pre</td><td rowspan=1 colspan=1>F1Plain</td><td rowspan=1 colspan=1>F1</td></tr><tr><td rowspan=1 colspan=1>FlatMap</td><td rowspan=1 colspan=1>8.07/20</td><td rowspan=1 colspan=1>14.47/24</td><td rowspan=1 colspan=1>17.26/29</td><td rowspan=1 colspan=1>22.45/37</td></tr><tr><td rowspan=1 colspan=1>CIGTrack1</td><td rowspan=1 colspan=1>0.48/7</td><td rowspan=1 colspan=1>3.56/15</td><td rowspan=1 colspan=1>8.58/16</td><td rowspan=1 colspan=1>10.65/18</td></tr></table>
132
+
133
+ <table><tr><td></td><td colspan="3">FlatMap</td><td colspan="3">CIGTrack1</td></tr><tr><td></td><td>Min</td><td>Mean</td><td>Max</td><td>Min</td><td>Mean</td><td>Max</td></tr><tr><td>F1 bot (reverse history)</td><td>1</td><td>9.89</td><td>19</td><td>-2</td><td>2.39</td><td>9</td></tr><tr><td>F1 bot (duplicated history)</td><td>10</td><td>24.62</td><td>37</td><td>2</td><td>8.50</td><td>17</td></tr><tr><td>F1 bot (w/o PT rules)</td><td>14</td><td>22.80</td><td>36</td><td>1</td><td>8.66</td><td>18</td></tr><tr><td>F1 bot</td><td>16</td><td>25.17</td><td>37</td><td>5</td><td>10.34</td><td>17</td></tr></table>
134
+
135
+ Table 5: Performance evaluation (in terms of frags) on two standard scenarios FlatMap and CIGTrack1 over 300 episodes. Our bot performs better with post-training rules.
136
+
137
+ Post-training Rules. Tbl. 5 shows that the post-training rules improve the performance. As a future work, an end-to-end training involving delta buttons could make the bot better.
138
+
139
+ Internal Tournament. We also evaluate our AIs with internal tournaments (Tbl. 4). All our bots beat the performance of built-in bots by a large margin, even though they use privileged information. F1Pre, trained with only FlatMap, shows decent performance, but is not as good as the models trained with both FlatMap and CIGTrack1. The final bot $F l$ performs the best.
140
+
141
+ Behaviors. Visually, the three bots behave differently. F1Pre is a bit overtrained in FlatMap and does not move too often, but when it sees enemies, even faraway, it will start to shoot. Occasionally it will move to the corner and pick medkits. In CIGTrack1, F1Pre stays in one place and ambushes opponents who pass by. On the other hand, F1Plain and $F l$ always move forwards and turn at the corner. As expected, $F l$ moves and turns faster.
142
+
143
+ Tactics All bots develop interesting local tactics when exchanging fire with enemy: they slide around when shooting the enemy. This is quite effective for dodging others’ attack. Also when they shoot the enemy, they usually take advantage of the splashing effect of rocket to cause additional damage for enemy, e.g., shooting the wall when the enemy is moving. They do not pick ammunition too often, even if they can no longer shoot. However, such disadvantage is mitigated by the nature of deathmatch: when a player dies, it will respawn with ammunition. We also check states with highest/lowest estimated future value $V ( s )$ over a 10-episode evaluation of $F l$ bot, from which we can speculate its tactics. The highest value is $V = 0 . 9 7$ when the agent fired, and about to hit the enemy. One low value is $V = - 0 . 4 4$ , ammo $= 0$ , when the agent encountered an enemy at the corner but is out of ammunition. Both cases are reasonable.
144
+
145
+ # 5.3 COMPETITION
146
+
147
+ We attended the ViZDoom AI Competition hosted by IEEE CIG. There are 2 tracks in the competition. Track 1 (Limited Deathmatch) uses a known map and fixed weapons, while Track 2 (Full Deathmatch) uses 3 unknown maps and a variety of weapons. Each bot fights against all others for 12 rounds of 10 minutes each. Due to server capacity, each bot skips one match in the first 9 rounds. All bots are supposed to run in real-time ${ \mathit { \Omega } } ^ { \prime } { > } 3 5$ fps) on a GTX960 GPU.
148
+
149
+ <table><tr><td rowspan=1 colspan=1>Round</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>11</td><td rowspan=1 colspan=2>12 Total</td></tr><tr><td rowspan=1 colspan=1>Our bot</td><td rowspan=1 colspan=1>56</td><td rowspan=1 colspan=1>62</td><td rowspan=1 colspan=1>n/a</td><td rowspan=1 colspan=1>54</td><td rowspan=1 colspan=1>47</td><td rowspan=1 colspan=1>43</td><td rowspan=1 colspan=1>47</td><td rowspan=1 colspan=1>55</td><td rowspan=1 colspan=1>50</td><td rowspan=1 colspan=1>48</td><td rowspan=1 colspan=1>50</td><td rowspan=1 colspan=1>47</td><td rowspan=1 colspan=1>559</td></tr><tr><td rowspan=1 colspan=1>Arnold</td><td rowspan=1 colspan=1>36</td><td rowspan=1 colspan=1>34</td><td rowspan=1 colspan=1>42</td><td rowspan=1 colspan=1>36</td><td rowspan=1 colspan=1>36</td><td rowspan=1 colspan=1>45</td><td rowspan=1 colspan=1>36</td><td rowspan=1 colspan=1>39</td><td rowspan=1 colspan=1>n/a</td><td rowspan=1 colspan=1>33</td><td rowspan=1 colspan=1>36</td><td rowspan=1 colspan=1>40</td><td rowspan=1 colspan=1>413</td></tr><tr><td rowspan=1 colspan=1>CLYDE</td><td rowspan=1 colspan=1>37</td><td rowspan=1 colspan=1>n/a</td><td rowspan=1 colspan=1>38</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>37</td><td rowspan=1 colspan=1>30</td><td rowspan=1 colspan=1>46</td><td rowspan=1 colspan=1>42</td><td rowspan=1 colspan=1>33</td><td rowspan=1 colspan=1>24</td><td rowspan=1 colspan=1>44</td><td rowspan=1 colspan=1>30</td><td rowspan=1 colspan=1>393</td></tr></table>
150
+
151
+ Table 6: Top 3 teams in ViZDoom AI Competition, Track 1. Our bot attended 11 out of 12 games, won 10 of them and won the champion by a large margin. For design details, see Arnold [Lample & Chaplot (2016)] and CLYDE [Ratcliffe et al. (2017)].
152
+
153
+ Our $F l$ bot won 10 out of 11 attended games and won the champion for Track 1 by a large margin. We have achieved 559 frags, $3 5 . 4 \%$ higher than 413 frags achieved by Arnold [Lample & Chaplot (2016)], that uses extra game state for model training. On the other hand, IntelAct [Dosovitskiy & Koltun (2017)] won Track 2. The full videos for the two tracks have been released67, as well as an additional game between Human and $\mathrm { A I s } ^ { 8 }$ . Our bot behaves reasonable and very human-like in Track 1. In the match between Human and AIs, our bot was even ahead of the human player for a short period (6:30 to 7:00).
154
+
155
+ # 6 CONCLUSION
156
+
157
+ Teaching agents to act properly in complicated and adversarial 3D environment is a very challenging task. In this paper, we propose a new framework to train a strong AI agent in a First-Person Shooter (FPS) game, Doom, using a combination of state-of-the-art Deep Reinforcement Learning and Curriculum Training. Via playing against built-in bots in a progressive manner, our bot wins the champion of Track1 (known map) in ViZDoom AI Competition. Furthermore, it learns to use motion features and build its own tactics during the game, which is never taught explicitly.
158
+
159
+ Currently, our bot is still an reactive agent that only remembers the last 4 frames to act. Ideally, a bot should be able to build a map from an unknown environment and localize itself, is able to have a global plan to act, and visualize its reasoning process. We leave them to future works.
160
+
161
+ # REFERENCES
162
+
163
+ Abadi, Mart´ın, Agarwal, Ashish, Barham, Paul, Brevdo, Eugene, Chen, Zhifeng, Citro, Craig, Corrado, Gregory S., Davis, Andy, Dean, Jeffrey, Devin, Matthieu, Ghemawat, Sanjay, Goodfellow, Ian J., Harp, Andrew, Irving, Geoffrey, Isard, Michael, Jia, Yangqing, Jozefowicz, Rafal, Kaiser, ´ Lukasz, Kudlur, Manjunath, Levenberg, Josh, Mane, Dan, Monga, Rajat, Moore, Sherry, Murray, ´ Derek Gordon, Olah, Chris, Schuster, Mike, Shlens, Jonathon, Steiner, Benoit, Sutskever, Ilya, Talwar, Kunal, Tucker, Paul A., Vanhoucke, Vincent, Vasudevan, Vijay, Viegas, Fernanda B., ´ Vinyals, Oriol, Warden, Pete, Wattenberg, Martin, Wicke, Martin, Yu, Yuan, and Zheng, Xiaoqiang. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. CoRR, abs/1603.04467, 2016. URL http://arxiv.org/abs/1603.04467.
164
+
165
+ Babaeizadeh, Mohammad, Frosio, Iuri, Tyree, Stephen, Clemons, Jason, and Kautz, Jan. Reinforcement learning through asynchronous advantage actor-critic on a gpu. International Conference on Learning Representations (ICLR), 2017.
166
+
167
+ Barto, Andrew G, Sutton, Richard S, and Anderson, Charles W. Neuronlike adaptive elements that can solve difficult learning control problems. IEEE transactions on systems, man, and cybernetics, (5):834–846, 1983.
168
+
169
+ Bengio, Yoshua, Louradour, Jer´ ome, Collobert, Ronan, and Weston, Jason. Curriculum learning. In ˆ Proceedings of the 26th annual international conference on machine learning, pp. 41–48. ACM, 2009.
170
+
171
+ Devlin, Sam, Kudenko, Daniel, and Grzes, Marek. An empirical study of potential-based reward ´ shaping and advice in complex, multi-agent systems. Advances in Complex Systems, 14(02): 251–278, 2011.
172
+
173
+ Dosovitskiy, Alexey and Koltun, Vladlen. Learning to act by predicting the future. International Conference on Learning Representations (ICLR), 2017.
174
+
175
+ Grondman, Ivo, Busoniu, Lucian, Lopes, Gabriel AD, and Babuska, Robert. A survey of actor-critic reinforcement learning: Standard and natural policy gradients. IEEE Transactions on Systems, Man, and Cybernetics, Part C (Applications and Reviews), 42(6):1291–1307, 2012.
176
+
177
+ Hausknecht, Matthew J. and Stone, Peter. Deep recurrent q-learning for partially observable mdps. CoRR, abs/1507.06527, 2015. URL http://arxiv.org/abs/1507.06527.
178
+
179
+ Jiang, Lu, Meng, Deyu, Zhao, Qian, Shan, Shiguang, and Hauptmann, Alexander G. Self-paced curriculum learning. In AAAI, volume 2, pp. 6, 2015.
180
+
181
+ Kempka, Michał, Wydmuch, Marek, Runc, Grzegorz, Toczek, Jakub, and Jaskowski, Wojciech.´ Vizdoom: A doom-based ai research platform for visual reinforcement learning. arXiv preprint arXiv:1605.02097, 2016.
182
+
183
+ Kingma, Diederik and Ba, Jimmy. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
184
+
185
+ Konda, Vijay R and Tsitsiklis, John N. Actor-critic algorithms. In NIPS, volume 13, pp. 1008–1014, 1999.
186
+
187
+ Lample, Guillaume and Chaplot, Devendra Singh. Playing fps games with deep reinforcement learning. arXiv preprint arXiv:1609.05521, 2016.
188
+
189
+ Mnih, Volodymyr, Kavukcuoglu, Koray, Silver, David, Rusu, Andrei A, Veness, Joel, Bellemare, Marc G, Graves, Alex, Riedmiller, Martin, Fidjeland, Andreas K, Ostrovski, Georg, et al. Humanlevel control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.
190
+
191
+ Mnih, Volodymyr, Badia, Adria Puigdomenech, Mirza, Mehdi, Graves, Alex, Lillicrap, Timothy P, Harley, Tim, Silver, David, and Kavukcuoglu, Koray. Asynchronous methods for deep reinforcement learning. arXiv preprint arXiv:1602.01783, 2016.
192
+
193
+ Ng, Andrew Y, Harada, Daishi, and Russell, Stuart. Policy invariance under reward transformations: Theory and application to reward shaping. In ICML, volume 99, pp. 278–287, 1999.
194
+
195
+ Peters, Jan and Schaal, Stefan. Reinforcement learning of motor skills with policy gradients. Neural networks, 21(4):682–697, 2008.
196
+
197
+ Ratcliffe, D., Devlin, S., Kruschwitz, U., and Citi, L. Clyde: A deep reinforcement learning doom playing agent. AAAI Workshop on What’s next for AI in games, 2017.
198
+
199
+ Silver, David, Huang, Aja, Maddison, Chris J, Guez, Arthur, Sifre, Laurent, Van Den Driessche, George, Schrittwieser, Julian, Antonoglou, Ioannis, Panneershelvam, Veda, Lanctot, Marc, et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016.
200
+
201
+ Sutton, Richard S and Barto, Andrew G. Reinforcement learning: An introduction, volume 1. 1998.
202
+
203
+ Sutton, Richard Stuart. Temporal credit assignment in reinforcement learning. 1984.
204
+
205
+ van Waveren, J.M.P. The Quake III Arena bot. University of Technology Delft, 2001.
206
+
207
+ Williams, Ronald J. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3-4):229–256, 1992.
parse/train/Hk3mPK5gg/Hk3mPK5gg_content_list.json ADDED
@@ -0,0 +1,1170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TRAINING AGENT FOR FIRST-PERSON SHOOTERGAME WITH ACTOR-CRITIC CURRICULUM LEARNING",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yuxin Wu Carnegie Mellon University ppwwyyxx@gmail.com ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 367,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Yuandong Tian Facebook AI Research yuandong@fb.com ",
28
+ "bbox": [
29
+ 524,
30
+ 170,
31
+ 674,
32
+ 212
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 250,
43
+ 544,
44
+ 263
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "In this paper, we propose a new framework for training vision-based agent for First-Person Shooter (FPS) Game, in particular Doom. Our framework combines the state-of-the-art reinforcement learning approach (Asynchronous Advantage Actor-Critic (A3C) model [Mnih et al. (2016)]) with curriculum learning. Our model is simple in design and only uses game states from the AI side, rather than using opponents’ information [Lample & Chaplot (2016)]. On a known map, our agent won 10 out of the 11 attended games and the champion of Track1 in ViZDoom AI Competition 2016 by a large margin, $3 5 \\%$ higher score than the second place. ",
51
+ "bbox": [
52
+ 232,
53
+ 280,
54
+ 764,
55
+ 405
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 430,
66
+ 336,
67
+ 446
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Deep Reinforcement Learning has achieved super-human performance in fully observable environments, e.g., in Atari Games [Mnih et al. (2015)] and Computer Go [Silver et al. (2016)]. Recently, Asynchronous Advantage Actor-Critic (A3C) [Mnih et al. (2016)] model shows good performance for 3D environment exploration, e.g. labyrinth exploration. However, in general, to train an agent in a partially observable 3D environment from raw frames remains an open challenge. Direct application of A3C to competitive 3D scenarios, e.g. 3D games, is nontrivial, partly due to sparse and long-term rewards in such scenarios. ",
74
+ "bbox": [
75
+ 174,
76
+ 462,
77
+ 825,
78
+ 559
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Doom is a 1993 First-Person Shooter (FPS) game in which a player fights against other computercontrolled agents or human players in an adversarial 3D environment. Previous works on FPS AI [van Waveren (2001)] focused on using hand-tuned state machines and privileged information, e.g., the geometry of the map, the precise location of all players, to design playable agents. Although state-machine is conceptually simple and computationally efficient, it does not operate like human players, who only rely on visual (and possibly audio) inputs. Also, many complicated situations require manually-designed rules which could be time-consuming to tune. ",
85
+ "bbox": [
86
+ 174,
87
+ 566,
88
+ 825,
89
+ 664
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this paper, we train an AI agent in Doom with a framework that based on A3C with convolutional neural networks (CNN). This model uses only the recent 4 frames and game variables from the AI side, to predict the next action of the agent and the value of the current situation. We follow the curriculum learning paradigm [Bengio et al. (2009); Jiang et al. (2015)]: start from simple tasks and then gradually try harder ones. The difficulty of the task is controlled by a variety of parameters in Doom environment, including different types of maps, strength of the opponents and the design of the reward function. We also develop adaptive curriculum training that samples from a varying distribution of tasks to train the model, which is more stable and achieves higher score than A3C with the same number of epoch. As a result, our trained agent, named $F l$ , won the champion in Track 1 of ViZDoom Competition 1 by a large margin. ",
96
+ "bbox": [
97
+ 174,
98
+ 670,
99
+ 825,
100
+ 810
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "There are many contemporary efforts on training a Doom AI based on the VizDoom platform [Kempka et al. (2016)] since its release. Arnold [Lample & Chaplot (2016)] also uses game frames and trains an action network using Deep Recurrent Q-learning [Hausknecht & Stone (2015)], and a navigation network with DQN [Mnih et al. (2015)]. However, there are several important differences. To predict the next action, they use a hybrid architecture (CNN+LSTM) that involves more complicated training procedure. Second, in addition to game frames, they require internal game status about the opponents as extra supervision during training, e.g., whether enemy is present in the current frame. IntelAct [Dosovitskiy & Koltun (2017)] models the Doom AI bot training in a supervised manner by predicting the future values of game variables (e.g., health, amount of ammo, etc) and acting accordingly. In comparison, we use curriculum learning with asynchronized actorcritic models and use stacked frames (4 most recent frames) and resized frames to mimic short-term memory and attention. Our approach requires no opponent’s information, and is thus suitable as a general framework to train agents for close-source games. ",
107
+ "bbox": [
108
+ 174,
109
+ 816,
110
+ 825,
111
+ 900
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/94e7209ea3441576d67165943add7c75f4dd503b4fae9ca36f17aa99178edeb9.jpg",
118
+ "image_caption": [
119
+ "Figure 1: The basic framework of actor-critic model. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 173,
124
+ 80,
125
+ 821,
126
+ 196
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "",
133
+ "bbox": [
134
+ 174,
135
+ 248,
136
+ 825,
137
+ 347
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "In VizDoom AI Competition 2016 at IEEE Computational Intelligence And Games (CIG) Conference2, our AI won the champion of Track1 (limited deathmatch with known map), and IntelAct won the champion of Track2 (full deathmatch with unknown maps). Neither of the two teams attends the other track. Arnold won the second places of both tracks and CLYDE [Ratcliffe et al. (2017)] won the third place of Track1. ",
144
+ "bbox": [
145
+ 174,
146
+ 353,
147
+ 825,
148
+ 422
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "2 THE ACTOR-CRITIC MODEL ",
155
+ "text_level": 1,
156
+ "bbox": [
157
+ 176,
158
+ 445,
159
+ 441,
160
+ 462
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "The goal of Reinforcement Learning (RL) is to train an agent so that its behavior maximizes/minimizes expected future rewards/penalties it receives from a given environment [Sutton & Barto (1998)]. Two functions play important roles: a value function $\\bar { V } ( s )$ that gives the expected reward of the current state $s$ , and a policy function $\\pi ( a | s )$ that gives a probability distribution on the candidate actions $a$ for the current state $s$ . Getting the groundtruth value of either function would largely solve RL: the agent just follows $\\pi ( a | s )$ to act, or jumps in the best state provided by $V ( s )$ when the number of candidate next states is finite and practically enumerable. However, neither is trivial. ",
167
+ "bbox": [
168
+ 173,
169
+ 478,
170
+ 825,
171
+ 588
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Actor-critic models [Barto et al. (1983); Sutton (1984); Konda & Tsitsiklis (1999); Grondman et al. (2012)] aim to jointly estimate $V ( s )$ and $\\pi ( a | s )$ : from the current state $s _ { t }$ , the agent explores the environment by iteratively sampling the policy function $\\pi ( a _ { t } | s _ { t } ; \\mathbf { w } _ { \\pi } )$ and receives positive/negative reward, until the terminal state or a maximum number of iterations are reached. The exploration gives a trajectory $\\left\\{ \\bigl ( s _ { t } , a _ { t } , r _ { t } \\bigr ) , \\bigl ( s _ { t + 1 } , a _ { t + 1 } , r _ { t + 1 } \\bigr ) , \\cdot \\cdot \\cdot \\right\\}$ , from which the policy function and value function are updated. Specifically, to update the value function, we use the expected reward $R _ { t }$ along the trajectory as the ground truth; to update the policy function, we encourage actions that lead to high rewards, and penalize actions that lead to low rewards. To determine whether an action leads to high- or low-rewarding state, a reference point, called baseline [Williams (1992)], is usually needed. Using zero baseline might increase the estimation variance. [Peters & Schaal (2008)] gives a way to estimate the best baseline (a weighted sum of cumulative rewards) that minimizes the variance of the gradient estimation, in the scenario of episodic REINFORCE [Williams (1992)]. ",
178
+ "bbox": [
179
+ 173,
180
+ 597,
181
+ 825,
182
+ 762
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "In actor-critic frameworks, we pick the baseline as the expected cumulative reward $V ( s )$ of the current state, which couples the two functions $V ( s )$ and $\\pi ( a | s )$ together in the training, as shown in Fig. 1. Here the two functions reinforce each other: a correct $\\pi ( a | s )$ gives high-rewarding trajectories which update $V ( s )$ towards the right direction; a correct $V ( s )$ picks out the correct actions for $\\pi ( a | s )$ to reinforce. This mutual reinforcement behavior makes actor-critic model converge faster, but is also prone to converge to bad local minima, in particular for on-policy models that follow the very recent policy to sample trajectory during training. If the experience received by the agent in consecutive batches is highly correlated and biased towards a particular subset of the environment, then both $\\pi ( a | s )$ and $V ( s )$ will be updated towards a biased direction and the agent may never see the whole picture. To reduce the correlation of game experience, Asynchronous Advantage ActorCritic Model [Mnih et al. (2016)] runs independent multiple threads of the game environment in parallel. These game instances are likely uncorrelated, therefore their experience in combination would be less biased. ",
189
+ "bbox": [
190
+ 173,
191
+ 770,
192
+ 825,
193
+ 895
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "image",
199
+ "img_path": "images/3195acd31df59ed688f0d1008bb33671b952f495ee12e0056935bb075cb887b1.jpg",
200
+ "image_caption": [
201
+ "Figure 2: Two maps we used in the paper. FlatMap is a simple square containing four pillars . CIGTrack1 is the map used in Track1 in ViZDoom AI Competition (We did not attend Track2). Black dots are items (weapons, ammo, medkits, armors, etc). "
202
+ ],
203
+ "image_footnote": [],
204
+ "bbox": [
205
+ 176,
206
+ 83,
207
+ 813,
208
+ 297
209
+ ],
210
+ "page_idx": 2
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "",
215
+ "bbox": [
216
+ 173,
217
+ 371,
218
+ 825,
219
+ 428
220
+ ],
221
+ "page_idx": 2
222
+ },
223
+ {
224
+ "type": "text",
225
+ "text": "For on-policy models, the same mutual reinforcement behavior will also lead to highly-peaked $\\pi ( a | s )$ towards a few actions (or a few fixed action sequences), since it is always easy for both actor and critic to over-optimize on a small portion of the environment, and end up “living in their own realities”. To reduce the problem, [Mnih et al. (2016)] added an entropy term to the loss to encourage diversity, which we find to be critical. The final gradient update rules are listed as follows: ",
226
+ "bbox": [
227
+ 174,
228
+ 434,
229
+ 823,
230
+ 503
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "equation",
236
+ "img_path": "images/f21a1b91f1c0394ae1cea7dd829535036568fe2feff6f040e87f97f3251431ff.jpg",
237
+ "text": "$$\n\\begin{array} { r l } & { \\mathbf { w } _ { \\pi } \\mathbf { w } _ { \\pi } + \\alpha ( R _ { t } - V ( s _ { t } ) ) \\nabla _ { \\mathbf { w } _ { \\pi } } \\log \\pi ( a _ { t } | s _ { t } ) + \\beta \\nabla _ { \\mathbf { w } _ { \\pi } } H ( \\pi ( \\cdot | s _ { t } ) ) } \\\\ & { \\mathbf { w } _ { V } \\mathbf { w } _ { V } - \\alpha \\nabla _ { \\mathbf { w } _ { V } } ( R _ { t } - V ( s _ { t } ) ) ^ { 2 } } \\end{array}\n$$",
238
+ "text_format": "latex",
239
+ "bbox": [
240
+ 274,
241
+ 512,
242
+ 722,
243
+ 554
244
+ ],
245
+ "page_idx": 2
246
+ },
247
+ {
248
+ "type": "text",
249
+ "text": "where rate. I $\\begin{array} { r } { R _ { t } = \\sum _ { t ^ { \\prime } = t } ^ { T } \\gamma ^ { t ^ { \\prime } - t } r _ { t ^ { \\prime } } } \\end{array}$ is the expected discounted reward at time uber loss instead of the L2 loss in Eqn. 2. $t$ and $\\alpha , \\beta$ are the learning ",
250
+ "bbox": [
251
+ 171,
252
+ 564,
253
+ 823,
254
+ 594
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "Architecture. While [Mnih et al. (2016)] keeps a separate model for each asynchronous agent and perform model synchronization once in a while, we use an alternative approach called BatchA3C, in which all agents act on the same model and send batches to the main process for gradient descent optimization. The agents’ models are updated after each gradient update. Note that the contemporary work GA3C [Babaeizadeh et al. (2017)] also proposes a similar architecture. In their architecture, there is a prediction queue that collects agents’ experience and sends them to multiple predictors, and a training queue that collects experience to feed the optimization. ",
261
+ "bbox": [
262
+ 173,
263
+ 599,
264
+ 825,
265
+ 699
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "3 DOOM AS A REINFORCEMENT LEARNING PLATFORM ",
272
+ "text_level": 1,
273
+ "bbox": [
274
+ 176,
275
+ 722,
276
+ 647,
277
+ 738
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "In Doom, the player controls the agent to fight against enemies in a 3D environment (e.g., in a maze). The agent can only see the environment from his viewpoint and thus receives partial information upon which it makes decisions. On modern computers, the original Doom runs in thousands of frames per second, making it suitable as a platform for training AI agent. ViZDoom [Kempka et al. (2016)] is an open-source platform that offers programming interface to communicate with Doom engine, ZDoom3. From the interface, users can obtain current frames of the game, and control the agent’s action. ViZDoom offers much flexibility, including: ",
284
+ "bbox": [
285
+ 173,
286
+ 746,
287
+ 825,
288
+ 844
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "Rich Scenarios. Many customized scenarios are made due to the popularity of the game, offering a variety of environments to train from. A scenario consists of many components, including 2D maps for the environment, scripts to control characters and events. Open-source tools, such as $\\mathrm { S L A D E ^ { 4 } }$ , are also widely available to build new scenarios. We built our customized map (Fig. 2(b)) for training. ",
295
+ "bbox": [
296
+ 174,
297
+ 851,
298
+ 825,
299
+ 893
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "",
306
+ "bbox": [
307
+ 173,
308
+ 103,
309
+ 821,
310
+ 132
311
+ ],
312
+ "page_idx": 3
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "Game variables. In addition to image frames, ViZDoom environment also offers many games variables revealing the internal state of the game. This includes HEALTH, AMMO ? (agent’s health and ammunition), FRAG COUNT (current score) and so on. ViZDoom also offers USER? variables that are computed on the fly via scenario scripts. These USER? variables can provide more information of the agent, e.g., their spatial locations. Enemy information could also be obtained by modifying ViZDoom [Lample & Chaplot (2016)]. Such information is used to construct a reward function, or as a direct supervision to accelerate training [Lample & Chaplot (2016)]. ",
317
+ "bbox": [
318
+ 174,
319
+ 138,
320
+ 825,
321
+ 237
322
+ ],
323
+ "page_idx": 3
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "Built-in bots. Built-in bots can be inserted in the battle. They are state machines with privileged information over the map and the player, which results in apparently decent intelligence with minimal computational cost. By competing against built-in bots, the agent learns to improve. ",
328
+ "bbox": [
329
+ 174,
330
+ 243,
331
+ 825,
332
+ 285
333
+ ],
334
+ "page_idx": 3
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "Evaluation Criterion. In FPS games, to evaluate their strength, multiple AIs are placed to a scenario for a deathmatch, in which every AI plays for itself against the remaining AIs. Frags per episode, the number of kills minus the number of suicides for the agent in one round of game, is often used as a metric. An AI is stronger if its frags is ranked higher against others. In this work, we use an episode of 2-minute game time (4200 frames in total) for all our evaluations unless noted otherwise. ",
339
+ "bbox": [
340
+ 173,
341
+ 292,
342
+ 825,
343
+ 362
344
+ ],
345
+ "page_idx": 3
346
+ },
347
+ {
348
+ "type": "image",
349
+ "img_path": "images/2a0421b333ba3847e2e760ffda72c7e8371f15e03dbe3c963a3f918dae440576.jpg",
350
+ "image_caption": [
351
+ "Figure 3: The network structure of the proposed model. It takes 4 recent game frames plus 4 recent attention frames as the input state $s$ , and outputs a probability distribution $\\pi ( a | s )$ of the 6 discrete actions. The policy and value network share parameters. "
352
+ ],
353
+ "image_footnote": [],
354
+ "bbox": [
355
+ 171,
356
+ 366,
357
+ 823,
358
+ 488
359
+ ],
360
+ "page_idx": 3
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "4 METHOD ",
365
+ "text_level": 1,
366
+ "bbox": [
367
+ 174,
368
+ 570,
369
+ 281,
370
+ 587
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "4.1 NETWORK ARCHITECTURE ",
377
+ "text_level": 1,
378
+ "bbox": [
379
+ 176,
380
+ 602,
381
+ 401,
382
+ 616
383
+ ],
384
+ "page_idx": 3
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "We use convolutional neural networks to extract features from the game frames and then combine its output representation with game variables. Fig. 3 shows the network architecture and Tbl. 1 gives the parameters. It takes the frames as the input (i.e., the state $s$ ) and outputs two branches, one that outputs the value function $V ( s )$ by regression, while the other outputs the policy function $\\pi ( s | a )$ by a regular softmax. The parameters of the two functions are shared before the branch. ",
389
+ "bbox": [
390
+ 174,
391
+ 627,
392
+ 825,
393
+ 698
394
+ ],
395
+ "page_idx": 3
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "For input, we use the most recent 4 frames plus the center part of them, scaled to the same size $( 1 2 0 \\times 1 2 0 )$ . Therefore, these centered “attention frames” have higher resolution than regular game frames, and greatly increase the aiming accuracy. The policy network will give 6 actions, namely MOVE FORWARD, MOVE LEFT, MOVE RIGHT, TURN LEFT, TURN RIGHT, and ATTACK. We found other on-off actions (e.g., MOVE BACKWARD) offered by ViZDoom less important. After feature extraction by convolutional network, game variables are incorporated. This includes the agent’s Health (0-100) and Ammo (how many bullets left). They are related to AI itself and thus legal in the game environment for training, testing and ViZDoom AI competition. ",
400
+ "bbox": [
401
+ 173,
402
+ 705,
403
+ 825,
404
+ 816
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "4.2 TRAINING PIPELINE ",
411
+ "text_level": 1,
412
+ "bbox": [
413
+ 176,
414
+ 833,
415
+ 354,
416
+ 847
417
+ ],
418
+ "page_idx": 3
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "Our training procedure is implemented with TensorFlow [Abadi et al. (2016)] and tensorpack5. We open 255 processes, each running one Doom instance, and sending experience $\\left( { { s _ { t } } , { a _ { t } } , { r _ { t } } } \\right)$ to the main process which runs the training procedure. The main process collects frames from different game instances to create batches, and optimizes on these batches asynchronously on one or more GPUs using Eqn. 1 and Eqn. 2. The frames from different processes running independent game instances, are likely to be uncorrelated, which stabilizes the training. This procedure is slightly different from the original A3C, where each game instance collects their own experience and updates the parameters asynchronously. ",
423
+ "bbox": [
424
+ 176,
425
+ 858,
426
+ 821,
427
+ 887
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "table",
433
+ "img_path": "images/a25c2cf43f22d9077fafa32542565fe43dd33a02feeabe0533828e259cafff9c.jpg",
434
+ "table_caption": [
435
+ "Table 1: Network parameters. $C 7 x 7 x 3 2 s 2 =$ convolutional layer with $7 \\mathbf { x } 7$ kernel, stride 2 and number of output planes 32. $M P =$ MaxPooling. Each convolutional and fully connected layer is followed by a ReLU, except for the last output layer. "
436
+ ],
437
+ "table_footnote": [],
438
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Layer #</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>7</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>C7x7x32s2</td><td rowspan=1 colspan=1>C7x7x64s2</td><td rowspan=1 colspan=1>MP3x3s2</td><td rowspan=1 colspan=1>C3x3x128</td><td rowspan=1 colspan=1>MP3x3s2</td><td rowspan=1 colspan=1>C3x3x192</td><td rowspan=1 colspan=1>FC1024</td></tr></table>",
439
+ "bbox": [
440
+ 174,
441
+ 99,
442
+ 839,
443
+ 132
444
+ ],
445
+ "page_idx": 4
446
+ },
447
+ {
448
+ "type": "table",
449
+ "img_path": "images/99a23609e71c57723a45afa6b7ca8f9bda31e87169e3e15c804f02d59fbcb669.jpg",
450
+ "table_caption": [
451
+ "Table 2: Parameters for different maps. "
452
+ ],
453
+ "table_footnote": [],
454
+ "table_body": "<table><tr><td>Parameters</td><td>Description</td><td>FlatMap</td><td>CIGTrack1</td></tr><tr><td>living</td><td>Penalize agent who just lives</td><td colspan=\"2\">-0.008/action</td></tr><tr><td>health_loss</td><td>Penalize health decrement</td><td colspan=\"2\">-0.05 /unit</td></tr><tr><td>ammo_loss</td><td>Penalize ammunition decrement</td><td colspan=\"2\">-0.04/unit</td></tr><tr><td>health_pickup</td><td>Reward for medkit pickup</td><td colspan=\"2\">0.04/unit</td></tr><tr><td>ammo-pickup</td><td>Reward for ammunition pickup</td><td colspan=\"2\">0.15 /unit</td></tr><tr><td>dist-penalty dist_reward</td><td>Penalize the agent when it stays</td><td colspan=\"2\">-0.03 /action</td></tr><tr><td>dist_penalty_thres</td><td>Reward the agent when it moves</td><td colspan=\"2\">9e-5/unit distance</td></tr><tr><td rowspan=\"2\">num_bots</td><td>Thresholdofdisplacement</td><td>8</td><td>15</td></tr><tr><td>Number of built-in bots</td><td>8</td><td>16</td></tr></table>",
455
+ "bbox": [
456
+ 187,
457
+ 200,
458
+ 810,
459
+ 344
460
+ ],
461
+ "page_idx": 4
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "",
466
+ "bbox": [
467
+ 173,
468
+ 400,
469
+ 825,
470
+ 484
471
+ ],
472
+ "page_idx": 4
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "Despite the use of entropy term, we still find that $\\pi ( \\cdot | s )$ is highly peaked. Therefore, during trajectory exploration, we encourage exploration by the following changes: a) multiply the policy output of the network by an exploration factor (0.2) before softmax b) uniformly randomize the action for $10 \\%$ random frames. ",
477
+ "bbox": [
478
+ 174,
479
+ 489,
480
+ 825,
481
+ 546
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "As mentioned in [Kempka et al. (2016)], care should be taken for frame skips. Small frame skip introduces strong correlation in the training set, while big frame skip reduces effective training samples. We set frame skip to be 3. We choose $6 4 0 \\mathrm { x } 4 8 0$ as the input frame resolution and do not use high aspect ratio resolution [Lample & Chaplot (2016)] to increase the field of view. ",
488
+ "bbox": [
489
+ 174,
490
+ 553,
491
+ 823,
492
+ 609
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "We use Adam [Kingma & Ba (2014)] with $\\epsilon = 1 0 ^ { - 3 }$ for training. Batch size is 128, discount factor $\\gamma = 0 . 9 9$ , learning rate $\\alpha = 1 0 ^ { - 4 }$ and the policy learning rate $\\beta = 0 . 0 8 \\alpha$ . The model is trained from scratch. The training procedure runs on Intel Xeon CPU E5-2680v2 at 2. 80GHz, and 2 TitanX GPUs. It takes several days to obtain a decent result. Our final model, namely the $F l$ bot, is trained for around 3 million mini-batches on multiple different scenarios. ",
499
+ "bbox": [
500
+ 174,
501
+ 616,
502
+ 825,
503
+ 685
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "4.3 CURRICULUM LEARNING",
510
+ "text_level": 1,
511
+ "bbox": [
512
+ 174,
513
+ 709,
514
+ 392,
515
+ 723
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "When the environment only gives very sparse rewards, or adversarial, A3C takes a long time to converge to a satisfying solution. A direct training with A3C on the map CIGTrack1 with 8 builtin bots does not yield sensible performance. To address this, we use curriculum learning [Bengio et al. (2009)] that trains an agent with a sequence of progressively more difficult environments. By varying parameters in Doom (Sec. 3), we could control its difficulty level. ",
522
+ "bbox": [
523
+ 174,
524
+ 737,
525
+ 825,
526
+ 808
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "table",
532
+ "img_path": "images/16e0c77071dbef54a411defa784f22d52ae482bacc4be389f2044d33d985c380.jpg",
533
+ "table_caption": [],
534
+ "table_footnote": [
535
+ "Table 3: Curriculum design for FlatMap. Note that enemy uses RocketLauncher except for Class 0 (Pistol). "
536
+ ],
537
+ "table_body": "<table><tr><td rowspan=1 colspan=4>Class 0 Class 1 Class 2</td><td rowspan=1 colspan=1>Class 3</td><td rowspan=1 colspan=1>Class 4</td><td rowspan=1 colspan=1>Class 5</td><td rowspan=1 colspan=1>Class 6</td><td rowspan=1 colspan=1>Class 7</td></tr><tr><td rowspan=1 colspan=1>Speed</td><td rowspan=1 colspan=1>0.2</td><td rowspan=1 colspan=1>0.2</td><td rowspan=1 colspan=1>0.4</td><td rowspan=1 colspan=1>0.4</td><td rowspan=1 colspan=1>0.6</td><td rowspan=1 colspan=1>0.8</td><td rowspan=1 colspan=1>0.8</td><td rowspan=1 colspan=1>1.0</td></tr><tr><td rowspan=1 colspan=1>Health</td><td rowspan=1 colspan=1>40</td><td rowspan=1 colspan=1>40</td><td rowspan=1 colspan=1>40</td><td rowspan=1 colspan=1>60</td><td rowspan=1 colspan=1>60</td><td rowspan=1 colspan=1>60</td><td rowspan=1 colspan=1>80</td><td rowspan=1 colspan=1>100</td></tr></table>",
538
+ "bbox": [
539
+ 194,
540
+ 834,
541
+ 803,
542
+ 883
543
+ ],
544
+ "page_idx": 4
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "Reward Shaping. Reward shaping has been shown to be an effective technique to apply reinforcement learning in a complicated environment with delayed reward $[ \\mathrm { N g }$ et al. (1999); Devlin et al. (2011)]. In our case, besides the basic reward for kills $( + 1 )$ and death (-1), intermediate rewards are used as shown in Tbl. 2. We penalize agent with a living state, encouraging it to explore and encounter more enemies. health loss and ammo loss place linear reward for a decrement of health and ammunition. ammo pickup and health pickup place reward for picking up these two items. In addition, there is extra reward for picking up ammunition when in need (e.g. almost out of ammo). dist penalty and dist reward push the agent away from the previous locations, encouraging it to explore. The penalty is applied every action, when the displacement of the bot relative to the last state is less than a threshold dist penalty thres. And dist reward is applied for every unit displacement the agent makes. Similar to [Lample & Chaplot (2016)], the displacement information is computed from the ground truth location variables provided by Doom engine, and will not be used in the competition. However, unlike [Lample & Chaplot (2016)] that uses enemy-in-sight signal for training, locations can be extracted directly from USER? variables, or can easily be computed roughly with action history. ",
549
+ "bbox": [
550
+ 173,
551
+ 104,
552
+ 825,
553
+ 311
554
+ ],
555
+ "page_idx": 5
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "Curriculum Design. We train the bot on FlatMap that contains a simple square with a few pillars (Fig. 2(a)) with several curricula (Tbl. 3), and then proceed to CIGTrack1. For each map, we design curricula by varying the strength of built-in bots, i.e., their moving speed, initial health and initial weapon. Our agent always uses RocketLauncher as its only weapon. Training on FlatMap leads to a capable initial model which is quickly adapted to more complicated maps. As shown in Tbl. 2, for CIGTrack1 we increase dist penalty thres to keep the agent moving, and increase num bots so that the agent encounters more enemies per episode. ",
560
+ "bbox": [
561
+ 174,
562
+ 319,
563
+ 825,
564
+ 416
565
+ ],
566
+ "page_idx": 5
567
+ },
568
+ {
569
+ "type": "text",
570
+ "text": "Adaptive Curriculum. In addition to staged curriculum learning, we also design adaptive curriculum learning by assigning a probability distribution on different levels for each thread that runs a Doom instance. The probability distribution shifts towards more difficult curriculum when the agent performs well on the current distribution, and shifts towards easier level otherwise. We consider the agent to perform well if its frag count is greater than 10 points. ",
571
+ "bbox": [
572
+ 174,
573
+ 422,
574
+ 825,
575
+ 493
576
+ ],
577
+ "page_idx": 5
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "4.4 POST-TRAINING RULES ",
582
+ "text_level": 1,
583
+ "bbox": [
584
+ 176,
585
+ 520,
586
+ 377,
587
+ 534
588
+ ],
589
+ "page_idx": 5
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "For a better performance in the competition, we also put several rules to process the action given by the trained policy network, called post-training (PT) rules. There are two sets of buttons in ViZDoom: on-off buttons and delta buttons. While on-off button maps to the binary states of a keystroke (e.g., pressing the up arrow key will move the agent forward), delta buttons mimic the mouse behavior and could act faster in certain situations. Therefore, we setup rules that detect the intention of the agent and accelerate with delta button. For example, when the agent turns by invoking TURN LEFT repeatedly, we convert its action to TURN LEFT RIGHT DELTA for acceleration. Besides, the trained model might get stuck in rare situations, e.g., keep moving forward but blocked by an explosive bucket. We also designed rules to detect and fix them. ",
594
+ "bbox": [
595
+ 174,
596
+ 549,
597
+ 825,
598
+ 674
599
+ ],
600
+ "page_idx": 5
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "5 EXPERIMENT ",
605
+ "text_level": 1,
606
+ "bbox": [
607
+ 176,
608
+ 704,
609
+ 316,
610
+ 719
611
+ ],
612
+ "page_idx": 5
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "In this section, we show the training procedure (Sec. 5.1), evaluate our AIs with ablation analysis (Sec. 5.2) and ViZDoom AI Competition (Sec. 5.3). We mainly compare among three AIs: (1) F1Pre, the bot trained with FlatMap only, (2) F1Plain, the bot trained on both FlatMap and CIGTrack1, but without post-training rules, and (3) the final $F l$ bot that attends competition. ",
617
+ "bbox": [
618
+ 174,
619
+ 742,
620
+ 825,
621
+ 797
622
+ ],
623
+ "page_idx": 5
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "5.1 CURRICULUM LEARNING ON FL A TMA P",
628
+ "text_level": 1,
629
+ "bbox": [
630
+ 176,
631
+ 824,
632
+ 485,
633
+ 838
634
+ ],
635
+ "page_idx": 5
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "Fig. 4 shows that the curriculum learning increases the performance of the agents over all levels. When an agent becomes stronger in the higher level of class, it is also stronger in the lower level of class without overfitting. Fig. 5 shows comparison between adaptive curriculum learning with pure A3C. We can see that pure A3C can learn on FlatMap but is slower. Moreover, in CIGTrack1, a direct application of A3C does not yield sensible performance. ",
640
+ "bbox": [
641
+ 174,
642
+ 853,
643
+ 825,
644
+ 924
645
+ ],
646
+ "page_idx": 5
647
+ },
648
+ {
649
+ "type": "image",
650
+ "img_path": "images/d72c27739b6db20e52495fe4e07e135bfbb24984821015d05ffc9ec11bf706ce.jpg",
651
+ "image_caption": [
652
+ "Figure 4: Average Frags over 300 episodes evaluation, on FlatMap(left) and CIGTrack1(right) with different levels of enemies (See Tbl. 3 for curriculum design). Models from later stages performs better especially on the difficult map, yet still keeps a good performance on the easier map. "
653
+ ],
654
+ "image_footnote": [],
655
+ "bbox": [
656
+ 171,
657
+ 93,
658
+ 823,
659
+ 270
660
+ ],
661
+ "page_idx": 6
662
+ },
663
+ {
664
+ "type": "image",
665
+ "img_path": "images/ad4bd531ba59b063ff2e2cb3cd119ad0c822eca03e7562097dfe0dc1b19fed27.jpg",
666
+ "image_caption": [
667
+ "Figure 5: Performance comparison on Class 7 (hardest) of FlatMap between A3C [Mnih et al. (2016)] and adaptive curriculum learning, at different stage of training. Average frags and max frags are computed from 100 episodes. Adaptive curriculum shows higher performance and is relatively more stable. "
668
+ ],
669
+ "image_footnote": [],
670
+ "bbox": [
671
+ 200,
672
+ 333,
673
+ 790,
674
+ 465
675
+ ],
676
+ "page_idx": 6
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "5.2 ABLATION ANALYSIS ",
681
+ "text_level": 1,
682
+ "bbox": [
683
+ 176,
684
+ 550,
685
+ 364,
686
+ 564
687
+ ],
688
+ "page_idx": 6
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "Visualization. Fig. 6 shows the visualization of the first convolutional layer of the trained AI agent. We could see that the convolutional kernels of the current frame is less noisy than the kernels of previous frames. This means that the agent makes the most use of the current frames. ",
693
+ "bbox": [
694
+ 173,
695
+ 579,
696
+ 825,
697
+ 622
698
+ ],
699
+ "page_idx": 6
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "Effect of History Frames. Interestingly, while the agent focuses on the current frame, it also uses motion information. For this, we use (1) 4 duplicated current frames (2) 4 recent frames in reverse order, as the input. This gives 8.50 and 2.39 mean frags, compared to 10.34 in the normal case, showing that the agent heavily uses the motion information for better decision. In particular, the bot is totally confused with the reversed motion feature. Detailed results are shown in Tbl. 5. ",
704
+ "bbox": [
705
+ 173,
706
+ 628,
707
+ 825,
708
+ 699
709
+ ],
710
+ "page_idx": 6
711
+ },
712
+ {
713
+ "type": "image",
714
+ "img_path": "images/66a68449811ccd1853c0ae74280a568bba1e9234290164ddd9cd147902eb9bb3.jpg",
715
+ "image_caption": [
716
+ "Figure 6: Visualization of the convolutional filters in the first layer of our network. The filters are grouped by the frame index they corresponds to. Each group consists of two rows of 32 RGB filters for the regular and attention frames, respectively. The filters corresponding to the current frame (last row) is less noisy than those of others, showing that the bot is more focused on the current frame. "
717
+ ],
718
+ "image_footnote": [],
719
+ "bbox": [
720
+ 169,
721
+ 712,
722
+ 825,
723
+ 856
724
+ ],
725
+ "page_idx": 6
726
+ },
727
+ {
728
+ "type": "table",
729
+ "img_path": "images/eaa1abc31b03c8c625c1360c75776735bbf77ef9741f076212d9868dee9cc052.jpg",
730
+ "table_caption": [
731
+ "Table 4: Avg/Max frags of each AIs in the internal tournament (150 episodes of 10 minutes each). "
732
+ ],
733
+ "table_footnote": [],
734
+ "table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Built-In AI</td><td rowspan=1 colspan=1>F1Pre</td><td rowspan=1 colspan=1>F1Plain</td><td rowspan=1 colspan=1>F1</td></tr><tr><td rowspan=1 colspan=1>FlatMap</td><td rowspan=1 colspan=1>8.07/20</td><td rowspan=1 colspan=1>14.47/24</td><td rowspan=1 colspan=1>17.26/29</td><td rowspan=1 colspan=1>22.45/37</td></tr><tr><td rowspan=1 colspan=1>CIGTrack1</td><td rowspan=1 colspan=1>0.48/7</td><td rowspan=1 colspan=1>3.56/15</td><td rowspan=1 colspan=1>8.58/16</td><td rowspan=1 colspan=1>10.65/18</td></tr></table>",
735
+ "bbox": [
736
+ 279,
737
+ 99,
738
+ 718,
739
+ 148
740
+ ],
741
+ "page_idx": 7
742
+ },
743
+ {
744
+ "type": "table",
745
+ "img_path": "images/72b1162bdc8fa97d8554f6798622019835e0e09a00b2c033112d09acaf729028.jpg",
746
+ "table_caption": [],
747
+ "table_footnote": [],
748
+ "table_body": "<table><tr><td></td><td colspan=\"3\">FlatMap</td><td colspan=\"3\">CIGTrack1</td></tr><tr><td></td><td>Min</td><td>Mean</td><td>Max</td><td>Min</td><td>Mean</td><td>Max</td></tr><tr><td>F1 bot (reverse history)</td><td>1</td><td>9.89</td><td>19</td><td>-2</td><td>2.39</td><td>9</td></tr><tr><td>F1 bot (duplicated history)</td><td>10</td><td>24.62</td><td>37</td><td>2</td><td>8.50</td><td>17</td></tr><tr><td>F1 bot (w/o PT rules)</td><td>14</td><td>22.80</td><td>36</td><td>1</td><td>8.66</td><td>18</td></tr><tr><td>F1 bot</td><td>16</td><td>25.17</td><td>37</td><td>5</td><td>10.34</td><td>17</td></tr></table>",
749
+ "bbox": [
750
+ 243,
751
+ 191,
752
+ 754,
753
+ 280
754
+ ],
755
+ "page_idx": 7
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "Table 5: Performance evaluation (in terms of frags) on two standard scenarios FlatMap and CIGTrack1 over 300 episodes. Our bot performs better with post-training rules. ",
760
+ "bbox": [
761
+ 173,
762
+ 290,
763
+ 823,
764
+ 318
765
+ ],
766
+ "page_idx": 7
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "Post-training Rules. Tbl. 5 shows that the post-training rules improve the performance. As a future work, an end-to-end training involving delta buttons could make the bot better. ",
771
+ "bbox": [
772
+ 174,
773
+ 349,
774
+ 821,
775
+ 378
776
+ ],
777
+ "page_idx": 7
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "Internal Tournament. We also evaluate our AIs with internal tournaments (Tbl. 4). All our bots beat the performance of built-in bots by a large margin, even though they use privileged information. F1Pre, trained with only FlatMap, shows decent performance, but is not as good as the models trained with both FlatMap and CIGTrack1. The final bot $F l$ performs the best. ",
782
+ "bbox": [
783
+ 174,
784
+ 385,
785
+ 825,
786
+ 440
787
+ ],
788
+ "page_idx": 7
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "Behaviors. Visually, the three bots behave differently. F1Pre is a bit overtrained in FlatMap and does not move too often, but when it sees enemies, even faraway, it will start to shoot. Occasionally it will move to the corner and pick medkits. In CIGTrack1, F1Pre stays in one place and ambushes opponents who pass by. On the other hand, F1Plain and $F l$ always move forwards and turn at the corner. As expected, $F l$ moves and turns faster. ",
793
+ "bbox": [
794
+ 173,
795
+ 448,
796
+ 825,
797
+ 517
798
+ ],
799
+ "page_idx": 7
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "Tactics All bots develop interesting local tactics when exchanging fire with enemy: they slide around when shooting the enemy. This is quite effective for dodging others’ attack. Also when they shoot the enemy, they usually take advantage of the splashing effect of rocket to cause additional damage for enemy, e.g., shooting the wall when the enemy is moving. They do not pick ammunition too often, even if they can no longer shoot. However, such disadvantage is mitigated by the nature of deathmatch: when a player dies, it will respawn with ammunition. We also check states with highest/lowest estimated future value $V ( s )$ over a 10-episode evaluation of $F l$ bot, from which we can speculate its tactics. The highest value is $V = 0 . 9 7$ when the agent fired, and about to hit the enemy. One low value is $V = - 0 . 4 4$ , ammo $= 0$ , when the agent encountered an enemy at the corner but is out of ammunition. Both cases are reasonable. ",
804
+ "bbox": [
805
+ 173,
806
+ 525,
807
+ 825,
808
+ 664
809
+ ],
810
+ "page_idx": 7
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "5.3 COMPETITION ",
815
+ "text_level": 1,
816
+ "bbox": [
817
+ 174,
818
+ 688,
819
+ 313,
820
+ 703
821
+ ],
822
+ "page_idx": 7
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "We attended the ViZDoom AI Competition hosted by IEEE CIG. There are 2 tracks in the competition. Track 1 (Limited Deathmatch) uses a known map and fixed weapons, while Track 2 (Full Deathmatch) uses 3 unknown maps and a variety of weapons. Each bot fights against all others for 12 rounds of 10 minutes each. Due to server capacity, each bot skips one match in the first 9 rounds. All bots are supposed to run in real-time ${ \\mathit { \\Omega } } ^ { \\prime } { > } 3 5$ fps) on a GTX960 GPU. ",
827
+ "bbox": [
828
+ 174,
829
+ 717,
830
+ 825,
831
+ 787
832
+ ],
833
+ "page_idx": 7
834
+ },
835
+ {
836
+ "type": "table",
837
+ "img_path": "images/2efbaa92226ae1fc4cfcbd0d07a90f5d8e4b6d3dce336b16a3dd491d96dcafd8.jpg",
838
+ "table_caption": [],
839
+ "table_footnote": [],
840
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Round</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>8</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>11</td><td rowspan=1 colspan=2>12 Total</td></tr><tr><td rowspan=1 colspan=1>Our bot</td><td rowspan=1 colspan=1>56</td><td rowspan=1 colspan=1>62</td><td rowspan=1 colspan=1>n/a</td><td rowspan=1 colspan=1>54</td><td rowspan=1 colspan=1>47</td><td rowspan=1 colspan=1>43</td><td rowspan=1 colspan=1>47</td><td rowspan=1 colspan=1>55</td><td rowspan=1 colspan=1>50</td><td rowspan=1 colspan=1>48</td><td rowspan=1 colspan=1>50</td><td rowspan=1 colspan=1>47</td><td rowspan=1 colspan=1>559</td></tr><tr><td rowspan=1 colspan=1>Arnold</td><td rowspan=1 colspan=1>36</td><td rowspan=1 colspan=1>34</td><td rowspan=1 colspan=1>42</td><td rowspan=1 colspan=1>36</td><td rowspan=1 colspan=1>36</td><td rowspan=1 colspan=1>45</td><td rowspan=1 colspan=1>36</td><td rowspan=1 colspan=1>39</td><td rowspan=1 colspan=1>n/a</td><td rowspan=1 colspan=1>33</td><td rowspan=1 colspan=1>36</td><td rowspan=1 colspan=1>40</td><td rowspan=1 colspan=1>413</td></tr><tr><td rowspan=1 colspan=1>CLYDE</td><td rowspan=1 colspan=1>37</td><td rowspan=1 colspan=1>n/a</td><td rowspan=1 colspan=1>38</td><td rowspan=1 colspan=1>32</td><td rowspan=1 colspan=1>37</td><td rowspan=1 colspan=1>30</td><td rowspan=1 colspan=1>46</td><td rowspan=1 colspan=1>42</td><td rowspan=1 colspan=1>33</td><td rowspan=1 colspan=1>24</td><td rowspan=1 colspan=1>44</td><td rowspan=1 colspan=1>30</td><td rowspan=1 colspan=1>393</td></tr></table>",
841
+ "bbox": [
842
+ 210,
843
+ 805,
844
+ 787,
845
+ 869
846
+ ],
847
+ "page_idx": 7
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "Table 6: Top 3 teams in ViZDoom AI Competition, Track 1. Our bot attended 11 out of 12 games, won 10 of them and won the champion by a large margin. For design details, see Arnold [Lample & Chaplot (2016)] and CLYDE [Ratcliffe et al. (2017)]. ",
852
+ "bbox": [
853
+ 174,
854
+ 878,
855
+ 825,
856
+ 921
857
+ ],
858
+ "page_idx": 7
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "Our $F l$ bot won 10 out of 11 attended games and won the champion for Track 1 by a large margin. We have achieved 559 frags, $3 5 . 4 \\%$ higher than 413 frags achieved by Arnold [Lample & Chaplot (2016)], that uses extra game state for model training. On the other hand, IntelAct [Dosovitskiy & Koltun (2017)] won Track 2. The full videos for the two tracks have been released67, as well as an additional game between Human and $\\mathrm { A I s } ^ { 8 }$ . Our bot behaves reasonable and very human-like in Track 1. In the match between Human and AIs, our bot was even ahead of the human player for a short period (6:30 to 7:00). ",
863
+ "bbox": [
864
+ 174,
865
+ 103,
866
+ 825,
867
+ 200
868
+ ],
869
+ "page_idx": 8
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "6 CONCLUSION ",
874
+ "text_level": 1,
875
+ "bbox": [
876
+ 176,
877
+ 222,
878
+ 318,
879
+ 238
880
+ ],
881
+ "page_idx": 8
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "Teaching agents to act properly in complicated and adversarial 3D environment is a very challenging task. In this paper, we propose a new framework to train a strong AI agent in a First-Person Shooter (FPS) game, Doom, using a combination of state-of-the-art Deep Reinforcement Learning and Curriculum Training. Via playing against built-in bots in a progressive manner, our bot wins the champion of Track1 (known map) in ViZDoom AI Competition. Furthermore, it learns to use motion features and build its own tactics during the game, which is never taught explicitly. ",
886
+ "bbox": [
887
+ 174,
888
+ 253,
889
+ 825,
890
+ 338
891
+ ],
892
+ "page_idx": 8
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "Currently, our bot is still an reactive agent that only remembers the last 4 frames to act. Ideally, a bot should be able to build a map from an unknown environment and localize itself, is able to have a global plan to act, and visualize its reasoning process. We leave them to future works. ",
897
+ "bbox": [
898
+ 174,
899
+ 344,
900
+ 825,
901
+ 387
902
+ ],
903
+ "page_idx": 8
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "REFERENCES ",
908
+ "text_level": 1,
909
+ "bbox": [
910
+ 176,
911
+ 409,
912
+ 285,
913
+ 422
914
+ ],
915
+ "page_idx": 8
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "Abadi, Mart´ın, Agarwal, Ashish, Barham, Paul, Brevdo, Eugene, Chen, Zhifeng, Citro, Craig, Corrado, Gregory S., Davis, Andy, Dean, Jeffrey, Devin, Matthieu, Ghemawat, Sanjay, Goodfellow, Ian J., Harp, Andrew, Irving, Geoffrey, Isard, Michael, Jia, Yangqing, Jozefowicz, Rafal, Kaiser, ´ Lukasz, Kudlur, Manjunath, Levenberg, Josh, Mane, Dan, Monga, Rajat, Moore, Sherry, Murray, ´ Derek Gordon, Olah, Chris, Schuster, Mike, Shlens, Jonathon, Steiner, Benoit, Sutskever, Ilya, Talwar, Kunal, Tucker, Paul A., Vanhoucke, Vincent, Vasudevan, Vijay, Viegas, Fernanda B., ´ Vinyals, Oriol, Warden, Pete, Wattenberg, Martin, Wicke, Martin, Yu, Yuan, and Zheng, Xiaoqiang. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. CoRR, abs/1603.04467, 2016. URL http://arxiv.org/abs/1603.04467. ",
920
+ "bbox": [
921
+ 176,
922
+ 431,
923
+ 825,
924
+ 558
925
+ ],
926
+ "page_idx": 8
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "Babaeizadeh, Mohammad, Frosio, Iuri, Tyree, Stephen, Clemons, Jason, and Kautz, Jan. Reinforcement learning through asynchronous advantage actor-critic on a gpu. International Conference on Learning Representations (ICLR), 2017. ",
931
+ "bbox": [
932
+ 173,
933
+ 568,
934
+ 821,
935
+ 609
936
+ ],
937
+ "page_idx": 8
938
+ },
939
+ {
940
+ "type": "text",
941
+ "text": "Barto, Andrew G, Sutton, Richard S, and Anderson, Charles W. Neuronlike adaptive elements that can solve difficult learning control problems. IEEE transactions on systems, man, and cybernetics, (5):834–846, 1983. ",
942
+ "bbox": [
943
+ 173,
944
+ 619,
945
+ 826,
946
+ 662
947
+ ],
948
+ "page_idx": 8
949
+ },
950
+ {
951
+ "type": "text",
952
+ "text": "Bengio, Yoshua, Louradour, Jer´ ome, Collobert, Ronan, and Weston, Jason. Curriculum learning. In ˆ Proceedings of the 26th annual international conference on machine learning, pp. 41–48. ACM, 2009. ",
953
+ "bbox": [
954
+ 173,
955
+ 672,
956
+ 826,
957
+ 714
958
+ ],
959
+ "page_idx": 8
960
+ },
961
+ {
962
+ "type": "text",
963
+ "text": "Devlin, Sam, Kudenko, Daniel, and Grzes, Marek. An empirical study of potential-based reward ´ shaping and advice in complex, multi-agent systems. Advances in Complex Systems, 14(02): 251–278, 2011. ",
964
+ "bbox": [
965
+ 173,
966
+ 724,
967
+ 823,
968
+ 767
969
+ ],
970
+ "page_idx": 8
971
+ },
972
+ {
973
+ "type": "text",
974
+ "text": "Dosovitskiy, Alexey and Koltun, Vladlen. Learning to act by predicting the future. International Conference on Learning Representations (ICLR), 2017. ",
975
+ "bbox": [
976
+ 173,
977
+ 777,
978
+ 823,
979
+ 806
980
+ ],
981
+ "page_idx": 8
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "Grondman, Ivo, Busoniu, Lucian, Lopes, Gabriel AD, and Babuska, Robert. A survey of actor-critic reinforcement learning: Standard and natural policy gradients. IEEE Transactions on Systems, Man, and Cybernetics, Part C (Applications and Reviews), 42(6):1291–1307, 2012. ",
986
+ "bbox": [
987
+ 179,
988
+ 816,
989
+ 823,
990
+ 859
991
+ ],
992
+ "page_idx": 8
993
+ },
994
+ {
995
+ "type": "text",
996
+ "text": "Hausknecht, Matthew J. and Stone, Peter. Deep recurrent q-learning for partially observable mdps. CoRR, abs/1507.06527, 2015. URL http://arxiv.org/abs/1507.06527. ",
997
+ "bbox": [
998
+ 171,
999
+ 103,
1000
+ 823,
1001
+ 133
1002
+ ],
1003
+ "page_idx": 9
1004
+ },
1005
+ {
1006
+ "type": "text",
1007
+ "text": "Jiang, Lu, Meng, Deyu, Zhao, Qian, Shan, Shiguang, and Hauptmann, Alexander G. Self-paced curriculum learning. In AAAI, volume 2, pp. 6, 2015. ",
1008
+ "bbox": [
1009
+ 171,
1010
+ 140,
1011
+ 823,
1012
+ 171
1013
+ ],
1014
+ "page_idx": 9
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "Kempka, Michał, Wydmuch, Marek, Runc, Grzegorz, Toczek, Jakub, and Jaskowski, Wojciech.´ Vizdoom: A doom-based ai research platform for visual reinforcement learning. arXiv preprint arXiv:1605.02097, 2016. ",
1019
+ "bbox": [
1020
+ 176,
1021
+ 179,
1022
+ 823,
1023
+ 222
1024
+ ],
1025
+ "page_idx": 9
1026
+ },
1027
+ {
1028
+ "type": "text",
1029
+ "text": "Kingma, Diederik and Ba, Jimmy. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1030
+ "bbox": [
1031
+ 171,
1032
+ 231,
1033
+ 825,
1034
+ 258
1035
+ ],
1036
+ "page_idx": 9
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "Konda, Vijay R and Tsitsiklis, John N. Actor-critic algorithms. In NIPS, volume 13, pp. 1008–1014, 1999. ",
1041
+ "bbox": [
1042
+ 171,
1043
+ 267,
1044
+ 825,
1045
+ 296
1046
+ ],
1047
+ "page_idx": 9
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "Lample, Guillaume and Chaplot, Devendra Singh. Playing fps games with deep reinforcement learning. arXiv preprint arXiv:1609.05521, 2016. ",
1052
+ "bbox": [
1053
+ 171,
1054
+ 306,
1055
+ 823,
1056
+ 335
1057
+ ],
1058
+ "page_idx": 9
1059
+ },
1060
+ {
1061
+ "type": "text",
1062
+ "text": "Mnih, Volodymyr, Kavukcuoglu, Koray, Silver, David, Rusu, Andrei A, Veness, Joel, Bellemare, Marc G, Graves, Alex, Riedmiller, Martin, Fidjeland, Andreas K, Ostrovski, Georg, et al. Humanlevel control through deep reinforcement learning. Nature, 518(7540):529–533, 2015. ",
1063
+ "bbox": [
1064
+ 174,
1065
+ 343,
1066
+ 825,
1067
+ 387
1068
+ ],
1069
+ "page_idx": 9
1070
+ },
1071
+ {
1072
+ "type": "text",
1073
+ "text": "Mnih, Volodymyr, Badia, Adria Puigdomenech, Mirza, Mehdi, Graves, Alex, Lillicrap, Timothy P, Harley, Tim, Silver, David, and Kavukcuoglu, Koray. Asynchronous methods for deep reinforcement learning. arXiv preprint arXiv:1602.01783, 2016. ",
1074
+ "bbox": [
1075
+ 173,
1076
+ 395,
1077
+ 823,
1078
+ 439
1079
+ ],
1080
+ "page_idx": 9
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "Ng, Andrew Y, Harada, Daishi, and Russell, Stuart. Policy invariance under reward transformations: Theory and application to reward shaping. In ICML, volume 99, pp. 278–287, 1999. ",
1085
+ "bbox": [
1086
+ 173,
1087
+ 446,
1088
+ 823,
1089
+ 476
1090
+ ],
1091
+ "page_idx": 9
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "text": "Peters, Jan and Schaal, Stefan. Reinforcement learning of motor skills with policy gradients. Neural networks, 21(4):682–697, 2008. ",
1096
+ "bbox": [
1097
+ 173,
1098
+ 484,
1099
+ 825,
1100
+ 513
1101
+ ],
1102
+ "page_idx": 9
1103
+ },
1104
+ {
1105
+ "type": "text",
1106
+ "text": "Ratcliffe, D., Devlin, S., Kruschwitz, U., and Citi, L. Clyde: A deep reinforcement learning doom playing agent. AAAI Workshop on What’s next for AI in games, 2017. ",
1107
+ "bbox": [
1108
+ 173,
1109
+ 522,
1110
+ 825,
1111
+ 551
1112
+ ],
1113
+ "page_idx": 9
1114
+ },
1115
+ {
1116
+ "type": "text",
1117
+ "text": "Silver, David, Huang, Aja, Maddison, Chris J, Guez, Arthur, Sifre, Laurent, Van Den Driessche, George, Schrittwieser, Julian, Antonoglou, Ioannis, Panneershelvam, Veda, Lanctot, Marc, et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016. ",
1118
+ "bbox": [
1119
+ 173,
1120
+ 559,
1121
+ 825,
1122
+ 617
1123
+ ],
1124
+ "page_idx": 9
1125
+ },
1126
+ {
1127
+ "type": "text",
1128
+ "text": "Sutton, Richard S and Barto, Andrew G. Reinforcement learning: An introduction, volume 1. 1998. ",
1129
+ "bbox": [
1130
+ 173,
1131
+ 626,
1132
+ 821,
1133
+ 641
1134
+ ],
1135
+ "page_idx": 9
1136
+ },
1137
+ {
1138
+ "type": "text",
1139
+ "text": "Sutton, Richard Stuart. Temporal credit assignment in reinforcement learning. 1984. ",
1140
+ "bbox": [
1141
+ 173,
1142
+ 648,
1143
+ 730,
1144
+ 665
1145
+ ],
1146
+ "page_idx": 9
1147
+ },
1148
+ {
1149
+ "type": "text",
1150
+ "text": "van Waveren, J.M.P. The Quake III Arena bot. University of Technology Delft, 2001. ",
1151
+ "bbox": [
1152
+ 173,
1153
+ 672,
1154
+ 728,
1155
+ 689
1156
+ ],
1157
+ "page_idx": 9
1158
+ },
1159
+ {
1160
+ "type": "text",
1161
+ "text": "Williams, Ronald J. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine learning, 8(3-4):229–256, 1992. ",
1162
+ "bbox": [
1163
+ 173,
1164
+ 696,
1165
+ 825,
1166
+ 727
1167
+ ],
1168
+ "page_idx": 9
1169
+ }
1170
+ ]
parse/train/Hk3mPK5gg/Hk3mPK5gg_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hk3mPK5gg/Hk3mPK5gg_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyenWc5gx/HyenWc5gx.md ADDED
@@ -0,0 +1,277 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # REPRESENTATION STABILITY AS A REGULARIZER FOR IMPROVED TEXT ANALYTICS TRANSFER LEARNING
2
+
3
+ Matthew Riemer, Elham Khabiri, and Richard Goodwin
4
+
5
+ IBM T.J. Watson Research Center Yorktown Heights, NY, USA {mdriemer, ekhabiri, rgoodwin}@us.ibm.com
6
+
7
+ # ABSTRACT
8
+
9
+ Although neural networks are well suited for sequential transfer learning tasks, the catastrophic forgetting problem hinders proper integration of prior knowledge. In this work, we propose a solution to this problem by using a multi-task objective based on the idea of distillation and a mechanism that directly penalizes forgetting at the shared representation layer during the knowledge integration phase of training. We demonstrate our approach on a Twitter domain sentiment analysis task with sequential knowledge transfer from four related tasks. We show that our technique outperforms networks fine-tuned to the target task. Additionally, we show both through empirical evidence and examples that it does not forget useful knowledge from the source task that is forgotten during standard fine-tuning. Surprisingly, we find that first distilling a human made rule based sentiment engine into a recurrent neural network and then integrating the knowledge with the target task data leads to a substantial gain in generalization performance. Our experiments demonstrate the power of multi-source transfer techniques in practical text analytics problems when paired with distillation. In particular, for the SemEval 2016 Task 4 Subtask A (Nakov et al., 2016) dataset we surpass the state of the art established during the competition with a comparatively simple model architecture that is not even competitive when trained on only the labeled task specific data.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Sequential transfer learning methodologies leverage knowledge representations from a source task in order to improve performance for a target task. A significant challenge faced when transferring neural network representations across tasks is that of catastrophic forgetting (or catastrophic interference). This is where a neural network experiences the elimination of important old information when learning new information. The very popular strategy of fine-tuning a neural network involves first training a neural network on a source task and then using the model to simply initialize the weights of a target task network up to the highest allowable common representation layer. However it is highly susceptible to catastrophic forgetting, because in training for the target task it has no explicit incentive to retain what it learned from the source task. While one can argue that forgetting the source task should not matter if only the target task is of interest, our paper adds to the recent empirical evidence across problem domains (Li & Hoiem, 2016),(Rusu et al., 2016) that show additional network stability can lead to empirical benefits over the fine-tuning algorithm. It seems as though for many Deep Learning problems we can benefit from an algorithm that promotes more stability to tackle the well known stability-plasticity dilemma. One popular approach for addressing this problem is rehearsals (Murre, 1992), (Robins, 1995). Rehearsals refers to a neural network training strategy where old examples are relearned as new examples are learned. In the transfer setting it can be seen as related to multi-task learning (Caruana, 1997) where two tasks are trained at the same time, rather than sequentially, while sharing a common input encoder to a shared hidden representation. However, in rehearsals the representation is biased in favor of the source task representation through initialization. This technique is very sensible because while fine-tuning is susceptible to catastrophic forgetting, multi-task learning is not (Caruana, 1997).
14
+
15
+ One of the biggest issues with the standard rehearsals paradigm is that it requires a cached memory of training examples that have been seen in the past. This can be a massive requirement as the number of source tasks and training data sizes scale. One compelling technique for addressing this problem is the concept of pseudorehearsals (Robins, 1995), (Robins, 1996), where relearning is performed on an artificially constructed population of pseudoitems instead of the actual old examples. Unfortunately, current automatic techniques in the text analytics domain have not yet mastered producing linguistically plausible data. As such, the pseudorehearsals paradigm is likely to waste computational time that could be spent on learning realistic patterns that may occur during testing. In our work, we extend the Learning without Forgetting (LwF) paradigm of (Li & Hoiem, 2016) to the text analytics domain using Recurrent Neural Networks. In this approach, the target task data is used both for learning the target task and for rehearsing information learned from the source task by leveraging synthetic examples generated for the target task input by the model that only experienced training on the source task data. As argued by Li & Hoiem (2016), this setup strikes an important balance between classification performance, computational efficiency, and simplicity in deployment.
16
+
17
+ Regardless of whether they are applied to real source task examples, real target task examples, or synthetic examples, paradigms in the style of rehearsals all address the shortcomings of neural network forgetting by casting target task integration as a multi-task learning problem. However, this is not quite the purpose of the multi-task learning architecture, which was designed for joint learning of tasks from scratch at the same time. The key disconnect is that in multi-task learning, the transformation from the shared hidden layer to the outputs for each task are all learned and updated with the changing hidden representation. This would imply that, in the framework of rehearsals, it is possible for there to be significant changes during learning of the network’s representation, and thus its abilities on the source task itself. While it would be desirable to claim we were allowing our source task network to become even better based on the target task than it was before, this motivation seems idealistic in practice. One reason this is idealistic is because multi-task learning generally only works well when tasks are sampled at different rates or alternatively given different priority in the neural network loss function (Caruana, 1997). As a result, it is most likely that auxilirary source tasks will receive less priority from the network for optimization than the target task. Additionally, we observe in our experiments, and it has been observed by others in (Rusu et al., 2015), that it is generally not possible to distill multiple complex tasks into a student network at full teacher performance for all tasks. This seems to imply the degradation of the source task performance during training is somewhat inevitable in a multi-task learning paradigm.
18
+
19
+ We address this issue with our proposed forgetting cost technique. We demonstrate that it, in fact, can be valuable to keep the hidden to output transformation of the source tasks fixed during knowledge integration with the target task. This way, we impose a stronger regularization on the hidden representation during target task integration by not allowing it to change aspects that were important to the source task’s performance without direct penalization in the neural network’s loss function. We demonstrate empirically both that freezing the source task specific weights leads to less deterioration in the accuracy on the source task after integration, and that it achieves better generalization performance in our setting. The forgetting cost is practical and easy to implement in training any kind of neural network. In our experiments, we explore application of the forgetting cost in a recurrent neural network to the three way Twitter sentiment analysis task of SemEval 2016 Task 4 Subtask A and find it to achieve consistently superior performance to reasonable baseline transfer learning approaches in four examples of knowledge transfer for this task.
20
+
21
+ We also demonstrate how powerful distillation can be in the domain of text analytics when paired with the idea of the forgetting cost. Significantly, we show that a high quality gazetteer based logical rule engine can be distilled using unlabeled data into a neural network and used to significantly improve performance of the neural network on the target task. This is achieved with a novel extension of the LwF paradigm by Li & Hoiem (2016) to the scenario of a source task with the same output space as the target task. This can be a very promising direction for improving the ability of humans to directly convey knowledge to deep learning algorithms. Indeed, a human defined rule can contain far more information than a single training example, as that rule can be projected on to many unlabeled examples that the neural network can learn from. This is the reason human teachers generally begin teaching human students tasks by going over core rules at the onset of learning. Moreover, we showcase that multiple expert networks trained on the target task with prior knowledge from different source tasks can be effectively combined in an ensemble and then distilled into a single GRU model (Cho et al., 2014), (Chung et al., 2014). Leveraging this combination of distillation and knowledge transfer techniques allows us to achieve state of the art accuracy on the SemEval task with a model that performs $11 \%$ worse than the best prior techniques when trained only on the labeled data.
22
+
23
+ # 2 RELATED WORK
24
+
25
+ Since the work of (Bucilu et al., 2006) and (Hinton et al., 2015) showed that an ensemble of neural network classifier can be distilled into a single model, knowledge distillation from a teacher network to a student network has become a growing topic of neural network research. In (Ba & Caruana, 2014) it was shown that a deep teacher neural network can be learned by a shallow student network. This idea was extended in (Romero et al., 2014), where it was demonstrated that a deep and narrow neural network can learn a representation that surpasses its teacher. The use of distillation as a means of sharing biases from multiple tasks was explored in (Lopez-Paz et al., 2016), where the teacher network is trained with the output of the other tasks as input. It is not obvious how to extend a recurrent neural network to best use this kind of capability over a sequence. The idea of distilling from multiple source task teachers into a student network was highlighted in the reinforcement learning setting in (Rusu et al., 2015). Additionally, the concept of using distillation for knowledge transfer was also explored in (Chen et al., 2015), where function preserving transformations from smaller to bigger neural network architectures were outlined. This technique could also provide value in some instances for our approach where wider or deeper neural networks are needed for the task being transferred to than was needed for the original task. Distillation over target task data was first proposed as a means of elevating catastrophic forgetting in sequential knowledge transfer as applied to image classification in (Li & Hoiem, 2016). We extend this approach for its first application to our knowledge for text analytics problems, with a recurrent neural network architecture, and in the setting where the source task and target task have the same output. The chief distinction of our proposed forgetting cost is that source task specific parameters are held fixed during integration with the target task as opposed to the joint training of all parameters used by Li & Hoiem (2016). Our experiments empirically support the intuition that freezing these parameters leads to greater retention of source task performance after target task integration and better generalization to the target task.
26
+
27
+ An ensemble over multiple diverse models trained for the same sentiment analysis task was also considered in (Mesnil et al., 2014) for the IMDB binary movie reviews sentiment dataset (Maas et al., 2011). We tried this ensemble model in our work and found that it gave very limited improvement. Our ensemble technique learns a more powerful weighted average based on the soft targets of each task and a multi-step greedy binary fusion approach that works better for the Twitter sentiment analysis task in our experiments. Knowledge transfer from multiple tasks was considered to estimate the age of Twitter users based on the content of their tweets in (Riemer et al., 2015). We experimented with the hidden layer sharing approach outlined in that work and found that even when using just a single softmax combining layer, it would overfit on our limited training and validation data. Progressive neural networks (Rusu et al., 2016) is a recently proposed method very similar in motivation to our forgetting cost as it is directly trying to solve the catastrophic forgetting problem. The idea is that learned weight matrices relate the fixed representations learned on the source task to the construction of representations for the target task. In our experiments, the progressive neural networks approach consistently fails to even match the results achieved with fine-tuning. We hypothesize that although using fixed representations to aid learning addresses catastrophic forgetting, it suffers from the curse of dimensionality. As such, when training data is relatively small given the complexity of the task, it is prone to overfitting as it effectively increases the input dimension size through shared fixed representations.
28
+
29
+ The combination of logic rules and neural networks has been explored in a variety of different architectures and settings. These neural-symbolic systems (Garcez et al., 2012) include early examples such as KBANN (Towell et al., 1990) that construct network architectures from given rules to perform reasoning. (Hu et al., 2016) very recently also looked at the problem of distilling logical rules into a neural network text analytics classifier. However, our approach is much more generic as it can be applied to integrate knowledge from any kind of pre-made classifier and treats the rule engine as a black box. In (Hu et al., 2016) they consider the individual rules and leverage an iterative convex optimization algorithm alongside the neural network to regularize the subspace of the network. In our work we demonstrate that, by guarding against catastrophic forgetting, it is possible to efficiently leverage rules for transfer by utilizing a generic sequential knowledge transfer framework. We do not need to make any modification to the architecture of the neural network during testing and do not need iterative convex optimization during training.
30
+
31
+ # 3 FORGETTING COST REGULARIZATION
32
+
33
+ # 3.1 SEQUENTIAL KNOWLEDGE TRANSFER PROBLEM STATEMENT
34
+
35
+ In the sequential knowledge transfer problem setting explored in this paper, training is first conducted solely on the source task examples $S$ , including $K _ { S }$ training examples $( x _ { S i } , y _ { S i } ) \in S$ where $x _ { S i }$ is the input representation and $y _ { S i }$ is the output representation. After training is complete on $S$ , we would like to now use prior knowledge obtained in the model trained on $S$ to improve generalization on a new target task with examples $T$ , which includes $K _ { T }$ training examples $( x _ { T i } , y _ { T i } ) \in T$ . Here we assume that the input representations $x _ { S i }$ and $x _ { T i }$ are semantically aligned in the same representation space. As such, if there is useful knowledge in $S$ that applies in some direct or indirect way to the target task that is not present in $T$ , we would expect a good knowledge integration approach to generalize better to the target task than it is possible to using the training data in $T$ alone. Strong performance for the sequential knowledge transfer problem is a first step towards the greater goal of a mechanism for effective lifelong learning (Thrun, 1996).
36
+
37
+ # 3.2 FORGETTING COST FOR TUNING A TARGET TASK MODEL
38
+
39
+ The most straightforward application of our proposed forgetting cost paradigm is for the case of integrating a neural network that has been trained on source task data $S$ , which has outputs in the same representation space as the outputs for the target task data $T$ . In this case, the forgetting cost amounts to the addition of a regularization term in the objective function during the integration phase when we train using $T$ . This promotes the neural network to be able to recreate the soft labels of the initialized model found after training on $S$ before integration is started with $T$ . More formally:
40
+
41
+ $$
42
+ L o s s = L ( y , \hat { y } ) + \alpha _ { f } L ( y _ { i n i t } , \hat { y } )
43
+ $$
44
+
45
+ where $L$ is some loss function (we use mean squared error in our experiments) and $y _ { i n i t }$ is the soft label generated for the target task input $x _ { T i }$ based on the model after training just on $S$ . The model trained just on $S$ is also used to initialize the weights of the target task model before integration with $T$ as we do in the standard fine-tuning paradigm. $\alpha _ { f }$ is a hyperparameter that can be utilized to control the extent of allowed forgetting. Of course, a very similar way to express this idea would be to mix synthetic training examples $T ^ { \prime }$ with the same input as $T$ and output generated by the model trained just on $S$ with the true target task training examples $T$ . In this case, the mixing rate of the teacher generated training examples is analogous to our forgetting parameter $\alpha _ { f }$ determining the prioritization. These techniques perform quite similarly in our experiments, but we actually find that the formulation in equations 1 and 3 perform slightly better on the test set. For example, this formulation is superior by $0 . 4 \%$ accuracy in tuning a distilled representation of a logical rule engine. We conjecture that learning tasks in the same gradient step when they are related to the same input data results in slightly less noisy gradients.
46
+
47
+ # 3.3 FORGETTING COST FOR KNOWLEDGE TRANSFER FROM A RELATED TASK
48
+
49
+ The assumption in section 3.2 that the output of the source task data $S$ should be in the same representation space as the output for the target task data $T$ is quite a big one. It rules out the vast majority of knowledge sources that we can potentially leverage. As such, we propose an extension that does not make this restriction for application in sequential knowledge transfer of tasks that are not directly semantically aligned. We update our model to include another predicted output separate from $\hat { y }$ :
50
+
51
+ $$
52
+ \hat { y } _ { i n i t } = f _ { i n i t } ( W _ { f i x e d } h _ { s h a r e d } + b _ { f i x e d } )
53
+ $$
54
+
55
+ where ${ \hat { y } } _ { i n i t }$ is a predicted output attempting to recreate the soft labels of the original model trained just on $S$ . $f _ { i n i t }$ is the non-linearity used in the final layer of the source task model. Weight matrix $W _ { f i x e d }$ and bias $b _ { f i x e d }$ are taken from the final layer of the source task model and are not updated
56
+
57
+ during integration with the target task data $T$ . As a result, the loss function is updated from section 3.2:
58
+
59
+ $$
60
+ L o s s = L ( y , \hat { y } ) + \alpha _ { f } L ( y _ { i n i t } , \hat { y } _ { i n i t } )
61
+ $$
62
+
63
+ where the hidden state is shared between both terms in the objective function. Up to the shared hidden layer, we initialize the model for the target task with the weights learned just using $S$ . Random matrices and bias vectors are now used to initialize the prediction of $\hat { y }$ based on the shared hidden representation. This can be seen as a weak form of restricting the model parameters that can be useful for regularization. The hidden representation is in effect constrained so that it is promoted not to change in key areas that have a large effect on the output vector of the source task model. On the other hand, there is little regularization for parameters that have little effect on the output vector for the source task model.
64
+
65
+ # 4 RECURRENT NEURAL NETWORK MODEL
66
+
67
+ In recent years, recurrent neural network models have become a tool of choice for many NLP tasks. In particular, the LSTM variant (Hochreiter & Schmidhuber, 1997) has become popular as it alleviates the vanishing gradients problem (Bengio et al., 1994) known to stop recurrent neural networks from learning long term dependencies over the input sequence. In our experiments we use the simpler GRU network (Cho et al., 2014), (Chung et al., 2014) that generally achieves the same accuracy despite a less complex architecture. Each time step $t$ is associated with an input $x _ { t }$ and a hidden state $h _ { t }$ . The mechanics of the GRU are defined with the following equations:
68
+
69
+ $$
70
+ \begin{array} { r } { \begin{array} { r l } & { z _ { t } = \sigma \big ( W _ { x z } x _ { t } + W _ { h z } h _ { t - 1 } \big ) } \\ & { r _ { t } = \sigma \big ( W _ { x r } x _ { t } + W _ { h r } h _ { t - 1 } \big ) } \\ & { { \tilde { h } } _ { t } = t a n h \big ( W _ { x h } x _ { t } + r _ { t } \circ W _ { h h } h _ { t - 1 } \big ) } \\ & { ~ h _ { t } = z _ { t } \circ h _ { t - 1 } + ( 1 - z _ { t } ) \circ { \tilde { h } } _ { t } } \end{array} } \end{array}
71
+ $$
72
+
73
+ where $\circ$ denotes an element-wise product. $W _ { x z } , W _ { x r }$ , and $W _ { x h }$ represent learned matrices that project from the input size to the hidden size. $W _ { h z }$ , $W _ { h r }$ , and $W _ { h h }$ represent learned matrices that project from the hidden size to the hidden size. In our work we evaluate the GRU in the categorical prediction setting. For each document, the hidden state after the last word $h _ { L }$ is used for the prediction $\hat { y }$ of the label $y$ . As such, we treat $h _ { L }$ as the shared hidden representation $h _ { s h a r e d }$ from section 3.3 for our experiments.
74
+
75
+ $$
76
+ \hat { y } = f ( W _ { y h } h _ { L } + b _ { y } )
77
+ $$
78
+
79
+ The prediction goes through one other non-linear function $f$ after the final hidden state is derived. In our experiments we use the softmax function, but others are useful in different settings. A model that builds on top of GRUs with an external memory storage paradigm (Kumar et al., 2015) currently holds the state of the art on movie review sentiment analysis. However, we focus just on the straightforward single layer GRU model in our experiments so that we can more easily disentangle factors of influence on performance. Our GRU model was fed a sequence of fixed 300 dimensional Glove vectors (Pennington et al., 2014), representing words based on analysis of 840 billion words from a common crawl of the internet, as the input $x _ { t }$ for all tasks. It has been shown in a number of papers that tuning the word embeddings during training could increase performance, and it is possible our approach could have performed better had we done so.
80
+
81
+ # 5 SEQUENTIAL KNOWLEDGE TRANSFER EXPERIMENTS
82
+
83
+ # 5.1 EXPERIMENT DETAILS
84
+
85
+ Our neural network models were implemented in Theano (Theano Development Team, 2016) and trained with Stochastic Gradient Descent. As we did not use an advanced optimization method and noticed run to run variation in performance, for all of our transfer learning models we trained 10 parallel versions and chose the one with the highest validation accuracy. The SemEval 2016 Task 4 Subtask A training set consists of 10,000 total training examples, but we were only able to receive 8,906 because of tweet removals when we used the downloading script. For the target task data across our experiments, 7,600 examples of the SemEval training set examples were used for training and the rest for validation. The GRU model achieves only $5 3 . 6 \%$ accuracy on the SemEval testing data when just training with the target task data and random initialization. In order to improve, we consider knowledge transfer from GRUs trained for the following source tasks to the SemEval target task data:
86
+
87
+ Distilling Logical Rules: Knowledge distillation can be performed using teacher models that are very different in structure than their neural network based student models. We demonstrate with this task that a compilation of logical linguistic rules can be used as an effective teacher for a GRU by having the GRU attempt to create the output of the rule engine generated over unlabeled in domain data. Specifically, our gazetteer based logical rule engine separates sentences and phrases in the text. It then applies dictionaries of positive and negative sentiment words and phrases to the corresponding text. For each positive or negative phrase found, it checks to see if negation or double negation are applied, and modifies the polarity of the sentiment accordingly. The result for any piece of text is a count of positive and negative sentiment occurrences. For this task, we simply count the total number of positive and negative indicators to give an overall positive, negative or neutral score. We provide addition details on how we mapped rules to soft targets for the student network to recreate in Appendix A. We utilized a GRU model with 50 hidden units and 50,000 unlabeled examples for our source task model. We distill off the soft labels as in (Hinton et al., 2015), but set our temperature fixed at 1.0. It is possible that our performance could have improved by tuning this parameter. Additional details about the selection of the network and data size are included in Appendix B. The logical rule model itself achieves $5 7 . 8 \%$ accuracy on the SemEval testing data and the rules distilled into a GRU as explained in section 4 achieves $5 8 . 9 \%$ accuracy before any integration with the SemEval target task data. We leverage this task for comparison of knowledge transfer techniques when the source task and target task share an output space as discussed in section 3.2.
88
+
89
+ Binary Movie Reviews: For knowledge transfer from related tasks as discussed in section 3.3 we first consider the Stanford Sentiment Treebank (Socher et al., 2013), which is a popular sentiment dataset based on the movie review domain. We consider one source task to be the binary (positive, and negative) sentence level sentiment subtask which contains 6,920 training examples, 872 validation examples, and 1,821 testing examples. Our GRU model with 40 hidden units achieves $8 5 . 5 \%$ accuracy on this task.
90
+
91
+ Five Class Movie Reviews: We also consider another source task leveraging the Stanford Sentiment Treebank data from the fine grained (very positive, positive, neutral, negative, and very negative) sentence level sentiment substask which contains 8,544 training examples, 1,101 validation examples, and 2,210 testing examples. We use a GRU model with 200 hidden units to accommodate for the increased task complexity and achieve $4 5 . 9 \%$ accuracy. This fine grained model can actually be assessed directly on the SemEval task by projecting from five classes to three classes, but it only achieves $4 4 . 2 \%$ accuracy with no tuning on the target task data. Our performance on these two movie review source tasks is quite similar to what was reported in (Tai et al., 2015) when using a similar setup, but with LSTMs for both subtasks.
92
+
93
+ Emoticon Heuristic: Finally, we consider a semi-supervised task based on emoticon prediction motivated by the successful work in (Go et al., 2009), leveraging it in the twitter sentiment domain and its use as a vital component of the SemEval competition winning system (Bethard et al., 2016). We find unlabelled tweets that contain smileys, frowns, or laughing emoticons. We remove emoticons from the tweet before prediction and compile a dataset of 250,000 training examples, 50,000 validation examples, and 100,000 testing examples for each of the three classes. This is multiple orders of magnitude smaller than the 90 million tweets used in (Bethard et al., 2016) to allow for quick experimentation. Our GRU model with 50 hidden units achieves $6 3 . 4 \%$ accuracy on the emoticon prediction test set.
94
+
95
+ We consider multiple sequential knowledge transfer algorithms for experimental comparison. Each uses only the source task data for learning the source task and only the target task data for integrating with the target task. This way integration is fast and simple, because it does not incorporate storage and replay of examples from the potentially very large source task as argued in (Li & Hoiem, 2016).
96
+
97
+ Fine-Tuning: The representation is simply initialized with the representation found after training on the source task and then trained as usual on the target task. This approach was pioneered in (Hinton & Salakhutdinov, 2006), in application to unsupervised source tasks and applied to transfer learning in (Bengio et al., 2012), and (Mesnil et al.). The learning rate is tuned by a grid search based on the validation set performance.
98
+
99
+ Progressive Networks: We also compare with our implementation of a progressive neural network (Rusu et al., 2016), where the representation learned for the source task is held fixed and integrated with a target task specific model via lateral connections trained using the target task data. The learning rate is also tuned based on a grid search using the validation set.
100
+
101
+ Learning without Forgetting (LwF): In the LwF paradigm, joint training is performed after parameter initialization. This is achieved by treating the target task data and the output generated by the source task model based on the target task input data as two jointly learned tasks as in (Caruana, 1997). As opposed to our proposed forgetting cost, the source task specific parameters are not held fixed while training on the target task data. The learning rate and mixing rate between the tasks are tuned by a grid search based on validation set performance. We first consider a version of the LwF model that leverages a random initialization of the target task specific parameters and initialization of all parameters learned on the source task with the learned values. We also consider another formulation that we call Greedy LwF. This is actually more closely aligned with the original paper (Li & Hoiem, 2016). All source task parameters are first held fixed, and the target task specific parameters are learned alone before joint training with all of the parameters unfrozen as a second step. For the case of source tasks with output in the space of the target task output, there are no source task specific parameters, so the forgetting cost can be viewed as a viable interpretation of the LwF paradigm appropriate in that setting.
102
+
103
+ Forgetting Cost: Finally, we compare each baseline model with our proposed forgetting cost described in section 3. The learning rate as well as $\alpha _ { f }$ from equations 1 and 3 were tuned by a grid search based on the validation set performance.
104
+
105
+ # 5.3 TARGET TASK RESULTS
106
+
107
+ We empirically evaluate the generalization performance of the forgetting cost for sequential knowledge transfer from four different source tasks in Table 1 and Table 2. The source task considered in Table 1 is distilling a logical rule model, leveraging the technique outlined in equation 1. In Table 2 we leverage the forgetting cost for related task knowledge transfer as outlined in equation 3.
108
+
109
+ Our experimental results on the SemEval data validate our intuition that the forgetting cost should lead to stronger regularization and better generalization performance. One thing to note about our progressive neural networks implementation is that it effectively has only one hidden layer, because we hold our embeddings fixed during model training and the same embeddings are shared among the models used for all of the tasks. It is possible that having multiple layers of lateral connections is important to achieving good performance. However, this setting was not applicable in our experiments. Our results for sequential knowledge transfer on the SemEval benchmark are quite encouraging as the forgetting cost outperforms baselines significantly in all cases.
110
+
111
+ We additionally have validated the intuition that equation 1 should perform stronger regularization than equation 3 when equation 1 is applicable. In fact, for our distilled logical rule model tuning experiments, we found that equation 1 performs $3 \%$ better on the test set. In an attempt to understand more about what caused this performance difference, we monitored testing set performance at each epoch and noticed that equation 3 is actually prone to overfitting away from a good solution on the test set. However, it often finds a pretty good one comparable to equation 1 early in training. When equation 1 could be applied, it seems to be a useful regularization to constrain both the hidden layer and the output layer to align with the model learned on the source task. In equation 3, the hidden to output transformation learned for the target task can in contrast learn to deviate from the transformation learned for the source task.
112
+
113
+ Table 1: Evaluation of target task tuning methodologies for a distilled rule model to the task of SemEval 2016 Task 4 Subtask A.
114
+
115
+ <table><tr><td rowspan=1 colspan=1>Model Description</td><td rowspan=1 colspan=1>Accuracyon SemEval Test Set</td></tr><tr><td rowspan=1 colspan=1>Forgetting Cost TransferFine-tuning TransferProgressive Networks Transfer</td><td rowspan=1 colspan=1>64.4%58.5%56.9%</td></tr><tr><td rowspan=1 colspan=1>Distilled Logical Rule ModelLogical Rule ModelGRU Trained on Only SemEval Data</td><td rowspan=1 colspan=1>58.9%57.8%53.6%</td></tr></table>
116
+
117
+ Table 2: Evaluation of knowledge transfer from three source tasks to the task of SemEval 2016 Task 4 Subtask A.
118
+
119
+ <table><tr><td rowspan=1 colspan=1>Source Task</td><td rowspan=1 colspan=1>Fine-Tuning</td><td rowspan=1 colspan=1>ProgressiveNetworks</td><td rowspan=1 colspan=1>LwF</td><td rowspan=1 colspan=1>GreedyLwF</td><td rowspan=1 colspan=1>Forgetting Cost</td></tr><tr><td rowspan=1 colspan=1>Binary Movie Reviews</td><td rowspan=1 colspan=1>57.3%</td><td rowspan=1 colspan=1>54.5%</td><td rowspan=1 colspan=1>58.1%</td><td rowspan=1 colspan=1>58.8%</td><td rowspan=1 colspan=1>59.7%</td></tr><tr><td rowspan=1 colspan=1>Five Class Movie Reviews</td><td rowspan=1 colspan=1>57.4%</td><td rowspan=1 colspan=1>54.6%</td><td rowspan=1 colspan=1>57.1%</td><td rowspan=1 colspan=1>56.6%</td><td rowspan=1 colspan=1>58.2%</td></tr><tr><td rowspan=1 colspan=1>Emoticon Heuristic</td><td rowspan=1 colspan=1>55.8%</td><td rowspan=1 colspan=1>53.2%</td><td rowspan=1 colspan=1>57.7%</td><td rowspan=1 colspan=1>56.7%</td><td rowspan=1 colspan=1>58.6%</td></tr></table>
120
+
121
+ # 5.4 SOURCE TASK PERFORMANCE AFTER TARGET TASK INTEGRATION
122
+
123
+ In Table 3 we explore the retention of empirical performance on the source task for knowledge transfer algorithms after integration with the target task is complete. Apparently in these cases, allowing relearning of the source task model during integration with the target task data is indeed destructive to source task performance. LwF outperforms Fine-Tuning significantly in knowledge retention for movie reviews, but interestingly does not for the emoticon heuristic. The effect of the greedy target task initialization strategy also appears inconsistent. It seems it is possible that this greedy initialization could improve our proposed forgetting cost paradigm in some cases as well. However, a rigorous analysis of the tradeoffs for this initialization approach is beyond the scope of this paper.
124
+
125
+ As the source task representation is literally stored fixed as part of the target task representation in progressive neural networks, it is not clear how to assess any effective forgetting of the source task during target task integration. As a result, we omit them from our source task forgetting experiments.
126
+
127
+ # 5.5 INSPECTION OF LEARNED REPRESENTATIONS
128
+
129
+ Now that we have established the empirical benefits of our proposed forgetting cost, we will demonstrate what it achieves qualitatively through examples. In Table 4 we include a sample of examples that are predicted correctly by transferring the knowledge source with the forgetting cost paradigm and not with fine-tuning based integration. The effect is, perhaps, easiest to understand for the rule based and movie review based transfer scenarios. For the rule based transfer setting you can literally map insights that are not forgotten to their respective logical rule in the model, as is the case in these examples. Moreover, we can see movie domain specific terminology such as ”May the force be with” is seemingly forgotten with standard fine-tuning, but not when the forgetting cost regularization is applied.
130
+
131
+ <table><tr><td rowspan=1 colspan=1>Source Task</td><td rowspan=1 colspan=1>Fine-Tuning</td><td rowspan=1 colspan=1>LwF</td><td rowspan=1 colspan=1>GreedyLwF</td><td rowspan=1 colspan=1>Forgetting Cost</td><td rowspan=1 colspan=1>Source Only</td></tr><tr><td rowspan=1 colspan=1>Binary Movie Reviews</td><td rowspan=1 colspan=1>80.7%</td><td rowspan=1 colspan=1>81.3%</td><td rowspan=1 colspan=1>81.5%</td><td rowspan=1 colspan=1>83.3%</td><td rowspan=1 colspan=1>85.5%</td></tr><tr><td rowspan=1 colspan=1>Five Class Movie Reviews</td><td rowspan=1 colspan=1>41.6%</td><td rowspan=1 colspan=1>42.8%</td><td rowspan=1 colspan=1>43.1%</td><td rowspan=1 colspan=1>43.3%</td><td rowspan=1 colspan=1>45.9%</td></tr><tr><td rowspan=1 colspan=1>Emoticon Heuristic</td><td rowspan=1 colspan=1>59.4%</td><td rowspan=1 colspan=1>59.1%</td><td rowspan=1 colspan=1>58.9%</td><td rowspan=1 colspan=1>60.3%</td><td rowspan=1 colspan=1>63.4%</td></tr></table>
132
+
133
+ Table 3: Evaluation of accuracy on the source task after integration with the target task data of SemEval 2016 Task 4 Subtask A. The accuracy after only source task training prior to integration with the target task is included for reference as a baseline.
134
+
135
+ Table 4: Some transfer learning examples from each knowledge source to SemEval 2016 where the GRU model successfully predicts sentiment when using the forgetting cost paradigm, but not with fine-tuning based integration.
136
+
137
+ <table><tr><td rowspan=1 colspan=1>Source</td><td rowspan=1 colspan=1>Tweet</td><td rowspan=1 colspan=1>Label</td><td rowspan=1 colspan=1>Fine-Tuning</td><td rowspan=1 colspan=1>Forgetting Cost</td></tr><tr><td rowspan=1 colspan=1>Logical Rules</td><td rowspan=1 colspan=1>JohnKasich should feel proud of hisperformance at the#GOPDebate Thursday night. He looked more presi-dential than the rest of the field.</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Positive</td></tr><tr><td rowspan=1 colspan=1>Logical Rules</td><td rowspan=1 colspan=1>@ BrunoMars I&#x27;m so tired of you dressing like you ain&#x27;tgot no money. You went from wearing Gucci loafers to6th grade boy Sketchers.</td><td rowspan=1 colspan=1>Negative</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Negative</td></tr><tr><td rowspan=1 colspan=1>Logical Rules</td><td rowspan=1 colspan=1>@DavidVonderhaar loving the beta Vahn, even playing it on PC with a PS4 controller without aim assist, can&#x27;twait for November 6</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Positive</td></tr><tr><td rowspan=1 colspan=1>Movie Reviews</td><td rowspan=1 colspan=1>Selena Gomez presented Amy Schumerwithanawardand a heap of praise at the Hollywood Film Awards onNovember 1.</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Negative</td><td rowspan=1 colspan=1>Positive</td></tr><tr><td rowspan=1 colspan=1>Movie Reviews</td><td rowspan=1 colspan=1>mailjet: It&#x27;s Fri...we mean Star Wars Day. May the forcebe with all of your emails! https://t.co/FbDdjiJVUT</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Positive</td></tr><tr><td rowspan=1 colspan=1>Movie Reviews</td><td rowspan=1 colspan=1>Straight Outta Compton&#x27;s success hopefully convincesNew Line Cinema to give Ice Cube the right budget forthe last Friday movie.</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Positive</td></tr><tr><td rowspan=1 colspan=1>Emoticons</td><td rowspan=1 colspan=1>That ball Kris Bryant just hit is the 2nd farthest ball I&#x27;veever seen hit. He is officially ridiculous.</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Positive</td></tr><tr><td rowspan=1 colspan=1>Emoticons</td><td rowspan=1 colspan=1>This fandom&#x27;s a mess omg,Iwouldn&#x27;t be surprise if to-morrow there&#x27;s a trend who says Niall&#x27;s going to marryhis cousin #WeKnowTheTruth</td><td rowspan=1 colspan=1>Negative</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Negative</td></tr><tr><td rowspan=1 colspan=1>Emoticons</td><td rowspan=1 colspan=1>Christians snapchat story makes me want to kill my-self.like Ifeel like a depressed 8th grader going throughthat emo phase</td><td rowspan=1 colspan=1>Negative</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Negative</td></tr></table>
138
+
139
+ Considering that we have shown a neural network can distill and improve a representation learned by a logical rule engine, how the final representation differs from the logic of the original engine is of practical interest. We thus compare the agreement of our fine-tuned rule based GRU with the original rule model on the SemEval testing set. We find that the transferred model achieves $78 . 7 \%$ agreement with the rule model when the rule model is right. This clearly indicates that our final model is not deterministic based on the rule engine, and has a probability of adding errors even when the original rule model works well. However, our model actually has $4 4 . 7 \%$ accuracy on the examples the rule model got wrong. Our approach yields significant gains in comparison to the original rule classifiers, improving from $5 7 . 8 \%$ to $6 4 . 4 \%$ test set accuracy before even incorporating in auxiliary knowledge sources.
140
+
141
+ # 6 INTEGRATING TRANSFER LEARNING FROM MULTIPLE TASKS WITH ENSEMBLE DISTILLATION
142
+
143
+ # 6.1 ENSEMBLE METHODOLOGY
144
+
145
+ In our experiments we tried to find a balance between an ensemble model that is powerful enough to have an adaptive weighted average decision function and not so powerful that it overfits on our limited training and validation data. Our model is quite similar in architecture to the gating network component of a hierarchical mixture of experts model (Jacobs et al., 1991), (Jordan & Jacobs, 1994). We tried our model over all four representations at once and found that it overfits. Our experiments showed it is more effective to adopt a greedy ensembling strategy where all models are combined with the best performing model on the validation set at each phase until only two models are left. Finally, these two models are combined with the same mechanism. (Riemer et al., 2016) suggests that a many element gating network can be improved with a sparsity constraint, but this did not work as well as the greedy strategy for our model and experiments.
146
+
147
+ More formally, for any two models $A$ and $B$ combined in an ensemble, we train the following mechanism using Stochastic Gradient Descent:
148
+
149
+ Table 5: Empirical three way sentiment classification results on the SemEval 2016 Task 4 Subtask A test set.
150
+
151
+ <table><tr><td rowspan=1 colspan=1>ModelDescription</td><td rowspan=1 colspan=1>AccuracyonSemEval TestSet</td></tr><tr><td rowspan=1 colspan=1>Distilled GRUTrained on Full EnsembleFull EnsembleEnsemble withLogical Rules and Both Movie Review TasksEnsemble with Logical Rules and Binary Movie ReviewsEnsemble with Logical Rules and Five Class Movie ReviewsEnsemble with Logical Rules and Emoticon PredictionEnsemble withBothMovie Review TasksGRU Trained on Only SemEval Data</td><td rowspan=1 colspan=1>66.0%65.9%65.7%65.4%65.1%65.0%62.1%53.6%</td></tr><tr><td rowspan=1 colspan=1>SwissCheese (Bethard etal.,2016)NTNUSentEval (Jahren et al.,2016)UniPI (Attardi &amp; Sartiano,2016)CUFE (Nabil et al.,2016)INSIGHT-1 (Ruder et al., 2016)</td><td rowspan=1 colspan=1>64.6%64.3%63.9%63.7%63.5%</td></tr></table>
152
+
153
+ $$
154
+ \begin{array} { r } { m _ { A } = \sigma ( W _ { A } \hat { y } _ { A } + b _ { A } ) } \\ { m _ { B } = \sigma ( W _ { B } \hat { y } _ { B } + b _ { B } ) } \end{array}
155
+ $$
156
+
157
+ $$
158
+ a _ { A } = { \frac { m _ { A } } { m _ { A } + m _ { B } } }
159
+ $$
160
+
161
+ $$
162
+ a _ { B } = { \frac { m _ { B } } { m _ { A } + m _ { B } } }
163
+ $$
164
+
165
+ $$
166
+ \hat { y } _ { e n s e m b l e } = a _ { A } \hat { y } _ { A } + a _ { B } \hat { y } _ { B }
167
+ $$
168
+
169
+ where $\hat { y } _ { e n s e m b l e }$ is the prediction vector of the combined ensemble. ${ \hat { y } } _ { A }$ and $\hat { y } _ { B }$ are the output vectors of the individual models.
170
+
171
+ # 6.2 ENSEMBLE RESULTS
172
+
173
+ Our ensemble model was trained on what was set aside as the validation data during the initial training with early stopping. In the first phase of combining, the model transferred from the logical rule source task was combined with each model. In the second phase, the model based on transfer from the binary movie review sentiment model was combined with each model. In the third phase, the two remaining models were combined. The results of our ensemble in Table 5 suggest that it is possible to further improve the performance of a single sequential transfer model by intelligently combining its predictions with models that have other perspectives. This is because they are modeled using different source tasks for prior knowledge. Impressively, our final distilled model surpasses results from all prior models on the SemEval 2016 benchmark using the same final architecture of a 50 hidden unit GRU model that is clearly not even competitive when trained simply on the task specific labeled data. The prior best model SwissCheese (Bethard et al., 2016) consists of random forests ensemble built utilizing multiple convolutional neural network models and distant supervision. In fact, we achieve superior results despite using over an order of magnitude less total data for training our model.
174
+
175
+ We would also like to underscore that our total improvement of $1 . 5 \%$ as a result of creating an ensemble with our best transferred model from the logical rule source task can be viewed as quite disappointing, despite achieving state of the art results. In fact, in the theoretical limit of having a decision model that switches to the best already learned model at each point, our four transferred representations would achieve $8 5 . 1 \%$ accuracy together. For the combination of the movie review based models and logical rule based model we can get to $8 1 . 4 \%$ accuracy. Moreover, we can get $7 6 . 5 \%$ accuracy with just the logical rule based transfer model and the emoticon prediction based transfer model. Unfortunately, we achieve nowhere near these theoretical results despite representations that are apparently quite diverse. This seems indicative that there are significant gains yet to be uncovered in integrating these representations.
176
+
177
+ # 7 CONCLUSION
178
+
179
+ We consider a new methodology called the forgetting cost for preventing the catastrophic forgetting problem of neural network sequential transfer learning. The forgetting cost is practical and easy to implement. We have demonstrated for the challenging task of Twitter sentiment analysis that it can uncover significant gains in generalization performance and that it seems to not forget knowledge traditionally forgotten from the source task during fine-tuning. Our strong empirical results still motivate multiple avenues with high potential for continued exploration in text analytics. Using logical rules to improve neural network models is a promising direction for humans to efficiently contribute to increased model performance. Additionally, the large diversity of representations learned from multiple classifiers with the same target task but different source tasks seems to indicate there is potential to see even much greater gains when integrating multiple sources of knowledge transfer.
180
+
181
+ # REFERENCES
182
+
183
+ Giuseppe Attardi and Daniele Sartiano. Unipi at semeval-2016 task 4: Convolutional neural networks for sen-timent classification. Proceedings of SemEval, pp. 220–224, 2016.
184
+
185
+ Jimmy Ba and Rich Caruana. Do deep nets really need to be deep? In Advances in neural information processing systems, pp. 2654–2662, 2014.
186
+
187
+ Yoshua Bengio, Patrice Simard, and Paolo Frasconi. Learning long-term dependencies with gradient descent is difficult. Neural Networks, IEEE Transactions on, 5(2):157–166, 1994.
188
+
189
+ Yoshua Bengio et al. Deep learning of representations for unsupervised and transfer learning. ICML Unsupervised and Transfer Learning, 27:17–36, 2012.
190
+
191
+ Steven Bethard, Daniel M. Cer, Marine Carpuat, David Jurgens, Preslav Nakov, and Torsten Zesch (eds.). Proceedings of the 10th International Workshop on Semantic Evaluation, SemEval@NAACL-HLT 2016, San Diego, CA, USA, June 16-17, 2016, 2016. The Association for Computer Linguistics. ISBN 978-1-941643-95-2. URL http://aclweb.org/ anthology/S/S16/.
192
+
193
+ Cristian Bucilu, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 535–541. ACM, 2006.
194
+
195
+ Rich Caruana. Multitask learning. Machine Learning, 28(1):41–75, 1997. doi: 10.1023/A: 1007379606734. URL http://dx.doi.org/10.1023/A:1007379606734.
196
+
197
+ Tianqi Chen, Ian Goodfellow, and Jonathon Shlens. Net2net: Accelerating learning via knowledge transfer. arXiv preprint arXiv:1511.05641, 2015.
198
+
199
+ Kyunghyun Cho, Bart van Merrienboer, Dzmitry Bahdanau, and Yoshua Bengio. On the properties ¨ of neural machine translation: Encoder-decoder approaches. arXiv preprint arXiv:1409.1259, 2014.
200
+
201
+ Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014.
202
+
203
+ Artur S d’Avila Garcez, Krysia Broda, and Dov M Gabbay. Neural-symbolic learning systems: foundations and applications, 2012.
204
+
205
+ Alec Go, Richa Bhayani, and Lei Huang. Twitter sentiment classification using distant supervision. 2009.
206
+
207
+ Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
208
+
209
+ Geoffrey E Hinton and Ruslan R Salakhutdinov. Reducing the dimensionality of data with neural networks. Science, 313(5786):504–507, 2006.
210
+
211
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
212
+
213
+ Zhiting Hu, Xuezhe Ma, Zhengzhong Liu, Eduard Hovy, and Eric Xing. Harnessing deep neural networks with logic rules. arXiv preprint arXiv:1603.06318, 2016.
214
+
215
+ Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. Adaptive mixtures of local experts. Neural computation, 3(1):79–87, 1991.
216
+
217
+ Brage Ekroll Jahren, Valerij Fredriksen, Bjorn Gamb ¨ ack, and Lars Bungum. Ntnusenteval at ¨ semeval-2016 task 4: Combining general classifiers for fast twitter sentiment analysis. Proceedings of SemEval, pp. 103–108, 2016.
218
+
219
+ Michael I Jordan and Robert A Jacobs. Hierarchical mixtures of experts and the em algorithm. Neural computation, 6(2):181–214, 1994.
220
+
221
+ Ankit Kumar, Ozan Irsoy, Jonathan Su, James Bradbury, Robert English, Brian Pierce, Peter Ondruska, Ishaan Gulrajani, and Richard Socher. Ask me anything: Dynamic memory networks for natural language processing. arXiv preprint arXiv:1506.07285, 2015.
222
+
223
+ Zhizhong Li and Derek Hoiem. Learning without forgetting. In European Conference on Computer Vision, pp. 614–629. Springer, 2016.
224
+
225
+ David Lopez-Paz, Leon Bottou, Bernhard Sch ´ olkopf, and Vladimir Vapnik. Unifying distillation ¨ and privileged information. stat, 1050:26, 2016.
226
+
227
+ Andrew L Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew $\mathrm { ~ Y ~ N ~ g ~ } _ { }$ , and Christopher Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies-Volume 1, pp. 142–150. Association for Computational Linguistics, 2011.
228
+
229
+ Gregoire Mesnil, Yann Dauphin, Xavier Glorot, Salah Rifai, Yoshua Bengio, Ian J Goodfellow, ´ Erick Lavoie, Xavier Muller, Guillaume Desjardins, David Warde-Farley, et al. Unsupervised and transfer learning challenge: a deep learning approach.
230
+
231
+ Gregoire Mesnil, Tomas Mikolov, Marc’Aurelio Ranzato, and Yoshua Bengio. Ensemble of gen- ´ erative and discriminative techniques for sentiment analysis of movie reviews. arXiv preprint arXiv:1412.5335, 2014.
232
+
233
+ Jacob MJ Murre. Learning and categorization in modular neural networks. 1992.
234
+
235
+ Mahmoud Nabil, Mohamed Aly, and Amir F Atiya. Cufe at semeval-2016 task 4: A gated recurrent model for sentiment classification. Proceedings of SemEval, pp. 52–57, 2016.
236
+
237
+ Preslav Nakov, Alan Ritter, Sara Rosenthal, Veselin Stoyanovand, and Fabrizio Sebastiani. Semeval2016 task 4: Sentiment analysis in twitter. In Proc. of the 10th International Workshop on Semantic Evaluation (SemEval), 2016.
238
+
239
+ Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In EMNLP, volume 14, pp. 1532–1543, 2014.
240
+
241
+ Matthew Riemer, Sophia Krasikov, and Harini Srinivasan. A deep learning and knowledge transfer based architecture for social media user characteristic determination. SocialNLP 2015 at NAACL, pp. 39, 2015.
242
+
243
+ Matthew Riemer, Aditya Vempaty, Flavio Calmon, Fenno Heath, Richard Hull, and Elham Khabiri. Correcting forecasts with multifactor neural attention. In Proceedings of The 33rd International Conference on Machine Learning, 2016.
244
+
245
+ Anthony Robins. Catastrophic forgetting, rehearsal and pseudorehearsal. Connection Science, 7(2): 123–146, 1995.
246
+
247
+ Anthony Robins. Consolidation in neural networks and in the sleeping brain. Connection Science, 8(2):259–276, 1996.
248
+
249
+ Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014.
250
+
251
+ Sebastian Ruder, Parsa Ghaffari, and John G Breslin. Insight-1 at semeval-2016 task 5: Deep learning for multilingual aspect-based sentiment analysis. arXiv preprint arXiv:1609.02748, 2016.
252
+
253
+ Andrei A Rusu, Sergio Gomez Colmenarejo, Caglar Gulcehre, Guillaume Desjardins, James Kirkpatrick, Razvan Pascanu, Volodymyr Mnih, Koray Kavukcuoglu, and Raia Hadsell. Policy distillation. arXiv preprint arXiv:1511.06295, 2015.
254
+
255
+ Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016.
256
+
257
+ Richard Socher, Alex Perelygin, Jean Y Wu, Jason Chuang, Christopher D Manning, Andrew $\mathrm { \Delta Y N g }$ , and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the conference on empirical methods in natural language processing (EMNLP), volume 1631, pp. 1642. Citeseer, 2013.
258
+
259
+ Kai Sheng Tai, Richard Socher, and Christopher D Manning. Improved semantic representations from tree-structured long short-term memory networks. arXiv preprint arXiv:1503.00075, 2015.
260
+
261
+ Theano Development Team. Theano: A Python framework for fast computation of mathematical expressions. arXiv e-prints, abs/1605.02688, May 2016. URL http://arxiv.org/abs/ 1605.02688.
262
+
263
+ Sebastian Thrun. Is learning the n-th thing any easier than learning the first? Advances in neural information processing systems, pp. 640–646, 1996.
264
+
265
+ Geoffrey G Towell, Jude W Shavlik, and Michiel O Noordewier. Refinement of approximate domain theories by knowledge-based neural networks. In In Proceedings of the Eighth National Conference on Artificial Intelligence. Citeseer, 1990.
266
+
267
+ # A MAPPING SENTIMENT RULES TO SOFT TARGETS
268
+
269
+ The gazetteer based logical rule engine separates sentences and phrases in the text. It then applies dictionaries of positive and negative sentiment words and phrases to the corresponding text. For each positive or negative phrase found, it checks to see if negation or double negation are applied, and modifies the polarity of the sentiment accordingly. The result for any piece of text is a count of positive and negative sentiment occurrences. For this task, we simply count the total number of positive and negative indicators to give an overall positive, negative or neutral score. To be concrete, we have a simple procedure for mapping positive and negative word counts to soft labels that could be used for distillation. If there are no positive or negative words, the output vector is a one hot vector corresponding to a neutral label. If there are an unequal number of positive and negative sentiment words, the neutral label is zero and the raw counts are sent to the softmax function to create a soft label over the positive and negative word occurrences. Finally, if there are an equal amount of positive and negative words, we consider the added total sentiment words plus one in the neutral label as well as the number of positive words and negative words before sending these totals through a softmax function.
270
+
271
+ # B SIZE SELECTION FOR THE RULE DISTILLATION TASK
272
+
273
+ In Table 6 we detail the performance of distilling a logical rule engine into a GRU based recurrent neural network by imposing soft labels over unlabeled tweets. The fact that we keep our word representations fixed with general purpose unsupervised data makes it difficult for the GRU to distill the entire model without a large number of examples. Additionally, as there were a large number of examples in our distillation experiments, we did not experience high run to run variation and only trained a single GRU model for each distillation experiment (as opposed to picking the best validation error of 10 parallel training routines as in our transfer experiments). Our distilled GRU is better on the testing set than the original classifier, likely because this input representation prevents the model from overfitting to the idiosyncrasies of the rule engine. This actually underscores an important point for the distillation of abstract knowledge. If the target task is known during distillation, it may be beneficial to stop short of totally distilling the original knowledge as it may hurt down stream performance past a certain point. We impose a simple policy where the best hidden unit and training example combination is selected based on performance on the training data of the target task. As a result, we use the model with 50 hidden units based on 50,000 training examples in our experiments integrating with other knowledge. This model is a pretty good one to choose, and achieves high transfer performance relative to models that overfit on the teacher network.
274
+
275
+ Table 6: Logical rule engine distillation performance and SemEval 2016 Task 4 Subtask A accuracy as a function of the number of hidden units in the GRU and the number of training examples. The 50 hidden unit and 50,000 training example model performs the best on the SemEval training set.
276
+
277
+ <table><tr><td>Hidden Units</td><td>Examples</td><td>Alignmentwith Teacher</td><td>AccuracyonSemEval TestSet</td></tr><tr><td>25</td><td>50,000</td><td>88.3%</td><td>59.1%</td></tr><tr><td>25</td><td>300,000</td><td>91.9%</td><td>58.6%</td></tr><tr><td>50</td><td>50,000</td><td>88.6%</td><td>58.9%</td></tr><tr><td>50</td><td>300,000</td><td>93.0%</td><td>58.5%</td></tr><tr><td>75</td><td>50,000</td><td>88.7%</td><td>58.9%</td></tr><tr><td>75 100</td><td>300,000 50,000</td><td>93.6%</td><td>58.3%</td></tr><tr><td>100</td><td>300,000</td><td>88.6%</td><td>58.7%</td></tr><tr><td>125</td><td>50,000</td><td>93.8%</td><td>58.1%</td></tr><tr><td>125</td><td>300,000</td><td>88.5%</td><td>58.7%</td></tr><tr><td>150</td><td>50,000</td><td>93.7%</td><td>58.3%</td></tr><tr><td>150</td><td>300,000</td><td>88.5% 94.0%</td><td>59.0% 58.5%</td></tr></table>
parse/train/HyenWc5gx/HyenWc5gx_content_list.json ADDED
@@ -0,0 +1,1499 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "REPRESENTATION STABILITY AS A REGULARIZER FOR IMPROVED TEXT ANALYTICS TRANSFER LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 820,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Matthew Riemer, Elham Khabiri, and Richard Goodwin ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 578,
21
+ 184
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "IBM T.J. Watson Research Center Yorktown Heights, NY, USA {mdriemer, ekhabiri, rgoodwin}@us.ibm.com ",
28
+ "bbox": [
29
+ 184,
30
+ 185,
31
+ 488,
32
+ 226
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": "Although neural networks are well suited for sequential transfer learning tasks, the catastrophic forgetting problem hinders proper integration of prior knowledge. In this work, we propose a solution to this problem by using a multi-task objective based on the idea of distillation and a mechanism that directly penalizes forgetting at the shared representation layer during the knowledge integration phase of training. We demonstrate our approach on a Twitter domain sentiment analysis task with sequential knowledge transfer from four related tasks. We show that our technique outperforms networks fine-tuned to the target task. Additionally, we show both through empirical evidence and examples that it does not forget useful knowledge from the source task that is forgotten during standard fine-tuning. Surprisingly, we find that first distilling a human made rule based sentiment engine into a recurrent neural network and then integrating the knowledge with the target task data leads to a substantial gain in generalization performance. Our experiments demonstrate the power of multi-source transfer techniques in practical text analytics problems when paired with distillation. In particular, for the SemEval 2016 Task 4 Subtask A (Nakov et al., 2016) dataset we surpass the state of the art established during the competition with a comparatively simple model architecture that is not even competitive when trained on only the labeled task specific data. ",
51
+ "bbox": [
52
+ 233,
53
+ 297,
54
+ 764,
55
+ 560
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "1 INTRODUCTION ",
62
+ "text_level": 1,
63
+ "bbox": [
64
+ 176,
65
+ 597,
66
+ 336,
67
+ 613
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Sequential transfer learning methodologies leverage knowledge representations from a source task in order to improve performance for a target task. A significant challenge faced when transferring neural network representations across tasks is that of catastrophic forgetting (or catastrophic interference). This is where a neural network experiences the elimination of important old information when learning new information. The very popular strategy of fine-tuning a neural network involves first training a neural network on a source task and then using the model to simply initialize the weights of a target task network up to the highest allowable common representation layer. However it is highly susceptible to catastrophic forgetting, because in training for the target task it has no explicit incentive to retain what it learned from the source task. While one can argue that forgetting the source task should not matter if only the target task is of interest, our paper adds to the recent empirical evidence across problem domains (Li & Hoiem, 2016),(Rusu et al., 2016) that show additional network stability can lead to empirical benefits over the fine-tuning algorithm. It seems as though for many Deep Learning problems we can benefit from an algorithm that promotes more stability to tackle the well known stability-plasticity dilemma. One popular approach for addressing this problem is rehearsals (Murre, 1992), (Robins, 1995). Rehearsals refers to a neural network training strategy where old examples are relearned as new examples are learned. In the transfer setting it can be seen as related to multi-task learning (Caruana, 1997) where two tasks are trained at the same time, rather than sequentially, while sharing a common input encoder to a shared hidden representation. However, in rehearsals the representation is biased in favor of the source task representation through initialization. This technique is very sensible because while fine-tuning is susceptible to catastrophic forgetting, multi-task learning is not (Caruana, 1997). ",
74
+ "bbox": [
75
+ 174,
76
+ 632,
77
+ 825,
78
+ 924
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "One of the biggest issues with the standard rehearsals paradigm is that it requires a cached memory of training examples that have been seen in the past. This can be a massive requirement as the number of source tasks and training data sizes scale. One compelling technique for addressing this problem is the concept of pseudorehearsals (Robins, 1995), (Robins, 1996), where relearning is performed on an artificially constructed population of pseudoitems instead of the actual old examples. Unfortunately, current automatic techniques in the text analytics domain have not yet mastered producing linguistically plausible data. As such, the pseudorehearsals paradigm is likely to waste computational time that could be spent on learning realistic patterns that may occur during testing. In our work, we extend the Learning without Forgetting (LwF) paradigm of (Li & Hoiem, 2016) to the text analytics domain using Recurrent Neural Networks. In this approach, the target task data is used both for learning the target task and for rehearsing information learned from the source task by leveraging synthetic examples generated for the target task input by the model that only experienced training on the source task data. As argued by Li & Hoiem (2016), this setup strikes an important balance between classification performance, computational efficiency, and simplicity in deployment. ",
85
+ "bbox": [
86
+ 174,
87
+ 103,
88
+ 823,
89
+ 297
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Regardless of whether they are applied to real source task examples, real target task examples, or synthetic examples, paradigms in the style of rehearsals all address the shortcomings of neural network forgetting by casting target task integration as a multi-task learning problem. However, this is not quite the purpose of the multi-task learning architecture, which was designed for joint learning of tasks from scratch at the same time. The key disconnect is that in multi-task learning, the transformation from the shared hidden layer to the outputs for each task are all learned and updated with the changing hidden representation. This would imply that, in the framework of rehearsals, it is possible for there to be significant changes during learning of the network’s representation, and thus its abilities on the source task itself. While it would be desirable to claim we were allowing our source task network to become even better based on the target task than it was before, this motivation seems idealistic in practice. One reason this is idealistic is because multi-task learning generally only works well when tasks are sampled at different rates or alternatively given different priority in the neural network loss function (Caruana, 1997). As a result, it is most likely that auxilirary source tasks will receive less priority from the network for optimization than the target task. Additionally, we observe in our experiments, and it has been observed by others in (Rusu et al., 2015), that it is generally not possible to distill multiple complex tasks into a student network at full teacher performance for all tasks. This seems to imply the degradation of the source task performance during training is somewhat inevitable in a multi-task learning paradigm. ",
96
+ "bbox": [
97
+ 174,
98
+ 306,
99
+ 825,
100
+ 554
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "We address this issue with our proposed forgetting cost technique. We demonstrate that it, in fact, can be valuable to keep the hidden to output transformation of the source tasks fixed during knowledge integration with the target task. This way, we impose a stronger regularization on the hidden representation during target task integration by not allowing it to change aspects that were important to the source task’s performance without direct penalization in the neural network’s loss function. We demonstrate empirically both that freezing the source task specific weights leads to less deterioration in the accuracy on the source task after integration, and that it achieves better generalization performance in our setting. The forgetting cost is practical and easy to implement in training any kind of neural network. In our experiments, we explore application of the forgetting cost in a recurrent neural network to the three way Twitter sentiment analysis task of SemEval 2016 Task 4 Subtask A and find it to achieve consistently superior performance to reasonable baseline transfer learning approaches in four examples of knowledge transfer for this task. ",
107
+ "bbox": [
108
+ 174,
109
+ 561,
110
+ 825,
111
+ 728
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "We also demonstrate how powerful distillation can be in the domain of text analytics when paired with the idea of the forgetting cost. Significantly, we show that a high quality gazetteer based logical rule engine can be distilled using unlabeled data into a neural network and used to significantly improve performance of the neural network on the target task. This is achieved with a novel extension of the LwF paradigm by Li & Hoiem (2016) to the scenario of a source task with the same output space as the target task. This can be a very promising direction for improving the ability of humans to directly convey knowledge to deep learning algorithms. Indeed, a human defined rule can contain far more information than a single training example, as that rule can be projected on to many unlabeled examples that the neural network can learn from. This is the reason human teachers generally begin teaching human students tasks by going over core rules at the onset of learning. Moreover, we showcase that multiple expert networks trained on the target task with prior knowledge from different source tasks can be effectively combined in an ensemble and then distilled into a single GRU model (Cho et al., 2014), (Chung et al., 2014). Leveraging this combination of distillation and knowledge transfer techniques allows us to achieve state of the art accuracy on the SemEval task with a model that performs $11 \\%$ worse than the best prior techniques when trained only on the labeled data. ",
118
+ "bbox": [
119
+ 174,
120
+ 734,
121
+ 825,
122
+ 916
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "",
129
+ "bbox": [
130
+ 174,
131
+ 103,
132
+ 823,
133
+ 146
134
+ ],
135
+ "page_idx": 2
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 RELATED WORK ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 169,
144
+ 344,
145
+ 185
146
+ ],
147
+ "page_idx": 2
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Since the work of (Bucilu et al., 2006) and (Hinton et al., 2015) showed that an ensemble of neural network classifier can be distilled into a single model, knowledge distillation from a teacher network to a student network has become a growing topic of neural network research. In (Ba & Caruana, 2014) it was shown that a deep teacher neural network can be learned by a shallow student network. This idea was extended in (Romero et al., 2014), where it was demonstrated that a deep and narrow neural network can learn a representation that surpasses its teacher. The use of distillation as a means of sharing biases from multiple tasks was explored in (Lopez-Paz et al., 2016), where the teacher network is trained with the output of the other tasks as input. It is not obvious how to extend a recurrent neural network to best use this kind of capability over a sequence. The idea of distilling from multiple source task teachers into a student network was highlighted in the reinforcement learning setting in (Rusu et al., 2015). Additionally, the concept of using distillation for knowledge transfer was also explored in (Chen et al., 2015), where function preserving transformations from smaller to bigger neural network architectures were outlined. This technique could also provide value in some instances for our approach where wider or deeper neural networks are needed for the task being transferred to than was needed for the original task. Distillation over target task data was first proposed as a means of elevating catastrophic forgetting in sequential knowledge transfer as applied to image classification in (Li & Hoiem, 2016). We extend this approach for its first application to our knowledge for text analytics problems, with a recurrent neural network architecture, and in the setting where the source task and target task have the same output. The chief distinction of our proposed forgetting cost is that source task specific parameters are held fixed during integration with the target task as opposed to the joint training of all parameters used by Li & Hoiem (2016). Our experiments empirically support the intuition that freezing these parameters leads to greater retention of source task performance after target task integration and better generalization to the target task. ",
152
+ "bbox": [
153
+ 174,
154
+ 202,
155
+ 825,
156
+ 521
157
+ ],
158
+ "page_idx": 2
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "An ensemble over multiple diverse models trained for the same sentiment analysis task was also considered in (Mesnil et al., 2014) for the IMDB binary movie reviews sentiment dataset (Maas et al., 2011). We tried this ensemble model in our work and found that it gave very limited improvement. Our ensemble technique learns a more powerful weighted average based on the soft targets of each task and a multi-step greedy binary fusion approach that works better for the Twitter sentiment analysis task in our experiments. Knowledge transfer from multiple tasks was considered to estimate the age of Twitter users based on the content of their tweets in (Riemer et al., 2015). We experimented with the hidden layer sharing approach outlined in that work and found that even when using just a single softmax combining layer, it would overfit on our limited training and validation data. Progressive neural networks (Rusu et al., 2016) is a recently proposed method very similar in motivation to our forgetting cost as it is directly trying to solve the catastrophic forgetting problem. The idea is that learned weight matrices relate the fixed representations learned on the source task to the construction of representations for the target task. In our experiments, the progressive neural networks approach consistently fails to even match the results achieved with fine-tuning. We hypothesize that although using fixed representations to aid learning addresses catastrophic forgetting, it suffers from the curse of dimensionality. As such, when training data is relatively small given the complexity of the task, it is prone to overfitting as it effectively increases the input dimension size through shared fixed representations. ",
163
+ "bbox": [
164
+ 174,
165
+ 529,
166
+ 825,
167
+ 777
168
+ ],
169
+ "page_idx": 2
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "The combination of logic rules and neural networks has been explored in a variety of different architectures and settings. These neural-symbolic systems (Garcez et al., 2012) include early examples such as KBANN (Towell et al., 1990) that construct network architectures from given rules to perform reasoning. (Hu et al., 2016) very recently also looked at the problem of distilling logical rules into a neural network text analytics classifier. However, our approach is much more generic as it can be applied to integrate knowledge from any kind of pre-made classifier and treats the rule engine as a black box. In (Hu et al., 2016) they consider the individual rules and leverage an iterative convex optimization algorithm alongside the neural network to regularize the subspace of the network. In our work we demonstrate that, by guarding against catastrophic forgetting, it is possible to efficiently leverage rules for transfer by utilizing a generic sequential knowledge transfer framework. We do not need to make any modification to the architecture of the neural network during testing and do not need iterative convex optimization during training. ",
174
+ "bbox": [
175
+ 174,
176
+ 785,
177
+ 825,
178
+ 924
179
+ ],
180
+ "page_idx": 2
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "",
185
+ "bbox": [
186
+ 173,
187
+ 103,
188
+ 823,
189
+ 132
190
+ ],
191
+ "page_idx": 3
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "3 FORGETTING COST REGULARIZATION ",
196
+ "text_level": 1,
197
+ "bbox": [
198
+ 176,
199
+ 151,
200
+ 524,
201
+ 167
202
+ ],
203
+ "page_idx": 3
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "3.1 SEQUENTIAL KNOWLEDGE TRANSFER PROBLEM STATEMENT ",
208
+ "text_level": 1,
209
+ "bbox": [
210
+ 176,
211
+ 183,
212
+ 642,
213
+ 198
214
+ ],
215
+ "page_idx": 3
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "In the sequential knowledge transfer problem setting explored in this paper, training is first conducted solely on the source task examples $S$ , including $K _ { S }$ training examples $( x _ { S i } , y _ { S i } ) \\in S$ where $x _ { S i }$ is the input representation and $y _ { S i }$ is the output representation. After training is complete on $S$ , we would like to now use prior knowledge obtained in the model trained on $S$ to improve generalization on a new target task with examples $T$ , which includes $K _ { T }$ training examples $( x _ { T i } , y _ { T i } ) \\in T$ . Here we assume that the input representations $x _ { S i }$ and $x _ { T i }$ are semantically aligned in the same representation space. As such, if there is useful knowledge in $S$ that applies in some direct or indirect way to the target task that is not present in $T$ , we would expect a good knowledge integration approach to generalize better to the target task than it is possible to using the training data in $T$ alone. Strong performance for the sequential knowledge transfer problem is a first step towards the greater goal of a mechanism for effective lifelong learning (Thrun, 1996). ",
220
+ "bbox": [
221
+ 173,
222
+ 209,
223
+ 825,
224
+ 362
225
+ ],
226
+ "page_idx": 3
227
+ },
228
+ {
229
+ "type": "text",
230
+ "text": "3.2 FORGETTING COST FOR TUNING A TARGET TASK MODEL ",
231
+ "text_level": 1,
232
+ "bbox": [
233
+ 173,
234
+ 378,
235
+ 616,
236
+ 393
237
+ ],
238
+ "page_idx": 3
239
+ },
240
+ {
241
+ "type": "text",
242
+ "text": "The most straightforward application of our proposed forgetting cost paradigm is for the case of integrating a neural network that has been trained on source task data $S$ , which has outputs in the same representation space as the outputs for the target task data $T$ . In this case, the forgetting cost amounts to the addition of a regularization term in the objective function during the integration phase when we train using $T$ . This promotes the neural network to be able to recreate the soft labels of the initialized model found after training on $S$ before integration is started with $T$ . More formally: ",
243
+ "bbox": [
244
+ 174,
245
+ 405,
246
+ 825,
247
+ 489
248
+ ],
249
+ "page_idx": 3
250
+ },
251
+ {
252
+ "type": "equation",
253
+ "img_path": "images/7beef0ca5e9adef191b85cddf73a7ffefe0eddde060e382ae693f0836a9f00a2.jpg",
254
+ "text": "$$\nL o s s = L ( y , \\hat { y } ) + \\alpha _ { f } L ( y _ { i n i t } , \\hat { y } )\n$$",
255
+ "text_format": "latex",
256
+ "bbox": [
257
+ 390,
258
+ 508,
259
+ 607,
260
+ 525
261
+ ],
262
+ "page_idx": 3
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "where $L$ is some loss function (we use mean squared error in our experiments) and $y _ { i n i t }$ is the soft label generated for the target task input $x _ { T i }$ based on the model after training just on $S$ . The model trained just on $S$ is also used to initialize the weights of the target task model before integration with $T$ as we do in the standard fine-tuning paradigm. $\\alpha _ { f }$ is a hyperparameter that can be utilized to control the extent of allowed forgetting. Of course, a very similar way to express this idea would be to mix synthetic training examples $T ^ { \\prime }$ with the same input as $T$ and output generated by the model trained just on $S$ with the true target task training examples $T$ . In this case, the mixing rate of the teacher generated training examples is analogous to our forgetting parameter $\\alpha _ { f }$ determining the prioritization. These techniques perform quite similarly in our experiments, but we actually find that the formulation in equations 1 and 3 perform slightly better on the test set. For example, this formulation is superior by $0 . 4 \\%$ accuracy in tuning a distilled representation of a logical rule engine. We conjecture that learning tasks in the same gradient step when they are related to the same input data results in slightly less noisy gradients. ",
267
+ "bbox": [
268
+ 173,
269
+ 527,
270
+ 825,
271
+ 708
272
+ ],
273
+ "page_idx": 3
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "3.3 FORGETTING COST FOR KNOWLEDGE TRANSFER FROM A RELATED TASK ",
278
+ "text_level": 1,
279
+ "bbox": [
280
+ 176,
281
+ 724,
282
+ 725,
283
+ 739
284
+ ],
285
+ "page_idx": 3
286
+ },
287
+ {
288
+ "type": "text",
289
+ "text": "The assumption in section 3.2 that the output of the source task data $S$ should be in the same representation space as the output for the target task data $T$ is quite a big one. It rules out the vast majority of knowledge sources that we can potentially leverage. As such, we propose an extension that does not make this restriction for application in sequential knowledge transfer of tasks that are not directly semantically aligned. We update our model to include another predicted output separate from $\\hat { y }$ : ",
290
+ "bbox": [
291
+ 174,
292
+ 751,
293
+ 825,
294
+ 835
295
+ ],
296
+ "page_idx": 3
297
+ },
298
+ {
299
+ "type": "equation",
300
+ "img_path": "images/7fd5f66c7c56b98cf5d68d7404964bb820efd2d16f894b099637b0e546041fc7.jpg",
301
+ "text": "$$\n\\hat { y } _ { i n i t } = f _ { i n i t } ( W _ { f i x e d } h _ { s h a r e d } + b _ { f i x e d } )\n$$",
302
+ "text_format": "latex",
303
+ "bbox": [
304
+ 369,
305
+ 854,
306
+ 629,
307
+ 872
308
+ ],
309
+ "page_idx": 3
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "where ${ \\hat { y } } _ { i n i t }$ is a predicted output attempting to recreate the soft labels of the original model trained just on $S$ . $f _ { i n i t }$ is the non-linearity used in the final layer of the source task model. Weight matrix $W _ { f i x e d }$ and bias $b _ { f i x e d }$ are taken from the final layer of the source task model and are not updated ",
314
+ "bbox": [
315
+ 176,
316
+ 882,
317
+ 823,
318
+ 924
319
+ ],
320
+ "page_idx": 3
321
+ },
322
+ {
323
+ "type": "text",
324
+ "text": "during integration with the target task data $T$ . As a result, the loss function is updated from section 3.2: ",
325
+ "bbox": [
326
+ 171,
327
+ 103,
328
+ 823,
329
+ 132
330
+ ],
331
+ "page_idx": 4
332
+ },
333
+ {
334
+ "type": "equation",
335
+ "img_path": "images/0ecf3abc5ea9623f27b11510d00187e5b3ac326ed68c19077c84a52e34dc95ea.jpg",
336
+ "text": "$$\nL o s s = L ( y , \\hat { y } ) + \\alpha _ { f } L ( y _ { i n i t } , \\hat { y } _ { i n i t } )\n$$",
337
+ "text_format": "latex",
338
+ "bbox": [
339
+ 379,
340
+ 151,
341
+ 619,
342
+ 170
343
+ ],
344
+ "page_idx": 4
345
+ },
346
+ {
347
+ "type": "text",
348
+ "text": "where the hidden state is shared between both terms in the objective function. Up to the shared hidden layer, we initialize the model for the target task with the weights learned just using $S$ . Random matrices and bias vectors are now used to initialize the prediction of $\\hat { y }$ based on the shared hidden representation. This can be seen as a weak form of restricting the model parameters that can be useful for regularization. The hidden representation is in effect constrained so that it is promoted not to change in key areas that have a large effect on the output vector of the source task model. On the other hand, there is little regularization for parameters that have little effect on the output vector for the source task model. ",
349
+ "bbox": [
350
+ 173,
351
+ 172,
352
+ 825,
353
+ 284
354
+ ],
355
+ "page_idx": 4
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "4 RECURRENT NEURAL NETWORK MODEL",
360
+ "text_level": 1,
361
+ "bbox": [
362
+ 174,
363
+ 304,
364
+ 547,
365
+ 320
366
+ ],
367
+ "page_idx": 4
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "In recent years, recurrent neural network models have become a tool of choice for many NLP tasks. In particular, the LSTM variant (Hochreiter & Schmidhuber, 1997) has become popular as it alleviates the vanishing gradients problem (Bengio et al., 1994) known to stop recurrent neural networks from learning long term dependencies over the input sequence. In our experiments we use the simpler GRU network (Cho et al., 2014), (Chung et al., 2014) that generally achieves the same accuracy despite a less complex architecture. Each time step $t$ is associated with an input $x _ { t }$ and a hidden state $h _ { t }$ . The mechanics of the GRU are defined with the following equations: ",
372
+ "bbox": [
373
+ 173,
374
+ 335,
375
+ 825,
376
+ 434
377
+ ],
378
+ "page_idx": 4
379
+ },
380
+ {
381
+ "type": "equation",
382
+ "img_path": "images/057bdc63d96f21f19301a8972e10b8d535f5124f1fbd0f925f80b0927282244f.jpg",
383
+ "text": "$$\n\\begin{array} { r } { \\begin{array} { r l } & { z _ { t } = \\sigma \\big ( W _ { x z } x _ { t } + W _ { h z } h _ { t - 1 } \\big ) } \\\\ & { r _ { t } = \\sigma \\big ( W _ { x r } x _ { t } + W _ { h r } h _ { t - 1 } \\big ) } \\\\ & { { \\tilde { h } } _ { t } = t a n h \\big ( W _ { x h } x _ { t } + r _ { t } \\circ W _ { h h } h _ { t - 1 } \\big ) } \\\\ & { ~ h _ { t } = z _ { t } \\circ h _ { t - 1 } + ( 1 - z _ { t } ) \\circ { \\tilde { h } } _ { t } } \\end{array} } \\end{array}\n$$",
384
+ "text_format": "latex",
385
+ "bbox": [
386
+ 375,
387
+ 452,
388
+ 620,
389
+ 536
390
+ ],
391
+ "page_idx": 4
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "where $\\circ$ denotes an element-wise product. $W _ { x z } , W _ { x r }$ , and $W _ { x h }$ represent learned matrices that project from the input size to the hidden size. $W _ { h z }$ , $W _ { h r }$ , and $W _ { h h }$ represent learned matrices that project from the hidden size to the hidden size. In our work we evaluate the GRU in the categorical prediction setting. For each document, the hidden state after the last word $h _ { L }$ is used for the prediction $\\hat { y }$ of the label $y$ . As such, we treat $h _ { L }$ as the shared hidden representation $h _ { s h a r e d }$ from section 3.3 for our experiments. ",
396
+ "bbox": [
397
+ 173,
398
+ 545,
399
+ 825,
400
+ 630
401
+ ],
402
+ "page_idx": 4
403
+ },
404
+ {
405
+ "type": "equation",
406
+ "img_path": "images/c5fe8b91623ad92ec63d92d1fc8e294e909254fb466f294f09c73ebead8858a5.jpg",
407
+ "text": "$$\n\\hat { y } = f ( W _ { y h } h _ { L } + b _ { y } )\n$$",
408
+ "text_format": "latex",
409
+ "bbox": [
410
+ 428,
411
+ 650,
412
+ 570,
413
+ 667
414
+ ],
415
+ "page_idx": 4
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "The prediction goes through one other non-linear function $f$ after the final hidden state is derived. In our experiments we use the softmax function, but others are useful in different settings. A model that builds on top of GRUs with an external memory storage paradigm (Kumar et al., 2015) currently holds the state of the art on movie review sentiment analysis. However, we focus just on the straightforward single layer GRU model in our experiments so that we can more easily disentangle factors of influence on performance. Our GRU model was fed a sequence of fixed 300 dimensional Glove vectors (Pennington et al., 2014), representing words based on analysis of 840 billion words from a common crawl of the internet, as the input $x _ { t }$ for all tasks. It has been shown in a number of papers that tuning the word embeddings during training could increase performance, and it is possible our approach could have performed better had we done so. ",
420
+ "bbox": [
421
+ 173,
422
+ 676,
423
+ 825,
424
+ 816
425
+ ],
426
+ "page_idx": 4
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "5 SEQUENTIAL KNOWLEDGE TRANSFER EXPERIMENTS ",
431
+ "text_level": 1,
432
+ "bbox": [
433
+ 174,
434
+ 837,
435
+ 650,
436
+ 854
437
+ ],
438
+ "page_idx": 4
439
+ },
440
+ {
441
+ "type": "text",
442
+ "text": "5.1 EXPERIMENT DETAILS ",
443
+ "text_level": 1,
444
+ "bbox": [
445
+ 176,
446
+ 869,
447
+ 372,
448
+ 883
449
+ ],
450
+ "page_idx": 4
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "Our neural network models were implemented in Theano (Theano Development Team, 2016) and trained with Stochastic Gradient Descent. As we did not use an advanced optimization method and noticed run to run variation in performance, for all of our transfer learning models we trained 10 parallel versions and chose the one with the highest validation accuracy. The SemEval 2016 Task 4 Subtask A training set consists of 10,000 total training examples, but we were only able to receive 8,906 because of tweet removals when we used the downloading script. For the target task data across our experiments, 7,600 examples of the SemEval training set examples were used for training and the rest for validation. The GRU model achieves only $5 3 . 6 \\%$ accuracy on the SemEval testing data when just training with the target task data and random initialization. In order to improve, we consider knowledge transfer from GRUs trained for the following source tasks to the SemEval target task data: ",
455
+ "bbox": [
456
+ 174,
457
+ 895,
458
+ 823,
459
+ 924
460
+ ],
461
+ "page_idx": 4
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "",
466
+ "bbox": [
467
+ 174,
468
+ 103,
469
+ 825,
470
+ 228
471
+ ],
472
+ "page_idx": 5
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "Distilling Logical Rules: Knowledge distillation can be performed using teacher models that are very different in structure than their neural network based student models. We demonstrate with this task that a compilation of logical linguistic rules can be used as an effective teacher for a GRU by having the GRU attempt to create the output of the rule engine generated over unlabeled in domain data. Specifically, our gazetteer based logical rule engine separates sentences and phrases in the text. It then applies dictionaries of positive and negative sentiment words and phrases to the corresponding text. For each positive or negative phrase found, it checks to see if negation or double negation are applied, and modifies the polarity of the sentiment accordingly. The result for any piece of text is a count of positive and negative sentiment occurrences. For this task, we simply count the total number of positive and negative indicators to give an overall positive, negative or neutral score. We provide addition details on how we mapped rules to soft targets for the student network to recreate in Appendix A. We utilized a GRU model with 50 hidden units and 50,000 unlabeled examples for our source task model. We distill off the soft labels as in (Hinton et al., 2015), but set our temperature fixed at 1.0. It is possible that our performance could have improved by tuning this parameter. Additional details about the selection of the network and data size are included in Appendix B. The logical rule model itself achieves $5 7 . 8 \\%$ accuracy on the SemEval testing data and the rules distilled into a GRU as explained in section 4 achieves $5 8 . 9 \\%$ accuracy before any integration with the SemEval target task data. We leverage this task for comparison of knowledge transfer techniques when the source task and target task share an output space as discussed in section 3.2. ",
477
+ "bbox": [
478
+ 173,
479
+ 234,
480
+ 825,
481
+ 500
482
+ ],
483
+ "page_idx": 5
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "Binary Movie Reviews: For knowledge transfer from related tasks as discussed in section 3.3 we first consider the Stanford Sentiment Treebank (Socher et al., 2013), which is a popular sentiment dataset based on the movie review domain. We consider one source task to be the binary (positive, and negative) sentence level sentiment subtask which contains 6,920 training examples, 872 validation examples, and 1,821 testing examples. Our GRU model with 40 hidden units achieves $8 5 . 5 \\%$ accuracy on this task. ",
488
+ "bbox": [
489
+ 174,
490
+ 506,
491
+ 823,
492
+ 589
493
+ ],
494
+ "page_idx": 5
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "Five Class Movie Reviews: We also consider another source task leveraging the Stanford Sentiment Treebank data from the fine grained (very positive, positive, neutral, negative, and very negative) sentence level sentiment substask which contains 8,544 training examples, 1,101 validation examples, and 2,210 testing examples. We use a GRU model with 200 hidden units to accommodate for the increased task complexity and achieve $4 5 . 9 \\%$ accuracy. This fine grained model can actually be assessed directly on the SemEval task by projecting from five classes to three classes, but it only achieves $4 4 . 2 \\%$ accuracy with no tuning on the target task data. Our performance on these two movie review source tasks is quite similar to what was reported in (Tai et al., 2015) when using a similar setup, but with LSTMs for both subtasks. ",
499
+ "bbox": [
500
+ 174,
501
+ 597,
502
+ 825,
503
+ 722
504
+ ],
505
+ "page_idx": 5
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "Emoticon Heuristic: Finally, we consider a semi-supervised task based on emoticon prediction motivated by the successful work in (Go et al., 2009), leveraging it in the twitter sentiment domain and its use as a vital component of the SemEval competition winning system (Bethard et al., 2016). We find unlabelled tweets that contain smileys, frowns, or laughing emoticons. We remove emoticons from the tweet before prediction and compile a dataset of 250,000 training examples, 50,000 validation examples, and 100,000 testing examples for each of the three classes. This is multiple orders of magnitude smaller than the 90 million tweets used in (Bethard et al., 2016) to allow for quick experimentation. Our GRU model with 50 hidden units achieves $6 3 . 4 \\%$ accuracy on the emoticon prediction test set. ",
510
+ "bbox": [
511
+ 174,
512
+ 728,
513
+ 825,
514
+ 854
515
+ ],
516
+ "page_idx": 5
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "We consider multiple sequential knowledge transfer algorithms for experimental comparison. Each uses only the source task data for learning the source task and only the target task data for integrating with the target task. This way integration is fast and simple, because it does not incorporate storage and replay of examples from the potentially very large source task as argued in (Li & Hoiem, 2016). ",
521
+ "bbox": [
522
+ 174,
523
+ 132,
524
+ 825,
525
+ 188
526
+ ],
527
+ "page_idx": 6
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "Fine-Tuning: The representation is simply initialized with the representation found after training on the source task and then trained as usual on the target task. This approach was pioneered in (Hinton & Salakhutdinov, 2006), in application to unsupervised source tasks and applied to transfer learning in (Bengio et al., 2012), and (Mesnil et al.). The learning rate is tuned by a grid search based on the validation set performance. ",
532
+ "bbox": [
533
+ 174,
534
+ 195,
535
+ 823,
536
+ 265
537
+ ],
538
+ "page_idx": 6
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "Progressive Networks: We also compare with our implementation of a progressive neural network (Rusu et al., 2016), where the representation learned for the source task is held fixed and integrated with a target task specific model via lateral connections trained using the target task data. The learning rate is also tuned based on a grid search using the validation set. ",
543
+ "bbox": [
544
+ 174,
545
+ 272,
546
+ 825,
547
+ 328
548
+ ],
549
+ "page_idx": 6
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "Learning without Forgetting (LwF): In the LwF paradigm, joint training is performed after parameter initialization. This is achieved by treating the target task data and the output generated by the source task model based on the target task input data as two jointly learned tasks as in (Caruana, 1997). As opposed to our proposed forgetting cost, the source task specific parameters are not held fixed while training on the target task data. The learning rate and mixing rate between the tasks are tuned by a grid search based on validation set performance. We first consider a version of the LwF model that leverages a random initialization of the target task specific parameters and initialization of all parameters learned on the source task with the learned values. We also consider another formulation that we call Greedy LwF. This is actually more closely aligned with the original paper (Li & Hoiem, 2016). All source task parameters are first held fixed, and the target task specific parameters are learned alone before joint training with all of the parameters unfrozen as a second step. For the case of source tasks with output in the space of the target task output, there are no source task specific parameters, so the forgetting cost can be viewed as a viable interpretation of the LwF paradigm appropriate in that setting. ",
554
+ "bbox": [
555
+ 174,
556
+ 335,
557
+ 825,
558
+ 529
559
+ ],
560
+ "page_idx": 6
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "Forgetting Cost: Finally, we compare each baseline model with our proposed forgetting cost described in section 3. The learning rate as well as $\\alpha _ { f }$ from equations 1 and 3 were tuned by a grid search based on the validation set performance. ",
565
+ "bbox": [
566
+ 176,
567
+ 536,
568
+ 825,
569
+ 578
570
+ ],
571
+ "page_idx": 6
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "5.3 TARGET TASK RESULTS ",
576
+ "text_level": 1,
577
+ "bbox": [
578
+ 176,
579
+ 602,
580
+ 380,
581
+ 616
582
+ ],
583
+ "page_idx": 6
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "We empirically evaluate the generalization performance of the forgetting cost for sequential knowledge transfer from four different source tasks in Table 1 and Table 2. The source task considered in Table 1 is distilling a logical rule model, leveraging the technique outlined in equation 1. In Table 2 we leverage the forgetting cost for related task knowledge transfer as outlined in equation 3. ",
588
+ "bbox": [
589
+ 174,
590
+ 631,
591
+ 823,
592
+ 686
593
+ ],
594
+ "page_idx": 6
595
+ },
596
+ {
597
+ "type": "text",
598
+ "text": "Our experimental results on the SemEval data validate our intuition that the forgetting cost should lead to stronger regularization and better generalization performance. One thing to note about our progressive neural networks implementation is that it effectively has only one hidden layer, because we hold our embeddings fixed during model training and the same embeddings are shared among the models used for all of the tasks. It is possible that having multiple layers of lateral connections is important to achieving good performance. However, this setting was not applicable in our experiments. Our results for sequential knowledge transfer on the SemEval benchmark are quite encouraging as the forgetting cost outperforms baselines significantly in all cases. ",
599
+ "bbox": [
600
+ 174,
601
+ 694,
602
+ 825,
603
+ 805
604
+ ],
605
+ "page_idx": 6
606
+ },
607
+ {
608
+ "type": "text",
609
+ "text": "We additionally have validated the intuition that equation 1 should perform stronger regularization than equation 3 when equation 1 is applicable. In fact, for our distilled logical rule model tuning experiments, we found that equation 1 performs $3 \\%$ better on the test set. In an attempt to understand more about what caused this performance difference, we monitored testing set performance at each epoch and noticed that equation 3 is actually prone to overfitting away from a good solution on the test set. However, it often finds a pretty good one comparable to equation 1 early in training. When equation 1 could be applied, it seems to be a useful regularization to constrain both the hidden layer and the output layer to align with the model learned on the source task. In equation 3, the hidden to output transformation learned for the target task can in contrast learn to deviate from the transformation learned for the source task. ",
610
+ "bbox": [
611
+ 174,
612
+ 811,
613
+ 823,
614
+ 924
615
+ ],
616
+ "page_idx": 6
617
+ },
618
+ {
619
+ "type": "table",
620
+ "img_path": "images/cc9409df48da0cf33a93d43a17c7b827f3dac7f4f71fa3cb83f885c9689d24cd.jpg",
621
+ "table_caption": [
622
+ "Table 1: Evaluation of target task tuning methodologies for a distilled rule model to the task of SemEval 2016 Task 4 Subtask A. "
623
+ ],
624
+ "table_footnote": [],
625
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Model Description</td><td rowspan=1 colspan=1>Accuracyon SemEval Test Set</td></tr><tr><td rowspan=1 colspan=1>Forgetting Cost TransferFine-tuning TransferProgressive Networks Transfer</td><td rowspan=1 colspan=1>64.4%58.5%56.9%</td></tr><tr><td rowspan=1 colspan=1>Distilled Logical Rule ModelLogical Rule ModelGRU Trained on Only SemEval Data</td><td rowspan=1 colspan=1>58.9%57.8%53.6%</td></tr></table>",
626
+ "bbox": [
627
+ 272,
628
+ 101,
629
+ 723,
630
+ 194
631
+ ],
632
+ "page_idx": 7
633
+ },
634
+ {
635
+ "type": "table",
636
+ "img_path": "images/9ccc247677d263abe8404f11293adde3979991256c702be1315349a1294db1ed.jpg",
637
+ "table_caption": [
638
+ "Table 2: Evaluation of knowledge transfer from three source tasks to the task of SemEval 2016 Task 4 Subtask A. "
639
+ ],
640
+ "table_footnote": [],
641
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Source Task</td><td rowspan=1 colspan=1>Fine-Tuning</td><td rowspan=1 colspan=1>ProgressiveNetworks</td><td rowspan=1 colspan=1>LwF</td><td rowspan=1 colspan=1>GreedyLwF</td><td rowspan=1 colspan=1>Forgetting Cost</td></tr><tr><td rowspan=1 colspan=1>Binary Movie Reviews</td><td rowspan=1 colspan=1>57.3%</td><td rowspan=1 colspan=1>54.5%</td><td rowspan=1 colspan=1>58.1%</td><td rowspan=1 colspan=1>58.8%</td><td rowspan=1 colspan=1>59.7%</td></tr><tr><td rowspan=1 colspan=1>Five Class Movie Reviews</td><td rowspan=1 colspan=1>57.4%</td><td rowspan=1 colspan=1>54.6%</td><td rowspan=1 colspan=1>57.1%</td><td rowspan=1 colspan=1>56.6%</td><td rowspan=1 colspan=1>58.2%</td></tr><tr><td rowspan=1 colspan=1>Emoticon Heuristic</td><td rowspan=1 colspan=1>55.8%</td><td rowspan=1 colspan=1>53.2%</td><td rowspan=1 colspan=1>57.7%</td><td rowspan=1 colspan=1>56.7%</td><td rowspan=1 colspan=1>58.6%</td></tr></table>",
642
+ "bbox": [
643
+ 174,
644
+ 244,
645
+ 875,
646
+ 300
647
+ ],
648
+ "page_idx": 7
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "",
653
+ "bbox": [
654
+ 176,
655
+ 364,
656
+ 823,
657
+ 393
658
+ ],
659
+ "page_idx": 7
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "5.4 SOURCE TASK PERFORMANCE AFTER TARGET TASK INTEGRATION ",
664
+ "text_level": 1,
665
+ "bbox": [
666
+ 174,
667
+ 412,
668
+ 681,
669
+ 428
670
+ ],
671
+ "page_idx": 7
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "In Table 3 we explore the retention of empirical performance on the source task for knowledge transfer algorithms after integration with the target task is complete. Apparently in these cases, allowing relearning of the source task model during integration with the target task data is indeed destructive to source task performance. LwF outperforms Fine-Tuning significantly in knowledge retention for movie reviews, but interestingly does not for the emoticon heuristic. The effect of the greedy target task initialization strategy also appears inconsistent. It seems it is possible that this greedy initialization could improve our proposed forgetting cost paradigm in some cases as well. However, a rigorous analysis of the tradeoffs for this initialization approach is beyond the scope of this paper. ",
676
+ "bbox": [
677
+ 174,
678
+ 440,
679
+ 825,
680
+ 566
681
+ ],
682
+ "page_idx": 7
683
+ },
684
+ {
685
+ "type": "text",
686
+ "text": "As the source task representation is literally stored fixed as part of the target task representation in progressive neural networks, it is not clear how to assess any effective forgetting of the source task during target task integration. As a result, we omit them from our source task forgetting experiments. ",
687
+ "bbox": [
688
+ 174,
689
+ 573,
690
+ 825,
691
+ 614
692
+ ],
693
+ "page_idx": 7
694
+ },
695
+ {
696
+ "type": "text",
697
+ "text": "5.5 INSPECTION OF LEARNED REPRESENTATIONS ",
698
+ "text_level": 1,
699
+ "bbox": [
700
+ 176,
701
+ 635,
702
+ 531,
703
+ 648
704
+ ],
705
+ "page_idx": 7
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "Now that we have established the empirical benefits of our proposed forgetting cost, we will demonstrate what it achieves qualitatively through examples. In Table 4 we include a sample of examples that are predicted correctly by transferring the knowledge source with the forgetting cost paradigm and not with fine-tuning based integration. The effect is, perhaps, easiest to understand for the rule based and movie review based transfer scenarios. For the rule based transfer setting you can literally map insights that are not forgotten to their respective logical rule in the model, as is the case in these examples. Moreover, we can see movie domain specific terminology such as ”May the force be with” is seemingly forgotten with standard fine-tuning, but not when the forgetting cost regularization is applied. ",
710
+ "bbox": [
711
+ 173,
712
+ 661,
713
+ 825,
714
+ 787
715
+ ],
716
+ "page_idx": 7
717
+ },
718
+ {
719
+ "type": "table",
720
+ "img_path": "images/e5c6f0d1e366972aa43ebb6de2ba47cda96b84599baa15bde2aab264dd10c469.jpg",
721
+ "table_caption": [],
722
+ "table_footnote": [],
723
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Source Task</td><td rowspan=1 colspan=1>Fine-Tuning</td><td rowspan=1 colspan=1>LwF</td><td rowspan=1 colspan=1>GreedyLwF</td><td rowspan=1 colspan=1>Forgetting Cost</td><td rowspan=1 colspan=1>Source Only</td></tr><tr><td rowspan=1 colspan=1>Binary Movie Reviews</td><td rowspan=1 colspan=1>80.7%</td><td rowspan=1 colspan=1>81.3%</td><td rowspan=1 colspan=1>81.5%</td><td rowspan=1 colspan=1>83.3%</td><td rowspan=1 colspan=1>85.5%</td></tr><tr><td rowspan=1 colspan=1>Five Class Movie Reviews</td><td rowspan=1 colspan=1>41.6%</td><td rowspan=1 colspan=1>42.8%</td><td rowspan=1 colspan=1>43.1%</td><td rowspan=1 colspan=1>43.3%</td><td rowspan=1 colspan=1>45.9%</td></tr><tr><td rowspan=1 colspan=1>Emoticon Heuristic</td><td rowspan=1 colspan=1>59.4%</td><td rowspan=1 colspan=1>59.1%</td><td rowspan=1 colspan=1>58.9%</td><td rowspan=1 colspan=1>60.3%</td><td rowspan=1 colspan=1>63.4%</td></tr></table>",
724
+ "bbox": [
725
+ 174,
726
+ 814,
727
+ 823,
728
+ 868
729
+ ],
730
+ "page_idx": 7
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "Table 3: Evaluation of accuracy on the source task after integration with the target task data of SemEval 2016 Task 4 Subtask A. The accuracy after only source task training prior to integration with the target task is included for reference as a baseline. ",
735
+ "bbox": [
736
+ 174,
737
+ 878,
738
+ 825,
739
+ 921
740
+ ],
741
+ "page_idx": 7
742
+ },
743
+ {
744
+ "type": "table",
745
+ "img_path": "images/8ab98c44c12e1c988b91d3f9c2915c9451b37b0c513c0bada266b61dad99c1f8.jpg",
746
+ "table_caption": [
747
+ "Table 4: Some transfer learning examples from each knowledge source to SemEval 2016 where the GRU model successfully predicts sentiment when using the forgetting cost paradigm, but not with fine-tuning based integration. "
748
+ ],
749
+ "table_footnote": [],
750
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Source</td><td rowspan=1 colspan=1>Tweet</td><td rowspan=1 colspan=1>Label</td><td rowspan=1 colspan=1>Fine-Tuning</td><td rowspan=1 colspan=1>Forgetting Cost</td></tr><tr><td rowspan=1 colspan=1>Logical Rules</td><td rowspan=1 colspan=1>JohnKasich should feel proud of hisperformance at the#GOPDebate Thursday night. He looked more presi-dential than the rest of the field.</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Positive</td></tr><tr><td rowspan=1 colspan=1>Logical Rules</td><td rowspan=1 colspan=1>@ BrunoMars I&#x27;m so tired of you dressing like you ain&#x27;tgot no money. You went from wearing Gucci loafers to6th grade boy Sketchers.</td><td rowspan=1 colspan=1>Negative</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Negative</td></tr><tr><td rowspan=1 colspan=1>Logical Rules</td><td rowspan=1 colspan=1>@DavidVonderhaar loving the beta Vahn, even playing it on PC with a PS4 controller without aim assist, can&#x27;twait for November 6</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Positive</td></tr><tr><td rowspan=1 colspan=1>Movie Reviews</td><td rowspan=1 colspan=1>Selena Gomez presented Amy Schumerwithanawardand a heap of praise at the Hollywood Film Awards onNovember 1.</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Negative</td><td rowspan=1 colspan=1>Positive</td></tr><tr><td rowspan=1 colspan=1>Movie Reviews</td><td rowspan=1 colspan=1>mailjet: It&#x27;s Fri...we mean Star Wars Day. May the forcebe with all of your emails! https://t.co/FbDdjiJVUT</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Positive</td></tr><tr><td rowspan=1 colspan=1>Movie Reviews</td><td rowspan=1 colspan=1>Straight Outta Compton&#x27;s success hopefully convincesNew Line Cinema to give Ice Cube the right budget forthe last Friday movie.</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Positive</td></tr><tr><td rowspan=1 colspan=1>Emoticons</td><td rowspan=1 colspan=1>That ball Kris Bryant just hit is the 2nd farthest ball I&#x27;veever seen hit. He is officially ridiculous.</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Positive</td></tr><tr><td rowspan=1 colspan=1>Emoticons</td><td rowspan=1 colspan=1>This fandom&#x27;s a mess omg,Iwouldn&#x27;t be surprise if to-morrow there&#x27;s a trend who says Niall&#x27;s going to marryhis cousin #WeKnowTheTruth</td><td rowspan=1 colspan=1>Negative</td><td rowspan=1 colspan=1>Positive</td><td rowspan=1 colspan=1>Negative</td></tr><tr><td rowspan=1 colspan=1>Emoticons</td><td rowspan=1 colspan=1>Christians snapchat story makes me want to kill my-self.like Ifeel like a depressed 8th grader going throughthat emo phase</td><td rowspan=1 colspan=1>Negative</td><td rowspan=1 colspan=1>Neutral</td><td rowspan=1 colspan=1>Negative</td></tr></table>",
751
+ "bbox": [
752
+ 173,
753
+ 101,
754
+ 918,
755
+ 435
756
+ ],
757
+ "page_idx": 8
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "Considering that we have shown a neural network can distill and improve a representation learned by a logical rule engine, how the final representation differs from the logic of the original engine is of practical interest. We thus compare the agreement of our fine-tuned rule based GRU with the original rule model on the SemEval testing set. We find that the transferred model achieves $78 . 7 \\%$ agreement with the rule model when the rule model is right. This clearly indicates that our final model is not deterministic based on the rule engine, and has a probability of adding errors even when the original rule model works well. However, our model actually has $4 4 . 7 \\%$ accuracy on the examples the rule model got wrong. Our approach yields significant gains in comparison to the original rule classifiers, improving from $5 7 . 8 \\%$ to $6 4 . 4 \\%$ test set accuracy before even incorporating in auxiliary knowledge sources. ",
762
+ "bbox": [
763
+ 173,
764
+ 513,
765
+ 825,
766
+ 654
767
+ ],
768
+ "page_idx": 8
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "6 INTEGRATING TRANSFER LEARNING FROM MULTIPLE TASKS WITH ENSEMBLE DISTILLATION ",
773
+ "text_level": 1,
774
+ "bbox": [
775
+ 174,
776
+ 674,
777
+ 766,
778
+ 708
779
+ ],
780
+ "page_idx": 8
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "6.1 ENSEMBLE METHODOLOGY ",
785
+ "text_level": 1,
786
+ "bbox": [
787
+ 176,
788
+ 723,
789
+ 408,
790
+ 738
791
+ ],
792
+ "page_idx": 8
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "In our experiments we tried to find a balance between an ensemble model that is powerful enough to have an adaptive weighted average decision function and not so powerful that it overfits on our limited training and validation data. Our model is quite similar in architecture to the gating network component of a hierarchical mixture of experts model (Jacobs et al., 1991), (Jordan & Jacobs, 1994). We tried our model over all four representations at once and found that it overfits. Our experiments showed it is more effective to adopt a greedy ensembling strategy where all models are combined with the best performing model on the validation set at each phase until only two models are left. Finally, these two models are combined with the same mechanism. (Riemer et al., 2016) suggests that a many element gating network can be improved with a sparsity constraint, but this did not work as well as the greedy strategy for our model and experiments. ",
797
+ "bbox": [
798
+ 174,
799
+ 750,
800
+ 825,
801
+ 888
802
+ ],
803
+ "page_idx": 8
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "More formally, for any two models $A$ and $B$ combined in an ensemble, we train the following mechanism using Stochastic Gradient Descent: ",
808
+ "bbox": [
809
+ 174,
810
+ 895,
811
+ 821,
812
+ 922
813
+ ],
814
+ "page_idx": 8
815
+ },
816
+ {
817
+ "type": "table",
818
+ "img_path": "images/22c689d61e3887c6b493b49ee4709cc4bc1824fa8d22fc0d05e8107dca0305c3.jpg",
819
+ "table_caption": [
820
+ "Table 5: Empirical three way sentiment classification results on the SemEval 2016 Task 4 Subtask A test set. "
821
+ ],
822
+ "table_footnote": [],
823
+ "table_body": "<table><tr><td rowspan=1 colspan=1>ModelDescription</td><td rowspan=1 colspan=1>AccuracyonSemEval TestSet</td></tr><tr><td rowspan=1 colspan=1>Distilled GRUTrained on Full EnsembleFull EnsembleEnsemble withLogical Rules and Both Movie Review TasksEnsemble with Logical Rules and Binary Movie ReviewsEnsemble with Logical Rules and Five Class Movie ReviewsEnsemble with Logical Rules and Emoticon PredictionEnsemble withBothMovie Review TasksGRU Trained on Only SemEval Data</td><td rowspan=1 colspan=1>66.0%65.9%65.7%65.4%65.1%65.0%62.1%53.6%</td></tr><tr><td rowspan=1 colspan=1>SwissCheese (Bethard etal.,2016)NTNUSentEval (Jahren et al.,2016)UniPI (Attardi &amp; Sartiano,2016)CUFE (Nabil et al.,2016)INSIGHT-1 (Ruder et al., 2016)</td><td rowspan=1 colspan=1>64.6%64.3%63.9%63.7%63.5%</td></tr></table>",
824
+ "bbox": [
825
+ 204,
826
+ 101,
827
+ 794,
828
+ 281
829
+ ],
830
+ "page_idx": 9
831
+ },
832
+ {
833
+ "type": "equation",
834
+ "img_path": "images/bb7fde02e33f7aecec0d474cc6a798708f781b034fa2a85cc95d20486a2d04f6.jpg",
835
+ "text": "$$\n\\begin{array} { r } { m _ { A } = \\sigma ( W _ { A } \\hat { y } _ { A } + b _ { A } ) } \\\\ { m _ { B } = \\sigma ( W _ { B } \\hat { y } _ { B } + b _ { B } ) } \\end{array}\n$$",
836
+ "text_format": "latex",
837
+ "bbox": [
838
+ 418,
839
+ 359,
840
+ 578,
841
+ 405
842
+ ],
843
+ "page_idx": 9
844
+ },
845
+ {
846
+ "type": "equation",
847
+ "img_path": "images/c8126e7f7c5d1e02cd333389ca2ccdc2a23d97dd0b71a0105e5c11dae9924cac.jpg",
848
+ "text": "$$\na _ { A } = { \\frac { m _ { A } } { m _ { A } + m _ { B } } }\n$$",
849
+ "text_format": "latex",
850
+ "bbox": [
851
+ 437,
852
+ 411,
853
+ 558,
854
+ 443
855
+ ],
856
+ "page_idx": 9
857
+ },
858
+ {
859
+ "type": "equation",
860
+ "img_path": "images/146256cd059aec1c0a7c4012d84332b5e9d3e43615d019f4d5cd428ea2e7d78b.jpg",
861
+ "text": "$$\na _ { B } = { \\frac { m _ { B } } { m _ { A } + m _ { B } } }\n$$",
862
+ "text_format": "latex",
863
+ "bbox": [
864
+ 437,
865
+ 448,
866
+ 558,
867
+ 479
868
+ ],
869
+ "page_idx": 9
870
+ },
871
+ {
872
+ "type": "equation",
873
+ "img_path": "images/c66251f40a99ee5bcf6a28ffabe7501f5ae99af331dccb0a726849590b790774.jpg",
874
+ "text": "$$\n\\hat { y } _ { e n s e m b l e } = a _ { A } \\hat { y } _ { A } + a _ { B } \\hat { y } _ { B }\n$$",
875
+ "text_format": "latex",
876
+ "bbox": [
877
+ 405,
878
+ 486,
879
+ 591,
880
+ 502
881
+ ],
882
+ "page_idx": 9
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "where $\\hat { y } _ { e n s e m b l e }$ is the prediction vector of the combined ensemble. ${ \\hat { y } } _ { A }$ and $\\hat { y } _ { B }$ are the output vectors of the individual models. ",
887
+ "bbox": [
888
+ 173,
889
+ 508,
890
+ 825,
891
+ 536
892
+ ],
893
+ "page_idx": 9
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "6.2 ENSEMBLE RESULTS ",
898
+ "text_level": 1,
899
+ "bbox": [
900
+ 174,
901
+ 556,
902
+ 359,
903
+ 570
904
+ ],
905
+ "page_idx": 9
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Our ensemble model was trained on what was set aside as the validation data during the initial training with early stopping. In the first phase of combining, the model transferred from the logical rule source task was combined with each model. In the second phase, the model based on transfer from the binary movie review sentiment model was combined with each model. In the third phase, the two remaining models were combined. The results of our ensemble in Table 5 suggest that it is possible to further improve the performance of a single sequential transfer model by intelligently combining its predictions with models that have other perspectives. This is because they are modeled using different source tasks for prior knowledge. Impressively, our final distilled model surpasses results from all prior models on the SemEval 2016 benchmark using the same final architecture of a 50 hidden unit GRU model that is clearly not even competitive when trained simply on the task specific labeled data. The prior best model SwissCheese (Bethard et al., 2016) consists of random forests ensemble built utilizing multiple convolutional neural network models and distant supervision. In fact, we achieve superior results despite using over an order of magnitude less total data for training our model. ",
910
+ "bbox": [
911
+ 174,
912
+ 584,
913
+ 825,
914
+ 777
915
+ ],
916
+ "page_idx": 9
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "We would also like to underscore that our total improvement of $1 . 5 \\%$ as a result of creating an ensemble with our best transferred model from the logical rule source task can be viewed as quite disappointing, despite achieving state of the art results. In fact, in the theoretical limit of having a decision model that switches to the best already learned model at each point, our four transferred representations would achieve $8 5 . 1 \\%$ accuracy together. For the combination of the movie review based models and logical rule based model we can get to $8 1 . 4 \\%$ accuracy. Moreover, we can get $7 6 . 5 \\%$ accuracy with just the logical rule based transfer model and the emoticon prediction based transfer model. Unfortunately, we achieve nowhere near these theoretical results despite representations that are apparently quite diverse. This seems indicative that there are significant gains yet to be uncovered in integrating these representations. ",
921
+ "bbox": [
922
+ 174,
923
+ 785,
924
+ 825,
925
+ 924
926
+ ],
927
+ "page_idx": 9
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "7 CONCLUSION ",
932
+ "text_level": 1,
933
+ "bbox": [
934
+ 176,
935
+ 102,
936
+ 318,
937
+ 117
938
+ ],
939
+ "page_idx": 10
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "We consider a new methodology called the forgetting cost for preventing the catastrophic forgetting problem of neural network sequential transfer learning. The forgetting cost is practical and easy to implement. We have demonstrated for the challenging task of Twitter sentiment analysis that it can uncover significant gains in generalization performance and that it seems to not forget knowledge traditionally forgotten from the source task during fine-tuning. Our strong empirical results still motivate multiple avenues with high potential for continued exploration in text analytics. Using logical rules to improve neural network models is a promising direction for humans to efficiently contribute to increased model performance. Additionally, the large diversity of representations learned from multiple classifiers with the same target task but different source tasks seems to indicate there is potential to see even much greater gains when integrating multiple sources of knowledge transfer. ",
944
+ "bbox": [
945
+ 174,
946
+ 133,
947
+ 825,
948
+ 273
949
+ ],
950
+ "page_idx": 10
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "REFERENCES ",
955
+ "text_level": 1,
956
+ "bbox": [
957
+ 176,
958
+ 295,
959
+ 285,
960
+ 310
961
+ ],
962
+ "page_idx": 10
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "Giuseppe Attardi and Daniele Sartiano. Unipi at semeval-2016 task 4: Convolutional neural networks for sen-timent classification. Proceedings of SemEval, pp. 220–224, 2016. ",
967
+ "bbox": [
968
+ 176,
969
+ 319,
970
+ 823,
971
+ 347
972
+ ],
973
+ "page_idx": 10
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "Jimmy Ba and Rich Caruana. Do deep nets really need to be deep? In Advances in neural information processing systems, pp. 2654–2662, 2014. ",
978
+ "bbox": [
979
+ 174,
980
+ 357,
981
+ 820,
982
+ 386
983
+ ],
984
+ "page_idx": 10
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "Yoshua Bengio, Patrice Simard, and Paolo Frasconi. Learning long-term dependencies with gradient descent is difficult. Neural Networks, IEEE Transactions on, 5(2):157–166, 1994. ",
989
+ "bbox": [
990
+ 174,
991
+ 396,
992
+ 820,
993
+ 425
994
+ ],
995
+ "page_idx": 10
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Yoshua Bengio et al. Deep learning of representations for unsupervised and transfer learning. ICML Unsupervised and Transfer Learning, 27:17–36, 2012. ",
1000
+ "bbox": [
1001
+ 173,
1002
+ 435,
1003
+ 821,
1004
+ 464
1005
+ ],
1006
+ "page_idx": 10
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Steven Bethard, Daniel M. Cer, Marine Carpuat, David Jurgens, Preslav Nakov, and Torsten Zesch (eds.). Proceedings of the 10th International Workshop on Semantic Evaluation, SemEval@NAACL-HLT 2016, San Diego, CA, USA, June 16-17, 2016, 2016. The Association for Computer Linguistics. ISBN 978-1-941643-95-2. URL http://aclweb.org/ anthology/S/S16/. ",
1011
+ "bbox": [
1012
+ 173,
1013
+ 474,
1014
+ 825,
1015
+ 545
1016
+ ],
1017
+ "page_idx": 10
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Cristian Bucilu, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 535–541. ACM, 2006. ",
1022
+ "bbox": [
1023
+ 174,
1024
+ 555,
1025
+ 821,
1026
+ 598
1027
+ ],
1028
+ "page_idx": 10
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Rich Caruana. Multitask learning. Machine Learning, 28(1):41–75, 1997. doi: 10.1023/A: 1007379606734. URL http://dx.doi.org/10.1023/A:1007379606734. ",
1033
+ "bbox": [
1034
+ 173,
1035
+ 607,
1036
+ 821,
1037
+ 637
1038
+ ],
1039
+ "page_idx": 10
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "Tianqi Chen, Ian Goodfellow, and Jonathon Shlens. Net2net: Accelerating learning via knowledge transfer. arXiv preprint arXiv:1511.05641, 2015. ",
1044
+ "bbox": [
1045
+ 173,
1046
+ 646,
1047
+ 821,
1048
+ 676
1049
+ ],
1050
+ "page_idx": 10
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "Kyunghyun Cho, Bart van Merrienboer, Dzmitry Bahdanau, and Yoshua Bengio. On the properties ¨ of neural machine translation: Encoder-decoder approaches. arXiv preprint arXiv:1409.1259, 2014. ",
1055
+ "bbox": [
1056
+ 173,
1057
+ 685,
1058
+ 825,
1059
+ 728
1060
+ ],
1061
+ "page_idx": 10
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014. ",
1066
+ "bbox": [
1067
+ 171,
1068
+ 738,
1069
+ 825,
1070
+ 768
1071
+ ],
1072
+ "page_idx": 10
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "Artur S d’Avila Garcez, Krysia Broda, and Dov M Gabbay. Neural-symbolic learning systems: foundations and applications, 2012. ",
1077
+ "bbox": [
1078
+ 171,
1079
+ 777,
1080
+ 823,
1081
+ 806
1082
+ ],
1083
+ "page_idx": 10
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "Alec Go, Richa Bhayani, and Lei Huang. Twitter sentiment classification using distant supervision. 2009. ",
1088
+ "bbox": [
1089
+ 169,
1090
+ 816,
1091
+ 821,
1092
+ 845
1093
+ ],
1094
+ "page_idx": 10
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. ",
1099
+ "bbox": [
1100
+ 173,
1101
+ 856,
1102
+ 823,
1103
+ 885
1104
+ ],
1105
+ "page_idx": 10
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Geoffrey E Hinton and Ruslan R Salakhutdinov. Reducing the dimensionality of data with neural networks. Science, 313(5786):504–507, 2006. ",
1110
+ "bbox": [
1111
+ 174,
1112
+ 895,
1113
+ 821,
1114
+ 924
1115
+ ],
1116
+ "page_idx": 10
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997. ",
1121
+ "bbox": [
1122
+ 173,
1123
+ 103,
1124
+ 823,
1125
+ 132
1126
+ ],
1127
+ "page_idx": 11
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Zhiting Hu, Xuezhe Ma, Zhengzhong Liu, Eduard Hovy, and Eric Xing. Harnessing deep neural networks with logic rules. arXiv preprint arXiv:1603.06318, 2016. ",
1132
+ "bbox": [
1133
+ 173,
1134
+ 140,
1135
+ 823,
1136
+ 170
1137
+ ],
1138
+ "page_idx": 11
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. Adaptive mixtures of local experts. Neural computation, 3(1):79–87, 1991. ",
1143
+ "bbox": [
1144
+ 173,
1145
+ 179,
1146
+ 823,
1147
+ 208
1148
+ ],
1149
+ "page_idx": 11
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Brage Ekroll Jahren, Valerij Fredriksen, Bjorn Gamb ¨ ack, and Lars Bungum. Ntnusenteval at ¨ semeval-2016 task 4: Combining general classifiers for fast twitter sentiment analysis. Proceedings of SemEval, pp. 103–108, 2016. ",
1154
+ "bbox": [
1155
+ 173,
1156
+ 217,
1157
+ 823,
1158
+ 260
1159
+ ],
1160
+ "page_idx": 11
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "Michael I Jordan and Robert A Jacobs. Hierarchical mixtures of experts and the em algorithm. Neural computation, 6(2):181–214, 1994. ",
1165
+ "bbox": [
1166
+ 169,
1167
+ 267,
1168
+ 823,
1169
+ 297
1170
+ ],
1171
+ "page_idx": 11
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "Ankit Kumar, Ozan Irsoy, Jonathan Su, James Bradbury, Robert English, Brian Pierce, Peter Ondruska, Ishaan Gulrajani, and Richard Socher. Ask me anything: Dynamic memory networks for natural language processing. arXiv preprint arXiv:1506.07285, 2015. ",
1176
+ "bbox": [
1177
+ 174,
1178
+ 306,
1179
+ 823,
1180
+ 349
1181
+ ],
1182
+ "page_idx": 11
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "Zhizhong Li and Derek Hoiem. Learning without forgetting. In European Conference on Computer Vision, pp. 614–629. Springer, 2016. ",
1187
+ "bbox": [
1188
+ 174,
1189
+ 357,
1190
+ 823,
1191
+ 387
1192
+ ],
1193
+ "page_idx": 11
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "David Lopez-Paz, Leon Bottou, Bernhard Sch ´ olkopf, and Vladimir Vapnik. Unifying distillation ¨ and privileged information. stat, 1050:26, 2016. ",
1198
+ "bbox": [
1199
+ 173,
1200
+ 395,
1201
+ 821,
1202
+ 425
1203
+ ],
1204
+ "page_idx": 11
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "Andrew L Maas, Raymond E Daly, Peter T Pham, Dan Huang, Andrew $\\mathrm { ~ Y ~ N ~ g ~ } _ { }$ , and Christopher Potts. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies-Volume 1, pp. 142–150. Association for Computational Linguistics, 2011. ",
1209
+ "bbox": [
1210
+ 173,
1211
+ 433,
1212
+ 825,
1213
+ 491
1214
+ ],
1215
+ "page_idx": 11
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "Gregoire Mesnil, Yann Dauphin, Xavier Glorot, Salah Rifai, Yoshua Bengio, Ian J Goodfellow, ´ Erick Lavoie, Xavier Muller, Guillaume Desjardins, David Warde-Farley, et al. Unsupervised and transfer learning challenge: a deep learning approach. ",
1220
+ "bbox": [
1221
+ 176,
1222
+ 498,
1223
+ 823,
1224
+ 542
1225
+ ],
1226
+ "page_idx": 11
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "Gregoire Mesnil, Tomas Mikolov, Marc’Aurelio Ranzato, and Yoshua Bengio. Ensemble of gen- ´ erative and discriminative techniques for sentiment analysis of movie reviews. arXiv preprint arXiv:1412.5335, 2014. ",
1231
+ "bbox": [
1232
+ 173,
1233
+ 551,
1234
+ 823,
1235
+ 593
1236
+ ],
1237
+ "page_idx": 11
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "Jacob MJ Murre. Learning and categorization in modular neural networks. 1992. ",
1242
+ "bbox": [
1243
+ 171,
1244
+ 602,
1245
+ 705,
1246
+ 618
1247
+ ],
1248
+ "page_idx": 11
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "Mahmoud Nabil, Mohamed Aly, and Amir F Atiya. Cufe at semeval-2016 task 4: A gated recurrent model for sentiment classification. Proceedings of SemEval, pp. 52–57, 2016. ",
1253
+ "bbox": [
1254
+ 171,
1255
+ 626,
1256
+ 823,
1257
+ 656
1258
+ ],
1259
+ "page_idx": 11
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "Preslav Nakov, Alan Ritter, Sara Rosenthal, Veselin Stoyanovand, and Fabrizio Sebastiani. Semeval2016 task 4: Sentiment analysis in twitter. In Proc. of the 10th International Workshop on Semantic Evaluation (SemEval), 2016. ",
1264
+ "bbox": [
1265
+ 174,
1266
+ 664,
1267
+ 823,
1268
+ 707
1269
+ ],
1270
+ "page_idx": 11
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In EMNLP, volume 14, pp. 1532–1543, 2014. ",
1275
+ "bbox": [
1276
+ 171,
1277
+ 715,
1278
+ 823,
1279
+ 746
1280
+ ],
1281
+ "page_idx": 11
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "Matthew Riemer, Sophia Krasikov, and Harini Srinivasan. A deep learning and knowledge transfer based architecture for social media user characteristic determination. SocialNLP 2015 at NAACL, pp. 39, 2015. ",
1286
+ "bbox": [
1287
+ 173,
1288
+ 753,
1289
+ 823,
1290
+ 796
1291
+ ],
1292
+ "page_idx": 11
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "Matthew Riemer, Aditya Vempaty, Flavio Calmon, Fenno Heath, Richard Hull, and Elham Khabiri. Correcting forecasts with multifactor neural attention. In Proceedings of The 33rd International Conference on Machine Learning, 2016. ",
1297
+ "bbox": [
1298
+ 174,
1299
+ 805,
1300
+ 823,
1301
+ 848
1302
+ ],
1303
+ "page_idx": 11
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "Anthony Robins. Catastrophic forgetting, rehearsal and pseudorehearsal. Connection Science, 7(2): 123–146, 1995. ",
1308
+ "bbox": [
1309
+ 173,
1310
+ 857,
1311
+ 821,
1312
+ 886
1313
+ ],
1314
+ "page_idx": 11
1315
+ },
1316
+ {
1317
+ "type": "text",
1318
+ "text": "Anthony Robins. Consolidation in neural networks and in the sleeping brain. Connection Science, 8(2):259–276, 1996. ",
1319
+ "bbox": [
1320
+ 173,
1321
+ 895,
1322
+ 821,
1323
+ 924
1324
+ ],
1325
+ "page_idx": 11
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "text": "Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014. ",
1330
+ "bbox": [
1331
+ 173,
1332
+ 103,
1333
+ 823,
1334
+ 132
1335
+ ],
1336
+ "page_idx": 12
1337
+ },
1338
+ {
1339
+ "type": "text",
1340
+ "text": "Sebastian Ruder, Parsa Ghaffari, and John G Breslin. Insight-1 at semeval-2016 task 5: Deep learning for multilingual aspect-based sentiment analysis. arXiv preprint arXiv:1609.02748, 2016. ",
1341
+ "bbox": [
1342
+ 173,
1343
+ 141,
1344
+ 821,
1345
+ 171
1346
+ ],
1347
+ "page_idx": 12
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "Andrei A Rusu, Sergio Gomez Colmenarejo, Caglar Gulcehre, Guillaume Desjardins, James Kirkpatrick, Razvan Pascanu, Volodymyr Mnih, Koray Kavukcuoglu, and Raia Hadsell. Policy distillation. arXiv preprint arXiv:1511.06295, 2015. ",
1352
+ "bbox": [
1353
+ 176,
1354
+ 179,
1355
+ 820,
1356
+ 222
1357
+ ],
1358
+ "page_idx": 12
1359
+ },
1360
+ {
1361
+ "type": "text",
1362
+ "text": "Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016. ",
1363
+ "bbox": [
1364
+ 173,
1365
+ 232,
1366
+ 823,
1367
+ 275
1368
+ ],
1369
+ "page_idx": 12
1370
+ },
1371
+ {
1372
+ "type": "text",
1373
+ "text": "Richard Socher, Alex Perelygin, Jean Y Wu, Jason Chuang, Christopher D Manning, Andrew $\\mathrm { \\Delta Y N g }$ , and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the conference on empirical methods in natural language processing (EMNLP), volume 1631, pp. 1642. Citeseer, 2013. ",
1374
+ "bbox": [
1375
+ 173,
1376
+ 284,
1377
+ 826,
1378
+ 340
1379
+ ],
1380
+ "page_idx": 12
1381
+ },
1382
+ {
1383
+ "type": "text",
1384
+ "text": "Kai Sheng Tai, Richard Socher, and Christopher D Manning. Improved semantic representations from tree-structured long short-term memory networks. arXiv preprint arXiv:1503.00075, 2015. ",
1385
+ "bbox": [
1386
+ 174,
1387
+ 349,
1388
+ 821,
1389
+ 378
1390
+ ],
1391
+ "page_idx": 12
1392
+ },
1393
+ {
1394
+ "type": "text",
1395
+ "text": "Theano Development Team. Theano: A Python framework for fast computation of mathematical expressions. arXiv e-prints, abs/1605.02688, May 2016. URL http://arxiv.org/abs/ 1605.02688. ",
1396
+ "bbox": [
1397
+ 173,
1398
+ 387,
1399
+ 823,
1400
+ 430
1401
+ ],
1402
+ "page_idx": 12
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "Sebastian Thrun. Is learning the n-th thing any easier than learning the first? Advances in neural information processing systems, pp. 640–646, 1996. ",
1407
+ "bbox": [
1408
+ 173,
1409
+ 440,
1410
+ 825,
1411
+ 468
1412
+ ],
1413
+ "page_idx": 12
1414
+ },
1415
+ {
1416
+ "type": "text",
1417
+ "text": "Geoffrey G Towell, Jude W Shavlik, and Michiel O Noordewier. Refinement of approximate domain theories by knowledge-based neural networks. In In Proceedings of the Eighth National Conference on Artificial Intelligence. Citeseer, 1990. ",
1418
+ "bbox": [
1419
+ 179,
1420
+ 478,
1421
+ 821,
1422
+ 521
1423
+ ],
1424
+ "page_idx": 12
1425
+ },
1426
+ {
1427
+ "type": "text",
1428
+ "text": "A MAPPING SENTIMENT RULES TO SOFT TARGETS ",
1429
+ "text_level": 1,
1430
+ "bbox": [
1431
+ 176,
1432
+ 547,
1433
+ 614,
1434
+ 564
1435
+ ],
1436
+ "page_idx": 12
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "The gazetteer based logical rule engine separates sentences and phrases in the text. It then applies dictionaries of positive and negative sentiment words and phrases to the corresponding text. For each positive or negative phrase found, it checks to see if negation or double negation are applied, and modifies the polarity of the sentiment accordingly. The result for any piece of text is a count of positive and negative sentiment occurrences. For this task, we simply count the total number of positive and negative indicators to give an overall positive, negative or neutral score. To be concrete, we have a simple procedure for mapping positive and negative word counts to soft labels that could be used for distillation. If there are no positive or negative words, the output vector is a one hot vector corresponding to a neutral label. If there are an unequal number of positive and negative sentiment words, the neutral label is zero and the raw counts are sent to the softmax function to create a soft label over the positive and negative word occurrences. Finally, if there are an equal amount of positive and negative words, we consider the added total sentiment words plus one in the neutral label as well as the number of positive words and negative words before sending these totals through a softmax function. ",
1441
+ "bbox": [
1442
+ 174,
1443
+ 580,
1444
+ 825,
1445
+ 773
1446
+ ],
1447
+ "page_idx": 12
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "B SIZE SELECTION FOR THE RULE DISTILLATION TASK ",
1452
+ "text_level": 1,
1453
+ "bbox": [
1454
+ 176,
1455
+ 795,
1456
+ 651,
1457
+ 810
1458
+ ],
1459
+ "page_idx": 12
1460
+ },
1461
+ {
1462
+ "type": "text",
1463
+ "text": "In Table 6 we detail the performance of distilling a logical rule engine into a GRU based recurrent neural network by imposing soft labels over unlabeled tweets. The fact that we keep our word representations fixed with general purpose unsupervised data makes it difficult for the GRU to distill the entire model without a large number of examples. Additionally, as there were a large number of examples in our distillation experiments, we did not experience high run to run variation and only trained a single GRU model for each distillation experiment (as opposed to picking the best validation error of 10 parallel training routines as in our transfer experiments). Our distilled GRU is better on the testing set than the original classifier, likely because this input representation prevents the model from overfitting to the idiosyncrasies of the rule engine. This actually underscores an important point for the distillation of abstract knowledge. If the target task is known during distillation, it may be beneficial to stop short of totally distilling the original knowledge as it may hurt down stream performance past a certain point. We impose a simple policy where the best hidden unit and training example combination is selected based on performance on the training data of the target task. As a result, we use the model with 50 hidden units based on 50,000 training examples in our experiments integrating with other knowledge. This model is a pretty good one to choose, and achieves high transfer performance relative to models that overfit on the teacher network. ",
1464
+ "bbox": [
1465
+ 174,
1466
+ 825,
1467
+ 823,
1468
+ 924
1469
+ ],
1470
+ "page_idx": 12
1471
+ },
1472
+ {
1473
+ "type": "table",
1474
+ "img_path": "images/61a68bd836f8b9c47a68a1906e9d19d65a71dc93b5ee07b1151c70275a398223.jpg",
1475
+ "table_caption": [
1476
+ "Table 6: Logical rule engine distillation performance and SemEval 2016 Task 4 Subtask A accuracy as a function of the number of hidden units in the GRU and the number of training examples. The 50 hidden unit and 50,000 training example model performs the best on the SemEval training set. "
1477
+ ],
1478
+ "table_footnote": [],
1479
+ "table_body": "<table><tr><td>Hidden Units</td><td>Examples</td><td>Alignmentwith Teacher</td><td>AccuracyonSemEval TestSet</td></tr><tr><td>25</td><td>50,000</td><td>88.3%</td><td>59.1%</td></tr><tr><td>25</td><td>300,000</td><td>91.9%</td><td>58.6%</td></tr><tr><td>50</td><td>50,000</td><td>88.6%</td><td>58.9%</td></tr><tr><td>50</td><td>300,000</td><td>93.0%</td><td>58.5%</td></tr><tr><td>75</td><td>50,000</td><td>88.7%</td><td>58.9%</td></tr><tr><td>75 100</td><td>300,000 50,000</td><td>93.6%</td><td>58.3%</td></tr><tr><td>100</td><td>300,000</td><td>88.6%</td><td>58.7%</td></tr><tr><td>125</td><td>50,000</td><td>93.8%</td><td>58.1%</td></tr><tr><td>125</td><td>300,000</td><td>88.5%</td><td>58.7%</td></tr><tr><td>150</td><td>50,000</td><td>93.7%</td><td>58.3%</td></tr><tr><td>150</td><td>300,000</td><td>88.5% 94.0%</td><td>59.0% 58.5%</td></tr></table>",
1480
+ "bbox": [
1481
+ 215,
1482
+ 101,
1483
+ 782,
1484
+ 270
1485
+ ],
1486
+ "page_idx": 13
1487
+ },
1488
+ {
1489
+ "type": "text",
1490
+ "text": "",
1491
+ "bbox": [
1492
+ 173,
1493
+ 348,
1494
+ 825,
1495
+ 474
1496
+ ],
1497
+ "page_idx": 13
1498
+ }
1499
+ ]
parse/train/HyenWc5gx/HyenWc5gx_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HyenWc5gx/HyenWc5gx_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/jnMjOctlfbZ/jnMjOctlfbZ.md ADDED
@@ -0,0 +1,338 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ATOM3D: TASKS ON MOLECULES IN THREE DIMENSIONS
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ While a variety of methods have been developed for predicting molecular properties, deep learning networks that operate directly on three-dimensional molecular structure have recently demonstrated particular promise. In this work we present ATOM3D, a collection of both novel and existing datasets spanning several key classes of biomolecules, to systematically assess such learning methods. We develop three-dimensional molecular learning networks for each of these tasks, finding that they consistently improve performance relative to one- and twodimensional methods. The specific choice of architecture proves to be critical for performance, with three-dimensional convolutional networks excelling at tasks involving complex geometries, while graph networks perform well on systems requiring detailed positional information. Furthermore, equivariant networks show significant promise but are currently unable to scale. Our results indicate many molecular problems stand to gain from three-dimensional molecular learning. All code and datasets are available at github.com/xxxxxxx/xxxxxx.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ A molecule’s three-dimensional (3D) shape is critical to understanding its physical mechanisms of action, and can be used to answer a number of questions relating to drug discovery, molecular design, and fundamental biology. A molecule’s atoms often adopt specific 3D configurations that minimize its free energy, and by representing these 3D positions—the atomistic geometry—we can model this 3D shape in ways that would not be possible with 1D or 2D representations such as linear sequences or chemical bond graphs (Table 1). However, existing works that examine diverse molecular tasks, such as MoleculeNet (Wu et al., 2018) or TAPE (Rao et al., 2019), focus on these lower dimensional representations. In this work, we demonstrate the benefit yielded by learning on 3D atomistic geometry and promote the development of 3D molecular learning by providing a collection of datasets leveraging this representation.
12
+
13
+ Furthermore, we argue that the atom should be considered a “machine learning datatype” in its own right, deserving focused study much like images in computer vision or text in natural language processing. All molecules, including proteins, small molecule compounds, and nucleic acids, can be homogeneously represented as atoms in 3D space. These atoms can only belong to a fixed class of element types (e.g. carbon, nitrogen, oxygen), and are all governed by the same underlying laws of physics, leading to important rotational, translational, and permutational symmetries. These systems also contain higher-level patterns that are poorly characterized, creating a ripe opportunity for learning them from data: though certain basic components are well understood (e.g. amino acids, nucleic acids, functional groups), many others can not easily be defined. These patterns are in turn composed in a hierarchy that itself is only partially elucidated.
14
+
15
+ While deep learning methods such as graph neural networks (GNNs) and convolutional neural networks (CNNs) seem especially well suited to atomistic geometry, to date there has been no systematic evaluation of such methods on molecular tasks. Additionally, despite the growing number of 3D structures available in databases such as the Protein Data Bank (PDB) (Berman et al., 2000), they require significant processing before they are useful for machine learning tasks. Inspired by the success of accessible databases such as ImageNet (Jia Deng et al., 2009) and SQuAD (Rajpurkar et al., 2016) in sparking progress in their respective fields, we create and curate benchmark datasets for atomistic tasks, process them into a simple and standardized format, systematically benchmark
16
+
17
+ Table 1: Representation choice for molecules. Adding in 3D information consistently improves performance. The depicted 1D representations are the amino acid sequence and SMILES (Weininger, 1988) for proteins and small molecules, respectively.
18
+
19
+ <table><tr><td rowspan="2">Structure LevelDimension</td><td rowspan="2"></td><td rowspan="2">Representation</td><td colspan="2">Examples</td></tr><tr><td>Proteins</td><td>Small Molecules</td></tr><tr><td>primary</td><td>1D</td><td>linear sequence</td><td>KVKALPDA</td><td>CC(C)CC(C)NO</td></tr><tr><td> secondary</td><td>2D</td><td>chemical bond graph</td><td>00001 O00-01 。 0 Q Oo00 oQ00Q obo O ○ o O</td><td>80 ○</td></tr><tr><td>tertiary</td><td>3D</td><td>atomistic geometry</td><td></td><td>)</td></tr></table>
20
+
21
+ 3D molecular learning methods, and present a set of best practices for other machine learning researchers interested in entering the field of 3D molecular learning. We develop new methods for several datasets and reveal a number of insights related to 3D molecular learning, including the consistent improvements yielded by using atomistic geometry, the lack of a single dominant method, and the presence of several tasks that can be improved through 3D molecular learning.
22
+
23
+ # 2 RELATED WORK
24
+
25
+ Three dimensional molecular data have long been pursued as an attractive source of information in molecular learning and chemoinformatics, but until recently have achieved underwhelming results relative to 1D and 2D representations (Swamidass et al., 2005; Azencott et al., 2007). However, due to increases in data availability and methodological advances, machine learning methods based on 3D molecular structure have begun to demonstrate significant impact in the last couple of years on specific tasks such as protein structure prediction (Senior et al., 2020), equilibrium state sampling (Noe et al., 2019), and drug design (Zhavoronkov et al., 2019). While there have been some broader ´ assessments of groups of related biological tasks, these have focused on on either 1D (Rao et al., 2019) or 2D (Wu et al., 2018) representations. By focusing instead on atomistic geometry, we can consistently improve performance and address disparate problems involving any combination of small molecules, proteins, and nucleic acids through a unified lens.
26
+
27
+ Graph neural networks (GNNs) have grown to be a major area of study, providing a natural way of learning from data with complex spatial structure. Many GNN implementations have been motivated by applications to atomic systems, including molecular fingerprinting (Duvenaud et al., 2015), property prediction (Schutt et al., 2017; Gilmer et al., 2017; Liu et al., 2019), protein interface pre- ¨ diction (Fout et al., 2017), and protein design (Ingraham et al., 2019). Instead of encoding points in Euclidean space, GNNs encode their pairwise connectivity, capturing a structured representation of atomistic data.
28
+
29
+ Three-dimensional CNNs (3DCNNs) have also become popular as a way to capture these complex 3D geometries. They have been applied to a number of biomolecular applications such as protein interface prediction (Townshend et al., 2019), protein model quality assessment (Pages et al., 2019; \` Derevyanko et al., 2018), protein sequence design (Anand et al., 2020), and structure-based drug discovery (Wallach et al., 2015; Torng & Altman, 2017; Ragoza et al., 2017; Jimenez et al., 2018). ´ These 3DCNNs can encode translational and permutational symmetries, but incur significant computational expense and cannot capture rotational symmetries without data augmentation.
30
+
31
+ In an attempt to address many of the problems of representing atomistic geometries, equivariant neural networks (ENNs) have emerged as a new class of methods for learning from molecular systems. These networks are built such that geometric transformations of their inputs lead to well-defined transformations of their outputs. This setup leads to the neurons of the network learning rules that resemble physical interactions. Tensor field networks (Thomas et al., 2018) and Cormorant (Kondor,
32
+
33
+ 2018; Anderson et al., 2019) have applied these principles to atomic systems and begun to demonstrate promise on extended systems (Eismann et al., 2020; Weiler et al., 2018). However, in general, these methods have not been applied to larger-scale molecular tasks.
34
+
35
+ # 3 3D MOLECULAR LEARNING
36
+
37
+ We define 3D molecular learning as the set of tasks where the input space is atoms in three dimensions. We write this space as $\mathbb { A } ^ { N }$ where $\mathbb { A } = \mathbb { P } \times \mathbb { E }$ . $\mathbb { P } = \mathbb { R } ^ { 3 }$ is the position space and $\mathbb { E } = \left\{ C , H , O , N , P , S , \ldots \right\}$ is the element space.
38
+
39
+ We select 3D molecular learning tasks from structural biophysics and medicinal chemistry that span a variety of molecule types and address a range of important problems. Multiple of these datasets are novel, while others are extracted from existing sources (Table 2). We provide all datasets in a standardized format that requires no specialized libraries. Alongside these datasets, we present corresponding best practices, including splitting and filtering criteria, to minimize data leakage concerns and ensure generalizability and reproducibility. Taken together, we hope these efforts will lower the barrier to entry for machine learning researchers interested in developing methods for 3D molecular learning and encourage rapid progress in the field. Detailed descriptions of the preparation of each dataset can be found in Appendix C.1.
40
+
41
+ Table 2: Tasks included in ATOM3D dataset, along with schematic representation of their inputs. P indicates protein, SM indicates small molecule, R indicates RNA. Lines indicate interaction and the smaller square within proteins indicates an individual amino acid. New datasets are in bold.
42
+
43
+ <table><tr><td>Name (Task Code)</td><td>Schematic</td><td>Objective</td><td>Source</td></tr><tr><td>Small Molecule Properties (SMP)</td><td>SM</td><td>Properties</td><td>QM9 (Ruddigkeit et al., 2012)</td></tr><tr><td>Protein Interface Prediction (PIP)</td><td>P2 P1 G 与</td><td>Amino Acid Interaction</td><td>DIPS(Townshend et al.,2019) DB5 (Vreven et al., 2015)</td></tr><tr><td>Residue Identity (RES)</td><td>P</td><td>Amino Acid Identity</td><td>New, created from PDB (Berman et al., 2000)</td></tr><tr><td>Mutation Stability Prediction (MSP)</td><td>P1 白 P2 C vs. P1 P2 £ 白</td><td>Effect of Mutation</td><td>New, created from SKEMPI (Jankauskaité et al., 2019)</td></tr><tr><td>Ligand Binding Affinity (LBA)</td><td>P SM</td><td>Binding Strength</td><td>PDBBind (Wang et al., 2004)</td></tr><tr><td rowspan="2">Ligand Efficacy Prediction (LEP) Protein Structure</td><td>P SM VS. SM</td><td>Drug Efficacy</td><td>New, created from PDB (Berman et al., 2000)</td></tr><tr><td>P</td><td>Ranking</td><td>CASP-QA (Kryshtafovych et al.,2019)</td></tr><tr><td>Ranking (PSR) RNA Structure</td><td></td><td></td><td></td></tr><tr><td>Ranking (RSR)</td><td>R</td><td>Ranking</td><td>FARFAR2-Puzzles (Watkins &amp; Das,2019)</td></tr></table>
44
+
45
+ # 3.1 SMALL MOLECULE PROPERTIES (SMP)
46
+
47
+ Impact – Predicting physico-chemical properties of small molecules is a common task in medicinal chemistry and materials design. Quantum chemical calculations can save expensive experiments but are themselves costly and cannot cover the huge chemical space spanned by candidate molecules.
48
+
49
+ Dataset – The QM9 dataset (Ruddigkeit et al., 2012; Ramakrishnan et al., 2014) contains structures and energetic, electronic, and thermodynamic properties for 134,000 stable small organic molecules, obtained from quantum-chemical calculations.
50
+
51
+ Metrics – We predict the molecular properties from the ground-state structure.
52
+
53
+ Split – We split molecules randomly.
54
+
55
+ # 3.2 PROTEIN INTERFACE PREDICTION (PIP)
56
+
57
+ Impact – Proteins interact with each other in many scenarios—for example, antibody proteins recognize diseases by binding to antigens. A critical problem in understanding these interactions is to identify which amino acids of two given proteins will interact upon binding.
58
+
59
+ Dataset – For training, we use the Database of Interacting Protein Structures (DIPS), a comprehensive dataset of protein complexes mined from the PDB (Townshend et al., 2019). We predict on the Docking Benchmark 5 (Vreven et al., 2015), a smaller gold standard dataset.
60
+
61
+ Metrics – We predict if two amino acids will come into contact when their respective proteins bind.
62
+ Split – We split protein complexes by sequence identity at $30 \%$ .
63
+
64
+ # 3.3 RESIDUE IDENTITY (RES)
65
+
66
+ Impact – Understanding the structural role of individual amino acids is important for engineering new proteins. We can understand this role by predicting the propensity for different amino acids at a given protein site based on the surrounding structural environment (Torng & Altman, 2017).
67
+
68
+ Dataset – We generate a novel dataset consisting of atomic environments extracted from nonredundant structures in the PDB.
69
+
70
+ Metrics – We formulate this as a classification task where we predict the identity of the amino acid in the center of the environment based on all other atoms.
71
+
72
+ Split – We split residue environments by protein topology class.
73
+
74
+ # 3.4 MUTATION STABILITY PREDICTION (MSP)
75
+
76
+ Impact – Identifying mutations that stabilize a protein’s interactions is a key task in designing new proteins. Experimental techniques for probing these are labor-intensive (Antikainen & Martin, 2005; Lefevre et al., 1997), motivating the development of efficient computational methods. \`
77
+
78
+ Dataset – We derive a novel dataset by collecting single-point mutations from the SKEMPI database (Jankauskaite et al., 2019) and model each mutation into the structure to produce mutated structures. ˙ Metrics – We formulate this as a binary classification task where we predict whether the stability of the complex increases as a result of the mutation.
79
+
80
+ Split – We split protein complexes by sequence identity at $30 \%$
81
+
82
+ # 3.5 LIGAND BINDING AFFINITY (LBA)
83
+
84
+ Impact – Most therapeutic drugs and many molecules critical for biological signaling take the form of small molecules. Predicting the strength of the protein-small molecule interaction is a challenging but crucial task for drug discovery applications.
85
+
86
+ Dataset – We use the PDBBind database (Wang et al., 2004; Liu et al., 2015), a curated database containing protein-ligand complexes from the PDB and their corresponding binding strengths. Metrics – We predict $p K = - \log ( K )$ , where $K$ is the binding affinity in Molar units. Split – We split protein-ligand complexes by protein sequence identity at $30 \%$ .
87
+
88
+ # 3.6 LIGAND EFFICACY PREDICTION (LEP)
89
+
90
+ Impact – Many proteins switch on or off their function by changing shape. Predicting which shape a drug will favor is thus an important task in drug design.
91
+
92
+ Dataset – We develop a novel dataset by curating proteins from several families with both ”active” and ”inactive” state structures, and model in 527 small molecules with known activating or inactivating function using the program Glide (Friesner et al., 2004).
93
+
94
+ Metrics – We formulate this as a binary classification task where we predict whether or not a molecule bound to the structures will be an activator of the protein’s function or not.
95
+
96
+ Split – We split complex pairs by protein.
97
+
98
+ # 3.7 PROTEIN STRUCTURE RANKING (PSR)
99
+
100
+ Impact – Proteins are one of the primary workhorses of the cell, and knowing their structure is often critical to understanding (and engineering) their function.
101
+
102
+ Dataset – The Critical Assessment of Structure Prediction (CASP) (Kryshtafovych et al., 2019) is a blind international competition for predicting protein structure.
103
+
104
+ Metrics – We formulate this as a regression task, where we predict the global distance test (GDT TS) from the true structure for each of the predicted structures submitted in the last 18 years of CASP. Split – We split structures temporally by competition year.
105
+
106
+ # 3.8 RNA STRUCTURE RANKING (RSR)
107
+
108
+ Impact – Similar to proteins, RNA plays major functional roles (e.g., gene regulation) and can adopt well-defined 3D shapes. Yet the problem is data-poor, with only a few hundred known structures. Dataset – Candidate models generated by FARFAR2 (Watkins & Das, 2019) for the first 21 released RNA Puzzle challenges (Cruz et al., 2012), a blind structure prediction competition for RNA. Metrics – We predict the root-mean-squared deviation (RMSD) from the ground truth structure. Split – We split structures temporally by competition year.
109
+
110
+ # 4 EXPERIMENTAL SETUP
111
+
112
+ To assess the benefits of 3D molecular learning, we use a combination of existing and novel 3D molecular learning methods, and implement a number of robust baselines. Our 3D molecular learning methods belong to one of each of the major classes of deep learning algorithms that have been applied to atomistic systems: graph networks, three-dimensional convolutional networks, and equivariant networks. Here we describe the core networks and the novel extensions needed to adapt them to certain datasets. See Appendix C.2 for task-specific details and hyperparameters.
113
+
114
+ # 4.1 CORE NETWORKS
115
+
116
+ For GNNs, we represent molecular systems as graphs in which each node is an atom. Edges are defined between all atoms separated by less than $4 . 5 \textup { \AA }$ , and weighted by the distance between the atoms. Node features are one-hot-encoded by atom type. Our core model uses five layers of graph convolutions, each followed by batch normalization and ReLU activation, a sum pooling layer, and two fully-connected layers with dropout.
117
+
118
+ For 3DCNNs, we represent our data as a cube of fixed size (different per task due to the different molecular sizes) in 3D space that is discretized into voxels with resolution of $1 \textup { \AA }$ to form a grid. Each voxel is associated with a one-hot-encoded vector which denotes the presence or absence of each atom type. Our core model consists of four 3D-convolutional layers, each followed by maxpooling, dropout, and ReLU activation, and two fully-connected layers.
119
+
120
+ For ENNs, we use SE(3)-equivariant networks that represent each atom of a structure by its position as absolute coordinates in 3D space with one-hot-encoded atom type as features. No rotational augmentation is needed due to the rotational symmetry of the network. The core of all architectures in this work is a network of four layers of covariant neurons that use the Clebsch–Gordan transform as nonlinearity, as described and implemented in Anderson et al. (2019).
121
+
122
+ # 4.2 SIAMESE ARCHITECTURES
123
+
124
+ For tasks involving comparing two sets of atoms sampled from the same distributions, we also develop new architectures that are Siamese in nature. Specifically, the PIP dataset involves predicting a symmetric interaction between two proteins, while the MSP and LEP datasets involve a symmetric comparison between two interactions. Taking inspiration from Townshend et al. (2019)’s use of a Siamese 3DCNN network for the PIP dataset, we replicate that architecture for our PIP, MSP, and LEP datasets, and develop new Siamese GNN and Siamese ENN networks. Specifically, we train a pair of core networks with tied weights, ensuring symmetric treatment of both items of the pair. We then combine the final learned embeddings from both core networks to output a final prediction. Beyond the novelty of weight-tying atom-level GNNs and ENNs, to our knowledge this is also the first use of weight-tying across SE(3)-equivariant networks.
125
+
126
+ # 4.3 AMINO ACID OUTPUTS
127
+
128
+ Certain tasks involve making a prediction on a specific amino acid (PIP, RES, and MSP; see Table 2), yet GNNs and ENNs typically rely on summing over all node embeddings to compute a final graph embedding, making it difficult to isolate this amino acid. To remedy this, after our convolutional layers we implement the novel procedure of extracting the embedding of only the $\mathbf { \boldsymbol { C } } \alpha$ atom of the amino acid in question, thereby allowing our GNNs and ENNs to isolate it.
129
+
130
+ # 5 RESULTS
131
+
132
+ To assess the utility of 3D molecular learning, we evaluate our methods on the ATOM3D datasets and compare performance to state-of-the-art methods using 1D or 2D representations. We stress that in many cases, 3D molecular learning methods have never been applied to the proposed tasks, and that several of the tasks are novel. In the following sections, we describe the results of our benchmarking and some key insights that can be derived from them. We also aggregate these results along with additional metrics and standard deviations over three replicates in Appendix E.
133
+
134
+ # 5.1 3D REPRESENTATIONS CONSISTENTLY IMPROVE PERFORMANCE
135
+
136
+ Our evaluation of 3D methods on the tasks in ATOM3D reveals that incorporating atomistic geometry leads to consistently superior performance compared to 1D and 2D methods. For small molecules, state-of-the-art methods do not use 1D representations, so we focus instead on comparing to representations at the 2D level, i.e. the chemical bond graph. This is the approach taken by the 2D GNN introduced by Tsubaki et al. (2019) or the N-gram graph method by Liu et al. (2019), which both obtain similar results (Table 3) on the small-molecule-only dataset SMP. When we add 3D distance, as done for our GNN model, we improve performance across all targets in SMP (Table 3).
137
+
138
+ For tasks involving biopolymers (proteins and RNA), state-of-the-art methods do not use 2D representations, primarily because most of the chemical bond graph can be easily re-derived from the 1D representation, i.e. the linear sequence that makes up the biopolymer. We thus compare to representations at the 1D level (Table 7). For MSP and RES, both new datasets, we evaluate against Rao et al. (2019)’s TAPE model, a transformer architecture that operates on protein sequence and is state-of-the-art amongst 1D methods for many tasks. For PIP, we compare to the sequence-only version of BIPSPI (Sanchez-Garcia et al., 2018), a state-of-the-art boosted decision tree method for protein interaction prediction. We find that 3D methods outperform these 1D methods on all biopolymer-only datasets (PIP, RES, MSP).
139
+
140
+ For tasks involving both biopolymers and small molecules, we compare DeepDTA (Ozt ¨ urk et al., ¨ 2018). This network uses a 1D representation via a 1DCNN for both the biopolymer and small molecules. For LBA, we additionally compare to DeepAffinity (Karimi et al., 2019) which uses pairs of a ligand SMILES string and a novel representation of structurally-annotated protein sequences. Using a 3D representation for both ligand and protein instead leads to improved performance for the joint protein-small molecule datasets (LBA and LEP, see Table 5).
141
+
142
+ The biopolymer structure ranking tasks (PSR and RSR) are inherently 3D in nature, as they involve evaluating the correctness of different 3D shapes taken on by the same biopolymer. Thus, critically, a 1D or 2D representation would not be able to differentiate between these different shapes since the linear sequence and chemical bond graph would remain the same. We therefore compare to state-of-the-art 3D methods as shown in Table 6.
143
+
144
+ Table 3: Small molecule results. Metric is mean absolute error (MAE).
145
+
146
+ <table><tr><td rowspan="2">Task</td><td rowspan="2">Target</td><td colspan="3">3D</td><td colspan="2">Non-3D</td></tr><tr><td>3DCNN</td><td>GNN</td><td>ENN</td><td>Tsubaki et al. (2019)</td><td>Liu et al. (2019)</td></tr><tr><td rowspan="3">SMP</td><td>μ[D]</td><td>0.572</td><td>0.068</td><td>0.046</td><td>0.496</td><td>0.520</td></tr><tr><td>gap[eV]</td><td>0.589</td><td>0.091</td><td>0.065</td><td>0.154</td><td>0.184</td></tr><tr><td>Ut[ev]</td><td>1.615</td><td>0.070</td><td>0.023</td><td>0.182</td><td>0.218</td></tr></table>
147
+
148
+ Table 4: Biopolymer results. AUROC is the area under the receiver operating characteristic curve. Asterisks $( ^ { * } )$ indicate that the exact training data differed (though splitting criteria were the same).
149
+
150
+ <table><tr><td rowspan="2">Task</td><td rowspan="2">Metric</td><td colspan="3">3D</td><td colspan="2">Non-3D</td></tr><tr><td>3DCNN</td><td>GNN</td><td>ENN</td><td>Sanchez-Garcia et al. (2018)</td></tr><tr><td>PIP</td><td>AUROC</td><td>0.844</td><td>*0.669</td><td>一</td><td>0.841</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>Rao et al. (2019)</td></tr><tr><td>RES</td><td>accuracy</td><td>0.451</td><td>0.082</td><td>*0.072</td><td>*0.30</td></tr><tr><td>MSP</td><td>AUROC</td><td>0.520</td><td>0.637</td><td>0.678</td><td>0.554</td></tr></table>
151
+
152
+ Table 5: Joint small molecule/biopolymer results. $R _ { S }$ is Spearman correlation, $R _ { P }$ is Pearson correlation, AUROC is area under the receiver operating characteristic curve, and RMSD is root-mean-squared deviation. Asterisks $( ^ { * } )$ indicate that the exact training data differed (though splitting criteria were the same).
153
+
154
+ <table><tr><td rowspan="2">Task</td><td rowspan="2">Metric</td><td colspan="3">3D</td><td colspan="2">Non-3D</td></tr><tr><td>3DCNN</td><td>GNN</td><td>ENN</td><td>Oztirk et al. (2018)</td><td>Karimi et al. (2019)</td></tr><tr><td rowspan="3">LBA</td><td>RMSD</td><td>1.520</td><td>1.936</td><td>*1.429</td><td>1.565</td><td>1.893</td></tr><tr><td>glob.Rp</td><td>0.558</td><td>0.581</td><td>*0.541</td><td>0.573</td><td>0.415</td></tr><tr><td>glob.Rs</td><td>0.556</td><td>0.647</td><td>*0.532</td><td>0.574</td><td>0.426</td></tr><tr><td>LEP</td><td>AUROC</td><td>0.824</td><td>0.678</td><td>0.569</td><td>0.696</td><td>1</td></tr></table>
155
+
156
+ Table 6: Structure ranking results. $R _ { S }$ is Spearman correlation, $R _ { P }$ is Pearson correlation. Mean measures the correlation for structures corresponding to the same biopolymer, whereas global measures the correlation across all biopolymers.
157
+
158
+ <table><tr><td rowspan="2">Task</td><td rowspan="2">Metric</td><td colspan="3">3D</td></tr><tr><td>3DCNN</td><td>GNN</td><td>SotA</td></tr><tr><td rowspan="2">PSR</td><td>mean Rs</td><td>0.177</td><td>0.327</td><td>0.432 (Pages et al., 2019)</td></tr><tr><td>glob. Rs</td><td>0.837</td><td>0.716</td><td>0.796 (Pages et al., 2019)</td></tr><tr><td rowspan="2">RSR</td><td>mean Rs</td><td>0.414</td><td>0.195</td><td>0.173 (Alford et al.,2017)</td></tr><tr><td>glob. Rs</td><td>0.656</td><td>0.309</td><td>0.304 (Alford et al., 2017)</td></tr></table>
159
+
160
+ More generally, we find that learning methods that leverage the 3D geometry of molecules hold state-of-the-art on all tasks on our benchmark (Appendix D).
161
+
162
+ 5.2 MANY 3D MOLECULAR LEARNING PROBLEMS REMAIN UNDEREXPLORED
163
+
164
+ As demonstrated in the previous section, formulating a molecular problem through the lens of 3D molecular learning can lead to significantly improved performance. However, many important problems have not been studied within this framework, leaving significant room for further improvement. This opens up a ripe field of research with much low-hanging fruit. One prominent example we explore here is RNA structure ranking, where the state-of-the-art method uses Rosetta (Alford et al., 2017), a hand-designed potential energy function. When we instead apply our 3DCNN method that learns directly from the 3D atomistic geometry, we see dramatic increases in performance (Table 6).
165
+
166
+ In a similar vein, on the ligand efficacy prediction task we find that the 3DCNN method outperforms Glide (Friesner et al., 2004), a state-of-the-art scoring function for protein-small molecule docking. The 3DCNN achieves an AUROC of 0.824, compared to Glide’s 0.770.
167
+
168
+ We also find room for improvement in domains where 3D molecular learning is already being employed. Protein structure ranking is one such area, and we see that the 3DCNN model is competitive with the state-of-the-art deep learning method by Pages et al. (2019) (Table 6), surpassing it in terms \` of absolute assessment of correctness (i.e., comparing 3D candidates from different biopolymers) though not in terms of relative assessment (i.e., comparing 3D candidates from the same biopolymer).
169
+
170
+ Overall, these results demonstrate the potential of 3D molecular learning to address a wide range of problems involving molecular structure, and we anticipate that continued development of such models on less well-studied tasks will aid progress in biomedical research.
171
+
172
+ # 5.3 DIFFERENT TASKS REQUIRE DIFFERENT ARCHITECTURES
173
+
174
+ While atomistic methods consistently outperform their non-3D counterparts and provide a systematic way of representing molecular data, our results also provide evidence that architecture selection plays a critical role in performance. For tasks primarily focused on small molecules (SMP and LBA), we see superior performance from the particle-based methods (GNN and ENN) than from the volumetric 3DCNN. Small molecules are already intuitively represented as graph-like structures, with nodes (atoms) and edges (bonds), and the quantities computed in these small molecule tasks depend less on complex 3D geometry and more on the exact position of each atom relative to its neighbors. Unlike particle-based methods, 3DCNNs must approximate these positions, and while increasing spatial resolution increases precision, it also leads to cubic scaling of complexity.
175
+
176
+ On the other hand, for larger molecules and complex 3D geometries that are critical to tasks like PSR, RSR, LEP, and RES, we see that the 3DCNN method outperforms GNNs. Here, the 3DCNN’s ability to directly represent differences between patterns in 3D space, as opposed to trying to reconstruct them through pairwise distances, is likely what allows it to perform well. In these tasks, the exact position and relational information between atoms is less important than their overall conformation.
177
+
178
+ Finally, equivariant networks show promise but suffer from scalability issues. One motivation for the development of equivariant networks is that they fill a “happy medium” where they can both represent atom positions precisely and capture complex geometries. On some of the tasks where we could test the ENN (LBA, SMP), we often observed close to state-of-the-art performance, even on a reduced training set (LBA). Unfortunately, current implementations do not yet scale to most of our tasks due to the compute- and memory-intensive nature of the Clebsch-Gordan products used to maintain rotational equivariance. For some tasks, the performance was severely limited by only training on a fraction of the data $< 1 \%$ for RES) or a portion of the entire atomic structure (LEP), and for others we could not apply the ENN at all. These limitations point to the need for further architectural innovations before their performance can be demonstrated on extended systems.
179
+
180
+ # 6 CONCLUSION
181
+
182
+ In this work we present a vision of 3D atom-level data as a new “machine learning datatype” deserving focused study. Atomistic data shares several underlying symmetries, contains poorly understood higher-level patterns, and can be used to address many high-impact but unsolved problems.
183
+
184
+ We create several benchmark datasets and compare the performance of different types of 3D molecular learning models across these tasks. Many of these architectures were developed specifically for the tasks in question, such as the Siamese ENN and GNN models used for paired tasks (PIP, MSP, and LEP). For tasks that can be formulated in lower dimensions, we demonstrate that 3D molecular learning yields consistent gains in performance over 1D and 2D methods. We also show that selection of an appropriate architecture is critical for optimal performance on a given task; depending on the structure of the underlying data, a 3DCNN, GNN, or ENN may be most appropriate. As equivariant networks continue to improve in efficiency and stability, we expect these to become more and more viable due to their close modeling of physical laws.
185
+
186
+ While ATOM3D establishes a first set of benchmark datasets, there are many other open areas in biomedical research and molecular science that are ripe for 3D molecular learning, especially as structural data becomes readily available. Such tasks include virtual screening and pose prediction of small molecule drugs, or the prediction of conformational ensembles instead of static structures. The use of multiple 3D conformations per molecule represents an especially promising direction, as they would more faithfully reproduce the entire set of states a given molecule could adopt. As such, we envision expanding the ATOM3D framework beyond the tasks described here.
187
+
188
+ Through this work, we hope to lower the entry barrier for machine learning practitioners, encourage the development of machine learning algorithms focused on 3D atomistic data, and promote a novel paradigm within the fields of structural biology and medicinal chemistry.
189
+
190
+ # REFERENCES
191
+
192
+ Rebecca F. Alford, Andrew Leaver-Fay, Jeliazko R. Jeliazkov, Matthew J. O’Meara, Frank P. DiMaio, Hahnbeom Park, Maxim V. Shapovalov, P. Douglas Renfrew, Vikram K. Mulligan, Kalli Kappel, Jason W. Labonte, Michael S. Pacella, Richard Bonneau, Philip Bradley, Roland L. Dunbrack, Rhiju Das, David Baker, Brian Kuhlman, Tanja Kortemme, and Jeffrey J. Gray. The Rosetta All-Atom Energy Function for Macromolecular Modeling and Design. Journal of Chemical Theory and Computation, 13(6):3031–3048, 2017. ISSN 15499626. doi: 10.1021/acs.jctc.7b00125.
193
+
194
+ S F Altschul, W Gish, W Miller, E W Myers, and D J Lipman. Basic local alignment search tool. Journal of Molecular Biology, 215(3):403–10, 1990. ISSN 0022-2836. doi: 10.1016/S0022-2836(05)80360-2. URL http://www.sciencedirect.com/science/ article/pii/S0022283605803602.
195
+
196
+ Namrata Anand, Raphael R Eguchi, Alexander Derry, Russ B Altman, and Po-Ssu Huang. Protein sequence design with a learned potential. January 2020.
197
+
198
+ Brandon Anderson, Truong-Son Hy, and Risi Kondor. Cormorant: Covariant Molecular Neural Networks. 2019. URL http://arxiv.org/abs/1906.04015.
199
+
200
+ Antonina Andreeva, Dave Howorth, Cyrus Chothia, Eugene Kulesha, and Alexey G. Murzin. SCOP2 prototype: A new approach to protein structure mining. Nucleic Acids Research, 42 (D1):310–314, 2014. ISSN 03051048. doi: 10.1093/nar/gkt1242.
201
+
202
+ Nina M Antikainen and Stephen F Martin. Altering protein specificity: techniques and applications. Bioorganic & medicinal chemistry, 13(8):2701–2716, 2005.
203
+
204
+ Chloe-Agathe Azencott, Alexandre Ksikes, S Joshua Swamidass, Jonathan H Chen, Liva Ralaivola, ´ and Pierre Baldi. One-to four-dimensional kernels for virtual screening and the prediction of physical, chemical, and biological properties. Journal of chemical information and modeling, 47 (3):965–974, 2007.
205
+
206
+ Pedro J Ballester and John B O Mitchell. A machine learning approach to predicting protein–ligand binding affinity with applications to molecular docking. Bioinformatics, 26(9):1169–1175, May 2010.
207
+
208
+ Helen M Berman, John Westbrook, Zukang Feng, Gary Gilliland, Talapady N Bhat, Helge Weissig, Ilya N Shindyalov, and Philip E Bourne. The protein data bank. Nucleic acids research, 28(1): 235–242, 2000.
209
+
210
+ Wouter Boomsma and Jes Frellsen. Spherical convolutions and their application in molecular modelling. In I Guyon, U V Luxburg, S Bengio, H Wallach, R Fergus, S Vishwanathan, and R Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 3433–3443. Curran Associates, Inc., 2017.
211
+
212
+ Sidhartha Chaudhury, Sergey Lyskov, and Jeffrey J Gray. Pyrosetta: a script-based interface for implementing molecular modeling algorithms using rosetta. Bioinformatics, 26(5):689–691, 2010.
213
+
214
+ Tianqi Chen and Carlos Guestrin. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, pp. 785–794, New York, NY, USA, 2016. Association for Computing Machinery. ISBN 9781450342322. doi: 10.1145/2939672.2939785. URL https://doi.org/10. 1145/2939672.2939785.
215
+
216
+ Jianlin Cheng, Arlo Randall, Michael Sweredoski, and Pierre Baldi. Scratch: a protein structure and structural feature prediction server. Nucleic acids research, 33:W72–6, 08 2005. doi: 10.1093/ nar/gki396.
217
+
218
+ Jose Almeida Cruz, Marc-Fr ´ ed´ erick Blanchet, Michal Boniecki, Janusz M Bujnicki, Shi-Jie Chen, ´ Song Cao, Rhiju Das, Feng Ding, Nikolay V Dokholyan, Samuel Coulbourn Flores, et al. Rnapuzzles: a casp-like evaluation of rna three-dimensional structure prediction. Rna, 18(4):610–625, 2012.
219
+
220
+ Natalie L Dawson, Tony E Lewis, Sayoni Das, Jonathan G Lees, David Lee, Paul Ashford, Christine A Orengo, and Ian Sillitoe. Cath: an expanded resource to predict protein function through structure and sequence. Nucleic acids research, 45(D1):D289–D295, 2017.
221
+
222
+ Georgy Derevyanko, Sergei Grudinin, Yoshua Bengio, and Guillaume Lamoureux. Deep convolutional networks for quality assessment of protein folds. Bioinformatics, 34(23):4046–4053, 2018.
223
+
224
+ David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan´ Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In Advances in neural information processing systems, pp. 2224–2232, 2015.
225
+
226
+ Stephan Eismann, Raphael J L Townshend, Nathaniel Thomas, Milind Jagota, Bowen Jing, and Ron Dror. Hierarchical, rotation-equivariant neural networks to predict the structure of protein complexes. arXiv, 2020.
227
+
228
+ Matthias Fey and Jan E. Lenssen. Fast graph representation learning with PyTorch Geometric. In ICLR Workshop on Representation Learning on Graphs and Manifolds, 2019.
229
+
230
+ Alex Fout, Jonathon Byrd, Basir Shariat, and Asa Ben-Hur. Protein interface prediction using graph convolutional networks. In I Guyon, U V Luxburg, S Bengio, H Wallach, R Fergus, S Vishwanathan, and R Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 6530–6539. Curran Associates, Inc., 2017.
231
+
232
+ Richard A Friesner, Jay L Banks, Robert B Murphy, Thomas A Halgren, Jasna J Klicic, Daniel T Mainz, Matthew P Repasky, Eric H Knoll, Mee Shelley, Jason K Perry, et al. Glide: a new approach for rapid, accurate docking and scoring. 1. method and assessment of docking accuracy. Journal of medicinal chemistry, 47(7):1739–1749, 2004.
233
+
234
+ M. V. Shapovalov G. G. Krivov and R. L. Dunbrack. Improved prediction of protein side-chain conformations with scwrl4. Proteins, 2009. URL http://dunbrack.fccc.edu/SCWRL3. php/.
235
+
236
+ Joffrey Gabel, Jer´ emy Desaphy, and Didier Rognan. Beware of machine learning-based scoring ´ functions-on the danger of developing black boxes. J. Chem. Inf. Model., 54(10):2807–2815, October 2014.
237
+
238
+ Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry, 2017.
239
+
240
+ Jie Hou, Renzhi Cao, and Jianlin Cheng. Deep convolutional neural networks for predicting the quality of single protein structural models. bioRxiv, 2019. doi: 10.1101/590620. URL https: //www.biorxiv.org/content/early/2019/03/28/590620.
241
+
242
+ John Ingraham, Vikas K Garg, Regina Barzilay, and Tommi Jaakkola. Generative models for GraphBased protein design. March 2019.
243
+
244
+ Justina Jankauskaite, Brian Jim ˙ enez-Garc ´ ´ıa, Justas Dapkunas, Juan Fern ¯ andez-Recio, and Iain H ´ Moal. Skempi 2.0: an updated benchmark of changes in protein–protein binding energy, kinetics and thermodynamics upon mutation. Bioinformatics, 35(3):462–469, 2019.
245
+
246
+ Jia Deng, Wei Dong, R. Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. pp. 248–255, 2009. doi: 10.1109/cvprw.2009.5206848.
247
+
248
+ Jose Jim ´ enez, Miha ´ Skali ˇ c, Gerard Mart ˇ ´ınez-Rosell, and Gianni De Fabritiis. KDEEP: ProteinLigand absolute binding affinity prediction via 3D-Convolutional neural networks. J. Chem. Inf. Model., 58(2):287–296, February 2018.
249
+
250
+ Robbie Joosten, Tim Beek, Elmar Krieger, Maarten Hekkelman, Rob Hooft, Reinhard Schneider, Chris Sander, and Gert Vriend. A series of pdb related databases for everyday needs. Nucleic acids research, 39:D411–9, 11 2010. doi: 10.1093/nar/gkq1105.
251
+
252
+ Wolfgang Kabsch and Christian Sander. Dictionary of protein secondary structure: Pattern recognition of hydrogen-bonded and geometrical features. Biopolymers, 22(12):2577–2637, 1983. ISSN 1097-0282. doi: 10.1002/bip.360221211. URL http://dx.doi.org/10.1002/ bip.360221211.
253
+
254
+ Mostafa Karimi, Di Wu, Zhangyang Wang, and Yang Shen. Deepaffinity: interpretable deep learning of compound–protein affinity through unified recurrent and convolutional neural networks. Bioinformatics, 35(18):3329–3338, 2019.
255
+
256
+ Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
257
+
258
+ Risi Kondor. N-body networks: a covariant hierarchical neural network architecture for learning atomic potentials, 2018.
259
+
260
+ Christian Kramer and Peter Gedeck. Leave-cluster-out cross-validation is appropriate for scoring functions derived from diverse protein data sets. J. Chem. Inf. Model., 50(11):1961–1969, November 2010.
261
+
262
+ Andriy Kryshtafovych, Torsten Schwede, Maya Topf, Krzysztof Fidelis, and John Moult. Critical assessment of methods of protein structure prediction (casp)—round xiii. Proteins: Structure, Function, and Bioinformatics, 87(12):1011–1020, 2019.
263
+
264
+ Andrew Leaver-Fay, Michael Tyka, Steven Lewis, Oliver Lange, James Thompson, Ron Jacak, Kristian Kaufman, P. Renfrew, Colin Smith, Will Sheffler, Ian Davis, Seth Cooper, Adrien Treuille, Daniel Mandell, Florian Richter, Yih-En Ban, Sarel Fleishman, Jacob Corn, David Kim, and Philip Bradley. Rosetta3: an object-oriented software suite for the simulation and design of macromolecules. Methods in enzymology, 487:545–74, 01 2011.
265
+
266
+ Fabrice Lefevre, Marie-H \` el´ ene R \` emy, and Jean-Michel Masson. Alanine-stretch scanning muta- ´ genesis: a simple and efficient method to probe protein structure and function. Nucleic acids research, 25(2):447–448, 1997.
267
+
268
+ Yan Li, Zhihai Liu, Jie Li, Li Han, Jie Liu, Zhixiong Zhao, and Renxiao Wang. Comparative assessment of scoring functions on an updated benchmark: 1. compilation of the test set. J. Chem. Inf. Model., 54(6):1700–1716, June 2014.
269
+
270
+ Yang Li and Jianyi Yang. Structural and sequence similarity makes a significant impact on machinelearning-based scoring functions for protein–ligand interactions. Journal of Chemical Information and Modeling, 57(4):1007–1012, 2017.
271
+
272
+ Shengchao Liu, Mehmet F Demirel, and Yingyu Liang. N-gram graph: Simple unsupervised representation for graphs, with applications to molecules. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alche-Buc, E. Fox, and R. Garnett (eds.), ´ Advances in Neural Information Processing Systems 32, pp. 8464–8476. Curran Associates, Inc., 2019.
273
+
274
+ Zhihai Liu, Yan Li, Li Han, Jie Li, Jie Liu, Zhixiong Zhao, Wei Nie, Yuchen Liu, and Renxiao Wang. PDB-wide collection of binding data: current status of the PDBbind database. Bioinformatics, 31 (3):405–412, February 2015.
275
+
276
+ Christophe Magnan and Pierre Baldi. Sspro/accpro 5: Almost perfect prediction of protein secondary structure and relative solvent accessibility using profiles, machine learning, and structural similarity. Bioinformatics (Oxford, England), 30:2592–97, 05 2014. doi: 10.1093/bioinformatics/ btu352.
277
+
278
+ Simon Mitternacht. FreeSASA: An open source C library for solvent accessible surface area calculations. F1000Research, 5(189), 2016. ISSN 1759796X. doi: 10.12688/f1000research.7931.1.
279
+
280
+ Frank Noe, Simon Olsson, Jonas K ´ ohler, and Hao Wu. Boltzmann generators: Sampling equilibrium ¨ states of many-body systems with deep learning. Science, 365(6457), 2019. ISSN 0036-8075. doi: 10.1126/science.aaw1147. URL https://science.sciencemag.org/content/ 365/6457/eaaw1147.
281
+
282
+ Hakime Ozt ¨ urk, Elif Ozkirimli, and Arzucan ¨ Ozg ¨ ur. DeepDTA: Deep Drug-Target Binding Affinity¨ Prediction. pp. 1–17, 2018. URL http://arxiv.org/abs/1801.10193.
283
+
284
+ Guillaume Pages, Benoit Charmettant, and Sergei Grudinin. Protein model quality assessment using \` 3d oriented convolutional neural networks. Bioinformatics, 35(18):3313–3319, 2019.
285
+
286
+ Matthew Ragoza, Joshua Hochuli, Elisa Idrobo, Jocelyn Sunseri, and David Ryan Koes. ProteinLigand scoring with convolutional neural networks. J. Chem. Inf. Model., 57(4):942–957, April 2017.
287
+
288
+ Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuad: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. EMNLP 2016 - Conference on Empirical Methods in Natural Language Processing, Proceedings, (ii):2383–2392, 2016.
289
+
290
+ Raghunathan Ramakrishnan, Pavlo O. Dral, Matthias Rupp, and O. Anatole Von Lilienfeld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific Data, 1:1–7, 2014. ISSN 20524463. doi: 10.1038/sdata.2014.22.
291
+
292
+ Roshan Rao, Nicholas Bhattacharya, Neil Thomas, Yan Duan, Peter Chen, John Canny, Pieter Abbeel, and Yun Song. Evaluating protein transfer learning with tape. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alche-Buc, E. Fox, and R. Gar- ´ nett (eds.), Advances in Neural Information Processing Systems 32, pp. 9689– 9701. Curran Associates, Inc., 2019. URL http://papers.nips.cc/paper/ 9163-evaluating-protein-transfer-learning-with-tape.pdf.
293
+
294
+ Lars Ruddigkeit, Ruud van Deursen, Lorenz C Blum, and Jean-Louis Reymond. Enumeration of 166 Billion Organic Small Molecules in the Chemical Universe Database GDB-17. Journal of Chemical Information and Modeling, 52(11):2864–2875, nov 2012. ISSN 1549-9596. doi: 10. 1021/ci300415d. URL https://doi.org/10.1021/ci300415d.
295
+
296
+ Ruben Sanchez-Garcia, C O S Sorzano, J M Carazo, and Joan Segura. BIPSPI: a method for the prediction of partner-specific protein–protein interfaces. Bioinformatics, 35(14):343–353, 2018. ISSN 1367-4803. doi: 10.1093/bioinformatics/bty647. URL https://academic.oup.com/bioinformatics/advance-article/doi/ 10.1093/bioinformatics/bty647/5055586.
297
+
298
+ Soumya Sanyal, Ivan Anishchenko, Anirudh Dagar, David Baker, and Partha Talukdar. Proteingcn: Protein model quality assessment using graph convolutional networks. bioRxiv, 2020. doi: 10. 1101/2020.04.06.028266. URL https://www.biorxiv.org/content/early/2020/ 04/07/2020.04.06.028266.
299
+
300
+ Schrodinger, LLC. The PyMOL molecular graphics system, version 1.8. November 2015. ¨
301
+
302
+ Kristof T. Schutt, Pieter-Jan Kindermans, Huziel E. Sauceda, Stefan Chmiela, Alexandre¨ Tkatchenko, and Klaus-Robert Muller. Schnet: A continuous-filter convolutional neural network¨ for modeling quantum interactions, 2017.
303
+
304
+ Andrew W Senior, Richard Evans, John Jumper, James Kirkpatrick, Laurent Sifre, Tim Green, Chongli Qin, Augustin Zˇ ´ıdek, Alexander WR Nelson, Alex Bridgland, et al. Improved protein structure prediction using potentials from deep learning. Nature, pp. 1–5, 2020.
305
+
306
+ Minyi Su, Qifan Yang, Yu Du, Guoqin Feng, Zhihai Liu, Yan Li, and Renxiao Wang. Comparative assessment of scoring functions: The CASF-2016 update. J. Chem. Inf. Model., 59(2):895–913, February 2019.
307
+
308
+ S Joshua Swamidass, Jonathan Chen, Jocelyne Bruand, Peter Phung, Liva Ralaivola, and Pierre Baldi. Kernels for small molecules and the prediction of mutagenicity, toxicity and anti-cancer activity. Bioinformatics, 21(suppl 1):i359–i368, 2005.
309
+
310
+ Nathaniel Thomas, Tess Smidt, Steven M. Kearnes, Lusann Yang, Li Li, Kai Kohlhoff, and Patrick Riley. Tensor field networks: Rotation- and translation-equivariant neural networks for 3d point clouds. CoRR, abs/1802.08219, 2018. URL http://arxiv.org/abs/1802.08219.
311
+
312
+ Wen Torng and Russ B Altman. 3D deep convolutional neural networks for amino acid environment similarity analysis. BMC Bioinformatics, 18(1):302, June 2017.
313
+
314
+ Raphael Townshend, Rishi Bedi, Patricia Suriana, and Ron Dror. End-to-end learning on 3d protein structure for interface prediction. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alche-Buc, ´ E. Fox, and R. Garnett (eds.), Advances in Neural Information Processing Systems 32, pp. 15642– 15651. 2019.
315
+
316
+ Masashi Tsubaki, Kentaro Tomii, and Jun Sese. Compound-protein interaction prediction with endto-end learning of neural networks for graphs and sequences. Bioinformatics, 35(2):309–318, 2019. ISSN 14602059. doi: 10.1093/bioinformatics/bty535.
317
+
318
+ Karolis Uziela, David Menendez Hurtado, Nanjiang Shu, Bj ´ orn Wallner, and Arne Elofsson. ¨ ProQ3d: improved model quality assessments using deep learning. Bioinformatics, pp. btw819, jan 2017. doi: 10.1093/bioinformatics/btw819. URL https://doi.org/10.1093% 2Fbioinformatics%2Fbtw819.
319
+
320
+ Thom Vreven, Iain H. Moal, Anna Vangone, Brian G. Pierce, Panagiotis L. Kastritis, Mieczyslaw Torchala, Raphael Chaleil, Brian Jimenez-Garc ´ ´ıa, Paul A. Bates, Juan Fernandez-Recio, Alexandre M.J.J. Bonvin, and Zhiping Weng. Updates to the integrated protein–protein interaction benchmarks: Docking benchmark version 5 and affinity benchmark version 2. Journal of Molecular Biology, 427(19):3031 – 3041, 2015. ISSN 0022-2836. doi: https://doi. org/10.1016/j.jmb.2015.07.016. URL http://www.sciencedirect.com/science/ article/pii/S0022283615004180.
321
+
322
+ Izhar Wallach, Michael Dzamba, and Abraham Heifets. Atomnet: A deep convolutional neural network for bioactivity prediction in structure-based drug discovery, 2015.
323
+
324
+ Renxiao Wang, Xueliang Fang, Yipin Lu, and Shaomeng Wang. The pdbbind database: collection of binding affinities for proteinligand complexes with known three-dimensional structures. Journal of Medicinal Chemistry, 47(12):2977–2980, 2004. doi: 10.1021/jm030580l. URL https: //doi.org/10.1021/jm030580l. PMID: 15163179.
325
+
326
+ Andrew M Watkins and Rhiju Das. Farfar2: Improved de novo rosetta prediction of complex global rna folds. bioRxiv, pp. 764449, 2019.
327
+
328
+ Maurice Weiler, Mario Geiger, Max Welling, Wouter Boomsma, and Taco Cohen. 3D steerable CNNs: Learning rotationally equivariant features in volumetric data. July 2018.
329
+
330
+ David Weininger. SMILES, a Chemical Language and Information System: 1: Introduction to Methodology and Encoding Rules. Journal of Chemical Information and Computer Sciences, 28 (1):31–36, 1988. ISSN 00952338. doi: 10.1021/ci00057a005.
331
+
332
+ Zhenqin Wu, Bharath Ramsundar, Evan N. Feinberg, Joseph Gomes, Caleb Geniesse, Aneesh S. Pappu, Karl Leswing, and Vijay Pande. Moleculenet: a benchmark for molecular machine learning. Chem. Sci., 9:513–530, 2018. doi: 10.1039/C7SC02664A. URL http://dx.doi.org/ 10.1039/C7SC02664A.
333
+
334
+ Yang Zhang and Jeffrey Skolnick. Scoring function for automated assessment of protein structure template quality. Proteins, 57:702–10, 09 2007. doi: 10.1002/prot.20264. URL https:// zhanglab.ccmb.med.umich.edu/TM-score/.
335
+
336
+ Alex Zhavoronkov, Yan A. Ivanenkov, Alex Aliper, Mark S. Veselov, Vladimir A. Aladinskiy, Anastasiya V. Aladinskaya, Victor A. Terentiev, Daniil A. Polykovskiy, Maksim D. Kuznetsov, Arip Asadulaev, Yury Volkov, Artem Zholus, Rim R. Shayakhmetov, Alexander Zhebrak, Lidiya I. Minaeva, Bogdan A. Zagribelnyy, Lennart H. Lee, Richard Soll, David Madge, Li Xing, Tao Guo, and Alan Aspuru-Guzik. Deep learning enables rapid identification of potent DDR1 ki- ´ nase inhibitors. Nature Biotechnology, 37(9):1038–1040, 2019. ISSN 15461696. doi: 10.1038/ s41587-019-0224-x. URL http://dx.doi.org/10.1038/s41587-019-0224-x.
337
+
338
+ David Zilian and Christoph A Sotriffer. SFCscore(RF): a random forest-based scoring function for improved affinity prediction of protein-ligand complexes. J. Chem. Inf. Model., 53(8):1923–1933, August 2013.
parse/train/jnMjOctlfbZ/jnMjOctlfbZ_content_list.json ADDED
@@ -0,0 +1,1858 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ATOM3D: TASKS ON MOLECULES IN THREE DIMENSIONS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 748,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 184,
19
+ 171,
20
+ 400,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 236,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "While a variety of methods have been developed for predicting molecular properties, deep learning networks that operate directly on three-dimensional molecular structure have recently demonstrated particular promise. In this work we present ATOM3D, a collection of both novel and existing datasets spanning several key classes of biomolecules, to systematically assess such learning methods. We develop three-dimensional molecular learning networks for each of these tasks, finding that they consistently improve performance relative to one- and twodimensional methods. The specific choice of architecture proves to be critical for performance, with three-dimensional convolutional networks excelling at tasks involving complex geometries, while graph networks perform well on systems requiring detailed positional information. Furthermore, equivariant networks show significant promise but are currently unable to scale. Our results indicate many molecular problems stand to gain from three-dimensional molecular learning. All code and datasets are available at github.com/xxxxxxx/xxxxxx. ",
40
+ "bbox": [
41
+ 233,
42
+ 267,
43
+ 764,
44
+ 460
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 489,
55
+ 336,
56
+ 505
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "A molecule’s three-dimensional (3D) shape is critical to understanding its physical mechanisms of action, and can be used to answer a number of questions relating to drug discovery, molecular design, and fundamental biology. A molecule’s atoms often adopt specific 3D configurations that minimize its free energy, and by representing these 3D positions—the atomistic geometry—we can model this 3D shape in ways that would not be possible with 1D or 2D representations such as linear sequences or chemical bond graphs (Table 1). However, existing works that examine diverse molecular tasks, such as MoleculeNet (Wu et al., 2018) or TAPE (Rao et al., 2019), focus on these lower dimensional representations. In this work, we demonstrate the benefit yielded by learning on 3D atomistic geometry and promote the development of 3D molecular learning by providing a collection of datasets leveraging this representation. ",
63
+ "bbox": [
64
+ 174,
65
+ 520,
66
+ 825,
67
+ 660
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Furthermore, we argue that the atom should be considered a “machine learning datatype” in its own right, deserving focused study much like images in computer vision or text in natural language processing. All molecules, including proteins, small molecule compounds, and nucleic acids, can be homogeneously represented as atoms in 3D space. These atoms can only belong to a fixed class of element types (e.g. carbon, nitrogen, oxygen), and are all governed by the same underlying laws of physics, leading to important rotational, translational, and permutational symmetries. These systems also contain higher-level patterns that are poorly characterized, creating a ripe opportunity for learning them from data: though certain basic components are well understood (e.g. amino acids, nucleic acids, functional groups), many others can not easily be defined. These patterns are in turn composed in a hierarchy that itself is only partially elucidated. ",
74
+ "bbox": [
75
+ 174,
76
+ 666,
77
+ 825,
78
+ 805
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "While deep learning methods such as graph neural networks (GNNs) and convolutional neural networks (CNNs) seem especially well suited to atomistic geometry, to date there has been no systematic evaluation of such methods on molecular tasks. Additionally, despite the growing number of 3D structures available in databases such as the Protein Data Bank (PDB) (Berman et al., 2000), they require significant processing before they are useful for machine learning tasks. Inspired by the success of accessible databases such as ImageNet (Jia Deng et al., 2009) and SQuAD (Rajpurkar et al., 2016) in sparking progress in their respective fields, we create and curate benchmark datasets for atomistic tasks, process them into a simple and standardized format, systematically benchmark ",
85
+ "bbox": [
86
+ 174,
87
+ 813,
88
+ 825,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "table",
95
+ "img_path": "images/33a662d0c1809dae175537cc965d7988810494dcae04e143cc407f22fddb5644.jpg",
96
+ "table_caption": [
97
+ "Table 1: Representation choice for molecules. Adding in 3D information consistently improves performance. The depicted 1D representations are the amino acid sequence and SMILES (Weininger, 1988) for proteins and small molecules, respectively. "
98
+ ],
99
+ "table_footnote": [],
100
+ "table_body": "<table><tr><td rowspan=\"2\">Structure LevelDimension</td><td rowspan=\"2\"></td><td rowspan=\"2\">Representation</td><td colspan=\"2\">Examples</td></tr><tr><td>Proteins</td><td>Small Molecules</td></tr><tr><td>primary</td><td>1D</td><td>linear sequence</td><td>KVKALPDA</td><td>CC(C)CC(C)NO</td></tr><tr><td> secondary</td><td>2D</td><td>chemical bond graph</td><td>00001 O00-01 。 0 Q Oo00 oQ00Q obo O ○ o O</td><td>80 ○</td></tr><tr><td>tertiary</td><td>3D</td><td>atomistic geometry</td><td></td><td>)</td></tr></table>",
101
+ "bbox": [
102
+ 174,
103
+ 155,
104
+ 823,
105
+ 338
106
+ ],
107
+ "page_idx": 1
108
+ },
109
+ {
110
+ "type": "text",
111
+ "text": "3D molecular learning methods, and present a set of best practices for other machine learning researchers interested in entering the field of 3D molecular learning. We develop new methods for several datasets and reveal a number of insights related to 3D molecular learning, including the consistent improvements yielded by using atomistic geometry, the lack of a single dominant method, and the presence of several tasks that can be improved through 3D molecular learning. ",
112
+ "bbox": [
113
+ 174,
114
+ 363,
115
+ 825,
116
+ 434
117
+ ],
118
+ "page_idx": 1
119
+ },
120
+ {
121
+ "type": "text",
122
+ "text": "2 RELATED WORK ",
123
+ "text_level": 1,
124
+ "bbox": [
125
+ 176,
126
+ 454,
127
+ 344,
128
+ 469
129
+ ],
130
+ "page_idx": 1
131
+ },
132
+ {
133
+ "type": "text",
134
+ "text": "Three dimensional molecular data have long been pursued as an attractive source of information in molecular learning and chemoinformatics, but until recently have achieved underwhelming results relative to 1D and 2D representations (Swamidass et al., 2005; Azencott et al., 2007). However, due to increases in data availability and methodological advances, machine learning methods based on 3D molecular structure have begun to demonstrate significant impact in the last couple of years on specific tasks such as protein structure prediction (Senior et al., 2020), equilibrium state sampling (Noe et al., 2019), and drug design (Zhavoronkov et al., 2019). While there have been some broader ´ assessments of groups of related biological tasks, these have focused on on either 1D (Rao et al., 2019) or 2D (Wu et al., 2018) representations. By focusing instead on atomistic geometry, we can consistently improve performance and address disparate problems involving any combination of small molecules, proteins, and nucleic acids through a unified lens. ",
135
+ "bbox": [
136
+ 174,
137
+ 486,
138
+ 825,
139
+ 637
140
+ ],
141
+ "page_idx": 1
142
+ },
143
+ {
144
+ "type": "text",
145
+ "text": "Graph neural networks (GNNs) have grown to be a major area of study, providing a natural way of learning from data with complex spatial structure. Many GNN implementations have been motivated by applications to atomic systems, including molecular fingerprinting (Duvenaud et al., 2015), property prediction (Schutt et al., 2017; Gilmer et al., 2017; Liu et al., 2019), protein interface pre- ¨ diction (Fout et al., 2017), and protein design (Ingraham et al., 2019). Instead of encoding points in Euclidean space, GNNs encode their pairwise connectivity, capturing a structured representation of atomistic data. ",
146
+ "bbox": [
147
+ 174,
148
+ 645,
149
+ 825,
150
+ 742
151
+ ],
152
+ "page_idx": 1
153
+ },
154
+ {
155
+ "type": "text",
156
+ "text": "Three-dimensional CNNs (3DCNNs) have also become popular as a way to capture these complex 3D geometries. They have been applied to a number of biomolecular applications such as protein interface prediction (Townshend et al., 2019), protein model quality assessment (Pages et al., 2019; \\` Derevyanko et al., 2018), protein sequence design (Anand et al., 2020), and structure-based drug discovery (Wallach et al., 2015; Torng & Altman, 2017; Ragoza et al., 2017; Jimenez et al., 2018). ´ These 3DCNNs can encode translational and permutational symmetries, but incur significant computational expense and cannot capture rotational symmetries without data augmentation. ",
157
+ "bbox": [
158
+ 174,
159
+ 750,
160
+ 825,
161
+ 847
162
+ ],
163
+ "page_idx": 1
164
+ },
165
+ {
166
+ "type": "text",
167
+ "text": "In an attempt to address many of the problems of representing atomistic geometries, equivariant neural networks (ENNs) have emerged as a new class of methods for learning from molecular systems. These networks are built such that geometric transformations of their inputs lead to well-defined transformations of their outputs. This setup leads to the neurons of the network learning rules that resemble physical interactions. Tensor field networks (Thomas et al., 2018) and Cormorant (Kondor, ",
168
+ "bbox": [
169
+ 176,
170
+ 854,
171
+ 823,
172
+ 924
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "2018; Anderson et al., 2019) have applied these principles to atomic systems and begun to demonstrate promise on extended systems (Eismann et al., 2020; Weiler et al., 2018). However, in general, these methods have not been applied to larger-scale molecular tasks. ",
179
+ "bbox": [
180
+ 174,
181
+ 103,
182
+ 823,
183
+ 146
184
+ ],
185
+ "page_idx": 2
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "3 3D MOLECULAR LEARNING ",
190
+ "text_level": 1,
191
+ "bbox": [
192
+ 176,
193
+ 166,
194
+ 441,
195
+ 183
196
+ ],
197
+ "page_idx": 2
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "We define 3D molecular learning as the set of tasks where the input space is atoms in three dimensions. We write this space as $\\mathbb { A } ^ { N }$ where $\\mathbb { A } = \\mathbb { P } \\times \\mathbb { E }$ . $\\mathbb { P } = \\mathbb { R } ^ { 3 }$ is the position space and $\\mathbb { E } = \\left\\{ C , H , O , N , P , S , \\ldots \\right\\}$ is the element space. ",
202
+ "bbox": [
203
+ 174,
204
+ 196,
205
+ 825,
206
+ 239
207
+ ],
208
+ "page_idx": 2
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "We select 3D molecular learning tasks from structural biophysics and medicinal chemistry that span a variety of molecule types and address a range of important problems. Multiple of these datasets are novel, while others are extracted from existing sources (Table 2). We provide all datasets in a standardized format that requires no specialized libraries. Alongside these datasets, we present corresponding best practices, including splitting and filtering criteria, to minimize data leakage concerns and ensure generalizability and reproducibility. Taken together, we hope these efforts will lower the barrier to entry for machine learning researchers interested in developing methods for 3D molecular learning and encourage rapid progress in the field. Detailed descriptions of the preparation of each dataset can be found in Appendix C.1. ",
213
+ "bbox": [
214
+ 173,
215
+ 246,
216
+ 825,
217
+ 372
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "table",
223
+ "img_path": "images/8d1ad03d92c7c38846bf64895d8b7990c0cf225808278cad639907a5ccbf2146.jpg",
224
+ "table_caption": [
225
+ "Table 2: Tasks included in ATOM3D dataset, along with schematic representation of their inputs. P indicates protein, SM indicates small molecule, R indicates RNA. Lines indicate interaction and the smaller square within proteins indicates an individual amino acid. New datasets are in bold. "
226
+ ],
227
+ "table_footnote": [],
228
+ "table_body": "<table><tr><td>Name (Task Code)</td><td>Schematic</td><td>Objective</td><td>Source</td></tr><tr><td>Small Molecule Properties (SMP)</td><td>SM</td><td>Properties</td><td>QM9 (Ruddigkeit et al., 2012)</td></tr><tr><td>Protein Interface Prediction (PIP)</td><td>P2 P1 G 与</td><td>Amino Acid Interaction</td><td>DIPS(Townshend et al.,2019) DB5 (Vreven et al., 2015)</td></tr><tr><td>Residue Identity (RES)</td><td>P</td><td>Amino Acid Identity</td><td>New, created from PDB (Berman et al., 2000)</td></tr><tr><td>Mutation Stability Prediction (MSP)</td><td>P1 白 P2 C vs. P1 P2 £ 白</td><td>Effect of Mutation</td><td>New, created from SKEMPI (Jankauskaité et al., 2019)</td></tr><tr><td>Ligand Binding Affinity (LBA)</td><td>P SM</td><td>Binding Strength</td><td>PDBBind (Wang et al., 2004)</td></tr><tr><td rowspan=\"2\">Ligand Efficacy Prediction (LEP) Protein Structure</td><td>P SM VS. SM</td><td>Drug Efficacy</td><td>New, created from PDB (Berman et al., 2000)</td></tr><tr><td>P</td><td>Ranking</td><td>CASP-QA (Kryshtafovych et al.,2019)</td></tr><tr><td>Ranking (PSR) RNA Structure</td><td></td><td></td><td></td></tr><tr><td>Ranking (RSR)</td><td>R</td><td>Ranking</td><td>FARFAR2-Puzzles (Watkins &amp; Das,2019)</td></tr></table>",
229
+ "bbox": [
230
+ 205,
231
+ 434,
232
+ 792,
233
+ 915
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "text",
239
+ "text": "3.1 SMALL MOLECULE PROPERTIES (SMP) ",
240
+ "text_level": 1,
241
+ "bbox": [
242
+ 174,
243
+ 103,
244
+ 490,
245
+ 117
246
+ ],
247
+ "page_idx": 3
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "Impact – Predicting physico-chemical properties of small molecules is a common task in medicinal chemistry and materials design. Quantum chemical calculations can save expensive experiments but are themselves costly and cannot cover the huge chemical space spanned by candidate molecules. ",
252
+ "bbox": [
253
+ 173,
254
+ 130,
255
+ 823,
256
+ 171
257
+ ],
258
+ "page_idx": 3
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "Dataset – The QM9 dataset (Ruddigkeit et al., 2012; Ramakrishnan et al., 2014) contains structures and energetic, electronic, and thermodynamic properties for 134,000 stable small organic molecules, obtained from quantum-chemical calculations. ",
263
+ "bbox": [
264
+ 173,
265
+ 172,
266
+ 825,
267
+ 213
268
+ ],
269
+ "page_idx": 3
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "Metrics – We predict the molecular properties from the ground-state structure. ",
274
+ "bbox": [
275
+ 176,
276
+ 214,
277
+ 689,
278
+ 228
279
+ ],
280
+ "page_idx": 3
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "Split – We split molecules randomly. ",
285
+ "bbox": [
286
+ 174,
287
+ 228,
288
+ 418,
289
+ 241
290
+ ],
291
+ "page_idx": 3
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "3.2 PROTEIN INTERFACE PREDICTION (PIP) ",
296
+ "text_level": 1,
297
+ "bbox": [
298
+ 174,
299
+ 260,
300
+ 493,
301
+ 273
302
+ ],
303
+ "page_idx": 3
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "Impact – Proteins interact with each other in many scenarios—for example, antibody proteins recognize diseases by binding to antigens. A critical problem in understanding these interactions is to identify which amino acids of two given proteins will interact upon binding. ",
308
+ "bbox": [
309
+ 174,
310
+ 286,
311
+ 825,
312
+ 328
313
+ ],
314
+ "page_idx": 3
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "Dataset – For training, we use the Database of Interacting Protein Structures (DIPS), a comprehensive dataset of protein complexes mined from the PDB (Townshend et al., 2019). We predict on the Docking Benchmark 5 (Vreven et al., 2015), a smaller gold standard dataset. ",
319
+ "bbox": [
320
+ 176,
321
+ 328,
322
+ 820,
323
+ 369
324
+ ],
325
+ "page_idx": 3
326
+ },
327
+ {
328
+ "type": "text",
329
+ "text": "Metrics – We predict if two amino acids will come into contact when their respective proteins bind. \nSplit – We split protein complexes by sequence identity at $30 \\%$ . ",
330
+ "bbox": [
331
+ 174,
332
+ 369,
333
+ 821,
334
+ 397
335
+ ],
336
+ "page_idx": 3
337
+ },
338
+ {
339
+ "type": "text",
340
+ "text": "3.3 RESIDUE IDENTITY (RES) ",
341
+ "text_level": 1,
342
+ "bbox": [
343
+ 176,
344
+ 415,
345
+ 400,
346
+ 429
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "text",
352
+ "text": "Impact – Understanding the structural role of individual amino acids is important for engineering new proteins. We can understand this role by predicting the propensity for different amino acids at a given protein site based on the surrounding structural environment (Torng & Altman, 2017). ",
353
+ "bbox": [
354
+ 173,
355
+ 441,
356
+ 823,
357
+ 483
358
+ ],
359
+ "page_idx": 3
360
+ },
361
+ {
362
+ "type": "text",
363
+ "text": "Dataset – We generate a novel dataset consisting of atomic environments extracted from nonredundant structures in the PDB. ",
364
+ "bbox": [
365
+ 174,
366
+ 484,
367
+ 821,
368
+ 511
369
+ ],
370
+ "page_idx": 3
371
+ },
372
+ {
373
+ "type": "text",
374
+ "text": "Metrics – We formulate this as a classification task where we predict the identity of the amino acid in the center of the environment based on all other atoms. ",
375
+ "bbox": [
376
+ 168,
377
+ 511,
378
+ 821,
379
+ 537
380
+ ],
381
+ "page_idx": 3
382
+ },
383
+ {
384
+ "type": "text",
385
+ "text": "Split – We split residue environments by protein topology class. ",
386
+ "bbox": [
387
+ 173,
388
+ 540,
389
+ 599,
390
+ 553
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "3.4 MUTATION STABILITY PREDICTION (MSP) ",
397
+ "text_level": 1,
398
+ "bbox": [
399
+ 174,
400
+ 571,
401
+ 514,
402
+ 585
403
+ ],
404
+ "page_idx": 3
405
+ },
406
+ {
407
+ "type": "text",
408
+ "text": "Impact – Identifying mutations that stabilize a protein’s interactions is a key task in designing new proteins. Experimental techniques for probing these are labor-intensive (Antikainen & Martin, 2005; Lefevre et al., 1997), motivating the development of efficient computational methods. \\` ",
409
+ "bbox": [
410
+ 174,
411
+ 598,
412
+ 825,
413
+ 638
414
+ ],
415
+ "page_idx": 3
416
+ },
417
+ {
418
+ "type": "text",
419
+ "text": "Dataset – We derive a novel dataset by collecting single-point mutations from the SKEMPI database (Jankauskaite et al., 2019) and model each mutation into the structure to produce mutated structures. ˙ Metrics – We formulate this as a binary classification task where we predict whether the stability of the complex increases as a result of the mutation. ",
420
+ "bbox": [
421
+ 174,
422
+ 640,
423
+ 825,
424
+ 694
425
+ ],
426
+ "page_idx": 3
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "Split – We split protein complexes by sequence identity at $30 \\%$ ",
431
+ "bbox": [
432
+ 174,
433
+ 695,
434
+ 593,
435
+ 709
436
+ ],
437
+ "page_idx": 3
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "3.5 LIGAND BINDING AFFINITY (LBA) ",
442
+ "text_level": 1,
443
+ "bbox": [
444
+ 176,
445
+ 727,
446
+ 459,
447
+ 741
448
+ ],
449
+ "page_idx": 3
450
+ },
451
+ {
452
+ "type": "text",
453
+ "text": "Impact – Most therapeutic drugs and many molecules critical for biological signaling take the form of small molecules. Predicting the strength of the protein-small molecule interaction is a challenging but crucial task for drug discovery applications. ",
454
+ "bbox": [
455
+ 173,
456
+ 753,
457
+ 823,
458
+ 795
459
+ ],
460
+ "page_idx": 3
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "Dataset – We use the PDBBind database (Wang et al., 2004; Liu et al., 2015), a curated database containing protein-ligand complexes from the PDB and their corresponding binding strengths. Metrics – We predict $p K = - \\log ( K )$ , where $K$ is the binding affinity in Molar units. Split – We split protein-ligand complexes by protein sequence identity at $30 \\%$ . ",
465
+ "bbox": [
466
+ 171,
467
+ 795,
468
+ 825,
469
+ 852
470
+ ],
471
+ "page_idx": 3
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "3.6 LIGAND EFFICACY PREDICTION (LEP) ",
476
+ "text_level": 1,
477
+ "bbox": [
478
+ 174,
479
+ 868,
480
+ 483,
481
+ 883
482
+ ],
483
+ "page_idx": 3
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "Impact – Many proteins switch on or off their function by changing shape. Predicting which shape a drug will favor is thus an important task in drug design. ",
488
+ "bbox": [
489
+ 171,
490
+ 895,
491
+ 823,
492
+ 924
493
+ ],
494
+ "page_idx": 3
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "Dataset – We develop a novel dataset by curating proteins from several families with both ”active” and ”inactive” state structures, and model in 527 small molecules with known activating or inactivating function using the program Glide (Friesner et al., 2004). ",
499
+ "bbox": [
500
+ 173,
501
+ 103,
502
+ 823,
503
+ 145
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "text",
509
+ "text": "Metrics – We formulate this as a binary classification task where we predict whether or not a molecule bound to the structures will be an activator of the protein’s function or not. ",
510
+ "bbox": [
511
+ 174,
512
+ 146,
513
+ 820,
514
+ 174
515
+ ],
516
+ "page_idx": 4
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "Split – We split complex pairs by protein. ",
521
+ "bbox": [
522
+ 176,
523
+ 174,
524
+ 447,
525
+ 188
526
+ ],
527
+ "page_idx": 4
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "3.7 PROTEIN STRUCTURE RANKING (PSR) ",
532
+ "text_level": 1,
533
+ "bbox": [
534
+ 176,
535
+ 203,
536
+ 485,
537
+ 218
538
+ ],
539
+ "page_idx": 4
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "Impact – Proteins are one of the primary workhorses of the cell, and knowing their structure is often critical to understanding (and engineering) their function. ",
544
+ "bbox": [
545
+ 173,
546
+ 229,
547
+ 823,
548
+ 257
549
+ ],
550
+ "page_idx": 4
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "Dataset – The Critical Assessment of Structure Prediction (CASP) (Kryshtafovych et al., 2019) is a blind international competition for predicting protein structure. ",
555
+ "bbox": [
556
+ 173,
557
+ 258,
558
+ 823,
559
+ 285
560
+ ],
561
+ "page_idx": 4
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "Metrics – We formulate this as a regression task, where we predict the global distance test (GDT TS) from the true structure for each of the predicted structures submitted in the last 18 years of CASP. Split – We split structures temporally by competition year. ",
566
+ "bbox": [
567
+ 176,
568
+ 286,
569
+ 825,
570
+ 328
571
+ ],
572
+ "page_idx": 4
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "3.8 RNA STRUCTURE RANKING (RSR) ",
577
+ "text_level": 1,
578
+ "bbox": [
579
+ 176,
580
+ 343,
581
+ 460,
582
+ 358
583
+ ],
584
+ "page_idx": 4
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "Impact – Similar to proteins, RNA plays major functional roles (e.g., gene regulation) and can adopt well-defined 3D shapes. Yet the problem is data-poor, with only a few hundred known structures. Dataset – Candidate models generated by FARFAR2 (Watkins & Das, 2019) for the first 21 released RNA Puzzle challenges (Cruz et al., 2012), a blind structure prediction competition for RNA. Metrics – We predict the root-mean-squared deviation (RMSD) from the ground truth structure. Split – We split structures temporally by competition year. ",
589
+ "bbox": [
590
+ 169,
591
+ 369,
592
+ 826,
593
+ 453
594
+ ],
595
+ "page_idx": 4
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "4 EXPERIMENTAL SETUP ",
600
+ "text_level": 1,
601
+ "bbox": [
602
+ 176,
603
+ 473,
604
+ 398,
605
+ 488
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "To assess the benefits of 3D molecular learning, we use a combination of existing and novel 3D molecular learning methods, and implement a number of robust baselines. Our 3D molecular learning methods belong to one of each of the major classes of deep learning algorithms that have been applied to atomistic systems: graph networks, three-dimensional convolutional networks, and equivariant networks. Here we describe the core networks and the novel extensions needed to adapt them to certain datasets. See Appendix C.2 for task-specific details and hyperparameters. ",
612
+ "bbox": [
613
+ 174,
614
+ 503,
615
+ 825,
616
+ 588
617
+ ],
618
+ "page_idx": 4
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "4.1 CORE NETWORKS ",
623
+ "text_level": 1,
624
+ "bbox": [
625
+ 174,
626
+ 604,
627
+ 339,
628
+ 617
629
+ ],
630
+ "page_idx": 4
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "For GNNs, we represent molecular systems as graphs in which each node is an atom. Edges are defined between all atoms separated by less than $4 . 5 \\textup { \\AA }$ , and weighted by the distance between the atoms. Node features are one-hot-encoded by atom type. Our core model uses five layers of graph convolutions, each followed by batch normalization and ReLU activation, a sum pooling layer, and two fully-connected layers with dropout. ",
635
+ "bbox": [
636
+ 174,
637
+ 630,
638
+ 825,
639
+ 699
640
+ ],
641
+ "page_idx": 4
642
+ },
643
+ {
644
+ "type": "text",
645
+ "text": "For 3DCNNs, we represent our data as a cube of fixed size (different per task due to the different molecular sizes) in 3D space that is discretized into voxels with resolution of $1 \\textup { \\AA }$ to form a grid. Each voxel is associated with a one-hot-encoded vector which denotes the presence or absence of each atom type. Our core model consists of four 3D-convolutional layers, each followed by maxpooling, dropout, and ReLU activation, and two fully-connected layers. ",
646
+ "bbox": [
647
+ 174,
648
+ 707,
649
+ 825,
650
+ 776
651
+ ],
652
+ "page_idx": 4
653
+ },
654
+ {
655
+ "type": "text",
656
+ "text": "For ENNs, we use SE(3)-equivariant networks that represent each atom of a structure by its position as absolute coordinates in 3D space with one-hot-encoded atom type as features. No rotational augmentation is needed due to the rotational symmetry of the network. The core of all architectures in this work is a network of four layers of covariant neurons that use the Clebsch–Gordan transform as nonlinearity, as described and implemented in Anderson et al. (2019). ",
657
+ "bbox": [
658
+ 174,
659
+ 784,
660
+ 825,
661
+ 853
662
+ ],
663
+ "page_idx": 4
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "4.2 SIAMESE ARCHITECTURES ",
668
+ "text_level": 1,
669
+ "bbox": [
670
+ 176,
671
+ 869,
672
+ 401,
673
+ 883
674
+ ],
675
+ "page_idx": 4
676
+ },
677
+ {
678
+ "type": "text",
679
+ "text": "For tasks involving comparing two sets of atoms sampled from the same distributions, we also develop new architectures that are Siamese in nature. Specifically, the PIP dataset involves predicting a symmetric interaction between two proteins, while the MSP and LEP datasets involve a symmetric comparison between two interactions. Taking inspiration from Townshend et al. (2019)’s use of a Siamese 3DCNN network for the PIP dataset, we replicate that architecture for our PIP, MSP, and LEP datasets, and develop new Siamese GNN and Siamese ENN networks. Specifically, we train a pair of core networks with tied weights, ensuring symmetric treatment of both items of the pair. We then combine the final learned embeddings from both core networks to output a final prediction. Beyond the novelty of weight-tying atom-level GNNs and ENNs, to our knowledge this is also the first use of weight-tying across SE(3)-equivariant networks. ",
680
+ "bbox": [
681
+ 174,
682
+ 895,
683
+ 823,
684
+ 924
685
+ ],
686
+ "page_idx": 4
687
+ },
688
+ {
689
+ "type": "text",
690
+ "text": "",
691
+ "bbox": [
692
+ 174,
693
+ 103,
694
+ 825,
695
+ 215
696
+ ],
697
+ "page_idx": 5
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "4.3 AMINO ACID OUTPUTS ",
702
+ "text_level": 1,
703
+ "bbox": [
704
+ 176,
705
+ 233,
706
+ 377,
707
+ 247
708
+ ],
709
+ "page_idx": 5
710
+ },
711
+ {
712
+ "type": "text",
713
+ "text": "Certain tasks involve making a prediction on a specific amino acid (PIP, RES, and MSP; see Table 2), yet GNNs and ENNs typically rely on summing over all node embeddings to compute a final graph embedding, making it difficult to isolate this amino acid. To remedy this, after our convolutional layers we implement the novel procedure of extracting the embedding of only the $\\mathbf { \\boldsymbol { C } } \\alpha$ atom of the amino acid in question, thereby allowing our GNNs and ENNs to isolate it. ",
714
+ "bbox": [
715
+ 174,
716
+ 260,
717
+ 825,
718
+ 330
719
+ ],
720
+ "page_idx": 5
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "5 RESULTS ",
725
+ "text_level": 1,
726
+ "bbox": [
727
+ 174,
728
+ 352,
729
+ 281,
730
+ 367
731
+ ],
732
+ "page_idx": 5
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "To assess the utility of 3D molecular learning, we evaluate our methods on the ATOM3D datasets and compare performance to state-of-the-art methods using 1D or 2D representations. We stress that in many cases, 3D molecular learning methods have never been applied to the proposed tasks, and that several of the tasks are novel. In the following sections, we describe the results of our benchmarking and some key insights that can be derived from them. We also aggregate these results along with additional metrics and standard deviations over three replicates in Appendix E. ",
737
+ "bbox": [
738
+ 174,
739
+ 383,
740
+ 825,
741
+ 468
742
+ ],
743
+ "page_idx": 5
744
+ },
745
+ {
746
+ "type": "text",
747
+ "text": "5.1 3D REPRESENTATIONS CONSISTENTLY IMPROVE PERFORMANCE ",
748
+ "text_level": 1,
749
+ "bbox": [
750
+ 176,
751
+ 487,
752
+ 656,
753
+ 501
754
+ ],
755
+ "page_idx": 5
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "Our evaluation of 3D methods on the tasks in ATOM3D reveals that incorporating atomistic geometry leads to consistently superior performance compared to 1D and 2D methods. For small molecules, state-of-the-art methods do not use 1D representations, so we focus instead on comparing to representations at the 2D level, i.e. the chemical bond graph. This is the approach taken by the 2D GNN introduced by Tsubaki et al. (2019) or the N-gram graph method by Liu et al. (2019), which both obtain similar results (Table 3) on the small-molecule-only dataset SMP. When we add 3D distance, as done for our GNN model, we improve performance across all targets in SMP (Table 3). ",
760
+ "bbox": [
761
+ 174,
762
+ 512,
763
+ 825,
764
+ 625
765
+ ],
766
+ "page_idx": 5
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "For tasks involving biopolymers (proteins and RNA), state-of-the-art methods do not use 2D representations, primarily because most of the chemical bond graph can be easily re-derived from the 1D representation, i.e. the linear sequence that makes up the biopolymer. We thus compare to representations at the 1D level (Table 7). For MSP and RES, both new datasets, we evaluate against Rao et al. (2019)’s TAPE model, a transformer architecture that operates on protein sequence and is state-of-the-art amongst 1D methods for many tasks. For PIP, we compare to the sequence-only version of BIPSPI (Sanchez-Garcia et al., 2018), a state-of-the-art boosted decision tree method for protein interaction prediction. We find that 3D methods outperform these 1D methods on all biopolymer-only datasets (PIP, RES, MSP). ",
771
+ "bbox": [
772
+ 174,
773
+ 631,
774
+ 825,
775
+ 756
776
+ ],
777
+ "page_idx": 5
778
+ },
779
+ {
780
+ "type": "text",
781
+ "text": "For tasks involving both biopolymers and small molecules, we compare DeepDTA (Ozt ¨ urk et al., ¨ 2018). This network uses a 1D representation via a 1DCNN for both the biopolymer and small molecules. For LBA, we additionally compare to DeepAffinity (Karimi et al., 2019) which uses pairs of a ligand SMILES string and a novel representation of structurally-annotated protein sequences. Using a 3D representation for both ligand and protein instead leads to improved performance for the joint protein-small molecule datasets (LBA and LEP, see Table 5). ",
782
+ "bbox": [
783
+ 174,
784
+ 763,
785
+ 825,
786
+ 847
787
+ ],
788
+ "page_idx": 5
789
+ },
790
+ {
791
+ "type": "text",
792
+ "text": "The biopolymer structure ranking tasks (PSR and RSR) are inherently 3D in nature, as they involve evaluating the correctness of different 3D shapes taken on by the same biopolymer. Thus, critically, a 1D or 2D representation would not be able to differentiate between these different shapes since the linear sequence and chemical bond graph would remain the same. We therefore compare to state-of-the-art 3D methods as shown in Table 6. ",
793
+ "bbox": [
794
+ 176,
795
+ 854,
796
+ 823,
797
+ 922
798
+ ],
799
+ "page_idx": 5
800
+ },
801
+ {
802
+ "type": "table",
803
+ "img_path": "images/f0c7e5f24e7692b09c665de82695ce8f9929587922212c684556dd82475091f7.jpg",
804
+ "table_caption": [
805
+ "Table 3: Small molecule results. Metric is mean absolute error (MAE). "
806
+ ],
807
+ "table_footnote": [],
808
+ "table_body": "<table><tr><td rowspan=\"2\">Task</td><td rowspan=\"2\">Target</td><td colspan=\"3\">3D</td><td colspan=\"2\">Non-3D</td></tr><tr><td>3DCNN</td><td>GNN</td><td>ENN</td><td>Tsubaki et al. (2019)</td><td>Liu et al. (2019)</td></tr><tr><td rowspan=\"3\">SMP</td><td>μ[D]</td><td>0.572</td><td>0.068</td><td>0.046</td><td>0.496</td><td>0.520</td></tr><tr><td>gap[eV]</td><td>0.589</td><td>0.091</td><td>0.065</td><td>0.154</td><td>0.184</td></tr><tr><td>Ut[ev]</td><td>1.615</td><td>0.070</td><td>0.023</td><td>0.182</td><td>0.218</td></tr></table>",
809
+ "bbox": [
810
+ 220,
811
+ 151,
812
+ 776,
813
+ 236
814
+ ],
815
+ "page_idx": 6
816
+ },
817
+ {
818
+ "type": "table",
819
+ "img_path": "images/6dcdceeebe6aa6c32d8d690525c1e10dfb37e86355f634c172cf1776e863cbd2.jpg",
820
+ "table_caption": [
821
+ "Table 4: Biopolymer results. AUROC is the area under the receiver operating characteristic curve. Asterisks $( ^ { * } )$ indicate that the exact training data differed (though splitting criteria were the same). "
822
+ ],
823
+ "table_footnote": [],
824
+ "table_body": "<table><tr><td rowspan=\"2\">Task</td><td rowspan=\"2\">Metric</td><td colspan=\"3\">3D</td><td colspan=\"2\">Non-3D</td></tr><tr><td>3DCNN</td><td>GNN</td><td>ENN</td><td>Sanchez-Garcia et al. (2018)</td></tr><tr><td>PIP</td><td>AUROC</td><td>0.844</td><td>*0.669</td><td>一</td><td>0.841</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td>Rao et al. (2019)</td></tr><tr><td>RES</td><td>accuracy</td><td>0.451</td><td>0.082</td><td>*0.072</td><td>*0.30</td></tr><tr><td>MSP</td><td>AUROC</td><td>0.520</td><td>0.637</td><td>0.678</td><td>0.554</td></tr></table>",
825
+ "bbox": [
826
+ 248,
827
+ 344,
828
+ 748,
829
+ 459
830
+ ],
831
+ "page_idx": 6
832
+ },
833
+ {
834
+ "type": "table",
835
+ "img_path": "images/456d0e0288e2a668e1aacdeba9e3c00756b7a8e60c76c84fa5d824fda11a2319.jpg",
836
+ "table_caption": [
837
+ "Table 5: Joint small molecule/biopolymer results. $R _ { S }$ is Spearman correlation, $R _ { P }$ is Pearson correlation, AUROC is area under the receiver operating characteristic curve, and RMSD is root-mean-squared deviation. Asterisks $( ^ { * } )$ indicate that the exact training data differed (though splitting criteria were the same). "
838
+ ],
839
+ "table_footnote": [],
840
+ "table_body": "<table><tr><td rowspan=\"2\">Task</td><td rowspan=\"2\">Metric</td><td colspan=\"3\">3D</td><td colspan=\"2\">Non-3D</td></tr><tr><td>3DCNN</td><td>GNN</td><td>ENN</td><td>Oztirk et al. (2018)</td><td>Karimi et al. (2019)</td></tr><tr><td rowspan=\"3\">LBA</td><td>RMSD</td><td>1.520</td><td>1.936</td><td>*1.429</td><td>1.565</td><td>1.893</td></tr><tr><td>glob.Rp</td><td>0.558</td><td>0.581</td><td>*0.541</td><td>0.573</td><td>0.415</td></tr><tr><td>glob.Rs</td><td>0.556</td><td>0.647</td><td>*0.532</td><td>0.574</td><td>0.426</td></tr><tr><td>LEP</td><td>AUROC</td><td>0.824</td><td>0.678</td><td>0.569</td><td>0.696</td><td>1</td></tr></table>",
841
+ "bbox": [
842
+ 210,
843
+ 582,
844
+ 787,
845
+ 685
846
+ ],
847
+ "page_idx": 6
848
+ },
849
+ {
850
+ "type": "table",
851
+ "img_path": "images/3011a26ec18b4d58f27a6c83bf0167097e22c11717ae0e8f2cf3dcc832893da4.jpg",
852
+ "table_caption": [
853
+ "Table 6: Structure ranking results. $R _ { S }$ is Spearman correlation, $R _ { P }$ is Pearson correlation. Mean measures the correlation for structures corresponding to the same biopolymer, whereas global measures the correlation across all biopolymers. "
854
+ ],
855
+ "table_footnote": [],
856
+ "table_body": "<table><tr><td rowspan=\"2\">Task</td><td rowspan=\"2\">Metric</td><td colspan=\"3\">3D</td></tr><tr><td>3DCNN</td><td>GNN</td><td>SotA</td></tr><tr><td rowspan=\"2\">PSR</td><td>mean Rs</td><td>0.177</td><td>0.327</td><td>0.432 (Pages et al., 2019)</td></tr><tr><td>glob. Rs</td><td>0.837</td><td>0.716</td><td>0.796 (Pages et al., 2019)</td></tr><tr><td rowspan=\"2\">RSR</td><td>mean Rs</td><td>0.414</td><td>0.195</td><td>0.173 (Alford et al.,2017)</td></tr><tr><td>glob. Rs</td><td>0.656</td><td>0.309</td><td>0.304 (Alford et al., 2017)</td></tr></table>",
857
+ "bbox": [
858
+ 289,
859
+ 795,
860
+ 709,
861
+ 897
862
+ ],
863
+ "page_idx": 6
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "More generally, we find that learning methods that leverage the 3D geometry of molecules hold state-of-the-art on all tasks on our benchmark (Appendix D). ",
868
+ "bbox": [
869
+ 174,
870
+ 103,
871
+ 825,
872
+ 132
873
+ ],
874
+ "page_idx": 7
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "5.2 MANY 3D MOLECULAR LEARNING PROBLEMS REMAIN UNDEREXPLORED ",
879
+ "bbox": [
880
+ 176,
881
+ 175,
882
+ 720,
883
+ 188
884
+ ],
885
+ "page_idx": 7
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "As demonstrated in the previous section, formulating a molecular problem through the lens of 3D molecular learning can lead to significantly improved performance. However, many important problems have not been studied within this framework, leaving significant room for further improvement. This opens up a ripe field of research with much low-hanging fruit. One prominent example we explore here is RNA structure ranking, where the state-of-the-art method uses Rosetta (Alford et al., 2017), a hand-designed potential energy function. When we instead apply our 3DCNN method that learns directly from the 3D atomistic geometry, we see dramatic increases in performance (Table 6). ",
890
+ "bbox": [
891
+ 174,
892
+ 210,
893
+ 825,
894
+ 309
895
+ ],
896
+ "page_idx": 7
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "In a similar vein, on the ligand efficacy prediction task we find that the 3DCNN method outperforms Glide (Friesner et al., 2004), a state-of-the-art scoring function for protein-small molecule docking. The 3DCNN achieves an AUROC of 0.824, compared to Glide’s 0.770. ",
901
+ "bbox": [
902
+ 176,
903
+ 315,
904
+ 821,
905
+ 357
906
+ ],
907
+ "page_idx": 7
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "We also find room for improvement in domains where 3D molecular learning is already being employed. Protein structure ranking is one such area, and we see that the 3DCNN model is competitive with the state-of-the-art deep learning method by Pages et al. (2019) (Table 6), surpassing it in terms \\` of absolute assessment of correctness (i.e., comparing 3D candidates from different biopolymers) though not in terms of relative assessment (i.e., comparing 3D candidates from the same biopolymer). ",
912
+ "bbox": [
913
+ 174,
914
+ 364,
915
+ 823,
916
+ 448
917
+ ],
918
+ "page_idx": 7
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "Overall, these results demonstrate the potential of 3D molecular learning to address a wide range of problems involving molecular structure, and we anticipate that continued development of such models on less well-studied tasks will aid progress in biomedical research. ",
923
+ "bbox": [
924
+ 176,
925
+ 455,
926
+ 823,
927
+ 497
928
+ ],
929
+ "page_idx": 7
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "5.3 DIFFERENT TASKS REQUIRE DIFFERENT ARCHITECTURES ",
934
+ "text_level": 1,
935
+ "bbox": [
936
+ 174,
937
+ 540,
938
+ 609,
939
+ 554
940
+ ],
941
+ "page_idx": 7
942
+ },
943
+ {
944
+ "type": "text",
945
+ "text": "While atomistic methods consistently outperform their non-3D counterparts and provide a systematic way of representing molecular data, our results also provide evidence that architecture selection plays a critical role in performance. For tasks primarily focused on small molecules (SMP and LBA), we see superior performance from the particle-based methods (GNN and ENN) than from the volumetric 3DCNN. Small molecules are already intuitively represented as graph-like structures, with nodes (atoms) and edges (bonds), and the quantities computed in these small molecule tasks depend less on complex 3D geometry and more on the exact position of each atom relative to its neighbors. Unlike particle-based methods, 3DCNNs must approximate these positions, and while increasing spatial resolution increases precision, it also leads to cubic scaling of complexity. ",
946
+ "bbox": [
947
+ 174,
948
+ 575,
949
+ 825,
950
+ 702
951
+ ],
952
+ "page_idx": 7
953
+ },
954
+ {
955
+ "type": "text",
956
+ "text": "On the other hand, for larger molecules and complex 3D geometries that are critical to tasks like PSR, RSR, LEP, and RES, we see that the 3DCNN method outperforms GNNs. Here, the 3DCNN’s ability to directly represent differences between patterns in 3D space, as opposed to trying to reconstruct them through pairwise distances, is likely what allows it to perform well. In these tasks, the exact position and relational information between atoms is less important than their overall conformation. ",
957
+ "bbox": [
958
+ 174,
959
+ 708,
960
+ 825,
961
+ 777
962
+ ],
963
+ "page_idx": 7
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "Finally, equivariant networks show promise but suffer from scalability issues. One motivation for the development of equivariant networks is that they fill a “happy medium” where they can both represent atom positions precisely and capture complex geometries. On some of the tasks where we could test the ENN (LBA, SMP), we often observed close to state-of-the-art performance, even on a reduced training set (LBA). Unfortunately, current implementations do not yet scale to most of our tasks due to the compute- and memory-intensive nature of the Clebsch-Gordan products used to maintain rotational equivariance. For some tasks, the performance was severely limited by only training on a fraction of the data $< 1 \\%$ for RES) or a portion of the entire atomic structure (LEP), and for others we could not apply the ENN at all. These limitations point to the need for further architectural innovations before their performance can be demonstrated on extended systems. ",
968
+ "bbox": [
969
+ 174,
970
+ 785,
971
+ 825,
972
+ 924
973
+ ],
974
+ "page_idx": 7
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "6 CONCLUSION ",
979
+ "text_level": 1,
980
+ "bbox": [
981
+ 174,
982
+ 102,
983
+ 318,
984
+ 117
985
+ ],
986
+ "page_idx": 8
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "In this work we present a vision of 3D atom-level data as a new “machine learning datatype” deserving focused study. Atomistic data shares several underlying symmetries, contains poorly understood higher-level patterns, and can be used to address many high-impact but unsolved problems. ",
991
+ "bbox": [
992
+ 174,
993
+ 133,
994
+ 823,
995
+ 175
996
+ ],
997
+ "page_idx": 8
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "We create several benchmark datasets and compare the performance of different types of 3D molecular learning models across these tasks. Many of these architectures were developed specifically for the tasks in question, such as the Siamese ENN and GNN models used for paired tasks (PIP, MSP, and LEP). For tasks that can be formulated in lower dimensions, we demonstrate that 3D molecular learning yields consistent gains in performance over 1D and 2D methods. We also show that selection of an appropriate architecture is critical for optimal performance on a given task; depending on the structure of the underlying data, a 3DCNN, GNN, or ENN may be most appropriate. As equivariant networks continue to improve in efficiency and stability, we expect these to become more and more viable due to their close modeling of physical laws. ",
1002
+ "bbox": [
1003
+ 174,
1004
+ 183,
1005
+ 825,
1006
+ 308
1007
+ ],
1008
+ "page_idx": 8
1009
+ },
1010
+ {
1011
+ "type": "text",
1012
+ "text": "While ATOM3D establishes a first set of benchmark datasets, there are many other open areas in biomedical research and molecular science that are ripe for 3D molecular learning, especially as structural data becomes readily available. Such tasks include virtual screening and pose prediction of small molecule drugs, or the prediction of conformational ensembles instead of static structures. The use of multiple 3D conformations per molecule represents an especially promising direction, as they would more faithfully reproduce the entire set of states a given molecule could adopt. As such, we envision expanding the ATOM3D framework beyond the tasks described here. ",
1013
+ "bbox": [
1014
+ 174,
1015
+ 314,
1016
+ 825,
1017
+ 412
1018
+ ],
1019
+ "page_idx": 8
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "Through this work, we hope to lower the entry barrier for machine learning practitioners, encourage the development of machine learning algorithms focused on 3D atomistic data, and promote a novel paradigm within the fields of structural biology and medicinal chemistry. ",
1024
+ "bbox": [
1025
+ 176,
1026
+ 420,
1027
+ 825,
1028
+ 462
1029
+ ],
1030
+ "page_idx": 8
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "REFERENCES ",
1035
+ "text_level": 1,
1036
+ "bbox": [
1037
+ 176,
1038
+ 103,
1039
+ 285,
1040
+ 117
1041
+ ],
1042
+ "page_idx": 9
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "Rebecca F. Alford, Andrew Leaver-Fay, Jeliazko R. Jeliazkov, Matthew J. O’Meara, Frank P. DiMaio, Hahnbeom Park, Maxim V. Shapovalov, P. Douglas Renfrew, Vikram K. Mulligan, Kalli Kappel, Jason W. Labonte, Michael S. Pacella, Richard Bonneau, Philip Bradley, Roland L. Dunbrack, Rhiju Das, David Baker, Brian Kuhlman, Tanja Kortemme, and Jeffrey J. Gray. The Rosetta All-Atom Energy Function for Macromolecular Modeling and Design. Journal of Chemical Theory and Computation, 13(6):3031–3048, 2017. ISSN 15499626. doi: 10.1021/acs.jctc.7b00125. ",
1047
+ "bbox": [
1048
+ 174,
1049
+ 126,
1050
+ 825,
1051
+ 210
1052
+ ],
1053
+ "page_idx": 9
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "S F Altschul, W Gish, W Miller, E W Myers, and D J Lipman. Basic local alignment search tool. Journal of Molecular Biology, 215(3):403–10, 1990. ISSN 0022-2836. doi: 10.1016/S0022-2836(05)80360-2. URL http://www.sciencedirect.com/science/ article/pii/S0022283605803602. ",
1058
+ "bbox": [
1059
+ 173,
1060
+ 219,
1061
+ 825,
1062
+ 276
1063
+ ],
1064
+ "page_idx": 9
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "Namrata Anand, Raphael R Eguchi, Alexander Derry, Russ B Altman, and Po-Ssu Huang. Protein sequence design with a learned potential. January 2020. ",
1069
+ "bbox": [
1070
+ 173,
1071
+ 286,
1072
+ 823,
1073
+ 315
1074
+ ],
1075
+ "page_idx": 9
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Brandon Anderson, Truong-Son Hy, and Risi Kondor. Cormorant: Covariant Molecular Neural Networks. 2019. URL http://arxiv.org/abs/1906.04015. ",
1080
+ "bbox": [
1081
+ 169,
1082
+ 325,
1083
+ 823,
1084
+ 356
1085
+ ],
1086
+ "page_idx": 9
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Antonina Andreeva, Dave Howorth, Cyrus Chothia, Eugene Kulesha, and Alexey G. Murzin. SCOP2 prototype: A new approach to protein structure mining. Nucleic Acids Research, 42 (D1):310–314, 2014. ISSN 03051048. doi: 10.1093/nar/gkt1242. ",
1091
+ "bbox": [
1092
+ 173,
1093
+ 364,
1094
+ 825,
1095
+ 407
1096
+ ],
1097
+ "page_idx": 9
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Nina M Antikainen and Stephen F Martin. Altering protein specificity: techniques and applications. Bioorganic & medicinal chemistry, 13(8):2701–2716, 2005. ",
1102
+ "bbox": [
1103
+ 169,
1104
+ 417,
1105
+ 823,
1106
+ 446
1107
+ ],
1108
+ "page_idx": 9
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "Chloe-Agathe Azencott, Alexandre Ksikes, S Joshua Swamidass, Jonathan H Chen, Liva Ralaivola, ´ and Pierre Baldi. One-to four-dimensional kernels for virtual screening and the prediction of physical, chemical, and biological properties. Journal of chemical information and modeling, 47 (3):965–974, 2007. ",
1113
+ "bbox": [
1114
+ 174,
1115
+ 455,
1116
+ 825,
1117
+ 512
1118
+ ],
1119
+ "page_idx": 9
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "Pedro J Ballester and John B O Mitchell. A machine learning approach to predicting protein–ligand binding affinity with applications to molecular docking. Bioinformatics, 26(9):1169–1175, May 2010. ",
1124
+ "bbox": [
1125
+ 173,
1126
+ 523,
1127
+ 825,
1128
+ 565
1129
+ ],
1130
+ "page_idx": 9
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "Helen M Berman, John Westbrook, Zukang Feng, Gary Gilliland, Talapady N Bhat, Helge Weissig, Ilya N Shindyalov, and Philip E Bourne. The protein data bank. Nucleic acids research, 28(1): 235–242, 2000. ",
1135
+ "bbox": [
1136
+ 173,
1137
+ 575,
1138
+ 823,
1139
+ 618
1140
+ ],
1141
+ "page_idx": 9
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "Wouter Boomsma and Jes Frellsen. Spherical convolutions and their application in molecular modelling. In I Guyon, U V Luxburg, S Bengio, H Wallach, R Fergus, S Vishwanathan, and R Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 3433–3443. Curran Associates, Inc., 2017. ",
1146
+ "bbox": [
1147
+ 174,
1148
+ 628,
1149
+ 825,
1150
+ 685
1151
+ ],
1152
+ "page_idx": 9
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "Sidhartha Chaudhury, Sergey Lyskov, and Jeffrey J Gray. Pyrosetta: a script-based interface for implementing molecular modeling algorithms using rosetta. Bioinformatics, 26(5):689–691, 2010. ",
1157
+ "bbox": [
1158
+ 173,
1159
+ 695,
1160
+ 821,
1161
+ 724
1162
+ ],
1163
+ "page_idx": 9
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "Tianqi Chen and Carlos Guestrin. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, pp. 785–794, New York, NY, USA, 2016. Association for Computing Machinery. ISBN 9781450342322. doi: 10.1145/2939672.2939785. URL https://doi.org/10. 1145/2939672.2939785. ",
1168
+ "bbox": [
1169
+ 173,
1170
+ 734,
1171
+ 825,
1172
+ 805
1173
+ ],
1174
+ "page_idx": 9
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "Jianlin Cheng, Arlo Randall, Michael Sweredoski, and Pierre Baldi. Scratch: a protein structure and structural feature prediction server. Nucleic acids research, 33:W72–6, 08 2005. doi: 10.1093/ nar/gki396. ",
1179
+ "bbox": [
1180
+ 173,
1181
+ 814,
1182
+ 823,
1183
+ 857
1184
+ ],
1185
+ "page_idx": 9
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "Jose Almeida Cruz, Marc-Fr ´ ed´ erick Blanchet, Michal Boniecki, Janusz M Bujnicki, Shi-Jie Chen, ´ Song Cao, Rhiju Das, Feng Ding, Nikolay V Dokholyan, Samuel Coulbourn Flores, et al. Rnapuzzles: a casp-like evaluation of rna three-dimensional structure prediction. Rna, 18(4):610–625, 2012. ",
1190
+ "bbox": [
1191
+ 173,
1192
+ 867,
1193
+ 825,
1194
+ 922
1195
+ ],
1196
+ "page_idx": 9
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "Natalie L Dawson, Tony E Lewis, Sayoni Das, Jonathan G Lees, David Lee, Paul Ashford, Christine A Orengo, and Ian Sillitoe. Cath: an expanded resource to predict protein function through structure and sequence. Nucleic acids research, 45(D1):D289–D295, 2017. ",
1201
+ "bbox": [
1202
+ 174,
1203
+ 103,
1204
+ 820,
1205
+ 146
1206
+ ],
1207
+ "page_idx": 10
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "Georgy Derevyanko, Sergei Grudinin, Yoshua Bengio, and Guillaume Lamoureux. Deep convolutional networks for quality assessment of protein folds. Bioinformatics, 34(23):4046–4053, 2018. ",
1212
+ "bbox": [
1213
+ 173,
1214
+ 154,
1215
+ 823,
1216
+ 183
1217
+ ],
1218
+ "page_idx": 10
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan´ Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In Advances in neural information processing systems, pp. 2224–2232, 2015. ",
1223
+ "bbox": [
1224
+ 176,
1225
+ 190,
1226
+ 823,
1227
+ 233
1228
+ ],
1229
+ "page_idx": 10
1230
+ },
1231
+ {
1232
+ "type": "text",
1233
+ "text": "Stephan Eismann, Raphael J L Townshend, Nathaniel Thomas, Milind Jagota, Bowen Jing, and Ron Dror. Hierarchical, rotation-equivariant neural networks to predict the structure of protein complexes. arXiv, 2020. ",
1234
+ "bbox": [
1235
+ 174,
1236
+ 239,
1237
+ 823,
1238
+ 282
1239
+ ],
1240
+ "page_idx": 10
1241
+ },
1242
+ {
1243
+ "type": "text",
1244
+ "text": "Matthias Fey and Jan E. Lenssen. Fast graph representation learning with PyTorch Geometric. In ICLR Workshop on Representation Learning on Graphs and Manifolds, 2019. ",
1245
+ "bbox": [
1246
+ 169,
1247
+ 290,
1248
+ 823,
1249
+ 320
1250
+ ],
1251
+ "page_idx": 10
1252
+ },
1253
+ {
1254
+ "type": "text",
1255
+ "text": "Alex Fout, Jonathon Byrd, Basir Shariat, and Asa Ben-Hur. Protein interface prediction using graph convolutional networks. In I Guyon, U V Luxburg, S Bengio, H Wallach, R Fergus, S Vishwanathan, and R Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 6530–6539. Curran Associates, Inc., 2017. ",
1256
+ "bbox": [
1257
+ 174,
1258
+ 327,
1259
+ 825,
1260
+ 383
1261
+ ],
1262
+ "page_idx": 10
1263
+ },
1264
+ {
1265
+ "type": "text",
1266
+ "text": "Richard A Friesner, Jay L Banks, Robert B Murphy, Thomas A Halgren, Jasna J Klicic, Daniel T Mainz, Matthew P Repasky, Eric H Knoll, Mee Shelley, Jason K Perry, et al. Glide: a new approach for rapid, accurate docking and scoring. 1. method and assessment of docking accuracy. Journal of medicinal chemistry, 47(7):1739–1749, 2004. ",
1267
+ "bbox": [
1268
+ 173,
1269
+ 391,
1270
+ 823,
1271
+ 446
1272
+ ],
1273
+ "page_idx": 10
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "M. V. Shapovalov G. G. Krivov and R. L. Dunbrack. Improved prediction of protein side-chain conformations with scwrl4. Proteins, 2009. URL http://dunbrack.fccc.edu/SCWRL3. php/. ",
1278
+ "bbox": [
1279
+ 173,
1280
+ 455,
1281
+ 821,
1282
+ 497
1283
+ ],
1284
+ "page_idx": 10
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "Joffrey Gabel, Jer´ emy Desaphy, and Didier Rognan. Beware of machine learning-based scoring ´ functions-on the danger of developing black boxes. J. Chem. Inf. Model., 54(10):2807–2815, October 2014. ",
1289
+ "bbox": [
1290
+ 173,
1291
+ 506,
1292
+ 821,
1293
+ 547
1294
+ ],
1295
+ "page_idx": 10
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry, 2017. ",
1300
+ "bbox": [
1301
+ 171,
1302
+ 555,
1303
+ 823,
1304
+ 585
1305
+ ],
1306
+ "page_idx": 10
1307
+ },
1308
+ {
1309
+ "type": "text",
1310
+ "text": "Jie Hou, Renzhi Cao, and Jianlin Cheng. Deep convolutional neural networks for predicting the quality of single protein structural models. bioRxiv, 2019. doi: 10.1101/590620. URL https: //www.biorxiv.org/content/early/2019/03/28/590620. ",
1311
+ "bbox": [
1312
+ 174,
1313
+ 592,
1314
+ 821,
1315
+ 635
1316
+ ],
1317
+ "page_idx": 10
1318
+ },
1319
+ {
1320
+ "type": "text",
1321
+ "text": "John Ingraham, Vikas K Garg, Regina Barzilay, and Tommi Jaakkola. Generative models for GraphBased protein design. March 2019. ",
1322
+ "bbox": [
1323
+ 171,
1324
+ 642,
1325
+ 823,
1326
+ 671
1327
+ ],
1328
+ "page_idx": 10
1329
+ },
1330
+ {
1331
+ "type": "text",
1332
+ "text": "Justina Jankauskaite, Brian Jim ˙ enez-Garc ´ ´ıa, Justas Dapkunas, Juan Fern ¯ andez-Recio, and Iain H ´ Moal. Skempi 2.0: an updated benchmark of changes in protein–protein binding energy, kinetics and thermodynamics upon mutation. Bioinformatics, 35(3):462–469, 2019. ",
1333
+ "bbox": [
1334
+ 174,
1335
+ 678,
1336
+ 821,
1337
+ 722
1338
+ ],
1339
+ "page_idx": 10
1340
+ },
1341
+ {
1342
+ "type": "text",
1343
+ "text": "Jia Deng, Wei Dong, R. Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. pp. 248–255, 2009. doi: 10.1109/cvprw.2009.5206848. ",
1344
+ "bbox": [
1345
+ 168,
1346
+ 728,
1347
+ 821,
1348
+ 758
1349
+ ],
1350
+ "page_idx": 10
1351
+ },
1352
+ {
1353
+ "type": "text",
1354
+ "text": "Jose Jim ´ enez, Miha ´ Skali ˇ c, Gerard Mart ˇ ´ınez-Rosell, and Gianni De Fabritiis. KDEEP: ProteinLigand absolute binding affinity prediction via 3D-Convolutional neural networks. J. Chem. Inf. Model., 58(2):287–296, February 2018. ",
1355
+ "bbox": [
1356
+ 174,
1357
+ 766,
1358
+ 823,
1359
+ 810
1360
+ ],
1361
+ "page_idx": 10
1362
+ },
1363
+ {
1364
+ "type": "text",
1365
+ "text": "Robbie Joosten, Tim Beek, Elmar Krieger, Maarten Hekkelman, Rob Hooft, Reinhard Schneider, Chris Sander, and Gert Vriend. A series of pdb related databases for everyday needs. Nucleic acids research, 39:D411–9, 11 2010. doi: 10.1093/nar/gkq1105. ",
1366
+ "bbox": [
1367
+ 173,
1368
+ 818,
1369
+ 823,
1370
+ 859
1371
+ ],
1372
+ "page_idx": 10
1373
+ },
1374
+ {
1375
+ "type": "text",
1376
+ "text": "Wolfgang Kabsch and Christian Sander. Dictionary of protein secondary structure: Pattern recognition of hydrogen-bonded and geometrical features. Biopolymers, 22(12):2577–2637, 1983. ISSN 1097-0282. doi: 10.1002/bip.360221211. URL http://dx.doi.org/10.1002/ bip.360221211. ",
1377
+ "bbox": [
1378
+ 174,
1379
+ 867,
1380
+ 825,
1381
+ 924
1382
+ ],
1383
+ "page_idx": 10
1384
+ },
1385
+ {
1386
+ "type": "text",
1387
+ "text": "Mostafa Karimi, Di Wu, Zhangyang Wang, and Yang Shen. Deepaffinity: interpretable deep learning of compound–protein affinity through unified recurrent and convolutional neural networks. Bioinformatics, 35(18):3329–3338, 2019. ",
1388
+ "bbox": [
1389
+ 174,
1390
+ 103,
1391
+ 821,
1392
+ 146
1393
+ ],
1394
+ "page_idx": 11
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. ",
1399
+ "bbox": [
1400
+ 171,
1401
+ 155,
1402
+ 823,
1403
+ 184
1404
+ ],
1405
+ "page_idx": 11
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "text": "Risi Kondor. N-body networks: a covariant hierarchical neural network architecture for learning atomic potentials, 2018. ",
1410
+ "bbox": [
1411
+ 171,
1412
+ 193,
1413
+ 823,
1414
+ 222
1415
+ ],
1416
+ "page_idx": 11
1417
+ },
1418
+ {
1419
+ "type": "text",
1420
+ "text": "Christian Kramer and Peter Gedeck. Leave-cluster-out cross-validation is appropriate for scoring functions derived from diverse protein data sets. J. Chem. Inf. Model., 50(11):1961–1969, November 2010. ",
1421
+ "bbox": [
1422
+ 173,
1423
+ 231,
1424
+ 823,
1425
+ 273
1426
+ ],
1427
+ "page_idx": 11
1428
+ },
1429
+ {
1430
+ "type": "text",
1431
+ "text": "Andriy Kryshtafovych, Torsten Schwede, Maya Topf, Krzysztof Fidelis, and John Moult. Critical assessment of methods of protein structure prediction (casp)—round xiii. Proteins: Structure, Function, and Bioinformatics, 87(12):1011–1020, 2019. ",
1432
+ "bbox": [
1433
+ 173,
1434
+ 282,
1435
+ 825,
1436
+ 325
1437
+ ],
1438
+ "page_idx": 11
1439
+ },
1440
+ {
1441
+ "type": "text",
1442
+ "text": "Andrew Leaver-Fay, Michael Tyka, Steven Lewis, Oliver Lange, James Thompson, Ron Jacak, Kristian Kaufman, P. Renfrew, Colin Smith, Will Sheffler, Ian Davis, Seth Cooper, Adrien Treuille, Daniel Mandell, Florian Richter, Yih-En Ban, Sarel Fleishman, Jacob Corn, David Kim, and Philip Bradley. Rosetta3: an object-oriented software suite for the simulation and design of macromolecules. Methods in enzymology, 487:545–74, 01 2011. ",
1443
+ "bbox": [
1444
+ 174,
1445
+ 335,
1446
+ 825,
1447
+ 405
1448
+ ],
1449
+ "page_idx": 11
1450
+ },
1451
+ {
1452
+ "type": "text",
1453
+ "text": "Fabrice Lefevre, Marie-H \\` el´ ene R \\` emy, and Jean-Michel Masson. Alanine-stretch scanning muta- ´ genesis: a simple and efficient method to probe protein structure and function. Nucleic acids research, 25(2):447–448, 1997. ",
1454
+ "bbox": [
1455
+ 174,
1456
+ 415,
1457
+ 823,
1458
+ 457
1459
+ ],
1460
+ "page_idx": 11
1461
+ },
1462
+ {
1463
+ "type": "text",
1464
+ "text": "Yan Li, Zhihai Liu, Jie Li, Li Han, Jie Liu, Zhixiong Zhao, and Renxiao Wang. Comparative assessment of scoring functions on an updated benchmark: 1. compilation of the test set. J. Chem. Inf. Model., 54(6):1700–1716, June 2014. ",
1465
+ "bbox": [
1466
+ 176,
1467
+ 465,
1468
+ 825,
1469
+ 510
1470
+ ],
1471
+ "page_idx": 11
1472
+ },
1473
+ {
1474
+ "type": "text",
1475
+ "text": "Yang Li and Jianyi Yang. Structural and sequence similarity makes a significant impact on machinelearning-based scoring functions for protein–ligand interactions. Journal of Chemical Information and Modeling, 57(4):1007–1012, 2017. ",
1476
+ "bbox": [
1477
+ 173,
1478
+ 518,
1479
+ 823,
1480
+ 560
1481
+ ],
1482
+ "page_idx": 11
1483
+ },
1484
+ {
1485
+ "type": "text",
1486
+ "text": "Shengchao Liu, Mehmet F Demirel, and Yingyu Liang. N-gram graph: Simple unsupervised representation for graphs, with applications to molecules. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alche-Buc, E. Fox, and R. Garnett (eds.), ´ Advances in Neural Information Processing Systems 32, pp. 8464–8476. Curran Associates, Inc., 2019. ",
1487
+ "bbox": [
1488
+ 174,
1489
+ 570,
1490
+ 825,
1491
+ 627
1492
+ ],
1493
+ "page_idx": 11
1494
+ },
1495
+ {
1496
+ "type": "text",
1497
+ "text": "Zhihai Liu, Yan Li, Li Han, Jie Li, Jie Liu, Zhixiong Zhao, Wei Nie, Yuchen Liu, and Renxiao Wang. PDB-wide collection of binding data: current status of the PDBbind database. Bioinformatics, 31 (3):405–412, February 2015. ",
1498
+ "bbox": [
1499
+ 174,
1500
+ 636,
1501
+ 825,
1502
+ 679
1503
+ ],
1504
+ "page_idx": 11
1505
+ },
1506
+ {
1507
+ "type": "text",
1508
+ "text": "Christophe Magnan and Pierre Baldi. Sspro/accpro 5: Almost perfect prediction of protein secondary structure and relative solvent accessibility using profiles, machine learning, and structural similarity. Bioinformatics (Oxford, England), 30:2592–97, 05 2014. doi: 10.1093/bioinformatics/ btu352. ",
1509
+ "bbox": [
1510
+ 174,
1511
+ 688,
1512
+ 825,
1513
+ 743
1514
+ ],
1515
+ "page_idx": 11
1516
+ },
1517
+ {
1518
+ "type": "text",
1519
+ "text": "Simon Mitternacht. FreeSASA: An open source C library for solvent accessible surface area calculations. F1000Research, 5(189), 2016. ISSN 1759796X. doi: 10.12688/f1000research.7931.1. ",
1520
+ "bbox": [
1521
+ 169,
1522
+ 753,
1523
+ 823,
1524
+ 782
1525
+ ],
1526
+ "page_idx": 11
1527
+ },
1528
+ {
1529
+ "type": "text",
1530
+ "text": "Frank Noe, Simon Olsson, Jonas K ´ ohler, and Hao Wu. Boltzmann generators: Sampling equilibrium ¨ states of many-body systems with deep learning. Science, 365(6457), 2019. ISSN 0036-8075. doi: 10.1126/science.aaw1147. URL https://science.sciencemag.org/content/ 365/6457/eaaw1147. ",
1531
+ "bbox": [
1532
+ 173,
1533
+ 791,
1534
+ 825,
1535
+ 848
1536
+ ],
1537
+ "page_idx": 11
1538
+ },
1539
+ {
1540
+ "type": "text",
1541
+ "text": "Hakime Ozt ¨ urk, Elif Ozkirimli, and Arzucan ¨ Ozg ¨ ur. DeepDTA: Deep Drug-Target Binding Affinity¨ Prediction. pp. 1–17, 2018. URL http://arxiv.org/abs/1801.10193. ",
1542
+ "bbox": [
1543
+ 176,
1544
+ 856,
1545
+ 820,
1546
+ 887
1547
+ ],
1548
+ "page_idx": 11
1549
+ },
1550
+ {
1551
+ "type": "text",
1552
+ "text": "Guillaume Pages, Benoit Charmettant, and Sergei Grudinin. Protein model quality assessment using \\` 3d oriented convolutional neural networks. Bioinformatics, 35(18):3313–3319, 2019. ",
1553
+ "bbox": [
1554
+ 176,
1555
+ 895,
1556
+ 821,
1557
+ 924
1558
+ ],
1559
+ "page_idx": 11
1560
+ },
1561
+ {
1562
+ "type": "text",
1563
+ "text": "Matthew Ragoza, Joshua Hochuli, Elisa Idrobo, Jocelyn Sunseri, and David Ryan Koes. ProteinLigand scoring with convolutional neural networks. J. Chem. Inf. Model., 57(4):942–957, April 2017. ",
1564
+ "bbox": [
1565
+ 174,
1566
+ 103,
1567
+ 823,
1568
+ 146
1569
+ ],
1570
+ "page_idx": 12
1571
+ },
1572
+ {
1573
+ "type": "text",
1574
+ "text": "Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. SQuad: $^ { 1 0 0 , 0 0 0 + }$ questions for machine comprehension of text. EMNLP 2016 - Conference on Empirical Methods in Natural Language Processing, Proceedings, (ii):2383–2392, 2016. ",
1575
+ "bbox": [
1576
+ 174,
1577
+ 154,
1578
+ 821,
1579
+ 196
1580
+ ],
1581
+ "page_idx": 12
1582
+ },
1583
+ {
1584
+ "type": "text",
1585
+ "text": "Raghunathan Ramakrishnan, Pavlo O. Dral, Matthias Rupp, and O. Anatole Von Lilienfeld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific Data, 1:1–7, 2014. ISSN 20524463. doi: 10.1038/sdata.2014.22. ",
1586
+ "bbox": [
1587
+ 174,
1588
+ 204,
1589
+ 823,
1590
+ 246
1591
+ ],
1592
+ "page_idx": 12
1593
+ },
1594
+ {
1595
+ "type": "text",
1596
+ "text": "Roshan Rao, Nicholas Bhattacharya, Neil Thomas, Yan Duan, Peter Chen, John Canny, Pieter Abbeel, and Yun Song. Evaluating protein transfer learning with tape. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alche-Buc, E. Fox, and R. Gar- ´ nett (eds.), Advances in Neural Information Processing Systems 32, pp. 9689– 9701. Curran Associates, Inc., 2019. URL http://papers.nips.cc/paper/ 9163-evaluating-protein-transfer-learning-with-tape.pdf. ",
1597
+ "bbox": [
1598
+ 173,
1599
+ 255,
1600
+ 825,
1601
+ 339
1602
+ ],
1603
+ "page_idx": 12
1604
+ },
1605
+ {
1606
+ "type": "text",
1607
+ "text": "Lars Ruddigkeit, Ruud van Deursen, Lorenz C Blum, and Jean-Louis Reymond. Enumeration of 166 Billion Organic Small Molecules in the Chemical Universe Database GDB-17. Journal of Chemical Information and Modeling, 52(11):2864–2875, nov 2012. ISSN 1549-9596. doi: 10. 1021/ci300415d. URL https://doi.org/10.1021/ci300415d. ",
1608
+ "bbox": [
1609
+ 173,
1610
+ 347,
1611
+ 826,
1612
+ 404
1613
+ ],
1614
+ "page_idx": 12
1615
+ },
1616
+ {
1617
+ "type": "text",
1618
+ "text": "Ruben Sanchez-Garcia, C O S Sorzano, J M Carazo, and Joan Segura. BIPSPI: a method for the prediction of partner-specific protein–protein interfaces. Bioinformatics, 35(14):343–353, 2018. ISSN 1367-4803. doi: 10.1093/bioinformatics/bty647. URL https://academic.oup.com/bioinformatics/advance-article/doi/ 10.1093/bioinformatics/bty647/5055586. ",
1619
+ "bbox": [
1620
+ 173,
1621
+ 411,
1622
+ 825,
1623
+ 481
1624
+ ],
1625
+ "page_idx": 12
1626
+ },
1627
+ {
1628
+ "type": "text",
1629
+ "text": "Soumya Sanyal, Ivan Anishchenko, Anirudh Dagar, David Baker, and Partha Talukdar. Proteingcn: Protein model quality assessment using graph convolutional networks. bioRxiv, 2020. doi: 10. 1101/2020.04.06.028266. URL https://www.biorxiv.org/content/early/2020/ 04/07/2020.04.06.028266. ",
1630
+ "bbox": [
1631
+ 173,
1632
+ 489,
1633
+ 825,
1634
+ 545
1635
+ ],
1636
+ "page_idx": 12
1637
+ },
1638
+ {
1639
+ "type": "text",
1640
+ "text": "Schrodinger, LLC. The PyMOL molecular graphics system, version 1.8. November 2015. ¨ ",
1641
+ "bbox": [
1642
+ 171,
1643
+ 554,
1644
+ 764,
1645
+ 569
1646
+ ],
1647
+ "page_idx": 12
1648
+ },
1649
+ {
1650
+ "type": "text",
1651
+ "text": "Kristof T. Schutt, Pieter-Jan Kindermans, Huziel E. Sauceda, Stefan Chmiela, Alexandre¨ Tkatchenko, and Klaus-Robert Muller. Schnet: A continuous-filter convolutional neural network¨ for modeling quantum interactions, 2017. ",
1652
+ "bbox": [
1653
+ 174,
1654
+ 577,
1655
+ 820,
1656
+ 619
1657
+ ],
1658
+ "page_idx": 12
1659
+ },
1660
+ {
1661
+ "type": "text",
1662
+ "text": "Andrew W Senior, Richard Evans, John Jumper, James Kirkpatrick, Laurent Sifre, Tim Green, Chongli Qin, Augustin Zˇ ´ıdek, Alexander WR Nelson, Alex Bridgland, et al. Improved protein structure prediction using potentials from deep learning. Nature, pp. 1–5, 2020. ",
1663
+ "bbox": [
1664
+ 174,
1665
+ 627,
1666
+ 823,
1667
+ 672
1668
+ ],
1669
+ "page_idx": 12
1670
+ },
1671
+ {
1672
+ "type": "text",
1673
+ "text": "Minyi Su, Qifan Yang, Yu Du, Guoqin Feng, Zhihai Liu, Yan Li, and Renxiao Wang. Comparative assessment of scoring functions: The CASF-2016 update. J. Chem. Inf. Model., 59(2):895–913, February 2019. ",
1674
+ "bbox": [
1675
+ 174,
1676
+ 679,
1677
+ 823,
1678
+ 722
1679
+ ],
1680
+ "page_idx": 12
1681
+ },
1682
+ {
1683
+ "type": "text",
1684
+ "text": "S Joshua Swamidass, Jonathan Chen, Jocelyne Bruand, Peter Phung, Liva Ralaivola, and Pierre Baldi. Kernels for small molecules and the prediction of mutagenicity, toxicity and anti-cancer activity. Bioinformatics, 21(suppl 1):i359–i368, 2005. ",
1685
+ "bbox": [
1686
+ 174,
1687
+ 729,
1688
+ 823,
1689
+ 772
1690
+ ],
1691
+ "page_idx": 12
1692
+ },
1693
+ {
1694
+ "type": "text",
1695
+ "text": "Nathaniel Thomas, Tess Smidt, Steven M. Kearnes, Lusann Yang, Li Li, Kai Kohlhoff, and Patrick Riley. Tensor field networks: Rotation- and translation-equivariant neural networks for 3d point clouds. CoRR, abs/1802.08219, 2018. URL http://arxiv.org/abs/1802.08219. ",
1696
+ "bbox": [
1697
+ 174,
1698
+ 780,
1699
+ 825,
1700
+ 823
1701
+ ],
1702
+ "page_idx": 12
1703
+ },
1704
+ {
1705
+ "type": "text",
1706
+ "text": "Wen Torng and Russ B Altman. 3D deep convolutional neural networks for amino acid environment similarity analysis. BMC Bioinformatics, 18(1):302, June 2017. ",
1707
+ "bbox": [
1708
+ 169,
1709
+ 830,
1710
+ 823,
1711
+ 859
1712
+ ],
1713
+ "page_idx": 12
1714
+ },
1715
+ {
1716
+ "type": "text",
1717
+ "text": "Raphael Townshend, Rishi Bedi, Patricia Suriana, and Ron Dror. End-to-end learning on 3d protein structure for interface prediction. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alche-Buc, ´ E. Fox, and R. Garnett (eds.), Advances in Neural Information Processing Systems 32, pp. 15642– 15651. 2019. ",
1718
+ "bbox": [
1719
+ 174,
1720
+ 867,
1721
+ 825,
1722
+ 922
1723
+ ],
1724
+ "page_idx": 12
1725
+ },
1726
+ {
1727
+ "type": "text",
1728
+ "text": "Masashi Tsubaki, Kentaro Tomii, and Jun Sese. Compound-protein interaction prediction with endto-end learning of neural networks for graphs and sequences. Bioinformatics, 35(2):309–318, 2019. ISSN 14602059. doi: 10.1093/bioinformatics/bty535. ",
1729
+ "bbox": [
1730
+ 176,
1731
+ 103,
1732
+ 823,
1733
+ 146
1734
+ ],
1735
+ "page_idx": 13
1736
+ },
1737
+ {
1738
+ "type": "text",
1739
+ "text": "Karolis Uziela, David Menendez Hurtado, Nanjiang Shu, Bj ´ orn Wallner, and Arne Elofsson. ¨ ProQ3d: improved model quality assessments using deep learning. Bioinformatics, pp. btw819, jan 2017. doi: 10.1093/bioinformatics/btw819. URL https://doi.org/10.1093% 2Fbioinformatics%2Fbtw819. ",
1740
+ "bbox": [
1741
+ 174,
1742
+ 155,
1743
+ 825,
1744
+ 210
1745
+ ],
1746
+ "page_idx": 13
1747
+ },
1748
+ {
1749
+ "type": "text",
1750
+ "text": "Thom Vreven, Iain H. Moal, Anna Vangone, Brian G. Pierce, Panagiotis L. Kastritis, Mieczyslaw Torchala, Raphael Chaleil, Brian Jimenez-Garc ´ ´ıa, Paul A. Bates, Juan Fernandez-Recio, Alexandre M.J.J. Bonvin, and Zhiping Weng. Updates to the integrated protein–protein interaction benchmarks: Docking benchmark version 5 and affinity benchmark version 2. Journal of Molecular Biology, 427(19):3031 – 3041, 2015. ISSN 0022-2836. doi: https://doi. org/10.1016/j.jmb.2015.07.016. URL http://www.sciencedirect.com/science/ article/pii/S0022283615004180. ",
1751
+ "bbox": [
1752
+ 173,
1753
+ 220,
1754
+ 825,
1755
+ 319
1756
+ ],
1757
+ "page_idx": 13
1758
+ },
1759
+ {
1760
+ "type": "text",
1761
+ "text": "Izhar Wallach, Michael Dzamba, and Abraham Heifets. Atomnet: A deep convolutional neural network for bioactivity prediction in structure-based drug discovery, 2015. ",
1762
+ "bbox": [
1763
+ 171,
1764
+ 327,
1765
+ 823,
1766
+ 356
1767
+ ],
1768
+ "page_idx": 13
1769
+ },
1770
+ {
1771
+ "type": "text",
1772
+ "text": "Renxiao Wang, Xueliang Fang, Yipin Lu, and Shaomeng Wang. The pdbbind database: collection of binding affinities for proteinligand complexes with known three-dimensional structures. Journal of Medicinal Chemistry, 47(12):2977–2980, 2004. doi: 10.1021/jm030580l. URL https: //doi.org/10.1021/jm030580l. PMID: 15163179. ",
1773
+ "bbox": [
1774
+ 173,
1775
+ 364,
1776
+ 825,
1777
+ 421
1778
+ ],
1779
+ "page_idx": 13
1780
+ },
1781
+ {
1782
+ "type": "text",
1783
+ "text": "Andrew M Watkins and Rhiju Das. Farfar2: Improved de novo rosetta prediction of complex global rna folds. bioRxiv, pp. 764449, 2019. ",
1784
+ "bbox": [
1785
+ 169,
1786
+ 430,
1787
+ 823,
1788
+ 459
1789
+ ],
1790
+ "page_idx": 13
1791
+ },
1792
+ {
1793
+ "type": "text",
1794
+ "text": "Maurice Weiler, Mario Geiger, Max Welling, Wouter Boomsma, and Taco Cohen. 3D steerable CNNs: Learning rotationally equivariant features in volumetric data. July 2018. ",
1795
+ "bbox": [
1796
+ 169,
1797
+ 468,
1798
+ 823,
1799
+ 497
1800
+ ],
1801
+ "page_idx": 13
1802
+ },
1803
+ {
1804
+ "type": "text",
1805
+ "text": "David Weininger. SMILES, a Chemical Language and Information System: 1: Introduction to Methodology and Encoding Rules. Journal of Chemical Information and Computer Sciences, 28 (1):31–36, 1988. ISSN 00952338. doi: 10.1021/ci00057a005. ",
1806
+ "bbox": [
1807
+ 173,
1808
+ 506,
1809
+ 823,
1810
+ 549
1811
+ ],
1812
+ "page_idx": 13
1813
+ },
1814
+ {
1815
+ "type": "text",
1816
+ "text": "Zhenqin Wu, Bharath Ramsundar, Evan N. Feinberg, Joseph Gomes, Caleb Geniesse, Aneesh S. Pappu, Karl Leswing, and Vijay Pande. Moleculenet: a benchmark for molecular machine learning. Chem. Sci., 9:513–530, 2018. doi: 10.1039/C7SC02664A. URL http://dx.doi.org/ 10.1039/C7SC02664A. ",
1817
+ "bbox": [
1818
+ 173,
1819
+ 558,
1820
+ 825,
1821
+ 613
1822
+ ],
1823
+ "page_idx": 13
1824
+ },
1825
+ {
1826
+ "type": "text",
1827
+ "text": "Yang Zhang and Jeffrey Skolnick. Scoring function for automated assessment of protein structure template quality. Proteins, 57:702–10, 09 2007. doi: 10.1002/prot.20264. URL https:// zhanglab.ccmb.med.umich.edu/TM-score/. ",
1828
+ "bbox": [
1829
+ 174,
1830
+ 623,
1831
+ 825,
1832
+ 665
1833
+ ],
1834
+ "page_idx": 13
1835
+ },
1836
+ {
1837
+ "type": "text",
1838
+ "text": "Alex Zhavoronkov, Yan A. Ivanenkov, Alex Aliper, Mark S. Veselov, Vladimir A. Aladinskiy, Anastasiya V. Aladinskaya, Victor A. Terentiev, Daniil A. Polykovskiy, Maksim D. Kuznetsov, Arip Asadulaev, Yury Volkov, Artem Zholus, Rim R. Shayakhmetov, Alexander Zhebrak, Lidiya I. Minaeva, Bogdan A. Zagribelnyy, Lennart H. Lee, Richard Soll, David Madge, Li Xing, Tao Guo, and Alan Aspuru-Guzik. Deep learning enables rapid identification of potent DDR1 ki- ´ nase inhibitors. Nature Biotechnology, 37(9):1038–1040, 2019. ISSN 15461696. doi: 10.1038/ s41587-019-0224-x. URL http://dx.doi.org/10.1038/s41587-019-0224-x. ",
1839
+ "bbox": [
1840
+ 174,
1841
+ 674,
1842
+ 825,
1843
+ 772
1844
+ ],
1845
+ "page_idx": 13
1846
+ },
1847
+ {
1848
+ "type": "text",
1849
+ "text": "David Zilian and Christoph A Sotriffer. SFCscore(RF): a random forest-based scoring function for improved affinity prediction of protein-ligand complexes. J. Chem. Inf. Model., 53(8):1923–1933, August 2013. ",
1850
+ "bbox": [
1851
+ 174,
1852
+ 781,
1853
+ 825,
1854
+ 824
1855
+ ],
1856
+ "page_idx": 13
1857
+ }
1858
+ ]
parse/train/jnMjOctlfbZ/jnMjOctlfbZ_middle.json ADDED
The diff for this file is too large to render. See raw diff