Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/HJe4Cp4KwH/HJe4Cp4KwH.md +273 -0
- parse/train/HJe4Cp4KwH/HJe4Cp4KwH_content_list.json +1396 -0
- parse/train/HJe4Cp4KwH/HJe4Cp4KwH_middle.json +0 -0
- parse/train/HJe4Cp4KwH/HJe4Cp4KwH_model.json +0 -0
- parse/train/HWX5j6Bv_ih/HWX5j6Bv_ih.md +394 -0
- parse/train/HWX5j6Bv_ih/HWX5j6Bv_ih_content_list.json +1860 -0
- parse/train/HWX5j6Bv_ih/HWX5j6Bv_ih_middle.json +0 -0
- parse/train/HWX5j6Bv_ih/HWX5j6Bv_ih_model.json +0 -0
- parse/train/RHY_9ZVcTa_/RHY_9ZVcTa_.md +467 -0
- parse/train/RHY_9ZVcTa_/RHY_9ZVcTa__content_list.json +0 -0
- parse/train/RHY_9ZVcTa_/RHY_9ZVcTa__middle.json +0 -0
- parse/train/RHY_9ZVcTa_/RHY_9ZVcTa__model.json +0 -0
- parse/train/SJx0q1rtvS/SJx0q1rtvS.md +0 -0
- parse/train/SJx0q1rtvS/SJx0q1rtvS_content_list.json +0 -0
- parse/train/SJx0q1rtvS/SJx0q1rtvS_middle.json +0 -0
- parse/train/SJx0q1rtvS/SJx0q1rtvS_model.json +0 -0
- parse/train/rJo9n9Feg/rJo9n9Feg_model.json +0 -0
- parse/train/xCy9thPPTb_/xCy9thPPTb_.md +247 -0
- parse/train/xCy9thPPTb_/xCy9thPPTb__content_list.json +1346 -0
- parse/train/xCy9thPPTb_/xCy9thPPTb__model.json +0 -0
parse/train/HJe4Cp4KwH/HJe4Cp4KwH.md
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GNN-FILM: GRAPH NEURAL NETWORKS WITH FEATURE-WISE LINEAR MODULATION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
This paper presents a new Graph Neural Network (GNN) type using feature-wise linear modulation (FiLM). Many standard GNN variants propagate information along the edges of a graph by computing “messages” based only on the representation of the source of each edge. In GNN-FiLM, the representation of the target node of an edge is additionally used to compute a transformation that can be applied to all incoming messages, allowing feature-wise modulation of the passed information.
|
| 8 |
+
|
| 9 |
+
Results of experiments comparing different GNN architectures on three tasks from the literature are presented, based on re-implementations of baseline methods. Hyperparameters for all methods were found using extensive search, yielding somewhat surprising results: differences between baseline models are smaller than reported in the literature. Nonetheless, GNN-FiLM outperforms baseline methods on a regression task on molecular graphs and performs competitively on other tasks.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Learning from graph-structured data has seen explosive growth over the last few years, as graphs are a convenient formalism to model the broad class of data that has objects (treated as vertices) with some known relationships (treated as edges). Example usages include reasoning about physical and biological systems, knowledge bases, computer programs, and relational reasoning in computer vision tasks. This graph construction is a highly complex form of feature engineering, mapping the knowledge of a domain expert into a graph structure which can be consumed and exploited by high-capacity neural network models.
|
| 14 |
+
|
| 15 |
+
Many neural graph learning methods can be summarised as neural message passing (Gilmer et al., 2017): nodes are initialised with some representation and then exchange information by transforming their current state (in practice with a single linear layer) and sending it as a message to all neighbours in the graph. At each node, messages are aggregated in some way and then used to update the associated node representation. In this setting, the message is entirely determined by the source node (and potentially the edge type) and the target node is not taken into consideration. A (partial) exception to this is the family of Graph Attention Networks (Velickovi ˇ c et al., 2018), where ´ the agreement between source and target representation of an edge is used to determine the weight of the message in an attention architecture. However, this weight is applied to all dimensions of the message at the same time.
|
| 16 |
+
|
| 17 |
+
A simple consequence of this observation may be to simply compute messages from the pair of source and target node state. However, the linear layer commonly used to compute messages would only allow additive interactions between the representations of source and target nodes. More complex transformation functions are often impractical, as computation in GNN implementations is dominated by the message transformation function.
|
| 18 |
+
|
| 19 |
+
However, this need for non-trivial interaction between different information sources is a common problem in neural network design. A recent trend has been the use of hypernetworks (Ha et al., 2017), neural networks that compute the weights of other networks. In this setting, interaction between two signal sources is achieved by using one of them as the input to a hypernetwork and the other as input to the computed network. While an intellectually pleasing approach, it is often impractical because the prediction of weights of non-trivial neural networks is computationally expensive.
|
| 20 |
+
|
| 21 |
+
Approaches to mitigate this exist (e.g., Wu et al. (2019) handle this in natural language processing), but are often domain-specific.
|
| 22 |
+
|
| 23 |
+
A more general mitigation method is to restrict the structure of the computed network. Recently, “feature-wise linear modulations” (FiLM) were introduced in the visual question answering domain (Perez et al., 2017). Here, the hypernetwork is fed with an encoding of a question and produces an element-wise affine function that is applied to the features extracted from a picture. This can be adapted to the graph message passing domain by using the representation of the target node to compute the affine function. This compromise between expressiveness and computational feasibility has been very effective in some domains and the results presented in this article indicate that it is also a good fit for the graph domain.
|
| 24 |
+
|
| 25 |
+
This article explores the use of hypernetworks in learning on graphs. Sect. 2 first reviews existing GNN models from the related work to identify commonalities and differences. This involves generalising a number of existing formalisms to new formulations that are able to handle graphs with different types of edges, which are often used to model different relationship between vertices. Then, two new formalisms are introduced: Relational Graph Dynamic Convolutional Networks (RGDCN), which dynamically compute the neural message passing function as a linear layer, and Graph Neural Networks with Feature-wise Linear Modulation (GNN-FiLM), which combine learned message passing functions with dynamically computed element-wise affine transformations. In Sect. 3, a range of baselines are compared in extensive experiments on three tasks from the literature, spanning classification, regression and ranking tasks on small and large graphs. Experiments were performed on re-implementations of existing model architectures in the same framework and hyperparameter setting searches were performed with the same computational budgets across all architectures. The results show that differences between baselines are smaller than the literature suggests and that the new FiLM model performs well on a number of interesting tasks.
|
| 26 |
+
|
| 27 |
+
# 2 MODEL
|
| 28 |
+
|
| 29 |
+
Notation. Let $\mathcal { L }$ be a finite (usually small) set of edge types. Then, a directed graph $\mathcal { G } = ( \nu , \mathcal { E } )$ has nodes $\nu$ and typed edges $\mathcal { E } \subseteq \mathcal { V } \times \mathcal { L } \times \mathcal { V }$ , where $( u , \ell , v ) \in \mathcal { E }$ denotes an edge from node $u$ to node $v$ of type $\ell$ , usually written as $u \xrightarrow { \ell _ { \setminus } } v$ .
|
| 30 |
+
|
| 31 |
+
Graph Neural Networks. As discussed above, Graph Neural Networks operate by propagating information along the edges of a given graph. Concretely, each node $v$ is associated with an initial representation $\boldsymbol { h } _ { v } ^ { ( 0 ) }$ (for example obtained from the label of that node, or by some other model component). Then, a GNN layer updates the node representations using the node representations of its neighbours in the graph, yielding representations $\pmb { h } _ { v } ^ { ( 1 ) }$ . This process can be unrolled through time by repeatedly applying the same update function, yielding representations $h _ { v } ^ { ( 2 ) } \ldots h _ { v } ^ { ( T ) }$ . Alternatively, several GNN layers can be stacked, which is intuitively similar to unrolling through time, but increases the GNN capacity by using different parameters for each timestep.
|
| 32 |
+
|
| 33 |
+
In Gated Graph Neural Networks (GGNN) (Li et al., 2016), the update rule uses one linear layer $W _ { \ell }$ per edge type $\ell$ to compute messages and combines the aggregated messages with the current representation of a node using a recurrent unit $r$ (e.g., GRU or LSTM cells), yielding the following definition.
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
\pmb { h } _ { v } ^ { ( t + 1 ) } = r ( \pmb { h } _ { v } ^ { ( t ) } , \sum _ { u v \in \mathcal { E } } W _ { \ell } \pmb { h } _ { u } ^ { ( t ) } ; \pmb { \theta } _ { r } )
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
The learnable parameters of the model are the edge-type-dependent weights $W _ { \ell }$ and the recurrent cell parameters $\pmb { \theta } _ { r }$ .
|
| 40 |
+
|
| 41 |
+
In Relational Graph Convolutional Networks (R-GCN) (Schlichtkrull et al., 2018), the gated unit is replaced by a simple non-linearity $\sigma$ (e.g., the hyperbolic tangent).
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
\pmb { h } _ { v } ^ { ( t + 1 ) } = \sigma \left( \sum _ { u \not \in \mathcal { E } } \frac { 1 } { c _ { v , \ell } } \cdot W _ { \ell } \pmb { h } _ { u } ^ { ( t ) } \right)
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
Here, $c _ { v , \ell }$ is a normalisation factor usually set to the number of edges of type $\ell$ ending in $v$ . The learnable parameters of the model are the edge-type-dependent weights $W _ { \ell }$ . It is important to note that in this setting, the edge type set $\mathcal { L }$ is assumed to contain a special edge type 0 for self-loops $v \xrightarrow { 0 } v$ , allowing state associated with a node to be kept.
|
| 48 |
+
|
| 49 |
+
In Graph Attention Networks (GAT) (Velickovi ˇ c et al., 2018), new node representations are com- ´ puted from a weighted sum of neighbouring node representations. The model can be generalised from the original definitional to support different edge types as follows (we will call this R-GAT below).1
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
\begin{array} { r l } & { \boldsymbol { e } _ { u , \ell , v } = \mathrm { L e a k y R e L U } ( \boldsymbol { \alpha } _ { \ell } \cdot ( W _ { \ell } \boldsymbol { h } _ { u } ^ { ( t ) } \| W _ { \ell } \boldsymbol { h } _ { v } ^ { ( t ) } ) ) } \\ & { \qquad \boldsymbol { a } _ { v } = \mathrm { s o f t m a x } ( \boldsymbol { e } _ { u , \ell , v } \mid \boldsymbol { u } \xrightarrow { \ell } \boldsymbol { v } \in \mathcal { E } ) } \\ & { \quad \boldsymbol { h } _ { v } ^ { ( t + 1 ) } = \sigma \left( \displaystyle \sum _ { u \xrightarrow { \ell } v \in \mathcal { E } } ( \boldsymbol { a } _ { v } ) _ { u \xrightarrow { \ell } v } \cdot W _ { \ell } \boldsymbol { h } _ { u } ^ { ( t ) } \right) } \end{array}
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
Here, $\pmb { \alpha } _ { \ell }$ is a learnable row vector used to weigh different feature dimensions in the computation of an attention (“relevance”) score of the node representations, $\mathbf { \Delta x } \Vert \mathbf { \Delta y }$ is the concatenation of vectors $_ { \textbf { \em x } }$ and $\textbf { { y } }$ , and $( \pmb { a } _ { v } ) _ { u } \mathcal { L } _ { v }$ refers to the weight computed by the softmax for that edge. The learnable parameters of the model are the edge-type-dependent weights $W _ { \ell }$ and the attention parameters $\pmb { \alpha } _ { \ell }$ . In practice, GATs usually employ several attention heads that independently implement the mechanism above in parallel, using separate learnable parameters. The results of the different attention heads are then concatenated after each propagation round to yield the value of $h _ { v } ^ { ( t + 1 ) }$ .
|
| 56 |
+
|
| 57 |
+
More recently, $\mathrm { X u }$ et al. (2019) analysed the expressiveness of different GNN types, comparing their ability to distinguish similar graphs with the Weisfeiler-Lehman (WL) graph isomorphism test. Their results show that GCNs and the GraphSAGE model Hamilton et al. (2017) are strictly weaker than the WL test and hence they developed Graph Isomorphism Networks (GIN) (Xu et al., 2019), which are indeed as powerful as the WL test. While the GIN definition is limited to a single edge type, Corollary 6 of $\mathrm { X u }$ et al. (2019) shows that using the definition
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\pmb { h } _ { v } ^ { ( t + 1 ) } = \varphi ( ( 1 + \epsilon ) \cdot f ( \pmb { h } _ { v } ^ { ( t ) } ) + \sum _ { u v \in \mathcal { E } } f ( \pmb { h } _ { u } ^ { ( t ) } ) ) ,
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
there are choices for $\epsilon$ , $\varphi$ and $f$ such that the node representation update is sufficient for the overall network to be as powerful as the WL test. In the setting of different edge types, the function $f$ in the sum over neighbouring nodes needs to reflect different edge types to distinguish graphs such as $v \ \bot \rangle \ u \ \ll \ w$ and $v \ \bar { 2 } \gg \ u \ \ll \ w$ from each other. Using different functions $f _ { \ell }$ for different edge types makes it possible to unify the use of the current node representation $h _ { v } ^ { ( t ) }$ with the use of neighbouring node representations by again using a fresh edge type 0 for self-loops $v \ a \ $ . In that setting, the factor $( 1 + \epsilon )$ can be integrated into $f _ { 0 }$ . Finally, following an argument similar to $\mathrm { X u }$ et al. (2019), $\varphi$ and $f$ at subsequent layers can be “merged” into a single function which can be approximated by a multilayer perceptron (MLP), yielding the final R-GIN definition
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\pmb { h } _ { v } ^ { ( t + 1 ) } = \sigma \left( \sum _ { u \downarrow v \in \mathcal { E } } M L P ( \pmb { h } _ { u } ^ { ( t ) } ; \pmb { \theta } _ { \ell } ) \right) .
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
The learnable parameters here are the edge-specific weights $\pmb { \theta } _ { \ell }$ . Note that Eq. (4) is very similar to the definition of R-GCNs (Eq. (2)), only dropping the normalisation factor $\frac { \hat { \mathbf { 1 } } } { c _ { v , \ell } }$ and replacing linear layers by an MLP.
|
| 70 |
+
|
| 71 |
+
While many more GNN variants exist, the four formalisms above are broadly representative of general trends. It is notable that in all of these models, the information passed from one node to another is based on the learned weights and the representation of the source of an edge. In contrast, the representation of the target of an edge is only updated (in the GGNN case Eq. (1)), treated as another incoming message (in the R-GCN case Eq. (2) and the R-GIN case Eq. (4)), or used to weight the relevance of an edge (in the R-GAT case Eq. (3)). Sometimes unnamed GNN variants of the above are used (e.g., by Selsam et al. (2019); Paliwal et al. (2019)), replacing the linear layers to compute the messages for each edge by MLPs applied to the concatenation of the representations of source and target nodes. In the experiments, this will be called GNN-MLP, formally defined as follows.2
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
\pmb { h } _ { v } ^ { ( t + 1 ) } = \sigma \left( \sum _ { u \xrightarrow [ ] { \ell } v \in \mathcal { E } } \frac { 1 } { c _ { v , \ell } } \cdot M L P \left( \pmb { h } _ { u } ^ { ( t ) } \| \pmb { h } _ { v } ^ { ( t ) } \ ; \ \pmb { \theta } _ { \ell } \right) \right)
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
Below, we will instantiate the $M L P$ with a single linear layer to obtain what we call GNN-MLP0, which only differs from R-GCNs (Eq. (2)) in that the message passing function is applied to the concatenation of source and target state.
|
| 78 |
+
|
| 79 |
+
# 2.1 GRAPH HYPERNETWORKS
|
| 80 |
+
|
| 81 |
+
Hypernetworks (i.e., neural networks computing the parameters of another neural network) (Ha et al., 2017) have been successfully applied to a number of different tasks; naturally raising the question if they are also applicable in the graph domain.
|
| 82 |
+
|
| 83 |
+
Intuitively, a hypernetwork corresponds to a higher-order function, i.e., it can be viewed as a function computing another function. Hence, a natural idea would be to use the target of a message propagation step to compute the function computing the message; essentially allowing it to focus on features that are especially relevant for the update of the target node representation.
|
| 84 |
+
|
| 85 |
+
Relational Graph Dynamic Convolutional Networks (RGDCN) A first attempt would be to adapt (2) to replace the learnable message transformation $W _ { \ell }$ by the result of some learnable function $f$ that operates on the target representation:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\pmb { h } _ { v } ^ { ( t + 1 ) } = \sigma \left( \sum _ { u \downarrow v \in \mathcal { E } } f ( \pmb { h } _ { v } ^ { ( t ) } ; \pmb { \theta } _ { f , \ell } ) \pmb { h } _ { u } ^ { ( t ) } \right)
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
However, for a representation size $D$ , $f$ would need to produce a matrix of size $D ^ { 2 }$ from $D$ inputs. Hence, if implemented as a simple linear layer, $f$ would have on the order of $\mathcal { O } ( D ^ { 3 } )$ parameters, quickly making it impractical in most contexts.
|
| 92 |
+
|
| 93 |
+
This can be somewhat mitigated by splitting the node representations $h _ { v } ^ { ( t ) }$ into $C$ “chunks” $h _ { v , c } ^ { ( t ) }$ of dimension $\begin{array} { r } { K = { \frac { D } { C } } } \end{array}$ :
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\begin{array} { r l } & { W _ { \ell , t , v , c } = f ( \pmb { h } _ { v } ^ { ( t ) } ; \pmb { \theta } _ { f , \ell , c } ) } \\ & { \qquad \mathbf { h } _ { v } ^ { ( t + 1 ) } = \displaystyle \operatorname* { l i } _ { 1 \leq c \leq C } \sigma \left( \sum _ { u } \pounds _ { v \in \mathcal { E } } W _ { \ell , t , v , c } \pmb { h } _ { u , c } ^ { ( t ) } \right) } \end{array}
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
The number of parameters of the model can now be reduced by tying the value of some instances of $\theta _ { f , \ell , c }$ . For example, the update function for a chunk $c$ can be computed using only the corresponding chunk of the node representation $h _ { v , c } ^ { ( t ) }$ , or the same update function can be applied to all “chunks” by setting $\pmb { \theta } _ { f , \ell , 1 } = . . . = \pmb { \theta } _ { f , \ell , C }$ . The learnable parameters of the model are only the hypernetwork parameters $\theta _ { f , \ell , c }$ . This is somewhat less desirable than the related idea of Wu et al. (2019), which operates on sequences, where sharing between neighbouring elements of the sequence has an intuitive interpretation that is not applicable in the general graph setting.
|
| 100 |
+
|
| 101 |
+
Graph Neural Networks with Feature-wise Linear Modulation (GNN-FiLM) In (6), the message passing layer is a linear transformation conditioned on the target node representation, focusing on separate chunks of the node representation at a time. In the extreme case in which the dimension of each chunk is 1, this method coincides with the ideas of Perez et al. (2017), who propose to use layers of element-wise affine transformations to modulate feature maps in the visual question answering setting; there, a natural language question is the input used to compute the affine transformation applied to the features extracted from a picture.
|
| 102 |
+
|
| 103 |
+
In the graph setting, we can use each node’s representation as an input that determines an elementwise affine transformation of incoming messages, allowing the model to dynamically up-weight and down-weight features based on the information present at the target node of an edge. This yields the following update rule, using a learnable function $g$ to compute the parameters of the affine transformation.
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
\begin{array} { r l } & { \beta _ { \ell , v } ^ { ( t ) } , \gamma _ { \ell , v } ^ { ( t ) } = g ( \pmb { h } _ { v } ^ { ( t ) } ; \pmb { \theta } _ { g , \ell } ) } \\ & { \quad \pmb { h } _ { v } ^ { ( t + 1 ) } = \sigma \left( \displaystyle \sum _ { u \in \mathcal { E } } \gamma _ { \ell , v } ^ { ( t ) } \odot W _ { \ell } \pmb { h } _ { u } ^ { ( t ) } + \beta _ { \ell , v } ^ { ( t ) } \right) } \end{array}
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
The learnable parameters of the model are both the hypernetwork parameters $\theta _ { g , \ell }$ and the weights $W _ { \ell }$ . In practice, implementing $g$ as a single linear layer works well.
|
| 110 |
+
|
| 111 |
+
In the case of using a single linear layer, the resulting message passing function is bilinear in source and target node representation, as the message computation is centred around $( W _ { g } \pmb { h } _ { v } ^ { ( t ) } ) \odot ( W _ { \ell } \pmb { h } _ { u } ^ { ( t ) } )$ . This is the core difference to the (linear) interaction of source and target node representations in models that use $W _ { \ell } ( \pmb { h } _ { u } ^ { ( t ) } | | \pmb { h } _ { v } ^ { ( t ) } )$ .
|
| 112 |
+
|
| 113 |
+
A simple toy example may illustrate the usefulness of such a mechanism: assuming a graph of nodes $\nu _ { A }$ and $\gamma _ { B }$ and edge types 1 and 2, a task may involve counting the number of 1-neighbours of $\nu _ { A }$ nodes and of 2-neighbours of $\gamma _ { B }$ nodes. By setting $\gamma _ { 1 , v _ { a } } = 1$ , $\gamma _ { 2 , v _ { a } } = 0$ for $v _ { a } \in \mathcal { V } _ { A }$ and $\gamma _ { 1 , v _ { b } } = 0$ , $\gamma _ { 2 , v _ { b } } = 1$ for $v _ { b } \in \mathcal { V } _ { B }$ , GNN-FiLM can solve this in a single layer. Simpler approaches can solve this by counting $A / 1 , A / 2 , B / 1$ and $B / 2$ neighbours separately in one layer and then projecting to the correct counter, but require more feature dimensions and layers for this. As this toy example illustrates, a core capability of GNN-FiLM is to learn to ignore graph edges based on the representation of target nodes.
|
| 114 |
+
|
| 115 |
+
Note that the featurewise modulation can also be viewed of an extension of the gating mechanism of GRU or LSTM cells used in GGNNs. Concretely, the “forgetting” of memories in a GRU/LSTM is similar to down-weighting messages computed for the self-loop edges and the gating of the cell input is similar to the modulation of other incoming messages. However, GGNNs apply this gating to the sum of all incoming messages (cf. Eq. (1), wheras in GNN-FiLM the modulation additionally depends on the edge type, allowing for a more fine-grained gating mechanism.
|
| 116 |
+
|
| 117 |
+
Finally, a small implementation bug brought focus to the fact that applying the non-linearity $\sigma$ after summing up messages from neighbouring nodes can make it harder to perform tasks such as counting the number of neighbours with a certain feature. In experiments, applying the non-linearity before aggregation as in the following update rule improved performance.
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\pmb { h } _ { v } ^ { ( t + 1 ) } = l \left( \sum _ { u \downarrow } \sigma _ { v \in \mathcal { E } } \sigma \left( \gamma _ { \ell , v } ^ { ( t ) } \odot W _ { \ell } \pmb { h } _ { u } ^ { ( t ) } + \beta _ { \ell , v } ^ { ( t ) } \right) ; \pmb { \theta } _ { l } \right)
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
However, this means that the magnitude of node representations is now dependent on the degree of nodes in the handled graph. This can sometimes lead to instability during training, which can in turn be controlled by adding an additional layer $l$ after message passing, which can be a simple bounded nonlinearity (e.g. tanh), a fully connected layer, or layer normalisation (Ba et al., 2016), or any combination of these.
|
| 124 |
+
|
| 125 |
+
# 3 EVALUATION
|
| 126 |
+
|
| 127 |
+
# 3.1 GNN BENCHMARK TASKS
|
| 128 |
+
|
| 129 |
+
Due to the versatile nature of the GNN modelling formalism, many fundamentally different tasks are studied in the research area and it should be noted that good results on one task often do not transfer over to other tasks. This is due to the widely varying requirements of different tasks, as the following summary of tasks from the literature should illustrate.
|
| 130 |
+
|
| 131 |
+
• Cora/Citeseer/Pubmed (Sen et al., 2008): Each task consists of a single graph of $\sim 1 0 0 0 0$ nodes corresponding to documents and undirected (sic!) edges corresponding to references. The sparse $\sim 1 0 0 0$ node features are a bag of words representation of the corresponding documents. The goal is to assign a subset of nodes to a small number of classes. State of the art performance on these tasks is achieved with two propagation steps along graph edges.
|
| 132 |
+
|
| 133 |
+
• PPI (Zitnik & Leskovec, 2017): A protein-protein interaction dataset consisting of 24 graphs of $\sim \ 2 5 0 0$ nodes corresponding to different human tissues. Each node has 50 features selected by domain experts and the goal is node-level classification, where each node may belong to several of the 121 classes. State of the art performance on this task requires three propagation steps. QM9 property prediction (Ramakrishnan et al., 2014): $\sim 1 3 0 0 0 0$ graphs of $\sim 8$ nodes represent molecules, where nodes are heavy atoms and undirected, typed edges are bonds between these atoms, different edge types indicating single/double/etc. bonds. The goal is to regress each graph to a number of quantum chemical properties. State of the art performance on these tasks requires at least four propagation steps. VarMisuse (Allamanis et al., 2018): $\sim 2 3 5 0 0 0$ graphs of $\sim 2 5 0 0$ nodes each represent program fragments, where nodes are tokens in the program text and different edge types represent the program’s abstract syntax tree, data flow between variables, etc. The goal is to select one of a set of candidate nodes per graph. State of the art performance requires at least six propagation steps.
|
| 134 |
+
|
| 135 |
+
Hence, tasks differ in the complexity of edges (from undirected and untyped to directed and manytyped), the size of the considered graphs, the size of the dataset, the importance of node-level vs. graph-level representations, and the number of required propagation steps.
|
| 136 |
+
|
| 137 |
+
This article includes results on the PPI, QM9 and VarMisuse tasks. Preliminary experiments on the citation network data showed results that were at best comparable to the baseline methods, but changes of a random seed led to substantial fluctuations (mirroring the problems with evaluation on these tasks reported by Shchur et al. (2018)).
|
| 138 |
+
|
| 139 |
+
# 3.2 IMPLEMENTATION
|
| 140 |
+
|
| 141 |
+
To allow for a wider comparison, the implementation of GNN-FiLM is accompanied by implementations of a range of baseline methods. These include GGNN (Li et al., 2016) (see Eq. (1)), R-GCN (Schlichtkrull et al., 2018) (see Eq. (2)), R-GAT (Velickovi ˇ c et al., 2018) (see Eq. ´ (3)), and R-GIN (Hamilton et al., 2017) (see Eq. (4))3. Additionally, GNN-MLP0 is a variant of R-GCN using a single linear layer to compute the edge message from both source and target state (i.e., Eq. (5) instantiated with an “MLP” without hidden layers), and GNN-MLP1 is the same with a single hidden layer. The baseline methods were re-implemented in TensorFlow and individually tested to reach performance equivalent to results reported in their respective source papers. All code for the implementation of these GNNs is released on https://revealed/after/double/blind/ lifted, together with implementations of all tasks and scripts necessary to reproduce the results reported in this paper. This includes the hyperparameter settings found by search, which are stored in tasks/default hypers/ and are selected by default on the respective tasks. The code is designed to facilitate testing new GNN types on existing tasks and easily adding new tasks, allowing for rapid evaluation of new architectures.
|
| 142 |
+
|
| 143 |
+
Early on in the experiments, it became clear that the RGDCN approach (Eq. (6)) as presented is infeasible. It is extremely sensitive to the parameter initialisation and hence changes to the random seed lead to wild swings in the target metrics. Hence, no experimental results are reported for it in the following. It is nonetheless included in the article (and the implementation) to show the thought process leading to GNN-FiLM, as well as to allow other researchers to build upon this. In the following, GNN-FiLM refers to the formulation of Eq. (8), which performed better than the variant of Eq. (7) across all experiments. Somewhat surprisingly, the same trick (of moving the non-linearity before the message aggregation step) did not help the other GNN types. For all models, using each layer only for a single propagation step performed better than using fewer layers with several propagation steps.
|
| 144 |
+
|
| 145 |
+
In all experiments, models were trained until the target metric did not improve anymore for some additional epochs (25 for PPI and QM9, 5 for VarMisuse). The reported results on the held-out test data are averaged across the results of a number of training runs, each starting from different random parameter initializations.
|
| 146 |
+
|
| 147 |
+
# 3.3 EXPERIMENTAL RESULTS
|
| 148 |
+
|
| 149 |
+
# 3.3.1 PROTEIN-PROTEIN INTERACTIONS (PPI)
|
| 150 |
+
|
| 151 |
+
The models are first evaluated on the node-level classification PPI task (Zitnik & Leskovec, 2017), following the dataset split from earlier papers. Training hence used a set of 20 graphs and validation and test sets of two separate graphs each. The graphs use two edge types: the dataset-provided untyped edges as well as a fresh “self-loop” edge type to allows nodes to keep state across propagation steps.
|
| 152 |
+
|
| 153 |
+
Hyperparameters for all models were selected based on results from earlier papers and a small grid search of a number of author-selected hyperparameter ranges (see App. A for details). This resulted in three (R-GAT), four (GGNN, GNN-FiLM, GNN-MLP1, R-GCN), or five (GNN-MLP0, R-GIN) layers (propagation steps) and a node representation size of 256 (GNN-MLP0, R-GIN) or 320 (all others). All models use dropout on the node representations before all GNN layers, with a keep ratio of 0.9. After selecting hyperparameters, all models were trained ten times with different random seeds on a NVidia V100.
|
| 154 |
+
|
| 155 |
+
Tab. 1 shows the micro-averaged F1 score on the classification task on the test graphs, with standard deviations and training times in seconds computed over the ten runs. The results for all re-implemented models are better than the results reported by Velickovi ˇ c et al. (2018) ´ for the GAT model (without edge types). A cursory exploration of the reasons yielded three factors. First, the generalisation to different edge types (cf. Eq. (3)) and the subsequent use of a special self-loop edge type helps R-GAT (and all other models) significantly. Second, using dropout between layers significantly im
|
| 156 |
+
|
| 157 |
+
Table 1: GNN results on PPI task. $\mathrm { G A T ^ { * } }$ result taken from Velickovi ˇ c et al. (2018). ´
|
| 158 |
+
|
| 159 |
+
<table><tr><td>Model</td><td>Avg. Micro-F1</td><td>Time (s)</td></tr><tr><td>GAT*</td><td>0.973 ±0.002</td><td>n/a</td></tr><tr><td>GGNN</td><td>0.990 ±0.001</td><td>432.6</td></tr><tr><td>R-GCN</td><td>0.989 ±0.000</td><td>759.0</td></tr><tr><td>R-GAT</td><td>0.989 ±0.001</td><td>782.3</td></tr><tr><td>R-GIN</td><td>0.991 ±0.001</td><td>704.8</td></tr><tr><td>GNN-MLP0</td><td>0.992±0.000</td><td>556.9</td></tr><tr><td>GNN-MLP1</td><td>0.992±0.001</td><td>479.2</td></tr><tr><td>GNN-FiLM</td><td>0.992±0.000</td><td>308.1</td></tr></table>
|
| 160 |
+
|
| 161 |
+
proved the results. Third, the larger node representation sizes (compared to 256 used by Velickovi ˇ c´ et al. (2018)) improved the results again. However, the new GNN-FiLM improves slightly over these four baselines from the literature, while converging substantially faster than all baselines, mainly because it converges in significantly fewer training steps (approx. 240 epochs compared to 400-600 epochs for the other models).
|
| 162 |
+
|
| 163 |
+
# 3.3.2 QUANTUM CHEMISTRY (QM9)
|
| 164 |
+
|
| 165 |
+
All models were additionally evaluated on graph-level regression tasks on the QM9 molecule data set (Ramakrishnan et al., 2014), considering thirteen different quantum chemical properties. The ${ \sim } 1 3 0 k$ molecular graphs in the dataset were split into training, validation and test data by randomly selecting 10 000 graphs for the latter two sets. Additionally, another data split without a test set was used for the hyperparameter search (see below). The graphs use five edge types: the datasetprovided typed edges (single, double, triple and aromatic bonds between atoms) as well as a fresh “self-loop” edge type that allows nodes to keep state across propagation steps. The evaluation differs from the setting reported by Gilmer et al. (2017), as no additional molecular information is encoded as edge features, nor are the graphs augmented by master nodes or additional edges.4
|
| 166 |
+
|
| 167 |
+
Hyperparameters for all models were found using a staged search process. First, 500 hyperparameter configurations were sampled from an author-provided search space (see App. A for details) and run on the first three regression tasks. The top three configurations for each of these three tasks were then run on all thirteen tasks and the final configuration was chosen as the one with the lowest average mean absolute error across all properties, as evaluated on the validation data of that dataset split. This process led to eight layers / propagation steps for all models but GGNN and R-GIN, which showed best performance with six layers. Furthermore, all models used residual connections connecting every second layer and GGNN, R-GCN, GNN-FiLM and GNN-MLP0 additionally used layer normalisation (as in Eq. (8)).
|
| 168 |
+
|
| 169 |
+
Table 2: GNN average error rates and standard deviations on QM9 target values.
|
| 170 |
+
|
| 171 |
+
<table><tr><td>Property</td><td>GGNN</td><td>R-GCN</td><td>R-GAT</td><td>R-GIN</td><td>GNN-MLP0</td><td>GNN-MLP1</td><td>GNN-FiLM</td></tr><tr><td>mu</td><td>3.85 ±0.16</td><td>3.21 ±0.06</td><td>2.68 ±0.06</td><td>2.64 ±0.11</td><td>2.36 ±0.04</td><td>2.44 ±0.12</td><td>2.38 ±0.13</td></tr><tr><td>alpha</td><td>5.22 ±0.86</td><td>4.22 ±0.45</td><td>4.65 ±0.44</td><td>4.67 ±0.52</td><td>4.27 ±0.36</td><td>4.63 ±0.54</td><td>3.75 ±0.11</td></tr><tr><td>HOMO</td><td>1.67 ±0.07</td><td>1.45 ±0.01</td><td>1.48 ±0.03</td><td>1.42 ±0.01</td><td>1.25 ±0.04</td><td>1.29 ±0.06</td><td>1.22 ±0.07</td></tr><tr><td>LUMO</td><td>1.74 ±0.06</td><td>1.62 ±0.04</td><td>1.53 ±0.07</td><td>1.50 ±0.09</td><td>1.35 ±0.04</td><td>1.50 ±0.19</td><td>1.30 ±0.05</td></tr><tr><td>gap</td><td>2.60 ±0.06</td><td>2.42 ±0.14</td><td>2.31 ±0.06</td><td>2.27 ±0.09</td><td>2.04 ±0.05</td><td>2.06 ±0.10</td><td>1.96 ±0.06</td></tr><tr><td>R2</td><td>35.94 ±35.68</td><td>16.38 ±0.49</td><td>52.39 ±42.58</td><td>15.63 ±1.40</td><td>14.86 ±1.62</td><td>15.81 ±1.42</td><td>15.59 ±1.38</td></tr><tr><td>ZPVE</td><td>17.84 ±3.61</td><td>17.40 ±3.56</td><td>14.87 ±2.88</td><td>12.93 ±1.81</td><td>12.00 ±1.66</td><td>14.12 ±1.10</td><td>11.00 ±0.74</td></tr><tr><td>UO</td><td>8.65 ±2.46</td><td>7.82 ±0.80</td><td>7.61 ±0.46</td><td>5.88 ±1.01</td><td>5.55 ±0.38</td><td>6.94 ±0.64</td><td>5.43 ±0.96</td></tr><tr><td>U</td><td>9.24 ±2.26</td><td>8.24 ±1.25</td><td>6.86 ±0.53</td><td>18.71 ±23.36</td><td>6.20 ±0.88</td><td>7.00 ±1.06</td><td>5.95 ±0.46</td></tr><tr><td>H</td><td>9.35 ±0.96</td><td>9.05 ±1.21</td><td>7.64 ±0.92</td><td>5.62 ±0.81</td><td>5.96 ±0.45</td><td>7.98 ±0.88</td><td>5.59 ±0.57</td></tr><tr><td>G</td><td>7.14 ±1.15</td><td>7.00 ±1.51</td><td>6.54 ±0.36</td><td>5.38±0.75</td><td>5.09 ±0.57</td><td>7.14 ±0.51</td><td>5.17 ±1.13</td></tr><tr><td>Cv</td><td>8.86 ±9.07</td><td>3.93 ±0.48</td><td>4.11 ±0.27</td><td>3.53 ±0.37</td><td>3.38 ±0.20</td><td>4.60 ±0.74</td><td>3.46 ±0.21</td></tr><tr><td>Omega</td><td>1.57 ±0.53</td><td>1.02 ±0.05</td><td>1.48 ±0.87</td><td>1.05 ±0.11</td><td>0.84±0.02</td><td>5.60 ±8.82</td><td>0.98 ±0.06</td></tr></table>
|
| 172 |
+
|
| 173 |
+
Table 3: Accuracy on VarMisuse task. GGNN∗ result taken from appendix of Allamanis et al. (2018).
|
| 174 |
+
|
| 175 |
+
<table><tr><td>Model</td><td>TRAIN</td><td>VALID</td><td>SEENPROJTEST</td><td>UNSEENPROJTEST</td></tr><tr><td>GGNN*</td><td>n/a</td><td>n/a</td><td>84.0 n/a</td><td>74.1 n/a</td></tr><tr><td>GGNN</td><td>87.5±1.8%</td><td>82.1±0.9%</td><td>85.7 ±0.5%</td><td>79.3 ±1.2%</td></tr><tr><td>R-GCN</td><td>88.7±3.1%</td><td>85.7±1.6%</td><td>87.2±1.5%</td><td>81.4±2.3%</td></tr><tr><td>R-GAT</td><td>90.4±3.9%</td><td>84.2±1.0%</td><td>86.9 ±0.7%</td><td>81.2 ±0.9%</td></tr><tr><td>R-GIN</td><td>93.4±1.8%</td><td>84.2±1.0%</td><td>87.1 ±0.1%</td><td>81.1 ±0.9%</td></tr><tr><td>GNN-MLP0</td><td>95.3±2.4%</td><td>83.4±0.3%</td><td>86.5 ±0.2%</td><td>80.5 ±1.4%</td></tr><tr><td>GNN-MLP1</td><td>94.7±1.2%</td><td>84.4±0.4%</td><td>86.9 ±0.3%</td><td>81.4±0.7%</td></tr><tr><td>GNN-FiLM</td><td>94.3±1.0%</td><td>84.6±0.6%</td><td>87.0 ±0.2%</td><td>81.3 ±0.9%</td></tr></table>
|
| 176 |
+
|
| 177 |
+
Each model was trained for each of the properties separately five times using different random seeds on compute nodes with NVidia P100 cards. The average results of the five runs are reported in Tab. 2, with their respective standard deviations.5 The results indicate that the new GNN-FiLM model outperforms the standard baselines on all tasks and the usually not considered GNN-MLP variants on the majority of tasks.
|
| 178 |
+
|
| 179 |
+
# 3.3.3 VARIABLE USAGE IN PROGRAMS (VARMISUSE)
|
| 180 |
+
|
| 181 |
+
Finally, the models were evaluated on the VarMisuse task of Allamanis et al. (2018). This task requires to process a graph representing an abstraction of a program fragment and then select one of a few candidate nodes (representing program variables) based on the representation of another node (representing the location to use a variable in). The experiments are performed using the released split of the dataset, which contains $\sim 1 3 0 k$ training graphs, $\sim 2 0 k$ validation graphs and two test sets: SEENPROJTEST, which contains $\sim 5 5 k$ graphs extracted from open source projects that also contributed data to the training and validation sets, and UNSEENPROJTEST, which contains $\sim 3 0 k$ graphs extracted from completely unseen projects.
|
| 182 |
+
|
| 183 |
+
Due to the inherent cost of training models on this dataset (Balog et al. (2019) provide an in-depth performance analysis), a limited hyperparameter grid search was performed, with only $\sim 3 0$ candidate configurations for each model (see App. A for details). For each model, the configuration yielding the best results on the validation data set fold was selected. This led to six layers for GGNN and R-GIN, eight layers for R-GAT and GNN-MLP0, and ten layers for the remaining models. Graph node hidden sizes were 128 for all models but GGNN and R-GAT, which performed better with 96 dimensions.
|
| 184 |
+
|
| 185 |
+
The results, shown in Tab. 3, are somewhat surprising, as they indicate a different ranking of model architectures as the results on PPI and QM9, with R-GCN performing best. All re-implemented baselines beat the results reported by Allamanis et al. (2018), who also reported that R-GCN and GGNN show very similar performance. This is in spite of a simpler implementation of the task than in the original paper, as it only uses the string labels of nodes for the representation and does not use the additional type information provided in the dataset. However, the re-implementation of the task uses the insights from Cvitkovic et al. (2019), who use character CNNs to encode node labels and furthermore introduce extra nodes for subtokens appearing in labels of different nodes, connecting them to their sources (e.g., nodes labelled openWullfrax and closeWullfrax are both connected to a fresh Wullfrax node).
|
| 186 |
+
|
| 187 |
+
A deeper investigation results showed that the more complex models seem to suffer from significant overfitting to the training data, as can be seen in the results for training and validation accuracy reported in Tab. 3. A brief exploration of more aggressive regularisation methods (more dropout, weight decay) showed no improvement and a deeper understanding of the cause of these results remains for future work.
|
| 188 |
+
|
| 189 |
+
Furthermore, the large variance in results on the validation set (especially for R-GCN) makes it likely that the hyperparameter grid search with only one training run per configuration did not yield the best configuration for each model.
|
| 190 |
+
|
| 191 |
+
# 4 DISCUSSION & CONCLUSIONS
|
| 192 |
+
|
| 193 |
+
After a review of existing graph neural network architectures, the idea of using hypernetworkinspired models in the graph setting was explored. This led to two models, Graph Dynamic Convolutional Networks and GNNs with feature-wise linear modulation, were presented. While GDCNs seem to be impractical to train, experiments show that GNN-FiLM is competitive with or improving on baseline models on three tasks from the literature.
|
| 194 |
+
|
| 195 |
+
The extensive experiments also show that a number of results from the literature could benefit from more substantial hyperparameter search and are often missing comparisons to a number of obvious baselines:
|
| 196 |
+
|
| 197 |
+
• The results in Tab. 1 indicate that GATs have no advantage over GGNNs or R-GCNs on the PPI task, which does not match the findings by Velickovi ˇ c et al. (2018). ´ • The results in Tab. 3 indicate that R-GCNs are outperforming GGNNs substantially on the VarMisuse task, contradicting the findings of Allamanis et al. (2018). • The GNN-MLP models are obvious extensions that are often alluded to, but are not part of the usually considered set of baseline models. Nonetheless, experiments across all three tasks have shown that these methods outperform better-published techniques such as GGNNs, R-GCNs and GATs, without a substantial runtime penalty.
|
| 198 |
+
|
| 199 |
+
These results indicate that there is substantial value in independent reproducibility efforts and comparisons that include “obvious” baselines, matching the experiences from other areas of machine learning as well as earlier work by Shchur et al. (2018) on reproducing experimental results for GNNs on citation network tasks.
|
| 200 |
+
|
| 201 |
+
# REFERENCES
|
| 202 |
+
|
| 203 |
+
Miltiadis Allamanis, Marc Brockschmidt, and Mahmoud Khademi. Learning to represent programs with graphs. In International Conference on Learning Representations (ICLR), 2018.
|
| 204 |
+
|
| 205 |
+
Lei Jimmy Ba, Ryan Kiros, and Geoffrey E. Hinton. Layer normalization. CoRR, abs/1607.06450, 2016.
|
| 206 |
+
|
| 207 |
+
Matej Balog, Bart van Merrienboer, Subhodeep Moitra, Yujia Li, and Daniel Tarlow. Fast training ¨ of sparse graph neural networks on dense hardware. CoRR, abs/1906.11786, 2019.
|
| 208 |
+
|
| 209 |
+
Dan Busbridge, Dane Sherburn, Pietro Cavallo, and Nils Y. Hammerla. Relational graph attention networks. CoRR, abs/1904.05811, 2019.
|
| 210 |
+
|
| 211 |
+
Milan Cvitkovic, Badal Singh, and Anima Anandkumar. Open vocabulary learning on source code with a graph-structured cache. In International Conference on Machine Learning (ICML), 2019.
|
| 212 |
+
|
| 213 |
+
Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In International Conference on Machine Learning (ICML), 2017.
|
| 214 |
+
|
| 215 |
+
David Ha, Andrew M. Dai, and Quoc V. Le. HyperNetworks. In International Conference on Learning Representations (ICLR), 2017.
|
| 216 |
+
|
| 217 |
+
William L Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems (NeurIPS), 2017.
|
| 218 |
+
|
| 219 |
+
Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard Zemel. Gated graph sequence neural networks. In International Conference on Learning Representations (ICLR), 2016.
|
| 220 |
+
|
| 221 |
+
Aditya Paliwal, Sarah M. Loos, Markus N. Rabe, Kshitij Bansal, and Christian Szegedy. Graph representations for higher-order logic and theorem proving. CoRR, abs/1905.10006, 2019.
|
| 222 |
+
|
| 223 |
+
Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron C. Courville. FiLM: Visual reasoning with a general conditioning layer. In AAAI Conference on Artificial Intelligence, 2017.
|
| 224 |
+
|
| 225 |
+
Raghunathan Ramakrishnan, Pavlo O. Dral, Matthias Rupp, and O. Anatole Von Lilienfeld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific Data, 1, 2014.
|
| 226 |
+
|
| 227 |
+
Michael Schlichtkrull, Thomas N. Kipf, Peter Bloem, Rianne van den Berg, Ivan Titov, and Max Welling. Modeling relational data with graph convolutional network. In Extended Semantic Web Conference (ESWC), 2018.
|
| 228 |
+
|
| 229 |
+
Daniel Selsam, Matthew Lamm, Benedikt Bunz, Percy Liang, Leonardo de Moura, and David L. ¨ Dill. Learning a SAT solver from single-bit supervision. In International Conference on Learning Representations (ICLR), 2019.
|
| 230 |
+
|
| 231 |
+
Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29, 2008.
|
| 232 |
+
|
| 233 |
+
Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Gunnemann. Pitfalls ¨ of graph neural network evaluation. CoRR, abs/1811.05868, 2018.
|
| 234 |
+
|
| 235 |
+
Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Li ´ o, and Yoshua \` Bengio. Graph Attention Networks. In International Conference on Learning Representations (ICLR), 2018.
|
| 236 |
+
|
| 237 |
+
Felix Wu, Angela Fan, Alexei Baevski, Yann Dauphin, and Michael Auli. Pay less attention with lightweight and dynamic convolutions. In International Conference on Learning Representations (ICLR), 2019.
|
| 238 |
+
|
| 239 |
+
Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In International Conference on Learning Representations (ICLR), 2019.
|
| 240 |
+
|
| 241 |
+
Marinka Zitnik and Jure Leskovec. Predicting multicellular function through multi-layer tissue networks. Bioinformatics, 33, 2017.
|
| 242 |
+
|
| 243 |
+
# A HYPERPARAMETER SEARCH SPACES
|
| 244 |
+
|
| 245 |
+
A.1 PPI
|
| 246 |
+
|
| 247 |
+
For all models, a full grid search considering all combinations of the following parameters was performed:
|
| 248 |
+
|
| 249 |
+
• hidden siz $\textsf { e } \in \{ 1 9 2 , 2 5 6 , 3 2 0 \}$ - size of per-node representations. • graph num layers $\in \{ 2 , 3 , 4 , 5 \}$ - number of propagation steps / layers. • graph layer input dropout keep prob $\in \ \{ 0 . 8 , 0 . 9 , 1 . 0 \}$ - dropout applied before propagation steps.
|
| 250 |
+
|
| 251 |
+
# A.2 QM9
|
| 252 |
+
|
| 253 |
+
For all models, 500 configurations were considered, sampling hyperparameter settings uniformly from the following options:
|
| 254 |
+
|
| 255 |
+
• hidden siz $\textsf { e } \in \{ 6 4 , 9 6 , 1 2 8 \}$ - size of per-node representations.
|
| 256 |
+
• graph num layers $\in \{ 4 , 6 , 8 \}$ - number of propagation steps / layers.
|
| 257 |
+
• graph layer input dropout keep prob $\in \ \{ 0 . 8 , 0 . 9 , 1 . 0 \}$ - dropout applied before propagation steps.
|
| 258 |
+
• layer norm $\in \{ T r u e , F a l s e \}$ - decided if layer norm is applied after each propagation step.
|
| 259 |
+
• dense layers $\in \{ 1 , 2 , 3 2 \}$ - insert a fully connected layer applied to node representations between every dense layers propagation steps. (32 effectively turns this off) res connection $\in \quad \{ 1 , 2 , 3 2 \}$ - insert a residual connection between every res connection propagation steps. (32 effectively turns this off)
|
| 260 |
+
• graph activation function $\in$ {relu, leaky relu, elu, gelu, tanh} - non-linearity applied after message passing.
|
| 261 |
+
• optimizer $\in \{ R M S P r o p , A d a m \}$ - optimizer used (with TF 1.13.1 default parameters).
|
| 262 |
+
• $\mathtt { l r } \in [ 0 . 0 0 0 5 , 0 . 0 0 1 ]$ - learning rate.
|
| 263 |
+
• $\mathsf { c e l 1 } \in \{ R N N , G R U , L S T M \}$ - gated cell used for GGNN (only part of search space for GGNN).
|
| 264 |
+
• num heads $\in \{ 4 , 8 , 1 6 \}$ - number of attention heads used for R-GAT (only part of search space for R-GAT).
|
| 265 |
+
|
| 266 |
+
# A.3 VARMISUSE
|
| 267 |
+
|
| 268 |
+
For all models, a full grid search considering all combinations of the following parameters was performed:
|
| 269 |
+
|
| 270 |
+
• hidden si $z \in \{ 6 4 , 9 6 , 1 2 8 \}$ - size of per-node representations.
|
| 271 |
+
• graph num layers $\in \{ 6 , 8 , 1 0 \}$ - number of propagation steps / layers. graph layer input dropout keep prob $\in \ \{ 0 . 8 , 0 . 9 , 1 . 0 \}$ - dropout applied before propagation steps.
|
| 272 |
+
$\mathsf { c e l 1 } \in \mathsf { \Omega } \{ G R U , L S T M \}$ - gated cell used for GGNN (only part of search space for GGNN).
|
| 273 |
+
• num heads $\in \ \{ 4 , 8 \}$ - number of attention heads used for R-GAT (only part of search space for R-GAT).
|
parse/train/HJe4Cp4KwH/HJe4Cp4KwH_content_list.json
ADDED
|
@@ -0,0 +1,1396 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "GNN-FILM: GRAPH NEURAL NETWORKS WITH FEATURE-WISE LINEAR MODULATION ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
823,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "This paper presents a new Graph Neural Network (GNN) type using feature-wise linear modulation (FiLM). Many standard GNN variants propagate information along the edges of a graph by computing “messages” based only on the representation of the source of each edge. In GNN-FiLM, the representation of the target node of an edge is additionally used to compute a transformation that can be applied to all incoming messages, allowing feature-wise modulation of the passed information. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
263,
|
| 43 |
+
764,
|
| 44 |
+
361
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Results of experiments comparing different GNN architectures on three tasks from the literature are presented, based on re-implementations of baseline methods. Hyperparameters for all methods were found using extensive search, yielding somewhat surprising results: differences between baseline models are smaller than reported in the literature. Nonetheless, GNN-FiLM outperforms baseline methods on a regression task on molecular graphs and performs competitively on other tasks. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
363,
|
| 54 |
+
764,
|
| 55 |
+
459
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
482,
|
| 66 |
+
336,
|
| 67 |
+
498
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Learning from graph-structured data has seen explosive growth over the last few years, as graphs are a convenient formalism to model the broad class of data that has objects (treated as vertices) with some known relationships (treated as edges). Example usages include reasoning about physical and biological systems, knowledge bases, computer programs, and relational reasoning in computer vision tasks. This graph construction is a highly complex form of feature engineering, mapping the knowledge of a domain expert into a graph structure which can be consumed and exploited by high-capacity neural network models. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
513,
|
| 77 |
+
825,
|
| 78 |
+
609
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Many neural graph learning methods can be summarised as neural message passing (Gilmer et al., 2017): nodes are initialised with some representation and then exchange information by transforming their current state (in practice with a single linear layer) and sending it as a message to all neighbours in the graph. At each node, messages are aggregated in some way and then used to update the associated node representation. In this setting, the message is entirely determined by the source node (and potentially the edge type) and the target node is not taken into consideration. A (partial) exception to this is the family of Graph Attention Networks (Velickovi ˇ c et al., 2018), where ´ the agreement between source and target representation of an edge is used to determine the weight of the message in an attention architecture. However, this weight is applied to all dimensions of the message at the same time. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
617,
|
| 88 |
+
825,
|
| 89 |
+
756
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "A simple consequence of this observation may be to simply compute messages from the pair of source and target node state. However, the linear layer commonly used to compute messages would only allow additive interactions between the representations of source and target nodes. More complex transformation functions are often impractical, as computation in GNN implementations is dominated by the message transformation function. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
763,
|
| 99 |
+
823,
|
| 100 |
+
833
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "However, this need for non-trivial interaction between different information sources is a common problem in neural network design. A recent trend has been the use of hypernetworks (Ha et al., 2017), neural networks that compute the weights of other networks. In this setting, interaction between two signal sources is achieved by using one of them as the input to a hypernetwork and the other as input to the computed network. While an intellectually pleasing approach, it is often impractical because the prediction of weights of non-trivial neural networks is computationally expensive. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
840,
|
| 110 |
+
823,
|
| 111 |
+
922
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Approaches to mitigate this exist (e.g., Wu et al. (2019) handle this in natural language processing), but are often domain-specific. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
103,
|
| 121 |
+
821,
|
| 122 |
+
132
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "A more general mitigation method is to restrict the structure of the computed network. Recently, “feature-wise linear modulations” (FiLM) were introduced in the visual question answering domain (Perez et al., 2017). Here, the hypernetwork is fed with an encoding of a question and produces an element-wise affine function that is applied to the features extracted from a picture. This can be adapted to the graph message passing domain by using the representation of the target node to compute the affine function. This compromise between expressiveness and computational feasibility has been very effective in some domains and the results presented in this article indicate that it is also a good fit for the graph domain. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
138,
|
| 132 |
+
825,
|
| 133 |
+
251
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "This article explores the use of hypernetworks in learning on graphs. Sect. 2 first reviews existing GNN models from the related work to identify commonalities and differences. This involves generalising a number of existing formalisms to new formulations that are able to handle graphs with different types of edges, which are often used to model different relationship between vertices. Then, two new formalisms are introduced: Relational Graph Dynamic Convolutional Networks (RGDCN), which dynamically compute the neural message passing function as a linear layer, and Graph Neural Networks with Feature-wise Linear Modulation (GNN-FiLM), which combine learned message passing functions with dynamically computed element-wise affine transformations. In Sect. 3, a range of baselines are compared in extensive experiments on three tasks from the literature, spanning classification, regression and ranking tasks on small and large graphs. Experiments were performed on re-implementations of existing model architectures in the same framework and hyperparameter setting searches were performed with the same computational budgets across all architectures. The results show that differences between baselines are smaller than the literature suggests and that the new FiLM model performs well on a number of interesting tasks. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
257,
|
| 143 |
+
825,
|
| 144 |
+
450
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "2 MODEL ",
|
| 151 |
+
"text_level": 1,
|
| 152 |
+
"bbox": [
|
| 153 |
+
176,
|
| 154 |
+
470,
|
| 155 |
+
267,
|
| 156 |
+
487
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Notation. Let $\\mathcal { L }$ be a finite (usually small) set of edge types. Then, a directed graph $\\mathcal { G } = ( \\nu , \\mathcal { E } )$ has nodes $\\nu$ and typed edges $\\mathcal { E } \\subseteq \\mathcal { V } \\times \\mathcal { L } \\times \\mathcal { V }$ , where $( u , \\ell , v ) \\in \\mathcal { E }$ denotes an edge from node $u$ to node $v$ of type $\\ell$ , usually written as $u \\xrightarrow { \\ell _ { \\setminus } } v$ . ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
501,
|
| 166 |
+
825,
|
| 167 |
+
544
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Graph Neural Networks. As discussed above, Graph Neural Networks operate by propagating information along the edges of a given graph. Concretely, each node $v$ is associated with an initial representation $\\boldsymbol { h } _ { v } ^ { ( 0 ) }$ (for example obtained from the label of that node, or by some other model component). Then, a GNN layer updates the node representations using the node representations of its neighbours in the graph, yielding representations $\\pmb { h } _ { v } ^ { ( 1 ) }$ . This process can be unrolled through time by repeatedly applying the same update function, yielding representations $h _ { v } ^ { ( 2 ) } \\ldots h _ { v } ^ { ( T ) }$ . Alternatively, several GNN layers can be stacked, which is intuitively similar to unrolling through time, but increases the GNN capacity by using different parameters for each timestep. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
173,
|
| 176 |
+
558,
|
| 177 |
+
825,
|
| 178 |
+
678
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "In Gated Graph Neural Networks (GGNN) (Li et al., 2016), the update rule uses one linear layer $W _ { \\ell }$ per edge type $\\ell$ to compute messages and combines the aggregated messages with the current representation of a node using a recurrent unit $r$ (e.g., GRU or LSTM cells), yielding the following definition. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
683,
|
| 188 |
+
825,
|
| 189 |
+
739
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "equation",
|
| 195 |
+
"img_path": "images/ac22ee49891d5a6910f1a12eb1465cb919147e8d13a4eaba451f4314192de153.jpg",
|
| 196 |
+
"text": "$$\n\\pmb { h } _ { v } ^ { ( t + 1 ) } = r ( \\pmb { h } _ { v } ^ { ( t ) } , \\sum _ { u v \\in \\mathcal { E } } W _ { \\ell } \\pmb { h } _ { u } ^ { ( t ) } ; \\pmb { \\theta } _ { r } )\n$$",
|
| 197 |
+
"text_format": "latex",
|
| 198 |
+
"bbox": [
|
| 199 |
+
362,
|
| 200 |
+
739,
|
| 201 |
+
633,
|
| 202 |
+
782
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "text",
|
| 208 |
+
"text": "The learnable parameters of the model are the edge-type-dependent weights $W _ { \\ell }$ and the recurrent cell parameters $\\pmb { \\theta } _ { r }$ . ",
|
| 209 |
+
"bbox": [
|
| 210 |
+
176,
|
| 211 |
+
785,
|
| 212 |
+
823,
|
| 213 |
+
813
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 1
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "In Relational Graph Convolutional Networks (R-GCN) (Schlichtkrull et al., 2018), the gated unit is replaced by a simple non-linearity $\\sigma$ (e.g., the hyperbolic tangent). ",
|
| 220 |
+
"bbox": [
|
| 221 |
+
173,
|
| 222 |
+
819,
|
| 223 |
+
821,
|
| 224 |
+
848
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 1
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "equation",
|
| 230 |
+
"img_path": "images/98613de1a57b3356ebec7c067ceb267b3d7d92a86cbf8594e94194616fd5442b.jpg",
|
| 231 |
+
"text": "$$\n\\pmb { h } _ { v } ^ { ( t + 1 ) } = \\sigma \\left( \\sum _ { u \\not \\in \\mathcal { E } } \\frac { 1 } { c _ { v , \\ell } } \\cdot W _ { \\ell } \\pmb { h } _ { u } ^ { ( t ) } \\right)\n$$",
|
| 232 |
+
"text_format": "latex",
|
| 233 |
+
"bbox": [
|
| 234 |
+
375,
|
| 235 |
+
851,
|
| 236 |
+
620,
|
| 237 |
+
893
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 1
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "Here, $c _ { v , \\ell }$ is a normalisation factor usually set to the number of edges of type $\\ell$ ending in $v$ . The learnable parameters of the model are the edge-type-dependent weights $W _ { \\ell }$ . It is important to note that in this setting, the edge type set $\\mathcal { L }$ is assumed to contain a special edge type 0 for self-loops $v \\xrightarrow { 0 } v$ , allowing state associated with a node to be kept. ",
|
| 244 |
+
"bbox": [
|
| 245 |
+
173,
|
| 246 |
+
895,
|
| 247 |
+
823,
|
| 248 |
+
924
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 1
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "",
|
| 255 |
+
"bbox": [
|
| 256 |
+
169,
|
| 257 |
+
103,
|
| 258 |
+
823,
|
| 259 |
+
132
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "In Graph Attention Networks (GAT) (Velickovi ˇ c et al., 2018), new node representations are com- ´ puted from a weighted sum of neighbouring node representations. The model can be generalised from the original definitional to support different edge types as follows (we will call this R-GAT below).1 ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
174,
|
| 268 |
+
138,
|
| 269 |
+
823,
|
| 270 |
+
194
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "equation",
|
| 276 |
+
"img_path": "images/d2f8e637d482c5c94b2cca1059ac92e1d67c781135f212141a5d706cb31f9fca.jpg",
|
| 277 |
+
"text": "$$\n\\begin{array} { r l } & { \\boldsymbol { e } _ { u , \\ell , v } = \\mathrm { L e a k y R e L U } ( \\boldsymbol { \\alpha } _ { \\ell } \\cdot ( W _ { \\ell } \\boldsymbol { h } _ { u } ^ { ( t ) } \\| W _ { \\ell } \\boldsymbol { h } _ { v } ^ { ( t ) } ) ) } \\\\ & { \\qquad \\boldsymbol { a } _ { v } = \\mathrm { s o f t m a x } ( \\boldsymbol { e } _ { u , \\ell , v } \\mid \\boldsymbol { u } \\xrightarrow { \\ell } \\boldsymbol { v } \\in \\mathcal { E } ) } \\\\ & { \\quad \\boldsymbol { h } _ { v } ^ { ( t + 1 ) } = \\sigma \\left( \\displaystyle \\sum _ { u \\xrightarrow { \\ell } v \\in \\mathcal { E } } ( \\boldsymbol { a } _ { v } ) _ { u \\xrightarrow { \\ell } v } \\cdot W _ { \\ell } \\boldsymbol { h } _ { u } ^ { ( t ) } \\right) } \\end{array}\n$$",
|
| 278 |
+
"text_format": "latex",
|
| 279 |
+
"bbox": [
|
| 280 |
+
343,
|
| 281 |
+
199,
|
| 282 |
+
656,
|
| 283 |
+
282
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "text",
|
| 289 |
+
"text": "Here, $\\pmb { \\alpha } _ { \\ell }$ is a learnable row vector used to weigh different feature dimensions in the computation of an attention (“relevance”) score of the node representations, $\\mathbf { \\Delta x } \\Vert \\mathbf { \\Delta y }$ is the concatenation of vectors $_ { \\textbf { \\em x } }$ and $\\textbf { { y } }$ , and $( \\pmb { a } _ { v } ) _ { u } \\mathcal { L } _ { v }$ refers to the weight computed by the softmax for that edge. The learnable parameters of the model are the edge-type-dependent weights $W _ { \\ell }$ and the attention parameters $\\pmb { \\alpha } _ { \\ell }$ . In practice, GATs usually employ several attention heads that independently implement the mechanism above in parallel, using separate learnable parameters. The results of the different attention heads are then concatenated after each propagation round to yield the value of $h _ { v } ^ { ( t + 1 ) }$ . ",
|
| 290 |
+
"bbox": [
|
| 291 |
+
173,
|
| 292 |
+
286,
|
| 293 |
+
825,
|
| 294 |
+
387
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "More recently, $\\mathrm { X u }$ et al. (2019) analysed the expressiveness of different GNN types, comparing their ability to distinguish similar graphs with the Weisfeiler-Lehman (WL) graph isomorphism test. Their results show that GCNs and the GraphSAGE model Hamilton et al. (2017) are strictly weaker than the WL test and hence they developed Graph Isomorphism Networks (GIN) (Xu et al., 2019), which are indeed as powerful as the WL test. While the GIN definition is limited to a single edge type, Corollary 6 of $\\mathrm { X u }$ et al. (2019) shows that using the definition ",
|
| 301 |
+
"bbox": [
|
| 302 |
+
173,
|
| 303 |
+
392,
|
| 304 |
+
825,
|
| 305 |
+
478
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 2
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "equation",
|
| 311 |
+
"img_path": "images/a03cf7f7c80881532122955a09daad1c554de0c323e57384bdb74375d8b1a500.jpg",
|
| 312 |
+
"text": "$$\n\\pmb { h } _ { v } ^ { ( t + 1 ) } = \\varphi ( ( 1 + \\epsilon ) \\cdot f ( \\pmb { h } _ { v } ^ { ( t ) } ) + \\sum _ { u v \\in \\mathcal { E } } f ( \\pmb { h } _ { u } ^ { ( t ) } ) ) ,\n$$",
|
| 313 |
+
"text_format": "latex",
|
| 314 |
+
"bbox": [
|
| 315 |
+
326,
|
| 316 |
+
482,
|
| 317 |
+
668,
|
| 318 |
+
525
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 2
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "there are choices for $\\epsilon$ , $\\varphi$ and $f$ such that the node representation update is sufficient for the overall network to be as powerful as the WL test. In the setting of different edge types, the function $f$ in the sum over neighbouring nodes needs to reflect different edge types to distinguish graphs such as $v \\ \\bot \\rangle \\ u \\ \\ll \\ w$ and $v \\ \\bar { 2 } \\gg \\ u \\ \\ll \\ w$ from each other. Using different functions $f _ { \\ell }$ for different edge types makes it possible to unify the use of the current node representation $h _ { v } ^ { ( t ) }$ with the use of neighbouring node representations by again using a fresh edge type 0 for self-loops $v \\ a \\ $ . In that setting, the factor $( 1 + \\epsilon )$ can be integrated into $f _ { 0 }$ . Finally, following an argument similar to $\\mathrm { X u }$ et al. (2019), $\\varphi$ and $f$ at subsequent layers can be “merged” into a single function which can be approximated by a multilayer perceptron (MLP), yielding the final R-GIN definition ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
173,
|
| 327 |
+
530,
|
| 328 |
+
825,
|
| 329 |
+
659
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 2
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "equation",
|
| 335 |
+
"img_path": "images/e2d0a51e6aabe2f776331d64d345e9baa07cb80ff3f464e4104e424703768563.jpg",
|
| 336 |
+
"text": "$$\n\\pmb { h } _ { v } ^ { ( t + 1 ) } = \\sigma \\left( \\sum _ { u \\downarrow v \\in \\mathcal { E } } M L P ( \\pmb { h } _ { u } ^ { ( t ) } ; \\pmb { \\theta } _ { \\ell } ) \\right) .\n$$",
|
| 337 |
+
"text_format": "latex",
|
| 338 |
+
"bbox": [
|
| 339 |
+
362,
|
| 340 |
+
662,
|
| 341 |
+
635,
|
| 342 |
+
707
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 2
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "The learnable parameters here are the edge-specific weights $\\pmb { \\theta } _ { \\ell }$ . Note that Eq. (4) is very similar to the definition of R-GCNs (Eq. (2)), only dropping the normalisation factor $\\frac { \\hat { \\mathbf { 1 } } } { c _ { v , \\ell } }$ and replacing linear layers by an MLP. ",
|
| 349 |
+
"bbox": [
|
| 350 |
+
174,
|
| 351 |
+
712,
|
| 352 |
+
825,
|
| 353 |
+
756
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 2
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "While many more GNN variants exist, the four formalisms above are broadly representative of general trends. It is notable that in all of these models, the information passed from one node to another is based on the learned weights and the representation of the source of an edge. In contrast, the representation of the target of an edge is only updated (in the GGNN case Eq. (1)), treated as another incoming message (in the R-GCN case Eq. (2) and the R-GIN case Eq. (4)), or used to weight the relevance of an edge (in the R-GAT case Eq. (3)). Sometimes unnamed GNN variants of the above are used (e.g., by Selsam et al. (2019); Paliwal et al. (2019)), replacing the linear layers to compute the messages for each edge by MLPs applied to the concatenation of the representations of source and target nodes. In the experiments, this will be called GNN-MLP, formally defined as follows.2 ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
173,
|
| 362 |
+
762,
|
| 363 |
+
825,
|
| 364 |
+
876
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 2
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "",
|
| 371 |
+
"bbox": [
|
| 372 |
+
171,
|
| 373 |
+
102,
|
| 374 |
+
823,
|
| 375 |
+
132
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 3
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "equation",
|
| 381 |
+
"img_path": "images/ca55904beb3ea3bc06f0d79e51bfaa64a5eae35025b4106bcc9e8a00440bb84a.jpg",
|
| 382 |
+
"text": "$$\n\\pmb { h } _ { v } ^ { ( t + 1 ) } = \\sigma \\left( \\sum _ { u \\xrightarrow [ ] { \\ell } v \\in \\mathcal { E } } \\frac { 1 } { c _ { v , \\ell } } \\cdot M L P \\left( \\pmb { h } _ { u } ^ { ( t ) } \\| \\pmb { h } _ { v } ^ { ( t ) } \\ ; \\ \\pmb { \\theta } _ { \\ell } \\right) \\right)\n$$",
|
| 383 |
+
"text_format": "latex",
|
| 384 |
+
"bbox": [
|
| 385 |
+
321,
|
| 386 |
+
133,
|
| 387 |
+
674,
|
| 388 |
+
176
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "Below, we will instantiate the $M L P$ with a single linear layer to obtain what we call GNN-MLP0, which only differs from R-GCNs (Eq. (2)) in that the message passing function is applied to the concatenation of source and target state. ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
174,
|
| 397 |
+
181,
|
| 398 |
+
825,
|
| 399 |
+
224
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "2.1 GRAPH HYPERNETWORKS ",
|
| 406 |
+
"text_level": 1,
|
| 407 |
+
"bbox": [
|
| 408 |
+
174,
|
| 409 |
+
239,
|
| 410 |
+
398,
|
| 411 |
+
253
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 3
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "text",
|
| 417 |
+
"text": "Hypernetworks (i.e., neural networks computing the parameters of another neural network) (Ha et al., 2017) have been successfully applied to a number of different tasks; naturally raising the question if they are also applicable in the graph domain. ",
|
| 418 |
+
"bbox": [
|
| 419 |
+
174,
|
| 420 |
+
265,
|
| 421 |
+
823,
|
| 422 |
+
309
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 3
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "Intuitively, a hypernetwork corresponds to a higher-order function, i.e., it can be viewed as a function computing another function. Hence, a natural idea would be to use the target of a message propagation step to compute the function computing the message; essentially allowing it to focus on features that are especially relevant for the update of the target node representation. ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
173,
|
| 431 |
+
314,
|
| 432 |
+
825,
|
| 433 |
+
372
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "Relational Graph Dynamic Convolutional Networks (RGDCN) A first attempt would be to adapt (2) to replace the learnable message transformation $W _ { \\ell }$ by the result of some learnable function $f$ that operates on the target representation: ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
173,
|
| 442 |
+
385,
|
| 443 |
+
825,
|
| 444 |
+
428
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "equation",
|
| 450 |
+
"img_path": "images/e50ddd34ffca3a0d42397fbdd7f5fd99cb048a51e4ffd1624d1b7c8014cb867d.jpg",
|
| 451 |
+
"text": "$$\n\\pmb { h } _ { v } ^ { ( t + 1 ) } = \\sigma \\left( \\sum _ { u \\downarrow v \\in \\mathcal { E } } f ( \\pmb { h } _ { v } ^ { ( t ) } ; \\pmb { \\theta } _ { f , \\ell } ) \\pmb { h } _ { u } ^ { ( t ) } \\right)\n$$",
|
| 452 |
+
"text_format": "latex",
|
| 453 |
+
"bbox": [
|
| 454 |
+
361,
|
| 455 |
+
433,
|
| 456 |
+
635,
|
| 457 |
+
476
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 3
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "However, for a representation size $D$ , $f$ would need to produce a matrix of size $D ^ { 2 }$ from $D$ inputs. Hence, if implemented as a simple linear layer, $f$ would have on the order of $\\mathcal { O } ( D ^ { 3 } )$ parameters, quickly making it impractical in most contexts. ",
|
| 464 |
+
"bbox": [
|
| 465 |
+
174,
|
| 466 |
+
481,
|
| 467 |
+
825,
|
| 468 |
+
525
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 3
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "This can be somewhat mitigated by splitting the node representations $h _ { v } ^ { ( t ) }$ into $C$ “chunks” $h _ { v , c } ^ { ( t ) }$ of dimension $\\begin{array} { r } { K = { \\frac { D } { C } } } \\end{array}$ : ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
174,
|
| 477 |
+
531,
|
| 478 |
+
823,
|
| 479 |
+
566
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 3
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "equation",
|
| 485 |
+
"img_path": "images/684053b46a790f29830f9dd0179f152cfe1a4b0b9ece7c0a76571c3c99d38956.jpg",
|
| 486 |
+
"text": "$$\n\\begin{array} { r l } & { W _ { \\ell , t , v , c } = f ( \\pmb { h } _ { v } ^ { ( t ) } ; \\pmb { \\theta } _ { f , \\ell , c } ) } \\\\ & { \\qquad \\mathbf { h } _ { v } ^ { ( t + 1 ) } = \\displaystyle \\operatorname* { l i } _ { 1 \\leq c \\leq C } \\sigma \\left( \\sum _ { u } \\pounds _ { v \\in \\mathcal { E } } W _ { \\ell , t , v , c } \\pmb { h } _ { u , c } ^ { ( t ) } \\right) } \\end{array}\n$$",
|
| 487 |
+
"text_format": "latex",
|
| 488 |
+
"bbox": [
|
| 489 |
+
352,
|
| 490 |
+
569,
|
| 491 |
+
645,
|
| 492 |
+
636
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 3
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "The number of parameters of the model can now be reduced by tying the value of some instances of $\\theta _ { f , \\ell , c }$ . For example, the update function for a chunk $c$ can be computed using only the corresponding chunk of the node representation $h _ { v , c } ^ { ( t ) }$ , or the same update function can be applied to all “chunks” by setting $\\pmb { \\theta } _ { f , \\ell , 1 } = . . . = \\pmb { \\theta } _ { f , \\ell , C }$ . The learnable parameters of the model are only the hypernetwork parameters $\\theta _ { f , \\ell , c }$ . This is somewhat less desirable than the related idea of Wu et al. (2019), which operates on sequences, where sharing between neighbouring elements of the sequence has an intuitive interpretation that is not applicable in the general graph setting. ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
173,
|
| 501 |
+
638,
|
| 502 |
+
826,
|
| 503 |
+
742
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 3
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "Graph Neural Networks with Feature-wise Linear Modulation (GNN-FiLM) In (6), the message passing layer is a linear transformation conditioned on the target node representation, focusing on separate chunks of the node representation at a time. In the extreme case in which the dimension of each chunk is 1, this method coincides with the ideas of Perez et al. (2017), who propose to use layers of element-wise affine transformations to modulate feature maps in the visual question answering setting; there, a natural language question is the input used to compute the affine transformation applied to the features extracted from a picture. ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
173,
|
| 512 |
+
755,
|
| 513 |
+
825,
|
| 514 |
+
853
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 3
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "In the graph setting, we can use each node’s representation as an input that determines an elementwise affine transformation of incoming messages, allowing the model to dynamically up-weight and down-weight features based on the information present at the target node of an edge. This yields the following update rule, using a learnable function $g$ to compute the parameters of the affine transformation. ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
176,
|
| 523 |
+
859,
|
| 524 |
+
820,
|
| 525 |
+
888
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 3
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "",
|
| 532 |
+
"bbox": [
|
| 533 |
+
176,
|
| 534 |
+
103,
|
| 535 |
+
823,
|
| 536 |
+
145
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 4
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "equation",
|
| 542 |
+
"img_path": "images/80793c00acef7fba9ee3395f0dc3beb76f2bc9ec5bd5046c4bc3c5a3274f1380.jpg",
|
| 543 |
+
"text": "$$\n\\begin{array} { r l } & { \\beta _ { \\ell , v } ^ { ( t ) } , \\gamma _ { \\ell , v } ^ { ( t ) } = g ( \\pmb { h } _ { v } ^ { ( t ) } ; \\pmb { \\theta } _ { g , \\ell } ) } \\\\ & { \\quad \\pmb { h } _ { v } ^ { ( t + 1 ) } = \\sigma \\left( \\displaystyle \\sum _ { u \\in \\mathcal { E } } \\gamma _ { \\ell , v } ^ { ( t ) } \\odot W _ { \\ell } \\pmb { h } _ { u } ^ { ( t ) } + \\beta _ { \\ell , v } ^ { ( t ) } \\right) } \\end{array}\n$$",
|
| 544 |
+
"text_format": "latex",
|
| 545 |
+
"bbox": [
|
| 546 |
+
336,
|
| 547 |
+
143,
|
| 548 |
+
658,
|
| 549 |
+
212
|
| 550 |
+
],
|
| 551 |
+
"page_idx": 4
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"type": "text",
|
| 555 |
+
"text": "The learnable parameters of the model are both the hypernetwork parameters $\\theta _ { g , \\ell }$ and the weights $W _ { \\ell }$ . In practice, implementing $g$ as a single linear layer works well. ",
|
| 556 |
+
"bbox": [
|
| 557 |
+
171,
|
| 558 |
+
213,
|
| 559 |
+
821,
|
| 560 |
+
242
|
| 561 |
+
],
|
| 562 |
+
"page_idx": 4
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"type": "text",
|
| 566 |
+
"text": "In the case of using a single linear layer, the resulting message passing function is bilinear in source and target node representation, as the message computation is centred around $( W _ { g } \\pmb { h } _ { v } ^ { ( t ) } ) \\odot ( W _ { \\ell } \\pmb { h } _ { u } ^ { ( t ) } )$ . This is the core difference to the (linear) interaction of source and target node representations in models that use $W _ { \\ell } ( \\pmb { h } _ { u } ^ { ( t ) } | | \\pmb { h } _ { v } ^ { ( t ) } )$ . ",
|
| 567 |
+
"bbox": [
|
| 568 |
+
173,
|
| 569 |
+
248,
|
| 570 |
+
825,
|
| 571 |
+
310
|
| 572 |
+
],
|
| 573 |
+
"page_idx": 4
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"type": "text",
|
| 577 |
+
"text": "A simple toy example may illustrate the usefulness of such a mechanism: assuming a graph of nodes $\\nu _ { A }$ and $\\gamma _ { B }$ and edge types 1 and 2, a task may involve counting the number of 1-neighbours of $\\nu _ { A }$ nodes and of 2-neighbours of $\\gamma _ { B }$ nodes. By setting $\\gamma _ { 1 , v _ { a } } = 1$ , $\\gamma _ { 2 , v _ { a } } = 0$ for $v _ { a } \\in \\mathcal { V } _ { A }$ and $\\gamma _ { 1 , v _ { b } } = 0$ , $\\gamma _ { 2 , v _ { b } } = 1$ for $v _ { b } \\in \\mathcal { V } _ { B }$ , GNN-FiLM can solve this in a single layer. Simpler approaches can solve this by counting $A / 1 , A / 2 , B / 1$ and $B / 2$ neighbours separately in one layer and then projecting to the correct counter, but require more feature dimensions and layers for this. As this toy example illustrates, a core capability of GNN-FiLM is to learn to ignore graph edges based on the representation of target nodes. ",
|
| 578 |
+
"bbox": [
|
| 579 |
+
173,
|
| 580 |
+
315,
|
| 581 |
+
825,
|
| 582 |
+
428
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 4
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "text",
|
| 588 |
+
"text": "Note that the featurewise modulation can also be viewed of an extension of the gating mechanism of GRU or LSTM cells used in GGNNs. Concretely, the “forgetting” of memories in a GRU/LSTM is similar to down-weighting messages computed for the self-loop edges and the gating of the cell input is similar to the modulation of other incoming messages. However, GGNNs apply this gating to the sum of all incoming messages (cf. Eq. (1), wheras in GNN-FiLM the modulation additionally depends on the edge type, allowing for a more fine-grained gating mechanism. ",
|
| 589 |
+
"bbox": [
|
| 590 |
+
173,
|
| 591 |
+
434,
|
| 592 |
+
825,
|
| 593 |
+
518
|
| 594 |
+
],
|
| 595 |
+
"page_idx": 4
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"type": "text",
|
| 599 |
+
"text": "Finally, a small implementation bug brought focus to the fact that applying the non-linearity $\\sigma$ after summing up messages from neighbouring nodes can make it harder to perform tasks such as counting the number of neighbours with a certain feature. In experiments, applying the non-linearity before aggregation as in the following update rule improved performance. ",
|
| 600 |
+
"bbox": [
|
| 601 |
+
173,
|
| 602 |
+
525,
|
| 603 |
+
825,
|
| 604 |
+
582
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 4
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "equation",
|
| 610 |
+
"img_path": "images/862ad11681ccb9203d2773bd28d5888bea6fc2f16ea5c5f0df2ce6b965777b98.jpg",
|
| 611 |
+
"text": "$$\n\\pmb { h } _ { v } ^ { ( t + 1 ) } = l \\left( \\sum _ { u \\downarrow } \\sigma _ { v \\in \\mathcal { E } } \\sigma \\left( \\gamma _ { \\ell , v } ^ { ( t ) } \\odot W _ { \\ell } \\pmb { h } _ { u } ^ { ( t ) } + \\beta _ { \\ell , v } ^ { ( t ) } \\right) ; \\pmb { \\theta } _ { l } \\right)\n$$",
|
| 612 |
+
"text_format": "latex",
|
| 613 |
+
"bbox": [
|
| 614 |
+
316,
|
| 615 |
+
583,
|
| 616 |
+
679,
|
| 617 |
+
626
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 4
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "However, this means that the magnitude of node representations is now dependent on the degree of nodes in the handled graph. This can sometimes lead to instability during training, which can in turn be controlled by adding an additional layer $l$ after message passing, which can be a simple bounded nonlinearity (e.g. tanh), a fully connected layer, or layer normalisation (Ba et al., 2016), or any combination of these. ",
|
| 624 |
+
"bbox": [
|
| 625 |
+
173,
|
| 626 |
+
627,
|
| 627 |
+
825,
|
| 628 |
+
698
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 4
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "3 EVALUATION ",
|
| 635 |
+
"text_level": 1,
|
| 636 |
+
"bbox": [
|
| 637 |
+
176,
|
| 638 |
+
717,
|
| 639 |
+
315,
|
| 640 |
+
733
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 4
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "3.1 GNN BENCHMARK TASKS ",
|
| 647 |
+
"text_level": 1,
|
| 648 |
+
"bbox": [
|
| 649 |
+
176,
|
| 650 |
+
747,
|
| 651 |
+
400,
|
| 652 |
+
762
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 4
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "Due to the versatile nature of the GNN modelling formalism, many fundamentally different tasks are studied in the research area and it should be noted that good results on one task often do not transfer over to other tasks. This is due to the widely varying requirements of different tasks, as the following summary of tasks from the literature should illustrate. ",
|
| 659 |
+
"bbox": [
|
| 660 |
+
176,
|
| 661 |
+
773,
|
| 662 |
+
825,
|
| 663 |
+
830
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 4
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"text": "• Cora/Citeseer/Pubmed (Sen et al., 2008): Each task consists of a single graph of $\\sim 1 0 0 0 0$ nodes corresponding to documents and undirected (sic!) edges corresponding to references. The sparse $\\sim 1 0 0 0$ node features are a bag of words representation of the corresponding documents. The goal is to assign a subset of nodes to a small number of classes. State of the art performance on these tasks is achieved with two propagation steps along graph edges. ",
|
| 670 |
+
"bbox": [
|
| 671 |
+
217,
|
| 672 |
+
839,
|
| 673 |
+
825,
|
| 674 |
+
924
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 4
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "text",
|
| 680 |
+
"text": "• PPI (Zitnik & Leskovec, 2017): A protein-protein interaction dataset consisting of 24 graphs of $\\sim \\ 2 5 0 0$ nodes corresponding to different human tissues. Each node has 50 features selected by domain experts and the goal is node-level classification, where each node may belong to several of the 121 classes. State of the art performance on this task requires three propagation steps. QM9 property prediction (Ramakrishnan et al., 2014): $\\sim 1 3 0 0 0 0$ graphs of $\\sim 8$ nodes represent molecules, where nodes are heavy atoms and undirected, typed edges are bonds between these atoms, different edge types indicating single/double/etc. bonds. The goal is to regress each graph to a number of quantum chemical properties. State of the art performance on these tasks requires at least four propagation steps. VarMisuse (Allamanis et al., 2018): $\\sim 2 3 5 0 0 0$ graphs of $\\sim 2 5 0 0$ nodes each represent program fragments, where nodes are tokens in the program text and different edge types represent the program’s abstract syntax tree, data flow between variables, etc. The goal is to select one of a set of candidate nodes per graph. State of the art performance requires at least six propagation steps. ",
|
| 681 |
+
"bbox": [
|
| 682 |
+
215,
|
| 683 |
+
103,
|
| 684 |
+
825,
|
| 685 |
+
323
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 5
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "Hence, tasks differ in the complexity of edges (from undirected and untyped to directed and manytyped), the size of the considered graphs, the size of the dataset, the importance of node-level vs. graph-level representations, and the number of required propagation steps. ",
|
| 692 |
+
"bbox": [
|
| 693 |
+
178,
|
| 694 |
+
334,
|
| 695 |
+
825,
|
| 696 |
+
377
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 5
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"text": "This article includes results on the PPI, QM9 and VarMisuse tasks. Preliminary experiments on the citation network data showed results that were at best comparable to the baseline methods, but changes of a random seed led to substantial fluctuations (mirroring the problems with evaluation on these tasks reported by Shchur et al. (2018)). ",
|
| 703 |
+
"bbox": [
|
| 704 |
+
176,
|
| 705 |
+
383,
|
| 706 |
+
825,
|
| 707 |
+
439
|
| 708 |
+
],
|
| 709 |
+
"page_idx": 5
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "text",
|
| 713 |
+
"text": "3.2 IMPLEMENTATION ",
|
| 714 |
+
"text_level": 1,
|
| 715 |
+
"bbox": [
|
| 716 |
+
176,
|
| 717 |
+
457,
|
| 718 |
+
341,
|
| 719 |
+
470
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 5
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "To allow for a wider comparison, the implementation of GNN-FiLM is accompanied by implementations of a range of baseline methods. These include GGNN (Li et al., 2016) (see Eq. (1)), R-GCN (Schlichtkrull et al., 2018) (see Eq. (2)), R-GAT (Velickovi ˇ c et al., 2018) (see Eq. ´ (3)), and R-GIN (Hamilton et al., 2017) (see Eq. (4))3. Additionally, GNN-MLP0 is a variant of R-GCN using a single linear layer to compute the edge message from both source and target state (i.e., Eq. (5) instantiated with an “MLP” without hidden layers), and GNN-MLP1 is the same with a single hidden layer. The baseline methods were re-implemented in TensorFlow and individually tested to reach performance equivalent to results reported in their respective source papers. All code for the implementation of these GNNs is released on https://revealed/after/double/blind/ lifted, together with implementations of all tasks and scripts necessary to reproduce the results reported in this paper. This includes the hyperparameter settings found by search, which are stored in tasks/default hypers/ and are selected by default on the respective tasks. The code is designed to facilitate testing new GNN types on existing tasks and easily adding new tasks, allowing for rapid evaluation of new architectures. ",
|
| 726 |
+
"bbox": [
|
| 727 |
+
174,
|
| 728 |
+
483,
|
| 729 |
+
825,
|
| 730 |
+
676
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 5
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "Early on in the experiments, it became clear that the RGDCN approach (Eq. (6)) as presented is infeasible. It is extremely sensitive to the parameter initialisation and hence changes to the random seed lead to wild swings in the target metrics. Hence, no experimental results are reported for it in the following. It is nonetheless included in the article (and the implementation) to show the thought process leading to GNN-FiLM, as well as to allow other researchers to build upon this. In the following, GNN-FiLM refers to the formulation of Eq. (8), which performed better than the variant of Eq. (7) across all experiments. Somewhat surprisingly, the same trick (of moving the non-linearity before the message aggregation step) did not help the other GNN types. For all models, using each layer only for a single propagation step performed better than using fewer layers with several propagation steps. ",
|
| 737 |
+
"bbox": [
|
| 738 |
+
174,
|
| 739 |
+
684,
|
| 740 |
+
825,
|
| 741 |
+
824
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 5
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "In all experiments, models were trained until the target metric did not improve anymore for some additional epochs (25 for PPI and QM9, 5 for VarMisuse). The reported results on the held-out test data are averaged across the results of a number of training runs, each starting from different random parameter initializations. ",
|
| 748 |
+
"bbox": [
|
| 749 |
+
174,
|
| 750 |
+
830,
|
| 751 |
+
825,
|
| 752 |
+
886
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 5
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "3.3 EXPERIMENTAL RESULTS ",
|
| 759 |
+
"text_level": 1,
|
| 760 |
+
"bbox": [
|
| 761 |
+
176,
|
| 762 |
+
103,
|
| 763 |
+
392,
|
| 764 |
+
117
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 6
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "3.3.1 PROTEIN-PROTEIN INTERACTIONS (PPI) ",
|
| 771 |
+
"text_level": 1,
|
| 772 |
+
"bbox": [
|
| 773 |
+
174,
|
| 774 |
+
131,
|
| 775 |
+
509,
|
| 776 |
+
146
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 6
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "The models are first evaluated on the node-level classification PPI task (Zitnik & Leskovec, 2017), following the dataset split from earlier papers. Training hence used a set of 20 graphs and validation and test sets of two separate graphs each. The graphs use two edge types: the dataset-provided untyped edges as well as a fresh “self-loop” edge type to allows nodes to keep state across propagation steps. ",
|
| 783 |
+
"bbox": [
|
| 784 |
+
174,
|
| 785 |
+
156,
|
| 786 |
+
825,
|
| 787 |
+
228
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 6
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "text",
|
| 793 |
+
"text": "Hyperparameters for all models were selected based on results from earlier papers and a small grid search of a number of author-selected hyperparameter ranges (see App. A for details). This resulted in three (R-GAT), four (GGNN, GNN-FiLM, GNN-MLP1, R-GCN), or five (GNN-MLP0, R-GIN) layers (propagation steps) and a node representation size of 256 (GNN-MLP0, R-GIN) or 320 (all others). All models use dropout on the node representations before all GNN layers, with a keep ratio of 0.9. After selecting hyperparameters, all models were trained ten times with different random seeds on a NVidia V100. ",
|
| 794 |
+
"bbox": [
|
| 795 |
+
174,
|
| 796 |
+
233,
|
| 797 |
+
825,
|
| 798 |
+
330
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 6
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "text",
|
| 804 |
+
"text": "Tab. 1 shows the micro-averaged F1 score on the classification task on the test graphs, with standard deviations and training times in seconds computed over the ten runs. The results for all re-implemented models are better than the results reported by Velickovi ˇ c et al. (2018) ´ for the GAT model (without edge types). A cursory exploration of the reasons yielded three factors. First, the generalisation to different edge types (cf. Eq. (3)) and the subsequent use of a special self-loop edge type helps R-GAT (and all other models) significantly. Second, using dropout between layers significantly im",
|
| 805 |
+
"bbox": [
|
| 806 |
+
174,
|
| 807 |
+
339,
|
| 808 |
+
483,
|
| 809 |
+
518
|
| 810 |
+
],
|
| 811 |
+
"page_idx": 6
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"type": "table",
|
| 815 |
+
"img_path": "images/3a61de3ab3d709469f54f95ec13196280c16e1756c167b4306364c50f275a18c.jpg",
|
| 816 |
+
"table_caption": [
|
| 817 |
+
"Table 1: GNN results on PPI task. $\\mathrm { G A T ^ { * } }$ result taken from Velickovi ˇ c et al. (2018). ´ "
|
| 818 |
+
],
|
| 819 |
+
"table_footnote": [],
|
| 820 |
+
"table_body": "<table><tr><td>Model</td><td>Avg. Micro-F1</td><td>Time (s)</td></tr><tr><td>GAT*</td><td>0.973 ±0.002</td><td>n/a</td></tr><tr><td>GGNN</td><td>0.990 ±0.001</td><td>432.6</td></tr><tr><td>R-GCN</td><td>0.989 ±0.000</td><td>759.0</td></tr><tr><td>R-GAT</td><td>0.989 ±0.001</td><td>782.3</td></tr><tr><td>R-GIN</td><td>0.991 ±0.001</td><td>704.8</td></tr><tr><td>GNN-MLP0</td><td>0.992±0.000</td><td>556.9</td></tr><tr><td>GNN-MLP1</td><td>0.992±0.001</td><td>479.2</td></tr><tr><td>GNN-FiLM</td><td>0.992±0.000</td><td>308.1</td></tr></table>",
|
| 821 |
+
"bbox": [
|
| 822 |
+
519,
|
| 823 |
+
368,
|
| 824 |
+
802,
|
| 825 |
+
508
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 6
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"type": "text",
|
| 831 |
+
"text": "proved the results. Third, the larger node representation sizes (compared to 256 used by Velickovi ˇ c´ et al. (2018)) improved the results again. However, the new GNN-FiLM improves slightly over these four baselines from the literature, while converging substantially faster than all baselines, mainly because it converges in significantly fewer training steps (approx. 240 epochs compared to 400-600 epochs for the other models). ",
|
| 832 |
+
"bbox": [
|
| 833 |
+
174,
|
| 834 |
+
518,
|
| 835 |
+
825,
|
| 836 |
+
588
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 6
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "3.3.2 QUANTUM CHEMISTRY (QM9) ",
|
| 843 |
+
"text_level": 1,
|
| 844 |
+
"bbox": [
|
| 845 |
+
176,
|
| 846 |
+
608,
|
| 847 |
+
444,
|
| 848 |
+
622
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 6
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "text",
|
| 854 |
+
"text": "All models were additionally evaluated on graph-level regression tasks on the QM9 molecule data set (Ramakrishnan et al., 2014), considering thirteen different quantum chemical properties. The ${ \\sim } 1 3 0 k$ molecular graphs in the dataset were split into training, validation and test data by randomly selecting 10 000 graphs for the latter two sets. Additionally, another data split without a test set was used for the hyperparameter search (see below). The graphs use five edge types: the datasetprovided typed edges (single, double, triple and aromatic bonds between atoms) as well as a fresh “self-loop” edge type that allows nodes to keep state across propagation steps. The evaluation differs from the setting reported by Gilmer et al. (2017), as no additional molecular information is encoded as edge features, nor are the graphs augmented by master nodes or additional edges.4 ",
|
| 855 |
+
"bbox": [
|
| 856 |
+
174,
|
| 857 |
+
633,
|
| 858 |
+
825,
|
| 859 |
+
760
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 6
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "Hyperparameters for all models were found using a staged search process. First, 500 hyperparameter configurations were sampled from an author-provided search space (see App. A for details) and run on the first three regression tasks. The top three configurations for each of these three tasks were then run on all thirteen tasks and the final configuration was chosen as the one with the lowest average mean absolute error across all properties, as evaluated on the validation data of that dataset split. This process led to eight layers / propagation steps for all models but GGNN and R-GIN, which showed best performance with six layers. Furthermore, all models used residual connections connecting every second layer and GGNN, R-GCN, GNN-FiLM and GNN-MLP0 additionally used layer normalisation (as in Eq. (8)). ",
|
| 866 |
+
"bbox": [
|
| 867 |
+
174,
|
| 868 |
+
766,
|
| 869 |
+
825,
|
| 870 |
+
892
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 6
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "table",
|
| 876 |
+
"img_path": "images/48f53a8f8558d0db1faa39f5f9d8a208e4d345602586bbdbea16dd344dfc9679.jpg",
|
| 877 |
+
"table_caption": [
|
| 878 |
+
"Table 2: GNN average error rates and standard deviations on QM9 target values. "
|
| 879 |
+
],
|
| 880 |
+
"table_footnote": [],
|
| 881 |
+
"table_body": "<table><tr><td>Property</td><td>GGNN</td><td>R-GCN</td><td>R-GAT</td><td>R-GIN</td><td>GNN-MLP0</td><td>GNN-MLP1</td><td>GNN-FiLM</td></tr><tr><td>mu</td><td>3.85 ±0.16</td><td>3.21 ±0.06</td><td>2.68 ±0.06</td><td>2.64 ±0.11</td><td>2.36 ±0.04</td><td>2.44 ±0.12</td><td>2.38 ±0.13</td></tr><tr><td>alpha</td><td>5.22 ±0.86</td><td>4.22 ±0.45</td><td>4.65 ±0.44</td><td>4.67 ±0.52</td><td>4.27 ±0.36</td><td>4.63 ±0.54</td><td>3.75 ±0.11</td></tr><tr><td>HOMO</td><td>1.67 ±0.07</td><td>1.45 ±0.01</td><td>1.48 ±0.03</td><td>1.42 ±0.01</td><td>1.25 ±0.04</td><td>1.29 ±0.06</td><td>1.22 ±0.07</td></tr><tr><td>LUMO</td><td>1.74 ±0.06</td><td>1.62 ±0.04</td><td>1.53 ±0.07</td><td>1.50 ±0.09</td><td>1.35 ±0.04</td><td>1.50 ±0.19</td><td>1.30 ±0.05</td></tr><tr><td>gap</td><td>2.60 ±0.06</td><td>2.42 ±0.14</td><td>2.31 ±0.06</td><td>2.27 ±0.09</td><td>2.04 ±0.05</td><td>2.06 ±0.10</td><td>1.96 ±0.06</td></tr><tr><td>R2</td><td>35.94 ±35.68</td><td>16.38 ±0.49</td><td>52.39 ±42.58</td><td>15.63 ±1.40</td><td>14.86 ±1.62</td><td>15.81 ±1.42</td><td>15.59 ±1.38</td></tr><tr><td>ZPVE</td><td>17.84 ±3.61</td><td>17.40 ±3.56</td><td>14.87 ±2.88</td><td>12.93 ±1.81</td><td>12.00 ±1.66</td><td>14.12 ±1.10</td><td>11.00 ±0.74</td></tr><tr><td>UO</td><td>8.65 ±2.46</td><td>7.82 ±0.80</td><td>7.61 ±0.46</td><td>5.88 ±1.01</td><td>5.55 ±0.38</td><td>6.94 ±0.64</td><td>5.43 ±0.96</td></tr><tr><td>U</td><td>9.24 ±2.26</td><td>8.24 ±1.25</td><td>6.86 ±0.53</td><td>18.71 ±23.36</td><td>6.20 ±0.88</td><td>7.00 ±1.06</td><td>5.95 ±0.46</td></tr><tr><td>H</td><td>9.35 ±0.96</td><td>9.05 ±1.21</td><td>7.64 ±0.92</td><td>5.62 ±0.81</td><td>5.96 ±0.45</td><td>7.98 ±0.88</td><td>5.59 ±0.57</td></tr><tr><td>G</td><td>7.14 ±1.15</td><td>7.00 ±1.51</td><td>6.54 ±0.36</td><td>5.38±0.75</td><td>5.09 ±0.57</td><td>7.14 ±0.51</td><td>5.17 ±1.13</td></tr><tr><td>Cv</td><td>8.86 ±9.07</td><td>3.93 ±0.48</td><td>4.11 ±0.27</td><td>3.53 ±0.37</td><td>3.38 ±0.20</td><td>4.60 ±0.74</td><td>3.46 ±0.21</td></tr><tr><td>Omega</td><td>1.57 ±0.53</td><td>1.02 ±0.05</td><td>1.48 ±0.87</td><td>1.05 ±0.11</td><td>0.84±0.02</td><td>5.60 ±8.82</td><td>0.98 ±0.06</td></tr></table>",
|
| 882 |
+
"bbox": [
|
| 883 |
+
176,
|
| 884 |
+
127,
|
| 885 |
+
821,
|
| 886 |
+
294
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 7
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "table",
|
| 892 |
+
"img_path": "images/dd11906b1fced7d02e34ad81ece2c25a291a6b99fc894e7992fd960827d8333f.jpg",
|
| 893 |
+
"table_caption": [
|
| 894 |
+
"Table 3: Accuracy on VarMisuse task. GGNN∗ result taken from appendix of Allamanis et al. (2018). "
|
| 895 |
+
],
|
| 896 |
+
"table_footnote": [],
|
| 897 |
+
"table_body": "<table><tr><td>Model</td><td>TRAIN</td><td>VALID</td><td>SEENPROJTEST</td><td>UNSEENPROJTEST</td></tr><tr><td>GGNN*</td><td>n/a</td><td>n/a</td><td>84.0 n/a</td><td>74.1 n/a</td></tr><tr><td>GGNN</td><td>87.5±1.8%</td><td>82.1±0.9%</td><td>85.7 ±0.5%</td><td>79.3 ±1.2%</td></tr><tr><td>R-GCN</td><td>88.7±3.1%</td><td>85.7±1.6%</td><td>87.2±1.5%</td><td>81.4±2.3%</td></tr><tr><td>R-GAT</td><td>90.4±3.9%</td><td>84.2±1.0%</td><td>86.9 ±0.7%</td><td>81.2 ±0.9%</td></tr><tr><td>R-GIN</td><td>93.4±1.8%</td><td>84.2±1.0%</td><td>87.1 ±0.1%</td><td>81.1 ±0.9%</td></tr><tr><td>GNN-MLP0</td><td>95.3±2.4%</td><td>83.4±0.3%</td><td>86.5 ±0.2%</td><td>80.5 ±1.4%</td></tr><tr><td>GNN-MLP1</td><td>94.7±1.2%</td><td>84.4±0.4%</td><td>86.9 ±0.3%</td><td>81.4±0.7%</td></tr><tr><td>GNN-FiLM</td><td>94.3±1.0%</td><td>84.6±0.6%</td><td>87.0 ±0.2%</td><td>81.3 ±0.9%</td></tr></table>",
|
| 898 |
+
"bbox": [
|
| 899 |
+
186,
|
| 900 |
+
342,
|
| 901 |
+
808,
|
| 902 |
+
483
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 7
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "text",
|
| 908 |
+
"text": "Each model was trained for each of the properties separately five times using different random seeds on compute nodes with NVidia P100 cards. The average results of the five runs are reported in Tab. 2, with their respective standard deviations.5 The results indicate that the new GNN-FiLM model outperforms the standard baselines on all tasks and the usually not considered GNN-MLP variants on the majority of tasks. ",
|
| 909 |
+
"bbox": [
|
| 910 |
+
174,
|
| 911 |
+
515,
|
| 912 |
+
825,
|
| 913 |
+
584
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 7
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "text",
|
| 919 |
+
"text": "3.3.3 VARIABLE USAGE IN PROGRAMS (VARMISUSE) ",
|
| 920 |
+
"text_level": 1,
|
| 921 |
+
"bbox": [
|
| 922 |
+
174,
|
| 923 |
+
599,
|
| 924 |
+
560,
|
| 925 |
+
614
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 7
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "text",
|
| 931 |
+
"text": "Finally, the models were evaluated on the VarMisuse task of Allamanis et al. (2018). This task requires to process a graph representing an abstraction of a program fragment and then select one of a few candidate nodes (representing program variables) based on the representation of another node (representing the location to use a variable in). The experiments are performed using the released split of the dataset, which contains $\\sim 1 3 0 k$ training graphs, $\\sim 2 0 k$ validation graphs and two test sets: SEENPROJTEST, which contains $\\sim 5 5 k$ graphs extracted from open source projects that also contributed data to the training and validation sets, and UNSEENPROJTEST, which contains $\\sim 3 0 k$ graphs extracted from completely unseen projects. ",
|
| 932 |
+
"bbox": [
|
| 933 |
+
174,
|
| 934 |
+
623,
|
| 935 |
+
825,
|
| 936 |
+
736
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 7
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "Due to the inherent cost of training models on this dataset (Balog et al. (2019) provide an in-depth performance analysis), a limited hyperparameter grid search was performed, with only $\\sim 3 0$ candidate configurations for each model (see App. A for details). For each model, the configuration yielding the best results on the validation data set fold was selected. This led to six layers for GGNN and R-GIN, eight layers for R-GAT and GNN-MLP0, and ten layers for the remaining models. Graph node hidden sizes were 128 for all models but GGNN and R-GAT, which performed better with 96 dimensions. ",
|
| 943 |
+
"bbox": [
|
| 944 |
+
174,
|
| 945 |
+
742,
|
| 946 |
+
825,
|
| 947 |
+
839
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 7
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "The results, shown in Tab. 3, are somewhat surprising, as they indicate a different ranking of model architectures as the results on PPI and QM9, with R-GCN performing best. All re-implemented baselines beat the results reported by Allamanis et al. (2018), who also reported that R-GCN and GGNN show very similar performance. This is in spite of a simpler implementation of the task than in the original paper, as it only uses the string labels of nodes for the representation and does not use the additional type information provided in the dataset. However, the re-implementation of the task uses the insights from Cvitkovic et al. (2019), who use character CNNs to encode node labels and furthermore introduce extra nodes for subtokens appearing in labels of different nodes, connecting them to their sources (e.g., nodes labelled openWullfrax and closeWullfrax are both connected to a fresh Wullfrax node). ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
176,
|
| 956 |
+
847,
|
| 957 |
+
821,
|
| 958 |
+
875
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 7
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "",
|
| 965 |
+
"bbox": [
|
| 966 |
+
174,
|
| 967 |
+
103,
|
| 968 |
+
825,
|
| 969 |
+
214
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 8
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "text",
|
| 975 |
+
"text": "A deeper investigation results showed that the more complex models seem to suffer from significant overfitting to the training data, as can be seen in the results for training and validation accuracy reported in Tab. 3. A brief exploration of more aggressive regularisation methods (more dropout, weight decay) showed no improvement and a deeper understanding of the cause of these results remains for future work. ",
|
| 976 |
+
"bbox": [
|
| 977 |
+
174,
|
| 978 |
+
222,
|
| 979 |
+
825,
|
| 980 |
+
291
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 8
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "text",
|
| 986 |
+
"text": "Furthermore, the large variance in results on the validation set (especially for R-GCN) makes it likely that the hyperparameter grid search with only one training run per configuration did not yield the best configuration for each model. ",
|
| 987 |
+
"bbox": [
|
| 988 |
+
174,
|
| 989 |
+
299,
|
| 990 |
+
825,
|
| 991 |
+
340
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 8
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "4 DISCUSSION & CONCLUSIONS ",
|
| 998 |
+
"text_level": 1,
|
| 999 |
+
"bbox": [
|
| 1000 |
+
176,
|
| 1001 |
+
361,
|
| 1002 |
+
459,
|
| 1003 |
+
377
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 8
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "After a review of existing graph neural network architectures, the idea of using hypernetworkinspired models in the graph setting was explored. This led to two models, Graph Dynamic Convolutional Networks and GNNs with feature-wise linear modulation, were presented. While GDCNs seem to be impractical to train, experiments show that GNN-FiLM is competitive with or improving on baseline models on three tasks from the literature. ",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
174,
|
| 1012 |
+
392,
|
| 1013 |
+
825,
|
| 1014 |
+
462
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 8
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "The extensive experiments also show that a number of results from the literature could benefit from more substantial hyperparameter search and are often missing comparisons to a number of obvious baselines: ",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
176,
|
| 1023 |
+
469,
|
| 1024 |
+
825,
|
| 1025 |
+
511
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 8
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "• The results in Tab. 1 indicate that GATs have no advantage over GGNNs or R-GCNs on the PPI task, which does not match the findings by Velickovi ˇ c et al. (2018). ´ • The results in Tab. 3 indicate that R-GCNs are outperforming GGNNs substantially on the VarMisuse task, contradicting the findings of Allamanis et al. (2018). • The GNN-MLP models are obvious extensions that are often alluded to, but are not part of the usually considered set of baseline models. Nonetheless, experiments across all three tasks have shown that these methods outperform better-published techniques such as GGNNs, R-GCNs and GATs, without a substantial runtime penalty. ",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
215,
|
| 1034 |
+
523,
|
| 1035 |
+
825,
|
| 1036 |
+
645
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 8
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "These results indicate that there is substantial value in independent reproducibility efforts and comparisons that include “obvious” baselines, matching the experiences from other areas of machine learning as well as earlier work by Shchur et al. (2018) on reproducing experimental results for GNNs on citation network tasks. ",
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
176,
|
| 1045 |
+
657,
|
| 1046 |
+
823,
|
| 1047 |
+
713
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 8
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "text",
|
| 1053 |
+
"text": "REFERENCES ",
|
| 1054 |
+
"text_level": 1,
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
174,
|
| 1057 |
+
103,
|
| 1058 |
+
287,
|
| 1059 |
+
117
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 9
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "text",
|
| 1065 |
+
"text": "Miltiadis Allamanis, Marc Brockschmidt, and Mahmoud Khademi. Learning to represent programs with graphs. In International Conference on Learning Representations (ICLR), 2018. ",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
174,
|
| 1068 |
+
125,
|
| 1069 |
+
823,
|
| 1070 |
+
154
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 9
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "Lei Jimmy Ba, Ryan Kiros, and Geoffrey E. Hinton. Layer normalization. CoRR, abs/1607.06450, 2016. ",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
173,
|
| 1079 |
+
160,
|
| 1080 |
+
821,
|
| 1081 |
+
189
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 9
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "Matej Balog, Bart van Merrienboer, Subhodeep Moitra, Yujia Li, and Daniel Tarlow. Fast training ¨ of sparse graph neural networks on dense hardware. CoRR, abs/1906.11786, 2019. ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
173,
|
| 1090 |
+
196,
|
| 1091 |
+
820,
|
| 1092 |
+
226
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 9
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "Dan Busbridge, Dane Sherburn, Pietro Cavallo, and Nils Y. Hammerla. Relational graph attention networks. CoRR, abs/1904.05811, 2019. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
174,
|
| 1101 |
+
233,
|
| 1102 |
+
820,
|
| 1103 |
+
262
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 9
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "Milan Cvitkovic, Badal Singh, and Anima Anandkumar. Open vocabulary learning on source code with a graph-structured cache. In International Conference on Machine Learning (ICML), 2019. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
173,
|
| 1112 |
+
270,
|
| 1113 |
+
821,
|
| 1114 |
+
299
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 9
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In International Conference on Machine Learning (ICML), 2017. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
174,
|
| 1123 |
+
305,
|
| 1124 |
+
823,
|
| 1125 |
+
348
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 9
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "David Ha, Andrew M. Dai, and Quoc V. Le. HyperNetworks. In International Conference on Learning Representations (ICLR), 2017. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
171,
|
| 1134 |
+
354,
|
| 1135 |
+
823,
|
| 1136 |
+
385
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 9
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "William L Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems (NeurIPS), 2017. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
173,
|
| 1145 |
+
391,
|
| 1146 |
+
821,
|
| 1147 |
+
421
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 9
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard Zemel. Gated graph sequence neural networks. In International Conference on Learning Representations (ICLR), 2016. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
173,
|
| 1156 |
+
428,
|
| 1157 |
+
821,
|
| 1158 |
+
458
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 9
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Aditya Paliwal, Sarah M. Loos, Markus N. Rabe, Kshitij Bansal, and Christian Szegedy. Graph representations for higher-order logic and theorem proving. CoRR, abs/1905.10006, 2019. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
173,
|
| 1167 |
+
463,
|
| 1168 |
+
823,
|
| 1169 |
+
494
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 9
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron C. Courville. FiLM: Visual reasoning with a general conditioning layer. In AAAI Conference on Artificial Intelligence, 2017. ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
176,
|
| 1178 |
+
500,
|
| 1179 |
+
823,
|
| 1180 |
+
542
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 9
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"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, 2014. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
173,
|
| 1189 |
+
550,
|
| 1190 |
+
823,
|
| 1191 |
+
580
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 9
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "Michael Schlichtkrull, Thomas N. Kipf, Peter Bloem, Rianne van den Berg, Ivan Titov, and Max Welling. Modeling relational data with graph convolutional network. In Extended Semantic Web Conference (ESWC), 2018. ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
173,
|
| 1200 |
+
587,
|
| 1201 |
+
823,
|
| 1202 |
+
630
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 9
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "Daniel Selsam, Matthew Lamm, Benedikt Bunz, Percy Liang, Leonardo de Moura, and David L. ¨ Dill. Learning a SAT solver from single-bit supervision. In International Conference on Learning Representations (ICLR), 2019. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
174,
|
| 1211 |
+
636,
|
| 1212 |
+
823,
|
| 1213 |
+
679
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 9
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29, 2008. ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
174,
|
| 1222 |
+
685,
|
| 1223 |
+
823,
|
| 1224 |
+
717
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 9
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Gunnemann. Pitfalls ¨ of graph neural network evaluation. CoRR, abs/1811.05868, 2018. ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
173,
|
| 1233 |
+
722,
|
| 1234 |
+
823,
|
| 1235 |
+
752
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 9
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Li ´ o, and Yoshua \\` Bengio. Graph Attention Networks. In International Conference on Learning Representations (ICLR), 2018. ",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
173,
|
| 1244 |
+
758,
|
| 1245 |
+
825,
|
| 1246 |
+
801
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 9
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "Felix Wu, Angela Fan, Alexei Baevski, Yann Dauphin, and Michael Auli. Pay less attention with lightweight and dynamic convolutions. In International Conference on Learning Representations (ICLR), 2019. ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
171,
|
| 1255 |
+
808,
|
| 1256 |
+
823,
|
| 1257 |
+
852
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 9
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In International Conference on Learning Representations (ICLR), 2019. ",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
173,
|
| 1266 |
+
858,
|
| 1267 |
+
821,
|
| 1268 |
+
888
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 9
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "Marinka Zitnik and Jure Leskovec. Predicting multicellular function through multi-layer tissue networks. Bioinformatics, 33, 2017. ",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
176,
|
| 1277 |
+
895,
|
| 1278 |
+
821,
|
| 1279 |
+
924
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 9
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "A HYPERPARAMETER SEARCH SPACES ",
|
| 1286 |
+
"text_level": 1,
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
176,
|
| 1289 |
+
102,
|
| 1290 |
+
511,
|
| 1291 |
+
118
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 10
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "text",
|
| 1297 |
+
"text": "A.1 PPI ",
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
174,
|
| 1300 |
+
132,
|
| 1301 |
+
246,
|
| 1302 |
+
148
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 10
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "text",
|
| 1308 |
+
"text": "For all models, a full grid search considering all combinations of the following parameters was performed: ",
|
| 1309 |
+
"bbox": [
|
| 1310 |
+
173,
|
| 1311 |
+
159,
|
| 1312 |
+
825,
|
| 1313 |
+
188
|
| 1314 |
+
],
|
| 1315 |
+
"page_idx": 10
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "text",
|
| 1319 |
+
"text": "• hidden siz $\\textsf { e } \\in \\{ 1 9 2 , 2 5 6 , 3 2 0 \\}$ - size of per-node representations. • graph num layers $\\in \\{ 2 , 3 , 4 , 5 \\}$ - number of propagation steps / layers. • graph layer input dropout keep prob $\\in \\ \\{ 0 . 8 , 0 . 9 , 1 . 0 \\}$ - dropout applied before propagation steps. ",
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
215,
|
| 1322 |
+
198,
|
| 1323 |
+
825,
|
| 1324 |
+
267
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 10
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "text",
|
| 1330 |
+
"text": "A.2 QM9 ",
|
| 1331 |
+
"text_level": 1,
|
| 1332 |
+
"bbox": [
|
| 1333 |
+
174,
|
| 1334 |
+
282,
|
| 1335 |
+
256,
|
| 1336 |
+
297
|
| 1337 |
+
],
|
| 1338 |
+
"page_idx": 10
|
| 1339 |
+
},
|
| 1340 |
+
{
|
| 1341 |
+
"type": "text",
|
| 1342 |
+
"text": "For all models, 500 configurations were considered, sampling hyperparameter settings uniformly from the following options: ",
|
| 1343 |
+
"bbox": [
|
| 1344 |
+
174,
|
| 1345 |
+
308,
|
| 1346 |
+
823,
|
| 1347 |
+
338
|
| 1348 |
+
],
|
| 1349 |
+
"page_idx": 10
|
| 1350 |
+
},
|
| 1351 |
+
{
|
| 1352 |
+
"type": "text",
|
| 1353 |
+
"text": "• hidden siz $\\textsf { e } \\in \\{ 6 4 , 9 6 , 1 2 8 \\}$ - size of per-node representations. \n• graph num layers $\\in \\{ 4 , 6 , 8 \\}$ - number of propagation steps / layers. \n• graph layer input dropout keep prob $\\in \\ \\{ 0 . 8 , 0 . 9 , 1 . 0 \\}$ - dropout applied before propagation steps. \n• layer norm $\\in \\{ T r u e , F a l s e \\}$ - decided if layer norm is applied after each propagation step. \n• dense layers $\\in \\{ 1 , 2 , 3 2 \\}$ - insert a fully connected layer applied to node representations between every dense layers propagation steps. (32 effectively turns this off) res connection $\\in \\quad \\{ 1 , 2 , 3 2 \\}$ - insert a residual connection between every res connection propagation steps. (32 effectively turns this off) \n• graph activation function $\\in$ {relu, leaky relu, elu, gelu, tanh} - non-linearity applied after message passing. \n• optimizer $\\in \\{ R M S P r o p , A d a m \\}$ - optimizer used (with TF 1.13.1 default parameters). \n• $\\mathtt { l r } \\in [ 0 . 0 0 0 5 , 0 . 0 0 1 ]$ - learning rate. \n• $\\mathsf { c e l 1 } \\in \\{ R N N , G R U , L S T M \\}$ - gated cell used for GGNN (only part of search space for GGNN). \n• num heads $\\in \\{ 4 , 8 , 1 6 \\}$ - number of attention heads used for R-GAT (only part of search space for R-GAT). ",
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
214,
|
| 1356 |
+
348,
|
| 1357 |
+
825,
|
| 1358 |
+
651
|
| 1359 |
+
],
|
| 1360 |
+
"page_idx": 10
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"type": "text",
|
| 1364 |
+
"text": "A.3 VARMISUSE ",
|
| 1365 |
+
"text_level": 1,
|
| 1366 |
+
"bbox": [
|
| 1367 |
+
174,
|
| 1368 |
+
666,
|
| 1369 |
+
305,
|
| 1370 |
+
681
|
| 1371 |
+
],
|
| 1372 |
+
"page_idx": 10
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"type": "text",
|
| 1376 |
+
"text": "For all models, a full grid search considering all combinations of the following parameters was performed: ",
|
| 1377 |
+
"bbox": [
|
| 1378 |
+
173,
|
| 1379 |
+
691,
|
| 1380 |
+
823,
|
| 1381 |
+
720
|
| 1382 |
+
],
|
| 1383 |
+
"page_idx": 10
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "text",
|
| 1387 |
+
"text": "• hidden si $z \\in \\{ 6 4 , 9 6 , 1 2 8 \\}$ - size of per-node representations. \n• graph num layers $\\in \\{ 6 , 8 , 1 0 \\}$ - number of propagation steps / layers. graph layer input dropout keep prob $\\in \\ \\{ 0 . 8 , 0 . 9 , 1 . 0 \\}$ - dropout applied before propagation steps. \n$\\mathsf { c e l 1 } \\in \\mathsf { \\Omega } \\{ G R U , L S T M \\}$ - gated cell used for GGNN (only part of search space for GGNN). \n• num heads $\\in \\ \\{ 4 , 8 \\}$ - number of attention heads used for R-GAT (only part of search space for R-GAT). ",
|
| 1388 |
+
"bbox": [
|
| 1389 |
+
215,
|
| 1390 |
+
731,
|
| 1391 |
+
825,
|
| 1392 |
+
864
|
| 1393 |
+
],
|
| 1394 |
+
"page_idx": 10
|
| 1395 |
+
}
|
| 1396 |
+
]
|
parse/train/HJe4Cp4KwH/HJe4Cp4KwH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJe4Cp4KwH/HJe4Cp4KwH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HWX5j6Bv_ih/HWX5j6Bv_ih.md
ADDED
|
@@ -0,0 +1,394 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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EDERATED GRAPH NEURAL NETWORK FOR SPATIO-TEMPORAL DATA MODELING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Vast amount of data generated from networks of sensors, wearables, and the Internet of Things (IoT) devices underscores the need for advanced modeling techniques that leverage the spatio-temporal structure of decentralized data due to the need for edge computation and licensing (data access) issues. While federated learning (FL) has emerged as a framework for model training without requiring direct data sharing and exchange, effectively modeling the complex spatiotemporal dependencies to improve forecasting capabilities still remains an open problem. On the other hand, state-of-the-art spatio-temporal forecasting models assume unfettered access to the data, neglecting constraints on data sharing. To bridge this gap, we propose a federated spatio-temporal model – Cross-Node Federated Graph Neural Network (CNFGNN) – which explicitly encodes the underlying graph structure using graph neural network (GNN)-based architecture under the constraint of cross-node federated learning, which requires that data in a network of nodes is generated locally on each node and remains decentralized. CNFGNN operates by disentangling the temporal dynamics modeling on devices and spatial dynamics on the server, utilizing alternating optimization to reduce the communication cost, facilitating computations on the edge devices. Experiments on the traffic flow forecasting task show that CNFGNN achieves the best forecasting performance in both transductive and inductive learning settings with no extra computation cost on edge devices, while incurring modest communication cost.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Modeling the dynamics of spatio-temporal data generated from networks of edge devices or nodes (e.g. sensors, wearable devices and the Internet of Things (IoT) devices) is critical for various applications including traffic flow prediction (Li et al., 2018; Yu et al., 2018), forecasting (Seo et al., 2019; Azencot et al., 2020), and user activity detection (Yan et al., 2018; Liu et al., 2020). While existing works on spatio-temporal dynamics modeling (Battaglia et al., 2016; Kipf et al., 2018; Battaglia et al., 2018) assume that the model is trained with centralized data gathered from all devices, the volume of data generated at these edge devices precludes the use of such centralized data processing, and calls for decentralized processing where computations on the edge can lead to significant gains in improving the latency. In addition, in case of spatio-temporal forecasting, the edge devices need to leverage the complex inter-dependencies to improve the prediction performance. Moreover, with increasing concerns about data privacy and its access restrictions due to existing licensing agreements, it is critical for spatio-temporal modeling to utilize decentralized data, yet leveraging the underlying relationships for improved performance.
|
| 12 |
+
|
| 13 |
+
Although recent works in federated learning (FL) (Kairouz et al., 2019) provides a solution for training a model with decentralized data on multiple devices, these works either do not consider the inherent spatio-temporal dependencies (McMahan et al., 2017; Li et al., 2020b; Karimireddy et al., 2020) or only model it implicitly by imposing the graph structure in the regularization on model weights (Smith et al., 2017), the latter of which suffers from the limitation of regularization based methods due to the assumption that graphs only encode similarity of nodes (Kipf & Welling, 2017), and cannot operate in settings where only a fraction of devices are observed during training (inductive learning setting). As a result, there is a need for an architecture for spatio-temporal data modeling which enables reliable computation on the edge, while maintaining the data decentralized.
|
| 14 |
+
|
| 15 |
+
To this end, leveraging recent works on federated learning (Kairouz et al., 2019), we introduce the cross-node federated learning requirement to ensure that data generated locally at a node remains decentralized. Specifically, our architecture – Cross-Node Federated Graph Neural Network (CNFGNN), aims to effectively model the complex spatio-temporal dependencies under the cross-node federated learning constraint. For this, CNFGNN decomposes the modeling of temporal and spatial dependencies using an encoder-decoder model on each device to extract the temporal features with local data, and a Graph Neural Network (GNN) based model on the server to capture spatial dependencies among devices.
|
| 16 |
+
|
| 17 |
+
As compared to existing federated learning techniques that rely on regularization to incorporate spatial relationships, CNFGNN leverages an explicit graph structure using a graph neural networkbased (GNNs) architecture, which leads to performance gains. However, the federated learning (data sharing) constraint means that the GNN cannot be trained in a centralized manner, since each node can only access the data stored on itself. To address this, CNFGNN employs Split Learning (Singh et al., 2019) to train the spatial and temporal modules. Further, to alleviate the associated high communication cost incurred by Split Learning, we propose an alternating optimization-based training procedure of these modules, which incurs only half the communication overhead as compared to a comparable Split Learning architecture. Here, we also use Federated Averaging (FedAvg) (McMahan et al., 2017) to train a shared temporal feature extractor for all nodes, which leads to improved empirical performance.
|
| 18 |
+
|
| 19 |
+
Our main contributions are as follows :
|
| 20 |
+
|
| 21 |
+
1. We propose Cross-Node Federated Graph Neural Network (CNFGNN), a GNN-based federated learning architecture that captures complex spatio-temporal relationships among multiple nodes while ensuring that the data generated locally remains decentralized at no extra computation cost at the edge devices.
|
| 22 |
+
2. Our modeling and training procedure enables GNN-based architectures to be used in federated learning settings. We achieve this by disentangling the modeling of local temporal dynamics on edge devices and spatial dynamics on the central server, and leverage an alternating optimization-based procedure for updating the spatial and temporal modules using Split Learning and Federated Averaging to enable effective GNN-based federated learning.
|
| 23 |
+
3. We demonstrate that CNFGNN achieves the best prediction performance (both in transductive and inductive settings) at no extra computation cost on edge devices with modest communication cost, as compared to the related techniques on a traffic flow prediction task.
|
| 24 |
+
|
| 25 |
+
# 2 RELATED WORK
|
| 26 |
+
|
| 27 |
+
Our method derives elements from graph neural networks, federated learning and privacy-preserving graph learning, we now discuss related works in these areas in relation to our work.
|
| 28 |
+
|
| 29 |
+
Graph Neural Networks (GNNs). GNNs have shown their superior performance on various learning tasks with graph-structured data, including graph embedding (Hamilton et al., 2017), node classification (Kipf & Welling, 2017), spatio-temporal data modeling (Yan et al., 2018; Li et al., 2018; Yu et al., 2018) and multi-agent trajectory prediction (Battaglia et al., 2016; Kipf et al., 2018; Li et al., 2020a). Recent GNN models (Hamilton et al., 2017; Ying et al., 2018; You et al., 2019; Huang et al., 2018) also have sampling strategies and are able to scale on large graphs. While GNNs enjoy the benefit from strong inductive bias (Battaglia et al., 2018; Xu et al., 2019), most works require centralized data during the training and the inference processes.
|
| 30 |
+
|
| 31 |
+
Federated Learning (FL). Federated learning is a machine learning setting where multiple clients train a model in collaboration with decentralized training data (Kairouz et al., 2019). It requires that the raw data of each client is stored locally without any exchange or transfer. However, the decentralized training data comes at the cost of less utilization due to the heterogeneous distributions of data on clients and the lack of information exchange among clients. Various optimization algorithms have been developed for federated learning on non-IID and unbalanced data (McMahan et al., 2017; Li et al., 2020b; Karimireddy et al., 2020). Smith et al. (2017) propose a multi-task learning framework that captures relationships amongst data. While the above works mitigate the caveat of missing neighbors’ information to some extent, they are not as effective as GNN models and still suffer from the absence of feature exchange and aggregation.
|
| 32 |
+
|
| 33 |
+
Alternating Optimization. Alternating optimization is a popular choice in non-convex optimization (Agarwal et al., 2014; Arora et al., 2014; 2015; Jain & Kar, 2017). In the context of Federated Learning, Liang et al. (2020) uses alternating optimization for learning a simple global model and reduces the number of communicated parameters, and He et al. (2020) uses alternating optimization for knowledge distillation from server models to edge models. In our work, we utilize alternating optimization to effectively train on-device modules and the server module jointly, which captures temporal and spatial relationships respectively.
|
| 34 |
+
|
| 35 |
+
Privacy-Preserving Graph Learning. Suzumura et al. (2019) and Mei et al. (2019) use statistics of graph structures instead of node information exchange and aggregation to avoid the leakage of node information. Recent works have also incorporated graph learning models with privacypreserving techniques such as Differential Privacy (DP), Secure Multi-Party Computation (MPC) and Homomorphic Encryption (HE). Zhou et al. (2020) utilize MPC and HE when learning a GNN model for node classification with vertically split data to preserve silo-level privacy instead of nodelevel privacy. Sajadmanesh & Gatica-Perez (2020) preprocesses the input raw data with DP before feeding it into a GNN model. Composing privacy-preserving techniques for graph learning can help build federated learning systems following the privacy-in-depth principle, wherein the privacy properties degrade as gracefully as possible if one technique fails (Kairouz et al., 2019).
|
| 36 |
+
|
| 37 |
+
# 3 CROSS-NODE FEDERATED GRAPH NEURAL NETWORK
|
| 38 |
+
|
| 39 |
+
# 3.1 PROBLEM FORMULATION
|
| 40 |
+
|
| 41 |
+
Given a dataset with a graph $\mathcal { G } = ( \nu , \mathcal { E } )$ , a feature tensor $\pmb { \mathsf { X } } \in \mathbb { R } ^ { | \mathcal { V } | \times \hdots }$ and a label tensor ${ \pmb { \mathsf { Y } } } \in { }$ $\mathbb { R } ^ { | \nu | \times \dots }$ , we consider learning a model under the cross-node federated learning constraint: node feature $\pmb { x } _ { i } = \pmb { \mathrm { X } } _ { i , \dots }$ , node label $\begin{array} { r } { \mathbf { { y } } _ { i } = \mathbf { { Y } } _ { i , \dots } } \end{array}$ , and model output $\hat { y } _ { i }$ are only visible to the node $i$ .
|
| 42 |
+
|
| 43 |
+
One typical task that requires the cross-node federated learning constraint is the prediction of spatiotemporal data generated by a network of sensors. In such a scenario, $\nu$ is the set of sensors and $\mathcal { E }$ describes relations among sensors (e.g. $e _ { i j } \in \mathcal { E }$ if and only if the distance between $v _ { i }$ and $v _ { j }$ is below some threshold). The feature tensor $\pmb { x } _ { i } \in \mathbb { R } ^ { m \times D }$ represents the $i$ -th sensor’s records in the $D$ -dim space during the past $m$ time steps, and the label $\dot { \boldsymbol { y } } _ { i } \in \mathbb { R } ^ { n \times D }$ represents the $i$ -th sensor’s records in the future $n$ time steps. Since records collected on different sensors owned by different users/organizations may not be allowed to be shared due to the need for edge computation or licensing issues on data access, it is necessary to design an algorithm modeling the spatio-temporal relation without any direct exchange of node-level data.
|
| 44 |
+
|
| 45 |
+
# 3.2 PROPOSED METHOD
|
| 46 |
+
|
| 47 |
+
We now introduce our proposed Cross-Node Federated Graph Neural Network (CNFGNN) model. Here, we begin by disentangling the modeling of node-level temporal dynamics and server-level spatial dynamics as follows: (i) (Figure 1c) on each node, an encoder-decoder model extracts temporal features from data on the node and makes predictions; (ii) (Figure 1b) on the central server, a Graph Network (GN) (Battaglia et al., 2018) propagates extracted node temporal features and outputs node embeddings, which incorporate the relationship information amongst nodes. (i) has access to the not shareable node data and is executed on each node locally. (ii) only involves the upload and download of smashed features and gradients instead of the raw data on nodes. This decomposition enables the exchange and aggregation of node information under the cross-node federated learning constraint.
|
| 48 |
+
|
| 49 |
+
# 3.2.1 MODELING OF NODE-LEVEL TEMPORAL DYNAMICS
|
| 50 |
+
|
| 51 |
+
We modify the Gated Recurrent Unit (GRU) based encoder-decoder architecture in (Cho et al., 2014) for the modeling of node-level temporal dynamics on each node. Given an input sequence $\pmb { x } _ { i } \in \mathbb { R } ^ { m \times D }$ on the $i$ -th node, an encoder sequentially reads the whole sequence and outputs the
|
| 52 |
+
|
| 53 |
+

|
| 54 |
+
|
| 55 |
+
(a) Overview of the training procedure.
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
|
| 59 |
+
(b) Server-side Graph Network (GN).
|
| 60 |
+
|
| 61 |
+

|
| 62 |
+
(c) Encoder-decoder on the $_ { i }$ -th node.
|
| 63 |
+
Figure 1: Cross-Node Federated Graph Neural Network. (a) In each round of training, we alternately train models on nodes and the model on the server. More specifically, we sequentially execute: (1) Federated learning of on-node models. (2) Temporal encoding update. (3) Split Learning of GN. (4) On-node graph embedding update. (b) Detailed view of the server-side GN model for modeling spatial dependencies in data. (c) Detailed view of the encoder-decoder model on the $i$ -th node.
|
| 64 |
+
|
| 65 |
+
hidden state $h _ { c , i }$ as the summary of the input sequence according to Equation 1.
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\begin{array} { r } { \pmb { h } _ { c , i } = E n c o d e r _ { i } ( \pmb { x } _ { i } , \pmb { h } _ { c , i } ^ { ( 0 ) } ) , } \end{array}
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
where ${ h } _ { c , i } ^ { ( 0 ) }$ is a zero-valued initial hidden state vector.
|
| 72 |
+
|
| 73 |
+
To incorporate the spatial dynamics into the prediction model of each node, we concatenate $h _ { c , i }$ with the node embedding $h _ { G , c , i }$ generated from the procedure described in 3.2.2, which contains spatial information, as the initial state vector of the decoder. The decoder generates the prediction $\hat { y } _ { i }$ in an auto-regressive way starting from the last frame of the input sequence $x _ { i , m }$ with the concatenated hidden state vector.
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\hat { \pmb { y } } _ { i } = D e c o d e r _ { i } ( x _ { i , m } , [ \pmb { h } _ { c , i } ; \pmb { h } _ { G , c , i } ] ) .
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
We choose the mean squared error (MSE) between the prediction and the ground truth values as the loss function, which is evaluated on each node locally.
|
| 80 |
+
|
| 81 |
+
# 3.2.2 MODELING OF SPATIAL DYNAMICS
|
| 82 |
+
|
| 83 |
+
To capture the complex spatial dynamics, we adopt Graph Networks (GNs) proposed in (Battaglia et al., 2018) to generate node embeddings containing the relational information of all nodes. The central server collects the hidden state from all nodes $\{ h _ { c , i } \mid i \in \mathcal { V } \}$ as the input to the GN. Each layer of GN updates the input features as follows:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\begin{array} { r l r } & { { \mathbf e } _ { k } ^ { \prime } = \phi ^ { e } \left( { \mathbf e } _ { k } , { \mathbf v } _ { r _ { k } } , { \mathbf v } _ { s _ { k } } , { \mathbf u } \right) } & { \overline { { { \mathbf e } } } _ { i } ^ { \prime } = \rho ^ { e \to v } \left( E _ { i } ^ { \prime } \right) } \\ & { { \mathbf v } _ { i } ^ { \prime } = \phi ^ { v } \left( \overline { { { \mathbf e } } } _ { i } ^ { \prime } , { \mathbf v } _ { i } , { \mathbf u } \right) } & { \overline { { { \mathbf e } } } ^ { \prime } = \rho ^ { e \to u } \left( E ^ { \prime } \right) } \\ & { { \mathbf u } ^ { \prime } = \phi ^ { u } \left( \overline { { { \mathbf e } } } ^ { \prime } , \overline { { { \mathbf v } } } ^ { \prime } , { \mathbf u } \right) } & { \overline { { { \mathbf v } } } ^ { \prime } = \rho ^ { v \to u } \left( V ^ { \prime } \right) } \end{array} ,
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
# Algorithm 1 Training algorithm of CNFGNN on the server side.
|
| 90 |
+
|
| 91 |
+
# Server executes:
|
| 92 |
+
|
| 93 |
+
1: Initialize server-side GN weights θ GN , client model weigh ts θ¯(0)c {θ¯(0),encc , $\{ \bar { \bar { \theta } } _ { c } ^ { ( 0 ) , e n c } , \bar { \theta } _ { c } ^ { ( 0 ) , d e c } \} _ { . }$ .
|
| 94 |
+
2: for each node $i \in \mathcal V$ in parallel do
|
| 95 |
+
3: Initialize client model θ(0)c,i ${ \pmb \theta } _ { c , i } ^ { ( 0 ) } = \bar { \pmb \theta } _ { c } ^ { ( 0 ) }$ = θ¯(0)c .
|
| 96 |
+
4: raph encoding. on node $h _ { G , c , i } = h _ { G , c , i } ^ { ( 0 ) }$ end for
|
| 97 |
+
6: for global round $r _ { g } = 1 , 2 , \ldots , R _ { g }$ do
|
| 98 |
+
7: // (1) Federated learning of on-node models.
|
| 99 |
+
8: for each client $i \in \nu$ in parallel do
|
| 100 |
+
9: $\theta _ { c , i } \gets$ ClientUpdate $( i )$ .
|
| 101 |
+
11: 10: end for $\begin{array} { r } { \bar { \pmb { \theta } } _ { c } \sum _ { i \in \mathcal { V } } \frac { N _ { i } } { N } \pmb { \theta } _ { c , i } } \end{array}$ .
|
| 102 |
+
12: for each client $i \in \nu$ in parallel do
|
| 103 |
+
13: Initialize client model: $\theta _ { c , i } ^ { ( 0 ) } = \bar { \theta } _ { c }$
|
| 104 |
+
14: end for
|
| 105 |
+
15: // (2) Temporal encoding update.
|
| 106 |
+
16: for each client $i \in \nu$ in parallel do
|
| 107 |
+
17: $h _ { c , i } \gets$ ClientEncode $( i )$ .
|
| 108 |
+
18: end for
|
| 109 |
+
19: // (3) Split Learning of GN.
|
| 110 |
+
20: Initialize $\pmb { \theta } _ { G N } ^ { ( r _ { g } , 0 ) } = \pmb { \theta } _ { G N } ^ { ( r _ { g } - 1 ) }$
|
| 111 |
+
21: for server round $r _ { s } = 1 , 2 , \ldots , R _ { s }$ do
|
| 112 |
+
22: $\{ h _ { G , c , i } | i ~ \in ~ \mathcal { V } \} ~ ~ G N ( \{ h _ { c , i } | i ~ \in ~$
|
| 113 |
+
23 $\mathcal { V } \rbrace ; \pmb { \theta } _ { G N } ^ { ( r _ { g } , r _ { s } - 1 ) } )$ . in prale o $i \in \nu$
|
| 114 |
+
24: $\nabla _ { h _ { G , c , i } } \ell _ { i } \gets$ ClientBackward( $_ { i , h _ { G , c , i } ) }$ .backward(
|
| 115 |
+
25: $\nabla _ { \pmb { \theta } ^ { ( r _ { g } , r _ { s } - 1 ) } } \ell _ { i } \gets \pmb { h } _ { G , c , i }$ $\overset { \scriptscriptstyle \mathrm { G } } { \nabla } _ { h _ { G , c , i } } \ell _ { i } )$ .
|
| 116 |
+
26: end for
|
| 117 |
+
27: $\begin{array} { r l } & { \nabla _ { \pmb { \theta } _ { G N } ^ { ( r _ { g } , r _ { s } - 1 ) } } \ell \sum _ { i \in \mathcal { V } } \nabla _ { \pmb { \theta } _ { G N } ^ { ( r _ { g } , r _ { s } - 1 ) } } \ell _ { i } . } \\ & { \pmb { \theta } _ { G N } ^ { ( r _ { g } , r _ { s } ) } \pmb { \theta } _ { G N } ^ { ( r _ { g } , r _ { s } - 1 ) } } \\ & { \qquad - \eta _ { s } \nabla _ { \pmb { \theta } _ { G N } ^ { ( r _ { g } , r _ { s } - 1 ) } } \ell . } \end{array}$
|
| 118 |
+
28:
|
| 119 |
+
29: end for
|
| 120 |
+
30: ${ \pmb \theta } _ { G N } ^ { ( r _ { g } ) } { \pmb \theta } _ { G N } ^ { ( r _ { g } , R _ { s } ) }$
|
| 121 |
+
31: // (4) On-node graph embedding update.
|
| 122 |
+
32: $\begin{array} { r l } & { \{ h _ { G , c , i } | i \in \mathcal { V } \} } \\ & { \quad G N ( \{ h _ { c , i } | i \in \mathcal { V } \} ; \theta _ { G N } ^ { ( r _ { g } ) } ) . } \end{array}$
|
| 123 |
+
33: for each client $i \in \mathcal V$ in parallel do
|
| 124 |
+
34: Set graph encoding on client as hG,c,i.
|
| 125 |
+
35: end for
|
| 126 |
+
36: end for
|
| 127 |
+
|
| 128 |
+
# Algorithm 2 Training algorithm of CNFGNN on the client side.
|
| 129 |
+
|
| 130 |
+
# ClientUpdate(i):
|
| 131 |
+
|
| 132 |
+
1: for client round $r _ { c } = 1 , 2 , \ldots , R _ { c } \ : _ { }$ do
|
| 133 |
+
2: $\pmb { h } _ { c , i } ^ { ( r _ { c } ) } \gets E n c o d e r _ { i } ( \pmb { x } _ { i } ; \pmb { \theta } _ { c , i } ^ { ( r _ { c } - 1 ) , e n c } )$
|
| 134 |
+
3: $\hat { \pmb { y } } _ { i } D e c o d e r _ { i }$ (
|
| 135 |
+
$x _ { i , m } , [ { h _ { c , i } ^ { ( r _ { c } ) } } ; { h _ { G , c , i } } ] ; \theta _ { c , i } ^ { ( r _ { c } - 1 ) , d e c } ) .$
|
| 136 |
+
4: 5: θ(rc)c,i ← θ(rc−1)c,i − ηc∇θ(rc−1)c,i \`i. $\ell _ { i } \gets \ell ( \hat { \pmb y } _ { i } , \pmb y )$ .
|
| 137 |
+
|
| 138 |
+
6: end for
|
| 139 |
+
|
| 140 |
+
7: θc,i = θ(Rc).
|
| 141 |
+
8: return $\theta _ { c , i }$ to server.
|
| 142 |
+
ClientEncode $\mathbf { \rho } ( i )$ :
|
| 143 |
+
1: return $\begin{array} { r c l } { { { h } } _ { { c } , i } } & { = } & { { E n c o d e r } _ { i } ( { \bf { x } } _ { i } ; { \bf { \bf { \theta } } } _ { c , i } ^ { e n c } ) } \end{array}$ to server.
|
| 144 |
+
ClientBackward $( i , h _ { G , c , i } )$ :
|
| 145 |
+
1: $\hat { \pmb { y } } _ { i } D e c o d e r _ { i } ( x _ { i , m } , [ h _ { c , i } ; h _ { G , c , i } ] ; \pmb { \theta } _ { c , i } ^ { d e c } )$ . 2: $\ell _ { i } \gets \ell ( \hat { \pmb y } _ { i } , \pmb y )$ .
|
| 146 |
+
3: return $\nabla _ { \boldsymbol { h } _ { G , c , i } } \ell _ { i }$ to server.
|
| 147 |
+
|
| 148 |
+
where $\mathbf { e } _ { k } , \mathbf { v } _ { i } , \mathbf { u }$ are edge features, node features and global features respectively. $\phi ^ { e } , \phi ^ { v } , \phi ^ { u }$ are neural networks. $\rho ^ { e v } , \rho ^ { e u } , \rho ^ { v u }$ are aggregation functions such as summation. As shown in Figure 1b, we choose a 2-layer GN with residual connections for all experiments. We set $\mathbf { v } _ { i } = h _ { c , i }$ , $\mathbf { e } _ { k } = W _ { r _ { k } , s _ { k } }$ $\cdot$ is the adjacency matrix) , and assign the empty vector to u as the input of the first GN layer. The server-side GN outputs embeddings $\{ h _ { G , c , i } \mid i \in \mathcal { V } \}$ for all nodes, and sends the embedding of each node correspondingly.
|
| 149 |
+
|
| 150 |
+
# 3.2.3 ALTERNATING TRAINING OF NODE-LEVEL AND SPATIAL MODELS
|
| 151 |
+
|
| 152 |
+
One challenge brought about by the cross-node federated learning requirement and the server-side GN model is the high communication cost in the training stage. Since we distribute different parts of the model on different devices, Split Learning proposed by (Singh et al., 2019) is a potential solution for training, where hidden vectors and gradients are communicated among devices. However, when we simply train the model end-to-end via Split Learning, the central server needs to receive hidden states from all nodes and to send node embeddings to all nodes in the forward propagation, then it must receive gradients of node embeddings from all nodes and send back gradients of hidden states to all nodes in the backward propagation. Assume all hidden states and node embeddings have the same size $S$ , the total amount of data transmitted in each training round of the GN model is $4 | \nu | S$ .
|
| 153 |
+
|
| 154 |
+
Table 1: Statistics of datasets PEMS-BAY and METR-LA.
|
| 155 |
+
|
| 156 |
+
<table><tr><td>Dataset</td><td>#Nodes</td><td># Directed Edges</td><td># Train Seq</td><td># Val Seq</td><td># Test Seq</td></tr><tr><td>PEMS-BAY</td><td>325</td><td>2369</td><td>36465</td><td>5209</td><td>10419</td></tr><tr><td>METR-LA</td><td>207</td><td>1515</td><td>23974</td><td>3425</td><td>6850</td></tr></table>
|
| 157 |
+
|
| 158 |
+
To alleviate the high communication cost in the training stage, we instead alternately train models on nodes and the GN model on the server. More specifically, in each round of training, we (1) fix the node embedding $h _ { G , c , i }$ and optimize the encoder-decoder model for $R _ { c }$ rounds, then (2) we optimize the GN model while fixing all models on nodes. Since models on nodes are fixed, $h _ { c , i }$ stays constant during the training of the GN model, and the server only needs to fetch $h _ { c , i }$ from nodes before the training of GN starts and only to communicate node embeddings and gradients. Therefore, the average amount of data transmitted in each round for $R s$ rounds of training of the GN model reduces to $\frac { 2 + \overline { { 2 } } R _ { s } } { R _ { s } } | \mathcal { V } | S$ . We provide more details of the training procedure in Algorithm 1 and Algorithm 2.
|
| 159 |
+
|
| 160 |
+
To more effectively extract temporal features from each node, we also train the encoder-decoder models on nodes with the FedAvg algorithm proposed in (McMahan et al., 2017). This enables all nodes to share the same feature extractor and thus share a joint hidden space of temporal features, which avoids the potential overfitting of models on nodes and demonstrates faster convergence and better prediction performance empirically.
|
| 161 |
+
|
| 162 |
+
# 4 EXPERIMENTS
|
| 163 |
+
|
| 164 |
+
We evaluate the performance of CNFGNN and all baseline methods on the traffic forecasting task, which is an important application for spatio-temporal data modeling. We reuse the following two real-world large-scale datasets in (Li et al., 2018) and follow the same preprocessing procedures: (1) PEMS-BAY: This dataset contains the traffic speed readings from 325 sensors in the Bay Area over 6 months from Jan 1st, 2017 to May 31st, 2017. (2) METR-LA: This dataset contains the traffic speed readings from 207 loop detectors installed on the highway of Los Angeles County over 4 months from Mar 1st, 2012 to Jun 30th, 2012.
|
| 165 |
+
|
| 166 |
+
For both datasets, we construct the adjacency matrix of sensors using the Gaussian kernel with a threshold: $W _ { i , j } = d _ { i , j }$ if $d _ { i , j } > = \kappa$ else 0, where $\begin{array} { r } { d _ { i , j } = \exp { ( - \frac { \mathrm { d i s t } ( v _ { i } , v _ { j } ) ^ { 2 } } { \sigma ^ { 2 } . } ) } , } \end{array}$ $\mathrm { d i s t } ( v _ { i } , v _ { j } )$ is the road network distance from sensor $v _ { i }$ to sensor $v _ { j }$ , $\sigma$ is the standard deviation of distances and $\kappa$ is the threshold. We set $\kappa = 0 . 1$ for both datasets.
|
| 167 |
+
|
| 168 |
+
We aggregate traffic speed readings in both datasets into 5-minute windows and truncate the whole sequence to multiple sequences with length 24. The forecasting task is to predict the traffic speed in the following 12 steps of each sequence given the first 12 steps. We show the statistics of both datasets in Table 1.
|
| 169 |
+
|
| 170 |
+
# 4.1 SPATIO-TEMPORAL DATA MODELING: TRAFFIC FLOW FORECASTING
|
| 171 |
+
|
| 172 |
+
Baselines We compare CNFGNN with the following baselines. (1) GRU (centralized): a Gated Recurrent Unit (GRU) model trained with centralized sensor data. (2) $\_$ (centralized): a model directly combining GRU and GN trained with centralized data, whose architecture is similar to CNFGNN but all GRU modules on nodes always share the same weights. We see its performance as the upper bound of the performance of CNFGNN. (3) GRU (local): for each node we train a GRU model with only the local data on it. (4) GRU $^ +$ FedAvg: a GRU model trained with the Federated Averaging algorithm (McMahan et al., 2017). (5) $\mathbf { G R U + F M T L }$ : for each node we train a GRU model using the federated multi-task learning (FMTL) with cluster regularization (Smith et al., 2017) given by the adjacency matrix. For each baseline, we have 2 variants of the GRU model to show the effect of on-device model complexity: one with 63K parameters and the other with 727K parameters. For CNFGNN, the encoder-decoder model on each node has 64K parameters and the GN model has 1M parameters.
|
| 173 |
+
|
| 174 |
+
Table 3: Comparison of the computation cost on edge devices and the communication cost. We use the amount of floating point operations (FLOPS) to measure the computational cost of models on edge devices. We also show the total size of data/parameters transmitted in the training stage (Train Comm Cost) until the model reaches its lowest validation error.
|
| 175 |
+
|
| 176 |
+
<table><tr><td rowspan="2">Method</td><td rowspan="2">Comp Cost On Device (GFLOPS)</td><td colspan="2">PEMS-BAY</td><td colspan="2">METR-LA</td></tr><tr><td>RMSE</td><td>Train Comm Cost (GB)</td><td>RMSE</td><td>Train Comm Cost (GB)</td></tr><tr><td>GRU (63K)+FMTL</td><td>0.159</td><td>3.961</td><td>57.823</td><td>11.548</td><td>99.201</td></tr><tr><td>GRU (727K) + FMTL</td><td>1.821</td><td>3.955</td><td>359.292</td><td>11.570</td><td>722.137</td></tr><tr><td>CNFGNN (64K + 1M)</td><td>0.162</td><td>3.822</td><td>237.654</td><td>11.487</td><td>222.246</td></tr></table>
|
| 177 |
+
|
| 178 |
+
Discussion Table 2 shows the comparison of forecasting performance and Table 3 shows the comparison of computation cost on device and communication cost of CNFGNN and baselines. We make the following observations. Firstly, when we compare the best forecasting performance of each baseline over the 2 GRU variants, GRU trained with FedAvg performs the worst in terms of forecasting performance compared to GRU trained with centralized data and GRU trained with local data (4.432 vs 4.010/4.124 on PEMS-BAY and 12.058 vs 11.730/11.801 on METRLA), showing that the data distributions on different nodes are highly heterogeneous, and training one single model ignoring the heterogeneity is suboptimal.
|
| 179 |
+
|
| 180 |
+
Table 2: Comparison of performance on the traffic flow forecasting task. We use the Rooted Mean Squared Error (RMSE) to evaluate the forecasting performance.
|
| 181 |
+
|
| 182 |
+
<table><tr><td>Method</td><td>PEMS-BAY</td><td>METR-LA</td></tr><tr><td>GRU (centralized, 63K)</td><td>4.124</td><td>11.730</td></tr><tr><td>GRU (centralized, 727K) GRU + GN</td><td>4.128</td><td>11.787</td></tr><tr><td>(centralized, 64K + 1M)</td><td>3.816</td><td>11.471</td></tr><tr><td>GRU (local, 63K)</td><td>4.010</td><td>11.801</td></tr><tr><td>GRU (local, 727K)</td><td>4.152</td><td>12.224</td></tr><tr><td>GRU (63K) + FedAvg</td><td>4.512</td><td>12.132</td></tr><tr><td>GRU (727K) + FedAvg</td><td>4.432</td><td>12.058</td></tr><tr><td>GRU (63K)+FMTL</td><td>3.961</td><td>11.548</td></tr><tr><td>GRU (727K) + FMTL</td><td>3.955</td><td>11.570</td></tr><tr><td>CNFGNN (64K + 1M)</td><td>3.822</td><td>11.487</td></tr></table>
|
| 183 |
+
|
| 184 |
+
Secondly, both the $\mathrm { G R U + F M T L }$ baseline and CNFGNN consider the spatial relations among nodes and show better forecasting performance than baselines without relation information. This shows that the modeling of spatial dependencies is critical for the forecasting task.
|
| 185 |
+
|
| 186 |
+
Lastly, CNFGNN achieves the lowest forecasting error on both datasets. The baselines that increases the complexity of on-device models (GRU $( 7 2 7 \mathrm { K } ) + \mathrm { F M T L }$ ) gains slight or even no improvement at the cost of higher computation cost on edge devices and larger communication cost. However, due to its effective modeling of spatial dependencies in data, CNFGNN not only has the largest improvement of forecasting performance, but also keeps the computation cost on devices almost unchanged and maintains modest communication cost compared to baselines increasing the model complexity on devices.
|
| 187 |
+
|
| 188 |
+
# 4.2 INDUCTIVE LEARNING ON UNSEEN NODES
|
| 189 |
+
|
| 190 |
+
Set-up Another advantage of CNFGNN is that it can conduct inductive learning and generalize to larger graphs with nodes unobserved during the training stage. We evaluate the performance of CNFGNN under the following inductive learning setting: for each dataset, we first sort all sensors based on longitudes, then use the subgraph on the first $\eta \%$ of sensors to train the model and evaluate the trained model on the entire graph. For each dataset we select $\eta \% = 2 5 \%$ , $5 0 \%$ , $7 5 \%$ . Over all baselines following the cross-node federated learning constraint, GRU (local) and $\mathrm { G R U + F M T L }$ requires training new models on unseen nodes and only GRU $^ +$ FedAvg is applicable to the inductive learning setting.
|
| 191 |
+
|
| 192 |
+
Table 4: Inductive learning performance measured with rooted mean squared error (RMSE).
|
| 193 |
+
|
| 194 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">PEMS-BAY</td><td colspan="3">METR-LA</td></tr><tr><td>25%</td><td>50%</td><td>75%</td><td>25%</td><td>50%</td><td>75%</td></tr><tr><td>GRU (63K) + FedAvg</td><td>4.863</td><td>4.847</td><td>4.859</td><td>11.993</td><td>12.104</td><td>12.014</td></tr><tr><td>CNFGNN (64K + 1M)</td><td>4.541</td><td>4.598</td><td>4.197</td><td>12.013</td><td>11.815</td><td>11.676</td></tr></table>
|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
Figure 2: Validation loss during the training stage of different training strategies.
|
| 198 |
+
|
| 199 |
+
Discussion Table 4 shows the performance of inductive learning of CNFGNN and GRU $^ +$ FedAvg baseline on both datasets. We observe that under most settings, CNFGNN outperforms the $\mathrm { G R U + }$ FedAvg baseline (except on the METR-LA dataset with $2 5 \%$ nodes observed in training, where both models perform similarly), showing that CNFGNN has the stronger ability of generalization.
|
| 200 |
+
|
| 201 |
+
4.3 ABLATION STUDY: EFFECT OF ALTERNATING TRAINING AND FEDAVG ON NODE-LEVEL AND SPATIAL MODELS
|
| 202 |
+
|
| 203 |
+
Baselines We compare the effect of different training strategies of CNFGNN: (1) Centralized: CNFGNN trained with centralized data where all nodes share one single encoder-decoder. (2)
|
| 204 |
+
|
| 205 |
+
Table 5: Comparison of test error (RMSE) and the communication cost during training of different training strategies of CNFGNN.
|
| 206 |
+
|
| 207 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">PEMS-BAY</td><td colspan="2">METR-LA</td></tr><tr><td>RMSE</td><td>Train Comm Cost (GB)</td><td>RMSE</td><td>Train Comm Cost (GB)</td></tr><tr><td>Centralized</td><td>3.816</td><td></td><td>11.471</td><td></td></tr><tr><td>SL</td><td>3.914</td><td>350.366</td><td>12.186</td><td>307.627</td></tr><tr><td>SL + FedAvg</td><td>4.383</td><td>80.200</td><td>11.631</td><td>343.031</td></tr><tr><td>AT, w/o FedAvg</td><td>4.003</td><td>5221.576</td><td>11.912</td><td>2434.985</td></tr><tr><td>AT +FedAvg</td><td>3.822</td><td>237.654</td><td>11.487</td><td>222.246</td></tr></table>
|
| 208 |
+
|
| 209 |
+
Split Learning (SL): CNFGNN trained with split learning (Singh et al., 2019), where models on nodes and the model on the server are jointly trained by exchanging hidden vectors and gradients. (3) Split
|
| 210 |
+
|
| 211 |
+
Learning $^ +$ FedAvg $\mathrm { \bf S L + }$ FedAvg): A variant of SL that synchronizes the weights of encoderdecoder modules periodically with FedAvg. (4) Alternating training without Federated Averaging of models on nodes (AT, w/o FedAvg). (5) Alternating training with Federated Averaging on nodes described in Section 3.2.3 $\mathbf { \Delta A T } + \mathbf { F e d A v g }$ ).
|
| 212 |
+
|
| 213 |
+
Discussion Figure 2 shows the validation loss during training of different training strategies on PEMS-BAY and METR-LA datasets, and Table 5 shows their prediction performance and the communication cost in training. We notice that (1) SL suffers from suboptimal prediction performance and high communication costs on both datasets; SL $^ +$ FedAvg does not have consistent results on both datasets and its performance is always inferior to AT $\cdot$ FedAvg. AT $\cdot$ FedAvg consistently outperforms other baselines on both datasets, including its variant without FedAvg. (2) AT $^ +$ FedAvg has the lowest communication cost on METR-LA and the 2nd lowest communication cost on PEMS-BAY, on which the baseline with the lowest communication cost ( $\mathrm { S L } +$ FedAvg) has a much higher prediction error (4.383 vs 3.822). Both illustrate that our proposed training strategy, $\mathrm { S L } +$ FedAvg, achieves the best prediction performance as well as low communication cost compared to other baseline strategies.
|
| 214 |
+
|
| 215 |
+
# 4.4 ABLATION STUDY: EFFECT OF CLIENT ROUNDS AND SERVER ROUNDS
|
| 216 |
+
|
| 217 |
+
Set-up We further investigate the effect of different compositions of the number of client rounds $( R _ { s } )$ in Algorithm 2 and the number of server rounds $( R _ { c } )$ in Algorithm 1. To this end, we vary both $R _ { c }$ and $R _ { s }$ over [1,10,20].
|
| 218 |
+
|
| 219 |
+
Discussion Figure 3 shows the forecasting performance (measured with RMSE) and the total communication cost in the training of CNFGNN under all compositions of $( R _ { c }$ , $R _ { s }$ ) on the METR-LA dataset. We observe that: (1) Models with lower ${ \cal R } _ { c } / { \cal R } _ { s }$ ratios $( R _ { c } / R _ { s } ~ < ~ 0 . 5 )$ tend to have lower forecasting errors while models with higher ${ \cal R } _ { c } / { \cal R } _ { s }$ ratios $( R _ { c } / R _ { s } > 2 )$ have lower communication cost in training. This is because the lower ratio of ${ \cal R } _ { c } / { \cal R } _ { s }$ encourages more frequent exchange of node information at the expense of higher communication cost, while the higher ratio of ${ \cal R } _ { c } / { \cal R } _ { s }$ acts in the opposite way. (2) Models with similar ${ \cal R } _ { c } / { \cal R } _ { s }$ ratios have similar communication costs, while those with lower
|
| 220 |
+
|
| 221 |
+

|
| 222 |
+
Figure 3: Effect of client rounds and server rounds $( R _ { c } , R _ { s } )$ on forecasting performance and communication cost.
|
| 223 |
+
|
| 224 |
+
$R _ { c }$ values perform better, corroborating our observation in (1) that frequent node information exchange improves the forecasting performance.
|
| 225 |
+
|
| 226 |
+
# 5 CONCLUSION
|
| 227 |
+
|
| 228 |
+
We propose Cross-Node Federated Graph Neural Network (CNFGNN), which bridges the gap between modeling complex spatio-temporal data and decentralized data processing by enabling the use of graph neural networks (GNNs) in the federated learning setting. We accomplish this by decoupling the learning of local temporal models and the server-side spatial model using alternating optimization of spatial and temporal modules based on split learning and federated averaging. Our experimental results on traffic flow prediction on two real-world datasets show superior performance as compared to competing techniques. Our future work includes applying existing GNN models with sampling strategies and integrating them into CNFGNN for large-scale graphs, extending CNFGNN to a fully decentralized framework, and incorporating existing privacy-preserving methods for graph learning to CNFGNN, to enhance federated learning of spatio-temporal dynamics.
|
| 229 |
+
|
| 230 |
+
# REFERENCES
|
| 231 |
+
|
| 232 |
+
Alekh Agarwal, Animashree Anandkumar, Prateek Jain, Praneeth Netrapalli, and Rashish Tandon. Learning sparsely used overcomplete dictionaries. In Conference on Learning Theory, pp. 123– 137, 2014.
|
| 233 |
+
|
| 234 |
+
Sanjeev Arora, Rong Ge, and Ankur Moitra. New algorithms for learning incoherent and overcomplete dictionaries. In Conference on Learning Theory, pp. 779–806, 2014.
|
| 235 |
+
|
| 236 |
+
Sanjeev Arora, Rong Ge, Tengyu Ma, and Ankur Moitra. Simple, efficient, and neural algorithms for sparse coding. 2015.
|
| 237 |
+
|
| 238 |
+
Omri Azencot, N Benjamin Erichson, Vanessa Lin, and Michael W Mahoney. Forecasting sequential data using consistent koopman autoencoders. In ICML, 2020.
|
| 239 |
+
|
| 240 |
+
Peter Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, et al. Interaction networks for learning about objects, relations and physics. In Advances in neural information processing systems, pp. 4502–4510, 2016.
|
| 241 |
+
|
| 242 |
+
Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018.
|
| 243 |
+
|
| 244 |
+
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. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1724–1734, 2014.
|
| 245 |
+
|
| 246 |
+
Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in neural information processing systems, pp. 1024–1034, 2017.
|
| 247 |
+
|
| 248 |
+
Chaoyang He, Salman Avestimehr, and Murali Annavaram. Group knowledge transfer: Collaborative training of large cnns on the edge. arXiv preprint arXiv:2007.14513, 2020.
|
| 249 |
+
|
| 250 |
+
Wenbing Huang, Tong Zhang, Yu Rong, and Junzhou Huang. Adaptive sampling towards fast graph representation learning. In Advances in neural information processing systems, pp. 4558–4567, 2018.
|
| 251 |
+
|
| 252 |
+
Prateek Jain and Purushottam Kar. Non-convex optimization for machine learning. Foundations and Trends $\textsuperscript { \textregistered }$ in Machine Learning, 10(3-4):142–363, 2017. ISSN 1935-8237. doi: 10.1561/ 2200000058. URL http://dx.doi.org/10.1561/2200000058.
|
| 253 |
+
|
| 254 |
+
Peter Kairouz, H Brendan McMahan, Brendan Avent, Aurelien Bellet, Mehdi Bennis, Arjun Nitin ´ Bhagoji, Keith Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, et al. Advances and open problems in federated learning. arXiv preprint arXiv:1912.04977, 2019.
|
| 255 |
+
|
| 256 |
+
Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J Reddi, Sebastian U Stich, and Ananda Theertha Suresh. Scaffold: Stochastic controlled averaging for federated learning. In Proceedings of the 37th International Conference on Machine Learning, 2020.
|
| 257 |
+
|
| 258 |
+
Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR), 2017.
|
| 259 |
+
|
| 260 |
+
Thomas N Kipf, Ethan Fetaya, Kuan-Chieh Wang, Max Welling, and Richard S Zemel. Neural relational inference for interacting systems. In ICML, 2018.
|
| 261 |
+
|
| 262 |
+
Max Guangyu Li, Bo Jiang, Hao Zhu, Zhengping Che, and Yan Liu. Generative attention networks for multi-agent behavioral modeling. In AAAI, 2020a.
|
| 263 |
+
|
| 264 |
+
Tian Li, Anit Kumar Sahu, Manzil Zaheer, Maziar Sanjabi, Ameet Talwalkar, and Virginia Smith. Federated optimization in heterogeneous networks. In Proceedings of the 3rd MLSys Conference, 2020b.
|
| 265 |
+
|
| 266 |
+
Yaguang Li, Rose Yu, Cyrus Shahabi, and Yan Liu. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. In International Conference on Learning Representations (ICLR ’18), 2018.
|
| 267 |
+
|
| 268 |
+
Paul Pu Liang, Terrance Liu, Liu Ziyin, Ruslan Salakhutdinov, and Louis-Philippe Morency. Think locally, act globally: Federated learning with local and global representations. arXiv preprint arXiv:2001.01523, 2020.
|
| 269 |
+
|
| 270 |
+
Ziyu Liu, Hongwen Zhang, Zhenghao Chen, Zhiyong Wang, and Wanli Ouyang. Disentangling and unifying graph convolutions for skeleton-based action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 143–152, 2020.
|
| 271 |
+
|
| 272 |
+
Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Artificial Intelligence and Statistics, pp. 1273–1282. PMLR, 2017.
|
| 273 |
+
|
| 274 |
+
Guangxu Mei, Ziyu Guo, Shijun Liu, and Li Pan. Sgnn: A graph neural network based federated learning approach by hiding structure. In 2019 IEEE International Conference on Big Data (Big Data), pp. 2560–2568. IEEE, 2019.
|
| 275 |
+
|
| 276 |
+
Sina Sajadmanesh and Daniel Gatica-Perez. When differential privacy meets graph neural networks. arXiv preprint arXiv:2006.05535, 2020.
|
| 277 |
+
|
| 278 |
+
Sungyong Seo, Chuizheng Meng, and Yan Liu. Physics-aware difference graph networks for sparsely-observed dynamics. In International Conference on Learning Representations, 2019.
|
| 279 |
+
|
| 280 |
+
Abhishek Singh, Praneeth Vepakomma, Otkrist Gupta, and Ramesh Raskar. Detailed comparison of communication efficiency of split learning and federated learning. arXiv preprint arXiv:1909.09145, 2019.
|
| 281 |
+
|
| 282 |
+
Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet S Talwalkar. Federated multi-task learning. In Advances in Neural Information Processing Systems, pp. 4424–4434, 2017.
|
| 283 |
+
|
| 284 |
+
Toyotaro Suzumura, Yi Zhou, Natahalie Barcardo, Guangnan Ye, Keith Houck, Ryo Kawahara, Ali Anwar, Lucia Larise Stavarache, Daniel Klyashtorny, Heiko Ludwig, et al. Towards federated graph learning for collaborative financial crimes detection. arXiv preprint arXiv:1909.12946, 2019.
|
| 285 |
+
|
| 286 |
+
Keyulu Xu, Jingling Li, Mozhi Zhang, Simon S Du, Ken-ichi Kawarabayashi, and Stefanie Jegelka. What can neural networks reason about? In International Conference on Learning Representations (ICLR), 2019.
|
| 287 |
+
|
| 288 |
+
Sijie Yan, Yuanjun Xiong, and Dahua Lin. Spatial temporal graph convolutional networks for skeleton-based action recognition. In AAAI, 2018.
|
| 289 |
+
|
| 290 |
+
Rex Ying, Ruining He, Kaifeng Chen, Pong Eksombatchai, William L Hamilton, and Jure Leskovec. Graph convolutional neural networks for web-scale recommender systems. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 974– 983, 2018.
|
| 291 |
+
|
| 292 |
+
Jiaxuan You, Rex Ying, and Jure Leskovec. Position-aware graph neural networks. In Proceedings of the 36th International Conference on Machine Learning, 2019.
|
| 293 |
+
|
| 294 |
+
Bing Yu, Haoteng Yin, and Zhanxing Zhu. Spatio-temporal graph convolutional networks: A deep learning framework for traffic forecasting. In Proceedings of the 27th International Joint Conference on Artificial Intelligence (IJCAI), 2018.
|
| 295 |
+
|
| 296 |
+
Jun Zhou, Chaochao Chen, Longfei Zheng, Xiaolin Zheng, Bingzhe Wu, Ziqi Liu, and Li Wang. Privacy-preserving graph neural network for node classification. arXiv preprint arXiv:2005.11903, 2020.
|
| 297 |
+
|
| 298 |
+
# A APPENDIX
|
| 299 |
+
|
| 300 |
+
A.1 DETAILED EXPERIMENT SETTINGS
|
| 301 |
+
|
| 302 |
+
Unless noted otherwise, all models are optimized using the Adam optimizer with the learning rate 1e-3.
|
| 303 |
+
|
| 304 |
+
GRU (centralized) : Gated Recurrent Unit (GRU) model trained with centralized sensor data. The GRU model with 63K parameters is a 1-layer GRU with hidden dimension 100, and the GRU model with 727K parameters is a 2-layer GRU with hidden dimension 200.
|
| 305 |
+
|
| 306 |
+
GRU (local) We train one GRU model for each node with the local data only.
|
| 307 |
+
|
| 308 |
+
GRU $^ +$ FedAvg We train a single GRU model with Federated Averaging (McMahan et al., 2017).
|
| 309 |
+
We select 1 as the number of local epochs.
|
| 310 |
+
|
| 311 |
+
$\mathbf { G R U } + \mathbf { F M T L }$ We train one GRU model for each node using the federated multi-task learning (FMTL) with cluster regularization (Smith et al., 2017) given by the adjacency matrix. More specifically, the cluster regularization (without the L2-norm regularization term) takes the following form:
|
| 312 |
+
|
| 313 |
+
$$
|
| 314 |
+
\mathcal { R } ( W , \mathfrak { L } ) = \lambda \mathrm { t r } ( W \Omega W ^ { T } ) .
|
| 315 |
+
$$
|
| 316 |
+
|
| 317 |
+
Given the constructed adjacency matrix $\pmb { A }$ , $\begin{array} { r } { \pmb { \Omega } = \frac { 1 } { | \mathcal { V } | } ( \pmb { D } - \pmb { A } ) = \frac { 1 } { | \mathcal { V } | } \pmb { L } } \end{array}$ , where $_ { D }$ is the degree matrix and $\pmb { L }$ is the Laplacian matrix. Equation A1 can be reformulated as:
|
| 318 |
+
|
| 319 |
+
$$
|
| 320 |
+
\begin{array} { r l } { { \mathcal { R } ( W , \pmb { \Omega } ) = \lambda \mathrm { t r } ( W \pmb { \Omega } W ^ { T } ) = \frac { \lambda } { | \mathcal { V } | } \mathrm { t r } ( W \pmb { L } W ^ { T } ) } } \\ & { = \frac { \lambda } { | \mathcal { V } | } \mathrm { t r } ( \displaystyle \sum _ { i \in \mathcal { V } } \pmb { w } _ { i } \displaystyle \sum _ { j \not = i } a _ { i j } \pmb { w } _ { i } ^ { T } - \displaystyle \sum _ { j \not = i } \pmb { w } _ { i } a _ { i j } \pmb { w } _ { j } ^ { T } ) } \\ & { = \lambda _ { 1 } ( \displaystyle \sum _ { i \in \mathcal { V } } \displaystyle \sum _ { j \not = i } \alpha _ { i , j } \langle \pmb { w } _ { i } , \pmb { w } _ { i } - \pmb { w } _ { j } \rangle ) . } \end{array}
|
| 321 |
+
$$
|
| 322 |
+
|
| 323 |
+
We implement the cluster regularization via sharing model weights between each pair of nodes connected by an edge and select $\lambda _ { 1 } = 0 . 1$ .
|
| 324 |
+
|
| 325 |
+
CNFGNN We use a GRU-based encoder-decoder model as the model on nodes, which has 1 GRU layer and hidden dimension 64. We use a 2-layer Graph Network (GN) with residual connections as the Graph Neural Network model on the server side. We use the same network architecture for the edge/node/global update function in each GN layer: a multi-layer perceptron (MLP) with 3 hidden layers, whose sizes are [256, 256, 128] respectively. We choose $R _ { c } = 1 , R _ { s } = 2 0$ for experiments on PEMS-BAY, and $R _ { c } = 1 , R _ { s } = 1$ for METR-LA.
|
| 326 |
+
|
| 327 |
+
# A.2 CALCULATION OF COMMUNICATION COST
|
| 328 |
+
|
| 329 |
+
We denote $R$ as the number of communication rounds for one model to reach the lowest validation error in the training stage.
|
| 330 |
+
|
| 331 |
+
$\mathbf { G R U + F M T L }$ Using Equation A2, in each communication round, each pair of nodes exchange their model weights, thus the total communicated data amount is calculated as:
|
| 332 |
+
|
| 333 |
+
$$
|
| 334 |
+
R \times \# \mathrm { n o n s e l f ~ d i r e c t e d ~ e d g e s } \times \mathrm { s i z e ~ o f ~ n o d e ~ m o d e l ~ w e i g h t s } .
|
| 335 |
+
$$
|
| 336 |
+
|
| 337 |
+
CNFGNN (AT $^ +$ FedAvg) In each communication round, the central server fetches and sends back model weights to each node for Federated Averaging, and transmits hidden vectors and gradients for Split Learning. The total communicated data amount is calculated as:
|
| 338 |
+
|
| 339 |
+
$$
|
| 340 |
+
\begin{array} { r l } & { R \times ( \mathrm { \# n o d e s } \times \mathrm { s i z e ~ o f ~ n o d e ~ m o d e l ~ w e i g h t s } \times 2 } \\ & { \quad + ( 1 + 2 * \mathrm { s e r v e r ~ r o u n d } + 1 ) \times \mathrm { \# n o d e s } \times \mathrm { h i d d e n ~ s t a t e ~ s i z e } ) . } \end{array}
|
| 341 |
+
$$
|
| 342 |
+
|
| 343 |
+
CNFGNN (SL) In each communication round, each node sends and fetches hidden vectors and graidents twice (one for encoder, the other for decoder) and the total communicated data amount is:
|
| 344 |
+
|
| 345 |
+
$$
|
| 346 |
+
-
|
| 347 |
+
$$
|
| 348 |
+
|
| 349 |
+
CNFGNN $\mathrm { \bf { S L + } }$ FedAvg) Compared to CNFGNN (SL), the method has extra communcation cost for FedAvg in each round, thus the total communicated data amount is:
|
| 350 |
+
|
| 351 |
+
$$
|
| 352 |
+
-
|
| 353 |
+
$$
|
| 354 |
+
|
| 355 |
+
CNFGNN (AT, w/o FedAvg) Compared to CNFGNN (AT $^ +$ FedAvg), there is no communcation cost for the FedAvg part, thus the total communcated data amount is:
|
| 356 |
+
|
| 357 |
+
$$
|
| 358 |
+
-
|
| 359 |
+
$$
|
| 360 |
+
|
| 361 |
+
Table A1: Parameters used for calculating the communication cost of $\mathrm { G R U + F M T L }$ .
|
| 362 |
+
|
| 363 |
+
<table><tr><td colspan="2">Method</td><td colspan="2">GRU (63K) + FMTL GRU (727K) + FMTL</td></tr><tr><td colspan="2">Node Model Weights Size (GB)</td><td>2.347E-4</td><td>2.708E-3</td></tr><tr><td rowspan="3">PEMS-BAY</td><td>#Nonself Directed Edges</td><td>2369</td><td></td></tr><tr><td>R</td><td>104</td><td>56</td></tr><tr><td>Train Comm Cost (GB)</td><td>57.823</td><td>359.292</td></tr><tr><td rowspan="3">METR-LA</td><td>#Nonself Directed Edges</td><td></td><td>1515</td></tr><tr><td>R</td><td>279</td><td>176</td></tr><tr><td>Train Comm ( Cost (GB)</td><td>99.201</td><td>722.137</td></tr></table>
|
| 364 |
+
|
| 365 |
+
Table A2: Parameters used for calculating the communication cost of CNFGNN (AT $\cdot$ FedAvg).
|
| 366 |
+
|
| 367 |
+
<table><tr><td>Node Model Weights Size (GB)</td><td colspan="2">2.384E-4</td></tr><tr><td rowspan="3">PEMS-BAY</td><td>#Nodes</td><td>325</td></tr><tr><td>Hidden State Size (GB) Server Round</td><td>2.173E-3 20</td></tr><tr><td>R</td><td>2</td></tr><tr><td rowspan="3">METR-LA</td><td>Train Comm Cost (GB) #Nodes</td><td>237.654 207</td></tr><tr><td>Hidden State Size (GB)</td><td>1.429E-3</td></tr><tr><td>Server Round R</td><td>1 46</td></tr></table>
|
| 368 |
+
|
| 369 |
+
# A.3 INDUCTIVE LEARNING
|
| 370 |
+
|
| 371 |
+
We have added results using $\cdot$ and $5 \%$ data on both datasets and we show the table of inductive learning results as Table A6. We observe that: (1) With the portion of visible nodes in the training stage increasing, the prediction error of CNFGNN decreases drastically. However, the increase of the portion of visible nodes has negligible contribution to the performance of GRU $\cdot$ FedAvg after the portion surpasses $\cdot$ . Since increasing the ratio of seen nodes in training introduces more complex relationships among nodes to the training data, the difference of performance illustrates that CNFGNN has a stronger capability of capturing complex spatial relationships. (2) When the ratio of visible nodes in training is extremely low $\cdot$ , there is not enough spatial relationship information in the training data to train the GN module in CNFGNN, and the performance of CNFGNN may not be ideal. We visualize the subgraphs visible in training under different ratios in Figure A1. However, as long as the training data covers a moderate portion of the spatial information of the whole graph, CNFGNN can still leverage the learned spatial connections among nodes effectively and outperforms GRU $+$ FedAvg. We empirically show that the necessary ratio can vary for different datasets ( $2 5 \%$ for PEMS-BAY and $\cdot$ for METR-LA).
|
| 372 |
+
|
| 373 |
+
Table A3: Parameters used for calculating the communication cost of CNFGNN (SL).
|
| 374 |
+
|
| 375 |
+
<table><tr><td rowspan="2">PEMS-BAY</td><td>#Nodes Hidden State Size (GB) R</td><td>325 2.173E-3 31</td></tr><tr><td>Train Comm Cost (GB)</td><td>350.366</td></tr><tr><td rowspan="3">METR-LA</td><td>#Nodes Hidden State Size (GB)</td><td>207 1.429E-3</td></tr><tr><td>R</td><td>65</td></tr><tr><td>Train Comm Cost (GB)</td><td>307.627</td></tr></table>
|
| 376 |
+
|
| 377 |
+
Table A4: Parameters used for calculating the communication cost of CNFGNN (SL $^ +$ FedAvg).
|
| 378 |
+
Table A5: Parameters used for calculating the communication cost of CNFGNN (AT, w/o FedAvg).
|
| 379 |
+
|
| 380 |
+
<table><tr><td>Node Model Weights Size (GB)</td><td colspan="2">2.384E-4</td></tr><tr><td>PEMS-BAY</td><td>#Nodes Hidden State Size (GB) R Train Comm Cost (GB)</td><td>325 2.173E-3 7 80.200</td></tr><tr><td>METR-LA</td><td>#Nodes Hidden State Size (GB) R Train Comm Cost (GB)</td><td>207 1.429E-3 71 343.031</td></tr></table>
|
| 381 |
+
|
| 382 |
+

|
| 383 |
+
Figure A1: Visualization of subgraphs visible in training under different ratios.
|
| 384 |
+
|
| 385 |
+
Table A6: Inductive learning performance measured with rooted mean squared error (RMSE).
|
| 386 |
+
|
| 387 |
+
<table><tr><td rowspan="2">Method</td><td colspan="5">PEMS-BAY</td><td colspan="5">METR-LA</td></tr><tr><td>5%</td><td>25%</td><td>50%</td><td>75%</td><td>90%</td><td>5%</td><td>25%</td><td>50%</td><td>75%</td><td>90%</td></tr><tr><td>GRU (63K)+ FedAvg</td><td>5.087</td><td>4.863</td><td>4.847</td><td>4.859</td><td>4.866</td><td>12.128</td><td>11.993</td><td>12.104</td><td>12.014</td><td>12.016</td></tr><tr><td>CNFGNN (64K + 1M)</td><td>5.869</td><td>4.541</td><td>4.598</td><td>4.197</td><td>3.942</td><td>13.931</td><td>12.013</td><td>11.815</td><td>11.676</td><td>11.629</td></tr></table>
|
| 388 |
+
|
| 389 |
+
# A.4 THE HISTOGRAMS OF DATA ON DIFFERENT NODES
|
| 390 |
+
|
| 391 |
+
We show the histograms of traffic speed on different nodes of PEMS-BAY and METR-LA in Figure A2. For each dataset, we only show the first 100 nodes ranked by their IDs for simplicity. The histograms show that the data distribution varies with nodes, thus data on different nodes are not independent and identically distributed.
|
| 392 |
+
|
| 393 |
+

|
| 394 |
+
Figure A2: The histograms of data on the first 100 nodes ranked by ID.
|
parse/train/HWX5j6Bv_ih/HWX5j6Bv_ih_content_list.json
ADDED
|
@@ -0,0 +1,1860 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Vast amount of data generated from networks of sensors, wearables, and the Internet of Things (IoT) devices underscores the need for advanced modeling techniques that leverage the spatio-temporal structure of decentralized data due to the need for edge computation and licensing (data access) issues. While federated learning (FL) has emerged as a framework for model training without requiring direct data sharing and exchange, effectively modeling the complex spatiotemporal dependencies to improve forecasting capabilities still remains an open problem. On the other hand, state-of-the-art spatio-temporal forecasting models assume unfettered access to the data, neglecting constraints on data sharing. To bridge this gap, we propose a federated spatio-temporal model – Cross-Node Federated Graph Neural Network (CNFGNN) – which explicitly encodes the underlying graph structure using graph neural network (GNN)-based architecture under the constraint of cross-node federated learning, which requires that data in a network of nodes is generated locally on each node and remains decentralized. CNFGNN operates by disentangling the temporal dynamics modeling on devices and spatial dynamics on the server, utilizing alternating optimization to reduce the communication cost, facilitating computations on the edge devices. Experiments on the traffic flow forecasting task show that CNFGNN achieves the best forecasting performance in both transductive and inductive learning settings with no extra computation cost on edge devices, while incurring modest communication cost. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
267,
|
| 43 |
+
764,
|
| 44 |
+
546
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
578,
|
| 55 |
+
336,
|
| 56 |
+
593
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Modeling the dynamics of spatio-temporal data generated from networks of edge devices or nodes (e.g. sensors, wearable devices and the Internet of Things (IoT) devices) is critical for various applications including traffic flow prediction (Li et al., 2018; Yu et al., 2018), forecasting (Seo et al., 2019; Azencot et al., 2020), and user activity detection (Yan et al., 2018; Liu et al., 2020). While existing works on spatio-temporal dynamics modeling (Battaglia et al., 2016; Kipf et al., 2018; Battaglia et al., 2018) assume that the model is trained with centralized data gathered from all devices, the volume of data generated at these edge devices precludes the use of such centralized data processing, and calls for decentralized processing where computations on the edge can lead to significant gains in improving the latency. In addition, in case of spatio-temporal forecasting, the edge devices need to leverage the complex inter-dependencies to improve the prediction performance. Moreover, with increasing concerns about data privacy and its access restrictions due to existing licensing agreements, it is critical for spatio-temporal modeling to utilize decentralized data, yet leveraging the underlying relationships for improved performance. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
611,
|
| 66 |
+
825,
|
| 67 |
+
791
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Although recent works in federated learning (FL) (Kairouz et al., 2019) provides a solution for training a model with decentralized data on multiple devices, these works either do not consider the inherent spatio-temporal dependencies (McMahan et al., 2017; Li et al., 2020b; Karimireddy et al., 2020) or only model it implicitly by imposing the graph structure in the regularization on model weights (Smith et al., 2017), the latter of which suffers from the limitation of regularization based methods due to the assumption that graphs only encode similarity of nodes (Kipf & Welling, 2017), and cannot operate in settings where only a fraction of devices are observed during training (inductive learning setting). As a result, there is a need for an architecture for spatio-temporal data modeling which enables reliable computation on the edge, while maintaining the data decentralized. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
799,
|
| 77 |
+
825,
|
| 78 |
+
924
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "To this end, leveraging recent works on federated learning (Kairouz et al., 2019), we introduce the cross-node federated learning requirement to ensure that data generated locally at a node remains decentralized. Specifically, our architecture – Cross-Node Federated Graph Neural Network (CNFGNN), aims to effectively model the complex spatio-temporal dependencies under the cross-node federated learning constraint. For this, CNFGNN decomposes the modeling of temporal and spatial dependencies using an encoder-decoder model on each device to extract the temporal features with local data, and a Graph Neural Network (GNN) based model on the server to capture spatial dependencies among devices. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
103,
|
| 88 |
+
825,
|
| 89 |
+
214
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "As compared to existing federated learning techniques that rely on regularization to incorporate spatial relationships, CNFGNN leverages an explicit graph structure using a graph neural networkbased (GNNs) architecture, which leads to performance gains. However, the federated learning (data sharing) constraint means that the GNN cannot be trained in a centralized manner, since each node can only access the data stored on itself. To address this, CNFGNN employs Split Learning (Singh et al., 2019) to train the spatial and temporal modules. Further, to alleviate the associated high communication cost incurred by Split Learning, we propose an alternating optimization-based training procedure of these modules, which incurs only half the communication overhead as compared to a comparable Split Learning architecture. Here, we also use Federated Averaging (FedAvg) (McMahan et al., 2017) to train a shared temporal feature extractor for all nodes, which leads to improved empirical performance. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
222,
|
| 99 |
+
825,
|
| 100 |
+
375
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Our main contributions are as follows : ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
176,
|
| 109 |
+
382,
|
| 110 |
+
429,
|
| 111 |
+
396
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "1. We propose Cross-Node Federated Graph Neural Network (CNFGNN), a GNN-based federated learning architecture that captures complex spatio-temporal relationships among multiple nodes while ensuring that the data generated locally remains decentralized at no extra computation cost at the edge devices. \n2. Our modeling and training procedure enables GNN-based architectures to be used in federated learning settings. We achieve this by disentangling the modeling of local temporal dynamics on edge devices and spatial dynamics on the central server, and leverage an alternating optimization-based procedure for updating the spatial and temporal modules using Split Learning and Federated Averaging to enable effective GNN-based federated learning. \n3. We demonstrate that CNFGNN achieves the best prediction performance (both in transductive and inductive settings) at no extra computation cost on edge devices with modest communication cost, as compared to the related techniques on a traffic flow prediction task. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
212,
|
| 120 |
+
409,
|
| 121 |
+
825,
|
| 122 |
+
587
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "2 RELATED WORK ",
|
| 129 |
+
"text_level": 1,
|
| 130 |
+
"bbox": [
|
| 131 |
+
176,
|
| 132 |
+
607,
|
| 133 |
+
344,
|
| 134 |
+
623
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Our method derives elements from graph neural networks, federated learning and privacy-preserving graph learning, we now discuss related works in these areas in relation to our work. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
176,
|
| 143 |
+
640,
|
| 144 |
+
823,
|
| 145 |
+
667
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Graph Neural Networks (GNNs). GNNs have shown their superior performance on various learning tasks with graph-structured data, including graph embedding (Hamilton et al., 2017), node classification (Kipf & Welling, 2017), spatio-temporal data modeling (Yan et al., 2018; Li et al., 2018; Yu et al., 2018) and multi-agent trajectory prediction (Battaglia et al., 2016; Kipf et al., 2018; Li et al., 2020a). Recent GNN models (Hamilton et al., 2017; Ying et al., 2018; You et al., 2019; Huang et al., 2018) also have sampling strategies and are able to scale on large graphs. While GNNs enjoy the benefit from strong inductive bias (Battaglia et al., 2018; Xu et al., 2019), most works require centralized data during the training and the inference processes. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
685,
|
| 155 |
+
825,
|
| 156 |
+
796
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Federated Learning (FL). Federated learning is a machine learning setting where multiple clients train a model in collaboration with decentralized training data (Kairouz et al., 2019). It requires that the raw data of each client is stored locally without any exchange or transfer. However, the decentralized training data comes at the cost of less utilization due to the heterogeneous distributions of data on clients and the lack of information exchange among clients. Various optimization algorithms have been developed for federated learning on non-IID and unbalanced data (McMahan et al., 2017; Li et al., 2020b; Karimireddy et al., 2020). Smith et al. (2017) propose a multi-task learning framework that captures relationships amongst data. While the above works mitigate the caveat of missing neighbors’ information to some extent, they are not as effective as GNN models and still suffer from the absence of feature exchange and aggregation. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
811,
|
| 166 |
+
825,
|
| 167 |
+
924
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "",
|
| 174 |
+
"bbox": [
|
| 175 |
+
173,
|
| 176 |
+
103,
|
| 177 |
+
823,
|
| 178 |
+
132
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 2
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "Alternating Optimization. Alternating optimization is a popular choice in non-convex optimization (Agarwal et al., 2014; Arora et al., 2014; 2015; Jain & Kar, 2017). In the context of Federated Learning, Liang et al. (2020) uses alternating optimization for learning a simple global model and reduces the number of communicated parameters, and He et al. (2020) uses alternating optimization for knowledge distillation from server models to edge models. In our work, we utilize alternating optimization to effectively train on-device modules and the server module jointly, which captures temporal and spatial relationships respectively. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
150,
|
| 188 |
+
823,
|
| 189 |
+
247
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 2
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "Privacy-Preserving Graph Learning. Suzumura et al. (2019) and Mei et al. (2019) use statistics of graph structures instead of node information exchange and aggregation to avoid the leakage of node information. Recent works have also incorporated graph learning models with privacypreserving techniques such as Differential Privacy (DP), Secure Multi-Party Computation (MPC) and Homomorphic Encryption (HE). Zhou et al. (2020) utilize MPC and HE when learning a GNN model for node classification with vertically split data to preserve silo-level privacy instead of nodelevel privacy. Sajadmanesh & Gatica-Perez (2020) preprocesses the input raw data with DP before feeding it into a GNN model. Composing privacy-preserving techniques for graph learning can help build federated learning systems following the privacy-in-depth principle, wherein the privacy properties degrade as gracefully as possible if one technique fails (Kairouz et al., 2019). ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
174,
|
| 198 |
+
266,
|
| 199 |
+
825,
|
| 200 |
+
405
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 2
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "3 CROSS-NODE FEDERATED GRAPH NEURAL NETWORK ",
|
| 207 |
+
"text_level": 1,
|
| 208 |
+
"bbox": [
|
| 209 |
+
176,
|
| 210 |
+
428,
|
| 211 |
+
660,
|
| 212 |
+
444
|
| 213 |
+
],
|
| 214 |
+
"page_idx": 2
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"type": "text",
|
| 218 |
+
"text": "3.1 PROBLEM FORMULATION ",
|
| 219 |
+
"text_level": 1,
|
| 220 |
+
"bbox": [
|
| 221 |
+
176,
|
| 222 |
+
460,
|
| 223 |
+
392,
|
| 224 |
+
476
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "Given a dataset with a graph $\\mathcal { G } = ( \\nu , \\mathcal { E } )$ , a feature tensor $\\pmb { \\mathsf { X } } \\in \\mathbb { R } ^ { | \\mathcal { V } | \\times \\hdots }$ and a label tensor ${ \\pmb { \\mathsf { Y } } } \\in { }$ $\\mathbb { R } ^ { | \\nu | \\times \\dots }$ , we consider learning a model under the cross-node federated learning constraint: node feature $\\pmb { x } _ { i } = \\pmb { \\mathrm { X } } _ { i , \\dots }$ , node label $\\begin{array} { r } { \\mathbf { { y } } _ { i } = \\mathbf { { Y } } _ { i , \\dots } } \\end{array}$ , and model output $\\hat { y } _ { i }$ are only visible to the node $i$ . ",
|
| 231 |
+
"bbox": [
|
| 232 |
+
174,
|
| 233 |
+
487,
|
| 234 |
+
823,
|
| 235 |
+
532
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "text",
|
| 241 |
+
"text": "One typical task that requires the cross-node federated learning constraint is the prediction of spatiotemporal data generated by a network of sensors. In such a scenario, $\\nu$ is the set of sensors and $\\mathcal { E }$ describes relations among sensors (e.g. $e _ { i j } \\in \\mathcal { E }$ if and only if the distance between $v _ { i }$ and $v _ { j }$ is below some threshold). The feature tensor $\\pmb { x } _ { i } \\in \\mathbb { R } ^ { m \\times D }$ represents the $i$ -th sensor’s records in the $D$ -dim space during the past $m$ time steps, and the label $\\dot { \\boldsymbol { y } } _ { i } \\in \\mathbb { R } ^ { n \\times D }$ represents the $i$ -th sensor’s records in the future $n$ time steps. Since records collected on different sensors owned by different users/organizations may not be allowed to be shared due to the need for edge computation or licensing issues on data access, it is necessary to design an algorithm modeling the spatio-temporal relation without any direct exchange of node-level data. ",
|
| 242 |
+
"bbox": [
|
| 243 |
+
174,
|
| 244 |
+
539,
|
| 245 |
+
825,
|
| 246 |
+
666
|
| 247 |
+
],
|
| 248 |
+
"page_idx": 2
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"type": "text",
|
| 252 |
+
"text": "3.2 PROPOSED METHOD ",
|
| 253 |
+
"text_level": 1,
|
| 254 |
+
"bbox": [
|
| 255 |
+
176,
|
| 256 |
+
685,
|
| 257 |
+
356,
|
| 258 |
+
700
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 2
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "text",
|
| 264 |
+
"text": "We now introduce our proposed Cross-Node Federated Graph Neural Network (CNFGNN) model. Here, we begin by disentangling the modeling of node-level temporal dynamics and server-level spatial dynamics as follows: (i) (Figure 1c) on each node, an encoder-decoder model extracts temporal features from data on the node and makes predictions; (ii) (Figure 1b) on the central server, a Graph Network (GN) (Battaglia et al., 2018) propagates extracted node temporal features and outputs node embeddings, which incorporate the relationship information amongst nodes. (i) has access to the not shareable node data and is executed on each node locally. (ii) only involves the upload and download of smashed features and gradients instead of the raw data on nodes. This decomposition enables the exchange and aggregation of node information under the cross-node federated learning constraint. ",
|
| 265 |
+
"bbox": [
|
| 266 |
+
174,
|
| 267 |
+
712,
|
| 268 |
+
825,
|
| 269 |
+
838
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 2
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "text",
|
| 275 |
+
"text": "3.2.1 MODELING OF NODE-LEVEL TEMPORAL DYNAMICS ",
|
| 276 |
+
"text_level": 1,
|
| 277 |
+
"bbox": [
|
| 278 |
+
174,
|
| 279 |
+
856,
|
| 280 |
+
593,
|
| 281 |
+
871
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 2
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "text",
|
| 287 |
+
"text": "We modify the Gated Recurrent Unit (GRU) based encoder-decoder architecture in (Cho et al., 2014) for the modeling of node-level temporal dynamics on each node. Given an input sequence $\\pmb { x } _ { i } \\in \\mathbb { R } ^ { m \\times D }$ on the $i$ -th node, an encoder sequentially reads the whole sequence and outputs the ",
|
| 288 |
+
"bbox": [
|
| 289 |
+
176,
|
| 290 |
+
881,
|
| 291 |
+
823,
|
| 292 |
+
924
|
| 293 |
+
],
|
| 294 |
+
"page_idx": 2
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"type": "image",
|
| 298 |
+
"img_path": "images/3e1ee05691630c734f899149db2febff1d255fd4582f0392794764cdcc1a7efa.jpg",
|
| 299 |
+
"image_caption": [],
|
| 300 |
+
"image_footnote": [],
|
| 301 |
+
"bbox": [
|
| 302 |
+
178,
|
| 303 |
+
109,
|
| 304 |
+
401,
|
| 305 |
+
227
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 3
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "(a) Overview of the training procedure. ",
|
| 312 |
+
"bbox": [
|
| 313 |
+
174,
|
| 314 |
+
232,
|
| 315 |
+
401,
|
| 316 |
+
246
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 3
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "image",
|
| 322 |
+
"img_path": "images/3c494966c931cf3054784bdb0199663996cfa83e3d4629a910fe32c657d23c87.jpg",
|
| 323 |
+
"image_caption": [],
|
| 324 |
+
"image_footnote": [],
|
| 325 |
+
"bbox": [
|
| 326 |
+
434,
|
| 327 |
+
102,
|
| 328 |
+
821,
|
| 329 |
+
227
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 3
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "(b) Server-side Graph Network (GN). ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
516,
|
| 338 |
+
232,
|
| 339 |
+
738,
|
| 340 |
+
246
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 3
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "image",
|
| 346 |
+
"img_path": "images/e452c68aab769bc52637ce4deba79a253af6ae7d1c8558c060fc7ee48848f040.jpg",
|
| 347 |
+
"image_caption": [
|
| 348 |
+
"(c) Encoder-decoder on the $_ { i }$ -th node. ",
|
| 349 |
+
"Figure 1: Cross-Node Federated Graph Neural Network. (a) In each round of training, we alternately train models on nodes and the model on the server. More specifically, we sequentially execute: (1) Federated learning of on-node models. (2) Temporal encoding update. (3) Split Learning of GN. (4) On-node graph embedding update. (b) Detailed view of the server-side GN model for modeling spatial dependencies in data. (c) Detailed view of the encoder-decoder model on the $i$ -th node. "
|
| 350 |
+
],
|
| 351 |
+
"image_footnote": [],
|
| 352 |
+
"bbox": [
|
| 353 |
+
176,
|
| 354 |
+
252,
|
| 355 |
+
823,
|
| 356 |
+
472
|
| 357 |
+
],
|
| 358 |
+
"page_idx": 3
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "text",
|
| 362 |
+
"text": "hidden state $h _ { c , i }$ as the summary of the input sequence according to Equation 1. ",
|
| 363 |
+
"bbox": [
|
| 364 |
+
171,
|
| 365 |
+
587,
|
| 366 |
+
696,
|
| 367 |
+
602
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 3
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "equation",
|
| 373 |
+
"img_path": "images/b92b597aa6085d9ff1cd2388c82f99cec8a2e76f53e72c5d9a3997dc9317f434.jpg",
|
| 374 |
+
"text": "$$\n\\begin{array} { r } { \\pmb { h } _ { c , i } = E n c o d e r _ { i } ( \\pmb { x } _ { i } , \\pmb { h } _ { c , i } ^ { ( 0 ) } ) , } \\end{array}\n$$",
|
| 375 |
+
"text_format": "latex",
|
| 376 |
+
"bbox": [
|
| 377 |
+
397,
|
| 378 |
+
608,
|
| 379 |
+
584,
|
| 380 |
+
631
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 3
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "where ${ h } _ { c , i } ^ { ( 0 ) }$ is a zero-valued initial hidden state vector. ",
|
| 387 |
+
"bbox": [
|
| 388 |
+
173,
|
| 389 |
+
638,
|
| 390 |
+
529,
|
| 391 |
+
656
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 3
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "text",
|
| 397 |
+
"text": "To incorporate the spatial dynamics into the prediction model of each node, we concatenate $h _ { c , i }$ with the node embedding $h _ { G , c , i }$ generated from the procedure described in 3.2.2, which contains spatial information, as the initial state vector of the decoder. The decoder generates the prediction $\\hat { y } _ { i }$ in an auto-regressive way starting from the last frame of the input sequence $x _ { i , m }$ with the concatenated hidden state vector. ",
|
| 398 |
+
"bbox": [
|
| 399 |
+
173,
|
| 400 |
+
664,
|
| 401 |
+
825,
|
| 402 |
+
733
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 3
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "equation",
|
| 408 |
+
"img_path": "images/a23697176af852cadac1bc9df3688a53af0e61e1ef17e11898da2580112888aa.jpg",
|
| 409 |
+
"text": "$$\n\\hat { \\pmb { y } } _ { i } = D e c o d e r _ { i } ( x _ { i , m } , [ \\pmb { h } _ { c , i } ; \\pmb { h } _ { G , c , i } ] ) .\n$$",
|
| 410 |
+
"text_format": "latex",
|
| 411 |
+
"bbox": [
|
| 412 |
+
377,
|
| 413 |
+
732,
|
| 414 |
+
620,
|
| 415 |
+
750
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 3
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "We choose the mean squared error (MSE) between the prediction and the ground truth values as the loss function, which is evaluated on each node locally. ",
|
| 422 |
+
"bbox": [
|
| 423 |
+
171,
|
| 424 |
+
752,
|
| 425 |
+
823,
|
| 426 |
+
780
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 3
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "text",
|
| 432 |
+
"text": "3.2.2 MODELING OF SPATIAL DYNAMICS ",
|
| 433 |
+
"text_level": 1,
|
| 434 |
+
"bbox": [
|
| 435 |
+
176,
|
| 436 |
+
795,
|
| 437 |
+
473,
|
| 438 |
+
809
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "To capture the complex spatial dynamics, we adopt Graph Networks (GNs) proposed in (Battaglia et al., 2018) to generate node embeddings containing the relational information of all nodes. The central server collects the hidden state from all nodes $\\{ h _ { c , i } \\mid i \\in \\mathcal { V } \\}$ as the input to the GN. Each layer of GN updates the input features as follows: ",
|
| 445 |
+
"bbox": [
|
| 446 |
+
173,
|
| 447 |
+
819,
|
| 448 |
+
825,
|
| 449 |
+
876
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 3
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "equation",
|
| 455 |
+
"img_path": "images/f844065df565e1a132d4f5272263ff3b12fda16233dd100f4868142e0054c922.jpg",
|
| 456 |
+
"text": "$$\n\\begin{array} { r l r } & { { \\mathbf e } _ { k } ^ { \\prime } = \\phi ^ { e } \\left( { \\mathbf e } _ { k } , { \\mathbf v } _ { r _ { k } } , { \\mathbf v } _ { s _ { k } } , { \\mathbf u } \\right) } & { \\overline { { { \\mathbf e } } } _ { i } ^ { \\prime } = \\rho ^ { e \\to v } \\left( E _ { i } ^ { \\prime } \\right) } \\\\ & { { \\mathbf v } _ { i } ^ { \\prime } = \\phi ^ { v } \\left( \\overline { { { \\mathbf e } } } _ { i } ^ { \\prime } , { \\mathbf v } _ { i } , { \\mathbf u } \\right) } & { \\overline { { { \\mathbf e } } } ^ { \\prime } = \\rho ^ { e \\to u } \\left( E ^ { \\prime } \\right) } \\\\ & { { \\mathbf u } ^ { \\prime } = \\phi ^ { u } \\left( \\overline { { { \\mathbf e } } } ^ { \\prime } , \\overline { { { \\mathbf v } } } ^ { \\prime } , { \\mathbf u } \\right) } & { \\overline { { { \\mathbf v } } } ^ { \\prime } = \\rho ^ { v \\to u } \\left( V ^ { \\prime } \\right) } \\end{array} ,\n$$",
|
| 457 |
+
"text_format": "latex",
|
| 458 |
+
"bbox": [
|
| 459 |
+
346,
|
| 460 |
+
881,
|
| 461 |
+
655,
|
| 462 |
+
928
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 3
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "Algorithm 1 Training algorithm of CNFGNN on the server side. ",
|
| 469 |
+
"text_level": 1,
|
| 470 |
+
"bbox": [
|
| 471 |
+
173,
|
| 472 |
+
103,
|
| 473 |
+
598,
|
| 474 |
+
118
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 4
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "Server executes: ",
|
| 481 |
+
"text_level": 1,
|
| 482 |
+
"bbox": [
|
| 483 |
+
174,
|
| 484 |
+
140,
|
| 485 |
+
289,
|
| 486 |
+
152
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 4
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "1: Initialize server-side GN weights θ GN , client model weigh ts θ¯(0)c {θ¯(0),encc , $\\{ \\bar { \\bar { \\theta } } _ { c } ^ { ( 0 ) , e n c } , \\bar { \\theta } _ { c } ^ { ( 0 ) , d e c } \\} _ { . }$ . \n2: for each node $i \\in \\mathcal V$ in parallel do \n3: Initialize client model θ(0)c,i ${ \\pmb \\theta } _ { c , i } ^ { ( 0 ) } = \\bar { \\pmb \\theta } _ { c } ^ { ( 0 ) }$ = θ¯(0)c . \n4: raph encoding. on node $h _ { G , c , i } = h _ { G , c , i } ^ { ( 0 ) }$ end for \n6: for global round $r _ { g } = 1 , 2 , \\ldots , R _ { g }$ do \n7: // (1) Federated learning of on-node models. \n8: for each client $i \\in \\nu$ in parallel do \n9: $\\theta _ { c , i } \\gets$ ClientUpdate $( i )$ . \n11: 10: end for $\\begin{array} { r } { \\bar { \\pmb { \\theta } } _ { c } \\sum _ { i \\in \\mathcal { V } } \\frac { N _ { i } } { N } \\pmb { \\theta } _ { c , i } } \\end{array}$ . \n12: for each client $i \\in \\nu$ in parallel do \n13: Initialize client model: $\\theta _ { c , i } ^ { ( 0 ) } = \\bar { \\theta } _ { c }$ \n14: end for \n15: // (2) Temporal encoding update. \n16: for each client $i \\in \\nu$ in parallel do \n17: $h _ { c , i } \\gets$ ClientEncode $( i )$ . \n18: end for \n19: // (3) Split Learning of GN. \n20: Initialize $\\pmb { \\theta } _ { G N } ^ { ( r _ { g } , 0 ) } = \\pmb { \\theta } _ { G N } ^ { ( r _ { g } - 1 ) }$ \n21: for server round $r _ { s } = 1 , 2 , \\ldots , R _ { s }$ do \n22: $\\{ h _ { G , c , i } | i ~ \\in ~ \\mathcal { V } \\} ~ ~ G N ( \\{ h _ { c , i } | i ~ \\in ~$ \n23 $\\mathcal { V } \\rbrace ; \\pmb { \\theta } _ { G N } ^ { ( r _ { g } , r _ { s } - 1 ) } )$ . in prale o $i \\in \\nu$ \n24: $\\nabla _ { h _ { G , c , i } } \\ell _ { i } \\gets$ ClientBackward( $_ { i , h _ { G , c , i } ) }$ .backward( \n25: $\\nabla _ { \\pmb { \\theta } ^ { ( r _ { g } , r _ { s } - 1 ) } } \\ell _ { i } \\gets \\pmb { h } _ { G , c , i }$ $\\overset { \\scriptscriptstyle \\mathrm { G } } { \\nabla } _ { h _ { G , c , i } } \\ell _ { i } )$ . \n26: end for \n27: $\\begin{array} { r l } & { \\nabla _ { \\pmb { \\theta } _ { G N } ^ { ( r _ { g } , r _ { s } - 1 ) } } \\ell \\sum _ { i \\in \\mathcal { V } } \\nabla _ { \\pmb { \\theta } _ { G N } ^ { ( r _ { g } , r _ { s } - 1 ) } } \\ell _ { i } . } \\\\ & { \\pmb { \\theta } _ { G N } ^ { ( r _ { g } , r _ { s } ) } \\pmb { \\theta } _ { G N } ^ { ( r _ { g } , r _ { s } - 1 ) } } \\\\ & { \\qquad - \\eta _ { s } \\nabla _ { \\pmb { \\theta } _ { G N } ^ { ( r _ { g } , r _ { s } - 1 ) } } \\ell . } \\end{array}$ \n28: \n29: end for \n30: ${ \\pmb \\theta } _ { G N } ^ { ( r _ { g } ) } { \\pmb \\theta } _ { G N } ^ { ( r _ { g } , R _ { s } ) }$ \n31: // (4) On-node graph embedding update. \n32: $\\begin{array} { r l } & { \\{ h _ { G , c , i } | i \\in \\mathcal { V } \\} } \\\\ & { \\quad G N ( \\{ h _ { c , i } | i \\in \\mathcal { V } \\} ; \\theta _ { G N } ^ { ( r _ { g } ) } ) . } \\end{array}$ \n33: for each client $i \\in \\mathcal V$ in parallel do \n34: Set graph encoding on client as hG,c,i. \n35: end for \n36: end for ",
|
| 493 |
+
"bbox": [
|
| 494 |
+
178,
|
| 495 |
+
155,
|
| 496 |
+
491,
|
| 497 |
+
496
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 4
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "",
|
| 504 |
+
"bbox": [
|
| 505 |
+
503,
|
| 506 |
+
137,
|
| 507 |
+
836,
|
| 508 |
+
502
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 4
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "Algorithm 2 Training algorithm of CNFGNN on the client side. ",
|
| 515 |
+
"text_level": 1,
|
| 516 |
+
"bbox": [
|
| 517 |
+
173,
|
| 518 |
+
535,
|
| 519 |
+
594,
|
| 520 |
+
550
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 4
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "ClientUpdate(i): ",
|
| 527 |
+
"text_level": 1,
|
| 528 |
+
"bbox": [
|
| 529 |
+
174,
|
| 530 |
+
571,
|
| 531 |
+
290,
|
| 532 |
+
585
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 4
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "1: for client round $r _ { c } = 1 , 2 , \\ldots , R _ { c } \\ : _ { }$ do \n2: $\\pmb { h } _ { c , i } ^ { ( r _ { c } ) } \\gets E n c o d e r _ { i } ( \\pmb { x } _ { i } ; \\pmb { \\theta } _ { c , i } ^ { ( r _ { c } - 1 ) , e n c } )$ \n3: $\\hat { \\pmb { y } } _ { i } D e c o d e r _ { i }$ ( \n$x _ { i , m } , [ { h _ { c , i } ^ { ( r _ { c } ) } } ; { h _ { G , c , i } } ] ; \\theta _ { c , i } ^ { ( r _ { c } - 1 ) , d e c } ) .$ \n4: 5: θ(rc)c,i ← θ(rc−1)c,i − ηc∇θ(rc−1)c,i \\`i. $\\ell _ { i } \\gets \\ell ( \\hat { \\pmb y } _ { i } , \\pmb y )$ . ",
|
| 539 |
+
"bbox": [
|
| 540 |
+
179,
|
| 541 |
+
588,
|
| 542 |
+
468,
|
| 543 |
+
691
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 4
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "6: end for ",
|
| 550 |
+
"bbox": [
|
| 551 |
+
181,
|
| 552 |
+
690,
|
| 553 |
+
254,
|
| 554 |
+
704
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 4
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "text",
|
| 560 |
+
"text": "7: θc,i = θ(Rc). \n8: return $\\theta _ { c , i }$ to server. \nClientEncode $\\mathbf { \\rho } ( i )$ : \n1: return $\\begin{array} { r c l } { { { h } } _ { { c } , i } } & { = } & { { E n c o d e r } _ { i } ( { \\bf { x } } _ { i } ; { \\bf { \\bf { \\theta } } } _ { c , i } ^ { e n c } ) } \\end{array}$ to server. \nClientBackward $( i , h _ { G , c , i } )$ : \n1: $\\hat { \\pmb { y } } _ { i } D e c o d e r _ { i } ( x _ { i , m } , [ h _ { c , i } ; h _ { G , c , i } ] ; \\pmb { \\theta } _ { c , i } ^ { d e c } )$ . 2: $\\ell _ { i } \\gets \\ell ( \\hat { \\pmb y } _ { i } , \\pmb y )$ . \n3: return $\\nabla _ { \\boldsymbol { h } _ { G , c , i } } \\ell _ { i }$ to server. ",
|
| 561 |
+
"bbox": [
|
| 562 |
+
504,
|
| 563 |
+
568,
|
| 564 |
+
825,
|
| 565 |
+
714
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 4
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "where $\\mathbf { e } _ { k } , \\mathbf { v } _ { i } , \\mathbf { u }$ are edge features, node features and global features respectively. $\\phi ^ { e } , \\phi ^ { v } , \\phi ^ { u }$ are neural networks. $\\rho ^ { e v } , \\rho ^ { e u } , \\rho ^ { v u }$ are aggregation functions such as summation. As shown in Figure 1b, we choose a 2-layer GN with residual connections for all experiments. We set $\\mathbf { v } _ { i } = h _ { c , i }$ , $\\mathbf { e } _ { k } = W _ { r _ { k } , s _ { k } }$ $\\cdot$ is the adjacency matrix) , and assign the empty vector to u as the input of the first GN layer. The server-side GN outputs embeddings $\\{ h _ { G , c , i } \\mid i \\in \\mathcal { V } \\}$ for all nodes, and sends the embedding of each node correspondingly. ",
|
| 572 |
+
"bbox": [
|
| 573 |
+
173,
|
| 574 |
+
755,
|
| 575 |
+
825,
|
| 576 |
+
840
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 4
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "text",
|
| 582 |
+
"text": "3.2.3 ALTERNATING TRAINING OF NODE-LEVEL AND SPATIAL MODELS ",
|
| 583 |
+
"text_level": 1,
|
| 584 |
+
"bbox": [
|
| 585 |
+
174,
|
| 586 |
+
856,
|
| 587 |
+
689,
|
| 588 |
+
871
|
| 589 |
+
],
|
| 590 |
+
"page_idx": 4
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"type": "text",
|
| 594 |
+
"text": "One challenge brought about by the cross-node federated learning requirement and the server-side GN model is the high communication cost in the training stage. Since we distribute different parts of the model on different devices, Split Learning proposed by (Singh et al., 2019) is a potential solution for training, where hidden vectors and gradients are communicated among devices. However, when we simply train the model end-to-end via Split Learning, the central server needs to receive hidden states from all nodes and to send node embeddings to all nodes in the forward propagation, then it must receive gradients of node embeddings from all nodes and send back gradients of hidden states to all nodes in the backward propagation. Assume all hidden states and node embeddings have the same size $S$ , the total amount of data transmitted in each training round of the GN model is $4 | \\nu | S$ . ",
|
| 595 |
+
"bbox": [
|
| 596 |
+
174,
|
| 597 |
+
882,
|
| 598 |
+
825,
|
| 599 |
+
924
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 4
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "table",
|
| 605 |
+
"img_path": "images/5427f65e31a59e870639ba0799d96cb6e8c5eeb2c63b3aea492a28a7cb6ed5f3.jpg",
|
| 606 |
+
"table_caption": [
|
| 607 |
+
"Table 1: Statistics of datasets PEMS-BAY and METR-LA. "
|
| 608 |
+
],
|
| 609 |
+
"table_footnote": [],
|
| 610 |
+
"table_body": "<table><tr><td>Dataset</td><td>#Nodes</td><td># Directed Edges</td><td># Train Seq</td><td># Val Seq</td><td># Test Seq</td></tr><tr><td>PEMS-BAY</td><td>325</td><td>2369</td><td>36465</td><td>5209</td><td>10419</td></tr><tr><td>METR-LA</td><td>207</td><td>1515</td><td>23974</td><td>3425</td><td>6850</td></tr></table>",
|
| 611 |
+
"bbox": [
|
| 612 |
+
222,
|
| 613 |
+
126,
|
| 614 |
+
777,
|
| 615 |
+
185
|
| 616 |
+
],
|
| 617 |
+
"page_idx": 5
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"type": "text",
|
| 621 |
+
"text": "",
|
| 622 |
+
"bbox": [
|
| 623 |
+
174,
|
| 624 |
+
210,
|
| 625 |
+
825,
|
| 626 |
+
295
|
| 627 |
+
],
|
| 628 |
+
"page_idx": 5
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"type": "text",
|
| 632 |
+
"text": "To alleviate the high communication cost in the training stage, we instead alternately train models on nodes and the GN model on the server. More specifically, in each round of training, we (1) fix the node embedding $h _ { G , c , i }$ and optimize the encoder-decoder model for $R _ { c }$ rounds, then (2) we optimize the GN model while fixing all models on nodes. Since models on nodes are fixed, $h _ { c , i }$ stays constant during the training of the GN model, and the server only needs to fetch $h _ { c , i }$ from nodes before the training of GN starts and only to communicate node embeddings and gradients. Therefore, the average amount of data transmitted in each round for $R s$ rounds of training of the GN model reduces to $\\frac { 2 + \\overline { { 2 } } R _ { s } } { R _ { s } } | \\mathcal { V } | S$ . We provide more details of the training procedure in Algorithm 1 and Algorithm 2. ",
|
| 633 |
+
"bbox": [
|
| 634 |
+
174,
|
| 635 |
+
301,
|
| 636 |
+
825,
|
| 637 |
+
430
|
| 638 |
+
],
|
| 639 |
+
"page_idx": 5
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"type": "text",
|
| 643 |
+
"text": "To more effectively extract temporal features from each node, we also train the encoder-decoder models on nodes with the FedAvg algorithm proposed in (McMahan et al., 2017). This enables all nodes to share the same feature extractor and thus share a joint hidden space of temporal features, which avoids the potential overfitting of models on nodes and demonstrates faster convergence and better prediction performance empirically. ",
|
| 644 |
+
"bbox": [
|
| 645 |
+
174,
|
| 646 |
+
436,
|
| 647 |
+
825,
|
| 648 |
+
507
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 5
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "4 EXPERIMENTS ",
|
| 655 |
+
"text_level": 1,
|
| 656 |
+
"bbox": [
|
| 657 |
+
176,
|
| 658 |
+
527,
|
| 659 |
+
326,
|
| 660 |
+
544
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 5
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "We evaluate the performance of CNFGNN and all baseline methods on the traffic forecasting task, which is an important application for spatio-temporal data modeling. We reuse the following two real-world large-scale datasets in (Li et al., 2018) and follow the same preprocessing procedures: (1) PEMS-BAY: This dataset contains the traffic speed readings from 325 sensors in the Bay Area over 6 months from Jan 1st, 2017 to May 31st, 2017. (2) METR-LA: This dataset contains the traffic speed readings from 207 loop detectors installed on the highway of Los Angeles County over 4 months from Mar 1st, 2012 to Jun 30th, 2012. ",
|
| 667 |
+
"bbox": [
|
| 668 |
+
173,
|
| 669 |
+
559,
|
| 670 |
+
825,
|
| 671 |
+
657
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 5
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "For both datasets, we construct the adjacency matrix of sensors using the Gaussian kernel with a threshold: $W _ { i , j } = d _ { i , j }$ if $d _ { i , j } > = \\kappa$ else 0, where $\\begin{array} { r } { d _ { i , j } = \\exp { ( - \\frac { \\mathrm { d i s t } ( v _ { i } , v _ { j } ) ^ { 2 } } { \\sigma ^ { 2 } . } ) } , } \\end{array}$ $\\mathrm { d i s t } ( v _ { i } , v _ { j } )$ is the road network distance from sensor $v _ { i }$ to sensor $v _ { j }$ , $\\sigma$ is the standard deviation of distances and $\\kappa$ is the threshold. We set $\\kappa = 0 . 1$ for both datasets. ",
|
| 678 |
+
"bbox": [
|
| 679 |
+
174,
|
| 680 |
+
664,
|
| 681 |
+
825,
|
| 682 |
+
724
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 5
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "We aggregate traffic speed readings in both datasets into 5-minute windows and truncate the whole sequence to multiple sequences with length 24. The forecasting task is to predict the traffic speed in the following 12 steps of each sequence given the first 12 steps. We show the statistics of both datasets in Table 1. ",
|
| 689 |
+
"bbox": [
|
| 690 |
+
174,
|
| 691 |
+
731,
|
| 692 |
+
825,
|
| 693 |
+
786
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 5
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "4.1 SPATIO-TEMPORAL DATA MODELING: TRAFFIC FLOW FORECASTING ",
|
| 700 |
+
"text_level": 1,
|
| 701 |
+
"bbox": [
|
| 702 |
+
174,
|
| 703 |
+
799,
|
| 704 |
+
694,
|
| 705 |
+
814
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 5
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "Baselines We compare CNFGNN with the following baselines. (1) GRU (centralized): a Gated Recurrent Unit (GRU) model trained with centralized sensor data. (2) $\\_$ (centralized): a model directly combining GRU and GN trained with centralized data, whose architecture is similar to CNFGNN but all GRU modules on nodes always share the same weights. We see its performance as the upper bound of the performance of CNFGNN. (3) GRU (local): for each node we train a GRU model with only the local data on it. (4) GRU $^ +$ FedAvg: a GRU model trained with the Federated Averaging algorithm (McMahan et al., 2017). (5) $\\mathbf { G R U + F M T L }$ : for each node we train a GRU model using the federated multi-task learning (FMTL) with cluster regularization (Smith et al., 2017) given by the adjacency matrix. For each baseline, we have 2 variants of the GRU model to show the effect of on-device model complexity: one with 63K parameters and the other with 727K parameters. For CNFGNN, the encoder-decoder model on each node has 64K parameters and the GN model has 1M parameters. ",
|
| 712 |
+
"bbox": [
|
| 713 |
+
173,
|
| 714 |
+
825,
|
| 715 |
+
825,
|
| 716 |
+
924
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 5
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "",
|
| 723 |
+
"bbox": [
|
| 724 |
+
174,
|
| 725 |
+
103,
|
| 726 |
+
823,
|
| 727 |
+
174
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 6
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "table",
|
| 733 |
+
"img_path": "images/a2b131fec79a37cf1ec47b21bd581f2b95462cd61f1b7abb74395542a23dcf69.jpg",
|
| 734 |
+
"table_caption": [
|
| 735 |
+
"Table 3: Comparison of the computation cost on edge devices and the communication cost. We use the amount of floating point operations (FLOPS) to measure the computational cost of models on edge devices. We also show the total size of data/parameters transmitted in the training stage (Train Comm Cost) until the model reaches its lowest validation error. "
|
| 736 |
+
],
|
| 737 |
+
"table_footnote": [],
|
| 738 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Comp Cost On Device (GFLOPS)</td><td colspan=\"2\">PEMS-BAY</td><td colspan=\"2\">METR-LA</td></tr><tr><td>RMSE</td><td>Train Comm Cost (GB)</td><td>RMSE</td><td>Train Comm Cost (GB)</td></tr><tr><td>GRU (63K)+FMTL</td><td>0.159</td><td>3.961</td><td>57.823</td><td>11.548</td><td>99.201</td></tr><tr><td>GRU (727K) + FMTL</td><td>1.821</td><td>3.955</td><td>359.292</td><td>11.570</td><td>722.137</td></tr><tr><td>CNFGNN (64K + 1M)</td><td>0.162</td><td>3.822</td><td>237.654</td><td>11.487</td><td>222.246</td></tr></table>",
|
| 739 |
+
"bbox": [
|
| 740 |
+
183,
|
| 741 |
+
255,
|
| 742 |
+
815,
|
| 743 |
+
362
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 6
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "text",
|
| 749 |
+
"text": "Discussion Table 2 shows the comparison of forecasting performance and Table 3 shows the comparison of computation cost on device and communication cost of CNFGNN and baselines. We make the following observations. Firstly, when we compare the best forecasting performance of each baseline over the 2 GRU variants, GRU trained with FedAvg performs the worst in terms of forecasting performance compared to GRU trained with centralized data and GRU trained with local data (4.432 vs 4.010/4.124 on PEMS-BAY and 12.058 vs 11.730/11.801 on METRLA), showing that the data distributions on different nodes are highly heterogeneous, and training one single model ignoring the heterogeneity is suboptimal. ",
|
| 750 |
+
"bbox": [
|
| 751 |
+
174,
|
| 752 |
+
382,
|
| 753 |
+
419,
|
| 754 |
+
672
|
| 755 |
+
],
|
| 756 |
+
"page_idx": 6
|
| 757 |
+
},
|
| 758 |
+
{
|
| 759 |
+
"type": "table",
|
| 760 |
+
"img_path": "images/579e4a3003545305cea74154102ab98d7d967faee222e5fd976195783070821d.jpg",
|
| 761 |
+
"table_caption": [
|
| 762 |
+
"Table 2: Comparison of performance on the traffic flow forecasting task. We use the Rooted Mean Squared Error (RMSE) to evaluate the forecasting performance. "
|
| 763 |
+
],
|
| 764 |
+
"table_footnote": [],
|
| 765 |
+
"table_body": "<table><tr><td>Method</td><td>PEMS-BAY</td><td>METR-LA</td></tr><tr><td>GRU (centralized, 63K)</td><td>4.124</td><td>11.730</td></tr><tr><td>GRU (centralized, 727K) GRU + GN</td><td>4.128</td><td>11.787</td></tr><tr><td>(centralized, 64K + 1M)</td><td>3.816</td><td>11.471</td></tr><tr><td>GRU (local, 63K)</td><td>4.010</td><td>11.801</td></tr><tr><td>GRU (local, 727K)</td><td>4.152</td><td>12.224</td></tr><tr><td>GRU (63K) + FedAvg</td><td>4.512</td><td>12.132</td></tr><tr><td>GRU (727K) + FedAvg</td><td>4.432</td><td>12.058</td></tr><tr><td>GRU (63K)+FMTL</td><td>3.961</td><td>11.548</td></tr><tr><td>GRU (727K) + FMTL</td><td>3.955</td><td>11.570</td></tr><tr><td>CNFGNN (64K + 1M)</td><td>3.822</td><td>11.487</td></tr></table>",
|
| 766 |
+
"bbox": [
|
| 767 |
+
444,
|
| 768 |
+
450,
|
| 769 |
+
808,
|
| 770 |
+
646
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 6
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "Secondly, both the $\\mathrm { G R U + F M T L }$ baseline and CNFGNN consider the spatial relations among nodes and show better forecasting performance than baselines without relation information. This shows that the modeling of spatial dependencies is critical for the forecasting task. ",
|
| 777 |
+
"bbox": [
|
| 778 |
+
176,
|
| 779 |
+
680,
|
| 780 |
+
821,
|
| 781 |
+
723
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 6
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "Lastly, CNFGNN achieves the lowest forecasting error on both datasets. The baselines that increases the complexity of on-device models (GRU $( 7 2 7 \\mathrm { K } ) + \\mathrm { F M T L }$ ) gains slight or even no improvement at the cost of higher computation cost on edge devices and larger communication cost. However, due to its effective modeling of spatial dependencies in data, CNFGNN not only has the largest improvement of forecasting performance, but also keeps the computation cost on devices almost unchanged and maintains modest communication cost compared to baselines increasing the model complexity on devices. ",
|
| 788 |
+
"bbox": [
|
| 789 |
+
174,
|
| 790 |
+
729,
|
| 791 |
+
825,
|
| 792 |
+
827
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 6
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "4.2 INDUCTIVE LEARNING ON UNSEEN NODES ",
|
| 799 |
+
"text_level": 1,
|
| 800 |
+
"bbox": [
|
| 801 |
+
174,
|
| 802 |
+
847,
|
| 803 |
+
514,
|
| 804 |
+
861
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 6
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "Set-up Another advantage of CNFGNN is that it can conduct inductive learning and generalize to larger graphs with nodes unobserved during the training stage. We evaluate the performance of CNFGNN under the following inductive learning setting: for each dataset, we first sort all sensors based on longitudes, then use the subgraph on the first $\\eta \\%$ of sensors to train the model and evaluate the trained model on the entire graph. For each dataset we select $\\eta \\% = 2 5 \\%$ , $5 0 \\%$ , $7 5 \\%$ . Over all baselines following the cross-node federated learning constraint, GRU (local) and $\\mathrm { G R U + F M T L }$ requires training new models on unseen nodes and only GRU $^ +$ FedAvg is applicable to the inductive learning setting. ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
174,
|
| 813 |
+
867,
|
| 814 |
+
825,
|
| 815 |
+
924
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 6
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "table",
|
| 821 |
+
"img_path": "images/12f44181d87c6f4f48b916cc6e36328dd6d687d01a55c6c01d7b73c4c0640b0a.jpg",
|
| 822 |
+
"table_caption": [
|
| 823 |
+
"Table 4: Inductive learning performance measured with rooted mean squared error (RMSE). "
|
| 824 |
+
],
|
| 825 |
+
"table_footnote": [],
|
| 826 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"3\">PEMS-BAY</td><td colspan=\"3\">METR-LA</td></tr><tr><td>25%</td><td>50%</td><td>75%</td><td>25%</td><td>50%</td><td>75%</td></tr><tr><td>GRU (63K) + FedAvg</td><td>4.863</td><td>4.847</td><td>4.859</td><td>11.993</td><td>12.104</td><td>12.014</td></tr><tr><td>CNFGNN (64K + 1M)</td><td>4.541</td><td>4.598</td><td>4.197</td><td>12.013</td><td>11.815</td><td>11.676</td></tr></table>",
|
| 827 |
+
"bbox": [
|
| 828 |
+
240,
|
| 829 |
+
127,
|
| 830 |
+
758,
|
| 831 |
+
205
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 7
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "image",
|
| 837 |
+
"img_path": "images/43859867fa889cd71a153f132f5e85593bfc311ff2369e88c13a34e041c3045c.jpg",
|
| 838 |
+
"image_caption": [
|
| 839 |
+
"Figure 2: Validation loss during the training stage of different training strategies. "
|
| 840 |
+
],
|
| 841 |
+
"image_footnote": [],
|
| 842 |
+
"bbox": [
|
| 843 |
+
184,
|
| 844 |
+
219,
|
| 845 |
+
812,
|
| 846 |
+
373
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 7
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "",
|
| 853 |
+
"bbox": [
|
| 854 |
+
174,
|
| 855 |
+
415,
|
| 856 |
+
825,
|
| 857 |
+
472
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 7
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "Discussion Table 4 shows the performance of inductive learning of CNFGNN and GRU $^ +$ FedAvg baseline on both datasets. We observe that under most settings, CNFGNN outperforms the $\\mathrm { G R U + }$ FedAvg baseline (except on the METR-LA dataset with $2 5 \\%$ nodes observed in training, where both models perform similarly), showing that CNFGNN has the stronger ability of generalization. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
174,
|
| 866 |
+
487,
|
| 867 |
+
825,
|
| 868 |
+
544
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 7
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "4.3 ABLATION STUDY: EFFECT OF ALTERNATING TRAINING AND FEDAVG ON NODE-LEVEL AND SPATIAL MODELS ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
176,
|
| 877 |
+
560,
|
| 878 |
+
728,
|
| 879 |
+
589
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 7
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "Baselines We compare the effect of different training strategies of CNFGNN: (1) Centralized: CNFGNN trained with centralized data where all nodes share one single encoder-decoder. (2) ",
|
| 886 |
+
"bbox": [
|
| 887 |
+
173,
|
| 888 |
+
602,
|
| 889 |
+
354,
|
| 890 |
+
712
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 7
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "table",
|
| 896 |
+
"img_path": "images/11fb50f7e5ddfd6f52755ef1959f9f94b005b0b0a253152894714e71b65f29d6.jpg",
|
| 897 |
+
"table_caption": [
|
| 898 |
+
"Table 5: Comparison of test error (RMSE) and the communication cost during training of different training strategies of CNFGNN. "
|
| 899 |
+
],
|
| 900 |
+
"table_footnote": [],
|
| 901 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">PEMS-BAY</td><td colspan=\"2\">METR-LA</td></tr><tr><td>RMSE</td><td>Train Comm Cost (GB)</td><td>RMSE</td><td>Train Comm Cost (GB)</td></tr><tr><td>Centralized</td><td>3.816</td><td></td><td>11.471</td><td></td></tr><tr><td>SL</td><td>3.914</td><td>350.366</td><td>12.186</td><td>307.627</td></tr><tr><td>SL + FedAvg</td><td>4.383</td><td>80.200</td><td>11.631</td><td>343.031</td></tr><tr><td>AT, w/o FedAvg</td><td>4.003</td><td>5221.576</td><td>11.912</td><td>2434.985</td></tr><tr><td>AT +FedAvg</td><td>3.822</td><td>237.654</td><td>11.487</td><td>222.246</td></tr></table>",
|
| 902 |
+
"bbox": [
|
| 903 |
+
372,
|
| 904 |
+
657,
|
| 905 |
+
818,
|
| 906 |
+
797
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 7
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "Split Learning (SL): CNFGNN trained with split learning (Singh et al., 2019), where models on nodes and the model on the server are jointly trained by exchanging hidden vectors and gradients. (3) Split ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
173,
|
| 915 |
+
713,
|
| 916 |
+
354,
|
| 917 |
+
823
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 7
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "Learning $^ +$ FedAvg $\\mathrm { \\bf S L + }$ FedAvg): A variant of SL that synchronizes the weights of encoderdecoder modules periodically with FedAvg. (4) Alternating training without Federated Averaging of models on nodes (AT, w/o FedAvg). (5) Alternating training with Federated Averaging on nodes described in Section 3.2.3 $\\mathbf { \\Delta A T } + \\mathbf { F e d A v g }$ ). ",
|
| 924 |
+
"bbox": [
|
| 925 |
+
173,
|
| 926 |
+
824,
|
| 927 |
+
825,
|
| 928 |
+
880
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 7
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "Discussion Figure 2 shows the validation loss during training of different training strategies on PEMS-BAY and METR-LA datasets, and Table 5 shows their prediction performance and the communication cost in training. We notice that (1) SL suffers from suboptimal prediction performance and high communication costs on both datasets; SL $^ +$ FedAvg does not have consistent results on both datasets and its performance is always inferior to AT $\\cdot$ FedAvg. AT $\\cdot$ FedAvg consistently outperforms other baselines on both datasets, including its variant without FedAvg. (2) AT $^ +$ FedAvg has the lowest communication cost on METR-LA and the 2nd lowest communication cost on PEMS-BAY, on which the baseline with the lowest communication cost ( $\\mathrm { S L } +$ FedAvg) has a much higher prediction error (4.383 vs 3.822). Both illustrate that our proposed training strategy, $\\mathrm { S L } +$ FedAvg, achieves the best prediction performance as well as low communication cost compared to other baseline strategies. ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
173,
|
| 937 |
+
895,
|
| 938 |
+
821,
|
| 939 |
+
924
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 7
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "text",
|
| 945 |
+
"text": "",
|
| 946 |
+
"bbox": [
|
| 947 |
+
173,
|
| 948 |
+
103,
|
| 949 |
+
825,
|
| 950 |
+
229
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 8
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "text",
|
| 956 |
+
"text": "4.4 ABLATION STUDY: EFFECT OF CLIENT ROUNDS AND SERVER ROUNDS ",
|
| 957 |
+
"text_level": 1,
|
| 958 |
+
"bbox": [
|
| 959 |
+
174,
|
| 960 |
+
247,
|
| 961 |
+
705,
|
| 962 |
+
262
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 8
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "Set-up We further investigate the effect of different compositions of the number of client rounds $( R _ { s } )$ in Algorithm 2 and the number of server rounds $( R _ { c } )$ in Algorithm 1. To this end, we vary both $R _ { c }$ and $R _ { s }$ over [1,10,20]. ",
|
| 969 |
+
"bbox": [
|
| 970 |
+
174,
|
| 971 |
+
275,
|
| 972 |
+
825,
|
| 973 |
+
318
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 8
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"type": "text",
|
| 979 |
+
"text": "Discussion Figure 3 shows the forecasting performance (measured with RMSE) and the total communication cost in the training of CNFGNN under all compositions of $( R _ { c }$ , $R _ { s }$ ) on the METR-LA dataset. We observe that: (1) Models with lower ${ \\cal R } _ { c } / { \\cal R } _ { s }$ ratios $( R _ { c } / R _ { s } ~ < ~ 0 . 5 )$ tend to have lower forecasting errors while models with higher ${ \\cal R } _ { c } / { \\cal R } _ { s }$ ratios $( R _ { c } / R _ { s } > 2 )$ have lower communication cost in training. This is because the lower ratio of ${ \\cal R } _ { c } / { \\cal R } _ { s }$ encourages more frequent exchange of node information at the expense of higher communication cost, while the higher ratio of ${ \\cal R } _ { c } / { \\cal R } _ { s }$ acts in the opposite way. (2) Models with similar ${ \\cal R } _ { c } / { \\cal R } _ { s }$ ratios have similar communication costs, while those with lower ",
|
| 980 |
+
"bbox": [
|
| 981 |
+
174,
|
| 982 |
+
334,
|
| 983 |
+
419,
|
| 984 |
+
611
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 8
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "image",
|
| 990 |
+
"img_path": "images/aeed15dde9053561a6b6271b85b07c237441559b0d5bbb78fa4218bcae933a69.jpg",
|
| 991 |
+
"image_caption": [
|
| 992 |
+
"Figure 3: Effect of client rounds and server rounds $( R _ { c } , R _ { s } )$ on forecasting performance and communication cost. "
|
| 993 |
+
],
|
| 994 |
+
"image_footnote": [],
|
| 995 |
+
"bbox": [
|
| 996 |
+
436,
|
| 997 |
+
358,
|
| 998 |
+
816,
|
| 999 |
+
537
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 8
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "$R _ { c }$ values perform better, corroborating our observation in (1) that frequent node information exchange improves the forecasting performance. ",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
174,
|
| 1008 |
+
612,
|
| 1009 |
+
821,
|
| 1010 |
+
640
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 8
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "5 CONCLUSION ",
|
| 1017 |
+
"text_level": 1,
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
176,
|
| 1020 |
+
661,
|
| 1021 |
+
318,
|
| 1022 |
+
678
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 8
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "We propose Cross-Node Federated Graph Neural Network (CNFGNN), which bridges the gap between modeling complex spatio-temporal data and decentralized data processing by enabling the use of graph neural networks (GNNs) in the federated learning setting. We accomplish this by decoupling the learning of local temporal models and the server-side spatial model using alternating optimization of spatial and temporal modules based on split learning and federated averaging. Our experimental results on traffic flow prediction on two real-world datasets show superior performance as compared to competing techniques. Our future work includes applying existing GNN models with sampling strategies and integrating them into CNFGNN for large-scale graphs, extending CNFGNN to a fully decentralized framework, and incorporating existing privacy-preserving methods for graph learning to CNFGNN, to enhance federated learning of spatio-temporal dynamics. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
174,
|
| 1031 |
+
694,
|
| 1032 |
+
825,
|
| 1033 |
+
834
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 8
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "REFERENCES ",
|
| 1040 |
+
"text_level": 1,
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
174,
|
| 1043 |
+
857,
|
| 1044 |
+
285,
|
| 1045 |
+
872
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 8
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Alekh Agarwal, Animashree Anandkumar, Prateek Jain, Praneeth Netrapalli, and Rashish Tandon. Learning sparsely used overcomplete dictionaries. In Conference on Learning Theory, pp. 123– 137, 2014. ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
176,
|
| 1054 |
+
882,
|
| 1055 |
+
823,
|
| 1056 |
+
922
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 8
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "Sanjeev Arora, Rong Ge, and Ankur Moitra. New algorithms for learning incoherent and overcomplete dictionaries. In Conference on Learning Theory, pp. 779–806, 2014. ",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
173,
|
| 1065 |
+
103,
|
| 1066 |
+
823,
|
| 1067 |
+
133
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 9
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "Sanjeev Arora, Rong Ge, Tengyu Ma, and Ankur Moitra. Simple, efficient, and neural algorithms for sparse coding. 2015. ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
173,
|
| 1076 |
+
140,
|
| 1077 |
+
823,
|
| 1078 |
+
169
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 9
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "Omri Azencot, N Benjamin Erichson, Vanessa Lin, and Michael W Mahoney. Forecasting sequential data using consistent koopman autoencoders. In ICML, 2020. ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
173,
|
| 1087 |
+
176,
|
| 1088 |
+
823,
|
| 1089 |
+
205
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 9
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "Peter Battaglia, Razvan Pascanu, Matthew Lai, Danilo Jimenez Rezende, et al. Interaction networks for learning about objects, relations and physics. In Advances in neural information processing systems, pp. 4502–4510, 2016. ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
174,
|
| 1098 |
+
213,
|
| 1099 |
+
823,
|
| 1100 |
+
256
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 9
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018. ",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
173,
|
| 1109 |
+
263,
|
| 1110 |
+
826,
|
| 1111 |
+
320
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 9
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "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. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1724–1734, 2014. ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
173,
|
| 1120 |
+
329,
|
| 1121 |
+
825,
|
| 1122 |
+
386
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 9
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in neural information processing systems, pp. 1024–1034, 2017. ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
176,
|
| 1131 |
+
392,
|
| 1132 |
+
820,
|
| 1133 |
+
422
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 9
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "Chaoyang He, Salman Avestimehr, and Murali Annavaram. Group knowledge transfer: Collaborative training of large cnns on the edge. arXiv preprint arXiv:2007.14513, 2020. ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
173,
|
| 1142 |
+
429,
|
| 1143 |
+
821,
|
| 1144 |
+
459
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 9
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Wenbing Huang, Tong Zhang, Yu Rong, and Junzhou Huang. Adaptive sampling towards fast graph representation learning. In Advances in neural information processing systems, pp. 4558–4567, 2018. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
174,
|
| 1153 |
+
467,
|
| 1154 |
+
823,
|
| 1155 |
+
510
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 9
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Prateek Jain and Purushottam Kar. Non-convex optimization for machine learning. Foundations and Trends $\\textsuperscript { \\textregistered }$ in Machine Learning, 10(3-4):142–363, 2017. ISSN 1935-8237. doi: 10.1561/ 2200000058. URL http://dx.doi.org/10.1561/2200000058. ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
174,
|
| 1164 |
+
517,
|
| 1165 |
+
821,
|
| 1166 |
+
560
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 9
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "Peter Kairouz, H Brendan McMahan, Brendan Avent, Aurelien Bellet, Mehdi Bennis, Arjun Nitin ´ Bhagoji, Keith Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, et al. Advances and open problems in federated learning. arXiv preprint arXiv:1912.04977, 2019. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
174,
|
| 1175 |
+
568,
|
| 1176 |
+
823,
|
| 1177 |
+
611
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 9
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J Reddi, Sebastian U Stich, and Ananda Theertha Suresh. Scaffold: Stochastic controlled averaging for federated learning. In Proceedings of the 37th International Conference on Machine Learning, 2020. ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
173,
|
| 1186 |
+
618,
|
| 1187 |
+
825,
|
| 1188 |
+
661
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 9
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations (ICLR), 2017. ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
173,
|
| 1197 |
+
669,
|
| 1198 |
+
820,
|
| 1199 |
+
699
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 9
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "Thomas N Kipf, Ethan Fetaya, Kuan-Chieh Wang, Max Welling, and Richard S Zemel. Neural relational inference for interacting systems. In ICML, 2018. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
174,
|
| 1208 |
+
705,
|
| 1209 |
+
820,
|
| 1210 |
+
736
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 9
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Max Guangyu Li, Bo Jiang, Hao Zhu, Zhengping Che, and Yan Liu. Generative attention networks for multi-agent behavioral modeling. In AAAI, 2020a. ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
171,
|
| 1219 |
+
742,
|
| 1220 |
+
823,
|
| 1221 |
+
772
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 9
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Tian Li, Anit Kumar Sahu, Manzil Zaheer, Maziar Sanjabi, Ameet Talwalkar, and Virginia Smith. Federated optimization in heterogeneous networks. In Proceedings of the 3rd MLSys Conference, 2020b. ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
174,
|
| 1230 |
+
780,
|
| 1231 |
+
823,
|
| 1232 |
+
823
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 9
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "Yaguang Li, Rose Yu, Cyrus Shahabi, and Yan Liu. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. In International Conference on Learning Representations (ICLR ’18), 2018. ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
173,
|
| 1241 |
+
830,
|
| 1242 |
+
823,
|
| 1243 |
+
873
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 9
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Paul Pu Liang, Terrance Liu, Liu Ziyin, Ruslan Salakhutdinov, and Louis-Philippe Morency. Think locally, act globally: Federated learning with local and global representations. arXiv preprint arXiv:2001.01523, 2020. ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
174,
|
| 1252 |
+
881,
|
| 1253 |
+
825,
|
| 1254 |
+
924
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 9
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "Ziyu Liu, Hongwen Zhang, Zhenghao Chen, Zhiyong Wang, and Wanli Ouyang. Disentangling and unifying graph convolutions for skeleton-based action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 143–152, 2020. ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
174,
|
| 1263 |
+
103,
|
| 1264 |
+
823,
|
| 1265 |
+
146
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 10
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Artificial Intelligence and Statistics, pp. 1273–1282. PMLR, 2017. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
178,
|
| 1274 |
+
155,
|
| 1275 |
+
820,
|
| 1276 |
+
198
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 10
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Guangxu Mei, Ziyu Guo, Shijun Liu, and Li Pan. Sgnn: A graph neural network based federated learning approach by hiding structure. In 2019 IEEE International Conference on Big Data (Big Data), pp. 2560–2568. IEEE, 2019. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
174,
|
| 1285 |
+
207,
|
| 1286 |
+
823,
|
| 1287 |
+
250
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 10
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Sina Sajadmanesh and Daniel Gatica-Perez. When differential privacy meets graph neural networks. arXiv preprint arXiv:2006.05535, 2020. ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
173,
|
| 1296 |
+
257,
|
| 1297 |
+
821,
|
| 1298 |
+
286
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 10
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Sungyong Seo, Chuizheng Meng, and Yan Liu. Physics-aware difference graph networks for sparsely-observed dynamics. In International Conference on Learning Representations, 2019. ",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
171,
|
| 1307 |
+
295,
|
| 1308 |
+
823,
|
| 1309 |
+
325
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 10
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Abhishek Singh, Praneeth Vepakomma, Otkrist Gupta, and Ramesh Raskar. Detailed comparison of communication efficiency of split learning and federated learning. arXiv preprint arXiv:1909.09145, 2019. ",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
174,
|
| 1318 |
+
333,
|
| 1319 |
+
825,
|
| 1320 |
+
376
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 10
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet S Talwalkar. Federated multi-task learning. In Advances in Neural Information Processing Systems, pp. 4424–4434, 2017. ",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
173,
|
| 1329 |
+
385,
|
| 1330 |
+
823,
|
| 1331 |
+
415
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 10
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Toyotaro Suzumura, Yi Zhou, Natahalie Barcardo, Guangnan Ye, Keith Houck, Ryo Kawahara, Ali Anwar, Lucia Larise Stavarache, Daniel Klyashtorny, Heiko Ludwig, et al. Towards federated graph learning for collaborative financial crimes detection. arXiv preprint arXiv:1909.12946, 2019. ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
173,
|
| 1340 |
+
422,
|
| 1341 |
+
825,
|
| 1342 |
+
479
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 10
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "Keyulu Xu, Jingling Li, Mozhi Zhang, Simon S Du, Ken-ichi Kawarabayashi, and Stefanie Jegelka. What can neural networks reason about? In International Conference on Learning Representations (ICLR), 2019. ",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
174,
|
| 1351 |
+
488,
|
| 1352 |
+
823,
|
| 1353 |
+
531
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 10
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "Sijie Yan, Yuanjun Xiong, and Dahua Lin. Spatial temporal graph convolutional networks for skeleton-based action recognition. In AAAI, 2018. ",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
169,
|
| 1362 |
+
539,
|
| 1363 |
+
823,
|
| 1364 |
+
569
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 10
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "Rex Ying, Ruining He, Kaifeng Chen, Pong Eksombatchai, William L Hamilton, and Jure Leskovec. Graph convolutional neural networks for web-scale recommender systems. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 974– 983, 2018. ",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
173,
|
| 1373 |
+
577,
|
| 1374 |
+
825,
|
| 1375 |
+
633
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 10
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "text",
|
| 1381 |
+
"text": "Jiaxuan You, Rex Ying, and Jure Leskovec. Position-aware graph neural networks. In Proceedings of the 36th International Conference on Machine Learning, 2019. ",
|
| 1382 |
+
"bbox": [
|
| 1383 |
+
169,
|
| 1384 |
+
642,
|
| 1385 |
+
823,
|
| 1386 |
+
672
|
| 1387 |
+
],
|
| 1388 |
+
"page_idx": 10
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"type": "text",
|
| 1392 |
+
"text": "Bing Yu, Haoteng Yin, and Zhanxing Zhu. Spatio-temporal graph convolutional networks: A deep learning framework for traffic forecasting. In Proceedings of the 27th International Joint Conference on Artificial Intelligence (IJCAI), 2018. ",
|
| 1393 |
+
"bbox": [
|
| 1394 |
+
174,
|
| 1395 |
+
680,
|
| 1396 |
+
823,
|
| 1397 |
+
723
|
| 1398 |
+
],
|
| 1399 |
+
"page_idx": 10
|
| 1400 |
+
},
|
| 1401 |
+
{
|
| 1402 |
+
"type": "text",
|
| 1403 |
+
"text": "Jun Zhou, Chaochao Chen, Longfei Zheng, Xiaolin Zheng, Bingzhe Wu, Ziqi Liu, and Li Wang. Privacy-preserving graph neural network for node classification. arXiv preprint arXiv:2005.11903, 2020. ",
|
| 1404 |
+
"bbox": [
|
| 1405 |
+
174,
|
| 1406 |
+
732,
|
| 1407 |
+
825,
|
| 1408 |
+
775
|
| 1409 |
+
],
|
| 1410 |
+
"page_idx": 10
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"type": "text",
|
| 1414 |
+
"text": "A APPENDIX ",
|
| 1415 |
+
"text_level": 1,
|
| 1416 |
+
"bbox": [
|
| 1417 |
+
176,
|
| 1418 |
+
102,
|
| 1419 |
+
299,
|
| 1420 |
+
118
|
| 1421 |
+
],
|
| 1422 |
+
"page_idx": 11
|
| 1423 |
+
},
|
| 1424 |
+
{
|
| 1425 |
+
"type": "text",
|
| 1426 |
+
"text": "A.1 DETAILED EXPERIMENT SETTINGS ",
|
| 1427 |
+
"bbox": [
|
| 1428 |
+
176,
|
| 1429 |
+
133,
|
| 1430 |
+
460,
|
| 1431 |
+
148
|
| 1432 |
+
],
|
| 1433 |
+
"page_idx": 11
|
| 1434 |
+
},
|
| 1435 |
+
{
|
| 1436 |
+
"type": "text",
|
| 1437 |
+
"text": "Unless noted otherwise, all models are optimized using the Adam optimizer with the learning rate 1e-3. ",
|
| 1438 |
+
"bbox": [
|
| 1439 |
+
174,
|
| 1440 |
+
159,
|
| 1441 |
+
823,
|
| 1442 |
+
186
|
| 1443 |
+
],
|
| 1444 |
+
"page_idx": 11
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"type": "text",
|
| 1448 |
+
"text": "GRU (centralized) : Gated Recurrent Unit (GRU) model trained with centralized sensor data. The GRU model with 63K parameters is a 1-layer GRU with hidden dimension 100, and the GRU model with 727K parameters is a 2-layer GRU with hidden dimension 200. ",
|
| 1449 |
+
"bbox": [
|
| 1450 |
+
174,
|
| 1451 |
+
202,
|
| 1452 |
+
823,
|
| 1453 |
+
246
|
| 1454 |
+
],
|
| 1455 |
+
"page_idx": 11
|
| 1456 |
+
},
|
| 1457 |
+
{
|
| 1458 |
+
"type": "text",
|
| 1459 |
+
"text": "GRU (local) We train one GRU model for each node with the local data only. ",
|
| 1460 |
+
"bbox": [
|
| 1461 |
+
173,
|
| 1462 |
+
260,
|
| 1463 |
+
692,
|
| 1464 |
+
275
|
| 1465 |
+
],
|
| 1466 |
+
"page_idx": 11
|
| 1467 |
+
},
|
| 1468 |
+
{
|
| 1469 |
+
"type": "text",
|
| 1470 |
+
"text": "GRU $^ +$ FedAvg We train a single GRU model with Federated Averaging (McMahan et al., 2017). \nWe select 1 as the number of local epochs. ",
|
| 1471 |
+
"bbox": [
|
| 1472 |
+
174,
|
| 1473 |
+
290,
|
| 1474 |
+
820,
|
| 1475 |
+
319
|
| 1476 |
+
],
|
| 1477 |
+
"page_idx": 11
|
| 1478 |
+
},
|
| 1479 |
+
{
|
| 1480 |
+
"type": "text",
|
| 1481 |
+
"text": "$\\mathbf { G R U } + \\mathbf { F M T L }$ We train one GRU model for each node using the federated multi-task learning (FMTL) with cluster regularization (Smith et al., 2017) given by the adjacency matrix. More specifically, the cluster regularization (without the L2-norm regularization term) takes the following form: ",
|
| 1482 |
+
"bbox": [
|
| 1483 |
+
173,
|
| 1484 |
+
334,
|
| 1485 |
+
825,
|
| 1486 |
+
377
|
| 1487 |
+
],
|
| 1488 |
+
"page_idx": 11
|
| 1489 |
+
},
|
| 1490 |
+
{
|
| 1491 |
+
"type": "equation",
|
| 1492 |
+
"img_path": "images/04f3335e068d20564d0db98938598be7fcbc4c25669ed5da9c5cf6be4b3b0854.jpg",
|
| 1493 |
+
"text": "$$\n\\mathcal { R } ( W , \\mathfrak { L } ) = \\lambda \\mathrm { t r } ( W \\Omega W ^ { T } ) .\n$$",
|
| 1494 |
+
"text_format": "latex",
|
| 1495 |
+
"bbox": [
|
| 1496 |
+
400,
|
| 1497 |
+
383,
|
| 1498 |
+
598,
|
| 1499 |
+
402
|
| 1500 |
+
],
|
| 1501 |
+
"page_idx": 11
|
| 1502 |
+
},
|
| 1503 |
+
{
|
| 1504 |
+
"type": "text",
|
| 1505 |
+
"text": "Given the constructed adjacency matrix $\\pmb { A }$ , $\\begin{array} { r } { \\pmb { \\Omega } = \\frac { 1 } { | \\mathcal { V } | } ( \\pmb { D } - \\pmb { A } ) = \\frac { 1 } { | \\mathcal { V } | } \\pmb { L } } \\end{array}$ , where $_ { D }$ is the degree matrix and $\\pmb { L }$ is the Laplacian matrix. Equation A1 can be reformulated as: ",
|
| 1506 |
+
"bbox": [
|
| 1507 |
+
174,
|
| 1508 |
+
407,
|
| 1509 |
+
825,
|
| 1510 |
+
440
|
| 1511 |
+
],
|
| 1512 |
+
"page_idx": 11
|
| 1513 |
+
},
|
| 1514 |
+
{
|
| 1515 |
+
"type": "equation",
|
| 1516 |
+
"img_path": "images/eb7c5daaf87cef8304e2f9568af7901debcc9d582a75d522926f2130132fc909.jpg",
|
| 1517 |
+
"text": "$$\n\\begin{array} { r l } { { \\mathcal { R } ( W , \\pmb { \\Omega } ) = \\lambda \\mathrm { t r } ( W \\pmb { \\Omega } W ^ { T } ) = \\frac { \\lambda } { | \\mathcal { V } | } \\mathrm { t r } ( W \\pmb { L } W ^ { T } ) } } \\\\ & { = \\frac { \\lambda } { | \\mathcal { V } | } \\mathrm { t r } ( \\displaystyle \\sum _ { i \\in \\mathcal { V } } \\pmb { w } _ { i } \\displaystyle \\sum _ { j \\not = i } a _ { i j } \\pmb { w } _ { i } ^ { T } - \\displaystyle \\sum _ { j \\not = i } \\pmb { w } _ { i } a _ { i j } \\pmb { w } _ { j } ^ { T } ) } \\\\ & { = \\lambda _ { 1 } ( \\displaystyle \\sum _ { i \\in \\mathcal { V } } \\displaystyle \\sum _ { j \\not = i } \\alpha _ { i , j } \\langle \\pmb { w } _ { i } , \\pmb { w } _ { i } - \\pmb { w } _ { j } \\rangle ) . } \\end{array}\n$$",
|
| 1518 |
+
"text_format": "latex",
|
| 1519 |
+
"bbox": [
|
| 1520 |
+
251,
|
| 1521 |
+
445,
|
| 1522 |
+
745,
|
| 1523 |
+
558
|
| 1524 |
+
],
|
| 1525 |
+
"page_idx": 11
|
| 1526 |
+
},
|
| 1527 |
+
{
|
| 1528 |
+
"type": "text",
|
| 1529 |
+
"text": "We implement the cluster regularization via sharing model weights between each pair of nodes connected by an edge and select $\\lambda _ { 1 } = 0 . 1$ . ",
|
| 1530 |
+
"bbox": [
|
| 1531 |
+
173,
|
| 1532 |
+
563,
|
| 1533 |
+
823,
|
| 1534 |
+
590
|
| 1535 |
+
],
|
| 1536 |
+
"page_idx": 11
|
| 1537 |
+
},
|
| 1538 |
+
{
|
| 1539 |
+
"type": "text",
|
| 1540 |
+
"text": "CNFGNN We use a GRU-based encoder-decoder model as the model on nodes, which has 1 GRU layer and hidden dimension 64. We use a 2-layer Graph Network (GN) with residual connections as the Graph Neural Network model on the server side. We use the same network architecture for the edge/node/global update function in each GN layer: a multi-layer perceptron (MLP) with 3 hidden layers, whose sizes are [256, 256, 128] respectively. We choose $R _ { c } = 1 , R _ { s } = 2 0$ for experiments on PEMS-BAY, and $R _ { c } = 1 , R _ { s } = 1$ for METR-LA. ",
|
| 1541 |
+
"bbox": [
|
| 1542 |
+
173,
|
| 1543 |
+
606,
|
| 1544 |
+
825,
|
| 1545 |
+
690
|
| 1546 |
+
],
|
| 1547 |
+
"page_idx": 11
|
| 1548 |
+
},
|
| 1549 |
+
{
|
| 1550 |
+
"type": "text",
|
| 1551 |
+
"text": "A.2 CALCULATION OF COMMUNICATION COST ",
|
| 1552 |
+
"text_level": 1,
|
| 1553 |
+
"bbox": [
|
| 1554 |
+
174,
|
| 1555 |
+
707,
|
| 1556 |
+
516,
|
| 1557 |
+
722
|
| 1558 |
+
],
|
| 1559 |
+
"page_idx": 11
|
| 1560 |
+
},
|
| 1561 |
+
{
|
| 1562 |
+
"type": "text",
|
| 1563 |
+
"text": "We denote $R$ as the number of communication rounds for one model to reach the lowest validation error in the training stage. ",
|
| 1564 |
+
"bbox": [
|
| 1565 |
+
173,
|
| 1566 |
+
732,
|
| 1567 |
+
823,
|
| 1568 |
+
762
|
| 1569 |
+
],
|
| 1570 |
+
"page_idx": 11
|
| 1571 |
+
},
|
| 1572 |
+
{
|
| 1573 |
+
"type": "text",
|
| 1574 |
+
"text": "$\\mathbf { G R U + F M T L }$ Using Equation A2, in each communication round, each pair of nodes exchange their model weights, thus the total communicated data amount is calculated as: ",
|
| 1575 |
+
"bbox": [
|
| 1576 |
+
171,
|
| 1577 |
+
776,
|
| 1578 |
+
823,
|
| 1579 |
+
806
|
| 1580 |
+
],
|
| 1581 |
+
"page_idx": 11
|
| 1582 |
+
},
|
| 1583 |
+
{
|
| 1584 |
+
"type": "equation",
|
| 1585 |
+
"img_path": "images/b396ba77e4d62589b2647972bcc574adf18279067e6a3185a6cb9b9c14fc0a6c.jpg",
|
| 1586 |
+
"text": "$$\nR \\times \\# \\mathrm { n o n s e l f ~ d i r e c t e d ~ e d g e s } \\times \\mathrm { s i z e ~ o f ~ n o d e ~ m o d e l ~ w e i g h t s } .\n$$",
|
| 1587 |
+
"text_format": "latex",
|
| 1588 |
+
"bbox": [
|
| 1589 |
+
292,
|
| 1590 |
+
813,
|
| 1591 |
+
705,
|
| 1592 |
+
829
|
| 1593 |
+
],
|
| 1594 |
+
"page_idx": 11
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"type": "text",
|
| 1598 |
+
"text": "CNFGNN (AT $^ +$ FedAvg) In each communication round, the central server fetches and sends back model weights to each node for Federated Averaging, and transmits hidden vectors and gradients for Split Learning. The total communicated data amount is calculated as: ",
|
| 1599 |
+
"bbox": [
|
| 1600 |
+
174,
|
| 1601 |
+
843,
|
| 1602 |
+
825,
|
| 1603 |
+
886
|
| 1604 |
+
],
|
| 1605 |
+
"page_idx": 11
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "equation",
|
| 1609 |
+
"img_path": "images/86179e2cfe1f3af68fed3c6e5b3cd6fbc9d44870beabf26434d26f54f38a87b9.jpg",
|
| 1610 |
+
"text": "$$\n\\begin{array} { r l } & { R \\times ( \\mathrm { \\# n o d e s } \\times \\mathrm { s i z e ~ o f ~ n o d e ~ m o d e l ~ w e i g h t s } \\times 2 } \\\\ & { \\quad + ( 1 + 2 * \\mathrm { s e r v e r ~ r o u n d } + 1 ) \\times \\mathrm { \\# n o d e s } \\times \\mathrm { h i d d e n ~ s t a t e ~ s i z e } ) . } \\end{array}\n$$",
|
| 1611 |
+
"text_format": "latex",
|
| 1612 |
+
"bbox": [
|
| 1613 |
+
279,
|
| 1614 |
+
892,
|
| 1615 |
+
717,
|
| 1616 |
+
929
|
| 1617 |
+
],
|
| 1618 |
+
"page_idx": 11
|
| 1619 |
+
},
|
| 1620 |
+
{
|
| 1621 |
+
"type": "text",
|
| 1622 |
+
"text": "CNFGNN (SL) In each communication round, each node sends and fetches hidden vectors and graidents twice (one for encoder, the other for decoder) and the total communicated data amount is: ",
|
| 1623 |
+
"bbox": [
|
| 1624 |
+
171,
|
| 1625 |
+
103,
|
| 1626 |
+
825,
|
| 1627 |
+
132
|
| 1628 |
+
],
|
| 1629 |
+
"page_idx": 12
|
| 1630 |
+
},
|
| 1631 |
+
{
|
| 1632 |
+
"type": "equation",
|
| 1633 |
+
"img_path": "images/e37c5d1dd6ae0dead5332a3f9be3a01b29f1ee973ab27a7e7578835df53a5f23.jpg",
|
| 1634 |
+
"text": "$$\n-\n$$",
|
| 1635 |
+
"text_format": "latex",
|
| 1636 |
+
"bbox": [
|
| 1637 |
+
356,
|
| 1638 |
+
140,
|
| 1639 |
+
642,
|
| 1640 |
+
156
|
| 1641 |
+
],
|
| 1642 |
+
"page_idx": 12
|
| 1643 |
+
},
|
| 1644 |
+
{
|
| 1645 |
+
"type": "text",
|
| 1646 |
+
"text": "CNFGNN $\\mathrm { \\bf { S L + } }$ FedAvg) Compared to CNFGNN (SL), the method has extra communcation cost for FedAvg in each round, thus the total communicated data amount is: ",
|
| 1647 |
+
"bbox": [
|
| 1648 |
+
171,
|
| 1649 |
+
193,
|
| 1650 |
+
825,
|
| 1651 |
+
222
|
| 1652 |
+
],
|
| 1653 |
+
"page_idx": 12
|
| 1654 |
+
},
|
| 1655 |
+
{
|
| 1656 |
+
"type": "equation",
|
| 1657 |
+
"img_path": "images/6dd4d0454c9e5d1d141ca3310dab20abee4c9fe48201a3f5b1c679909e392f31.jpg",
|
| 1658 |
+
"text": "$$\n-\n$$",
|
| 1659 |
+
"text_format": "latex",
|
| 1660 |
+
"bbox": [
|
| 1661 |
+
186,
|
| 1662 |
+
228,
|
| 1663 |
+
794,
|
| 1664 |
+
244
|
| 1665 |
+
],
|
| 1666 |
+
"page_idx": 12
|
| 1667 |
+
},
|
| 1668 |
+
{
|
| 1669 |
+
"type": "text",
|
| 1670 |
+
"text": "CNFGNN (AT, w/o FedAvg) Compared to CNFGNN (AT $^ +$ FedAvg), there is no communcation cost for the FedAvg part, thus the total communcated data amount is: ",
|
| 1671 |
+
"bbox": [
|
| 1672 |
+
171,
|
| 1673 |
+
286,
|
| 1674 |
+
823,
|
| 1675 |
+
315
|
| 1676 |
+
],
|
| 1677 |
+
"page_idx": 12
|
| 1678 |
+
},
|
| 1679 |
+
{
|
| 1680 |
+
"type": "equation",
|
| 1681 |
+
"img_path": "images/4fcef62a6c5f963db3fb727165a418098db90ce36b28c66adb7e152dd4d3c29b.jpg",
|
| 1682 |
+
"text": "$$\n-\n$$",
|
| 1683 |
+
"text_format": "latex",
|
| 1684 |
+
"bbox": [
|
| 1685 |
+
276,
|
| 1686 |
+
321,
|
| 1687 |
+
705,
|
| 1688 |
+
339
|
| 1689 |
+
],
|
| 1690 |
+
"page_idx": 12
|
| 1691 |
+
},
|
| 1692 |
+
{
|
| 1693 |
+
"type": "table",
|
| 1694 |
+
"img_path": "images/9270a2aa17865f403dd1787a3c63a8b0c3b35b467205705a99a3b2ff29952d05.jpg",
|
| 1695 |
+
"table_caption": [
|
| 1696 |
+
"Table A1: Parameters used for calculating the communication cost of $\\mathrm { G R U + F M T L }$ . "
|
| 1697 |
+
],
|
| 1698 |
+
"table_footnote": [],
|
| 1699 |
+
"table_body": "<table><tr><td colspan=\"2\">Method</td><td colspan=\"2\">GRU (63K) + FMTL GRU (727K) + FMTL</td></tr><tr><td colspan=\"2\">Node Model Weights Size (GB)</td><td>2.347E-4</td><td>2.708E-3</td></tr><tr><td rowspan=\"3\">PEMS-BAY</td><td>#Nonself Directed Edges</td><td>2369</td><td></td></tr><tr><td>R</td><td>104</td><td>56</td></tr><tr><td>Train Comm Cost (GB)</td><td>57.823</td><td>359.292</td></tr><tr><td rowspan=\"3\">METR-LA</td><td>#Nonself Directed Edges</td><td></td><td>1515</td></tr><tr><td>R</td><td>279</td><td>176</td></tr><tr><td>Train Comm ( Cost (GB)</td><td>99.201</td><td>722.137</td></tr></table>",
|
| 1700 |
+
"bbox": [
|
| 1701 |
+
204,
|
| 1702 |
+
397,
|
| 1703 |
+
794,
|
| 1704 |
+
537
|
| 1705 |
+
],
|
| 1706 |
+
"page_idx": 12
|
| 1707 |
+
},
|
| 1708 |
+
{
|
| 1709 |
+
"type": "table",
|
| 1710 |
+
"img_path": "images/a96f6681567494bf93eeba203f3ff8524c5df2c261093780dfd0f868da2a0f36.jpg",
|
| 1711 |
+
"table_caption": [
|
| 1712 |
+
"Table A2: Parameters used for calculating the communication cost of CNFGNN (AT $\\cdot$ FedAvg). "
|
| 1713 |
+
],
|
| 1714 |
+
"table_footnote": [],
|
| 1715 |
+
"table_body": "<table><tr><td>Node Model Weights Size (GB)</td><td colspan=\"2\">2.384E-4</td></tr><tr><td rowspan=\"3\">PEMS-BAY</td><td>#Nodes</td><td>325</td></tr><tr><td>Hidden State Size (GB) Server Round</td><td>2.173E-3 20</td></tr><tr><td>R</td><td>2</td></tr><tr><td rowspan=\"3\">METR-LA</td><td>Train Comm Cost (GB) #Nodes</td><td>237.654 207</td></tr><tr><td>Hidden State Size (GB)</td><td>1.429E-3</td></tr><tr><td>Server Round R</td><td>1 46</td></tr></table>",
|
| 1716 |
+
"bbox": [
|
| 1717 |
+
308,
|
| 1718 |
+
583,
|
| 1719 |
+
691,
|
| 1720 |
+
773
|
| 1721 |
+
],
|
| 1722 |
+
"page_idx": 12
|
| 1723 |
+
},
|
| 1724 |
+
{
|
| 1725 |
+
"type": "text",
|
| 1726 |
+
"text": "A.3 INDUCTIVE LEARNING ",
|
| 1727 |
+
"text_level": 1,
|
| 1728 |
+
"bbox": [
|
| 1729 |
+
176,
|
| 1730 |
+
800,
|
| 1731 |
+
379,
|
| 1732 |
+
814
|
| 1733 |
+
],
|
| 1734 |
+
"page_idx": 12
|
| 1735 |
+
},
|
| 1736 |
+
{
|
| 1737 |
+
"type": "text",
|
| 1738 |
+
"text": "We have added results using $\\cdot$ and $5 \\%$ data on both datasets and we show the table of inductive learning results as Table A6. We observe that: (1) With the portion of visible nodes in the training stage increasing, the prediction error of CNFGNN decreases drastically. However, the increase of the portion of visible nodes has negligible contribution to the performance of GRU $\\cdot$ FedAvg after the portion surpasses $\\cdot$ . Since increasing the ratio of seen nodes in training introduces more complex relationships among nodes to the training data, the difference of performance illustrates that CNFGNN has a stronger capability of capturing complex spatial relationships. (2) When the ratio of visible nodes in training is extremely low $\\cdot$ , there is not enough spatial relationship information in the training data to train the GN module in CNFGNN, and the performance of CNFGNN may not be ideal. We visualize the subgraphs visible in training under different ratios in Figure A1. However, as long as the training data covers a moderate portion of the spatial information of the whole graph, CNFGNN can still leverage the learned spatial connections among nodes effectively and outperforms GRU $+$ FedAvg. We empirically show that the necessary ratio can vary for different datasets ( $2 5 \\%$ for PEMS-BAY and $\\cdot$ for METR-LA). ",
|
| 1739 |
+
"bbox": [
|
| 1740 |
+
173,
|
| 1741 |
+
825,
|
| 1742 |
+
825,
|
| 1743 |
+
924
|
| 1744 |
+
],
|
| 1745 |
+
"page_idx": 12
|
| 1746 |
+
},
|
| 1747 |
+
{
|
| 1748 |
+
"type": "table",
|
| 1749 |
+
"img_path": "images/38fc25f544b3e968ff7c6b0cdf90d166cd581fee8f3b4d6b4348e7fa15ac0f4d.jpg",
|
| 1750 |
+
"table_caption": [
|
| 1751 |
+
"Table A3: Parameters used for calculating the communication cost of CNFGNN (SL). "
|
| 1752 |
+
],
|
| 1753 |
+
"table_footnote": [],
|
| 1754 |
+
"table_body": "<table><tr><td rowspan=\"2\">PEMS-BAY</td><td>#Nodes Hidden State Size (GB) R</td><td>325 2.173E-3 31</td></tr><tr><td>Train Comm Cost (GB)</td><td>350.366</td></tr><tr><td rowspan=\"3\">METR-LA</td><td>#Nodes Hidden State Size (GB)</td><td>207 1.429E-3</td></tr><tr><td>R</td><td>65</td></tr><tr><td>Train Comm Cost (GB)</td><td>307.627</td></tr></table>",
|
| 1755 |
+
"bbox": [
|
| 1756 |
+
328,
|
| 1757 |
+
132,
|
| 1758 |
+
668,
|
| 1759 |
+
261
|
| 1760 |
+
],
|
| 1761 |
+
"page_idx": 13
|
| 1762 |
+
},
|
| 1763 |
+
{
|
| 1764 |
+
"type": "table",
|
| 1765 |
+
"img_path": "images/9269dd3b99e9cfbaad78a980ecc4ccb2686c31076292de1652ad38e20db8b213.jpg",
|
| 1766 |
+
"table_caption": [
|
| 1767 |
+
"Table A4: Parameters used for calculating the communication cost of CNFGNN (SL $^ +$ FedAvg). ",
|
| 1768 |
+
"Table A5: Parameters used for calculating the communication cost of CNFGNN (AT, w/o FedAvg). "
|
| 1769 |
+
],
|
| 1770 |
+
"table_footnote": [],
|
| 1771 |
+
"table_body": "<table><tr><td>Node Model Weights Size (GB)</td><td colspan=\"2\">2.384E-4</td></tr><tr><td>PEMS-BAY</td><td>#Nodes Hidden State Size (GB) R Train Comm Cost (GB)</td><td>325 2.173E-3 7 80.200</td></tr><tr><td>METR-LA</td><td>#Nodes Hidden State Size (GB) R Train Comm Cost (GB)</td><td>207 1.429E-3 71 343.031</td></tr></table>",
|
| 1772 |
+
"bbox": [
|
| 1773 |
+
308,
|
| 1774 |
+
305,
|
| 1775 |
+
691,
|
| 1776 |
+
467
|
| 1777 |
+
],
|
| 1778 |
+
"page_idx": 13
|
| 1779 |
+
},
|
| 1780 |
+
{
|
| 1781 |
+
"type": "image",
|
| 1782 |
+
"img_path": "images/82218b6d5ed79cf9fb8faba82ec055c2f31115267be423b485d38a1203e54314.jpg",
|
| 1783 |
+
"image_caption": [
|
| 1784 |
+
"Figure A1: Visualization of subgraphs visible in training under different ratios. "
|
| 1785 |
+
],
|
| 1786 |
+
"image_footnote": [],
|
| 1787 |
+
"bbox": [
|
| 1788 |
+
176,
|
| 1789 |
+
511,
|
| 1790 |
+
823,
|
| 1791 |
+
888
|
| 1792 |
+
],
|
| 1793 |
+
"page_idx": 13
|
| 1794 |
+
},
|
| 1795 |
+
{
|
| 1796 |
+
"type": "table",
|
| 1797 |
+
"img_path": "images/c18a8970ce8052869bf6af904c2732e732fccb5161433b8647d83e33970190c6.jpg",
|
| 1798 |
+
"table_caption": [
|
| 1799 |
+
"Table A6: Inductive learning performance measured with rooted mean squared error (RMSE). "
|
| 1800 |
+
],
|
| 1801 |
+
"table_footnote": [],
|
| 1802 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">PEMS-BAY</td><td colspan=\"5\">METR-LA</td></tr><tr><td>5%</td><td>25%</td><td>50%</td><td>75%</td><td>90%</td><td>5%</td><td>25%</td><td>50%</td><td>75%</td><td>90%</td></tr><tr><td>GRU (63K)+ FedAvg</td><td>5.087</td><td>4.863</td><td>4.847</td><td>4.859</td><td>4.866</td><td>12.128</td><td>11.993</td><td>12.104</td><td>12.014</td><td>12.016</td></tr><tr><td>CNFGNN (64K + 1M)</td><td>5.869</td><td>4.541</td><td>4.598</td><td>4.197</td><td>3.942</td><td>13.931</td><td>12.013</td><td>11.815</td><td>11.676</td><td>11.629</td></tr></table>",
|
| 1803 |
+
"bbox": [
|
| 1804 |
+
232,
|
| 1805 |
+
127,
|
| 1806 |
+
766,
|
| 1807 |
+
185
|
| 1808 |
+
],
|
| 1809 |
+
"page_idx": 14
|
| 1810 |
+
},
|
| 1811 |
+
{
|
| 1812 |
+
"type": "text",
|
| 1813 |
+
"text": "",
|
| 1814 |
+
"bbox": [
|
| 1815 |
+
173,
|
| 1816 |
+
210,
|
| 1817 |
+
825,
|
| 1818 |
+
308
|
| 1819 |
+
],
|
| 1820 |
+
"page_idx": 14
|
| 1821 |
+
},
|
| 1822 |
+
{
|
| 1823 |
+
"type": "text",
|
| 1824 |
+
"text": "A.4 THE HISTOGRAMS OF DATA ON DIFFERENT NODES ",
|
| 1825 |
+
"text_level": 1,
|
| 1826 |
+
"bbox": [
|
| 1827 |
+
173,
|
| 1828 |
+
325,
|
| 1829 |
+
575,
|
| 1830 |
+
339
|
| 1831 |
+
],
|
| 1832 |
+
"page_idx": 14
|
| 1833 |
+
},
|
| 1834 |
+
{
|
| 1835 |
+
"type": "text",
|
| 1836 |
+
"text": "We show the histograms of traffic speed on different nodes of PEMS-BAY and METR-LA in Figure A2. For each dataset, we only show the first 100 nodes ranked by their IDs for simplicity. The histograms show that the data distribution varies with nodes, thus data on different nodes are not independent and identically distributed. ",
|
| 1837 |
+
"bbox": [
|
| 1838 |
+
173,
|
| 1839 |
+
351,
|
| 1840 |
+
825,
|
| 1841 |
+
407
|
| 1842 |
+
],
|
| 1843 |
+
"page_idx": 14
|
| 1844 |
+
},
|
| 1845 |
+
{
|
| 1846 |
+
"type": "image",
|
| 1847 |
+
"img_path": "images/fbb9448d998bae68ee364eb978642afeeb3a587536740eb8563d4983ca31138b.jpg",
|
| 1848 |
+
"image_caption": [
|
| 1849 |
+
"Figure A2: The histograms of data on the first 100 nodes ranked by ID. "
|
| 1850 |
+
],
|
| 1851 |
+
"image_footnote": [],
|
| 1852 |
+
"bbox": [
|
| 1853 |
+
173,
|
| 1854 |
+
99,
|
| 1855 |
+
825,
|
| 1856 |
+
892
|
| 1857 |
+
],
|
| 1858 |
+
"page_idx": 15
|
| 1859 |
+
}
|
| 1860 |
+
]
|
parse/train/HWX5j6Bv_ih/HWX5j6Bv_ih_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HWX5j6Bv_ih/HWX5j6Bv_ih_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/RHY_9ZVcTa_/RHY_9ZVcTa_.md
ADDED
|
@@ -0,0 +1,467 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ON LINEAR IDENTIFIABILITY OF LEARNED REPRESENTATIONS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Identifiability is a desirable property of a statistical model: it implies that the true model parameters may be estimated to any desired precision, given sufficient computational resources and data. We study identifiability in the context of representation learning: discovering nonlinear data representations that are optimal with respect to some downstream task. When parameterized as deep neural networks, such representation functions lack identifiability in parameter space, because they are overparameterized by design. In this paper, building on recent advances in nonlinear Independent Components Analysis, we aim to rehabilitate identifiability by showing that a large family of discriminative models are in fact identifiable in function space, up to a linear indeterminacy. Many models for representation learning in a wide variety of domains have been identifiable in this sense, including text, images and audio, state-of-the-art at time of publication. We derive sufficient conditions for linear identifiability and provide empirical support for the result on both simulated and real-world data.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
An increasingly common methodology in machine learning is to improve performance on a primary down-stream task by first learning a high-dimensional representation of the data on a related, proxy task. In this paradigm, training a model reduces to fine-tuning the learned representations for optimal performance on a particular sub-task (Erhan et al., 2010). Deep neural networks (DNNs), as flexible function approximators, have been surprisingly successful in discovering effective high-dimensional representations for use in downstream tasks such as image classification (Sharif Razavian et al., 2014), text generation (Radford et al., 2018; Devlin et al., 2018), and sequential decision making (Oord et al., 2018).
|
| 12 |
+
|
| 13 |
+
When learning representations for downstream tasks, it would be useful if the representations were reproducible, in the sense that every time a network relearns the representation function on the same data distribution, they were approximately the same, regardless of small deviations in the initialization of the parameters or the optimization procedure. In some applications, such as learning real-world causal relationships from data, such reproducible learned representations are crucial for accurate and robust inference (Johansson et al., 2016; Louizos et al., 2017). A rigorous way to achieve reproducibility is to choose a model whose representation function is identifiable in function space. Informally speaking, identifiability in function space is achieved when, in the limit of infinite data, there exists a single, global optimum in function space. Interestingly, Figure 1 exhibits learned representation functions that appear to be the same up to a linear transformation, even on finite data and optimized without convergence guarantees (see Appendix A.1 for training details).
|
| 14 |
+
|
| 15 |
+
In this paper, we account for Figure 1 by making precise the relationship it exemplifies. We prove that a large class of discriminative and autoregressive models are identifiable in function space, up to a linear transformation. Our results extend recent advances in the theory of nonlinear Independent Components Analysis (ICA), which have recently provided strong identifiability results for generative models of data (Hyvärinen et al., 2018; Khemakhem et al., 2019; 2020; Sorrenson et al., 2020). Our key contribution is to bridge the gap between these results and discriminative models, commonly used for representation learning (e.g., (Hénaff et al., 2019; Brown et al., 2020)).
|
| 16 |
+
|
| 17 |
+
The rest of the paper is organized as follows. In Section 2, we describe a general discriminative model family, defined by its canonical mathematical form, which generalizes many supervised, selfsupervised, and contrastive learning frameworks. In Section 3, we prove that learned representations in this family have an asymptotic property desirable for representation learning: equality up to a linear transformation. In Section 4, we show that this family includes a number of highly performant models, state-of-the-art at publication for their problem domains, including CPC (Oord et al., 2018), BERT (Devlin et al., 2018), and GPT-2 and GPT-3 (Radford et al., 2018; 2019; Brown et al., 2020). Section 5 investigates the actually realizable regime of finite data and partial optimization, showing that representations learned by members of the identifiable model family approach equality up to a linear transformation as a function of dataset size, neural network capacity, and optimization progress.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Left and Middle: Two learned DNN representation functions ${ \bf f } _ { \pmb { \theta } _ { 1 } } ( { \boldsymbol { B } } )$ , $\cdot$ visualized on held-out data $\boldsymbol { B }$ . The DNNs are word embedding models Mnih and Teh (2012) trained on the Billion Word Dataset (Chelba et al., 2013) (see Appendix A.1 for code release and training details). Right: $A \mathbf { f } _ { \pmb { \theta } _ { 1 } } ( B )$ and $\cdot$ , where $\pmb { A }$ is a linear transformation learned after training. The overlap exhibits linear identifiability (see Section 3): different representation functions, learned on the same data distribution, live within linear transformations of each other in function space.
|
| 21 |
+
|
| 22 |
+
# 2 MODEL FAMILY AND DATA DISTRIBUTION
|
| 23 |
+
|
| 24 |
+
The learned embeddings of a DNN are a function not only of the parameters, but also the network architecture and size of dataset (viewed as a sample from the underlying data distribution). This renders any analysis in full generality challenging. To make such an analysis tractable, in this section, we begin by specifying a set of assumptions about the underlying data distribution and model family that must hold for the learned representations to be similar up to a linear transformation. These assumptions are, in fact, satisfied by a number of already published, highly performant models. We establish definitions in this section, and discuss these existing approaches in depth in Section 4.
|
| 25 |
+
|
| 26 |
+
Data Distribution We assume the existence of a generalized dataset in the form of an empirical distribution $p _ { \mathcal { D } } ( \mathbf { x } , \mathbf { y } , \mathbf { S } )$ over random variables $\mathbf { x }$ , y and S with the following properties:
|
| 27 |
+
|
| 28 |
+
• The random variable $\mathbf { x }$ is an input variable, typically high-dimensional, such as text or an image.
|
| 29 |
+
• The random variable y is a target variable whose value the model predicts. In case of object classification, this would be some semantically meaningful class label. However, in our model family, y may also be a high-dimensional context variable, such a text, image, or sentence fragment.
|
| 30 |
+
• S is a set containing the possible values of y given x, so $p _ { \mathcal { D } } ( \mathbf { y } | \mathbf { x } , \mathbf { S } ) > 0 \iff \mathbf { y } \in \mathbf { S } .$
|
| 31 |
+
|
| 32 |
+
Note that the set of labels S is not fixed, but a random variable. This allows supervised, contrastive, and self-supervised learning frameworks to be analyzed together: the meaning of S encodes the task. For supervised classification, S is deterministic and contains class labels. For self-supervised pretraining, S contains randomly-sampled high-dimensional variables such as image embeddings. For deep metric learning (Hoffer and Ailon, 2015; Sohn, 2016), the set S contains one positive and $k$ negative samples of the class to which $\mathbf { x }$ belongs.
|
| 33 |
+
|
| 34 |
+
Canonical Discriminative Form Given a data distribution as above, a generalized discriminative model family may be defined by its parameterization of the probability of a target variable $\mathbf { y }$ conditioned on an observed variable x and a set S that contains not only the true target label $\mathbf { y }$ , but
|
| 35 |
+
|
| 36 |
+
also a collection of distractors $\mathbf { y } ^ { \prime }$ :
|
| 37 |
+
|
| 38 |
+
$$
|
| 39 |
+
p _ { \theta } ( \mathbf { y } \vert \mathbf { x } , \mathbf { S } ) = \frac { \exp ( \mathbf { f } _ { \theta } ( \mathbf { x } ) ^ { \top } \mathbf { g } _ { \theta } ( \mathbf { y } ) ) } { \sum _ { \mathbf { y } ^ { \prime } \in \mathbf { S } } \exp ( \mathbf { f } _ { \theta } ( \mathbf { x } ) ^ { \top } \mathbf { g } _ { \theta } ( \mathbf { y } ^ { \prime } ) ) } ,
|
| 40 |
+
$$
|
| 41 |
+
|
| 42 |
+
The codomain of the functions $\mathbf { f } _ { \pmb { \theta } } ( \mathbf { x } )$ and $\mathbf { g } _ { \pmb { \theta } } ( \mathbf { y } )$ is $\mathbb { R } ^ { M }$ , and the domains vary according to modelling task. For notational convenience both are parameterized by $\pmb \theta \in \Theta$ , but f and $\mathbf { g }$ may use disjoint parts of $\pmb { \theta }$ , meaning that they do not necessarily share parameters.
|
| 43 |
+
|
| 44 |
+
With $\mathcal { F }$ and $\mathcal { G }$ we denote the function spaces of $\mathbf { f } _ { \theta }$ and $\mathbf { g } _ { \pmb { \theta } }$ respectively. Our primary domain of interest is when $\mathbf { f } _ { \theta }$ and $\mathbf { g } _ { \theta }$ are highly flexible function approximators, such as DNNs. This brings certain analytical challenges. In neural networks, different choices of parameters $\pmb \theta$ can result in the same functions $\mathbf { f } _ { \pmb { \theta } }$ and $\mathbf { g } _ { \theta }$ , hence the map $\Theta \to { \mathcal { F } } \times { \mathcal { G } }$ is many-to-one. In the context of representation learning, the function $\mathbf { f } _ { \theta }$ is typically viewed as a nonlinear feature extractor, e.g., the learned representation of the input data. While other choices meet the membership conditions for the family defined by the canonical form of Equation (1), in the remainder, we will focus on DNNs in the remainder. We next present a definition of identifiability suitable for DNNs, and prove that members of the above family satisfy it under additional assumptions.
|
| 45 |
+
|
| 46 |
+
# 3 MODEL IDENTIFIABILITY
|
| 47 |
+
|
| 48 |
+
In this section, we derive identifiability conditions for models in the family defined in Section 2.
|
| 49 |
+
|
| 50 |
+
# 3.1 IDENTIFIABILITY IN PARAMETER SPACE
|
| 51 |
+
|
| 52 |
+
Identifiability analysis answers the question of whether it is theoretically possible to learn the parameters of a statistical model exactly. Specifically, given some estimator $\pmb { \theta } ^ { \prime }$ for model parameters $\pmb { \theta } ^ { * }$ , identifiability is the property that, for any $\{ \theta ^ { \prime } , \theta ^ { \ast } \} \subset \Theta$ ,
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
p _ { \pmb { \theta } ^ { \prime } } = p _ { \pmb { \theta } ^ { * } } \quad \Longrightarrow \quad \pmb { \theta } ^ { \prime } = \pmb { \theta } ^ { * } .
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
Models that do not have this property are said to be non-identifiable. This happens when different values $\{ \theta ^ { \prime } , \theta ^ { \ast } \} \subset \Theta$ can give rise to the same model distribution $p _ { \pmb { \theta } ^ { \prime } } ( \mathbf { y } | \mathbf { x } , \bar { \mathbf { S } } ) = p _ { \pmb { \theta } ^ { * } } ( \mathbf { y } | \mathbf { x } , \mathbf { S } )$ . In such a case, observing an empirical distribution $p _ { \pmb { \theta } ^ { * } } ( \mathbf { y } | \mathbf { x } , \mathbf { S } )$ , and fitting a model $p _ { \pmb { \theta } ^ { \prime } } ( \mathbf { y } | \mathbf { x } , \mathbf { S } )$ to it perfectly does not guarantee that $\pmb { \theta } ^ { \prime } = \pmb { \theta } ^ { * }$ .
|
| 59 |
+
|
| 60 |
+
Neural networks exhibit various symmetries in parameter space such that there is almost always a many-to-one correspondence between a choice of $\pmb { \theta }$ and resulting probability function $p _ { \pmb { \theta } }$ . A simple example in neural networks is that one can swap the (incoming and outgoing) connections of two neurons in a hidden layer. This changes the value of the parameters, but does not change the network’s function. Thus, when representation functions $\mathbf { f } _ { \theta }$ or $\mathbf { g } _ { \pmb { \theta } }$ are parameterized as DNNs, equation 2 is not satisfiable.
|
| 61 |
+
|
| 62 |
+
# 3.2 IDENTIFIABILITY IN FUNCTION SPACE
|
| 63 |
+
|
| 64 |
+
For reliable and efficient representation learning, we want learned representations $\mathbf { f } _ { \theta }$ from two identifiable models to be sufficiently similar for interchangeable use in downstream tasks. The most general property we wish to preserve among learned representations is their ability to discriminate among statistical patterns corresponding to categorical groupings. In the model family defined in Section 2, the data and context functions $\mathbf { f } _ { \theta }$ and $\mathbf { g } _ { \pmb { \theta } }$ parameterize $p _ { \pmb { \theta } } ( \mathbf { y } | \mathbf { x } , \mathbf { S } )$ , the probability of label assignment, through a normalized inner product. This induces a hyperplane boundary, for discrimination, in a joint space of learned representations for data $\mathbf { x }$ and context $\mathbf { y }$ . Therefore, in the following, we will derive identifiability conditions up to a linear transformation, using a notion of similarity in parameter space inspired by Hyvärinen et al. (2018).
|
| 65 |
+
|
| 66 |
+
Definition 1. Let $\overset { L } { \sim }$ be a pairwise relation on $\Theta$ defined as:
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
\begin{array} { r } { \pmb { \theta } ^ { \prime } \stackrel { L } { \sim } \pmb { \theta } ^ { * } \iff \mathbf { f } _ { \pmb { \theta } ^ { \prime } } ( \mathbf { x } ) = A \mathbf { f } _ { \pmb { \theta } ^ { * } } ( \mathbf { x } ) } \\ { \mathbf { g } _ { \pmb { \theta } ^ { \prime } } ( \mathbf { y } ) = B \mathbf { g } _ { \pmb { \theta } ^ { * } } ( \mathbf { y } ) } \end{array}
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
where $\pmb { A }$ and $\textbf { { B } }$ are invertible $M \times M$ matrices. See Appendix $\mathbf { B }$ for proof that $\stackrel { \mathrm { L } } { \sim }$ is an equivalence relation. In the remainder, we refer to identifiability up to the equivalence relation $\stackrel { \mathrm { L } } { \sim }$ as $\overset { L } { \sim }$ -identifiable or linearly identifiable.
|
| 73 |
+
|
| 74 |
+
# 3.3 LINEAR IDENTIFIABILITY OF LEARNED REPRESENTATIONS
|
| 75 |
+
|
| 76 |
+
We next present a simple derivation of the $\stackrel { \mathrm { L } } { \sim }$ -identifiability of members of the generalized discriminative family defined in Section 2. This result reveals sufficient conditions under which a discriminative probabilistic model $p _ { \pmb { \theta } } ( \mathbf { y } | \mathbf { x } , \mathbf { S } )$ has a useful property: the learned representations of the input $\mathbf { x }$ and target random variables $\mathbf { y }$ for any two pairs of parameters $( \theta ^ { \prime } , \theta ^ { * } )$ are related as $\theta ^ { \prime } \stackrel { \triangledown } { \sim } \theta ^ { * }$ , that is, $\mathbf { f } _ { \pmb { \theta } ^ { \prime } } ( \mathbf { x } ) = A \mathbf { f } _ { \pmb { \theta } ^ { * } } ( \mathbf { x } )$ and $\mathbf { g } _ { \pmb { \theta } ^ { \prime } } ( \mathbf { y } ) = \mathbf { \bar { \phi } } B \mathbf { g } _ { \pmb { \theta } ^ { \ast } } ( \mathbf { \bar { y } } )$ .
|
| 77 |
+
|
| 78 |
+
We first review the notation for the proof, which is introduced in detail in Section 2. We then highlight an important requirement on the diversity of the data distribution, which must be satisfied for the proof statement to hold. We prove the result immediately after.
|
| 79 |
+
|
| 80 |
+
Notation. The target random variables $\mathbf { y }$ , associated with input random variables x, may be class labels (as in supervised classification), or they could be stochastically generated from datapoints x as, e.g., perturbed image patches (as in self-supervised learning). We account for this additional stochasticity as a set-valued random variable S, containing all possible values of $\mathbf { y }$ conditioned on some $\mathbf { x }$ . For brevity, we will use shorthands that drop the parameters $\pmb { \theta }$ : $p ^ { \prime } : = p _ { \pmb { \theta } ^ { \prime } } , p ^ { * } : = p _ { \pmb { \theta } ^ { * } }$ , $\mathbf { f } ^ { * } : = \mathbf { f } _ { \theta ^ { * } } , \mathbf { f } ^ { \prime } : = \mathbf { f } _ { \theta ^ { \prime } } , \mathbf { g } ^ { \prime } : = \mathbf { g } _ { \theta ^ { \prime } }$ .
|
| 81 |
+
|
| 82 |
+
Diversity condition. We assume that for any $( \theta ^ { \prime } , \theta ^ { * } )$ for which it holds that $p ^ { \prime } = p ^ { * }$ , and for any distinct tuples given $\mathbf { x }$ , by repeated sampling $\{ ( \mathbf { y } _ { A } ^ { ( i ) } , \mathbf { y } _ { B } ^ { ( i ) } ) \} _ { i = 1 } ^ { M }$ $\mathbf { S } \sim p _ { \mathcal { D } } ( \mathbf { S } | \mathbf { x } )$ such that the matrices and picking $\mathbf { L } ^ { \prime }$ $\mathbf { y } _ { A } , \mathbf { y } _ { B } \in \mathbf { S }$ and $\mathbf { L } ^ { \ast }$ are invertible, where , we can construct a set of $\mathbf { L } ^ { \prime }$ consists $M$ of columns $( \mathbf { g } ^ { \prime } ( \mathbf { y } _ { A } ^ { ( i ) } ) - \mathbf { g } ^ { \prime } ( \mathbf { y } _ { B } ^ { ( i ) } ) )$ , and $\mathbf { L } ^ { \ast }$ consists of columns $\mathbf { g } ^ { * } ( \mathbf { y } _ { A } ^ { ( i ) } ) - \mathbf { g } ^ { * } ( \mathbf { y } _ { B } ^ { ( i ) } )$ , $i \in \{ 1 , \ldots , M \}$ . See Section 3.4 for detailed discussion.
|
| 83 |
+
|
| 84 |
+
Theorem 1. Under the diversity condition, models in the family defined by Equation (1) are linearly identifiable. That is, for any $\theta ^ { \prime } , \theta ^ { \ast } \in \Theta$ , and $\mathbf { f } ^ { * } , \mathbf { f } ^ { \prime } , \mathbf { g } ^ { * } , \mathbf { g } ^ { \prime } , p ^ { * } , \bar { p ^ { \prime } }$ defined as in Section 2,
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
p ^ { \prime } = p ^ { * } \implies \pmb { \theta } ^ { \prime } \stackrel { \perp } { \sim } \pmb { \theta } ^ { * } .
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
To establish the result, we proceed by directly constructing an invertible linear transformation that satisfies Definition 1. Consider $\mathbf { y } _ { A } , \mathbf { y } _ { B } \in \mathbf { S }$ . The likelihood ratios for these points
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\frac { p ^ { \prime } ( \mathbf { y } _ { A } | \mathbf { x } , \mathbf { S } ) } { p ^ { \prime } ( \mathbf { y } _ { B } | \mathbf { x } , \mathbf { S } ) } = \frac { p ^ { * } ( \mathbf { y } _ { A } | \mathbf { x } , \mathbf { S } ) } { p ^ { * } ( \mathbf { y } _ { B } | \mathbf { x } , \mathbf { S } ) }
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
are equal. Substituting our model definition from equation (1), we find:
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\frac { \exp ( \mathbf { f } ^ { \prime } ( \mathbf { x } ) ^ { \top } \mathbf { g } ^ { \prime } ( \mathbf { y } _ { A } ) ) } { \exp ( \mathbf { f } ^ { \prime } ( \mathbf { x } ) ^ { \top } \mathbf { g } ^ { \prime } ( \mathbf { y } _ { B } ) ) } = \frac { \exp ( \mathbf { f } ^ { * } ( \mathbf { x } ) ^ { \top } \mathbf { g } ^ { * } ( \mathbf { y } _ { A } ) ) } { \exp ( \mathbf { f } ^ { * } ( \mathbf { x } ) ^ { \top } \mathbf { g } ^ { * } ( \mathbf { y } _ { B } ) ) } ,
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
where the normalizing constants cancelled out on the left- and right-hand sides. Taking the logarithm, this simplifies to:
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
( \mathbf { g } ^ { \prime } ( \mathbf { y } _ { A } ) - \mathbf { g } ^ { \prime } ( \mathbf { y } _ { B } ) ) ^ { \top } \mathbf { f } ^ { \prime } ( \mathbf { x } ) = ( \mathbf { g } ^ { * } ( \mathbf { y } _ { A } ) - \mathbf { g } ^ { * } ( \mathbf { y } _ { B } ) ) ^ { \top } \mathbf { f } ^ { * } ( \mathbf { x } ) .
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
Note that this equation is true for any triple $\left( \mathbf { x } , \mathbf { y } _ { A } , \mathbf { y } _ { B } \right)$ for which $p _ { \mathcal { D } } ( \mathbf { x } , \mathbf { y } _ { B } , \mathbf { y } _ { B } ) > 0$ .
|
| 109 |
+
|
| 110 |
+
We next collect $M$ distinct tuples $( \mathbf { y } _ { A } ^ { ( i ) } , \mathbf { y } _ { B } ^ { ( i ) } )$ so that by repeating Equation (7) $M$ times and by the diversity condition noted above, the resulting difference vectors are linearly independent. We collect these vectors together as the columns of $( M \times M )$ -dimensional matrices $\mathbf { L } ^ { \prime }$ and $\mathbf { L } ^ { \ast }$ , forming the following system of $M$ linear equations:
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
\mathbf { L ^ { \prime } } ^ { \top } \mathbf { f ^ { \prime } } ( \mathbf { x } ) = \mathbf { L ^ { * } } ^ { \top } \mathbf { f ^ { * } } ( \mathbf { x } ) .
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
Since $\mathbf { L } ^ { \prime }$ and $\mathbf { L } ^ { \ast }$ are invertible, we rearrange:
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
\mathbf { f } ^ { \prime } ( \mathbf { x } ) = ( \mathbf { L } ^ { * } \mathbf { L } ^ { \prime - 1 } ) ^ { \top } \mathbf { f } ^ { * } ( \mathbf { x } ) .
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
Hence, $\mathbf { f } ^ { \prime } ( \mathbf { x } ) = \mathbf { A } \mathbf { f } ^ { * } ( \mathbf { x } )$ where $\mathbf { A } = ( \mathbf { L } ^ { * } \mathbf { L } ^ { \prime - 1 } )$ . This completes the first half of the proof. See Appendix $\textrm { C }$ for the second half of the proof, which is similar, and handles the function g.
|
| 123 |
+
|
| 124 |
+
# 3.4 DISCUSSION: WHEN DOES THE DIVERSITY CONDITION HOLD?
|
| 125 |
+
|
| 126 |
+
Theorem 1 is a constructive proof of existence that exhibits invertible $( M \times M )$ matrices $\mathbf { L } ^ { \prime }$ and $\mathbf { L } ^ { \ast }$ . We require the diversity condition to hold in order to guarantee invertibility. Such a requirement is similar to the conditions in earlier work on nonlinear ICA such as (Hyvärinen et al., 2018), as discussed in Section 6. Informally, this means that there needs to be a sufficient number of possible values $\mathbf { y } \in \mathbf { S }$ . In the case of supervised classification with $K$ classes, S is fixed and of size $K$ . Then, we need $K \ge M + 1$ in order to generate $M$ difference vectors $\mathbf { g } _ { \theta } ( \mathbf { y } ^ { ( 1 ) } ) - \mathbf { g } _ { \theta } ( \mathbf { y } ^ { ( j ) } )$ , $j = 2 , \ldots , M + 1$ . In case of self-supervised or deep metric learning, where $\mathbf { S }$ and y may be algorithmically generated from $\mathbf { x }$ , this requirement is easy to satisfy, as there will typically be a diversity of values of y. The same holds for language models with large vocabularies. However, for supervised classification with a small number of classes, this requirement on the size of S may be restrictive, as we discuss further in Section 4.
|
| 127 |
+
|
| 128 |
+
Note that by placing the diversity requirement on the number of classes $K$ , we implicitly assumed that the context representation function $\mathbf { g } _ { \theta }$ has the following property: the $M$ difference vectors span the range of $\mathbf { g } _ { \theta }$ . This is a mild assumption in the context of DNNs: for random initialization and iterative weight updates, this property follows from the stochasticity of the distribution used to initialize the network. Briefly, a set of $M + 1$ unique points $\mathbf { y } ^ { ( j ) }$ such that the $M$ vectors $\mathbf { g } _ { \pmb { \theta } } ( \mathbf { y } ^ { ( 1 ) } ) - \mathbf { g } _ { \pmb { \theta } } ( \mathbf { y } ^ { ( j ) } ) , j = 2 , \dots , M + 1$ are not linearly independent has measure zero. For other choices of $\mathbf { g } _ { \pmb { \theta } }$ , care must be taken to ensure this condition is satisfied.
|
| 129 |
+
|
| 130 |
+
What can be said when $\mathbf { L } ^ { \prime }$ and $\mathbf { L } ^ { \ast }$ are ill-conditioned, that is, the ratio between maximum and minimum singular value $\frac { \sigma _ { \mathrm { m a x } } ( \mathbf { L } ) } { \sigma _ { \mathrm { m i n } } ( \mathbf { L } ) }$ (dropping superscripts when a statement apply to both) is large? In the context of a data representation matrix such as $\mathbf { L }$ , this implies that there exists at least one column $\ell _ { j }$ of $\mathbf { L }$ and constants $\lambda _ { k }$ for $k \neq j$ such that $\begin{array} { r } { \| \ell _ { j } - \sum _ { k \neq j } \bar { \lambda } _ { k } \ell _ { k } \| _ { 2 } < \varepsilon } \end{array}$ for small $\varepsilon$ . In other words, sometuple $( \mathbf { y } ^ { ( k ) } , \mathbf { y } ^ { ( i ) } )$ early a linear combination of the others. T such that the resulting difference vector $\ell _ { j } = \dot { \mathbf { g } } _ { \pmb { \theta } } ( \mathbf { y } _ { A } ^ { ( k ) } ) - \mathbf { g } _ { \pmb { \theta } } ( \mathbf { y } _ { B } ^ { ( i ) } )$ ere exists somecan nearly (in the sense above) be written as a linear combination of the other columns. Such near singularity is in this case a function of the choice of samples $\mathbf { y }$ that yield the difference vectors. The issue could be handled by resampling different data points until the condition number of the matrices is satisfactory. This amounts to strengthening the diversity condition. We leave more detailed analysis to future work, as the result will depend on the choice of architectures for f and $\mathbf { g }$ .
|
| 131 |
+
|
| 132 |
+
# 4 EXAMPLES OF LINEARLY IDENTIFIABLE MODELS
|
| 133 |
+
|
| 134 |
+
The form of Equation (1) is already used as a general approach for a variety of machine learning problems. We present a non-exhaustive sample of such publications, chosen to exhibit the range of applications. Many of these approaches were state-of-the-art at the time of their release: Contrastive Predictive Coding (Hénaff et al., 2019), BERT (Devlin et al., 2018), GPT-2 and GPT-3 (Radford et al., 2018; 2019; Brown et al., 2020), XLNET (Yang et al., 2019), and the triplet loss for deep metric learning (Sohn, 2016). In this section, we discuss how to interpret the functional components of these frameworks with respect to the generalized data distribution of Section 2 and canonical parameterization of Equation (1). See Appendix D for reductions to the canonical form of Equation (1).
|
| 135 |
+
|
| 136 |
+
Supervised Classification. Although the scope of this paper is identifiable representation learning, under certain conditions, standard supervised classifiers can learn identifiable representations as well. In this case, the number of classes must be strictly greater than the feature dimension, as noted in Section 3.4. We simulate such a model in Section 5.1 to show evidence of its linear identifiability. We stress that representation learning as pretraining for classification is a way to ensure that the conditions on label diversity are met, rather than relying on the supervised classifier itself to generate identifiable representations. This paradigm is discussed in the next subsection.
|
| 137 |
+
|
| 138 |
+
Representations learned during supervised classification can be linearly identifiable under the following model specification. The input random variables $\mathbf { x }$ represent some data domain to be classified, such as images or word embeddings. The target variables $\mathbf { y }$ represent label assignments for $\mathbf { x }$ typically semantically meaningful. These are often encoded these as the standard basis vectors $\mathbf { e _ { y } }$ a “one-hot encoding." The set $\mathbf { S }$ contains all $K$ possible values of $\mathbf { y }$ . In this case, notice that S is not stochastic: the empirical distribution $p _ { \mathcal { D } } ( \mathbf { S } | \mathbf { x } )$ is modelled as a Dirac measure with all probability mass on the set $\mathbf { S } = \{ 0 , \ldots , K - 1 \}$ (using integers, here, to represent distinct labels) . The representation function $\mathbf { f } _ { \pmb { \theta } } ( \mathbf { x } )$ of a classifier is often implemented as DNN that maps from the input layer to the layer just prior to the model logits. The context map $\mathbf { g } _ { \pmb { \theta } } ( \mathbf { y } )$ is given by the weights in the final, linear projection layer, which outputs unnormalized logits. Concretely, $\mathbf { g } _ { \pmb { \theta } } ( \mathbf { y } ) = \mathbf { W } \mathbf { e } _ { \mathbf { y } }$ , where $\mathbf { W } \in \mathbb { R } ^ { M \times M }$ is a learnable weight matrix. In order satisfy the diversity condition, the dimension $M$ of the number of classes $K$ must be strictly greater than the dimension of the learned representation $M$ , that is, $| \mathbf { S } | \geq M + 1$ . Finally, the output of the final, linear projection layer is normalized through a Softmax function, yielding the parameterization of Equation (1).
|
| 139 |
+
|
| 140 |
+
Self-Supervised Pretraining for Image Classification. Self-supervised learning is a framework that first pretrains a DNN before deploying it on some other, related task. The pretraining task often takes the form of Equation (1) and meets the sufficient conditions to be linearly identifiable. A paradigmatic example is Contrastive Predictive Coding (CPC) (Oord et al., 2018). CPC is a general pretraining framework, but we focus for the sake of clarity on its use in image models here. CPC as applied to images involves: (1) preprocessing an image into augmented patches, (2) assigning labels according to which image the patch came from, and then (3) predicting the representations of the patches whether below, to the right, to the left, or above a certain level (Oord et al., 2018).
|
| 141 |
+
|
| 142 |
+
The context function of CPC, $\mathbf { g } _ { \pmb { \theta } } ( \mathbf { y } )$ , encodes a particular position in the sequence of patches, and the representation function, $\mathbf { f } _ { \pmb { \theta } } ( \mathbf { x } )$ , is an autoregressive function of the previous $k$ patches, according to some predefined patch ordering. Given some $\mathbf { x }$ , the collection of all patches from the sequence, from a given minibatch of images, is the set $\mathbf { S } \sim p _ { \mathit { D } } ( \mathbf { S } | \mathbf { x } )$ , where the randomness enters via the patch preprocessing algorithm. Since the preprocessing phase is part of the algorithm design, it is straightforward to make it sufficiently diverse (enough transformations of enough patches) so as to meet the requirements for the model to be linearly identifiable.
|
| 143 |
+
|
| 144 |
+
Multi-task Pretraining for Natural Language Generation. Autoregressive language models, such as (Mikolov et al., 2010; Dai and Le, 2015) and more recently GPT-2 and GPT-3 (Radford et al., 2018; 2019; Brown et al., 2020), are typically also instances of the model family of Equation 1. Data points $\mathbf { x }$ are the past tokens, $\mathbf { f } _ { \pmb { \theta } } ( \mathbf { x } )$ is a nonlinear representation of the past estimated by either an LSTM (Hochreiter and Schmidhuber, 1997) or an autoregressive Transformer model (Vaswani et al., 2017), y is the next token, and $\mathbf { w } _ { i } = \mathbf { g } _ { \pmb { \theta } } ( \mathbf { y } = i )$ is a learned representation of the next token, often implemented as a simple look-up table, as in supervised classification.
|
| 145 |
+
|
| 146 |
+
BERT (Devlin et al., 2018) is also a member of the linearly identifiable family. This model pretrains word embeddings through a denoising autoencoder-like (Vincent et al., 2008) architecture. For a given sequence of tokenized text, some fixed percentage of the symbols are extracted and set aside, and their original values set to a special null symbol, “corrupting" the original sequence. The pretraining task in BERT is to learn a continuous representation of the extracted symbols conditioned on the remainder of the text. A transformer (Vaswani et al., 2017) function approximator is used to map from the corrupted sequence into a continuous space. The transformer network is the $\mathbf { f } _ { \pmb { \theta } } ( \mathbf { x } )$ function of Equation 1. The context map $\mathbf { g } _ { \pmb { \theta } } ( \mathbf { y } )$ is a lookup map into the learned basis vector for each token.
|
| 147 |
+
|
| 148 |
+
# 5 EXPERIMENTS
|
| 149 |
+
|
| 150 |
+
The derivation in Section 3 shows that, for models in the general discriminative family defined in Section 2, the functions $\mathbf { f } _ { \theta }$ and $\mathbf { g } _ { \theta }$ are identifiable up to a linear transformation given unbounded data and assuming model convergence. The question remains as to how close a model trained on finite data and without convergence guarantees will approach this limit. One subtle issue is that poor architecture choices (such as too few hidden units, or inadequate inductive priors) or insufficient data samples when training can interfere with model estimation and thereby linear identifiability of the learned representations, due to underfitting. In this section, we study this issue over a range of models, from low-dimensional language embedding and supervised classification (Figures 1 and 2 respectively) to GPT-2 (Radford et al., 2019), an approximately $1 . 5 * 1 0 ^ { 9 }$ -parameter generative model of natural language (Figure 4). See Appendix A and the code release for details needed to reproduce.
|
| 151 |
+
|
| 152 |
+
Through these experiments, we show that (1) in the small dimensional, large data regime, linearly identifiable models yield learned representations that lie approximately within a linear transformation of each other (Figures 1 and 2) as predicted by Theorem 1; and (2) in the high dimensional, large data regime, linearly identifiable models yield learned representations that exhibit a strong trend towards linear identifiability. The learned representations approach a linear transformation of each other monotonically, as a function of dataset sample size, neural network capacity (number of hidden units), and optimization progress. In the case of GPT-2, which has benefited from substantial tuning by engineers to improve model estimation, we find strong evidence of linear identifiability.
|
| 153 |
+
|
| 154 |
+
Measuring linear similarity between learned representations. How can we measure whether pairs of learned representations live within a linear transformation of each other in function space? We adapt Canonical Correlation Analysis (CCA) (Hotelling, 1936) for this purpose, which finds the optimal linear transformations to maximize correlation among two random vectors. On a randomly selected held-out subset $B \subset D$ of the training data we compute $\mathbf { f } _ { \pmb { \theta } _ { 1 } } ( \pmb { \cal { B } } )$ and $\mathbf { f } _ { \pmb { \theta } _ { 2 } } ( { \pmb { \cal { B } } } )$ for two models with parameters $\pmb { \theta } _ { 1 }$ and $\pmb { \theta } _ { 2 }$ respectively. Assume without loss of generality that $\mathbf { f } _ { \pmb { \theta } _ { 1 } } ( \pmb { \cal { B } } )$ and $\mathbf { f } _ { \pmb { \theta } _ { 2 } } ( { \pmb { \cal { B } } } )$ are centered. CCA finds the optimal linear transformations $C$ and $_ { D }$ such that the pairwise correlations $\rho _ { i }$ between the $i ^ { t h }$ columns of $C ^ { \top } \mathbf { f } _ { \pmb { \theta } _ { 1 } } ( B )$ and $D ^ { \top } \mathbf { f } _ { \theta _ { 2 } } ( B )$ are maximized. We collect correlations together in $\rho$ . If after linear transformation the two matrices are aligned, the mean of $\rho$ will be 1; if they are instead uncorrelated, then the mean of $\rho$ will be 0. We use the mean of $\rho$ as a proxy for the existence of a linear transformation between $\mathbf { f } _ { \pmb { \theta } _ { 1 } } ( \pmb { \cal { B } } )$ and $\mathbf { f } _ { \pmb { \theta } _ { 2 } } ( { \pmb { \cal { B } } } )$ . For DNNs, it is a well known phenomenon that most of the variability in a learned representation tends to concentrate in a low-dimensional subspace, leaving many noisy, random dimensions (Morcos et al., 2018). Such random noise can result in spurious high correlations in CCA. A solution to this problem is to apply Principal Components Analysis (PCA) (Pearson, 1901) to each of the two matrices ${ \bf \dot { f } } _ { \pmb { \theta } _ { 2 } } ( B )$ and ${ \bf f } _ { \pmb { \theta } _ { 1 } } ( { \pmb { \cal { B } } } )$ , projecting onto their top- $k$ principal components, before applying CCA. This technique is known as SVCCA (Raghu et al., 2017).
|
| 155 |
+
|
| 156 |
+

|
| 157 |
+
Figure 2: Deep Supervised Classification. (a) Data distribution for a linearly identifiable K-way classification problem. (b) Mean (centered) CCA between the learned representations over the course of training. After approx. 4000 iterations, CCA finds a linear transformation that rotate the learned representations into alignment, up to optimization error. (c) Learned representations after transformation via optimal linear transformation. The first dimension of the first model’s feature space is plotted against the first dimension of second. The learned representations have a nearly linear relationship, modulo estimation noise.
|
| 158 |
+
|
| 159 |
+
We report first on a simulation study of linearly identifiable $K$ -way classification, where all assumptions and sufficient conditions of Theorem 1 are guaranteed to be met. We generated a synthetic data distribution with the properties required by Section 2, and chose DNNs that had sufficient capacity to learn a specified nonlinear relationship between inputs $\mathbf { x }$ and targets y. In short, the data distribution $p _ { \mathcal { D } } ( \mathbf { x } , \mathbf { y } , \mathbf { S } )$ consists of inputs $\mathbf { x }$ sampled from a 2-D Gaussian with $\sigma = 3$ . The targets $\mathbf { y }$ were assigned among $K = 1 8$ classes according to their radial position (angle swept out by a ray fixed at the origin). The number of classes $K$ was chosen to ensure $K \geq \mathrm { d i m } [ { \bf f } _ { \theta } ( { \bf \bar { x } } ) ] + 1$ , the diversity condition. See Appendix D.1 for more details.
|
| 160 |
+
|
| 161 |
+
To evaluate linear similarity, we trained two randomly initialized models of $p _ { \mathcal { D } } ( \mathbf { y } \vert \mathbf { x } , \mathbf { S } )$ . Plots show $\mathbf { f } _ { \pmb { \theta } } ( \mathbf { x } )$ , the data representation function, on random $\mathbf { x }$ . Figure 2b shows that the mean CCA increases to its maximum value over training, demonstrating that the feature spaces converge to the same solution up to a linear transformation modulo model estimation noise. Similarly, Figure 2c shows that the learned representations exhibit a strongly linear relationship.
|
| 162 |
+
|
| 163 |
+

|
| 164 |
+
Figure 3: Self-Supervised Representation Learning. Error bars are computed over 5 pairs of models. (a) Input data. Two patches are taken (one from top half, and one from the bottom half) of an image at random. Using a contrastive loss, we predict the identity of the bottom patch encoding from the top. (b) Linear similarity of learned representations at checkpoints (see legend). As models converge, linear similarity increases. (c) Linear similarity as we increase the amount of data for $\mathbf { f } _ { \pmb { \theta } }$ and $\mathbf { g } _ { \theta }$ . Error bars are computed over 5 pairs of models. (d) As we increase model size, linear similarity after convergence increases for both $\mathbf { f } _ { \theta }$ and $\mathbf { g } _ { \pmb { \theta } }$ .
|
| 165 |
+
|
| 166 |
+

|
| 167 |
+
Figure 4: Text Embeddings by GPT-2. GPT-2 results. Representations of the last hidden layer (which is identifiable), in addition to three earlier layers (not necessarily identifiable) for four GPT-2 models. For each representation layer, SVCCA is computed over to all pairs of models, over which correlation coefficients were averaged. SVCCA was applied with 16, 64, 256 and 768 principal components. The learned representations in the last, identifiable layer more correlated than representations learned in preceding layers.
|
| 168 |
+
|
| 169 |
+
We next investigate high-dimensional, self-supervised representation learning on CIFAR-10 (Krizhevsky et al., 2009) using CPC (Oord et al., 2018; Hénaff et al., 2019). For a given input image, this model predicts the identity of a bottom image patch representation given a top patch representation (Figure 3a.) Here, S comprises the true patch with a set of distractor patches from across the current minibatch. For each model we define both $\mathbf { f } _ { \pmb { \theta } ^ { \prime } }$ and $\mathbf { g } _ { \pmb { \theta } ^ { \prime } }$ as a 3-layer MLP with 256 units per layer (except where noted otherwise) and fix output dimensionality of 64.
|
| 170 |
+
|
| 171 |
+
In Figure 3b, CCA coefficients are plotted over the course of training. As training progresses, alignment between the learned representations increases. In Figure 3c, we artificially limited the size of the dataset, and plot mean correlation after training and convergence. This shows that increasing availability of data correlates with closer alignment. In Figure 3d, we fix dataset size and artificially limit the model capacity (number hidden units) to investigate the effect of model size on the learned representations, varying the number of hidden units from 64 to 8192. This show that increasing model capacity correlates with increase in alignment of learned representations.
|
| 172 |
+
|
| 173 |
+
# 5.3 GPT-2
|
| 174 |
+
|
| 175 |
+
Finally, we report on a study of GPT-2 (Radford et al., 2019), a massive-scale language model. The identifiable representation is the set of features just before the last linear layer of the model. We use pretrained models from HuggingFace (Wolf et al., 2019). HuggingFace provides four different versions of the GPT-2: gpt2, gpt2-medium, gpt2-large and $\mathtt { g p t 2 - x 1 }$ , which differ mainly in the hyper-parameters that determine the width and depth of the neural network layers. For approximately 2000 input sentences, per timestep, for each model, we extracted representations at the last layer (which is identifiable) in addition to the representations per timestep given by three earlier layers in the model. Then, we performed SVCCA on each possible pair of models, on each of the four representations. SVCCA was performed with 16, 64, 256 and 768 principal components, computed by applying SVD separately for each representations of each model. We chose 768 as the largest number of principal components, since that is the representation size for the smallest model in the repository (gpt2). We then averaged the CCA correlation coefficients across the pairs of models. Figure 4 shows the results. The results align well with our theory, namely that the representations at the last layer are more linearly related than the representations at other layers of the model.
|
| 176 |
+
|
| 177 |
+
# 5.4 INTERPRETATION AND SUMMARY
|
| 178 |
+
|
| 179 |
+
Theorem 1 establishes linear identifiability as an asymptotic property of a model that holds in the limit of infinite data and exact estimation. The experiments of this section have shown that for linear identifiable models, when the dimensionality is small relative to dataset size (Figures 1 and 2), the learned embeddings are closely linearly related, up to noise. Problems of model estimation and sufficient dataset size are more pronounced in high dimensions. Nevertheless, in GPT2, representations among different trained models do in fact approach a mean correlation coefficient of 1.0 after training (Figure 4, blue line), providing strong evidence of linear identifiability.
|
| 180 |
+
|
| 181 |
+
# 6 RELATED WORKS
|
| 182 |
+
|
| 183 |
+
Prior to Hyvärinen and Morioka (2016), identifiability analysis was uncommon in deep learning. We build on advances in the theory of nonlinear ICA (Hyvärinen and Morioka, 2016; Hyvärinen et al., 2018; Khemakhem et al., 2019). In this section, we carefully distinguish our results from prior and concurrent works. Our diversity assumption is similar to diversity assumptions in these earlier works, while differing on certain conditions. The main difference is that their results apply to related but distinct families of models compared to the general discriminative family outlined in this paper. Arguably most related is Theorem 3 of Hyvärinen et al. (2018) and its proof, which shows that a class of contrastive discriminative models will estimate, up to an affine transformation, the true latent variables of a nonlinear ICA model. The main difference with our result is that they additionally assume: (1) that the mapping between observed variables and latent representations is invertible; and (2) that the discriminative model is binary logistic regression exhibiting universal approximation (Hornik et al., 1989), estimated with a contrastive objective. In addition, (Hyvärinen et al., 2018) does not present conditions for affine identifiability for their version of the context representation function g. It should be noted that Theorem 1 in (Hyvärinen et al., 2018) provides a potential avenue for further generalization of our theorem 1 to discriminative models with non-linear interaction between f and g.
|
| 184 |
+
|
| 185 |
+
Concurrent work (Khemakhem et al., 2020) has expanded the theory of identifiable nonlinear ICA to a class of conditional energy-based models (EBMs) with universal density approximation capability, therefore imposing milder assumptions than previous nonlinear ICA results. Their version of affine identifiability is similar to our result of linear identifiability in Section 3.2. The main differences are that Khemakhem et al. (2020) focus in both theory and experiment on EBMs. This allows for alternative versions of the diversity condition, assuming that the Jacobians of their versions of f or g are full rank. This is only possible if $\mathbf { x }$ or y are assumed continuous-valued; note that we do not make such an assumption. Khemakhem et al. (2020) also presents an architecture for which the conditions provably hold, in addition to sufficient conditions for identifiability up to element-wise scaling, which we did not explore in this work. While we build on these earlier results, we are, to the best of our knowledge, the first to apply identifiability analysis to state-of-the-art discriminative and autoregressive generative models.
|
| 186 |
+
|
| 187 |
+
# 7 CONCLUSION
|
| 188 |
+
|
| 189 |
+
We have shown that representations learned by a large family of discriminative models are identifiable up to a linear transformation, providing a novel perspective on representation learning using DNNs. Since identifiability is a property of a model class, and identification is realized in the asymptotic limit of data and compute, we perform experiments in the more realistic setting with finite datasets and finite compute. Our empirical results show that as the representational capacity of the model and dataset size increases, learned representations indeed tend towards solutions that are equal up to only a linear transformation.
|
| 190 |
+
|
| 191 |
+
REFERENCES
|
| 192 |
+
J. Bradbury, R. Frostig, P. Hawkins, M. J. Johnson, C. Leary, D. Maclaurin, and S. Wandermanmilne. Jax: Composable transformations of Python+NumPy programs, 2018. URL Http: //Github.Com/Google/Jax.
|
| 193 |
+
T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, and Others. Language Models are Few-Shot Learners. Arxiv Preprint Arxiv:2005.14165, 2020.
|
| 194 |
+
C. Chelba, T. Mikolov, M. Schuster, Q. Ge, T. Brants, P. Koehn, and t. Robinson. One Billion Word Benchmark for Measuring Progress in Statistical Language Modeling. Arxiv Preprint Arxiv:1312.3005, 2013.
|
| 195 |
+
A. M. Dai and Q. V. Le. Semi-Supervised Sequence Learning. In Advances in Neural information Processing Systems, pages 3079–3087, 2015.
|
| 196 |
+
J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Arxiv Preprint Arxiv:1810.04805, 2018.
|
| 197 |
+
D. Erhan, Y. Bengio, A. Courville, P.-A. Manzagol, P. Vincent, and S. Bengio. Why Does Unsupervised Pre-training Help Deep Learning? Journal of Machine Learning Research, 11(Feb):625–660, 2010.
|
| 198 |
+
O. J. Hénaff, A. Razavi, C. Doersch, S. Eslami, and A. V. D. Oord. Data-Efficient Image Recognition with Contrastive Predictive Coding. Arxiv Preprint Arxiv:1905.09272, 2019.
|
| 199 |
+
S. Hochreiter and J. Schmidhuber. Long Short-Term Memory. Neural Computation, 9(8):1735–1780, 1997.
|
| 200 |
+
E. Hoffer and N. Ailon. Deep Metric Learning Using Triplet Network. In International Workshop On Similarity-Based Pattern Recognition, pages 84–92. Springer, 2015.
|
| 201 |
+
K. Hornik, M. Stinchcombe, and H. White. Multilayer Feedforward Networks are Universal Approximators. Neural Networks, 2(5):359–366, 1989.
|
| 202 |
+
H. Hotelling. Relations Between Two Sets of Variates. Biometrika, 28(3/4):321–377, 1936.
|
| 203 |
+
A. Hyvärinen and H. Morioka. Unsupervised Feature Extraction by Time-Contrastive Learning and Nonlinear ICA. In Advances in Neural information Processing Systems, pages 3765–3773, 2016.
|
| 204 |
+
A. Hyvärinen, H. Sasaki, and R. E. Turner. Nonlinear ICA Using Auxiliary Variables and Generalized Contrastive Learning. Arxiv Preprint Arxiv:1805.08651, 2018.
|
| 205 |
+
F. Johansson, U. Shalit, and D. Sontag. Learning representations for counterfactual inference. In International conference on machine learning, pages 3020–3029, 2016.
|
| 206 |
+
I. Khemakhem, D. P. Kingma, and A. Hyvärinen. Variational Autoencoders and Nonlinear ICA: A Unifying Framework. Arxiv Preprint Arxiv:1907.04809, 2019.
|
| 207 |
+
I. Khemakhem, R. P. Monti, D. P. Kingma, and A. Hyvärinen. ICE-BeeM: Identifiable Conditional Energy-based Deep Models. Arxiv Preprint Arxiv:2002.11537, 2020.
|
| 208 |
+
D. P. Kingma and J. Ba. Adam: A Method for Stochastic Optimization. Arxiv Preprint Arxiv:1412.6980, 2014.
|
| 209 |
+
A. Krizhevsky, G. Hinton, and Others. Learning Multiple Layers of Features from Tiny Images. 2009.
|
| 210 |
+
P. J. Liu, M. Saleh, E. Pot, B. Goodrich, R. Sepassi, L. Kaiser, and N. Shazeer. Generating Wikipedia by Summarizing Long Sequences. Arxiv Preprint Arxiv:1801.10198, 2018.
|
| 211 |
+
C. Louizos, U. Shalit, J. M. Mooij, D. Sontag, R. Zemel, and M. Welling. Causal effect inference with deep latent-variable models. In Advances in Neural Information Processing Systems, pages 6446–6456, 2017.
|
| 212 |
+
Under review as a conference paper at ICLR 2021
|
| 213 |
+
T. Mikolov, M. Karafiát, L. Burget, J. Cernock ˇ y, and S. Khudanpur. Recurrent Neural Network Based \` Language Model. In Eleventh Annual Conference of The international Speech Communication Association, 2010.
|
| 214 |
+
T. Mikolov, I. Sutskever, K. Chen, G. S. Corrado, and J. Dean. Distributed Representations of Words and Phrases and their Compositionality. In Advances in Neural information Processing Systems, pages 3111–3119, 2013.
|
| 215 |
+
A. Mnih and G. E. Hinton. A Scalable Hierarchical Distributed Language Model. In Advances in Neural information Processing Systems, pages 1081–1088, 2009.
|
| 216 |
+
A. Mnih and Y. W. Teh. A Fast and Simple Algorithm for Training Neural Probabilistic Language Models. Arxiv Preprint Arxiv:1206.6426, 2012.
|
| 217 |
+
A. S. Morcos, M. Raghu, and S. Bengio. Insights on Representational Similarity in Neural Networks with Canonical Correlation, 2018.
|
| 218 |
+
A. V. D. Oord, Y. Li, and O. Vinyals. Representation Learning with Contrastive Predictive Coding. Arxiv Preprint Arxiv:1807.03748, 2018.
|
| 219 |
+
K. Pearson. LIII. On Lines and Planes of Closest Fit to Systems of Points in Space. The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, 2(11):559–572, 1901.
|
| 220 |
+
A. Radford, K. Narasimhan, T. Salimans, and I. Sutskever. Improving Language Understanding by Generative Pre-training. 2018.
|
| 221 |
+
A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever. Language Models are Unsupervised Multitask Learners. Openai Blog, 1(8), 2019.
|
| 222 |
+
M. Raghu, J. Gilmer, J. Yosinski, and J. Sohl-Dickstein. SVCCA: Singular Vector Canonical Correlation Analysis for Deep Learning Dynamics and interpretability. In Advances in Neural information Processing Systems, pages 6076–6085, 2017.
|
| 223 |
+
A. Sharif Razavian, H. Azizpour, J. Sullivan, and S. Carlsson. CNN Features Off-the-Shelf: An Astounding Baseline for Recognition. In Proceedings of The Ieee Conference On Computer Vision and Pattern Recognition Workshops, pages 806–813, 2014.
|
| 224 |
+
K. Sohn. Improved Deep Metric Learning with Multi-class N-Pair Loss Objective. In Advances in Neural information Processing Systems, pages 1857–1865, 2016.
|
| 225 |
+
P. Sorrenson, C. Rother, and U. Köthe. Disentanglement by Nonlinear ICA with General Incompressible-flow Networks (Gin). Arxiv:2001.04872 [Cs, Stat], Jan. 2020.
|
| 226 |
+
A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is All You Need. In Advances in Neural information Processing Systems, pages 5998– 6008, 2017.
|
| 227 |
+
P. Vincent, H. Larochelle, Y. Bengio, and P.-A. Manzagol. Extracting and Composing Robust Features with Denoising Autoencoders. In Proceedings of The 25th international Conference On Machine Learning, pages 1096–1103, 2008.
|
| 228 |
+
T. Wolf, L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, T. Rault, R. Louf, M. Funtowicz, and J. Brew. Huggingface’s Transformers: State-of-the-art Natural Language Processing. Arxiv, Abs/1910.03771, 2019.
|
| 229 |
+
Z. Yang, Z. Dai, Y. Yang, J. Carbonell, R. Salakhutdinov, and Q. V. Le. XLNET: Generalized Autoregressive Pretraining for Language Understanding. Arxiv Preprint Arxiv:1906.08237, 2019.
|
| 230 |
+
|
| 231 |
+
# A REPRODUCING EXPERIMENTS AND FIGURES
|
| 232 |
+
|
| 233 |
+
In this section, we present training and optimization details needed to reproduce our empirical validation of Theorem 1. We also published notebooks and check-pointed weights for two crucial experiments that investigate the result in the small and massive scale regimes, for Figure 1 and GPT-2 (ANONYMIZED).
|
| 234 |
+
|
| 235 |
+
# A.1 FIGURE 1
|
| 236 |
+
|
| 237 |
+
We provide a Jupyter notebook and model checkpoints for reproducing Figure 1. Please refer to this for hyperparameter settings. In short, we implemented a model (Mnih and Teh, 2012) in the family of Section 2 and trained it on the Billion Word dataset (Chelba et al., 2013). This is illustrative of the property of Theorem 1 because the relatively modest size of the parameter space (see notebook) and massive dataset minimizes model convergence and data availability restrictions, e.g., approaches the asymptotic regime.
|
| 238 |
+
|
| 239 |
+
The word embedding space is 2-D for ease of visualization. We randomly selected a subset of words, mapped them into their learned embeddings, and visualized them as points in the left and middle panes. We then regress pane one onto pane two in order to learn the best linear transformation between them. Note that if the two are linear transformations of each other, regression will recover that transformation exactly.
|
| 240 |
+
|
| 241 |
+
# A.2 SIMULATION STUDY: CLASSIFICATION BY DNNS
|
| 242 |
+
|
| 243 |
+
For this experiment, we want to ensure that the chosen model can fit the data distribution exactly. Controlling this removes one possible factor that could prevent linear identifiability of learned representations despite the model formally having that property. We do this by making sure that the process that generates the dataset matches the model chosen to learn the relationships between inputs and labels.
|
| 244 |
+
|
| 245 |
+
This is achieved through the following algorithm. We first randomly assign initialization labels based on angular position, then fit two neural networks $f _ { \theta ^ { \star } }$ and $g _ { \pmb { \theta } ^ { \star } }$ to predict the final labels, using the discriminative model of Equation (1) and Appendix D.1. Both $f _ { \theta ^ { \star } }$ and $g _ { \pmb { \theta } ^ { \star } }$ 4-hidden-layer MLPs with two 64 unit layers and one 2-D bottle neck layer. After training these representation functions to convergence, generated new batch of points $\mathbf { x }$ , and used the trained networks to predict the ground truth labels y.
|
| 246 |
+
|
| 247 |
+
Finally, to conduct experiments, we chose $\mathbf { f } _ { \theta ^ { \prime } }$ and $\mathbf { g } _ { \pmb { \theta } ^ { \prime } }$ to be the same architecture as $\mathbf { f } _ { \theta ^ { \star } }$ and $\mathbf { g } _ { \pmb { \theta } ^ { \star } }$ . This ensures that the supervised classifier we attempted to learn would using the function approximators $\mathbf { f } _ { \pmb { \theta } ^ { \prime } }$ and $\mathbf { g } _ { \pmb { \theta } ^ { \prime } }$ would be able to capture the true data generating process, e.g, would not fail due to too few hidden units, or too complex a relationship between targets and inputs.
|
| 248 |
+
|
| 249 |
+
Remaining training details are as follows. We optimize weights using Adam with a learning rate of $1 0 ^ { - 4 }$ for $5 * 1 0 ^ { 4 }$ iterations. To make the classification problem more challenging, we additionally add 20 input dimensions of random noise to the data. The Adam optimizer Kingma and Ba (2014) with a learning rate of $3 \cdot 1 0 ^ { - 4 }$ is used.
|
| 250 |
+
|
| 251 |
+
# A.3 SELF-SUPERVISED LEARNING FOR IMAGE CLASSIFICATION
|
| 252 |
+
|
| 253 |
+
To compute linear similarity between representations, we train two independent models in parallel. For each model we define both $\mathbf { f } _ { \pmb { \theta } }$ and $\mathbf { g } _ { \theta }$ as a 3-layer fully connected neural network with $\bar { 2 } ^ { 8 }$ units per layer and a fixed output dimensionality of $2 ^ { 6 }$ . We define our model following Equation (1), where $S$ is the set of the other image patches from the current minibatch and optimize the objective of (Hénaff et al., 2019). We augment both sampled patches independently with randomized brightness, saturation, hue, and contrast adjustments, following the recipe of (Hénaff et al., 2019). We train on the CIFAR10 dataset (Krizhevsky et al., 2009) with batchsize $2 ^ { 8 }$ , using the Adam optimizer with a learning rate of $1 0 ^ { - 4 }$ and the JAX (Bradbury et al., 2018) software package. For each model, we early stop based on a validation loss failing to improve further.
|
| 254 |
+
|
| 255 |
+
Additional details about the experiments that generated Figure 3:
|
| 256 |
+
|
| 257 |
+
Figure 3 a. Patches are sampled randomly from training images.
|
| 258 |
+
|
| 259 |
+
Figure 3 b. For each model, we train for at most $3 * 1 0 ^ { 4 }$ iterations, early stopping when necessary based on validation loss.
|
| 260 |
+
|
| 261 |
+
Figure $_ { 3 \mathrm { ~ c ~ } }$ . For each model, we train for at most $3 * 1 0 ^ { 4 }$ iterations, early stopping when necessary based on validation loss.
|
| 262 |
+
|
| 263 |
+
Figure 3 d. Error bars show standard error computed over 5 pairs of models after $1 . 5 * 1 0 ^ { 4 }$ training iterations.
|
| 264 |
+
|
| 265 |
+
# A.4 GPT-2
|
| 266 |
+
|
| 267 |
+
We include all details through a notebook in the code release. Pretrained GPT-2 weights as specified in the main text are publicly available from HuggingFace Wolf et al. (2019).
|
| 268 |
+
|
| 269 |
+
# A.5 REMARK ON EFFECT OF INITIALIZATION AND HYPERPARAMETERS OF MODELS
|
| 270 |
+
|
| 271 |
+
One question that may be of interest is whether initialization affects whether learned representations will be within a linear transformation of each other. This depends on whether the optimization routines (like Adam, AdaGrad, etc.) are robust to wider initialization within a certain range. If so, model convergence will be unaffected. However, this cannot make up for poor initialization or poor optimization: just as in any deep neural network, a poor initialization and inadequate optimizer will interfere with learning the model parameters. In the case of a linearly identifiable model, means that the learned representations would not live within a linear transformation of each other (up to noise from model fitting), since the models have failed to converge to a reasonable solution for the task at hand.
|
| 272 |
+
|
| 273 |
+
When the hyperparameters of a DNN are changed, this changes the class of functions that the network can represent (i.e., the size and stride of convolution filters will change which input pixels could be correlated in deeper layers). Typically, hyperparameters are carefully tuned using cross validation based on held-out data. We did so in our experiments also. We expect that such a tuning procedure would yield hyperparameters that are as good as possible for the model to be optimized, allowing sufficient optimization so that the linear identifiability of the learned representations is realized. If the hyperparameters are sufficiently bad and optimization suffers, this will interfere with model fitting, and with linear identifiability of the learned representations also.
|
| 274 |
+
|
| 275 |
+
# B PROOF THAT LINEAR SIMILARITY IS AN EQUIVALENCE RELATION
|
| 276 |
+
|
| 277 |
+
We claim that $\stackrel { \mathrm { L } } { \sim }$ is an equivalence relation. It suffices to show that it is reflexive, transitive, and symmetric.
|
| 278 |
+
|
| 279 |
+
Proof. Consider some function $\mathbf { g } _ { \pmb { \theta } }$ and some $\pmb { \theta } ^ { \prime } , \pmb { \theta } ^ { \star } , \pmb { \theta } ^ { \dagger } \subset \Theta$ . Suppose $\theta ^ { \prime } \stackrel { \scriptscriptstyle \perp } { \sim } \theta ^ { \star }$ . Then, there exists an invertible matrix $\mathbf { B }$ such that $\mathbf { g } _ { \pmb { \theta } ^ { \prime } } ( \mathbf { x } ) = \mathbf { B } \mathbf { g } _ { \pmb { \theta } ^ { \star } } ( \mathbf { x } )$ . Since ${ \bf g } _ { \pmb { \theta } ^ { \star } } ( { \bf x } ) = { \bf B } ^ { - 1 } { \bf g } _ { \pmb { \theta } ^ { \prime } } ( { \bf x } )$ , $\stackrel { \mathrm { L } } { \sim }$ is symmetric. Reflexivity follows from setting $\mathbf { g } _ { \pmb { \theta } ^ { \star } }$ to $\mathbf { g } _ { \pmb { \theta } ^ { \prime } }$ and $\mathbf { B }$ to the identity matrix. To show transitivity, suppose also that $\smash { \theta ^ { \star } \stackrel { \scriptscriptstyle \perp } { \sim } \theta ^ { \dagger } }$ . Then, there exists an invertible $\mathbf { C }$ such that $\mathbf { g } _ { \pmb { \theta } ^ { \star } } ( \mathbf { x } ) = \mathbf { C } \mathbf { g } _ { \pmb { \theta } ^ { \dagger } } ( \mathbf { x } )$ . Since $\mathbf { g } _ { \pmb { \theta } ^ { \prime } } \overset { \mathtt { L } } { \sim } \mathbf { g } _ { \pmb { \theta } ^ { \star } }$ , $\mathbf { B } ^ { - 1 } \mathbf { g } _ { \pmb { \theta } ^ { \prime } } ( \mathbf { x } ) = \mathbf { C } \mathbf { g } _ { \pmb { \theta } ^ { \dagger } } ( \mathbf { x } )$ . Rearranging terms, ${ \bf g } _ { \theta ^ { \prime } } ( { \bf x } ) = { \bf B } { \bf C } { \bf g } _ { \theta ^ { \dagger } } ( { \bf x } )$ , so that $\pmb { \theta } ^ { \prime } \sim \pmb { \theta } ^ { \dagger }$ as required.
|
| 280 |
+
|
| 281 |
+
# C SECTION 3.2 CONTINUED: CASE OF CONTEXT REPRESENTATION FUNCTION g
|
| 282 |
+
|
| 283 |
+
Our derivation of identifiability of $\mathbf { g } _ { \theta }$ is similar to the derivation of $\mathbf { f } _ { \pmb { \theta } }$ . The primary difference is that the normalizing constants in Equation (6) do not cancel out. First, note that we can rewrite Equation 1 as:
|
| 284 |
+
|
| 285 |
+
$$
|
| 286 |
+
p _ { \pmb { \theta } } ( \mathbf { y } | \mathbf { x } , \mathbf { S } ) = \exp ( \widetilde { \mathbf { f } _ { \pmb { \theta } } } ( \mathbf { x } , \mathbf { S } ) ^ { \top } \widetilde { \mathbf { g } } _ { \pmb { \theta } } ( \mathbf { y } ) )
|
| 287 |
+
$$
|
| 288 |
+
|
| 289 |
+
where:
|
| 290 |
+
|
| 291 |
+
$$
|
| 292 |
+
\begin{array} { r l } & { \displaystyle \widetilde { \mathbf { f } _ { \theta } } ( \mathbf { x } , \mathbf { S } ) = \left[ - Z ( \mathbf { x } , \mathbf { S } ) ; \mathbf { f } _ { \theta } ( \mathbf { x } ) \right] } \\ & { \quad \widetilde { \mathbf { g } _ { \theta } } ( \mathbf { y } ) = \left[ 1 ; \mathbf { g } _ { \theta } ( \mathbf { y } ) \right] } \\ & { \displaystyle Z ( \mathbf { x } , \mathbf { S } ) = \log \sum _ { \mathbf { y } ^ { \prime } \in \mathbf { S } } \exp ( \mathbf { f } _ { \theta } ( \mathbf { x } ) ^ { \top } \mathbf { g } _ { \theta } ( \mathbf { y } ^ { \prime } ) ) . } \end{array}
|
| 293 |
+
$$
|
| 294 |
+
|
| 295 |
+
Below, we will show that for the model family defined in Section 2,
|
| 296 |
+
|
| 297 |
+
$$
|
| 298 |
+
\begin{array} { r } { p _ { \pmb { \theta } ^ { \prime } } = p _ { \pmb { \theta } ^ { * } } \quad \Longrightarrow \quad \mathbf { g } _ { \pmb { \theta } ^ { \prime } } ( \mathbf { y } ) = \mathbf { B } \mathbf { g } _ { \pmb { \theta } ^ { \star } } ( \mathbf { y } ) , } \end{array}
|
| 299 |
+
$$
|
| 300 |
+
|
| 301 |
+
where $\mathbf { B }$ is an invertible $( M \times M )$ -dimensional matrix, concluding the proof of the linear identifiability of models in the family defined by Equation (1). We adopt the same shorthands as in the main text.
|
| 302 |
+
|
| 303 |
+
# C.1 DIVERSITY CONDITION
|
| 304 |
+
|
| 305 |
+
We assume that for any $( \theta ^ { \prime } , \theta ^ { \ast } ) \subset \Theta$ for which it holds that $p ^ { \prime } = p ^ { * }$ , and for any given $\mathbf { y }$ , there exist $M + 1$ tuples $\{ ( \mathbf { x } ^ { ( i ) } , \mathbf { S } ^ { ( i ) } ) \} _ { i = 0 } ^ { M }$ , such that $p _ { \mathcal { D } } ( \mathbf { x } ^ { ( i ) } , \mathbf { y } , \mathbf { S } ^ { ( i ) } ) > 0$ , and such that the $( ( M + 1 ) \times ( M + 1 ) )$ matrices $\mathbf { M } ^ { \prime }$ and $\mathbf { M } ^ { \ast }$ are invertible, where $\mathbf { M } ^ { \prime }$ consists of columns $\widetilde { \mathbf { f } } ^ { \prime } ( \mathbf { x } ^ { ( i ) } , \mathbf { S } ^ { ( i ) } )$ , and $\mathbf { M } ^ { * }$ consists of columns $\widetilde { \mathbf { f } } ^ { * } ( \mathbf { x } ^ { ( i ) } , \mathbf { S } ^ { ( i ) } )$ .
|
| 306 |
+
|
| 307 |
+
This is similar to the diversity condition of Section 3.2 but milder, since a typical dataset will have multiple $\mathbf { x }$ for each $\mathbf { y }$ .
|
| 308 |
+
|
| 309 |
+
# C.2 PROOF
|
| 310 |
+
|
| 311 |
+
With the data distribution $p _ { \mathcal { D } } ( \mathbf { x } , \mathbf { y } , \mathbf { S } )$ , for a given $\mathbf { y }$ , there exists a conditional distribution $p _ { \mathcal { D } } ( \mathbf { x } , \mathbf { S } | \mathbf { y } )$ Let $( \mathbf { x } , \mathbf { S } )$ be a sample from this distribution. From equation 1 and the statement to prove, it follows that:
|
| 312 |
+
|
| 313 |
+
$$
|
| 314 |
+
p ^ { \prime } ( \mathbf { y } | \mathbf { x } , \mathbf { S } ) = p ^ { * } ( \mathbf { y } | \mathbf { x } , \mathbf { S } )
|
| 315 |
+
$$
|
| 316 |
+
|
| 317 |
+
Substituting in the definition of our model from equation (9), we find:
|
| 318 |
+
|
| 319 |
+
$$
|
| 320 |
+
\exp ( \widetilde { \mathbf { f } } ^ { \prime } ( \mathbf { x } , \mathbf { S } ) ^ { \top } \widetilde { \mathbf { g } } ^ { \prime } ( \mathbf { y } ) ) = \exp ( \widetilde { \mathbf { f } } ^ { * } ( \mathbf { x } , \mathbf { S } ) ^ { \top } \widetilde { \mathbf { g } } ^ { * } ( \mathbf { y } ) ) ,
|
| 321 |
+
$$
|
| 322 |
+
|
| 323 |
+
which, evaluating logarithms, becomes
|
| 324 |
+
|
| 325 |
+
$$
|
| 326 |
+
\widetilde { \mathbf { f } } ^ { \prime } ( \mathbf { x } , \mathbf { S } ) ^ { \top } \widetilde { \mathbf { g } } ^ { \prime } ( \mathbf { y } ) = \widetilde { \mathbf { f } } ^ { * } ( \mathbf { x } , \mathbf { S } ) ^ { \top } \widetilde { \mathbf { g } } ^ { * } ( \mathbf { y } ) ,
|
| 327 |
+
$$
|
| 328 |
+
|
| 329 |
+
which is true for any triple $( \mathbf { x } , \mathbf { y } , \mathbf { S } )$ where $p _ { \mathcal { D } } ( \mathbf { y } | \mathbf { x } , \mathbf { S } ) > 0$ .
|
| 330 |
+
|
| 331 |
+
From $\mathbf { M } ^ { \prime }$ and $\mathbf { M } ^ { * }$ (Section C.1) and equation 16 we form a linear system of equations, collecting the $M + 1$ relationships together:
|
| 332 |
+
|
| 333 |
+
$$
|
| 334 |
+
\begin{array} { r } { \mathbf { M ^ { \prime } } ^ { \top } \widetilde { \mathbf { g } } ^ { \prime } ( \mathbf { y } ) = \mathbf { M ^ { * } } ^ { \top } \widetilde { \mathbf { g } } ^ { * } ( \mathbf { y } ) } \\ { \widetilde { \mathbf { g } } ^ { \prime } ( \mathbf { y } ) = \mathbf { A } \widetilde { \mathbf { g } } ^ { * } ( \mathbf { y } ) , \quad } \end{array}
|
| 335 |
+
$$
|
| 336 |
+
|
| 337 |
+
where $\mathbf { A } = ( \mathbf { M } ^ { * } \mathbf { M } ^ { \prime - 1 } ) ^ { \top }$ , an invertible $( M + 1 ) \times ( M + 1 )$ matrix.
|
| 338 |
+
|
| 339 |
+
It remains to show the existence of an invertible $M \times M$ matrix $\mathbf { B }$ such that
|
| 340 |
+
|
| 341 |
+
$$
|
| 342 |
+
\mathbf { g } ^ { \prime } ( \mathbf { y } ) = \mathbf { B } \mathbf { g } ^ { * } ( \mathbf { y } ) .
|
| 343 |
+
$$
|
| 344 |
+
|
| 345 |
+
We proceed by constructing $\mathbf { B }$ from A. Since A is invertible, there exist $j$ elementary matrices $\{ \mathbf { E } _ { 1 } , \hdots , \mathbf { E } _ { j } \}$ such that their action $\mathbf { R } = \mathbf { E } _ { j } \mathbf { E } _ { j - 1 } \ldots \mathbf { E } _ { 1 }$ converts $\mathbf { A }$ to a (non-unique) row echelon form. Without loss of generality, we build $\mathbf { R }$ such that the $^ { a _ { 1 , 1 } }$ entry of $\mathbf { A }$ is the first pivot, leading to the particular row echelon form:
|
| 346 |
+
|
| 347 |
+
$$
|
| 348 |
+
\mathbf { R A } = \left[ \begin{array} { c c c c c c } { a _ { 1 , 1 } } & { a _ { 1 , 2 } } & { a _ { 1 , 3 } } & { . . . } & { a _ { 1 , m \times 1 } } \\ { 0 } & { \tilde { a } _ { 2 , 2 } } & { \tilde { a } _ { 2 , 3 } } & { . . . } & { \tilde { a } _ { 2 , m \times 1 } } \\ { 0 } & { 0 } & { \tilde { a } _ { 3 , 3 } } & { . . . } & { \tilde { a } _ { 2 , m \times 1 } } \\ { \vdots } & { \vdots } & { \vdots } & { \ddots } & { \vdots } \\ { 0 } & { 0 } & { . . . } & { 0 } & { \tilde { a } _ { m \times 1 , m \times 1 } } \end{array} \right] ,
|
| 349 |
+
$$
|
| 350 |
+
|
| 351 |
+
where $\tilde { a } _ { i , j }$ indicates that the corresponding entry in RA may differ from A due to the action of $\mathbf { R }$ Applying $\mathbf { R }$ to Equation (17), we have
|
| 352 |
+
|
| 353 |
+
$$
|
| 354 |
+
\mathbf { R } \widetilde { \mathbf { g } } ^ { \prime } ( \mathbf { y } ) = \mathbf { R } \mathbf { A } \widetilde { \mathbf { g } } ^ { * } ( \mathbf { y } ) .
|
| 355 |
+
$$
|
| 356 |
+
|
| 357 |
+
We now show that removing the first row and column of RA and $\mathbf { R }$ generates matrices of rank $M$ . Let $\overline { { \mathbf { R A } } }$ and $\overline { { \mathbf { R } } }$ denote the $( M \times M )$ submatrices formed by removing the first row and column of RA and $\mathbf { R }$ respectively.
|
| 358 |
+
|
| 359 |
+
Equation (20) shows that $\overline { { { \bf R } { \bf A } } }$ has a pivot in each column, and thus has rank $M$ . To show that $\overline { { \mathbf { R } } }$ is invertible, we must show that removing the first row and column reduces the rank of $\mathbf { R } = \mathbf { E } _ { j } \mathbf { E } _ { j - 1 } \ldots \mathbf { E } _ { 1 }$ by exactly 1. Clearly, each $\mathbf { E } _ { k }$ is invertible, and their composition is invertible. We must show the same for the composition of $\overline { { \mathbf { E } _ { k } } }$ .
|
| 360 |
+
|
| 361 |
+
There are three cases to consider, corresponding to the three unique types of elementary matrices. Each elementary matrix acts on A by either (1) swapping rows $i$ and $j$ , (2) replacing row $j$ by a multiple $m$ of itself, or (3) adding a multiple $m$ of row $i$ to row $j$ . We denote elementary matrix types by superscripts.
|
| 362 |
+
|
| 363 |
+
In Case (1), $\mathbf { E } _ { k } ^ { 1 }$ is an identity matrix with row $i$ and row $j$ swapped. For Case (2), $\mathbf { E } _ { l } ^ { 2 }$ is an identity matrix with the $j , j ^ { t h }$ entry replaced by some $m$ . For each $\mathbf { E } _ { k } ^ { 1 }$ and $\mathbf { E } _ { l } ^ { 2 }$ in $\mathbf { R }$ , where $1 \leq k , l \leq j$ , we know that the indices $i , j \geq 2$ , because we chose the first entry of the first row of $\mathbf { A }$ to be the pivot, and hence do not swap the first row, or replace the first row by itself multiplied by a constant. This implies that removing the first row and column of $\mathbf { E } _ { k } ^ { 1 }$ and $\mathbf { E } _ { l } ^ { \bar { 2 } }$ removes a pivot entry 1 in the $( 1 , 1 )$ position, and removes zeros elsewhere. Hence, the $( M \times M )$ submatrices $\overline { { \mathbf { E } _ { k } ^ { 1 } } }$ and $\overline { { \mathbf { E } _ { l } ^ { 2 } } }$ are elementary matrices with rank $M$ .
|
| 364 |
+
|
| 365 |
+
For Case (3), $\mathbf { E } _ { k } ^ { 3 }$ has some value $m \in \mathbb { R }$ in the $j , i ^ { t h }$ entry, and 1s along the diagonal. In this case, we may find a non-zero entry in some $\mathbf { E } _ { k } ^ { 3 }$ , so that, e.g., the second row has a pivot at position $( 2 , 2 )$ . Without loss of generality, suppose $i = 1$ , $j = 2$ and let $m$ be some nonzero constant. Removing the first row and column of ${ \bf E } _ { 1 } ^ { 3 }$ removes this $m$ also. Nevertheless, $\overline { { \mathbf { E } _ { 1 } ^ { 3 } } } = \mathbf { I } _ { M }$ , the rank $M$ identity matrix. For any other $\mathbf { E } _ { k } ^ { 3 } \ 1 < i \leq M + 1$ , $j \geq 2$ because we chose $^ { a _ { 1 , 1 } }$ as the first pivot, and hence do not swap the first row, or replace the first row by itself multiplied by a constant. In both cases, removing the first row and first column creates an $\overline { { \mathbf { E } _ { k } ^ { 3 } } }$ that is a rank $M$ elementary matrix.
|
| 366 |
+
|
| 367 |
+
We have shown by the above that $\overline { { \mathbf { R } } }$ is a composition of rank $M$ matrices. We now construct the matrix $\mathbf { B }$ by removing the first entries of $\widetilde { \mathbf { g } } ^ { \prime }$ and $\widetilde { \mathbf { g } } ^ { \star }$ , and removing the first row and first column of $\mathbf { R }$ e eand RA in Equation (equation 21). Then, we have
|
| 368 |
+
|
| 369 |
+
$$
|
| 370 |
+
\begin{array} { r l } & { \overline { { { \bf R } } } { \bf g } ^ { \prime } ( { \bf y } ) = \overline { { { \bf R } { \bf A } } } { \bf g } ^ { * } ( { \bf y } ) , } \\ & { { \bf g } ^ { \prime } ( { \bf y } ) = \overline { { { \bf R } } } ^ { - 1 } \overline { { { \bf R } { \bf A } } } { \bf g } ^ { * } ( { \bf y } ) . } \end{array}
|
| 371 |
+
$$
|
| 372 |
+
|
| 373 |
+
Choosing ${ \bf B } = \overline { { { \bf R } } } ^ { - 1 } \overline { { { \bf R } { \bf A } } }$ proves the result.
|
| 374 |
+
|
| 375 |
+
# D REDUCTIONS TO CANONICAL FORM OF EQUATION (1)
|
| 376 |
+
|
| 377 |
+
In the following, we show membership in the model family of Equation 1 using the mathematical notation of the papers under discussion in Section 4. Note that each subsection will change notation to match the papers under discussion, which varies quite widely. We employ the following colour-coding scheme to aid in clarity:
|
| 378 |
+
|
| 379 |
+
$$
|
| 380 |
+
\log p _ { \theta } ( \mathbf { y } \vert \mathbf { x } , \mathbf { S } ) = \mathbf { f } _ { \theta } ( \mathbf { x } ) ^ { \top } \mathbf { g } _ { \theta } ( \mathbf { y } ) - \log \sum _ { \mathbf { y } ^ { \prime } \in \mathbf { S } } \exp ( \mathbf { f } _ { \theta } ( \mathbf { x } ) ^ { \top } \mathbf { g } _ { \theta } ( \mathbf { y } ^ { \prime } ) ) ,
|
| 381 |
+
$$
|
| 382 |
+
|
| 383 |
+
where $\mathbf { f } _ { \pmb { \theta } } ( \mathbf { x } )$ is generalized to a data representation function, $\mathbf { g } _ { \boldsymbol { \theta } } ( \mathbf { y } )$ is generalized to a context representation function, and $\begin{array} { r } { \sum _ { \mathbf { y } ^ { \prime } \in \mathbf { S } } \exp ( \mathbf { f } _ { \pmb { \theta } } ( \mathbf { x } ) ^ { \top } \mathbf { g } _ { \pmb { \theta } } ( \mathbf { y } ^ { \prime } ) ) } \end{array}$ is some constant.
|
| 384 |
+
|
| 385 |
+
# D.1 SUPERVISED CLASSIFICATION
|
| 386 |
+
|
| 387 |
+
Supervised classifiers commonly employ a neural network feature extractor followed by a linear projection of the output of this network into a space of unnormalized logits. All the layers prior to the logits are the representation function $\mathbf { f } _ { \theta }$ , and the final projection layer is the context map $\mathbf { g } _ { \pmb { \theta } } ( y = i ) = \mathbf { w } _ { i }$ , where $\mathbf { w } _ { i }$ is the $i$ -th column of a weight matrix W. The set S in this case contains human-chosen labels and has no stochasticity. The loss function is the negative log-likelihood of the data under a categorical distribution with a softmax parameterization:
|
| 388 |
+
|
| 389 |
+
$$
|
| 390 |
+
\log p _ { \pmb { \theta } } ( y = i | \mathbf { x } ; \mathbf { S } ) = \mathbf { f } _ { \pmb { \theta } } ( \mathbf { x } ) ^ { \top } \pmb { w } _ { i } - \varinjlim \sum _ { j = 1 } ^ { | \mathbf { S } | } \exp ( \mathbf { f } _ { \pmb { \theta } } ( \mathbf { x } ) ^ { \top } \pmb { w } _ { j } )
|
| 391 |
+
$$
|
| 392 |
+
|
| 393 |
+
Supervised classification is thus an member of the family defined in Section 2. It exhibits the simplest functional form for the $\mathbf { g }$ function while allowing f to be arbitrarily complicated.
|
| 394 |
+
|
| 395 |
+
# D.2 CPC
|
| 396 |
+
|
| 397 |
+
Consider a sequence of points $\mathbf { x } _ { t }$ . We wish to learn the parameters $\phi$ to maximize the $k$ -step ahead predictive distribution $p ( \mathbf { x } _ { t + k } | \mathbf { x } _ { t } , \phi )$ . In the image patch example, each patch center $i , j$ is indexed by $t$ . Each $\mathbf { x } _ { t }$ is mapped to a sequence of feature vectors $z _ { t } = f _ { \theta } ( \mathbf { x } _ { t } )$ An autoregressive model, already updated with the previous latent representations $z _ { \leq t - 1 }$ , transforms the ${ \boldsymbol { z } } _ { t }$ into a “context" latent representation ${ \bf c } _ { t } = g _ { A R } ( z _ { \leq t } )$ . Instead of predicting future observations $k$ steps ahead, $\mathbf { x } _ { t + k }$ , directly through a generative model $\dot { p } _ { k } \big ( \mathbf { x } _ { t + k } | \mathbf { c } _ { t } \big )$ , Oord et al. (2018) model a density ratio in order to preserve the mutual information between $\mathbf { x } _ { t + k }$ and $\mathbf { c } _ { t }$ .
|
| 398 |
+
|
| 399 |
+
Objective Let $\mathbf { X } = \{ \mathbf { x } _ { 1 } , \ldots , \mathbf { x } _ { N } \}$ be a set of $N$ random samples containing one positive sample from $p ( \mathbf { x } _ { t + k } | \mathbf { c } _ { t } )$ and $N - 1$ samples from the proposal distribution $p ( \mathbf { x } _ { t + k } )$ . Oord et al. (2018) define the following link function: $l _ { k } ( \mathbf { x } _ { t + k } , \mathbf { c } _ { t } ) \triangleq \exp \left( \mathbf { z } _ { t + k } ^ { \intercal } \mathbf { W } _ { k } \mathbf { c } _ { t } \right)$ . Then, CPC optimizes
|
| 400 |
+
|
| 401 |
+
$$
|
| 402 |
+
- \mathbb { E } _ { \mathbf { X } } \left[ \log \frac { l _ { k } ( \mathbf { x } _ { t + k } , \mathbf { c } _ { t } ) } { \sum _ { x _ { j } \in X } l _ { k } ( \mathbf { x } _ { j } , \mathbf { c } _ { t } ) } \right] = - \mathbb { E } _ { \mathbf { X } } \left[ \log \frac { \exp \left( \mathbf { z } _ { t + k } \mathbf { \Xi } ^ { \top } \mathbf { W } _ { k } \mathbf { c } _ { t } \right) } { \sum _ { \mathbf { x } _ { j } \in \mathbf { X } } \exp \left( \mathbf { z } _ { j } ^ { \top } \mathbf { W } _ { k } \mathbf { c } _ { t } \right) } \right] .
|
| 403 |
+
$$
|
| 404 |
+
|
| 405 |
+
Substituting in the definition of $l _ { k }$ makes equation (24) identical to the model family (Equation 1).
|
| 406 |
+
|
| 407 |
+
D.3 AUTOREGRESSIVE LANGUAGE MODELS (E.G. GPT-2)
|
| 408 |
+
|
| 409 |
+
Let ${ \mathcal { U } } = \{ u _ { 1 } , \ldots , u _ { n } \}$ be a corpus of tokens. Autoregressive language models maximize a loglikelihood $\begin{array} { r } { \dot { L } ( \mathcal { U } ) = \sum _ { i = 1 } ^ { n } \log P ( u _ { i } | u _ { i - k } , \dots , u _ { i - 1 } ; \Theta ) } \end{array}$ , Concretely, the conditional density is modelled as
|
| 410 |
+
|
| 411 |
+
$$
|
| 412 |
+
\begin{array} { r } { \log P ( u _ { i } | u _ { i - k : i - 1 } ; \Theta ) \qquad } \\ { = \mathbf { W } _ { i : } \mathbf { h } _ { i } - \log \displaystyle \sum _ { j } \exp ( \mathbf { W } _ { j : } \mathbf { h } _ { i } ) , } \end{array}
|
| 413 |
+
$$
|
| 414 |
+
|
| 415 |
+
where $\mathbf { h } _ { i }$ is the $m \times 1$ output of a function approximator (e.g. a Transformer decoder (Liu et al., 2018)), and $\mathbf { W } _ { i }$ : is the $i$ ’th row of the $| \mathcal { U } | \times m$ token embedding matrix.
|
| 416 |
+
|
| 417 |
+
# D.4 BERT
|
| 418 |
+
|
| 419 |
+
Consider a sequence of text $\mathbf x = [ x _ { 1 } , \dots , x _ { T } ]$ . Some proportion of the symbols in $\mathbf { x }$ are extracted into a vector $\bar { \bf x }$ , and then set in $\mathbf { x }$ to a special null symbol, “corrupting" the original sequence. This operation generates the corrupted sequence $\mathbf { \underline { { x } } }$ . The representational learning task is to predict $\bar { \bf x }$ conditioned on $\mathbf { \underline { { x } } }$ , that is, to maximize w.r.t. $\pmb { \theta }$ ¯:
|
| 420 |
+
|
| 421 |
+
$$
|
| 422 |
+
\log p _ { \theta } ( \bar { \mathbf { x } } | \mathbf { x } ) \approx \sum _ { t = 1 } ^ { T } m _ { t } \log p _ { \theta } ( x _ { t } | \mathbf { x } ) = \sum _ { t = 1 } ^ { T } m _ { t } \Biggl ( \overline { { H _ { \theta } ( \mathbf { x } ) _ { t } } } ^ { \top } e ( x _ { t } ) - \log \sum _ { x ^ { \prime } } \exp \left( H _ { \theta } ( \mathbf { x } ) _ { t } ^ { \top } e ( x ^ { \prime } ) \right) \Biggr ) ,
|
| 423 |
+
$$
|
| 424 |
+
|
| 425 |
+
where $H$ is a transformer, $e$ is a lookup table, and $m _ { t } = 1$ if symbol $x _ { t }$ is masked. That is, corrupted symbols are “reconstructed" by the model, meaning that their index is predicted. As noted in Yang et al. (2019), BERT models the joint conditional probability $p ( { \bar { \mathbf { x } } } | \mathbf { x } )$ as factorized so that each masked token is separately reconstructed. This means that the log likelihood is approximate instead of exact.
|
| 426 |
+
|
| 427 |
+
# D.5 QUICKTHOUGHT VECTORS
|
| 428 |
+
|
| 429 |
+
Let f and $\mathbf { g }$ be functions that take a sentence as input and encode it into an fixed length vector. Let $s$ be a given sentence, and $S _ { c t x t }$ be the set of sentences appearing in the context of $s$ for a fixed context size. Let $S _ { c a n d }$ be the set of candidate sentences considered for a given context sentence $s _ { c t x t } \in S _ { c t x t }$ . Then, $S _ { c a n d }$ contains a valid context sentence $s _ { c t x t }$ as well as many other non-context sentences. $S _ { c a n d }$ is used for the classification objective. For any given sentence position in the context of $s$ (for example, the preceding sentence), the probability that a candidate sentence $s _ { c a n d } \in S _ { c a n d }$ is the correct sentence for that position is given by
|
| 430 |
+
|
| 431 |
+
$$
|
| 432 |
+
\log p ( s _ { c a n d } | s , S _ { c a n d } ) = f _ { \theta } ( s ) ^ { \top } \underline { { { g } _ { \theta } ( s _ { c a n d } ) ) } } - \log \sum _ { s ^ { \prime } \in S _ { c a n d } } \exp \left( f _ { \theta } ( s ) ^ { \top } g _ { \theta } ( s _ { c a n d } ^ { \prime } ) \right) .
|
| 433 |
+
$$
|
| 434 |
+
|
| 435 |
+
# D.6 DEEP METRIC LEARNING
|
| 436 |
+
|
| 437 |
+
The multi-class N-pair loss in Sohn (2016) is proportional to
|
| 438 |
+
|
| 439 |
+
$$
|
| 440 |
+
\log N - \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \log \left( 1 + \sum _ { j \neq i } \exp \{ \mathbf { f } _ { \theta } ( { x _ { i } } ) ^ { \top } \mathbf { f } _ { \theta } ( y _ { j } ) - \mathbf { f } _ { \theta } ( { x _ { i } } ) ^ { \top } \mathbf { f } _ { \theta } ( y _ { i } ) ) \} \right) ,
|
| 441 |
+
$$
|
| 442 |
+
|
| 443 |
+
which can be simplified as
|
| 444 |
+
|
| 445 |
+
$$
|
| 446 |
+
\begin{array} { l } { { \displaystyle - \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \log \left( \frac { 1 } { K } \sum _ { j = 1 } ^ { K } \exp \{ \mathbf { f } _ { \theta } ( x _ { i } ) ^ { \top } \mathbf { f } _ { \theta } ( y _ { j } ) - \mathbf { f } _ { \theta } ( x _ { i } ) ^ { \top } \mathbf { f } _ { \theta } ( y _ { i } ) \} \right) } } \\ { { \displaystyle = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \log \left( \frac { 1 } { \frac { 1 } { K } \sum _ { j = 1 } ^ { K } \exp \{ \mathbf { f } _ { \theta } ( x _ { i } ) ^ { \top } \mathbf { f } _ { \theta } ( y _ { j } ) - \mathbf { f } _ { \theta } ( x _ { i } ) ^ { \top } \mathbf { f } _ { \theta } ( y _ { i } ) \} } \right) } } \\ { { \displaystyle = \frac { 1 } { N } \sum _ { i = 1 } ^ { N } \log \left( \frac { \exp \{ \mathbf { f } _ { \theta } ( x _ { i } ) ^ { \top } \mathbf { f } _ { \theta } ( y _ { i } ) \} } { \frac { 1 } { K } \sum _ { j = 1 } ^ { K } \exp \{ \mathbf { f } _ { \theta } ( x _ { i } ) ^ { \top } \mathbf { f } _ { \theta } ( y _ { j } ) \} } \right) . } } \end{array}
|
| 447 |
+
$$
|
| 448 |
+
|
| 449 |
+
Setting $\mathbf { N }$ to 1 and evaluating the log gives
|
| 450 |
+
|
| 451 |
+
$$
|
| 452 |
+
\mathbf { f } _ { \pmb { \theta } } ( x _ { i } ) ^ { \top } \mathbf { f } _ { \pmb { \theta } } ( y _ { i } ) - \frac { 1 } { K } \sum _ { j = 1 } ^ { K } \exp ( \mathbf { f } _ { \pmb { \theta } } ( x _ { i } ) ^ { \top } \mathbf { f } _ { \pmb { \theta } } ( y _ { j } ) ) ,
|
| 453 |
+
$$
|
| 454 |
+
|
| 455 |
+
which is Equation 1 where $\mathbf { f } _ { \theta } = \mathbf { g } _ { \theta }$
|
| 456 |
+
|
| 457 |
+
# D.7 NEURAL PROBABILISTIC LANGUAGE MODELS (NPLMS)
|
| 458 |
+
|
| 459 |
+
Figure 1 shows results from a neural probabilistic language model as proposed in Mnih and Teh (2012). Mnih and Teh (2012) propose using a log-bilinear model (Mnih and Hinton, 2009) which, given some context $h$ , learns a context word vectors $r _ { w }$ and target word vectors $q _ { w }$ . Two different embedding matrices are maintained, in other words: one to capture the embedding of the word and the other the context. The representation for the context vectorlinear combination of the context words and a context weight matrix $\hat { q }$ , is thenso that . $C _ { i }$ $\begin{array} { r } { \hat { q } = \bar { \sum } _ { i = 1 } ^ { n - 1 } C _ { i } r _ { w _ { i } } } \end{array}$ The score for the match between the context and the next word is computed as a dot product, e.g., $s _ { \theta } ( w , h ) = \hat { q } ^ { \top } \tilde { q } _ { w } { } ^ { 1 }$ and substituting into the definition of $P _ { \theta } ^ { h } ( w )$ , we see that
|
| 460 |
+
|
| 461 |
+
$$
|
| 462 |
+
\log P _ { \theta } ^ { h } ( w ) = \boldsymbol { \hat { q } } ^ { \top } \boldsymbol { \tilde { q } } _ { w } - \log \sum _ { w ^ { \prime } } \exp \left( \boldsymbol { \hat { q } } ^ { \top } \boldsymbol { \tilde { q } } _ { w ^ { \prime } } \right)
|
| 463 |
+
$$
|
| 464 |
+
|
| 465 |
+
shows that Mnih and Teh (2012) is a member of the model family.
|
| 466 |
+
|
| 467 |
+
Interestingly, a touchstone work in the area of NPLMs, Word2Vec (Mikolov et al., 2013), does not fall under the model family due to an additional nonlinearity applied to the score of Mnih and Teh (2012).
|
parse/train/RHY_9ZVcTa_/RHY_9ZVcTa__content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/RHY_9ZVcTa_/RHY_9ZVcTa__middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/RHY_9ZVcTa_/RHY_9ZVcTa__model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJx0q1rtvS/SJx0q1rtvS.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJx0q1rtvS/SJx0q1rtvS_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJx0q1rtvS/SJx0q1rtvS_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJx0q1rtvS/SJx0q1rtvS_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJo9n9Feg/rJo9n9Feg_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/xCy9thPPTb_/xCy9thPPTb_.md
ADDED
|
@@ -0,0 +1,247 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# THE COMPACT SUPPORT NEURAL NETWORK
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Neural networks are popular and useful in many fields, but they have the problem of giving high confidence responses for examples that are away from the training data. This makes the neural networks very confident in their prediction while making gross mistakes, thus limiting their reliability for safety critical applications such as autonomous driving, space exploration, etc. In this paper, we present a neuron generalization that has the standard dot-product based neuron and the RBF neuron as two extreme cases of a shape parameter. Using ReLU as the activation function we obtain a novel neuron that compact support, which means its output is zero outside a bounded domain. We show how to avoid difficulties in training a neural network with such neurons, by starting with a trained standard neural network and gradually increasing the shape parameter to the desired value. Through experiments on standard benchmark datasets, we show the promise of the proposed approach, in that it can have good prediction on in-distribution samples, while being able to consistently detect and have low confidence on out of distribution samples.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Neural networks have been proven to be extremely useful in all sorts of applications, including object detection, speech and handwriting recognition, medical imaging, etc. They have become the state of the art in these applications, and in some cases they even surpass human performance. However, neural networks have been observed to have a major disadvantage: they don’t know when they don’t know, i.e. don’t know when the input is far away from the type of data they have been trained on. Instead of saying “I don’t know”, they give some output with high confidence (Goodfellow et al., 2015; Nguyen et al., 2015). An explanation of why this is happening for ReLU based networks has been given in Hein et al. (2019). This issue is very important for safety-critical applications such as space exploration, autonomous driving, medical diagnosis, etc. In these cases it is important that the system know when the input data is outside its nominal range, to alert the human (e.g. driver for autonomous driving or radiologist for medical diagnostic) to take charge in such cases.
|
| 12 |
+
|
| 13 |
+
In this paper we suspect that the root of this problem is actually the neuron design, and propose a different type of neuron to address what we think are its issues. The standard neuron can be written as $f ( x ) = \dot { \sigma } ( \mathbf { w } ^ { T } \mathbf { x } + b )$ , which can be regarded as a projection (dot product) $\mathbf { x } \to \mathbf { w } ^ { T } \mathbf { x } + b$ onto a direction w, followed by a nonlinearity $\tilde { \sigma } ( \cdot )$ . In this design, the neuron has a large response for vectors $\mathbf { x } \in \mathbb { R } ^ { p }$ that are in a half-space. This can be an advantage when training the NN since it creates high connectivity in the weight space and makes the neurons sensitive to far-away signals. However, it is a disadvantage when using the trained NN, since it can lead to the neurons unpredictably firing with high responses to far-away signals, which can result (with some probability) in high confidence responses of the whole network for examples that are far away from the training data.
|
| 14 |
+
|
| 15 |
+
To address these problems, we use a type of radial basis function neuron (Broomhead & Lowe, 1988), $f ( \mathbf { x } ) = g ( \| \mathbf { x } - \mathbf { \bar { \mu } } \| ^ { 2 } )$ , which we modify to have a high response only for examples that are close to $\pmb { \mu }$ , and to have zero response at distance at least $R$ from $\pmb { \mu }$ . Therefore the neuron has compact support, and the same applies to a layer formed entirely of such neurons. Using one such compact support layer before the output layer we can guarantee that the space where the NN has a non-zero response is bounded, obtaining a more reliable neural network.
|
| 16 |
+
|
| 17 |
+
In this formulation, the parameter vector $\pmb { \mu }$ is directly comparable to the neuron inputs $\mathbf { x }$ , thus $\pmb { \mu }$ has a simple and direct interpretation as a "template". A layer consisting of such neurons forms can be interpreted as a sparse coordinate system on the manifold containing the inputs of that layer.
|
| 18 |
+
|
| 19 |
+
Because of the compact support, the loss function of such a compact support NN has many flat areas and it can be difficult to training it directly by backpropagation. However, we will show how to train such a NN, by starting with a trained regular NN and gradually bending the neuron decision boundaries to make them have smaller and smaller support.
|
| 20 |
+
|
| 21 |
+
The contributions of this paper are the following:
|
| 22 |
+
|
| 23 |
+
• We introduce a type of neuron formulation that generalizes the standard neuron and the RBF neuron as two extreme cases of a shape parameter. Moreover one can smoothly transition from a regular neuron to a RBF neuron by gradually changing this parameter. We introduce the RBF correspondent to a ReLU neuron and observe that it has compact support, i.e. its output is zero outside a bounded domain. The above construction allows us to smoothly bend the decision boundary of a standard ReLU based neuron, obtaining a compact support neuron. We use this idea to train a compact support neural network (CSNN) starting from a pre-trained regular neural network. We show through experiments on standard datasets that the proposed CSNN can achieve comparable test errors with regular CNNs, and at the same time it can detect and have low confidence on out-of-distribution data.
|
| 24 |
+
|
| 25 |
+
# 1.1 RELATED WORK
|
| 26 |
+
|
| 27 |
+
A common way to address the problem of high confidence predictions for out of distribution (OOD) examples is through ensembles (Lakshminarayanan et al., 2017), where multiple neural networks are trained with different random initializations and their outputs are averaged in some way. The reason why ensemble methods have low confidence on OOD samples is that the high-confidence domain of each NN is random outside the training data, and the common high-confidence domain is therefore shrunk by the averaging process. This reasoning works well when the representation space (the space of the NN before the output layer) is high dimensional, but it fails when this space is low dimensional (see van Amersfoort et al. (2020) for example).
|
| 28 |
+
|
| 29 |
+
Another popular approach is adversarial training (Madry et al., 2018), where the training set is augmented with adversarial examples generated by maximizing the loss starting from slightly perturbed examples. This method is modified in adversarial confidence enhanced training (ACET) (Hein et al., 2019) where the adversarial samples are added through a hybrid loss function. However, we believe that training with out of distribution samples could be a computationally expensive if not hopeless endeavor, since the instance space is extremely vast when it is high dimensional. Consequently, a finite number of training examples can only cover an insignificant part of it and no matter how many out-of-distribution examples are used, there always will be other parts of the instance space that have not been explored. Other methods include the estimation of the uncertainty using dropout (Gal & Ghahramani, 2016), softmax calibration (Guo et al., 2017), and the detection of out-of-distribution inputs (Hendrycks & Gimpel, 2017). CutMix Yun et al. (2019) is a method to generate training samples with larger variability, which help improve generalization and OOD detection. All these methods are complementary to our approach and could be used together with our classifiers to improve accuracy and OOD detection.
|
| 30 |
+
|
| 31 |
+
In Ren et al. (2019) are trained two auto-regressive models, one for the foreground in-distribution data and one for the background, and the likelihood ratio is used to decide for each observation whether it is OOD or not. This is a generative model, while our model is discriminative.
|
| 32 |
+
|
| 33 |
+
A number of works assume that the distance in the representation space (the space of outputs of the last layer before the final classification layer) is meaningful. They will be reviewed next.
|
| 34 |
+
|
| 35 |
+
Recently, Jiang et al. (2018) proposed a trust score that measures the agreement between a given classifier and a modified version of a $k$ -nearest neighbor classifier. While this approach does consider the distance of the test samples to the training set, it only does so to a certain extent since the $k$ -NN does not have a concept of “too far”, and is also computationally expensive.
|
| 36 |
+
|
| 37 |
+
A simple method based on the Mahalanobis distance is presented in Lee et al. (2018). It assumes that the observations are normally distributed in the representation space, with a shared covariance matrix for all classes. While we also assume that the distance in the representation space is meaningful, we make a much weaker assumption that the observations for each class are clustered in a number of clusters, not necessarily Gaussian. In our representation, each class is usually covered by more than one compact support neuron, and each neuron could be involved in multiple classes. Furthermore, the method in Lee et al. (2018) simply replaces the last layer of the NN with their Mahalanobis measure and makes no attempt to further train the new model, while we can train our layers together with the whole network.
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
Figure 1: The construction (3) smoothly interpolates between a standard neuron $( \alpha = 0$ ) and an RBF-type of neuron $( \alpha = 1$ ). Shown are the neuron decision boundaries for various values of $\alpha$ .
|
| 41 |
+
|
| 42 |
+
The Generalized ODIN Hsu et al. (2020) decomposes the output prediction into the ratio of a classspecific function $h _ { i } ( x )$ and a common denominator $g ( x )$ , both defined over instances $x$ from the representation space. Good results are obtained using $h _ { i }$ based on the Euclidean distance or the cosine similarity. Again, this approach assumes that the observations are grouped in a single cluster for each class, which explains it uses very deep models (with 34-100 layers) that are more capable to obtain representations where this assumption is satisfied. Our method does not make the single cluster per class assumption, and can use deep or shallow models.
|
| 43 |
+
|
| 44 |
+
The Deterministic Uncertainty Quantification (DUQ) (van Amersfoort et al., 2020) method uses an RBF network and a special gradient penalty to decrease the prediction confidence away from the training examples. The authors also propose a centroid updating scheme to handle the difficulties in training an RBF network. In contrast, our paper proposes a generalized neuron model that has the RBF neurons and the standard neurons as two extreme cases, and trains all models starting from a standard NN where the local minima are more well behaved.
|
| 45 |
+
|
| 46 |
+
# 2 THE COMPACT SUPPORT NEURAL NETWORK
|
| 47 |
+
|
| 48 |
+
The compact support neural network consists of a number of layers, where the last layer before the output layer contains only compact support neurons, which will be described next. The other layers could be regular neural network or convolutional neural network layers, or compact support layers. The final output layer is a regular linear layer without a bias term, so that it can output a vector of all zeros when appropriate.
|
| 49 |
+
|
| 50 |
+
# 2.1 THE COMPACT SUPPORT NEURON
|
| 51 |
+
|
| 52 |
+
We start with the radial basis function (RBF) neuron (Broomhead & Lowe, 1988),
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
f _ { \mathbf { w } } ( \mathbf { x } ) = g ( \| \mathbf { x } - \mathbf { w } \| ^ { 2 } ) .
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
The RBF neuron has $g ( u ) = \exp ( - \beta u )$ as the activation function, but in this paper we will use $g ( u ) = \operatorname* { m a x } ( R ^ { 2 } - u , \bar { 0 } )$ because it is related to the ReLU.
|
| 59 |
+
|
| 60 |
+
A flexible representation. We can introduce an extra parameter $\alpha = 1$ and rewrite eq. (1) as
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
f _ { \mathbf { w } } ( \mathbf { x } ) = g ( \mathbf { x } ^ { T } \mathbf { x } + \mathbf { w } ^ { t } \mathbf { w } - 2 \mathbf { w } ^ { T } \mathbf { x } ) = g ( \alpha ( \| \mathbf { x } \| ^ { 2 } + \| \mathbf { w } \| ^ { 2 } ) - 2 \mathbf { w } ^ { T } \mathbf { x } ) .
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
Using the parameter $\alpha$ , we obtain a representation that smoothly changes between an RBF neuron when $\alpha = 1$ and a standard projection neuron when $\alpha = 0$ . However, starting with an RBF neuron with $g ( u ) = \exp ( - \beta u )$ , we obtain the projection neuron for $\alpha = 0$ as $f _ { \mathbf { w } } ( \mathbf { x } ) = \exp ( 2 \mathbf { w } ^ { T } \mathbf { x } )$ , which has an exponential activation function.
|
| 67 |
+
|
| 68 |
+
The compact support neuron. We want to obtain a standard ReLU based neuron $f _ { \mathbf { w } } ( \mathbf { x } ) = \sigma ( \mathbf { w } ^ { T } \mathbf { x } )$ with $\sigma ( u ) = \operatorname* { m a x } ( u , 0 )$ for $\alpha = 0$ . For this purpose we will use $g ( u ) = \sigma ( R ^ { 2 } - \dot { u } )$ , and modify the above construction to obtain the compact support neuron:
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
f _ { \mathbf { w } } ( \mathbf { x } ) = \sigma ( R ^ { 2 } - \mathbf { x } ^ { T } \mathbf { x } - \mathbf { w } ^ { T } \mathbf { w } + 2 \mathbf { w } ^ { T } \mathbf { x } ) = \sigma [ \alpha ( R ^ { 2 } - \| \mathbf { x } \| ^ { 2 } - \| \mathbf { w } \| ^ { 2 } - b ) + 2 \mathbf { w } ^ { T } \mathbf { x } + b ] ,
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+

|
| 75 |
+
Figure 2: Left: Diagram of the compact support neural network (CSNN), with the CSN layer described in Eq. (6). Right: an example of the CSNN with normalized input from ResNet. Only the full arrows have backpropagation.
|
| 76 |
+
|
| 77 |
+
where we also introduced a bias term $b$ for the standard neuron. We usually make $b = 0$ for simplicity.
|
| 78 |
+
The parameter $R$ defines the radius of the support of the neuron when $\alpha = 1$ .
|
| 79 |
+
|
| 80 |
+
One can easily check that the support of $f _ { \mathbf { w } } ( \mathbf { x } )$ from eq. (3) (i.e. the domain where it takes nonzero values) is in a sphere of radius
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
R _ { \alpha } ^ { 2 } = R ^ { 2 } + b ( 1 / \alpha - 1 ) + \| \mathbf { w } \| ^ { 2 } ( 1 / \alpha ^ { 2 } - 1 )
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
centered at $\mathbf { w } _ { \alpha } = \mathbf { w } / \alpha$ . Therefore the neuron from eq. (3) has compact support for any $\alpha > 0$ and the larger the value of $\alpha$ , the smaller the support of the neuron will be. In Figure 1 is shown the support for several values of $\alpha \in [ 0 , 1 ]$ of the neuron (3) with $\mathbf { w } = ( 0 , 2 ) ^ { T } , b = \mathbf { \bar { 0 } }$ and $R = 1$ .
|
| 87 |
+
|
| 88 |
+
Convolutional version. If one desires to make a compact support convolutional neuron, let w be its $k \times k$ matrix of weights. Then the convolutional version can be obtained by taking into consideration that each $k \times k$ patch of an image I is a candidate $\mathbf { x }$ in eq. (3). Therefore one can easily check that the convolutional compact support neuron should be:
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
f _ { \mathbf { w } } ( { \mathbf { I } } ) = \sigma [ \alpha ( R ^ { 2 } - b - { \mathbf { I } } ^ { 2 } * { \mathbf { 1 } } - \| \mathbf { w } \| ^ { 2 } ) + 2 { \mathbf { I } } * { \mathbf { w } } + b ]
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
where 1 is a $k \times k$ matrix of ones, $\mathbf { I } ^ { 2 }$ is done elementwise and $^ *$ is the convolution.
|
| 95 |
+
|
| 96 |
+
# 2.2 THE COMPACT SUPPORT NEURAL NETWORK
|
| 97 |
+
|
| 98 |
+
If we have a layer containing only compact support neurons (CSN), combining the weights into a matrix ${ \bf W } ^ { T } = \dot { ( } { \bf w } _ { 1 } , . . . , { \bf w } _ { K } \dot { ) }$ and the biases into a vector $\mathbf { b } = ( b _ { 1 } , . . . , b _ { K } )$ , we can write the CSN layer as:
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\mathbf { f } _ { \mathbf { W } } ( \mathbf { x } ) = \sigma ( \alpha [ R ^ { 2 } - \mathbf { b } - \mathbf { x } ^ { T } \mathbf { x } - \mathrm { T r } ( \mathbf { W } \mathbf { W } ^ { T } ) ] + 2 \mathbf { W } \mathbf { x } + \mathbf { b } ) .
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
where $\mathbf { f _ { W } } ( \mathbf { x } ) = ( f _ { 1 } ( \mathbf { x } ) , . . . , f _ { K } ( \mathbf { x } ) ) ^ { T }$ is the vector of neuron outputs of that layer. This formulation enables the use of standard neural network machinery (e.g. PyTorch) to train a CSN. In practice we will have no bias term (i.e. $\mathbf { b } = 0$ ), except in low dimensional experiments.
|
| 105 |
+
|
| 106 |
+
The simplest compact support neural network (CSNN) has two layers: a hidden layer containing compact support neurons (3) or their convolutional counterparts (5), and an output layer which is a standard fully connected layer without bias. It is illustrated in Figure 2, left.
|
| 107 |
+
|
| 108 |
+
Normalization. For best results, all variables of the input data $\mathbf { x }$ should be on the same scale. For better control, it is also preferable that $\| \mathbf { x } \|$ be approximately 1 on the training examples. These goals√ can be achieved by standardizing the variables to have zero mean and standard deviation $1 / \sqrt { d }$ on the training examples (where $d$ is the dimension of $\mathbf { x }$ ). This way $\| \mathbf { x } \| ^ { 2 } \sim 1$ when the dimension $d$ is large (under assumptions of normality and independence of the variables of $\mathbf { x }$ ). Our experiments on three datasets indicate that indeed $\| \mathbf { x } \| \sim 1$ on real data when the inputs $\mathbf { x }$ are normalized as described above, as exemplified by the histograms of $\| \mathbf { x } \|$ from Figure 3.
|
| 109 |
+
|
| 110 |
+

|
| 111 |
+
Figure 3: Histogram of the norms $\left\| \mathbf { v } _ { i } \right\|$ of the normalized input features $\mathbf { v } _ { i }$ to the CSN layer for the three datasets trained in our experiments.
|
| 112 |
+
|
| 113 |
+
Training. Like the RBF network, training a neural network with such neurons with $\alpha = 1$ is difficult because the loss function has many local optima. To make matters even worse, the compact support neurons have small support when $\alpha$ is close to 1, and consequently the loss function has flat regions between the local minima.
|
| 114 |
+
|
| 115 |
+
This is why we take another approach to training. Using equations (6) or (5) we can train a CSNN by first training a regular NN $( \alpha = 0$ ) and then gradually increasing the shape parameter $\alpha$ from 0 towards 1 while continuing to update the NN parameters. Observe that whenever $\alpha > 0$ the NN has compact support, but the support gets smaller as $\alpha$ gets closer to 1. The training procedure is described in detail in Algorithm 1.
|
| 116 |
+
|
| 117 |
+
Algorithm 1 Compact Support Neural Network (CSNN) Training
|
| 118 |
+
|
| 119 |
+
<table><tr><td>Output: Trained CSNN.</td><td>Input: Training set T = {(xi, yi) ∈ RP × R}=1,</td><td></td><td></td></tr><tr><td></td><td></td><td>1: Train a regular CNN f(x) = Lo(2Wg(x) + b) where W,L are the last two layer weight</td><td></td></tr><tr><td></td><td>matrices and g(x) is the rest of the CNN.</td><td>2: Freeze g(x), compute ui = g(xi),i = 1,.,n, their mean μ and standard deviation o.</td><td></td></tr><tr><td>3:</td><td> Obtain normalized versions Vi of ui as Vi = (ui - μ)/√do,i = 1,., n.</td><td></td><td></td></tr><tr><td>4:</td><td>for e= 1 to Nepochs do</td><td></td><td></td></tr><tr><td>5:</td><td>Set α = e/Nepochs</td><td></td><td></td></tr><tr><td>6:</td><td> Use the examples (Vi, yi) to update (W,L,b) based on one epoch of</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td>f(ν)=Lσ(α[R²-vTv- Tr(WWT)-b]+ 2Wv +b)</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td>7:(optional) Remove any neurons Wj of WT = (w1,.*,Wk) that are dead,i.e. satisfy:</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td>σ(a[R²-||vill²-|/wjl²)-bj]+2wTνi+bj)=0,i=1,.,n</td><td></td><td></td></tr></table>
|
| 120 |
+
|
| 121 |
+
8: end for
|
| 122 |
+
|
| 123 |
+
In the synthetic experiment in Figure 4 we succeeded to bring the train and test errors close to 0 for $\alpha = 1$ using a carefully crafted schedule for increasing the $\alpha$ . However, in the real data applications, the training, test and validation errors might first decrease a little bit but ultimately increase as $\alpha$ approaches 1. For example one could see the test errors vs $\alpha$ for the synthetic dataset in Figure 6 and for the real datasets in Figure 9. For this reason, in practice we stop the training at an $\alpha < 1$ where the training and validation errors still take acceptable values, e.g. a validation error less than the validation error for $\alpha = 0$ . However, we noticed that the larger the value of $\alpha$ , the tighter the support around the training data and the better the generalization.
|
| 124 |
+
|
| 125 |
+
It is worth noting that in contrast to the weights of a standard neuron, the weights of the compact support neuron exist in the same space as the neuron inputs and they can be regarded as templates. Thus they have more meaning, and one could easily visualize the type of responses that make them maximal, using standard neuron visualization techniques such as Zeiler & Fergus (2014). Furthermore, one can also obtain samples from the compact support neurons, e.g. for generative or GAN models.
|
| 126 |
+
|
| 127 |
+
# 3 EXPERIMENTS
|
| 128 |
+
|
| 129 |
+
In this section we first present an experiment on 2D data to showcase what can be achieved with the proposed compact support neural network, and then experiments on real datasets to show the power of the CSNN to model real data and how it can detect out-of-distribution samples.
|
| 130 |
+
|
| 131 |
+
# 3.1 2D EXAMPLE
|
| 132 |
+
|
| 133 |
+
We present a first experiment with the moons 2D dataset, where the data is organized on two intertwining half-circle like shapes, one containing the positives and one the negatives. The data is scaled so that all observations are in the interval $[ 0 , 1 ] ^ { \dot { 2 } }$ (shown as a white rectangle in Figure 4. As out of distribution data (OOD) we started with $1 0 0 \times 1 0 0 = 1 0 0 0 0$ samples on a grid spanning $[ - 0 . 5 , 1 . 5 ] ^ { 2 }$ and we removed all samples at distance at most 0.1 from the moons data, obtaining 8763 samples.
|
| 134 |
+
|
| 135 |
+
We used a two layer CSNN, with the first layer having 128 CSNN neurons, and the second layer being a standard NN layer without bias, as illustrated in Figure 2, left. The second layer is used to integrate the evidence from the CSNN neurons into the class prediction. We used 200 training examples and trained the CSNN using Algorithm 1. We trained 2000 epochs with $R ^ { 2 }$ decreasing linearly from 0.04 to 0.01, and $\alpha$ increasing from 0 to 1 as $\alpha _ { i } = \operatorname* { m i n } ( 1 , \operatorname* { m a x } ( 0 , ( i ^ { 0 . 1 } - 1 . 5 ) / . 6 ) )$ , $i = 1 , . . . , 2 0 0 0$ . This way $\alpha$ increases slower as it gets closer to 1. Using this special training we avoided the training and test errors blowing up when $\alpha$ gets close to 1. As specified in line 7 of Algorithm 1, the NN nodes that had zero response on all training examples were eliminated. These neurons cannot be trained anymore and only give uncontrolled responses on unseen data. This way from the 128 neurons, only 73 were left at the end of training.
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
Figure 4: The confidence map (0.5 for white and 1 for black) of the trained CSNN on the moons dataset for different values of $\alpha \in [ 0 , 1 ]$ . Top: zoom out on the interval $[ - 5 , 6 ] ^ { 2 }$ . Bottom: zoom in view of the interval $[ - 0 . 5 , 1 . 5 ] ^ { 2 }$ .
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
Figure 5: Example of activation pattern domains for $\alpha = 0$ and $\alpha ~ = ~ 0 . 8 2 5$ and the resulting confidence map (0.5 for white and 1 for black) for $\alpha = 0 . 8 2 5$ for a 32 neuron 2-layer CSNN.
|
| 142 |
+
|
| 143 |
+
The training/test errors and the AUROC and NZ confidence measures for the OOD data described above vs. $\alpha$ are shown in Figure 6. Observe that the training and test errors for $\alpha = 0$ are quite large, because the standard NN with 128 neurons cannot fit the data well enough, and they decrease as the neuron support decreases and the model is better capable to fit the data.
|
| 144 |
+
|
| 145 |
+
The confidence map for the obtained classifier is shown in Figure 4. We can see that the confidence is 0.5 (white) almost everywhere except close to the training data, where it is close to 1 (black). This gives us an insight that the method works as expected, shrinking the support of the neurons to a small domain around the training data. We also see that the support is already reasonably small for $\alpha = 0 . 6$ and it gets tighter and tighter as $\alpha$ gets closer to 1.
|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
Figure 6: CSNN train and test errors, AUROC and percent nonzero outputs (NZ) vs. $\alpha$ for the moons data.
|
| 149 |
+
|
| 150 |
+
It is known Croce & Hein (2018); Hein et al. (2019) that the output of a ReLU-based neural network is piecewise linear and the domains of linearity are given by the activation pattern of the neurons. The activation pattern of the neurons consists of the domains where the set of neurons that are active (i.e. their output is positive) does not change. These activation pattern domains are polytopes, as shown in in Figure 5, left, for a two-layer NN with 32 neurons. The activation domains for a CSNN are intersections of circles, as illustrated in Figure 5, middle, with the domain where all neurons are inactive shown in white. The corresponding confidence map is shown in Figure 5, right.
|
| 151 |
+
|
| 152 |
+
In real data applications we don’t need to go all the way to $\alpha =$ 1 since even for smaller $\alpha$ the support is still bounded and if the instance space is high dimensional (e.g. 512 to 1024 in the real data experiments below), the volume of the support of the CNN will be very small compared to the instance space, making it unlikely to have high confidence on out-of-distribution data.
|
| 153 |
+
|
| 154 |
+
The role of pruning dead neurons. Due to the random initialization of the neurons, there might exist neurons that have zero response on all the training observations. These neurons are dead in the sense that they are not updated in the back-propagation, since their response is always zero. We have observed that in some cases these dead neurons will produce some small high confidence regions far away from the training examples (see Fig. 7). This problem can be eliminated by removing these neurons during training, which is done by line 7 of Algorithm 1.
|
| 155 |
+
|
| 156 |
+

|
| 157 |
+
Figure 7: Confidence map without pruning, $\alpha = 0 . 9 8 5$ .
|
| 158 |
+
|
| 159 |
+

|
| 160 |
+
Figure 8: The CSNN-F with LeNet backbone, where all layers are trained by backpropagation.
|
| 161 |
+
|
| 162 |
+
# 3.2 REAL DATA EXPERIMENTS
|
| 163 |
+
|
| 164 |
+
We conduct experiments by training on three different datasets: MNIST (LeCun & Cortes, 2010), CIFAR-10 and CIFAR-100 (Krizhevsky et al., 2009). We evaluate the confidence on in-sample and out-of-sample data, by testing them on their respective test sets (in-sample) and on other datasets as shown in Table 1, including the test sets of EMNIST (Cohen et al.), FashionMNIST (Xiao et al., 2017) and SVHN (Netzer et al., 2011), and the validation set of ImageNet (Deng et al., 2009). For MNIST we also tested on a grayscale version of CIFAR-10, obtained by converting the 10,000 test images to gray-scale and resizing them to $2 8 \times 2 8$ .
|
| 165 |
+
|
| 166 |
+
CNN architecture. For MNIST we use a 4-layer LeNet CNN as backbone, with two $5 \times 5$ convolution layers with 32 and 64 filters respectively, followed by ReLU and $2 \times 2$ max pooling, and two fully connected layers with 256 and 10 neurons. For the other two datasets, we used as backbone a ResNet-18 architecture (He et al., 2016) with 4 residual blocks with 64, 128, 256 and 512 filters respectively. After the backbone CNN has been trained, the FC layers were removed and only the convolutional layers were kept, as illustrated in Figure 2, right and Figure 8.
|
| 167 |
+
|
| 168 |
+
For the CSNN we will experiment with two architectures, illustrated in Figure 2 and Figure 8. The first is a small one (called CSNN) that takes as input the output of the last convolutional layer of the backbone, normalized as described in Section 2.2. The normalization of the CSNN input can also be achieved using a batch normalization layer without any learnable affine parameters. The second one is a full network (called CSNN-F), illustrated in Figure 8, where the backbone (LeNet or ResNet) is part of the backpropagation and a batch normalization layer (BN) without any learnable parameters has been introduced between the backbone and the CSN layer.
|
| 169 |
+
|
| 170 |
+
Training details. For all datasets we used data augmentation with padding (3 pixels for MNIST, 4 pixels for the rest) and random cropping to train the backbones. For CIFAR-100 we also used random rotation up to 15 degrees.We used no data augmentation when training the CSNN and CSNN-F.
|
| 171 |
+
|
| 172 |
+
The training/test data was passed though the backbone without the FC layers, and the output was normalized. A CSNN without bias term was trained for 510 epochs with $R = 0 . 1$ , of which 10 epochs at $\alpha = 0$ . For the CSNN training we used the Adam optimizer with learning rate 0.001 and weight decay 0.0001. We also tried SGD and obtained similar results. The CSNN-F was trained with SGD with a learning rate of 0.001 and weight decay 0.0005. Its layers were initialized with the trained backbone and the trained CSNN. Then $\alpha$ was kept fixed for two epochs and increased by 0.005 every epoch for 4 more epochs.
|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
Figure 9: Train and test errors, Area under ROC Curve (AUROC) and percent nonzero outputs (NZ) vs $\alpha$ for CSNN classifiers trained on three real datasets. These results are obtained from one training run.
|
| 176 |
+
|
| 177 |
+
Training the CSNN from $\alpha = 0$ to $\alpha = 1$ for 510 epochs takes less than an hour on a MSI GS-60 Core I7 laptop with 16Gb RAM and Nvidia GTX 970M GPU. Each epoch of the CSNN-F took less than a minute with the LeNet backbone and about 3 minutes with the ResNet-18 backbone.
|
| 178 |
+
|
| 179 |
+
OOD detection. The out of distribution (OOD) detection is performed similarly to the way it is done in a standard CNN. For any observation, the maximum value of CSNN raw outputs is used as the OOD score for predicting whether the observation is OOD or not. If the observation is in-distribution, its score will usually be large, and if it is OOD, it will be usually close to zero or even zero. The ROC curve based on these scores for the test set of the in-distribution data (as class 0) and one OOD dataset (as class 1) will give us the AUROC. If the two distributions are not separable (have concept overlap), some of the OOD scores will be large, but for the OOD observations that are away from the area of overlap they will be small or even zero.
|
| 180 |
+
|
| 181 |
+
In Figure 9 are shown the train/test errors vs $\alpha$ for the CSNN on the three datasets. Also shown are the Area under the ROC curve (AUROC) for OOD detection on CIFAR-10 or CIFAR-100 and the percentage of OOD samples with nonzero outputs (NZ). Observe that all curves on the real data are very smooth, even though they are obtained from one run, not averaged. We see that the training and test errors stay flat for a while then they start increasing from a certain $\alpha$ that depends on the dataset. At the same time, the AUROC stays flat and slightly increases, and there is a range of values of $\alpha$ where the test error is low and the AUROC is large. Looking in more detail at the CIFAR-10 dataset (middle plot in Figure 9), we see that for $\alpha = 0 . 7$ the NZ-CIFAR100 is about 0.6, which means that about $40 \%$ of the CIFAR-100 observations have all 0 CSNN outputs, therefore an OOD score of 0. Combined with the scores of the other observations and the fact that at most $10 \%$ of the CIFAR-10 test observations have an OOD score of 0 (because the test error is less than 0.1) it results in a slight increase in AUROC.
|
| 182 |
+
|
| 183 |
+
In practice, $\alpha$ should be chosen as large as possible where an acceptable validation error is still obtained, to have the smallest support possible. For example one could choose the largest $\alpha$ such that the validation error at $\alpha$ is less then or equal to the validation error at $\alpha = 0$ . However, for better comparison with the other methods, for each dataset we chose the CSNN classifier corresponding to the largest $\alpha$ where the test error takes a value comparable to the other methods compared, and reported the AUROC values in Table 1. The CSNN-F was obtained by merging the corresponding CSNN head with the ResNet or LeNet backbone and training them together for 6 epochs.
|
| 184 |
+
|
| 185 |
+
Methods compared. We compare our results with the Adversarial Confidence Enhanced Training (ACET) (Hein et al., 2019), Deterministic Uncertainty Quantification (DUQ) (van Amersfoort et al., 2020), a standard CNN, and an ensemble of five or 10 CNNs trained with different random initializations. The ACET results are taken directly from Hein et al. (2019), and the DUQ, CNN and ensemble results were obtained using the DUQ authors’ code. For DUQ we trained multiple models with various combinations of the length scales $\sigma \in \{ 0 . 0 5 , 0 . 1 , 0 . 2 , 0 . 3 , 0 . 5 , 1 . 0 \}$ and gradient penalty $\lambda \in \{ 0 , 0 . 0 5 , 0 . 1 , 0 . 2 , 0 . 3 , 0 . 5 , 1 . 0 \}$ and selected the combination with the best test error-AUROC trade-off.
|
| 186 |
+
|
| 187 |
+
<table><tr><td>Train on MNIST</td><td>CNN 0.53% (.05)</td><td>ACET 0.66</td><td>DUQ 0.57 (.04)</td><td>5Ens 0.50 (.02)</td><td>10 Ens 0.51 (.03)</td><td>CSNN 0.52 (.01)</td><td>CSNN-F 0.50 (0.02)</td></tr><tr><td>EMNIST</td><td>0.983 (.001)</td><td>0.912</td><td>0.988 (.001)</td><td>0.985 (.001)</td><td>0.985 (.001)</td><td>0.992 (.001)</td><td>0.990 (.002)</td></tr><tr><td>FashionMNIST</td><td>0.989 (.001)</td><td>0.998</td><td>0.998 (.001)</td><td>0.992 (.001)</td><td>0.992 (.001)</td><td>0.998 (.001)</td><td>0.997 (.001)</td></tr><tr><td>grayCIFAR-10</td><td>0.995 (.001)</td><td>1.000</td><td>0.978 (.005)</td><td>0.992 (.003)</td><td>0.992 (.002)</td><td>1.000 (.0001)</td><td>1.000 (.0001)</td></tr><tr><td>Average</td><td>0.9897.005)</td><td>0.970</td><td>0.988(.009)</td><td>0.9907.004)</td><td>0.990 (.004)</td><td>0.996(.003)</td><td>0.996 (.004)</td></tr><tr><td>Train on CIFAR-10</td><td>5.99% (.09)</td><td>8.44</td><td>6.88 (.40)</td><td>4.83 (.16)</td><td>4.59 (.08)</td><td>7.28 (.06)</td><td>6.18 (.09)</td></tr><tr><td>CIFAR-100</td><td>0.860 (.001)</td><td>0.852</td><td>0.827 (.016)</td><td>0.891(.001)</td><td>0.897 (.001)</td><td>0.865 (.001)</td><td>0.882(.003)</td></tr><tr><td>SVHN</td><td>0.899 (.012)</td><td>0.981</td><td>0.912 (.031)</td><td>0.917 (.006)</td><td>0.924 (.002)</td><td>0.908 (.001)</td><td>0.900 (.013)</td></tr><tr><td>ImageNet</td><td>0.834 (.002)</td><td>0.859</td><td>0.816 (.021)</td><td>0.863 (.001)</td><td>0.869 (.001)</td><td>0.848 (.001)</td><td>0.854 (.004)</td></tr><tr><td>Average</td><td>0.8657.029)</td><td>0.897</td><td>0.852 (.050)</td><td>0.8907.023)</td><td>0.897 (.023)</td><td>0.874(.026)</td><td>0.879(.021)</td></tr><tr><td>Train on CIFAR100</td><td>26.18% (.28)</td><td>32.24</td><td>31.14(.23)</td><td>22.43 (.20)</td><td>21.86 (.11)</td><td>30.89 (0.10)</td><td>24.46 (.12)</td></tr><tr><td>CIFAR-10</td><td>0.750 (.002)</td><td>0.720</td><td>0.722 (.008)</td><td>0.781(.001)</td><td>0.786 (.001)</td><td>0.783 (.001)</td><td>0.762 (.002)</td></tr><tr><td>SVHN</td><td>0.781 (.035)</td><td>0.912</td><td>0.774 (.006)</td><td>0.832 (.013)</td><td>0.834 (.009)</td><td>0.872 (.001)</td><td>0.860 (.006)</td></tr><tr><td>ImageNet</td><td>0.766 (.002)</td><td>0.752</td><td>0.742 (.006)</td><td>0.798 (.001)</td><td>0.803 (.001)</td><td>0.755 (.001)</td><td>0.793 (.001)</td></tr><tr><td>Average</td><td>0.7667.023)</td><td>0.795</td><td>0.746(.024)</td><td>0.8047.022)</td><td>0.808 (.021)</td><td>0.804(.050)</td><td>0.805 (.042)</td></tr></table>
|
| 188 |
+
|
| 189 |
+
Table 1: OOD detection comparison in terms of Area under the ROC curve (AUROC) for models trained and tested on several datasets. For each model the test error in $\%$ is shown in the "Train on" row. The ACET results are taken from Hein et al. (2019). All other results are averaged over 10 runs and the standard deviation is shown in parentheses.
|
| 190 |
+
|
| 191 |
+
Results. The results are shown in Table 1. All results except the ACET results are averaged over 10 runs and the standard deviation is shown in parentheses. From Table 1 we observe that our methods obtain the best results on MNIST and the 10-ensemble obtains the best results on the other two datasets. The test errors of the CSNN-F approach are smaller than the CSNN, and the AUROCs are comparable. Compared to ACET both CSNN and CSNN-F obtain smaller test errors on all three dataset and better average AUROC on two out of three datasets. Compared to DUQ, the CSNN and CSNN-F obtain comparable test errors and better average AUROC on all three datasets. Compare to the 5-ensemble, the CSNN-F obtains comparable errors on two datasets and comparable or better AUROC on two datasets. Comparing the training time, both our methods are about 4 times faster than training a 5-ensemble, 8 times faster than a 10- ensemble and about 3 times faster than DUQ.
|
| 192 |
+
|
| 193 |
+
# 4 CONCLUSION
|
| 194 |
+
|
| 195 |
+
In this paper, we presented a generic neuron formulation that encompasses the standard projection based neuron and the RBF neuron as two extreme cases of a shape parameter $\alpha \in [ 0 , 1 ]$ . By using ReLU as the activation function we obtained a novel type of neuron that has compact support. We showed how to avoid the difficulties in training the compact support NN by training a standard neural network first $\alpha = 0$ ) and gradually shrinking the support by increasing $\alpha$ . We showed the advantages of the proposed compact support neural network in that it can still have good prediction on data coming from the same distribution, but it can detect out of distribution samples consistently well. This feature is important in safety critical applications such as autonomous driving, space exploration and medical imaging. Our results have been obtained without any adversarial training or ensembling, and adversarial training or ensembling could be used in our framework to obtain further improvements.
|
| 196 |
+
|
| 197 |
+
In the real data applications we used a compact support layer as the last layer before the output layer. This ensures that the compact support is involved in the most relevant representation space of the CNN. However, because the CNN still has many projection-based layers to obtain this representation space, it means that the corresponding representation in the original image space does not have compact support and high confidence erroneous predictions are still possible. In the future we plan to study architectures with multiple compact support layers that have even smaller support in the image space.
|
| 198 |
+
|
| 199 |
+
# REFERENCES
|
| 200 |
+
|
| 201 |
+
David S Broomhead and David Lowe. Radial basis functions, multi-variable functional interpolation and adaptive networks. Technical report, Royal Signals and Radar Establishment Malvern (United Kingdom), 1988.
|
| 202 |
+
|
| 203 |
+
Gregory Cohen, Saeed Afshar, Jonathan Tapson, and André van Schaik. Emnist: an extension of mnist to handwritten letters (2017). arXiv preprint arXiv:1702.05373.
|
| 204 |
+
|
| 205 |
+
Francesco Croce and Matthias Hein. A randomized gradient-free attack on relu networks. In German Conference on Pattern Recognition, pp. 215–227. Springer, 2018.
|
| 206 |
+
|
| 207 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pp. 248–255. Ieee, 2009.
|
| 208 |
+
|
| 209 |
+
Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In ICML, pp. 1050–1059, 2016.
|
| 210 |
+
|
| 211 |
+
Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. ICLR, 2015.
|
| 212 |
+
|
| 213 |
+
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In ICML, pp. 1321–1330. JMLR. org, 2017.
|
| 214 |
+
|
| 215 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pp. 770–778, 2016.
|
| 216 |
+
|
| 217 |
+
Matthias Hein, Maksym Andriushchenko, and Julian Bitterwolf. Why relu networks yield highconfidence predictions far away from the training data and how to mitigate the problem. In CVPR, pp. 41–50, 2019.
|
| 218 |
+
|
| 219 |
+
Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. In ICLR, 2017.
|
| 220 |
+
|
| 221 |
+
Yen-Chang Hsu, Yilin Shen, Hongxia Jin, and Zsolt Kira. Generalized odin: Detecting out-ofdistribution image without learning from out-of-distribution data. In CVPR, pp. 10951–10960, 2020.
|
| 222 |
+
|
| 223 |
+
Heinrich Jiang, Been Kim, Melody Guan, and Maya Gupta. To trust or not to trust a classifier. In NeurIPS, pp. 5541–5552, 2018.
|
| 224 |
+
|
| 225 |
+
Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
|
| 226 |
+
|
| 227 |
+
Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In NeurIPS, pp. 6402–6413, 2017.
|
| 228 |
+
|
| 229 |
+
Yann LeCun and Corinna Cortes. MNIST handwritten digit database. 2010. URL http://yann. lecun.com/exdb/mnist/.
|
| 230 |
+
|
| 231 |
+
Kimin Lee, Kibok Lee, Honglak Lee, and Jinwoo Shin. A simple unified framework for detecting out-of-distribution samples and adversarial attacks. In NeurIPS, pp. 7167–7177, 2018.
|
| 232 |
+
|
| 233 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018.
|
| 234 |
+
|
| 235 |
+
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. In NeurIPS Workshop on Deep Learning and Unsupervised Feature Learning 2011, 2011. URL http://ufldl.stanford. edu/housenumbers/nips2011_housenumbers.pdf.
|
| 236 |
+
|
| 237 |
+
Anh Nguyen, Jason Yosinski, and Jeff Clune. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. In CVPR, pp. 427–436, 2015.
|
| 238 |
+
|
| 239 |
+
Jie Ren, Peter J Liu, Emily Fertig, Jasper Snoek, Ryan Poplin, Mark Depristo, Joshua Dillon, and Balaji Lakshminarayanan. Likelihood ratios for out-of-distribution detection. In NeurIPS, pp. 14707–14718, 2019.
|
| 240 |
+
|
| 241 |
+
Joost van Amersfoort, Lewis Smith, Yee Whye Teh, and Yarin Gal. Uncertainty estimation using a single deep deterministic neural network. In ICML, 2020.
|
| 242 |
+
|
| 243 |
+
Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
|
| 244 |
+
|
| 245 |
+
Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In ICCV, pp. 6023–6032, 2019.
|
| 246 |
+
|
| 247 |
+
Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In ECCV, pp. 818–833. Springer, 2014.
|
parse/train/xCy9thPPTb_/xCy9thPPTb__content_list.json
ADDED
|
@@ -0,0 +1,1346 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "THE COMPACT SUPPORT NEURAL NETWORK ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
712,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
178,
|
| 19 |
+
145,
|
| 20 |
+
392,
|
| 21 |
+
172
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
210,
|
| 32 |
+
544,
|
| 33 |
+
224
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Neural networks are popular and useful in many fields, but they have the problem of giving high confidence responses for examples that are away from the training data. This makes the neural networks very confident in their prediction while making gross mistakes, thus limiting their reliability for safety critical applications such as autonomous driving, space exploration, etc. In this paper, we present a neuron generalization that has the standard dot-product based neuron and the RBF neuron as two extreme cases of a shape parameter. Using ReLU as the activation function we obtain a novel neuron that compact support, which means its output is zero outside a bounded domain. We show how to avoid difficulties in training a neural network with such neurons, by starting with a trained standard neural network and gradually increasing the shape parameter to the desired value. Through experiments on standard benchmark datasets, we show the promise of the proposed approach, in that it can have good prediction on in-distribution samples, while being able to consistently detect and have low confidence on out of distribution samples. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
246,
|
| 43 |
+
766,
|
| 44 |
+
439
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
470,
|
| 55 |
+
336,
|
| 56 |
+
486
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Neural networks have been proven to be extremely useful in all sorts of applications, including object detection, speech and handwriting recognition, medical imaging, etc. They have become the state of the art in these applications, and in some cases they even surpass human performance. However, neural networks have been observed to have a major disadvantage: they don’t know when they don’t know, i.e. don’t know when the input is far away from the type of data they have been trained on. Instead of saying “I don’t know”, they give some output with high confidence (Goodfellow et al., 2015; Nguyen et al., 2015). An explanation of why this is happening for ReLU based networks has been given in Hein et al. (2019). This issue is very important for safety-critical applications such as space exploration, autonomous driving, medical diagnosis, etc. In these cases it is important that the system know when the input data is outside its nominal range, to alert the human (e.g. driver for autonomous driving or radiologist for medical diagnostic) to take charge in such cases. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
498,
|
| 66 |
+
825,
|
| 67 |
+
652
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In this paper we suspect that the root of this problem is actually the neuron design, and propose a different type of neuron to address what we think are its issues. The standard neuron can be written as $f ( x ) = \\dot { \\sigma } ( \\mathbf { w } ^ { T } \\mathbf { x } + b )$ , which can be regarded as a projection (dot product) $\\mathbf { x } \\to \\mathbf { w } ^ { T } \\mathbf { x } + b$ onto a direction w, followed by a nonlinearity $\\tilde { \\sigma } ( \\cdot )$ . In this design, the neuron has a large response for vectors $\\mathbf { x } \\in \\mathbb { R } ^ { p }$ that are in a half-space. This can be an advantage when training the NN since it creates high connectivity in the weight space and makes the neurons sensitive to far-away signals. However, it is a disadvantage when using the trained NN, since it can lead to the neurons unpredictably firing with high responses to far-away signals, which can result (with some probability) in high confidence responses of the whole network for examples that are far away from the training data. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
659,
|
| 77 |
+
825,
|
| 78 |
+
784
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "To address these problems, we use a type of radial basis function neuron (Broomhead & Lowe, 1988), $f ( \\mathbf { x } ) = g ( \\| \\mathbf { x } - \\mathbf { \\bar { \\mu } } \\| ^ { 2 } )$ , which we modify to have a high response only for examples that are close to $\\pmb { \\mu }$ , and to have zero response at distance at least $R$ from $\\pmb { \\mu }$ . Therefore the neuron has compact support, and the same applies to a layer formed entirely of such neurons. Using one such compact support layer before the output layer we can guarantee that the space where the NN has a non-zero response is bounded, obtaining a more reliable neural network. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
791,
|
| 88 |
+
825,
|
| 89 |
+
875
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this formulation, the parameter vector $\\pmb { \\mu }$ is directly comparable to the neuron inputs $\\mathbf { x }$ , thus $\\pmb { \\mu }$ has a simple and direct interpretation as a \"template\". A layer consisting of such neurons forms can be interpreted as a sparse coordinate system on the manifold containing the inputs of that layer. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
882,
|
| 99 |
+
823,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Because of the compact support, the loss function of such a compact support NN has many flat areas and it can be difficult to training it directly by backpropagation. However, we will show how to train such a NN, by starting with a trained regular NN and gradually bending the neuron decision boundaries to make them have smaller and smaller support. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
103,
|
| 110 |
+
823,
|
| 111 |
+
160
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "The contributions of this paper are the following: ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
166,
|
| 121 |
+
495,
|
| 122 |
+
181
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "• We introduce a type of neuron formulation that generalizes the standard neuron and the RBF neuron as two extreme cases of a shape parameter. Moreover one can smoothly transition from a regular neuron to a RBF neuron by gradually changing this parameter. We introduce the RBF correspondent to a ReLU neuron and observe that it has compact support, i.e. its output is zero outside a bounded domain. The above construction allows us to smoothly bend the decision boundary of a standard ReLU based neuron, obtaining a compact support neuron. We use this idea to train a compact support neural network (CSNN) starting from a pre-trained regular neural network. We show through experiments on standard datasets that the proposed CSNN can achieve comparable test errors with regular CNNs, and at the same time it can detect and have low confidence on out-of-distribution data. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
217,
|
| 131 |
+
183,
|
| 132 |
+
825,
|
| 133 |
+
332
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "1.1 RELATED WORK ",
|
| 140 |
+
"text_level": 1,
|
| 141 |
+
"bbox": [
|
| 142 |
+
176,
|
| 143 |
+
340,
|
| 144 |
+
331,
|
| 145 |
+
354
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "A common way to address the problem of high confidence predictions for out of distribution (OOD) examples is through ensembles (Lakshminarayanan et al., 2017), where multiple neural networks are trained with different random initializations and their outputs are averaged in some way. The reason why ensemble methods have low confidence on OOD samples is that the high-confidence domain of each NN is random outside the training data, and the common high-confidence domain is therefore shrunk by the averaging process. This reasoning works well when the representation space (the space of the NN before the output layer) is high dimensional, but it fails when this space is low dimensional (see van Amersfoort et al. (2020) for example). ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
173,
|
| 154 |
+
359,
|
| 155 |
+
825,
|
| 156 |
+
472
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Another popular approach is adversarial training (Madry et al., 2018), where the training set is augmented with adversarial examples generated by maximizing the loss starting from slightly perturbed examples. This method is modified in adversarial confidence enhanced training (ACET) (Hein et al., 2019) where the adversarial samples are added through a hybrid loss function. However, we believe that training with out of distribution samples could be a computationally expensive if not hopeless endeavor, since the instance space is extremely vast when it is high dimensional. Consequently, a finite number of training examples can only cover an insignificant part of it and no matter how many out-of-distribution examples are used, there always will be other parts of the instance space that have not been explored. Other methods include the estimation of the uncertainty using dropout (Gal & Ghahramani, 2016), softmax calibration (Guo et al., 2017), and the detection of out-of-distribution inputs (Hendrycks & Gimpel, 2017). CutMix Yun et al. (2019) is a method to generate training samples with larger variability, which help improve generalization and OOD detection. All these methods are complementary to our approach and could be used together with our classifiers to improve accuracy and OOD detection. ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
174,
|
| 165 |
+
478,
|
| 166 |
+
825,
|
| 167 |
+
671
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "In Ren et al. (2019) are trained two auto-regressive models, one for the foreground in-distribution data and one for the background, and the likelihood ratio is used to decide for each observation whether it is OOD or not. This is a generative model, while our model is discriminative. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
679,
|
| 177 |
+
821,
|
| 178 |
+
722
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "A number of works assume that the distance in the representation space (the space of outputs of the last layer before the final classification layer) is meaningful. They will be reviewed next. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
171,
|
| 187 |
+
728,
|
| 188 |
+
821,
|
| 189 |
+
756
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "Recently, Jiang et al. (2018) proposed a trust score that measures the agreement between a given classifier and a modified version of a $k$ -nearest neighbor classifier. While this approach does consider the distance of the test samples to the training set, it only does so to a certain extent since the $k$ -NN does not have a concept of “too far”, and is also computationally expensive. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
174,
|
| 198 |
+
763,
|
| 199 |
+
825,
|
| 200 |
+
819
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "A simple method based on the Mahalanobis distance is presented in Lee et al. (2018). It assumes that the observations are normally distributed in the representation space, with a shared covariance matrix for all classes. While we also assume that the distance in the representation space is meaningful, we make a much weaker assumption that the observations for each class are clustered in a number of clusters, not necessarily Gaussian. In our representation, each class is usually covered by more than one compact support neuron, and each neuron could be involved in multiple classes. Furthermore, the method in Lee et al. (2018) simply replaces the last layer of the NN with their Mahalanobis measure and makes no attempt to further train the new model, while we can train our layers together with the whole network. ",
|
| 207 |
+
"bbox": [
|
| 208 |
+
174,
|
| 209 |
+
825,
|
| 210 |
+
825,
|
| 211 |
+
924
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 1
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "image",
|
| 217 |
+
"img_path": "images/c7b11b621b86f77faf4f46292c6a7bf7a8dc8bd8c59ec1ae6b0410e5b178460a.jpg",
|
| 218 |
+
"image_caption": [
|
| 219 |
+
"Figure 1: The construction (3) smoothly interpolates between a standard neuron $( \\alpha = 0$ ) and an RBF-type of neuron $( \\alpha = 1$ ). Shown are the neuron decision boundaries for various values of $\\alpha$ . "
|
| 220 |
+
],
|
| 221 |
+
"image_footnote": [],
|
| 222 |
+
"bbox": [
|
| 223 |
+
299,
|
| 224 |
+
104,
|
| 225 |
+
694,
|
| 226 |
+
244
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "",
|
| 233 |
+
"bbox": [
|
| 234 |
+
176,
|
| 235 |
+
287,
|
| 236 |
+
821,
|
| 237 |
+
315
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 2
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "The Generalized ODIN Hsu et al. (2020) decomposes the output prediction into the ratio of a classspecific function $h _ { i } ( x )$ and a common denominator $g ( x )$ , both defined over instances $x$ from the representation space. Good results are obtained using $h _ { i }$ based on the Euclidean distance or the cosine similarity. Again, this approach assumes that the observations are grouped in a single cluster for each class, which explains it uses very deep models (with 34-100 layers) that are more capable to obtain representations where this assumption is satisfied. Our method does not make the single cluster per class assumption, and can use deep or shallow models. ",
|
| 244 |
+
"bbox": [
|
| 245 |
+
173,
|
| 246 |
+
321,
|
| 247 |
+
825,
|
| 248 |
+
420
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "The Deterministic Uncertainty Quantification (DUQ) (van Amersfoort et al., 2020) method uses an RBF network and a special gradient penalty to decrease the prediction confidence away from the training examples. The authors also propose a centroid updating scheme to handle the difficulties in training an RBF network. In contrast, our paper proposes a generalized neuron model that has the RBF neurons and the standard neurons as two extreme cases, and trains all models starting from a standard NN where the local minima are more well behaved. ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
173,
|
| 257 |
+
426,
|
| 258 |
+
825,
|
| 259 |
+
511
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "2 THE COMPACT SUPPORT NEURAL NETWORK ",
|
| 266 |
+
"text_level": 1,
|
| 267 |
+
"bbox": [
|
| 268 |
+
173,
|
| 269 |
+
527,
|
| 270 |
+
581,
|
| 271 |
+
545
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 2
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "text",
|
| 277 |
+
"text": "The compact support neural network consists of a number of layers, where the last layer before the output layer contains only compact support neurons, which will be described next. The other layers could be regular neural network or convolutional neural network layers, or compact support layers. The final output layer is a regular linear layer without a bias term, so that it can output a vector of all zeros when appropriate. ",
|
| 278 |
+
"bbox": [
|
| 279 |
+
173,
|
| 280 |
+
553,
|
| 281 |
+
825,
|
| 282 |
+
625
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 2
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "2.1 THE COMPACT SUPPORT NEURON ",
|
| 289 |
+
"text_level": 1,
|
| 290 |
+
"bbox": [
|
| 291 |
+
176,
|
| 292 |
+
641,
|
| 293 |
+
450,
|
| 294 |
+
655
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "We start with the radial basis function (RBF) neuron (Broomhead & Lowe, 1988), ",
|
| 301 |
+
"bbox": [
|
| 302 |
+
174,
|
| 303 |
+
665,
|
| 304 |
+
709,
|
| 305 |
+
681
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 2
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "equation",
|
| 311 |
+
"img_path": "images/0fc31eaa8d797ce1d20d530ed4c19d93f448164bd6a9d98491f65c33b87b26a3.jpg",
|
| 312 |
+
"text": "$$\nf _ { \\mathbf { w } } ( \\mathbf { x } ) = g ( \\| \\mathbf { x } - \\mathbf { w } \\| ^ { 2 } ) .\n$$",
|
| 313 |
+
"text_format": "latex",
|
| 314 |
+
"bbox": [
|
| 315 |
+
418,
|
| 316 |
+
686,
|
| 317 |
+
580,
|
| 318 |
+
707
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 2
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "The RBF neuron has $g ( u ) = \\exp ( - \\beta u )$ as the activation function, but in this paper we will use $g ( u ) = \\operatorname* { m a x } ( R ^ { 2 } - u , \\bar { 0 } )$ because it is related to the ReLU. ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
171,
|
| 327 |
+
713,
|
| 328 |
+
823,
|
| 329 |
+
742
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 2
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "A flexible representation. We can introduce an extra parameter $\\alpha = 1$ and rewrite eq. (1) as ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
169,
|
| 338 |
+
746,
|
| 339 |
+
782,
|
| 340 |
+
762
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 2
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "equation",
|
| 346 |
+
"img_path": "images/34746d6becf22a6d82975b1b3535749a10465aa6c07e6fa76c1c490f3b2e945e.jpg",
|
| 347 |
+
"text": "$$\nf _ { \\mathbf { w } } ( \\mathbf { x } ) = g ( \\mathbf { x } ^ { T } \\mathbf { x } + \\mathbf { w } ^ { t } \\mathbf { w } - 2 \\mathbf { w } ^ { T } \\mathbf { x } ) = g ( \\alpha ( \\| \\mathbf { x } \\| ^ { 2 } + \\| \\mathbf { w } \\| ^ { 2 } ) - 2 \\mathbf { w } ^ { T } \\mathbf { x } ) .\n$$",
|
| 348 |
+
"text_format": "latex",
|
| 349 |
+
"bbox": [
|
| 350 |
+
269,
|
| 351 |
+
768,
|
| 352 |
+
725,
|
| 353 |
+
787
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 2
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "text",
|
| 359 |
+
"text": "Using the parameter $\\alpha$ , we obtain a representation that smoothly changes between an RBF neuron when $\\alpha = 1$ and a standard projection neuron when $\\alpha = 0$ . However, starting with an RBF neuron with $g ( u ) = \\exp ( - \\beta u )$ , we obtain the projection neuron for $\\alpha = 0$ as $f _ { \\mathbf { w } } ( \\mathbf { x } ) = \\exp ( 2 \\mathbf { w } ^ { T } \\mathbf { x } )$ , which has an exponential activation function. ",
|
| 360 |
+
"bbox": [
|
| 361 |
+
174,
|
| 362 |
+
795,
|
| 363 |
+
825,
|
| 364 |
+
852
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 2
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "The compact support neuron. We want to obtain a standard ReLU based neuron $f _ { \\mathbf { w } } ( \\mathbf { x } ) = \\sigma ( \\mathbf { w } ^ { T } \\mathbf { x } )$ with $\\sigma ( u ) = \\operatorname* { m a x } ( u , 0 )$ for $\\alpha = 0$ . For this purpose we will use $g ( u ) = \\sigma ( R ^ { 2 } - \\dot { u } )$ , and modify the above construction to obtain the compact support neuron: ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
174,
|
| 373 |
+
856,
|
| 374 |
+
825,
|
| 375 |
+
898
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 2
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "equation",
|
| 381 |
+
"img_path": "images/64351adb596447fd3a3c847c6e5d28fcfb3a8e5a750429748dc523983201464b.jpg",
|
| 382 |
+
"text": "$$\nf _ { \\mathbf { w } } ( \\mathbf { x } ) = \\sigma ( R ^ { 2 } - \\mathbf { x } ^ { T } \\mathbf { x } - \\mathbf { w } ^ { T } \\mathbf { w } + 2 \\mathbf { w } ^ { T } \\mathbf { x } ) = \\sigma [ \\alpha ( R ^ { 2 } - \\| \\mathbf { x } \\| ^ { 2 } - \\| \\mathbf { w } \\| ^ { 2 } - b ) + 2 \\mathbf { w } ^ { T } \\mathbf { x } + b ] ,\n$$",
|
| 383 |
+
"text_format": "latex",
|
| 384 |
+
"bbox": [
|
| 385 |
+
191,
|
| 386 |
+
906,
|
| 387 |
+
785,
|
| 388 |
+
925
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 2
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "image",
|
| 394 |
+
"img_path": "images/4f4fba9ba6cebb9ff56d470944d1274f28dea0a59e233283cba4a0b94d59d6ae.jpg",
|
| 395 |
+
"image_caption": [
|
| 396 |
+
"Figure 2: Left: Diagram of the compact support neural network (CSNN), with the CSN layer described in Eq. (6). Right: an example of the CSNN with normalized input from ResNet. Only the full arrows have backpropagation. "
|
| 397 |
+
],
|
| 398 |
+
"image_footnote": [],
|
| 399 |
+
"bbox": [
|
| 400 |
+
238,
|
| 401 |
+
95,
|
| 402 |
+
750,
|
| 403 |
+
200
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 3
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "text",
|
| 409 |
+
"text": "where we also introduced a bias term $b$ for the standard neuron. We usually make $b = 0$ for simplicity. \nThe parameter $R$ defines the radius of the support of the neuron when $\\alpha = 1$ . ",
|
| 410 |
+
"bbox": [
|
| 411 |
+
173,
|
| 412 |
+
251,
|
| 413 |
+
823,
|
| 414 |
+
280
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 3
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "text",
|
| 420 |
+
"text": "One can easily check that the support of $f _ { \\mathbf { w } } ( \\mathbf { x } )$ from eq. (3) (i.e. the domain where it takes nonzero values) is in a sphere of radius ",
|
| 421 |
+
"bbox": [
|
| 422 |
+
173,
|
| 423 |
+
286,
|
| 424 |
+
823,
|
| 425 |
+
315
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 3
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "equation",
|
| 431 |
+
"img_path": "images/e97f98977957dc623eefe3078e01876dbda267b48b68bd1824c40266490d382a.jpg",
|
| 432 |
+
"text": "$$\nR _ { \\alpha } ^ { 2 } = R ^ { 2 } + b ( 1 / \\alpha - 1 ) + \\| \\mathbf { w } \\| ^ { 2 } ( 1 / \\alpha ^ { 2 } - 1 )\n$$",
|
| 433 |
+
"text_format": "latex",
|
| 434 |
+
"bbox": [
|
| 435 |
+
351,
|
| 436 |
+
318,
|
| 437 |
+
647,
|
| 438 |
+
337
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "centered at $\\mathbf { w } _ { \\alpha } = \\mathbf { w } / \\alpha$ . Therefore the neuron from eq. (3) has compact support for any $\\alpha > 0$ and the larger the value of $\\alpha$ , the smaller the support of the neuron will be. In Figure 1 is shown the support for several values of $\\alpha \\in [ 0 , 1 ]$ of the neuron (3) with $\\mathbf { w } = ( 0 , 2 ) ^ { T } , b = \\mathbf { \\bar { 0 } }$ and $R = 1$ . ",
|
| 445 |
+
"bbox": [
|
| 446 |
+
173,
|
| 447 |
+
344,
|
| 448 |
+
825,
|
| 449 |
+
387
|
| 450 |
+
],
|
| 451 |
+
"page_idx": 3
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"type": "text",
|
| 455 |
+
"text": "Convolutional version. If one desires to make a compact support convolutional neuron, let w be its $k \\times k$ matrix of weights. Then the convolutional version can be obtained by taking into consideration that each $k \\times k$ patch of an image I is a candidate $\\mathbf { x }$ in eq. (3). Therefore one can easily check that the convolutional compact support neuron should be: ",
|
| 456 |
+
"bbox": [
|
| 457 |
+
173,
|
| 458 |
+
392,
|
| 459 |
+
825,
|
| 460 |
+
448
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 3
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "equation",
|
| 466 |
+
"img_path": "images/6d79fea881d3b74a09fc1d5494b4c5f0e98d33a1c16e8d6753aa62beea4eadde.jpg",
|
| 467 |
+
"text": "$$\nf _ { \\mathbf { w } } ( { \\mathbf { I } } ) = \\sigma [ \\alpha ( R ^ { 2 } - b - { \\mathbf { I } } ^ { 2 } * { \\mathbf { 1 } } - \\| \\mathbf { w } \\| ^ { 2 } ) + 2 { \\mathbf { I } } * { \\mathbf { w } } + b ]\n$$",
|
| 468 |
+
"text_format": "latex",
|
| 469 |
+
"bbox": [
|
| 470 |
+
318,
|
| 471 |
+
454,
|
| 472 |
+
679,
|
| 473 |
+
473
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 3
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "where 1 is a $k \\times k$ matrix of ones, $\\mathbf { I } ^ { 2 }$ is done elementwise and $^ *$ is the convolution. ",
|
| 480 |
+
"bbox": [
|
| 481 |
+
176,
|
| 482 |
+
479,
|
| 483 |
+
717,
|
| 484 |
+
496
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 3
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "2.2 THE COMPACT SUPPORT NEURAL NETWORK ",
|
| 491 |
+
"text_level": 1,
|
| 492 |
+
"bbox": [
|
| 493 |
+
173,
|
| 494 |
+
511,
|
| 495 |
+
527,
|
| 496 |
+
526
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 3
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "If we have a layer containing only compact support neurons (CSN), combining the weights into a matrix ${ \\bf W } ^ { T } = \\dot { ( } { \\bf w } _ { 1 } , . . . , { \\bf w } _ { K } \\dot { ) }$ and the biases into a vector $\\mathbf { b } = ( b _ { 1 } , . . . , b _ { K } )$ , we can write the CSN layer as: ",
|
| 503 |
+
"bbox": [
|
| 504 |
+
173,
|
| 505 |
+
536,
|
| 506 |
+
825,
|
| 507 |
+
577
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 3
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "equation",
|
| 513 |
+
"img_path": "images/e14edd10f7ce2d3d3670e74e017c36e97f5b2d85e0e0f4924ab361467832096d.jpg",
|
| 514 |
+
"text": "$$\n\\mathbf { f } _ { \\mathbf { W } } ( \\mathbf { x } ) = \\sigma ( \\alpha [ R ^ { 2 } - \\mathbf { b } - \\mathbf { x } ^ { T } \\mathbf { x } - \\mathrm { T r } ( \\mathbf { W } \\mathbf { W } ^ { T } ) ] + 2 \\mathbf { W } \\mathbf { x } + \\mathbf { b } ) .\n$$",
|
| 515 |
+
"text_format": "latex",
|
| 516 |
+
"bbox": [
|
| 517 |
+
297,
|
| 518 |
+
574,
|
| 519 |
+
700,
|
| 520 |
+
593
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 3
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "where $\\mathbf { f _ { W } } ( \\mathbf { x } ) = ( f _ { 1 } ( \\mathbf { x } ) , . . . , f _ { K } ( \\mathbf { x } ) ) ^ { T }$ is the vector of neuron outputs of that layer. This formulation enables the use of standard neural network machinery (e.g. PyTorch) to train a CSN. In practice we will have no bias term (i.e. $\\mathbf { b } = 0$ ), except in low dimensional experiments. ",
|
| 527 |
+
"bbox": [
|
| 528 |
+
174,
|
| 529 |
+
597,
|
| 530 |
+
826,
|
| 531 |
+
641
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 3
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "The simplest compact support neural network (CSNN) has two layers: a hidden layer containing compact support neurons (3) or their convolutional counterparts (5), and an output layer which is a standard fully connected layer without bias. It is illustrated in Figure 2, left. ",
|
| 538 |
+
"bbox": [
|
| 539 |
+
173,
|
| 540 |
+
647,
|
| 541 |
+
825,
|
| 542 |
+
689
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 3
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "Normalization. For best results, all variables of the input data $\\mathbf { x }$ should be on the same scale. For better control, it is also preferable that $\\| \\mathbf { x } \\|$ be approximately 1 on the training examples. These goals√ can be achieved by standardizing the variables to have zero mean and standard deviation $1 / \\sqrt { d }$ on the training examples (where $d$ is the dimension of $\\mathbf { x }$ ). This way $\\| \\mathbf { x } \\| ^ { 2 } \\sim 1$ when the dimension $d$ is large (under assumptions of normality and independence of the variables of $\\mathbf { x }$ ). Our experiments on three datasets indicate that indeed $\\| \\mathbf { x } \\| \\sim 1$ on real data when the inputs $\\mathbf { x }$ are normalized as described above, as exemplified by the histograms of $\\| \\mathbf { x } \\|$ from Figure 3. ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
174,
|
| 551 |
+
695,
|
| 552 |
+
825,
|
| 553 |
+
796
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 3
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "image",
|
| 559 |
+
"img_path": "images/163b3dd0b3e49e18d2d13f933c6c4551e29ecb0c2dc6c102da09cd14ecebc0e7.jpg",
|
| 560 |
+
"image_caption": [
|
| 561 |
+
"Figure 3: Histogram of the norms $\\left\\| \\mathbf { v } _ { i } \\right\\|$ of the normalized input features $\\mathbf { v } _ { i }$ to the CSN layer for the three datasets trained in our experiments. "
|
| 562 |
+
],
|
| 563 |
+
"image_footnote": [],
|
| 564 |
+
"bbox": [
|
| 565 |
+
256,
|
| 566 |
+
797,
|
| 567 |
+
738,
|
| 568 |
+
904
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 3
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "Training. Like the RBF network, training a neural network with such neurons with $\\alpha = 1$ is difficult because the loss function has many local optima. To make matters even worse, the compact support neurons have small support when $\\alpha$ is close to 1, and consequently the loss function has flat regions between the local minima. ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
173,
|
| 577 |
+
103,
|
| 578 |
+
825,
|
| 579 |
+
159
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 4
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "This is why we take another approach to training. Using equations (6) or (5) we can train a CSNN by first training a regular NN $( \\alpha = 0$ ) and then gradually increasing the shape parameter $\\alpha$ from 0 towards 1 while continuing to update the NN parameters. Observe that whenever $\\alpha > 0$ the NN has compact support, but the support gets smaller as $\\alpha$ gets closer to 1. The training procedure is described in detail in Algorithm 1. ",
|
| 586 |
+
"bbox": [
|
| 587 |
+
173,
|
| 588 |
+
166,
|
| 589 |
+
825,
|
| 590 |
+
236
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 4
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "table",
|
| 596 |
+
"img_path": "images/b0a133f9cce0ecd56b09f715b387000b7c0a3aeb81ecdbd1605002917fba567a.jpg",
|
| 597 |
+
"table_caption": [
|
| 598 |
+
"Algorithm 1 Compact Support Neural Network (CSNN) Training "
|
| 599 |
+
],
|
| 600 |
+
"table_footnote": [],
|
| 601 |
+
"table_body": "<table><tr><td>Output: Trained CSNN.</td><td>Input: Training set T = {(xi, yi) ∈ RP × R}=1,</td><td></td><td></td></tr><tr><td></td><td></td><td>1: Train a regular CNN f(x) = Lo(2Wg(x) + b) where W,L are the last two layer weight</td><td></td></tr><tr><td></td><td>matrices and g(x) is the rest of the CNN.</td><td>2: Freeze g(x), compute ui = g(xi),i = 1,.,n, their mean μ and standard deviation o.</td><td></td></tr><tr><td>3:</td><td> Obtain normalized versions Vi of ui as Vi = (ui - μ)/√do,i = 1,., n.</td><td></td><td></td></tr><tr><td>4:</td><td>for e= 1 to Nepochs do</td><td></td><td></td></tr><tr><td>5:</td><td>Set α = e/Nepochs</td><td></td><td></td></tr><tr><td>6:</td><td> Use the examples (Vi, yi) to update (W,L,b) based on one epoch of</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td>f(ν)=Lσ(α[R²-vTv- Tr(WWT)-b]+ 2Wv +b)</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td>7:(optional) Remove any neurons Wj of WT = (w1,.*,Wk) that are dead,i.e. satisfy:</td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td>σ(a[R²-||vill²-|/wjl²)-bj]+2wTνi+bj)=0,i=1,.,n</td><td></td><td></td></tr></table>",
|
| 602 |
+
"bbox": [
|
| 603 |
+
179,
|
| 604 |
+
258,
|
| 605 |
+
823,
|
| 606 |
+
455
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 4
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "8: end for ",
|
| 613 |
+
"bbox": [
|
| 614 |
+
181,
|
| 615 |
+
450,
|
| 616 |
+
254,
|
| 617 |
+
464
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 4
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "In the synthetic experiment in Figure 4 we succeeded to bring the train and test errors close to 0 for $\\alpha = 1$ using a carefully crafted schedule for increasing the $\\alpha$ . However, in the real data applications, the training, test and validation errors might first decrease a little bit but ultimately increase as $\\alpha$ approaches 1. For example one could see the test errors vs $\\alpha$ for the synthetic dataset in Figure 6 and for the real datasets in Figure 9. For this reason, in practice we stop the training at an $\\alpha < 1$ where the training and validation errors still take acceptable values, e.g. a validation error less than the validation error for $\\alpha = 0$ . However, we noticed that the larger the value of $\\alpha$ , the tighter the support around the training data and the better the generalization. ",
|
| 624 |
+
"bbox": [
|
| 625 |
+
173,
|
| 626 |
+
477,
|
| 627 |
+
825,
|
| 628 |
+
589
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 4
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "It is worth noting that in contrast to the weights of a standard neuron, the weights of the compact support neuron exist in the same space as the neuron inputs and they can be regarded as templates. Thus they have more meaning, and one could easily visualize the type of responses that make them maximal, using standard neuron visualization techniques such as Zeiler & Fergus (2014). Furthermore, one can also obtain samples from the compact support neurons, e.g. for generative or GAN models. ",
|
| 635 |
+
"bbox": [
|
| 636 |
+
174,
|
| 637 |
+
595,
|
| 638 |
+
826,
|
| 639 |
+
679
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 4
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "text",
|
| 645 |
+
"text": "3 EXPERIMENTS ",
|
| 646 |
+
"text_level": 1,
|
| 647 |
+
"bbox": [
|
| 648 |
+
176,
|
| 649 |
+
696,
|
| 650 |
+
328,
|
| 651 |
+
712
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 4
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "text",
|
| 657 |
+
"text": "In this section we first present an experiment on 2D data to showcase what can be achieved with the proposed compact support neural network, and then experiments on real datasets to show the power of the CSNN to model real data and how it can detect out-of-distribution samples. ",
|
| 658 |
+
"bbox": [
|
| 659 |
+
174,
|
| 660 |
+
723,
|
| 661 |
+
825,
|
| 662 |
+
765
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 4
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "3.1 2D EXAMPLE ",
|
| 669 |
+
"text_level": 1,
|
| 670 |
+
"bbox": [
|
| 671 |
+
174,
|
| 672 |
+
782,
|
| 673 |
+
310,
|
| 674 |
+
796
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 4
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "text",
|
| 680 |
+
"text": "We present a first experiment with the moons 2D dataset, where the data is organized on two intertwining half-circle like shapes, one containing the positives and one the negatives. The data is scaled so that all observations are in the interval $[ 0 , 1 ] ^ { \\dot { 2 } }$ (shown as a white rectangle in Figure 4. As out of distribution data (OOD) we started with $1 0 0 \\times 1 0 0 = 1 0 0 0 0$ samples on a grid spanning $[ - 0 . 5 , 1 . 5 ] ^ { 2 }$ and we removed all samples at distance at most 0.1 from the moons data, obtaining 8763 samples. ",
|
| 681 |
+
"bbox": [
|
| 682 |
+
174,
|
| 683 |
+
804,
|
| 684 |
+
825,
|
| 685 |
+
888
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 4
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "We used a two layer CSNN, with the first layer having 128 CSNN neurons, and the second layer being a standard NN layer without bias, as illustrated in Figure 2, left. The second layer is used to integrate the evidence from the CSNN neurons into the class prediction. We used 200 training examples and trained the CSNN using Algorithm 1. We trained 2000 epochs with $R ^ { 2 }$ decreasing linearly from 0.04 to 0.01, and $\\alpha$ increasing from 0 to 1 as $\\alpha _ { i } = \\operatorname* { m i n } ( 1 , \\operatorname* { m a x } ( 0 , ( i ^ { 0 . 1 } - 1 . 5 ) / . 6 ) )$ , $i = 1 , . . . , 2 0 0 0$ . This way $\\alpha$ increases slower as it gets closer to 1. Using this special training we avoided the training and test errors blowing up when $\\alpha$ gets close to 1. As specified in line 7 of Algorithm 1, the NN nodes that had zero response on all training examples were eliminated. These neurons cannot be trained anymore and only give uncontrolled responses on unseen data. This way from the 128 neurons, only 73 were left at the end of training. ",
|
| 692 |
+
"bbox": [
|
| 693 |
+
173,
|
| 694 |
+
895,
|
| 695 |
+
823,
|
| 696 |
+
924
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 4
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "image",
|
| 702 |
+
"img_path": "images/f0ed37566c4e463b84591db9ea935cc99dd785929ad3663b924e1ea041c39021.jpg",
|
| 703 |
+
"image_caption": [
|
| 704 |
+
"Figure 4: The confidence map (0.5 for white and 1 for black) of the trained CSNN on the moons dataset for different values of $\\alpha \\in [ 0 , 1 ]$ . Top: zoom out on the interval $[ - 5 , 6 ] ^ { 2 }$ . Bottom: zoom in view of the interval $[ - 0 . 5 , 1 . 5 ] ^ { 2 }$ . "
|
| 705 |
+
],
|
| 706 |
+
"image_footnote": [],
|
| 707 |
+
"bbox": [
|
| 708 |
+
183,
|
| 709 |
+
85,
|
| 710 |
+
820,
|
| 711 |
+
338
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 5
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "image",
|
| 717 |
+
"img_path": "images/0b9c8c6dd4e1fc416ec92903d00f1372faf8c9ddd2df5d650f39ba511e70915b.jpg",
|
| 718 |
+
"image_caption": [
|
| 719 |
+
"Figure 5: Example of activation pattern domains for $\\alpha = 0$ and $\\alpha ~ = ~ 0 . 8 2 5$ and the resulting confidence map (0.5 for white and 1 for black) for $\\alpha = 0 . 8 2 5$ for a 32 neuron 2-layer CSNN. "
|
| 720 |
+
],
|
| 721 |
+
"image_footnote": [],
|
| 722 |
+
"bbox": [
|
| 723 |
+
210,
|
| 724 |
+
395,
|
| 725 |
+
789,
|
| 726 |
+
554
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 5
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "text",
|
| 732 |
+
"text": "",
|
| 733 |
+
"bbox": [
|
| 734 |
+
173,
|
| 735 |
+
607,
|
| 736 |
+
825,
|
| 737 |
+
718
|
| 738 |
+
],
|
| 739 |
+
"page_idx": 5
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"type": "text",
|
| 743 |
+
"text": "The training/test errors and the AUROC and NZ confidence measures for the OOD data described above vs. $\\alpha$ are shown in Figure 6. Observe that the training and test errors for $\\alpha = 0$ are quite large, because the standard NN with 128 neurons cannot fit the data well enough, and they decrease as the neuron support decreases and the model is better capable to fit the data. ",
|
| 744 |
+
"bbox": [
|
| 745 |
+
174,
|
| 746 |
+
726,
|
| 747 |
+
581,
|
| 748 |
+
809
|
| 749 |
+
],
|
| 750 |
+
"page_idx": 5
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"type": "text",
|
| 754 |
+
"text": "The confidence map for the obtained classifier is shown in Figure 4. We can see that the confidence is 0.5 (white) almost everywhere except close to the training data, where it is close to 1 (black). This gives us an insight that the method works as expected, shrinking the support of the neurons to a small domain around the training data. We also see that the support is already reasonably small for $\\alpha = 0 . 6$ and it gets tighter and tighter as $\\alpha$ gets closer to 1. ",
|
| 755 |
+
"bbox": [
|
| 756 |
+
174,
|
| 757 |
+
813,
|
| 758 |
+
583,
|
| 759 |
+
924
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 5
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "image",
|
| 765 |
+
"img_path": "images/9d5e97c1bb2e292effd8e47c9118422de96af1861d74126ed5bb59b31adcae74.jpg",
|
| 766 |
+
"image_caption": [
|
| 767 |
+
"Figure 6: CSNN train and test errors, AUROC and percent nonzero outputs (NZ) vs. $\\alpha$ for the moons data. "
|
| 768 |
+
],
|
| 769 |
+
"image_footnote": [],
|
| 770 |
+
"bbox": [
|
| 771 |
+
599,
|
| 772 |
+
719,
|
| 773 |
+
821,
|
| 774 |
+
849
|
| 775 |
+
],
|
| 776 |
+
"page_idx": 5
|
| 777 |
+
},
|
| 778 |
+
{
|
| 779 |
+
"type": "text",
|
| 780 |
+
"text": "It is known Croce & Hein (2018); Hein et al. (2019) that the output of a ReLU-based neural network is piecewise linear and the domains of linearity are given by the activation pattern of the neurons. The activation pattern of the neurons consists of the domains where the set of neurons that are active (i.e. their output is positive) does not change. These activation pattern domains are polytopes, as shown in in Figure 5, left, for a two-layer NN with 32 neurons. The activation domains for a CSNN are intersections of circles, as illustrated in Figure 5, middle, with the domain where all neurons are inactive shown in white. The corresponding confidence map is shown in Figure 5, right. ",
|
| 781 |
+
"bbox": [
|
| 782 |
+
173,
|
| 783 |
+
103,
|
| 784 |
+
826,
|
| 785 |
+
202
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 6
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "text",
|
| 791 |
+
"text": "In real data applications we don’t need to go all the way to $\\alpha =$ 1 since even for smaller $\\alpha$ the support is still bounded and if the instance space is high dimensional (e.g. 512 to 1024 in the real data experiments below), the volume of the support of the CNN will be very small compared to the instance space, making it unlikely to have high confidence on out-of-distribution data. ",
|
| 792 |
+
"bbox": [
|
| 793 |
+
173,
|
| 794 |
+
208,
|
| 795 |
+
619,
|
| 796 |
+
291
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 6
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "The role of pruning dead neurons. Due to the random initialization of the neurons, there might exist neurons that have zero response on all the training observations. These neurons are dead in the sense that they are not updated in the back-propagation, since their response is always zero. We have observed that in some cases these dead neurons will produce some small high confidence regions far away from the training examples (see Fig. 7). This problem can be eliminated by removing these neurons during training, which is done by line 7 of Algorithm 1. ",
|
| 803 |
+
"bbox": [
|
| 804 |
+
174,
|
| 805 |
+
295,
|
| 806 |
+
619,
|
| 807 |
+
364
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 6
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "image",
|
| 813 |
+
"img_path": "images/d6acabc6bfd51c9b56e29d682d1c93eab60c24247e4a4853209a72a34efec83c.jpg",
|
| 814 |
+
"image_caption": [
|
| 815 |
+
"Figure 7: Confidence map without pruning, $\\alpha = 0 . 9 8 5$ . "
|
| 816 |
+
],
|
| 817 |
+
"image_footnote": [],
|
| 818 |
+
"bbox": [
|
| 819 |
+
640,
|
| 820 |
+
205,
|
| 821 |
+
816,
|
| 822 |
+
332
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 6
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "",
|
| 829 |
+
"bbox": [
|
| 830 |
+
173,
|
| 831 |
+
366,
|
| 832 |
+
825,
|
| 833 |
+
405
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 6
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "image",
|
| 839 |
+
"img_path": "images/5853098c38710f2d8261c9a369a5635256653dac968d9254e11a70ced307af4a.jpg",
|
| 840 |
+
"image_caption": [
|
| 841 |
+
"Figure 8: The CSNN-F with LeNet backbone, where all layers are trained by backpropagation. "
|
| 842 |
+
],
|
| 843 |
+
"image_footnote": [],
|
| 844 |
+
"bbox": [
|
| 845 |
+
321,
|
| 846 |
+
406,
|
| 847 |
+
669,
|
| 848 |
+
506
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 6
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "text",
|
| 854 |
+
"text": "3.2 REAL DATA EXPERIMENTS ",
|
| 855 |
+
"text_level": 1,
|
| 856 |
+
"bbox": [
|
| 857 |
+
174,
|
| 858 |
+
539,
|
| 859 |
+
401,
|
| 860 |
+
553
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 6
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "We conduct experiments by training on three different datasets: MNIST (LeCun & Cortes, 2010), CIFAR-10 and CIFAR-100 (Krizhevsky et al., 2009). We evaluate the confidence on in-sample and out-of-sample data, by testing them on their respective test sets (in-sample) and on other datasets as shown in Table 1, including the test sets of EMNIST (Cohen et al.), FashionMNIST (Xiao et al., 2017) and SVHN (Netzer et al., 2011), and the validation set of ImageNet (Deng et al., 2009). For MNIST we also tested on a grayscale version of CIFAR-10, obtained by converting the 10,000 test images to gray-scale and resizing them to $2 8 \\times 2 8$ . ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
173,
|
| 869 |
+
560,
|
| 870 |
+
826,
|
| 871 |
+
660
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 6
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "CNN architecture. For MNIST we use a 4-layer LeNet CNN as backbone, with two $5 \\times 5$ convolution layers with 32 and 64 filters respectively, followed by ReLU and $2 \\times 2$ max pooling, and two fully connected layers with 256 and 10 neurons. For the other two datasets, we used as backbone a ResNet-18 architecture (He et al., 2016) with 4 residual blocks with 64, 128, 256 and 512 filters respectively. After the backbone CNN has been trained, the FC layers were removed and only the convolutional layers were kept, as illustrated in Figure 2, right and Figure 8. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
173,
|
| 880 |
+
661,
|
| 881 |
+
825,
|
| 882 |
+
746
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 6
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "For the CSNN we will experiment with two architectures, illustrated in Figure 2 and Figure 8. The first is a small one (called CSNN) that takes as input the output of the last convolutional layer of the backbone, normalized as described in Section 2.2. The normalization of the CSNN input can also be achieved using a batch normalization layer without any learnable affine parameters. The second one is a full network (called CSNN-F), illustrated in Figure 8, where the backbone (LeNet or ResNet) is part of the backpropagation and a batch normalization layer (BN) without any learnable parameters has been introduced between the backbone and the CSN layer. ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
174,
|
| 891 |
+
750,
|
| 892 |
+
825,
|
| 893 |
+
847
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 6
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "Training details. For all datasets we used data augmentation with padding (3 pixels for MNIST, 4 pixels for the rest) and random cropping to train the backbones. For CIFAR-100 we also used random rotation up to 15 degrees.We used no data augmentation when training the CSNN and CSNN-F. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
174,
|
| 902 |
+
851,
|
| 903 |
+
825,
|
| 904 |
+
892
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 6
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "The training/test data was passed though the backbone without the FC layers, and the output was normalized. A CSNN without bias term was trained for 510 epochs with $R = 0 . 1$ , of which 10 epochs at $\\alpha = 0$ . For the CSNN training we used the Adam optimizer with learning rate 0.001 and weight decay 0.0001. We also tried SGD and obtained similar results. The CSNN-F was trained with SGD with a learning rate of 0.001 and weight decay 0.0005. Its layers were initialized with the trained backbone and the trained CSNN. Then $\\alpha$ was kept fixed for two epochs and increased by 0.005 every epoch for 4 more epochs. ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
174,
|
| 913 |
+
895,
|
| 914 |
+
823,
|
| 915 |
+
924
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 6
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "image",
|
| 921 |
+
"img_path": "images/2fecf33cc6072abb3692e728485b4933f30675a06e928fe55d9a7841f8e931db.jpg",
|
| 922 |
+
"image_caption": [
|
| 923 |
+
"Figure 9: Train and test errors, Area under ROC Curve (AUROC) and percent nonzero outputs (NZ) vs $\\alpha$ for CSNN classifiers trained on three real datasets. These results are obtained from one training run. "
|
| 924 |
+
],
|
| 925 |
+
"image_footnote": [],
|
| 926 |
+
"bbox": [
|
| 927 |
+
168,
|
| 928 |
+
85,
|
| 929 |
+
826,
|
| 930 |
+
228
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 7
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "",
|
| 937 |
+
"bbox": [
|
| 938 |
+
174,
|
| 939 |
+
290,
|
| 940 |
+
825,
|
| 941 |
+
361
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 7
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "Training the CSNN from $\\alpha = 0$ to $\\alpha = 1$ for 510 epochs takes less than an hour on a MSI GS-60 Core I7 laptop with 16Gb RAM and Nvidia GTX 970M GPU. Each epoch of the CSNN-F took less than a minute with the LeNet backbone and about 3 minutes with the ResNet-18 backbone. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
176,
|
| 950 |
+
367,
|
| 951 |
+
823,
|
| 952 |
+
409
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 7
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "OOD detection. The out of distribution (OOD) detection is performed similarly to the way it is done in a standard CNN. For any observation, the maximum value of CSNN raw outputs is used as the OOD score for predicting whether the observation is OOD or not. If the observation is in-distribution, its score will usually be large, and if it is OOD, it will be usually close to zero or even zero. The ROC curve based on these scores for the test set of the in-distribution data (as class 0) and one OOD dataset (as class 1) will give us the AUROC. If the two distributions are not separable (have concept overlap), some of the OOD scores will be large, but for the OOD observations that are away from the area of overlap they will be small or even zero. ",
|
| 959 |
+
"bbox": [
|
| 960 |
+
174,
|
| 961 |
+
416,
|
| 962 |
+
825,
|
| 963 |
+
527
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 7
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "In Figure 9 are shown the train/test errors vs $\\alpha$ for the CSNN on the three datasets. Also shown are the Area under the ROC curve (AUROC) for OOD detection on CIFAR-10 or CIFAR-100 and the percentage of OOD samples with nonzero outputs (NZ). Observe that all curves on the real data are very smooth, even though they are obtained from one run, not averaged. We see that the training and test errors stay flat for a while then they start increasing from a certain $\\alpha$ that depends on the dataset. At the same time, the AUROC stays flat and slightly increases, and there is a range of values of $\\alpha$ where the test error is low and the AUROC is large. Looking in more detail at the CIFAR-10 dataset (middle plot in Figure 9), we see that for $\\alpha = 0 . 7$ the NZ-CIFAR100 is about 0.6, which means that about $40 \\%$ of the CIFAR-100 observations have all 0 CSNN outputs, therefore an OOD score of 0. Combined with the scores of the other observations and the fact that at most $10 \\%$ of the CIFAR-10 test observations have an OOD score of 0 (because the test error is less than 0.1) it results in a slight increase in AUROC. ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
174,
|
| 972 |
+
535,
|
| 973 |
+
825,
|
| 974 |
+
700
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 7
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "In practice, $\\alpha$ should be chosen as large as possible where an acceptable validation error is still obtained, to have the smallest support possible. For example one could choose the largest $\\alpha$ such that the validation error at $\\alpha$ is less then or equal to the validation error at $\\alpha = 0$ . However, for better comparison with the other methods, for each dataset we chose the CSNN classifier corresponding to the largest $\\alpha$ where the test error takes a value comparable to the other methods compared, and reported the AUROC values in Table 1. The CSNN-F was obtained by merging the corresponding CSNN head with the ResNet or LeNet backbone and training them together for 6 epochs. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
174,
|
| 983 |
+
708,
|
| 984 |
+
825,
|
| 985 |
+
805
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 7
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "Methods compared. We compare our results with the Adversarial Confidence Enhanced Training (ACET) (Hein et al., 2019), Deterministic Uncertainty Quantification (DUQ) (van Amersfoort et al., 2020), a standard CNN, and an ensemble of five or 10 CNNs trained with different random initializations. The ACET results are taken directly from Hein et al. (2019), and the DUQ, CNN and ensemble results were obtained using the DUQ authors’ code. For DUQ we trained multiple models with various combinations of the length scales $\\sigma \\in \\{ 0 . 0 5 , 0 . 1 , 0 . 2 , 0 . 3 , 0 . 5 , 1 . 0 \\}$ and gradient penalty $\\lambda \\in \\{ 0 , 0 . 0 5 , 0 . 1 , 0 . 2 , 0 . 3 , 0 . 5 , 1 . 0 \\}$ and selected the combination with the best test error-AUROC trade-off. ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
173,
|
| 994 |
+
811,
|
| 995 |
+
825,
|
| 996 |
+
924
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 7
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "table",
|
| 1002 |
+
"img_path": "images/e0d15ccb8ea7e501f096955a829664966b78e70eff2d3672667bbf0b1c7d2623.jpg",
|
| 1003 |
+
"table_caption": [],
|
| 1004 |
+
"table_footnote": [],
|
| 1005 |
+
"table_body": "<table><tr><td>Train on MNIST</td><td>CNN 0.53% (.05)</td><td>ACET 0.66</td><td>DUQ 0.57 (.04)</td><td>5Ens 0.50 (.02)</td><td>10 Ens 0.51 (.03)</td><td>CSNN 0.52 (.01)</td><td>CSNN-F 0.50 (0.02)</td></tr><tr><td>EMNIST</td><td>0.983 (.001)</td><td>0.912</td><td>0.988 (.001)</td><td>0.985 (.001)</td><td>0.985 (.001)</td><td>0.992 (.001)</td><td>0.990 (.002)</td></tr><tr><td>FashionMNIST</td><td>0.989 (.001)</td><td>0.998</td><td>0.998 (.001)</td><td>0.992 (.001)</td><td>0.992 (.001)</td><td>0.998 (.001)</td><td>0.997 (.001)</td></tr><tr><td>grayCIFAR-10</td><td>0.995 (.001)</td><td>1.000</td><td>0.978 (.005)</td><td>0.992 (.003)</td><td>0.992 (.002)</td><td>1.000 (.0001)</td><td>1.000 (.0001)</td></tr><tr><td>Average</td><td>0.9897.005)</td><td>0.970</td><td>0.988(.009)</td><td>0.9907.004)</td><td>0.990 (.004)</td><td>0.996(.003)</td><td>0.996 (.004)</td></tr><tr><td>Train on CIFAR-10</td><td>5.99% (.09)</td><td>8.44</td><td>6.88 (.40)</td><td>4.83 (.16)</td><td>4.59 (.08)</td><td>7.28 (.06)</td><td>6.18 (.09)</td></tr><tr><td>CIFAR-100</td><td>0.860 (.001)</td><td>0.852</td><td>0.827 (.016)</td><td>0.891(.001)</td><td>0.897 (.001)</td><td>0.865 (.001)</td><td>0.882(.003)</td></tr><tr><td>SVHN</td><td>0.899 (.012)</td><td>0.981</td><td>0.912 (.031)</td><td>0.917 (.006)</td><td>0.924 (.002)</td><td>0.908 (.001)</td><td>0.900 (.013)</td></tr><tr><td>ImageNet</td><td>0.834 (.002)</td><td>0.859</td><td>0.816 (.021)</td><td>0.863 (.001)</td><td>0.869 (.001)</td><td>0.848 (.001)</td><td>0.854 (.004)</td></tr><tr><td>Average</td><td>0.8657.029)</td><td>0.897</td><td>0.852 (.050)</td><td>0.8907.023)</td><td>0.897 (.023)</td><td>0.874(.026)</td><td>0.879(.021)</td></tr><tr><td>Train on CIFAR100</td><td>26.18% (.28)</td><td>32.24</td><td>31.14(.23)</td><td>22.43 (.20)</td><td>21.86 (.11)</td><td>30.89 (0.10)</td><td>24.46 (.12)</td></tr><tr><td>CIFAR-10</td><td>0.750 (.002)</td><td>0.720</td><td>0.722 (.008)</td><td>0.781(.001)</td><td>0.786 (.001)</td><td>0.783 (.001)</td><td>0.762 (.002)</td></tr><tr><td>SVHN</td><td>0.781 (.035)</td><td>0.912</td><td>0.774 (.006)</td><td>0.832 (.013)</td><td>0.834 (.009)</td><td>0.872 (.001)</td><td>0.860 (.006)</td></tr><tr><td>ImageNet</td><td>0.766 (.002)</td><td>0.752</td><td>0.742 (.006)</td><td>0.798 (.001)</td><td>0.803 (.001)</td><td>0.755 (.001)</td><td>0.793 (.001)</td></tr><tr><td>Average</td><td>0.7667.023)</td><td>0.795</td><td>0.746(.024)</td><td>0.8047.022)</td><td>0.808 (.021)</td><td>0.804(.050)</td><td>0.805 (.042)</td></tr></table>",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
176,
|
| 1008 |
+
101,
|
| 1009 |
+
821,
|
| 1010 |
+
308
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 8
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "Table 1: OOD detection comparison in terms of Area under the ROC curve (AUROC) for models trained and tested on several datasets. For each model the test error in $\\%$ is shown in the \"Train on\" row. The ACET results are taken from Hein et al. (2019). All other results are averaged over 10 runs and the standard deviation is shown in parentheses. ",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
174,
|
| 1019 |
+
308,
|
| 1020 |
+
825,
|
| 1021 |
+
363
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 8
|
| 1024 |
+
},
|
| 1025 |
+
{
|
| 1026 |
+
"type": "text",
|
| 1027 |
+
"text": "Results. The results are shown in Table 1. All results except the ACET results are averaged over 10 runs and the standard deviation is shown in parentheses. From Table 1 we observe that our methods obtain the best results on MNIST and the 10-ensemble obtains the best results on the other two datasets. The test errors of the CSNN-F approach are smaller than the CSNN, and the AUROCs are comparable. Compared to ACET both CSNN and CSNN-F obtain smaller test errors on all three dataset and better average AUROC on two out of three datasets. Compared to DUQ, the CSNN and CSNN-F obtain comparable test errors and better average AUROC on all three datasets. Compare to the 5-ensemble, the CSNN-F obtains comparable errors on two datasets and comparable or better AUROC on two datasets. Comparing the training time, both our methods are about 4 times faster than training a 5-ensemble, 8 times faster than a 10- ensemble and about 3 times faster than DUQ. ",
|
| 1028 |
+
"bbox": [
|
| 1029 |
+
174,
|
| 1030 |
+
372,
|
| 1031 |
+
825,
|
| 1032 |
+
512
|
| 1033 |
+
],
|
| 1034 |
+
"page_idx": 8
|
| 1035 |
+
},
|
| 1036 |
+
{
|
| 1037 |
+
"type": "text",
|
| 1038 |
+
"text": "4 CONCLUSION ",
|
| 1039 |
+
"text_level": 1,
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
176,
|
| 1042 |
+
527,
|
| 1043 |
+
318,
|
| 1044 |
+
542
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 8
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "In this paper, we presented a generic neuron formulation that encompasses the standard projection based neuron and the RBF neuron as two extreme cases of a shape parameter $\\alpha \\in [ 0 , 1 ]$ . By using ReLU as the activation function we obtained a novel type of neuron that has compact support. We showed how to avoid the difficulties in training the compact support NN by training a standard neural network first $\\alpha = 0$ ) and gradually shrinking the support by increasing $\\alpha$ . We showed the advantages of the proposed compact support neural network in that it can still have good prediction on data coming from the same distribution, but it can detect out of distribution samples consistently well. This feature is important in safety critical applications such as autonomous driving, space exploration and medical imaging. Our results have been obtained without any adversarial training or ensembling, and adversarial training or ensembling could be used in our framework to obtain further improvements. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
174,
|
| 1053 |
+
553,
|
| 1054 |
+
825,
|
| 1055 |
+
691
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 8
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "In the real data applications we used a compact support layer as the last layer before the output layer. This ensures that the compact support is involved in the most relevant representation space of the CNN. However, because the CNN still has many projection-based layers to obtain this representation space, it means that the corresponding representation in the original image space does not have compact support and high confidence erroneous predictions are still possible. In the future we plan to study architectures with multiple compact support layers that have even smaller support in the image space. ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
174,
|
| 1064 |
+
695,
|
| 1065 |
+
825,
|
| 1066 |
+
792
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 8
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "REFERENCES ",
|
| 1073 |
+
"text_level": 1,
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
176,
|
| 1076 |
+
815,
|
| 1077 |
+
285,
|
| 1078 |
+
830
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 8
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "David S Broomhead and David Lowe. Radial basis functions, multi-variable functional interpolation and adaptive networks. Technical report, Royal Signals and Radar Establishment Malvern (United Kingdom), 1988. ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
176,
|
| 1087 |
+
840,
|
| 1088 |
+
823,
|
| 1089 |
+
882
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 8
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "Gregory Cohen, Saeed Afshar, Jonathan Tapson, and André van Schaik. Emnist: an extension of mnist to handwritten letters (2017). arXiv preprint arXiv:1702.05373. ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
174,
|
| 1098 |
+
895,
|
| 1099 |
+
823,
|
| 1100 |
+
924
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 8
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "Francesco Croce and Matthias Hein. A randomized gradient-free attack on relu networks. In German Conference on Pattern Recognition, pp. 215–227. Springer, 2018. ",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
169,
|
| 1109 |
+
103,
|
| 1110 |
+
825,
|
| 1111 |
+
133
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 9
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pp. 248–255. Ieee, 2009. ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
173,
|
| 1120 |
+
141,
|
| 1121 |
+
823,
|
| 1122 |
+
171
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 9
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "Yarin Gal and Zoubin Ghahramani. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In ICML, pp. 1050–1059, 2016. ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
173,
|
| 1131 |
+
181,
|
| 1132 |
+
823,
|
| 1133 |
+
210
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 9
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. ICLR, 2015. ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
174,
|
| 1142 |
+
219,
|
| 1143 |
+
823,
|
| 1144 |
+
248
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 9
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In ICML, pp. 1321–1330. JMLR. org, 2017. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
174,
|
| 1153 |
+
257,
|
| 1154 |
+
821,
|
| 1155 |
+
287
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 9
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pp. 770–778, 2016. ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
174,
|
| 1164 |
+
296,
|
| 1165 |
+
823,
|
| 1166 |
+
327
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 9
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "Matthias Hein, Maksym Andriushchenko, and Julian Bitterwolf. Why relu networks yield highconfidence predictions far away from the training data and how to mitigate the problem. In CVPR, pp. 41–50, 2019. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
173,
|
| 1175 |
+
335,
|
| 1176 |
+
826,
|
| 1177 |
+
378
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 9
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. In ICLR, 2017. ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
173,
|
| 1186 |
+
388,
|
| 1187 |
+
823,
|
| 1188 |
+
417
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 9
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "Yen-Chang Hsu, Yilin Shen, Hongxia Jin, and Zsolt Kira. Generalized odin: Detecting out-ofdistribution image without learning from out-of-distribution data. In CVPR, pp. 10951–10960, 2020. ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
176,
|
| 1197 |
+
426,
|
| 1198 |
+
821,
|
| 1199 |
+
469
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 9
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "Heinrich Jiang, Been Kim, Melody Guan, and Maya Gupta. To trust or not to trust a classifier. In NeurIPS, pp. 5541–5552, 2018. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
173,
|
| 1208 |
+
479,
|
| 1209 |
+
825,
|
| 1210 |
+
508
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 9
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009. ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
173,
|
| 1219 |
+
518,
|
| 1220 |
+
823,
|
| 1221 |
+
535
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 9
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. In NeurIPS, pp. 6402–6413, 2017. ",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
174,
|
| 1230 |
+
542,
|
| 1231 |
+
820,
|
| 1232 |
+
573
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 9
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "Yann LeCun and Corinna Cortes. MNIST handwritten digit database. 2010. URL http://yann. lecun.com/exdb/mnist/. ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
176,
|
| 1241 |
+
582,
|
| 1242 |
+
823,
|
| 1243 |
+
611
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 9
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "Kimin Lee, Kibok Lee, Honglak Lee, and Jinwoo Shin. A simple unified framework for detecting out-of-distribution samples and adversarial attacks. In NeurIPS, pp. 7167–7177, 2018. ",
|
| 1250 |
+
"bbox": [
|
| 1251 |
+
174,
|
| 1252 |
+
621,
|
| 1253 |
+
823,
|
| 1254 |
+
650
|
| 1255 |
+
],
|
| 1256 |
+
"page_idx": 9
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"type": "text",
|
| 1260 |
+
"text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018. ",
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
174,
|
| 1263 |
+
659,
|
| 1264 |
+
825,
|
| 1265 |
+
689
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 9
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y. Ng. Reading digits in natural images with unsupervised feature learning. In NeurIPS Workshop on Deep Learning and Unsupervised Feature Learning 2011, 2011. URL http://ufldl.stanford. edu/housenumbers/nips2011_housenumbers.pdf. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
173,
|
| 1274 |
+
698,
|
| 1275 |
+
826,
|
| 1276 |
+
756
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 9
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "Anh Nguyen, Jason Yosinski, and Jeff Clune. Deep neural networks are easily fooled: High confidence predictions for unrecognizable images. In CVPR, pp. 427–436, 2015. ",
|
| 1283 |
+
"bbox": [
|
| 1284 |
+
169,
|
| 1285 |
+
765,
|
| 1286 |
+
825,
|
| 1287 |
+
795
|
| 1288 |
+
],
|
| 1289 |
+
"page_idx": 9
|
| 1290 |
+
},
|
| 1291 |
+
{
|
| 1292 |
+
"type": "text",
|
| 1293 |
+
"text": "Jie Ren, Peter J Liu, Emily Fertig, Jasper Snoek, Ryan Poplin, Mark Depristo, Joshua Dillon, and Balaji Lakshminarayanan. Likelihood ratios for out-of-distribution detection. In NeurIPS, pp. 14707–14718, 2019. ",
|
| 1294 |
+
"bbox": [
|
| 1295 |
+
174,
|
| 1296 |
+
804,
|
| 1297 |
+
825,
|
| 1298 |
+
847
|
| 1299 |
+
],
|
| 1300 |
+
"page_idx": 9
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"type": "text",
|
| 1304 |
+
"text": "Joost van Amersfoort, Lewis Smith, Yee Whye Teh, and Yarin Gal. Uncertainty estimation using a single deep deterministic neural network. In ICML, 2020. ",
|
| 1305 |
+
"bbox": [
|
| 1306 |
+
169,
|
| 1307 |
+
856,
|
| 1308 |
+
823,
|
| 1309 |
+
886
|
| 1310 |
+
],
|
| 1311 |
+
"page_idx": 9
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"type": "text",
|
| 1315 |
+
"text": "Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. ",
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
174,
|
| 1318 |
+
895,
|
| 1319 |
+
823,
|
| 1320 |
+
924
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 9
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "text",
|
| 1326 |
+
"text": "Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In ICCV, pp. 6023–6032, 2019. ",
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
174,
|
| 1329 |
+
103,
|
| 1330 |
+
825,
|
| 1331 |
+
145
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 10
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In ECCV, pp. 818–833. Springer, 2014. ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
171,
|
| 1340 |
+
155,
|
| 1341 |
+
826,
|
| 1342 |
+
184
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 10
|
| 1345 |
+
}
|
| 1346 |
+
]
|
parse/train/xCy9thPPTb_/xCy9thPPTb__model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|