Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/BJgcwh4FwS/BJgcwh4FwS.md +467 -0
- parse/train/BJgcwh4FwS/BJgcwh4FwS_content_list.json +0 -0
- parse/train/BJgcwh4FwS/BJgcwh4FwS_middle.json +0 -0
- parse/train/BJgcwh4FwS/BJgcwh4FwS_model.json +0 -0
- parse/train/S1c2cvqee/S1c2cvqee.md +308 -0
- parse/train/S1c2cvqee/S1c2cvqee_content_list.json +1643 -0
- parse/train/S1c2cvqee/S1c2cvqee_middle.json +0 -0
- parse/train/S1c2cvqee/S1c2cvqee_model.json +0 -0
- parse/train/S1vuO-bCW/S1vuO-bCW_middle.json +0 -0
- parse/train/S1vuO-bCW/S1vuO-bCW_model.json +0 -0
- parse/train/Sk-oDY9ge/Sk-oDY9ge.md +277 -0
- parse/train/Sk-oDY9ge/Sk-oDY9ge_content_list.json +1327 -0
- parse/train/Skn9Shcxe/Skn9Shcxe.md +341 -0
- parse/train/Skn9Shcxe/Skn9Shcxe_content_list.json +1620 -0
- parse/train/Skn9Shcxe/Skn9Shcxe_middle.json +0 -0
- parse/train/Skn9Shcxe/Skn9Shcxe_model.json +0 -0
- parse/train/rJe4_xSFDB/rJe4_xSFDB.md +419 -0
- parse/train/rJe4_xSFDB/rJe4_xSFDB_content_list.json +2027 -0
- parse/train/rJe4_xSFDB/rJe4_xSFDB_middle.json +0 -0
- parse/train/rJe4_xSFDB/rJe4_xSFDB_model.json +0 -0
parse/train/BJgcwh4FwS/BJgcwh4FwS.md
ADDED
|
@@ -0,0 +1,467 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NEURAL MAXIMUM COMMON SUBGRAPH DETECTION WITH GUIDED SUBGRAPH EXTRACTION
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Maximum Common Subgraph (MCS) is defined as the largest subgraph that is commonly present in both graphs of a graph pair. Exact MCS detection is NPhard, and its state-of-the-art exact solver based on heuristic search is slow in practice without any time complexity guarantee. Given the huge importance of this task yet the lack of fast solver, we propose an efficient MCS detection algorithm, NEURALMCS, consisting of a novel neural network model that learns the nodenode correspondence from the ground-truth MCS result, and a subgraph extraction procedure that uses the neural network output as guidance for final MCS prediction. The whole model guarantees polynomial time complexity with respect to the number of the nodes of the larger of the two input graphs. Experiments on four real graph datasets show that the proposed model is $3 1 . 7 8 \times$ faster than the exact solver while achieving near-perfect accuracy in MCS detection.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Graph data are ubiquitous. Due to its flexible and expressive nature, graphs have been used to store data of various domains. In computational biology, atomic networks can represent molecular compounds. In software analysis, program dependence graphs can describe the data and control dependencies. In social science, social networks can represent community structures. Because of graphs’ unique ability to capture these data, algorithms tackling novel tasks on graphs across different domains have been gaining increased interest in the representation learning community.
|
| 12 |
+
|
| 13 |
+
Graph matching, in particular, is a recently popular task with new approaches such as Zanfir & Sminchisescu (2018), Bai et al. (2019a), and Li et al. (2019). These methods either produce a score indicating how much and/or how well two graphs match or a graph alignment indicating how and where two graphs match. The latter case is a far more difficult task than the former one. Current methods perform a special case of graph alignment, namely image matching, where the two input graphs are of spatial structures (ex. pixel grids, object orientation, etc.) To account for more general graphs, we extract the Maximum Common Subgraph (MCS) (Bunke & Shearer, 1998), a widely used metric for graph alignment, and perform matching on the extracted subgraphs.
|
| 14 |
+
|
| 15 |
+
MCS is a very useful metric to match two graphs in real-world applications. For example, in drug discovery, identifying compounds sharing similar substructures which tend to share similarity properties can dramatically reduce the amount of molecules that need to be manually tested (Ehrlich & Rarey, 2011). In addition to molecular science, MCS also has application values in malware detection (Park et al., 2013), pattern recognition (Solnon et al., 2015), computer-aided circuit design (Djoko et al., 1997; Li et al., 2012), etc. Unfortunately, MCS is NP-hard and, to the best of our knowledge, no existing algorithms tackle this problem from a purely machine learning approach.
|
| 16 |
+
|
| 17 |
+
We are among the first to tackle graph matching defined by MCS. This is more challenging than image matching or graph similarity computation, because MCS requires the extraction of the largest connected subgraph that is commonly present in both input graphs. This implies that the two extracted subgraphs must not only be contained in both graphs but also be isomorphic to each other. To capture the MCS definition, our proposed model, NEURALMCS, fundamentally changes the way that the representations are learned. Instead of computing similarity all in one step, we introduce an iterative procedure to match nodes one at a time. By selecting nodes successively, we ensure the extracted subgraphs are connected. We utilize subgraph embeddings to perform a stopping condition check, dealing with subgraph isomorphism and ending the procedure when the connected subgraphs are the largest. By performing this iterative procedure, we both better ensure the isomorphism of the extracted subgraph as well as capture the recurrent relationship between matching pairs of nodes.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: For a graph pair $( \mathcal { G } _ { 1 } , \mathcal { G } _ { 2 } )$ , previous works (Bai et al., $2 0 1 9 \mathrm { a }$ ; 2018; Li et al., 2019) focus on predicting their graph-graph similarity score. In this work, we aim to find the Maximum Common Subgraph (MCS) (circled in red), which requires fine-grained node-node correspondence prediction. It is more useful both due to the application value as described in Section 1 and because of the interpretable similarity result indicated by the node-node mapping. Node text indicates node labels.
|
| 21 |
+
|
| 22 |
+
We experimentally verify NEURALMCS on four real graph datasets. and show that NEURALMCS can achieve $4 8 . 1 \times$ runtime gain over state-of-the-art exact MCS computation algorithm MCSPLIT (McCreesh et al., 2017), and is much more accurate than all the baseline approximate approaches to graph matching.
|
| 23 |
+
|
| 24 |
+
# 2 PROBLEM DEFINITION AND PRELIMINARIES
|
| 25 |
+
|
| 26 |
+
# 2.1 PROBLEM DEFINITION
|
| 27 |
+
|
| 28 |
+
We denote a graph as $\mathcal { G } = ( V , E )$ with node set $V$ and edge set $E$ . We define as an induced subgraph as $\boldsymbol { \mathcal { G } } ^ { \prime } = ( \boldsymbol { V } ^ { \prime } , \boldsymbol { E } ^ { \prime } )$ where $V ^ { ' } \subseteq V$ and $E ^ { ' } \subseteq E$ and $E ^ { ' }$ preserves all edges between nodes in $V ^ { ' }$ in the original graph $\mathcal { G }$ . In other words, for two nodes in $V ^ { ' }$ , if there is an edge between them in $\mathcal { G }$ , the induced subgraph must also contain the edge. In the rest of the paper, we use the term “subgraph” to refer to “induced subgraph”.
|
| 29 |
+
|
| 30 |
+
In this work, our goal is to detect the Maximum Common Subgraph (MCS) for an input graph pair $( \mathcal { G } _ { 1 } , \mathcal { G } _ { 2 } )$ . In general, MCS refers to the largest (induced) subgraph that is common to both graphs. In this paper, we make the following qualifications:
|
| 31 |
+
|
| 32 |
+
• Labeled graph. The nodes of $\mathcal { G } _ { 1 }$ and $\mathcal { G } _ { 2 }$ are labeled, and nodes of different labels cannot be matched.
|
| 33 |
+
• Connected subgraph. We require the detected subgraph to be connected, which is a common qualification consistent with McCreesh et al. (2017).
|
| 34 |
+
|
| 35 |
+
Our goal is to detect the MCS for an input graph pair $\mathcal { G } _ { 1 } , \mathcal { G } _ { 2 }$ . We adopt the state-of-the-art exact solver, MCSPLIT (McCreesh et al., 2017), to provide ground-truth MCS results for a set of training graph pairs. Specifically, MCSPLIT provides not only the nodes that are included in the MCS in both graphs, but also the node-node correspondence in the MCS, as illustrated in Figure 1.
|
| 36 |
+
|
| 37 |
+
# 2.2 NODE REPRESENTATION LEARNING
|
| 38 |
+
|
| 39 |
+
Among various node embedding methods, GRAPH MATCHING NETWORKS (GMN) (Li et al., 2019) are recent models designed for graph similarity computation. GMN is based on GRAPH CONVOLUTIONAL NETWORKS (GCN) (Kipf & Welling, 2016), but in addition to message passing within a graph (intra-graph), GMN explicitly handles inter-graph information passing between the two input graphs.
|
| 40 |
+
|
| 41 |
+
First, GMN performs explicit cross-graph communication on node embeddings denoted as $\mathbf { \Omega } _ { h } ( l )$ where initial node features have $l = 0$ . More specifically, cross-graph communication is achieved through the following attention based mechanism: $\begin{array} { r } { a _ { j \to i } = \frac { \exp ( \cos ( \pmb { h } _ { i } ^ { ( l ) } , \pmb { h } _ { j } ^ { ( l ) } ) } { \sum _ { j ^ { \prime } } \exp ( \cos ( \pmb { h } _ { i } ^ { ( l ) } , \pmb { h } _ { j ^ { \prime } } ^ { ( l ) } ) } } \end{array}$ Next, a softmax function is applied to the cosine similarity between two node embeddings which makes sure similar node pairs across graphs receive greater attention. This weight is then multiplied with the difference between cross-graph node embeddings to allow all node pairs in the two graphs to communicate with each other. Finally each node embedding resulted from inter-graph message passing is concatenated with embedding from intra-graph neighborhood aggregation and placed through a MLP or a GRU core to complete a single layer update of a $h _ { i }$ .
|
| 42 |
+
|
| 43 |
+
# 3 THE PROPOSED APPROACH: NEURALMCS
|
| 44 |
+
|
| 45 |
+
Our proposed approach, NEURALMCS, relies on the learning capacity of the embedding model to generate a good matching matrix for each input graph pair, encoding the likelihood of each nodenode pair being included in the MCS and matched to each other. Therefore, the training process aims to learn a matching matrix for each graph pair that is as close to the ground-truth node-node correspondence (as illustrated in Figure 1) as possible.
|
| 46 |
+
|
| 47 |
+
However, we suppose that a good matching matrix by itself is not enough for an accurate prediction of the MCS, mainly due to the fact that MCS by definition requires the two extracted subgraphs must be isomorphic to each other and both subgraphs must also be connected (see Section 2.1). To satisfy these two requirements, we propose a novel GUIDED SUBGRAPH EXTRACTION (GSE) process that iteratively performs a guided search procedure to enlarge both extracted subgraphs using the matching matrix as guidance. The rest of the section details our proposed approach.
|
| 48 |
+
|
| 49 |
+
# 3.1 MATCHING MATRIX GENERATION
|
| 50 |
+
|
| 51 |
+
Our task fundamentally requires the matching between two graphs. Therefore, the ideal node embeddings should receive information from the nodes of both graphs. Thus, we adopt the state-of-theart node embedding model, GRAPH MATCHING NETWORKS (GMN), as described in Section 2.2. Specifically, we stack $L$ GMN layers on the input node representations to allow inter-graph message passing at multiple scales for sufficient interaction of the two graphs. We denote the final node representations as U1 ∈ R|V1|×D(L) and U2 ∈ R|V2|×D(L) .
|
| 52 |
+
|
| 53 |
+
To match nodes from the input graphs, we compute the likelihood of matching each node in $\mathcal { G } _ { 1 }$ to each node in $\mathcal { G } _ { 2 }$ . This likelihood indicates which node pair is most likely to be in the MCS, and should account for cases where some nodes in $\mathcal { G } _ { 1 }$ do not match any nodes in $\mathcal { G } _ { 2 }$ (and vice-versa). We naturally encode these likelihoods into a matching matrix, $Y \in [ 0 , 1 ] ^ { | \mathcal { G } _ { 1 } | \times | \mathcal { G } _ { 2 } | }$ .
|
| 54 |
+
|
| 55 |
+
To compute $\mathbf { Y }$ , one can simply calculate the dot product between the node embeddings, $U _ { 1 } \pmb { U } _ { 2 } ^ { \top }$ . However, this resulting matrix is simply the similarity score between each pair of nodes in the two graphs, which is in the range of $( - \operatorname { i n f } , + \operatorname { i n f } )$ and requires further processing to reflect the probability of the node pair matched and being included in the MCS.
|
| 56 |
+
|
| 57 |
+
As this matrix encode the general similarity between nodes, we denote it as the similarity matrix, $\boldsymbol { X }$ , and further normalize it to obtain $\mathbf { Y }$ . Specifically, we perform the following transformations.
|
| 58 |
+
|
| 59 |
+
To find the likelihood of each node in one graph matching each node in the other graph, we apply column-wise and row-wise normalization on $\boldsymbol { X }$ .
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\tilde { p } _ { c o l n } ( i , j ) = \frac { e ^ { X _ { i j } } } { \sum _ { k } e ^ { X _ { i k } } } , ~ \tilde { p } _ { r o w } ( i , j ) = \frac { e ^ { X _ { i j } } } { \sum _ { k } e ^ { X _ { k j } } }
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
To allow for some nodes to go unmatched, we multiply these likelihoods by a value encoding the overall matching score of a node in one graph to nodes in the other graph.
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
p _ { c o l n } ( i , j ) = \sigma ( \frac { \sum _ { j } X _ { i j } } { | V _ { 2 } | } ) \cdot \tilde { p } _ { c o l n } ( i , j ) , ~ p _ { r o w } ( i , j ) = \sigma ( \frac { \sum _ { i } X _ { i j } } { | V _ { 1 } | } ) \cdot \tilde { p } _ { r o w } ( i , j )
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
We consider both row-wise and column-wise normalization by taking the average of both scores, $\begin{array} { r } { \tilde { p } ( i , j ) = \frac { p _ { c o l n } ( i , j ) + p _ { r o w } ( i , j ) } { 2 } } \end{array}$ , and, to ensure we only select nodes with the same labels, we mask out node pairs with different labels to form $\mathbf { Y }$ .
|
| 72 |
+
|
| 73 |
+
# 3.2 LEARNING OF NEURALMCS
|
| 74 |
+
|
| 75 |
+
Although there exist multiple points where we can apply our loss function (before, during, or after GSE), we found that applying binary cross entropy loss as early as possible allows for GMN to receive a better learning signal. For this reason, our loss function acts directly on the matching matrix.
|
| 76 |
+
|
| 77 |
+

|
| 78 |
+
Figure 2: A detailed illustration of NEURALMCS using the example graph pair in Figure 1. For the input graph pair $( \mathcal { G } _ { 1 } , \mathcal { G } _ { 2 } )$ , the NEURALMCS first generates a matching matrix encoding the likelihood of each pair of node being matched ((a) and (b)). The GUIDED SUBGRAPH EXTRACTION (GSE) process uses the matching matrix as follows: NEURALMCS selects the initial pair to be included in the predicted MCS, node 2 in $\mathcal { G } _ { 1 }$ and node 6 in $\mathcal { G } _ { 2 }$ ((b) and (c)). Next, NEURALMCS sets its search frontier as the neighbors of the selected nodes, circled in dashed blue lines. By selecting the pair with the largest matching score which still preserves subgraph isomorphism, node 3 in $\mathcal { G } _ { 1 }$ and node 5 in $\mathcal { G } _ { 2 }$ , the extracted subgraphs in both graphs grow to size 2 ((d) and (e)). The procedure continues until a stopping condition is reached, which is detailed in Section 3.3.
|
| 79 |
+
|
| 80 |
+
Specifically, we design the following loss function to train the model $\begin{array} { r } { L ( \pmb { Y } ) = - \sum _ { i } \sum _ { j } \frac { I _ { i j } l o g ( Y _ { i j } ) } { | V _ { 1 } | \cdot | V _ { 2 } | } } \end{array}$ where $Y _ { i j }$ denotes our predicted matching matrix and $I _ { i j }$ denote an indicator value of whether the node $i$ matches node $j$ in the ground truth.
|
| 81 |
+
|
| 82 |
+
Since for a given graph pair, there can be multiple correct MCSs of equal size, we also employ multiple choice learning (Guzman-Rivera et al., 2012; Li et al., 2018). This is done by ensembling various copies of the model and propagating the loss function only through the copy which achieves the lowest loss, as shown by the following: $L = m i n _ { \mathbf { Y } \in \mathcal { Y } } ( L ( \mathbf { Y } ) )$ .
|
| 83 |
+
|
| 84 |
+
# 3.3 GUIDED SUBGRAPH EXTRACTION (GSE)
|
| 85 |
+
|
| 86 |
+
Given a matching matrix $\mathbf { Y }$ encoding the matching likelihood for all node pairs between $\mathcal { G } _ { 1 }$ and $\mathcal { G } _ { 2 }$ , we propose the following GUIDED SUBGRAPH EXTRACTION (GSE) process. It starts by finding the most likely pair, and iteratively expands the extracted subgraphs by selecting one more node pair at a time. The procedure stops once the addition of any additional pair would lead to non-isomorphic subgraphs. In summary, the proposed algorithm is shown in Algorithm 1. A detailed illustration using an example pair from Figure 1 is shown in Figure 2.
|
| 87 |
+
|
| 88 |
+
The GSE algorithm internally maintains a binary assignment matrix $_ { \mathbf { T } }$ which will be the final output indicating the predicted MCS, and a masking matrix $M$ , which is used to mask and select entries of the matching matrix $\mathbf { Y }$ . Both matrices are of the same dimension as $\mathbf { Y }$ . $\mathbf { T }$ is initialized to all zeros, indicating no selected nodes, i.e. extracted subgraphs are zero-size. $M$ is initialized to all ones, since NEURALMCS may select any node pair for its initial subgraph.
|
| 89 |
+
|
| 90 |
+
To select the most likely node matching, the algorithm decides which pair of nodes should be selected (see Section 3.3.1 for details) by order of their matching scores. This involves checking whether the selection of the pair would result in two isomorphic subgraphs or not. Only if so, the algorithm would select the pair (circled in red in Figure 1) and include it in the predicted MCS by updating $T _ { i ^ { \dag } , j ^ { \dag } }$ to be 1. Once a new node pair is included, GSE updates the mask $M$ to reflect the
|
| 91 |
+
|
| 92 |
+
# Algorithm 1 GUIDED SUBGRAPH EXTRACTION (GSE)
|
| 93 |
+
|
| 94 |
+
1: Input: $\left\{ A _ { 1 } , A _ { 2 } \right\}$ , $\mathbf { Y }$ , node embeddings $\{ U _ { 1 } , U _ { 2 } \}$ , .
|
| 95 |
+
2: Output: Assignment matrix $_ { \mathbf { T } }$ .
|
| 96 |
+
3: Initialize $T \gets 0 * Y$ . \\ initialize to all zeros
|
| 97 |
+
4: Initialize $M \gets 1 * Y$ . \\ initialize to all ones
|
| 98 |
+
5: Initialize update True
|
| 99 |
+
6: while update $=$ True
|
| 100 |
+
7: $\mathbf { I } $ sorted indices by highest to lowest value of elements in $\mathbf { M } \odot \mathbf { Y }$
|
| 101 |
+
8: for node pair $( { \bf i } ^ { \dag } , j ^ { \dag } ) { \bf \bar { \Lambda } } = { \bf I }$
|
| 102 |
+
9: update $\because \mathtt { F a l s e }$
|
| 103 |
+
10: Compute subgraph embeddings $w _ { 1 } , w _ { 2 }$ via Equation 4.
|
| 104 |
+
11: if $| | \boldsymbol { \bar { w } } _ { 1 } - \boldsymbol { w } _ { 2 } | | _ { 2 } \stackrel { - } { \le } \epsilon \stackrel { \cdot } { \backslash } \backslash$ subgraph isormorphism check
|
| 105 |
+
12: Select the found pair $( i ^ { \dagger } , j ^ { \dagger } )$ by updating $T _ { i ^ { \dagger } , j ^ { \dagger } } \gets 1$ .
|
| 106 |
+
13: Expand the search frontier by updating the mask $M$ via Equation 6.
|
| 107 |
+
14: update $\gets$ True
|
| 108 |
+
15: break
|
| 109 |
+
|
| 110 |
+
search frontier for the next iteration (see Section 3.3.2 for details) and proceeds to the next iteration. Since the MCS by definiton requires the extracted subgraphs to be connected graphs, we define the search frontier as the first-order neighboring nodes of the current selected nodes. This guarantees the final predicted MCS satisfies the connectivity constraint described in Section 1.
|
| 111 |
+
|
| 112 |
+
# 3.3.1 SUBGRAPH ISOMORPHISM CHECK
|
| 113 |
+
|
| 114 |
+
To decide whether node pair $( i ^ { \dagger } , j ^ { \dagger } )$ from the search frontier can be selected or not, we check if the inclusion of node $i ^ { \dagger }$ in $\mathcal { G } _ { 1 }$ and $j ^ { \dagger }$ in $\mathcal { G } _ { 2 }$ would result in two isomorphic subgraphs. To do this, we compute the two subgraph-level embeddings, ${ \pmb w } _ { 1 }$ and ${ \pmb w } _ { 2 }$ and check if their Euclidean distance is greater than a hyperparameter threshold $\epsilon$ . A more detailed discussion can be found in Appendix H and I.
|
| 115 |
+
|
| 116 |
+
Computing the subgraph-level embeddings, however, involves more than a simple aggregation of node embeddings from $U _ { 1 }$ or $U _ { 2 }$ . This is because for subgraph isomorphism check, we are only concerned with nodes included in the subgraph. The nodes outside the selected subgraph should not affect the nodes inside. However, during node embedding generation, both intra- and inter-graph message passing are performed, resulting in $U _ { 1 }$ and $U _ { 2 }$ containing unwanted information.
|
| 117 |
+
|
| 118 |
+
Inspired by the Weisfeiler-Lehman (WL) algorithm for approximate graph isomorphism test (Shervashidze et al., 2011), as well as the connection between the WL algorithm and the GCNs, we recompute the node embeddings by only aggregating neighboring nodes that are included in the current predicted MCS indicated by $\mathbf { T }$ :
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
\begin{array} { r } { U _ { 1 } ^ { ( k + 1 ) } = A _ { 1 } ( \pmb { v _ { 1 } } \odot \pmb { U } _ { 1 } ^ { ( k ) } ) , } \\ { U _ { 2 } ^ { ( k + 1 ) } = A _ { 2 } ( \pmb { v _ { 2 } } \odot \pmb { U } _ { 2 } ^ { ( k ) } ) , } \end{array}
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
where $\pmb { A }$ denotes the adjacency matrix, ${ \pmb v } _ { 1 } \in \{ 0 , 1 \} ^ { | V _ { 1 } | }$ and $v _ { 2 } \in \{ 0 , 1 \} ^ { | V _ { 2 } | }$ are defined as the row and column summation1 of $\mathbf { T }$ , i.e. $\begin{array} { r } { v _ { 1 i } = \sum _ { j = 1 } ^ { | V _ { 2 } | } T _ { i , j } , v _ { 2 j } = \sum _ { i = 1 } ^ { | V _ { 1 } | } T _ { i , j } } \end{array}$ , followed by setting $v _ { 1 i ^ { \dagger } }$ and $v _ { 2 j ^ { \dagger } }$ to 1, and $_ { v \odot U }$ denotes element-wise multiplication, i.e. $( v \odot U ) _ { i , j } = v _ { i } U _ { i , j }$ . For each graph, this performs message passing between nodes in the extracted subgraph plus the node $i ^ { \dagger }$ (for $\mathcal { G } _ { 1 }$ ) or $j ^ { \dagger }$ (for $\mathcal { G } _ { 2 }$ ). All the edges between these nodes are involved via the adjacency matrices $\pmb { A } _ { 1 }$ and $A _ { 2 }$ , ensuring the subgraph is an induced subgraph required by the MCS definition as mentioned in Section 2.1.
|
| 125 |
+
|
| 126 |
+
The above updates are performed for $K$ times to yield the final subgraph node embeddings denoted as U (K) ∈ R|V1|×D(K) and $U _ { 2 } ^ { ( K ) } \ \in \ \mathbb { R } ^ { | V _ { 2 } | \times D ^ { \hat { ( } K ) } }$ . We finally compute the two subgraph-level embeddings whose Euclidean distance is computed for apporximate subgraph isomorphism test:
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\begin{array} { r } { \pmb { w } _ { 1 } = \sum _ { i = 1 } ^ { | V _ { 1 } | } ( \pmb { v } _ { 1 } \odot \pmb { U } _ { 1 i , : } ^ { ( K ) } ) , } \\ { \pmb { w } _ { 2 } = \sum _ { j = 1 } ^ { | V _ { 2 } | } ( \pmb { v } _ { 2 } \odot \pmb { U } _ { 2 j , : } ^ { ( K ) } ) , } \end{array}
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
# 3.3.2 SEARCH FRONTIER EXPANSION
|
| 133 |
+
|
| 134 |
+
As the search process finds more node pairs, the mask $M$ reflects the search frontier, i.e. the candidate node pairs for the next iteration to select from. Specifically, $M _ { i , j }$ denotes whether the node pair $( i , j )$ should be a candidate pair, and the sorting for node pairs is performed on $M \odot Y$ .
|
| 135 |
+
|
| 136 |
+
Once node pair $( i ^ { \dagger } , j ^ { \dagger } )$ is selected by passing the check described in Section 3.3.1, GSE updates the search frontier by first obtaining two binary vectors indicating the neighbors of the selected nodes. Since each row of the adjacency matrix indicates the neighbors of the nodes of a particular graph, and we need to include neighbors of all the selected nodes, we first perform the following aggregation of rows of the adjacency matrix:
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
\begin{array} { r } { \pmb { p } _ { 1 } = ( \sum _ { i = 1 } ^ { | V _ { 1 } | } \pmb { v } _ { 1 } \odot \pmb { A } _ { 1 i , : } ) \odot ( 1 - \pmb { v } _ { 1 } ) , } \\ { \pmb { p } _ { 2 } = ( \sum _ { j = 1 } ^ { | V _ { 2 } | } \pmb { v } _ { 2 } \odot \pmb { A } _ { 2 j , : } ) \odot ( 1 - \pmb { v } _ { 2 } ) . } \end{array}
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
The $( 1 - v )$ term is for excluding the nodes that are already selected, which is key for ensuring that the next step does not select nodes that are already selected. This further guarantees that the final $_ { \mathbf { T } }$ matrix is an assignment matrix as required by Equation 3.
|
| 143 |
+
|
| 144 |
+
To obtain a binary indicator vector for the neighbors of selected nodes, we apply an element-wise indicator function, checking whether each entry of $\pmb { p } _ { 1 }$ and $\mathbf { \mathit { p } } _ { 2 }$ is greater than zero, yielding $\pmb q _ { 1 } ~ \in$ $\{ 0 , 1 \} ^ { | V _ { 1 } | }$ and $\pmb { q } _ { 2 } \in \{ 0 , 1 \} ^ { | V _ { 2 } | }$ . Then we can obtain the updated mask $M$ via
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
{ \cal M } = q _ { 1 } \otimes q _ { 2 } ,
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
where $\otimes$ denotes the dyadic product of two vectors. This allows the selection to choose from the pairs formed by the nodes indicated by $\pmb q _ { 1 }$ and $\pmb { q } _ { 2 }$ .
|
| 151 |
+
|
| 152 |
+
# 3.4 OVERALL TIME COMPLEXITY
|
| 153 |
+
|
| 154 |
+
Each GMN layer involves the message passing for all node-node pairs, whose time complexity is quadratic with respect to the number of nodes. The matching matrix computation computes the dot product for all node-node pairs. The GSE process selects one node pair each time, and expands the search frontier by reaching to neighbors of selected nodes. Thus, GSE in the worst case reaches out to all nodes of the smaller of the two input graphs, and each GSE step involves a quadratic mask computation. Therefore, NEURALMCS runs in ${ \cal \bar { O } } ( s * | V _ { 1 } | * | V _ { 2 } | * l o g ( | V _ { 1 } | * | V _ { 2 } | ) )$ time, where $s$ is the size of the predicted MCS, which in the worst case is $\operatorname* { m i n } ( | V _ { 1 } | , | V _ { 2 } | )$ .
|
| 155 |
+
|
| 156 |
+
# 4 EXPERIMENTS
|
| 157 |
+
|
| 158 |
+
We evaluate NEURALMCS on its accuracy and efficiency against the state-of-the-art exact MCS solver, MCSPLIT (McCreesh et al., 2017), and current machine learning approaches (Zanfir & Sminchisescu, 2018; Wang et al., $2 0 1 9 \mathrm { a }$ ; Velickovic et al., 2018; Li et al., 2019), on four realworld datasets, AIDS, LINUX, IMDB, and REDDIT from a diverse range of domains. Our baselines incldude the state-of-art MCS computation algorithm, MCSPLIT (McCreesh et al., 2017), IMAGEGMN (Zanfir & Sminchisescu, 2018), IMAGE-PCA (Wang et al., 2019a), BASIC-GAT (Velickovic et al., 2018), and BASIC-GMN (Li et al., 2019). Appendix A and B give more details.
|
| 159 |
+
|
| 160 |
+
# 4.1 EVALUATION METRICS
|
| 161 |
+
|
| 162 |
+
For accuracy, we evaluate an exact and a soft metric:
|
| 163 |
+
|
| 164 |
+
$$
|
| 165 |
+
{ \mathrm { E x a c t ~ } } \% = { \frac { \sum _ { i } ^ { N } C ( S _ { i 1 } , S _ { i 2 } ) \cdot \mathbf { 1 } _ { ( \left| S _ { i 1 } \right| = \left| { \mathrm { M C S } } _ { i } \right| ) } } { N } }
|
| 166 |
+
$$
|
| 167 |
+
|
| 168 |
+
$$
|
| 169 |
+
\mathrm { S o f t } ~ \% = \frac { \sum _ { i } ^ { N } C ( S _ { i 1 } , S _ { i 2 } ) \cdot \frac { | S _ { i 1 } | + | S _ { i 2 } | } { 2 | \mathrm { M C S } _ { i } | } } { N }
|
| 170 |
+
$$
|
| 171 |
+
|
| 172 |
+
where $N$ is the number of graph pairs in the testing set; $S _ { i 1 }$ and $S _ { i 2 }$ are the subgraphs extracted from the first and second graph, respectively; $C ( \cdot , \cdot )$ is a function that returns 1 if the two input graphs are isomorphic to each other and 0 otherwise; 1 is the indicator function that returns 1 when the condition is true and 0 otherwise; $| \mathrm { M C S } _ { i } |$ is the true MCS size. For efficiency, we evaluate the average running time across graph pairs.
|
| 173 |
+
|
| 174 |
+
# 4.2 RESULTS
|
| 175 |
+
|
| 176 |
+
We see that in terms of accuracy, NEURALMCS improves current methods of subgraph extraction substantially, especially on the AIDS and LINUX datasets, where NEURALMCS performs close to the ground truth solver. For IMDB and REDDIT, the performance is also drastically higher than the baselines. Most interestingly, we find that, when the model does not find the exact ground-truth solution, it still extracts high-quality subgraphs with sizes on average above $90 \%$ of the true MCS size, where all graphs are isomorphic (see Appendix E). The poor performance of computer vision baselines IMAGE-GMN and IMAGE-PCA suggests that the assumptions for image matching do not work for MCS based graph matching very well. Appendix F provides a thorough analysis of the performance boost from each component of the proposed model compared with various alternative designs. Compared against the 2 basic models, we see that both the representation learning scheme and the extraction strategy greatly enhance the performance of the model. The exact accuracy results can be seen in Table 1.
|
| 177 |
+
|
| 178 |
+
Table 1: Exact $\%$ and Soft $\%$ accuracy metrics across four real graph datasets. All methods have been adapted for the MCS detection task. MCSPLIT is the ground-truth MCS solver labeled with \*.
|
| 179 |
+
|
| 180 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">AIDS</td><td colspan="2">LINUX</td><td colspan="2">IMDB</td><td colspan="2">REDDIT</td></tr><tr><td>Exact %</td><td>Soft %</td><td>Exact %</td><td>Soft %</td><td>Exact %</td><td>Soft %</td><td>Exact %</td><td>Soft %</td></tr><tr><td>MCSPLIT *</td><td>100.000</td><td>100.000</td><td>100.000</td><td>100.000</td><td>100.000</td><td>100.000</td><td>100.000</td><td>100.000</td></tr><tr><td>IMAGE-GMN</td><td>0.033</td><td>0.033</td><td>19.790</td><td>19.790</td><td>N/A</td><td>N/A</td><td>20.261</td><td>20.261</td></tr><tr><td>IMAGE-PCA</td><td>0.229</td><td>0.229</td><td>22.693</td><td>22.693</td><td>38.582</td><td>38.582</td><td>33.987</td><td>33.987</td></tr><tr><td>BASIC-GAT</td><td>11.013</td><td>22.199</td><td>41.135</td><td>53.070</td><td>47.462</td><td>51.680</td><td>37.908</td><td>50.196</td></tr><tr><td>BASIC-GMN</td><td>12.488</td><td>19.256</td><td>48.082</td><td>52.590</td><td>55.273</td><td>62.738</td><td>43.137</td><td>51.782</td></tr><tr><td>NEURALMCS</td><td>98.525</td><td>99.626</td><td>99.674</td><td>99.955</td><td>97.235</td><td>99.613</td><td>96.078</td><td>99.562</td></tr></table>
|
| 181 |
+
|
| 182 |
+
In terms of efficiency, NEURALMCS is $3 1 . 7 8 \times$ faster than the ground-truth solver averaged across the four datasets, while being slightly slower than the baselines.
|
| 183 |
+
|
| 184 |
+
However, as shown in Table 1, the baseline methods fail to consider the connectivity and subgraph isomorphism constraints during maximum common subgraph extraction resulting in worse accuracy. The exact performance results can be seen in Figure 3.
|
| 185 |
+
|
| 186 |
+

|
| 187 |
+
Figure 3: Running time comparison.
|
| 188 |
+
|
| 189 |
+
# 4.3 CASE STUDY
|
| 190 |
+
|
| 191 |
+
The iterative expansion ensures that extracted subgraphs satisfy the connectivity constraint. The representation learning component ensures that we select the correct node at each step. As seen in Figure 4, for the AIDS dataset, the learnable matching matrix helps NEURALMCS select good nodes, and, for the IMDB dataset, the iterative procedure indeed helps our model stop once adding additional nodes would break the isomorphism constraint. More importantly, our model is also able to solve both the subgraph isomorphism and graph matching problems. Additional case studies and analysis can be found in Appendix J.
|
| 192 |
+
|
| 193 |
+

|
| 194 |
+
Figure 4: Case study: Three MCS examples from each dataset. AIDS has node labels as node text. For clarity, we draw only two node-node correspondences for each example, represented as dashed lines between nodes in the two graphs.
|
| 195 |
+
|
| 196 |
+
# 5 RELATED WORK
|
| 197 |
+
|
| 198 |
+
Graph isomorphism is a classic problem that goes back to at least the early work by Sussenguth (1965) and Corneil & Gotlieb (1970). Recently Babai (2016) shows that graph isomorphism can be solved in quasipolynomial time. However, graph isomorphism is only concerned with whether two graphs are exactly the same or not, which may be too rigid in real-world applications. For example, what if two graphs are not isomorphic? In such scenario, a more useful output can be the similarity (or distance) between them, defined by metrics such as Graph Edit Distance (GED) (Bunke, 1983), Maximum Common Subgraph (MCS) (Bunke & Shearer, 1998; Bunke, 1997).
|
| 199 |
+
|
| 200 |
+
In this work, we focus on the more challenging task of graph matching, specifically the matching of two graphs defined by the MCS metric. The MCS detection problem is NP-hard, and remain computationally challenging. Existing works use constraint programming (Vismara & Valery, 2008; McCreesh et al., 2016), branch-and-bound (McCreesh et al., 2017; Liu et al., 2019), mathematical programming (Bahiense et al., 2012), reduction to maximum clique detection (Levi, 1973; McCreesh et al., 2016), etc. MCS has many definitions tailored to different graph types and application specifics (McCreesh et al., 2017), and is a domain-agnostic metric to compare graphs in a detailed way, so it has occurred widely in applications such as graph database systems (Yan et al., 2005), cloud computing platforms (Cao et al., 2011), etc.
|
| 201 |
+
|
| 202 |
+
The term “graph matching” is very general and has been adopted by many recent works: (1) Graph similarity computation (Bai et al., 2019a; Li et al., 2019) aims to output a similarity score for an input graph pair, which can be defined by the MCS metric but less challenging due to the score output. (2) Image matching is a classic task in computer vision with traditional approaches based on quadratic assignment problem solving (Zhou & De la Torre, 2012; Yu et al., 2018) and more recent methods using neural networks (IMAGE-GMN (Zanfir & Sminchisescu, 2018) and IMAGEPCA (Wang et al., 2019a)). (3) The two-graph alignment (Heimann et al., 2018; Xu et al., 2019) problem deals with the alignment of two general structured graph objects. However, the alignment is typically not defined by domain-agnostic metrics such as GED or MCS. There is currently no such methods learning from ground-truth graph pairs to the best of our knowledge.
|
| 203 |
+
|
| 204 |
+
# 6 CONCLUSION
|
| 205 |
+
|
| 206 |
+
In this paper, we propose a neural network approach to solve the NP-hard problem, Maximum Common Subgraph (MCS) detection, in an approximate and accurate way. For an input graph pair, our model NEURALMCS computes the likelihood of each pair of nodes being included in the MCS and matched, which is used by the proposed GUIDED SUBGRAPH EXTRACTION (GSE) algorithm to iteratively include more and more nodes in the predicted MCS. The whole model runs in polynomial time complexity, and experimental results on four real graph datasets demonstrate that NEURALMCS is $3 1 . 7 8 \times$ faster than the exact solver whole achieving very good accuracy compared to a series of strong approximate graph matching baseline approaches.
|
| 207 |
+
|
| 208 |
+
# REFERENCES
|
| 209 |
+
|
| 210 |
+
Laszl ´ o Babai. Graph isomorphism in quasipolynomial time. In ´ STOC, pp. 684–697. ACM, 2016.
|
| 211 |
+
|
| 212 |
+
Laura Bahiense, Gordana Manic, Breno Piva, and Cid C De Souza. The maximum common edge ´ subgraph problem: A polyhedral investigation. Discrete Applied Mathematics, 160(18):2523– 2541, 2012.
|
| 213 |
+
|
| 214 |
+
Yunsheng Bai, Hao Ding, Yizhou Sun, and Wei Wang. Convolutional set matching for graph similarity. NeurIPS Workshop on Relational Representation Learning Workshop, 2018.
|
| 215 |
+
|
| 216 |
+
Yunsheng Bai, Hao Ding, Song Bian, Ting Chen, Yizhou Sun, and Wei Wang. Simgnn: A neural network approach to fast graph similarity computation. WSDM, 2019a.
|
| 217 |
+
|
| 218 |
+
Yunsheng Bai, Hao Ding, Yang Qiao, Agustin Marinovic, Ken Gu, Ting Chen, Yizhou Sun, and Wei Wang. Unsupervised inductive whole-graph embedding by preserving graph proximity. IJCAI, 2019b.
|
| 219 |
+
|
| 220 |
+
Albert-Laszl ´ o Barab ´ asi and R ´ eka Albert. Emergence of scaling in random networks. ´ science, 286 (5439):509–512, 1999.
|
| 221 |
+
|
| 222 |
+
Horst Bunke. What is the distance between graphs. Bulletin of the EATCS, 20:35–39, 1983.
|
| 223 |
+
|
| 224 |
+
Horst Bunke. On a relation between graph edit distance and maximum common subgraph. Pattern Recognition Letters, 18(8):689–694, 1997.
|
| 225 |
+
|
| 226 |
+
Horst Bunke and Kim Shearer. A graph distance metric based on the maximal common subgraph. Pattern recognition letters, 19(3-4):255–259, 1998.
|
| 227 |
+
|
| 228 |
+
Ning Cao, Zhenyu Yang, Cong Wang, Kui Ren, and Wenjing Lou. Privacy-preserving query over encrypted graph-structured data in cloud computing. In 2011 31st International Conference on Distributed Computing Systems, pp. 393–402. IEEE, 2011.
|
| 229 |
+
|
| 230 |
+
Derek Gordon Corneil and Calvin C Gotlieb. An efficient algorithm for graph isomorphism. Journal of the ACM (JACM), 17(1):51–64, 1970.
|
| 231 |
+
|
| 232 |
+
Surnjani Djoko, Diane J. Cook, and Lawrence B. Holder. An empirical study of domain knowledge and its benefits to substructure discovery. TKDE, 9(4):575–586, 1997.
|
| 233 |
+
|
| 234 |
+
Hans-Christian Ehrlich and Matthias Rarey. Maximum common subgraph isomorphism algorithms and their applications in molecular science: a review. Wiley Interdisciplinary Reviews: Computational Molecular Science, 1(1):68–79, 2011.
|
| 235 |
+
|
| 236 |
+
Matthias Fey and Jan E. Lenssen. Fast graph representation learning with PyTorch Geometric. In ICLR Workshop on Representation Learning on Graphs and Manifolds, 2019.
|
| 237 |
+
|
| 238 |
+
Abner Guzman-Rivera, Dhruv Batra, and Pushmeet Kohli. Multiple choice learning: Learning to produce multiple structured outputs. In NeurIPS, pp. 1799–1807, 2012.
|
| 239 |
+
|
| 240 |
+
Mark Heimann, Haoming Shen, Tara Safavi, and Danai Koutra. Regal: Representation learningbased graph alignment. In CIKM, pp. 117–126. ACM, 2018.
|
| 241 |
+
|
| 242 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. ICLR, 2015.
|
| 243 |
+
|
| 244 |
+
Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. ICLR, 2016.
|
| 245 |
+
|
| 246 |
+
Philip A Knight. The sinkhorn–knopp algorithm: convergence and applications. SIAM Journal on Matrix Analysis and Applications, 30(1):261–275, 2008.
|
| 247 |
+
|
| 248 |
+
Harold W Kuhn. The hungarian method for the assignment problem. Naval research logistics quarterly, 2(1-2):83–97, 1955.
|
| 249 |
+
|
| 250 |
+
Der-Tsai Lee and Bruce J Schachter. Two algorithms for constructing a delaunay triangulation. International Journal of Computer & Information Sciences, 9(3):219–242, 1980.
|
| 251 |
+
|
| 252 |
+
Giorgio Levi. A note on the derivation of maximal common subgraphs of two directed or undirected graphs. Calcolo, 9(4):341, 1973.
|
| 253 |
+
|
| 254 |
+
Wenchao Li, Zach Wasson, and Sanjit A Seshia. Reverse engineering circuits using behavioral pattern mining. In 2012 IEEE international symposium on hardware-oriented security and trust, pp. 83–88. IEEE, 2012.
|
| 255 |
+
|
| 256 |
+
Yujia Li, Chenjie Gu, Thomas Dullien, Oriol Vinyals, and Pushmeet Kohli. Graph matching networks for learning the similarity of graph structured objects. ICML, 2019.
|
| 257 |
+
|
| 258 |
+
Zhuwen Li, Qifeng Chen, and Vladlen Koltun. Combinatorial optimization with graph convolutional networks and guided tree search. In NeurIPS, pp. 539–548, 2018.
|
| 259 |
+
|
| 260 |
+
Yongjiang Liang and Peixiang Zhao. Similarity search in graph databases: A multi-layered indexing approach. In ICDE, pp. 783–794. IEEE, 2017.
|
| 261 |
+
|
| 262 |
+
Yan-li Liu, Chu-min Li, Hua Jiang, and Kun He. A learning based branch and bound for maximum common subgraph problems. IJCAI, 2019.
|
| 263 |
+
|
| 264 |
+
Ciaran McCreesh, Samba Ndojh Ndiaye, Patrick Prosser, and Christine Solnon. Clique and constraint models for maximum common (connected) subgraph problems. In International Conference on Principles and Practice of Constraint Programming, pp. 350–368. Springer, 2016.
|
| 265 |
+
|
| 266 |
+
Ciaran McCreesh, Patrick Prosser, and James Trimble. A partitioning algorithm for maximum common subgraph problems. 2017.
|
| 267 |
+
|
| 268 |
+
Younghee Park, Douglas S Reeves, and Mark Stamp. Deriving common malware behavior through graph clustering. Computers & Security, 39:419–430, 2013.
|
| 269 |
+
|
| 270 |
+
Nino Shervashidze, Pascal Schweitzer, Erik Jan van Leeuwen, Kurt Mehlhorn, and Karsten M Borgwardt. Weisfeiler-lehman graph kernels. JMLR, 12(Sep):2539–2561, 2011.
|
| 271 |
+
|
| 272 |
+
Christine Solnon, Guillaume Damiand, Colin De La Higuera, and Jean-Christophe Janodet. On the complexity of submap isomorphism and maximum common submap problems. Pattern Recognition, 48(2):302–316, 2015.
|
| 273 |
+
|
| 274 |
+
Edward H Sussenguth. A graph-theoretic algorithm for matching chemical structures. Journal of Chemical Documentation, 5(1):36–43, 1965.
|
| 275 |
+
|
| 276 |
+
Petar Velickovic, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. ICLR, 2018.
|
| 277 |
+
|
| 278 |
+
Philippe Vismara and Benoˆıt Valery. Finding maximum common connected subgraphs using clique detection or constraint satisfaction algorithms. In International Conference on Modelling, Computation and Optimization in Information Systems and Management Sciences, pp. 358–368. Springer, 2008.
|
| 279 |
+
|
| 280 |
+
Runzhong Wang, Junchi Yan, and Xiaokang Yang. Learning combinatorial embedding networks for deep graph matching. ICCV, 2019a.
|
| 281 |
+
|
| 282 |
+
Xiaoli Wang, Xiaofeng Ding, Anthony KH Tung, Shanshan Ying, and Hai Jin. An efficient graph indexing method. In ICDE, pp. 210–221. IEEE, 2012.
|
| 283 |
+
|
| 284 |
+
Yue Wang and Justin M Solomon. Deep closest point: Learning representations for point cloud registration. ICCV, 2019.
|
| 285 |
+
|
| 286 |
+
Yue Wang, Yongbin Sun, Ziwei Liu, Sanjay E Sarma, Michael M Bronstein, and Justin M Solomon. Dynamic graph cnn for learning on point clouds. ACM Transactions on Graphics (TOG), 38(5): 146, 2019b.
|
| 287 |
+
|
| 288 |
+
Hongteng Xu, Dixin Luo, Hongyuan Zha, and Lawrence Carin. Gromov-wasserstein learning for graph matching and node embedding. ICML, 2019.
|
| 289 |
+
|
| 290 |
+
Xifeng Yan, Philip S Yu, and Jiawei Han. Substructure similarity search in graph databases. In SIGMOD, pp. 766–777. ACM, 2005.
|
| 291 |
+
|
| 292 |
+
Pinar Yanardag and SVN Vishwanathan. Deep graph kernels. In SIGKDD, pp. 1365–1374. ACM, 2015.
|
| 293 |
+
|
| 294 |
+
Tianshu Yu, Junchi Yan, Yilin Wang, Wei Liu, et al. Generalizing graph matching beyond quadratic assignment model. In NeurIPS, pp. 853–863, 2018.
|
| 295 |
+
|
| 296 |
+
Andrei Zanfir and Cristian Sminchisescu. Deep learning of graph matching. In CVPR, pp. 2684– 2693, 2018.
|
| 297 |
+
|
| 298 |
+
Zhiping Zeng, Anthony KH Tung, Jianyong Wang, Jianhua Feng, and Lizhu Zhou. Comparing stars: On approximating graph edit distance. PVLDB, 2(1):25–36, 2009.
|
| 299 |
+
|
| 300 |
+
Xinyi Zhang and Lihui Chen. Capsule graph neural network. ICLR, 2019.
|
| 301 |
+
|
| 302 |
+
Xiang Zhao, Chuan Xiao, Xuemin Lin, Qing Liu, and Wenjie Zhang. A partition-based approach to structure similarity search. PVLDB, 7(3):169–180, 2013.
|
| 303 |
+
|
| 304 |
+
Weiguo Zheng, Lei Zou, Xiang Lian, Dong Wang, and Dongyan Zhao. Graph similarity search with edit distance constraint in large graph databases. In CIKM, pp. 1595–1600. ACM, 2013.
|
| 305 |
+
|
| 306 |
+
Feng Zhou and Fernando De la Torre. Factorized graph matching. In CVPR, pp. 127–134. IEEE, 2012.
|
| 307 |
+
|
| 308 |
+
# A DATASET DESCRIPTION
|
| 309 |
+
|
| 310 |
+
We run experiments on 4 diverse different real world datasets coming from the chemical, programming language, and social network domains. For each dataset, we split the pairs into training, validation, and testing sets in the ratio of 6:2:2 such that none of the training, validation, or testing sets share any common graphs. For each dataset, we either one-hot encode node labels, if the dataset has node labels, or provide the same initial encoding, if the dataset does not have node labels. The code and the datasets have been published to this anonymous link: https://github.com/openpublicforpapers/NeuralMCS.
|
| 311 |
+
|
| 312 |
+
# A.1 AIDS
|
| 313 |
+
|
| 314 |
+
AIDS is a dataset of antivirus screen chemical compounds, coming from the Developmental Therapeutics Program at $\mathrm { N C I } / \mathrm { N I H } ^ { 2 }$ . The AIDS dataset has been used by various works in graph matching (Zeng et al., 2009; Wang et al., 2012; Zheng et al., 2013; Zhao et al., 2013; Liang & Zhao, 2017; Bai et al., 2019a). These graphs consist of labeled nodes and unlabeled edges, where nodes represent chemical elements (ex. Carbon, Nitrogen, Chlorine, and etc.) and edges represent bonds between atoms. There are a total of 700 graphs, from which we sample 29610 graph pairs. The average graph size is 8.664 with the largest graph having 10 nodes.
|
| 315 |
+
|
| 316 |
+
# A.2 LINUX
|
| 317 |
+
|
| 318 |
+
LINUX is a dataset of program dependence graphs (PDG) describing individual functions generated from the Linux kernel (Wang et al., 2012). These graphs consist of unlabeled nodes and unlabeled edges, where nodes represent statements and edges represent control flow between statements. There are a total of 1000 graphs, from which we sample 60114 graph pairs. The average graph size is 7.591 and the largest graphs have 10 nodes.
|
| 319 |
+
|
| 320 |
+
# A.3 IMDB
|
| 321 |
+
|
| 322 |
+
IMDB is a dataset of ego-networks of movie actors/actresses from the IMDB website (Yanardag & Vishwanathan, 2015). This dataset has been used by various works in graph classification (Zhang & Chen, 2019; Bai et al., 2019b). These graphs consist of unlabeled nodes and unlabeled edges, where nodes represent actors/actresses and edges represent whether they have had collaborations. There are a total of 1500 graphs, from which we sample 135702 graph pairs. The average graph size is 12.981 and the largest graphs have 89 nodes.
|
| 323 |
+
|
| 324 |
+
# A.4 REDDIT
|
| 325 |
+
|
| 326 |
+
REDDIT is a dataset of online dicussion networks from the Reddit online discussion website (Yanardag & Vishwanathan, 2015). These graphs consist of unlabeled nodes and unlabeled edges, where nodes represent users and edges represent whether users have responded to eachother’s comments. There are a total of 7112 graphs, from which we sample 3556 pairs. The average graph size is 11.8 nodes and the largest graph has 16 nodes.
|
| 327 |
+
|
| 328 |
+
# B BASELINES
|
| 329 |
+
|
| 330 |
+
We evaluate NEURALMCS against the state-of-the-art solver, MCSPLIT, which uses heuristics and the branch and bound algorithm to achieve efficient computation for MCS. While the fastest among exact solvers, this method still has, in the worst case, exponential time complexity (McCreesh et al., 2017). For this reason, in practice, its running time is much slower than the other approximate baselines. However, we still use MCSPLIT to generate ground-truth MCS results and it only takes a few days on a standard CPU server with multi-threading to handle all the ground-truth result generation.
|
| 331 |
+
|
| 332 |
+
The representation learning baselines are adapted from recent graph matching techniques, specifically IMAGE-GMN (Zanfir & Sminchisescu, 2018) and IMAGE-PCA (Permutation Loss and Crossgraph Affinity) (Wang et al., 2019a). Both these methods utilize similarity scores and normalization to perform graph matching. As IMAGE-GMN uses CNN layers to form their node embeddings from images (with techniques such as Delaunay triangulation (Lee & Schachter, 1980)), we adapt the model to our task by replacing these layers with 3 GAT layers, consistent with NEURALMCS. IMAGE-PCA uses a node embedding mechanism similar to GMN, not requiring further adaptation. As the loss functions for both these methods were designed for image graphs, we alter their loss functions to binary cross entropy loss (the same as NEURALMCS).
|
| 333 |
+
|
| 334 |
+
We conduct the extraction process by first removing all nodes where its corresponding summation of similarity scores across rows or columns falls below a tuneable threshold (the values of which can be found in Appendix C) in the matching matrix, then selecting an equal number of nodes in both graphs. The latter is done by maximizing the similarity scores of uniquely selected node pairs through applying the Hungarian Algorithm (Kuhn, 1955) on the remaining nodes of the matching matrix. This is because the extracted subgraphs, after just thresholding, may be of different sizes due to thresholding. The extra procedure ensures that we extract subgraphs of equal sizes and in addition, the Hungarian Algorithm yields one-to-one node-node correspondences for the extracted subgraphs. However, these methods do not necessarily result in isomorphic subgraphs.
|
| 335 |
+
|
| 336 |
+
We also compare against two basic models, BASIC-GAT (Velickovic et al., 2018) and BASICGMN (Li et al., 2019), which use 3 GAT and GMN layers respectively to encode the initial node features, followed by similarity score computation. These baselines uses a simpler normalization scheme by appling element-wise sigmoid function $( y = 1 / ( 1 + e ^ { - x } ) )$ to the matching matrix, and directly feed the similarity matrix to the same loss function as defined by NEURALMCS. BASICGAT and BASIC-GMN use the same extraction method as the graph matching baselines.
|
| 337 |
+
|
| 338 |
+
With exception to MCSPLIT, all these baselines run in polynomial time complexity with respect to the number of nodes in the two input graphs.
|
| 339 |
+
|
| 340 |
+
# C PARAMETER SETTINGS
|
| 341 |
+
|
| 342 |
+
For our model, we utilize 3 layers of GMN with 64 dimensions each for the initial embedding. We use ${ \mathrm { R e L U } } ( x ) = { \mathrm { m a x } } ( 0 , x )$ as our activation function. We fix the number of outputs for multiple choice learning to 10 on the AIDS, LINUX, and REDDIT datasets, and to 3 on the IMDB dataset. To evaluate the efficacy of multiple choice learning, we also use the same technique and settings for BASIC-GAT and BASIC-GMN. We set $\epsilon$ to $1 0 ^ { - 4 }$ , to account for numerical errors during floating point arithmetic. For the extraction procedure in our baselines, we set the threshold to 0.5 on the AIDS, LINUX, and REDDIT datasets, and to 0.7 on the IMDB dataset. We ran all experiments with Intel i7-6800K CPU and one Nvidia Titan GPU. For training, we set the batch size to 64, the learning rate to 0.001, the number of iterations to 5000, and use the Adam optimizer (Kingma & Ba,
|
| 343 |
+
|
| 344 |
+
2015). All experiments were implemented with the PyTorch and PyTorch Geometric libraries (Fey & Lenssen, 2019).
|
| 345 |
+
|
| 346 |
+
For more on dataset setup and training/validation/testing splits, please refer to Appendix A. For more on baseline setups, including their extraction procedure, please refer to Appendix B. For more on the extraction procedure of NEURALMCS, please refer to the main text.
|
| 347 |
+
|
| 348 |
+
# D DETAILS ON EVALUATION PROCEDURE
|
| 349 |
+
|
| 350 |
+
As mentioned in Section 4.1, for a graph pair $i$ in the test set, we first check whether the predicted MCS satisfies the MCS constraints or not. In this section we give more details.
|
| 351 |
+
|
| 352 |
+
Denote the extracted subgraphs from the $i$ -th graph pair as $S _ { i 1 }$ and $S _ { i 2 }$ , respectively. The MCS constraint satisfaction check includes the following steps: First, we check if $S _ { i 1 }$ and $S _ { i 2 }$ are both connected (i.e. no isolated components); Second, we check if $S _ { i 1 }$ and $S _ { i 2 }$ are isomorphic to each other. Since exact isomorphism checking may take a long time in practice, we set a timeout for exact isomorphism checking, and when timeout happens, we switch to an approximate checker3. The timeout as well as the whole procedure is applied across all the methods to ensure fair comparison.
|
| 353 |
+
|
| 354 |
+
When we generate $S _ { i 1 }$ and $S _ { i 2 }$ for NEURALMCS in the first place, we would take the induced subgraph, satisfying the inductivity constraint mentioned in Section 2.1. Specifically, we use the output assignment matrix $\mathbf { T }$ and check if a node has a 1 in its corresponding row (for $\mathcal { G } _ { 1 }$ ) or column (for $\mathcal { G } _ { 2 }$ ) in $_ { \mathbf { T } }$ to decide whether it is selected in the predicted MCS.
|
| 355 |
+
|
| 356 |
+
Notice that by checking the size of the extracted subgraphs against the ground-truth MCS size (Equation 7 and 8), we allow equal-sized MCS results to be evaluated correctly, since for many graph pairs there are more than one correct MCS result.
|
| 357 |
+
|
| 358 |
+
Here we give more insights behind the two metrics. The intuition behind the hard metric is that we only check whether the the extracted subgraphs are strictly equal to the size of the true MCS or not. However, this is too strict and does not reveal too much information about the model performance when the extracted subgraphs are not the same size as the true MCS. An easy measure would be to directly report on the predicted MCS size, but this does not take into account non-isomorphic subgraphs. The soft metric accounts for both these issues by checking the fraction of the predicted MCS size over the true MCS size only for isomorphic subgraphs. Notice that if the predicted MCS is even larger than the true MCS, the $C ( \cdot , \cdot )$ function will return 0 because it is not possible for the subgrpahs to be both larger than the true MCS (generated by the exact solver MCSPLIT) and isomorphic.
|
| 359 |
+
|
| 360 |
+
# E RESULT ANALYSIS
|
| 361 |
+
|
| 362 |
+
In addition to Exact $\%$ and Soft $\%$ metrics, we may also evaluate our model on the percentage of extracted subgraphs which are isomorphic $( \mathrm { I s o } \%$ ).
|
| 363 |
+
|
| 364 |
+
Following the same notation used to define Exact $\%$ and Soft $\%$ , we define Iso $\%$ as follows:
|
| 365 |
+
|
| 366 |
+
$$
|
| 367 |
+
\mathrm { I s o ~ \% } = { \frac { \sum _ { i } ^ { N } C ( S _ { i 1 } , S _ { i 2 } ) } { N } }
|
| 368 |
+
$$
|
| 369 |
+
|
| 370 |
+
As seen in Table 2, NEURALMCS explicitly encodes the isomorphism constraint into the stopping condition. This is one reason why NEURALMCS is able to achieve high accuracy, especially in Soft $\%$ in Table 1. Notice, our method does not guarantee exclusion of false-positives (predicting isomorphic when not isomorphic), as it is possible for 2 differently structured graphs, with different node embeddings, to have the same subgraph embedding once all the node embeddings are aggregated. Because these situations are relatively rare (both graphs would need to have the same subgraph embedding to floating point precision), NEURALMCS is extract isomorphic subgraphs $100 \%$ of the time on the provided datasets. Our model does guarantee exclusion of false-negatives, as, if two graphs are isomorphic, our embedding propagation methodology must produce the same subgraph embeddings.
|
| 371 |
+
|
| 372 |
+
Table 2: Iso $\%$ accuracy metric across four real graph datasets. All methods have been adapted for the MCS detection task. Dataset descriptions and details can be found in Appendix A.
|
| 373 |
+
|
| 374 |
+
<table><tr><td>Method</td><td>AIDS</td><td>LINUX</td><td>IMDB</td><td>REDDIT</td></tr><tr><td>McSPLIT *</td><td>100.000</td><td>100.000</td><td>100.000</td><td>100.000</td></tr><tr><td>IMAGE-GMN</td><td>0.033</td><td>19.790</td><td>N/A</td><td>20.261</td></tr><tr><td>IMAGE-PCA</td><td>0.229</td><td>22.693</td><td>38.582</td><td>33.987</td></tr><tr><td>BASIC-GAT</td><td>80.039</td><td>82.269</td><td>99.365</td><td>73.856</td></tr><tr><td>BASIC-GMN</td><td>91.183</td><td>97.230</td><td>96.924</td><td>95.425</td></tr><tr><td>NEURALMCS</td><td>100.000</td><td>100.000</td><td>100.000</td><td>100.000</td></tr></table>
|
| 375 |
+
|
| 376 |
+
# F ABLATION STUDY
|
| 377 |
+
|
| 378 |
+
We first form a matching matrix then extract a subgraph guided by this matrix. To form the matching matrix, we utilize representation learning to make node embeddings; compute $\boldsymbol { X }$ using similarity scores from node embeddings (Section 3.1); compute $\mathbf { Y }$ through normalization of $\boldsymbol { X }$ (Section 3.1). To perform extraction, we utilize the GUIDED SUBGRAPH EXTRACTION method proposed (Section 3.3).
|
| 379 |
+
|
| 380 |
+
We perform more in-depth ablation studies to show the importance of each component whose results are shown in Table 3.
|
| 381 |
+
|
| 382 |
+
Table 3: Abaltion study results on AIDS. The numbers are the “Exact $\%$ ” defined in Section 4.1.
|
| 383 |
+
|
| 384 |
+
<table><tr><td rowspan="2">Matching Matrix Computation</td><td colspan="3">Subgraph Extraction Strategy</td></tr><tr><td>GSE</td><td>Threshold</td><td>Threshold +LSAP</td></tr><tr><td>GMN+ Our Normalization</td><td>98.525 (NEURALMCS)</td><td>25.795</td><td>17.076</td></tr><tr><td>GAT+ Our Normalization</td><td>98.525</td><td>26.057</td><td>17.339</td></tr><tr><td>DGCNN+ Our Normalization</td><td>96.657</td><td>22.091</td><td>13.045</td></tr><tr><td>GMN + Sigmoid</td><td>97.083</td><td>10.521</td><td>12.488 (BASIC-GMN)</td></tr><tr><td>GMN + Sinkhorn Softmax</td><td>60.439</td><td>12.488</td><td>0.197</td></tr></table>
|
| 385 |
+
|
| 386 |
+
# F.1 ON THE IMPORTANCE OF GMN
|
| 387 |
+
|
| 388 |
+
GAT $^ +$ Our Normalization and DGCNN $^ +$ Our Normalization use GAT (Velickovic et al., 2018) and DGCNN (Wang et al., 2019b) used in Wang & Solomon (2019) respectively to perform node embeddings. Interestingly, when fed into our proposed GSE step, their exactly solved percentages are quite close to GMN, which is close to perfectly detecting the MCSs for all the testing pairs. Even with simpler thresholding based subgraph extraction strategies (see Section F.3 below for details), their performances are still similar to (or even better than) GMN. This seems to suggest that the choice of node embedding methods does not appear to influence the performance much when our proposed GSE strategy is used.
|
| 389 |
+
|
| 390 |
+
It should be noted that earlier we used a simpler GSE strategy which always selected the node pair with the largest matching score in $\mathbf { Y }$ in during search frontier expansion. This model did not check all the possible node pairs by sorting the node matching scores and iterate through these pairs for consideration of being selected in the MCS prediction. When tested on this simpler GSE strategy, GMN indeed performed approximately $4 . 0 \%$ better than GAT and DGCNN.
|
| 391 |
+
|
| 392 |
+
In summary, the choice of node embedding representation methods does not influence the performance too much, and very good accuracy can be obtained when the proposed normalization and GSE methods are both used.
|
| 393 |
+
|
| 394 |
+
# F.2 ON THE IMPORTANCE OF NORMALIZATION
|
| 395 |
+
|
| 396 |
+
$\mathrm { G M N } +$ Sigmoid (BASIC-GMN) uses sigmoid normalization on each individual element of the $\boldsymbol { X }$ matrix, instead of our normalization scheme (Section 3.1; Equations 1 and 2) to obtain $\mathbf { Y }$ . As sigmoid treats each node-node pair in $\mathbf { Y }$ as independent (an incorrect assumption), we see that its performance worse than our proposed normalization scheme, especially when the threshold or threshold $+ \ \mathrm { L S A P }$ strategies are used. However, similar to our findings in Section F.1, when our proposed GSE strategy is used, $\mathrm { G M N } + \mathrm { S }$ igmoid performs only slightly worse than NEURALMCS, which further confirming the usefulness of the proposed normalization scheme and the GSE method.
|
| 397 |
+
|
| 398 |
+
$\mathrm { G M N } +$ Sinkhorn Softmax uses successive row- and column-wise softmax normalization (softmax to ensure that the matching matrix $\mathbf { Y }$ is in the range (0,1)) on the $\boldsymbol { X }$ matrix (similar to the Sinkhorn algorithm (Knight, 2008) used in IMAGE-PCA for image matching4) instead of our normalization scheme. As softmax does not explicitly allow nodes to go unmatched (Section 3.1), as dictated by the MCS definition, we see that our normalization procedure performs much better.
|
| 399 |
+
|
| 400 |
+
As mention in Section 4.2, the assumptions made for image matching do not naturally transfer to and work well for the MCS detection task. In fact, with the simple element-wise sigmoid normalization on $\boldsymbol { X }$ , the performance is much better than the Sinkhorn normalization technique. The iterative rowand column-wise normalization on $\boldsymbol { X }$ is not a good choice for the task of MCS where nodes can remain unmatched with low scores in the final $\mathbf { Y }$ .
|
| 401 |
+
|
| 402 |
+
# F.3 ON THE IMPORTANCE OF GSE
|
| 403 |
+
|
| 404 |
+
For each Matching Matrix Computation method, we run 3 different subgraph extraction strategies: GSE, thresholding, and thresholding $+ \mathrm { L S A P }$ (Linear Sum Assignment Problem which we use the Hungarian algorithm (Kuhn, 1955) to solve, described in Appendix B).
|
| 405 |
+
|
| 406 |
+
For thresholding, for each of the two graphs, we select the nodes whose probabilities of being included in the MCS are greater than a tunable threshold, yielding two subgraphs. We calculate such probabilities by taking the summation of rows and columns of the matching matrix $\mathbf { Y }$ . More details can be found in Appendix B.
|
| 407 |
+
|
| 408 |
+
For thresholding $+ \mathrm { L S A P } ,$ , we ensure that the detected subgraphs are of equal size and have a one-toone node-node mapping (to validate their isomorphism) by running the Hungarian algorithm on the remaining rows and columns of $\mathbf { Y }$ after thresholding. We cannot run LSAP on the original $\mathbf { Y }$ since LSAP would select all nodes in the smaller of the two graphs.
|
| 409 |
+
|
| 410 |
+
Neither of these simpler subgraph extraction methods enforces the subgraph isomorphism constraint, which explains their worse performance compared with GSE.
|
| 411 |
+
|
| 412 |
+
We find that our major novelties (GSE and normalization technique) are the most important components in producing good performance.
|
| 413 |
+
|
| 414 |
+
# G SCALABILITY STUDY
|
| 415 |
+
|
| 416 |
+
is trained on graph pairs with ground-truth MCS results, which can be either obtained by MCSPLIT or the following way which provides cheap supervision without using any exact MCS solver. The high level idea of generating ground-truth MCS training pairs without exact MCS solver is to create such pairs with a smart design instead of computing MCS for any given pair of graphs. One possible way to create such pair is to extract an induced subgraph from a given graph, and the ground-truth MCS of the two graphs is naturally the extracted subgraph. More concretely, our experimental setup is as follows: We generate training graph pairs by first using the BarabsiAlbert model (Barabasi & ´ Albert, 1999) to generate 1000 graphs of size 32. For each generated graph, We randomly extract one connected 16-node subgraph from it. Each generated graph and extracted subgraph form one pair, giving a total of 1000 training graph pairs (our training set). Notice, this generation procedure allows us to know the MCSs during generation.
|
| 417 |
+
|
| 418 |
+
We follow a similar procedure for testing set, where we use the Barabsi-Albert model to generate 100 graphs of size 16, 32, 64, and 128 (denoted as “Test Dataset Size” in the table below). For each generated graph, we extract one connected 8-, 16-, 32-, and 64- node subgraph respectively. This gives us 5 test sets, each with 100 graph pairs.
|
| 419 |
+
|
| 420 |
+
We use the following 5 metrics for thorough evaluation:
|
| 421 |
+
|
| 422 |
+
1. Solved $\%$ : It measures the percentage of pairs that the model can successfully finish within 100 seconds.
|
| 423 |
+
2. Soft $\%$ : It measures the fraction of the predicted MCS size over the true MCS size for the isomorphic extracted subgraphs (Appendix D).
|
| 424 |
+
3. Iso $\%$ : Among the pairs that can be solved within the time budget, it measures the percentage of pairs whose extracted subgraphs are isomorphic. This is an important metric because subgraph isomorphism is a key constraint required by the definition of MCS.
|
| 425 |
+
4. Dev in $\#$ nodes: among the pairs that can be solved within the time budget, it measures the average deviation of the number of nodes in the predicted MCS versus the number of nodes in the true MCS. The range of this metric is $[ 0 , N ]$ where $\mathbf { N }$ is the number of nodes of the largest graph in a dataset. This metric gives a more intuitive understanding of the performance of a model compared to “Soft $\%$ ” since it reports the number of nodes directly.
|
| 426 |
+
5. (Average) Runtime (msec): It measures the average running time per testing pairs that the model solves within the time budget. In other words, if a model fails at solving a pair within the time budget, the runtime will NOT be taken into account by this metric for fair comparison
|
| 427 |
+
|
| 428 |
+
We set the time budget to 100 seconds and 500 seconds for MCSPLIT respectively, and the results are shown in Table 4.
|
| 429 |
+
|
| 430 |
+
Table 4: Scalability study results on AIDS.
|
| 431 |
+
|
| 432 |
+
<table><tr><td>Test Dataset size</td><td>Metrics</td><td>MCSPLIT (100s)</td><td>MCSPLIT (500s)</td><td>McSPLIT</td></tr><tr><td rowspan="5">16</td><td>Solved %</td><td>100.000</td><td>100.000</td><td>100.000</td></tr><tr><td>Soft %</td><td>100.000</td><td>100.000</td><td>99.625</td></tr><tr><td>Iso %</td><td>100.000</td><td>100.000</td><td>100.000</td></tr><tr><td>Dev in # nodes</td><td>0</td><td>0</td><td>0.030</td></tr><tr><td>Runtime (msec)</td><td>295.576</td><td>236.502</td><td>550.688</td></tr><tr><td rowspan="5">32</td><td>Solved %</td><td>100.000</td><td>100.000</td><td>100.000</td></tr><tr><td>Soft %</td><td>100.000</td><td>100.000</td><td>99.563</td></tr><tr><td>Iso %</td><td>100.000</td><td>100.000</td><td>100.000</td></tr><tr><td>Dev in # nodes</td><td>0</td><td>0</td><td>0.070</td></tr><tr><td>Runtime (msec)</td><td>333.793</td><td>340.310</td><td>787.901</td></tr><tr><td rowspan="5">64</td><td>Solved %</td><td>61.000</td><td>62.000</td><td>100.000</td></tr><tr><td>Soft %</td><td>61.000</td><td>62.000</td><td>98.843</td></tr><tr><td>Iso %</td><td>100.000</td><td>100.000</td><td>100.000</td></tr><tr><td>Dev in # nodes</td><td>0</td><td>0</td><td>0.370</td></tr><tr><td>Runtime (msec)</td><td>4509.056</td><td>10351.813</td><td>940.581</td></tr><tr><td rowspan="5">128</td><td>Solved %</td><td>26.000</td><td>28.000</td><td>100.000</td></tr><tr><td>Soft %</td><td>26.000</td><td>28.000</td><td>75.484</td></tr><tr><td>Iso %</td><td>100.000</td><td>100.000</td><td>100.000</td></tr><tr><td>Dev in # nodes</td><td>0</td><td>0</td><td>15.690</td></tr><tr><td>Runtime (msec)</td><td>1220.117</td><td>18809.848</td><td>1194.089</td></tr></table>
|
| 433 |
+
|
| 434 |
+
NEURALMCS achieves performance close to the exact ground truth solver in terms of accuracy, and can scale to much larger graphs which the exact solver fails, most of the time, at solving within the time budget.
|
| 435 |
+
|
| 436 |
+
For accuracy, we see that the size of MCS extracted for the model is often over $98 \%$ the true MCS size. Interestingly, for graphs of size 64, we find that the extracted subgraphs differ between our model and the true MCS only in less than one node (0.37 nodes) on average. This indicates that our proposed method (NEURALMCS) can detect MCS that the current state of the art (MCSPLIT) cannot, due to our careful design and the incorporation of learning algorithms.
|
| 437 |
+
|
| 438 |
+
For running time, our model is comparable to or slower than the ground truth detector for simpler cases (¡ 1 second) but much faster for larger graphs. This could be due to our model incurring overhead from Python implementation, while MCSPLIT is implemented in $\mathrm { C } { + } { + }$ . However, when the dataset size equals 128, MCSPLIT fails for most pairs, as the MCS problem is NP-hard, while NEURALMCS can solve all the pairs due to guaranteed time complexity (Section 3.4). Notice, there is no theoretical time complexity guarantee for MCSPLIT (exponential time complexity in the worst case (McCreesh et al., 2017)), resulting in significant average running time increase from 1220.1 msec to 18809.8 msec when only 2 additional pairs are solved by increasing the time budget from 100 seconds to 500 seconds. In fact, we observed that the actual running time of the branch-andbound algorithm MCSPLIT strongly depends on the actual graph structures varying from graph to graph.
|
| 439 |
+
|
| 440 |
+
In summary, when graphs are larger and larger, MCSPLIT quickly becomes almost unusable in practice due to an inability to yield results most of the time, while NEURALMCS still extracts highaccuracy MCSs consistently and runs much faster than MCSPLIT with guaranteed theoretical time complexity. In practice, we observe that our model can run successfully on a 12-GB GPU until 4000-node graphs when the GPU runs out of memory, in which case MCSPLIT almost surely cannot be used either.
|
| 441 |
+
|
| 442 |
+
# H DISCUSSION ON SUBGRAPH ISOMORPHISM CHECKING OF GUIDED SUBGRAPH EXTRACTION
|
| 443 |
+
|
| 444 |
+
In the proposed GUIDED SUBGRAPH EXTRACTION (GSE) strategy (Section 3.3.1), we check if the inclusion of a new node pair would result in two isomorphic subgraphs by checking if $| | \mathbf { w } _ { 1 } - \pmb { w } _ { 2 } | |$ is smaller than or equal to a threshold, which is a criteria that allows us to punish mismatched nodes more softly. While an iterative check would achieve efficiency benefits by avoiding computing the subgraph embeddings, it assumes at every step we have performed a non-ambiguous matching. For example, suppose we have 2 graphs, where in the current iteration of GSE, we have 2 fully connected 3-node subgraphs currently extracted with node-node mappings. We label the node ids of these 2 graphs as 1-2-3 and a-b-c respectively and the mappings as 1-a, 2-b, 3-c. If we select a new node 4 from $\mathcal { G } _ { 1 }$ and a new node d from $\mathcal { G } _ { 2 }$ and 4 is connected to 2 and d is connected to a, an iterative procedure would not be able to tell that the addition of node 4 and d to the MCS is valid (since 2-b is matched but NOT 2-a). Fundamentally, the structure for 1,2,3 and a,b,c are similar, so it is uncertain (and expected) that the computed node matchings would be 2-a, 1-b or 2-b, 1-a.
|
| 445 |
+
|
| 446 |
+
In contrast, our proposed checking strategy can account for the above-mentioned uncertainty by doing aggregation of node embeddings to obtain subgraph-level embeddings $w _ { 1 }$ and $w _ { 2 }$ , since this does not involve explicitly finding the node-node mappings. Instead, it checks the isomorphism in a more principled way borrowing insights from Weisfeiler-Lehman (WL) graph isomorphism test (Shervashidze et al., 2011). In WL, each node in the two graphs is represented as an aggregation of local node features, and each graph is represented as an aggregation of node labels. The algorithm stops and decides two graphs are not isomorphic when the two graph-level node label sets are different. In our model, the graph-level node label set is equivalent to ${ \pmb w } _ { 1 }$ and ${ \pmb w } _ { 2 }$ , and our GSE decides that the subgraphs are not isomorphic when the two graph-level representations are different enough.
|
| 447 |
+
|
| 448 |
+
In conclusion, our proposed checking strategy addresses the ambiguous node mapping issue which the iterative isomorphism check could not solve, and is theoretically connected to the WL algorithm for graph isomorphism test.
|
| 449 |
+
|
| 450 |
+
# I DISCUSSION ON LEARNINING CAPACITY OF GUIDED SUBGRAPH EXTRACTION
|
| 451 |
+
|
| 452 |
+
In our current model, we form a matching matrix for both training and inference, and perform our loss function on the matching matrix during training (Section 3.2), and utilize GSE (Section 3.3) guided by the matching matrix during inference to extract subgraphs. We use GMN for node embeddings (Section 2.2 and Section 3.1) and feed the matching matrix into GSE, which is fixed during the iterative GSE process. However, one potential issue is that once a node pair is selected, the extracted subgraph grows by one node causing the candidate pairs to change in the next iteration.
|
| 453 |
+
|
| 454 |
+
Ideally, node embeddings should be updated to reflect such change after each iteration. By introducing learnable components to iteratively update the node embeddings to reflect such change, we can train the GSE component using guidance from the ground-truth node mappings in the MCS, making the training stage and inference stage consistent and match each other.
|
| 455 |
+
|
| 456 |
+
To accomplish this, we propagate the node embeddings at each iteration of GSE with learnable weights to recompute the matching matrix $\mathbf { Y }$ such that the next iteration’s node embeddings will be conditionally updated based on the current extracted subgraph. To achieve it, we extend GMN to update the node embeddings for the extracted subgraph at each GSE iteration. GMN updates the node embeddings of two graphs jointly by performing intra- and inter-graph message passing. Thus, one can directly apply GMN to the extracted subgraph at each GSE iteration, and calculate the loss function at the end of GSE process (replacing the current BCE loss on the matching matrix $\mathbf { Y }$ ), achieving conditional node embeddings in the GSE step of the model.
|
| 457 |
+
|
| 458 |
+
In implementation, we make a further modification to GMN by not propagating to matched nodes in the two extracted subgraphs. This is because we want the node embeddings for the currently extracted isomorphic subgraphs to stay as consistent as possible and not be influenced by any unpicked nodes in the larger graph or any nodes from the opposing graph.
|
| 459 |
+
|
| 460 |
+
We run both modified versions (with and without further modification) of NEURALMCS on AIDS, and the performance increase is only marginal $( < 1 \%$ increase). Therefore, by forgoing this step during training and only using GSE only during testing, we can gain a free speed up in training time.
|
| 461 |
+
|
| 462 |
+
# J MORE CASE STUDY
|
| 463 |
+
|
| 464 |
+
All case study plots can be seen in Figure 5. We see that our model is able to differentiate difficult input pairs, where adding any extra nodes would break the MCS constraints. In the LINUX, IMDB, and REDDIT dataset, we see examples where the graph structures are vastly different, yet NEURALMCS is still able to correctly differentiate MCS nodes. In the AIDS dataset, we see the model is able to successfully extract subgraphs which maintain node labels. In the IMDB dataset, we see the model can handle denser and larger size graphs.
|
| 465 |
+
|
| 466 |
+

|
| 467 |
+
Figure 5: Case study.
|
parse/train/BJgcwh4FwS/BJgcwh4FwS_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJgcwh4FwS/BJgcwh4FwS_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|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, Otkrist Gupta, Nikhil Naik & Ramesh Raskar
|
| 4 |
+
|
| 5 |
+
Media Laboratory
|
| 6 |
+
Massachusetts Institute of Technology
|
| 7 |
+
Cambridge MA 02139, USA
|
| 8 |
+
{bowen, otkrist, naik, raskar}@mit.edu
|
| 9 |
+
|
| 10 |
+
# ABSTRACT
|
| 11 |
+
|
| 12 |
+
At present, designing convolutional neural network (CNN) architectures requires both human expertise and labor. New architectures are handcrafted by careful experimentation or modified from a handful of existing networks. We introduce MetaQNN, a meta-modeling algorithm based on reinforcement learning to automatically generate high-performing CNN architectures for a given learning task. The learning agent is trained to sequentially choose CNN layers using $Q$ - learning with an $\epsilon$ -greedy exploration strategy and experience replay. The agent explores a large but finite space of possible architectures and iteratively discovers designs with improved performance on the learning task. On image classification benchmarks, the agent-designed networks (consisting of only standard convolution, pooling, and fully-connected layers) beat existing networks designed with the same layer types and are competitive against the state-of-the-art methods that use more complex layer types. We also outperform existing meta-modeling approaches for network design on image classification tasks.
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
Deep convolutional neural networks (CNNs) have seen great success in the past few years on a variety of machine learning problems (LeCun et al., 2015). A typical CNN architecture consists of several convolution, pooling, and fully connected layers. While constructing a CNN, a network designer has to make numerous design choices: the number of layers of each type, the ordering of layers, and the hyperparameters for each type of layer, e.g., the receptive field size, stride, and number of receptive fields for a convolution layer. The number of possible choices makes the design space of CNN architectures extremely large and hence, infeasible for an exhaustive manual search. While there has been some work (Pinto et al., 2009; Bergstra et al., 2013; Domhan et al., 2015) on automated or computer-aided neural network design, new CNN architectures or network design elements are still primarily developed by researchers using new theoretical insights or intuition gained from experimentation.
|
| 17 |
+
|
| 18 |
+
In this paper, we seek to automate the process of CNN architecture selection through a metamodeling procedure based on reinforcement learning. We construct a novel $Q$ -learning agent whose goal is to discover CNN architectures that perform well on a given machine learning task with no human intervention. The learning agent is given the task of sequentially picking layers of a CNN model. By discretizing and limiting the layer parameters to choose from, the agent is left with a finite but large space of model architectures to search from. The agent learns through random exploration and slowly begins to exploit its findings to select higher performing models using the $\epsilon \cdot$ - greedy strategy (Mnih et al., 2015). The agent receives the validation accuracy on the given machine learning task as the reward for selecting an architecture. We expedite the learning process through repeated memory sampling using experience replay (Lin, 1993). We refer to this $Q$ -learning based meta-modeling method as MetaQNN, which is summarized in Figure 1.1
|
| 19 |
+
|
| 20 |
+
We conduct experiments with a space of model architectures consisting of only standard convolution, pooling, and fully connected layers using three standard image classification datasets: CIFAR-10,
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
Figure 1: Designing CNN Architectures with $Q$ -learning: The agent begins by sampling a Convolutional Neural Network (CNN) topology conditioned on a predefined behavior distribution and the agent’s prior experience (left block). That CNN topology is then trained on a specific task; the topology description and performance, e.g. validation accuracy, are then stored in the agent’s memory (middle block). Finally, the agent uses its memories to learn about the space of CNN topologies through $Q$ -learning (right block).
|
| 24 |
+
|
| 25 |
+
SVHN, and MNIST. The learning agent discovers CNN architectures that beat all existing networks designed only with the same layer types (e.g., Springenberg et al. (2014); Srivastava et al. (2015)). In addition, their performance is competitive against network designs that include complex layer types and training procedures (e.g., Clevert et al. (2015); Lee et al. (2016)). Finally, the MetaQNN selected models comfortably outperform previous automated network design methods (Stanley & Miikkulainen, 2002; Bergstra et al., 2013). The top network designs discovered by the agent on one dataset are also competitive when trained on other datasets, indicating that they are suited for transfer learning tasks. Moreover, we can generate not just one, but several varied, well-performing network designs, which can be ensembled to further boost the prediction performance.
|
| 26 |
+
|
| 27 |
+
# 2 RELATED WORK
|
| 28 |
+
|
| 29 |
+
Designing neural network architectures: Research on automating neural network design goes back to the 1980s when genetic algorithm-based approaches were proposed to find both architectures and weights (Schaffer et al., 1992). However, to the best of our knowledge, networks designed with genetic algorithms, such as those generated with the NEAT algorithm (Stanley & Miikkulainen, 2002), have been unable to match the performance of hand-crafted networks on standard benchmarks (Verbancsics & Harguess, 2013). Other biologically inspired ideas have also been explored; motivated by screening methods in genetics, Pinto et al. (2009) proposed a high-throughput network selection approach where they randomly sample thousands of architectures and choose promising ones for further training. In recent work, Saxena & Verbeek (2016) propose to sidestep the architecture selection process through densely connected networks of layers, which come closer to the performance of hand-crafted networks.
|
| 30 |
+
|
| 31 |
+
Bayesian optimization has also been used (Shahriari et al., 2016) for automatic selection of network architectures (Bergstra et al., 2013; Domhan et al., 2015) and hyperparameters (Snoek et al., 2012; Swersky et al., 2013). Notably, Bergstra et al. (2013) proposed a meta-modeling approach based on Tree of Parzen Estimators (TPE) (Bergstra et al., 2011) to choose both the type of layers and hyperparameters of feed-forward networks; however, they fail to match the performance of handcrafted networks.
|
| 32 |
+
|
| 33 |
+
Reinforcement Learning: Recently there has been much work at the intersection of reinforcement learning and deep learning. For instance, methods using CNNs to approximate the $Q$ -learning utility function (Watkins, 1989) have been successful in game-playing agents (Mnih et al., 2015; Silver et al., 2016) and robotic control (Lillicrap et al., 2015; Levine et al., 2016). These methods rely on phases of exploration, where the agent tries to learn about its environment through sampling, and exploitation, where the agent uses what it learned about the environment to find better paths. In traditional reinforcement learning settings, over-exploration can lead to slow convergence times, yet over-exploitation can lead to convergence to local minima (Kaelbling et al., 1996). However, in the case of large or continuous state spaces, the $\epsilon$ -greedy strategy of learning has been empirically shown to converge (Vermorel & Mohri, 2005). Finally, when the state space is large or exploration is costly, the experience replay technique (Lin, 1993) has proved useful in experimental settings (Adam et al., 2012; Mnih et al., 2015). We incorporate these techniques— $Q$ -learning, the $\epsilon$ -greedy strategy and experience replay—in our algorithm design.
|
| 34 |
+
|
| 35 |
+
# 3 BACKGROUND
|
| 36 |
+
|
| 37 |
+
Our method relies on $Q$ -learning, a type of reinforcement learning. We now summarize the theoretical formulation of $Q$ -learning, as adopted to our problem. Consider the task of teaching an agent to find optimal paths as a Markov Decision Process (MDP) in a finite-horizon environment. Constraining the environment to be finite-horizon ensures that the agent will deterministically terminate in a finite number of time steps. In addition, we restrict the environment to have a discrete and finite state space $s$ as well as action space $\mathcal { U }$ . For any state $s _ { i } \in S$ , there is a finite set of actions, $\mathcal { U } ( s _ { i } ) \subseteq \mathcal { U }$ , that the agent can choose from. In an environment with stochastic transitions, an agent in state $s _ { i }$ taking some action $u \in \mathcal { U } ( s _ { i } )$ will transition to state $s _ { j }$ with probability $p _ { s ^ { \prime } | s , u } ( s _ { j } | s _ { i } , u )$ , which may be unknown to the agent. At each time step $t$ , the agent is given a reward $r _ { t }$ , dependent on the transition from state $s$ to $s ^ { \prime }$ and action $u$ . $r _ { t }$ may also be stochastic according to a distribution $p _ { r | s ^ { \prime } , s , u }$ . The agent’s goal is to maximize the total expected reward over all possible trajectories, i.e., $\operatorname* { m i n } _ { \mathbf { \zeta } } { } _ { T _ { i } \in \mathcal { T } } { \cal R } _ { T _ { i } }$ , where the total expected reward for a trajectory $\mathcal { T } _ { i }$ is
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\begin{array} { r } { R _ { \mathcal { T } _ { i } } = \sum _ { ( s , u , s ^ { \prime } ) \in \mathcal { T } _ { i } } \mathbb { E } _ { r | s , u , s ^ { \prime } } [ r | s , u , s ^ { \prime } ] . } \end{array}
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
Though we limit the agent to a finite state and action space, there are still a combinatorially large number of trajectories, which motivates the use of reinforcement learning. We define the maximization problem recursively in terms of subproblems as follows. For any state $s _ { i } \in S$ and subsequent action $u \in \mathcal { U } ( s _ { i } )$ , we define the maximum total expected reward to be $Q ^ { * } ( s _ { i } , u )$ . $Q ^ { * } ( \cdot )$ is known as the action-value function and individual $Q ^ { * } ( s _ { i } , u )$ are know as $Q$ -values. The recursive maximization equation, which is known as Bellman’s Equation, can be written as
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\begin{array} { r } { Q ^ { * } ( s _ { i } , u ) = \mathbb { E } _ { s _ { j } \mid s _ { i } , u } \left[ \mathbb { E } _ { r \mid s _ { i } , u , s _ { j } } [ r \mid s _ { i } , u , s _ { j } ] + \gamma \operatorname* { m a x } _ { u ^ { \prime } \in \mathcal { U } ( s _ { j } ) } Q ^ { * } ( s _ { j } , u ^ { \prime } ) \right] . } \end{array}
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
In many cases, it is impossible to analytically solve Bellman’s Equation (Bertsekas, 2015), but it can be formulated as an iterative update
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
\begin{array} { r } { Q _ { t + 1 } ( s _ { i } , u ) = ( 1 - \alpha ) Q _ { t } ( s _ { i } , u ) + \alpha \left[ r _ { t } + \gamma \operatorname* { m a x } _ { u ^ { \prime } \in \mathcal { U } ( s _ { j } ) } Q _ { t } ( s _ { j } , u ^ { \prime } ) \right] . } \end{array}
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
Equation 3 is the simplest form of $Q$ -learning proposed by Watkins (1989). For well formulated problems, $\begin{array} { r } { \operatorname* { l i m } _ { t \to \infty } \bar { Q _ { t } } ( s , u ) = Q ^ { * } ( s , u ) } \end{array}$ , as long as each transition is sampled infinitely many times (Bertsekas, 2015). The update equation has two parameters: (i) $\alpha$ is a $Q$ -learning rate which determines the weight given to new information over old information, and (ii) $\gamma$ is the discount factor which determines the weight given to short-term rewards over future rewards. The $Q$ -learning algorithm is model-free, in that the learning agent can solve the task without ever explicitly constructing an estimate of environmental dynamics. In addition, $Q$ -learning is off policy, meaning it can learn about optimal policies while exploring via a non-optimal behavioral distribution, i.e. the distribution by which the agent explores its environment.
|
| 56 |
+
|
| 57 |
+
We choose the behavior distribution using an $\epsilon$ -greedy strategy (Mnih et al., 2015). With this strategy, a random action is taken with probability $\epsilon$ and the greedy action, $\begin{array} { r } { \operatorname* { m a x } _ { u \in \mathcal { U } ( s _ { i } ) } Q _ { t } \mathopen { } \mathclose \bgroup \left( s _ { i } , u \aftergroup \egroup \right) } \end{array}$ , is chosen with probability $1 - \epsilon$ . We anneal $\epsilon$ from $1 0$ such that the agent begins in an exploration phase and slowly starts moving towards the exploitation phase. In addition, when the exploration cost is large (which is true for our problem setting), it is beneficial to use the experience replay technique for faster convergence (Lin, 1992). In experience replay, the learning agent is provided with a memory of its past explored paths and rewards. At a given interval, the agent samples from the memory and updates its $Q$ -values via Equation 3.
|
| 58 |
+
|
| 59 |
+
# 4 DESIGNING NEURAL NETWORK ARCHITECTURES WITH $Q$ -LEARNING
|
| 60 |
+
|
| 61 |
+
We consider the task of training a learning agent to sequentially choose neural network layers. Figure 2 shows feasible state and action spaces (a) and a potential trajectory the agent may take along with the CNN architecture defined by this trajectory (b). We model the layer selection process as a Markov Decision Process with the assumption that a well-performing layer in one network should also perform well in another network. We make this assumption based on the hierarchical nature of the feature representations learned by neural networks with many hidden layers (LeCun et al., 2015). The agent sequentially selects layers via the $\epsilon$ -greedy strategy until it reaches a termination state. The CNN architecture defined by the agent’s path is trained on the chosen learning problem, and the agent is given a reward equal to the validation accuracy. The validation accuracy and architecture description are stored in a replay memory, and experiences are sampled periodically from the replay memory to update $Q$ -values via Equation 3. The agent follows an $\epsilon$ schedule which determines its shift from exploration to exploitation.
|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
Figure 2: Markov Decision Process for CNN Architecture Generation: Figure 2(a) shows the full state and action space. In this illustration, actions are shown to be deterministic for clarity, but they are stochastic in experiments. $C ( n , f , l )$ denotes a convolutional layer with $n$ filters, receptive field size $f$ , and stride l. $P ( f , l )$ denotes a pooling layer with receptive field size $f$ and stride l. $G$ denotes a termination state (Softmax/Global Average Pooling). Figure 2(b) shows a path the agent may choose, highlighted in green, and the corresponding CNN topology.
|
| 65 |
+
|
| 66 |
+
Our method requires three main design choices: (i) reducing CNN layer definitions to simple state tuples, (ii) defining a set of actions the agent may take, i.e., the set of layers the agent may pick next given its current state, and (iii) balancing the size of the state-action space—and correspondingly, the model capacity—with the amount of exploration needed by the agent to converge. We now describe the design choices and the learning process in detail.
|
| 67 |
+
|
| 68 |
+
# 4.1 THE STATE SPACE
|
| 69 |
+
|
| 70 |
+
Each state is defined as a tuple of all relevant layer parameters. We allow five different types of layers: convolution (C), pooling (P), fully connected (FC), global average pooling (GAP), and softmax (SM), though the general method is not limited to this set. Table 1 shows the relevant parameters for each layer type and also the discretization we chose for each parameter. Each layer has a parameter layer depth (shown as Layer $1 , 2 , \ldots$ in Figure 2). Adding layer depth to the state space allows us to constrict the action space such that the state-action graph is directed and acyclic (DAG) and also allows us to specify a maximum number of layers the agent may select before terminating.
|
| 71 |
+
|
| 72 |
+
Each layer type also has a parameter called representation size $R$ -size). Convolutional nets progressively compress the representation of the original signal through pooling and convolution. The presence of these layers in our state space may lead the agent on a trajectory where the intermediate signal representation gets reduced to a size that is too small for further processing. For example, five $2 \times 2$ pooling layers each with stride 2 will reduce an image of initial size $3 2 \times 3 2$ to size $1 \times 1$ . At this stage, further pooling, or convolution with receptive field size greater than 1, would be meaningless and degenerate. To avoid such scenarios, we add the $R$ -size parameter to the state tuple $s$ , which allows us to restrict actions from states with $R$ -size $n$ to those that have a receptive field size less than or equal to $n$ . To further constrict the state space, we chose to bin the representation sizes into three discrete buckets. However, binning adds uncertainty to the state transitions: depending on the true underlying representation size, a pooling layer may or may not change the $R$ -size bin. As a result, the action of pooling can lead to two different states, which we model as stochasticity in state transitions. Please see Figure A1 in appendix for an illustrated example.
|
| 73 |
+
|
| 74 |
+
<table><tr><td rowspan=1 colspan=1>Layer Type</td><td rowspan=1 colspan=1>LayerParameters</td><td rowspan=1 colspan=1>ParameterValues</td></tr><tr><td rowspan=1 colspan=1>Convolution (C)</td><td rowspan=1 colspan=1>i~Layer depthf~Receptive field sizel~Strided ~ # receptive fieldsn ~ Representation size</td><td rowspan=1 colspan=1><12Square. ∈ {1,3,5}Square.Always equal to 1∈{64,128,256,512}∈{(,8],(8,4],(4,1]}</td></tr><tr><td rowspan=1 colspan=1>Pooling (P)</td><td rowspan=1 colspan=1>i~Layer depth(f,l)~ (Receptive field size, Strides)n ~ Representation size</td><td rowspan=1 colspan=1><12Square.∈{(5,3),(3,2),(2,2)}∈{(∞,8],(8,4] and (4,1]}</td></tr><tr><td rowspan=1 colspan=1>Fully Connected (FC)</td><td rowspan=1 colspan=1>i~Layerdepthn ~ # consecutive FC layersd ~# neurons</td><td rowspan=1 colspan=1><12<3∈ {512,256,128}</td></tr><tr><td rowspan=1 colspan=1>Termination State</td><td rowspan=1 colspan=1>S~Previous Statet~Type</td><td rowspan=1 colspan=1>Global Avg.Pooling/Softmax</td></tr></table>
|
| 75 |
+
|
| 76 |
+
Table 1: Experimental State Space. For each layer type, we list the relevant parameters and the values each parameter is allowed to take.
|
| 77 |
+
|
| 78 |
+
# 4.2 THE ACTION SPACE
|
| 79 |
+
|
| 80 |
+
We restrict the agent from taking certain actions to both limit the state-action space and make learning tractable. First, we allow the agent to terminate a path at any point, i.e. it may choose a termination state from any non-termination state. In addition, we only allow transitions for a state with layer depth $i$ to a state with layer depth $i + 1$ , which ensures that there are no loops in the graph. This constraint ensures that the state-action graph is always a DAG. Any state at the maximum layer depth, as prescribed in Table 1, may only transition to a termination layer.
|
| 81 |
+
|
| 82 |
+
Next, we limit the number of fully connected (FC) layers to be at maximum two, because a large number of FC layers can lead to too may learnable parameters. The agent at a state with type FC may transition to another state with type FC if and only if the number of consecutive FC states is less than the maximum allowed. Furthermore, a state $s$ of type FC with number of neurons $d$ may only transition to either a termination state or a state $s ^ { \prime }$ of type FC with number of neurons $d ^ { \prime } \leq d$ .
|
| 83 |
+
|
| 84 |
+
An agent at a state of type convolution (C) may transition to a state with any other layer type. An agent at a state with layer type pooling (P) may transition to a state with any other layer type other than another $\mathrm { \bf P }$ state because consecutive pooling layers are equivalent to a single, larger pooling layer which could lie outside of our chosen state space. Furthermore, only states with representation size in bins (8, 4] and (4, 1] may transition to an FC layer, which ensures that the number of weights does not become unreasonably huge. Note that a majority of these constraints are in place to enable faster convergence on our limited hardware (see Section 5) and not a limitation of the method in itself.
|
| 85 |
+
|
| 86 |
+
# 4.3 $Q$ -LEARNING TRAINING PROCEDURE
|
| 87 |
+
|
| 88 |
+
For the iterative $Q$ -learning updates (Equation 3), we set the $Q$ -learning rate $( \alpha )$ to 0.01. In addition, we set the discount factor $( \gamma )$ to 1 to not over-prioritize short-term rewards. We decrease $\epsilon$ from 1.0 to 0.1 in steps, where the step-size is defined by the number of unique models trained (Table 2). At $\epsilon = 1 . 0$ , the agent samples CNN architecture with a random walk along a uniformly weighted Markov chain. Every topology sampled by the agent is trained using the procedure described in Section 5, and the prediction performance of this network topology on the validation set is recorded. We train a larger number of models at $\epsilon = 1 . 0$ as compared to other values of $\epsilon$ to ensure that the agent has adequate time to explore before it begins to exploit. We stop the agent at $\epsilon = 0 . 1$ (and not at $\epsilon = 0$ ) to obtain a stochastic final policy, which generates perturbations of the global minimum.2 Ideally, we want to identify several well-performing model topologies, which can then be ensembled to improve prediction performance.
|
| 89 |
+
|
| 90 |
+
During the entire training process (starting at $\epsilon = 1 . 0$ ), we maintain a replay dictionary which stores (i) the network topology and (ii) prediction performance on a validation set, for all of the sampled
|
| 91 |
+
|
| 92 |
+
<table><tr><td rowspan=1 colspan=1>E</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>0.9</td><td rowspan=1 colspan=1>0.8</td><td rowspan=1 colspan=1>0.7</td><td rowspan=1 colspan=1>0.6</td><td rowspan=1 colspan=1>0.5</td><td rowspan=1 colspan=1>0.4</td><td rowspan=1 colspan=1>0.3</td><td rowspan=1 colspan=1>0.2</td><td rowspan=1 colspan=1>0.1</td></tr><tr><td rowspan=1 colspan=1>#ModelsTrained</td><td rowspan=1 colspan=1>1500</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>150</td><td rowspan=1 colspan=1>150</td><td rowspan=1 colspan=1>150</td><td rowspan=1 colspan=1>150</td><td rowspan=1 colspan=1>150</td><td rowspan=1 colspan=1>150</td></tr></table>
|
| 93 |
+
|
| 94 |
+
Table 2: Schedule. The learning agent trains the specified number of unique models at each .
|
| 95 |
+
|
| 96 |
+
models. If a model that has already been trained is re-sampled, it is not re-trained, but instead the previously found validation accuracy is presented to the agent. After each model is sampled and trained, the agent randomly samples 100 models from the replay dictionary and applies the $Q$ -value update defined in Equation 3 for all transitions in each sampled sequence. The $Q$ -value update is applied to the transitions in temporally reversed order, which has been shown to speed up $Q$ -values convergence (Lin, 1993).
|
| 97 |
+
|
| 98 |
+
# 5 EXPERIMENT DETAILS
|
| 99 |
+
|
| 100 |
+
During the model exploration phase, we trained each network topology with a quick and aggressive training scheme. For each experiment, we created a validation set by randomly taking 5,000 samples from the training set such that the resulting class distributions were unchanged. For every network, a dropout layer was added after every two layers. The $i ^ { t h }$ dropout layer, out of a total $n$ dropout layers, had a dropout probability of $\dot { \frac { \ i } { 2 n } }$ . Each model was trained for a total of 20 epochs with the Adam optimizer (Kingma & Ba, 2014) with $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 9 9$ , $\varepsilon = 1 0 ^ { - 8 }$ . The batch size was set to 128, and the initial learning rate was set to 0.001. If the model failed to perform better than a random predictor after the first epoch, we reduced the learning rate by a factor of 0.4 and restarted training, for a maximum of 5 restarts. For models that started learning (i.e., performed better than a random predictor), we reduced the learning rate by a factor of 0.2 every 5 epochs. All weights were initialized with Xavier initialization (Glorot & Bengio, 2010). Our experiments using Caffe (Jia et al., 2014) took 8-10 days to complete for each dataset with a hardware setup consisting of 10 NVIDIA GPUs.
|
| 101 |
+
|
| 102 |
+
After the agent completed the $\epsilon$ schedule (Table 2), we selected the top ten models that were found over the course of exploration. These models were then finetuned using a much longer training schedule, and only the top five were used for ensembling. We now provide details of the datasets and the finetuning process.
|
| 103 |
+
|
| 104 |
+
The Street View House Numbers (SVHN) dataset has 10 classes with a total of 73,257 samples in the original training set, 26,032 samples in the test set, and 531,131 additional samples in the extended training set. During the exploration phase, we only trained with the original training set, using 5,000 random samples as validation. We finetuned the top ten models with the original plus extended training set, by creating preprocessed training and validation sets as described by Lee et al. (2016). Our final learning rate schedule after tuning on validation set was 0.025 for 5 epochs, 0.0125 for 5 epochs, 0.0001 for 20 epochs, and 0.00001 for 10 epochs.
|
| 105 |
+
|
| 106 |
+
CIFAR-10, the 10 class tiny image dataset, has 50,000 training samples and 10,000 testing samples. During the exploration phase, we took 5,000 random samples from the training set for validation. The maximum layer depth was increased to 18. After the experiment completed, we used the same validation set to tune hyperparameters, resulting in a final training scheme which we ran on the entire training set. In the final training scheme, we set a learning rate of 0.025 for 40 epochs, 0.0125 for 40 epochs, 0.0001 for 160 epochs, and 0.00001 for 60 epochs, with all other parameters unchanged. During this phase, we preprocess using global contrast normalization and use moderate data augmentation, which consists of random mirroring and random translation by up to 5 pixels.
|
| 107 |
+
|
| 108 |
+
MNIST, the 10 class handwritten digits dataset, has 60,000 training samples and 10,000 testing samples. We preprocessed each image with global mean subtraction. In the final training scheme, we trained each model for 40 epochs and decreased learning rate every 5 epochs by a factor of 0.2. For further tuning details please see Appendix C.
|
| 109 |
+
|
| 110 |
+
# 6 RESULTS
|
| 111 |
+
|
| 112 |
+
Model Selection Analysis: From $Q$ -learning principles, we expect the learning agent to improve in its ability to pick network topologies as $\epsilon$ reduces and the agent enters the exploitation phase. In
|
| 113 |
+
|
| 114 |
+

|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
Figure 3: $Q$ -Learning Performance. In the plots, the blue line shows a rolling mean of model accuracy versus iteration, where in each iteration of the algorithm the agent is sampling a model. Each bar (in light blue) marks the average accuracy over all models that were sampled during the exploration phase with the labeled $\epsilon$ . As $\epsilon$ decreases, the average accuracy goes up, demonstrating that the agent learns to select better-performing CNN architectures.
|
| 118 |
+
|
| 119 |
+
Table 3: Error Rate Comparison with CNNs that only use convolution, pooling, and fully connected layers. We report results for CIFAR-10 and CIFAR-100 with moderate data augmentation and results for MNIST and SVHN without any data augmentation.
|
| 120 |
+
|
| 121 |
+
<table><tr><td>Method</td><td>CIFAR-10</td><td>SVHN</td><td>MNIST</td><td>CIFAR-100</td></tr><tr><td>Maxout (Goodfellow et al., 2013)</td><td>9.38</td><td>2.47</td><td>0.45</td><td>38.57</td></tr><tr><td>NIN (Lin et al., 2013)</td><td>8.81</td><td>2.35</td><td>0.47</td><td>35.68</td></tr><tr><td>FitNet (Romero et al., 2014)</td><td>8.39</td><td>2.42</td><td>0.51</td><td>35.04</td></tr><tr><td>HighWay (Srivastava et al.,2015)</td><td>7.72</td><td>-</td><td></td><td></td></tr><tr><td>VGGnet (Simonyan & Zisserman,2014)</td><td>7.25</td><td>=</td><td>=</td><td>=</td></tr><tr><td>All-CNN (Springenberg et al., 2014)</td><td>7.25</td><td>=</td><td>=</td><td>33.71</td></tr><tr><td>MetaQNN (ensemble)</td><td>7.32</td><td>2.06</td><td>0.32</td><td>-</td></tr><tr><td>MetaQNN (top model)</td><td>6.92</td><td>2.28</td><td>0.44</td><td>27.14*</td></tr></table>
|
| 122 |
+
|
| 123 |
+
Figure 3, we plot the rolling mean of prediction accuracy over 100 models and the mean accuracy of models sampled at different $\epsilon$ values, for the CIFAR-10 and SVHN experiments. The plots show that, while the prediction accuracy remains flat during the exploration phase $\epsilon = 1$ ) as expected, the agent consistently improves in its ability to pick better-performing models as $\epsilon$ reduces from 1 to 0.1. For example, the mean accuracy of models in the SVHN experiment increases from $5 2 . 2 5 \%$ at $\epsilon = 1$ to $8 8 . 0 2 \%$ at $\epsilon = 0 . 1$ . Furthermore, we demonstrate the stability of the $Q$ -learning procedure with 10 independent runs on a subset of the SVHN dataset in Section D.1 of the Appendix. Additional analysis of $Q$ -learning results can be found in Section D.2.
|
| 124 |
+
|
| 125 |
+
The top models selected by the $Q$ -learning agent vary in the number of parameters but all demonstrate high performance (see Appendix Tables 1-3). For example, the number of parameters for the top five CIFAR-10 models range from 11.26 million to 1.10 million, with only a $2 . 3 2 \%$ decrease in test error. We find design motifs common to the top hand-crafted network architectures as well. For example, the agent often chooses a layer of type $C ( N , 1 , 1 )$ as the first layer in the network. These layers generate $N$ learnable linear transformations of the input data, which is similar in spirit to preprocessing of input data from RGB to a different color spaces such as YUV, as found in prior work (Sermanet et al., 2012; 2013).
|
| 126 |
+
|
| 127 |
+
Prediction Performance: We compare the prediction performance of the MetaQNN networks discovered by the $Q$ -learning agent with state-of-the-art methods on three datasets. We report the accuracy of our best model, along with an ensemble of top five models. First, we compare MetaQNN with six existing architectures that are designed with standard convolution, pooling, and fully-connected layers alone, similar to our designs. As seen in Table 3, our top model alone, as well as the committee ensemble of five models, outperforms all similar models. Next, we compare our results with six top networks overall, which contain complex layer types and design ideas, including generalized pooling functions, residual connections, and recurrent modules. Our results are competitive with these methods as well (Table 4). Finally, our method outperforms existing automated network design methods. MetaQNN obtains an error of $6 . 9 2 \%$ as compared to $2 1 . 2 \%$ reported by Bergstra et al. (2011) on CIFAR-10; and it obtains an error of $0 . 3 2 \%$ as compared to $7 . 9 \%$ reported by Verbancsics & Harguess (2013) on MNIST.
|
| 128 |
+
|
| 129 |
+
Table 4: Error Rate Comparison with state-of-the-art methods with complex layer types. We report results for CIFAR-10 and CIFAR-100 with moderate data augmentation and results for MNIST and SVHN without any data augmentation.
|
| 130 |
+
|
| 131 |
+
<table><tr><td>Method</td><td>CIFAR-10</td><td>SVHN</td><td>MNIST</td><td>CIFAR-100</td></tr><tr><td>DropConnect (Wan et al., 2013)</td><td>9.32</td><td>1.94</td><td>0.57</td><td></td></tr><tr><td>DSN (Lee et al., 2015)</td><td>8.22</td><td>1.92</td><td>0.39</td><td>34.57</td></tr><tr><td>R-CNN (Liang& Hu,2015)</td><td>7.72</td><td>1.77</td><td>0.31</td><td>31.75</td></tr><tr><td>MetaQNN (ensemble)</td><td>7.32</td><td>2.06</td><td>0.32</td><td>-</td></tr><tr><td>MetaQNN (top model)</td><td>6.92</td><td>2.28</td><td>0.44</td><td>27.14*</td></tr><tr><td>Resnet(110) (He et al.,2015)</td><td>6.61</td><td>1</td><td></td><td></td></tr><tr><td>Resnet(1001) (He et al.,2016)</td><td>4.62</td><td>=</td><td>=</td><td>22.71</td></tr><tr><td>ELU (Clevert et al., 2015)</td><td>6.55</td><td>=</td><td>=</td><td>24.28</td></tr><tr><td>Tree+Max-Avg (Lee et al.,2016)</td><td>6.05</td><td>1.69</td><td>0.31</td><td>32.37</td></tr></table>
|
| 132 |
+
|
| 133 |
+
Table 5: Prediction Error for the top MetaQNN (CIFAR-10) model trained for other tasks. Finetuning refers to initializing training with the weights found for the optimal CIFAR-10 model.
|
| 134 |
+
|
| 135 |
+
<table><tr><td>Dataset</td><td>CIFAR-100</td><td>SVHN</td><td>MNIST</td></tr><tr><td>Training from scratch</td><td>27.14</td><td>2.48</td><td>0.80</td></tr><tr><td>Finetuning</td><td>34.93</td><td>4.00</td><td>0.81</td></tr><tr><td>State-of-the-art</td><td>24.28 (Clevert et al.,2015)</td><td>1.69 (Lee et al., 2016)</td><td>0.31 (Lee et al.,2016)</td></tr></table>
|
| 136 |
+
|
| 137 |
+
The difference in validation error between the top 10 models for MNIST was very small, so we also created an ensemble with all 10 models. This ensemble achieved a test error of ${ \bf0 . 2 8 \% }$ —which beats the current state-of-the-art on MNIST without data augmentation.
|
| 138 |
+
|
| 139 |
+
The best CIFAR-10 model performs $1 \%$ better than the four next best models, which is why the ensemble accuracy is lower than the best model’s accuracy. We posit that the CIFAR-10 MetaQNN did not have adequate exploration time given the larger state space compared to that of the SVHN experiment, causing it to not find more models with performance similar to the best model. Furthermore, the coarse training scheme could have been not as well suited for CIFAR-10 as it was for SVHN, causing some models to under perform.
|
| 140 |
+
|
| 141 |
+
Transfer Learning Ability: Network designs such as VGGnet (Simonyan & Zisserman, 2014) can be adopted to solve a variety of computer vision problems. To check if the MetaQNN networks provide similar transfer learning ability, we use the best MetaQNN model on the CIFAR-10 dataset for training other computer vision tasks. The model performs well (Table 5) both when training from random initializations, and finetuning from existing weights.
|
| 142 |
+
|
| 143 |
+
# 7 CONCLUDING REMARKS
|
| 144 |
+
|
| 145 |
+
Neural networks are being used in an increasingly wide variety of domains, which calls for scalable solutions to produce problem-specific model architectures. We take a step towards this goal and show that a meta-modeling approach using reinforcement learning is able to generate tailored CNN designs for different image classification tasks. Our MetaQNN networks outperform previous metamodeling methods as well as hand-crafted networks which use the same types of layers.
|
| 146 |
+
|
| 147 |
+
While we report results for image classification problems, our method could be applied to different problem settings, including supervised (e.g., classification, regression) and unsupervised (e.g., autoencoders). The MetaQNN method could also aid constraint-based network design, by optimizing parameters such as size, speed, and accuracy. For instance, one could add a threshold in the state-action space barring the agent from creating models larger than the desired limit. In addition, one could modify the reward function to penalize large models for constraining memory or penalize slow forward passes to incentivize quick inference.
|
| 148 |
+
|
| 149 |
+
There are several future avenues for research in reinforcement learning-driven network design as well. In our current implementation, we use the same set of hyperparameters to train all network topologies during the $Q$ -learning phase and further finetune the hyperparameters for top models selected by the MetaQNN agent. However, our approach could be combined with hyperparameter optimization methods to further automate the network design process. Moreover, we constrict the state-action space using coarse, discrete bins to accelerate convergence. It would be possible to move to larger state-action spaces using methods for $Q$ -function approximation (Bertsekas, 2015; Mnih et al., 2015).
|
| 150 |
+
|
| 151 |
+
# ACKNOWLEDGMENTS
|
| 152 |
+
|
| 153 |
+
We thank Peter Downs for creating the project website and contributing to illustrations. We acknowledge Center for Bits and Atoms at MIT for their help with computing resources. Finally, we thank members of Camera Culture group at MIT Media Lab for their help and support.
|
| 154 |
+
|
| 155 |
+
# REFERENCES
|
| 156 |
+
|
| 157 |
+
Sander Adam, Lucian Busoniu, and Robert Babuska. Experience replay for real-time reinforcement learning control. IEEE Transactions on Systems, Man, and Cybernetics, Part C (Applications and Reviews), 42(2):201–212, 2012.
|
| 158 |
+
|
| 159 |
+
James Bergstra, Daniel Yamins, and David D Cox. Making a science of model search: Hyperparameter optimization in hundreds of dimensions for vision architectures. ICML (1), 28:115–123, 2013.
|
| 160 |
+
|
| 161 |
+
James S Bergstra, Remi Bardenet, Yoshua Bengio, and Bal ´ azs K ´ egl. Algorithms for hyper-parameter ´ optimization. NIPS, pp. 2546–2554, 2011.
|
| 162 |
+
|
| 163 |
+
Dimitri P Bertsekas. Convex optimization algorithms. Athena Scientific Belmont, 2015.
|
| 164 |
+
|
| 165 |
+
Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network ´ learning by exponential linear units (ELUs). arXiv preprint arXiv:1511.07289, 2015.
|
| 166 |
+
|
| 167 |
+
Tobias Domhan, Jost Tobias Springenberg, and Frank Hutter. Speeding up automatic hyperparameter optimization of deep neural networks by extrapolation of learning curves. IJCAI, 2015.
|
| 168 |
+
|
| 169 |
+
Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. AISTATS, 9:249–256, 2010.
|
| 170 |
+
|
| 171 |
+
Ian J Goodfellow, David Warde-Farley, Mehdi Mirza, Aaron C Courville, and Yoshua Bengio. Maxout networks. ICML (3), 28:1319–1327, 2013.
|
| 172 |
+
|
| 173 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. arXiv preprint arXiv:1512.03385, 2015.
|
| 174 |
+
|
| 175 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In European Conference on Computer Vision, pp. 630–645. Springer, 2016.
|
| 176 |
+
|
| 177 |
+
Yangqing Jia, Evan Shelhamer, Jeff Donahue, Sergey Karayev, Jonathan Long, Ross Girshick, Sergio Guadarrama, and Trevor Darrell. Caffe: Convolutional architecture for fast feature embedding. arXiv preprint arXiv:1408.5093, 2014.
|
| 178 |
+
|
| 179 |
+
Leslie Pack Kaelbling, Michael L Littman, and Andrew W Moore. Reinforcement learning: A survey. Journal of Artificial Intelligence Research, 4:237–285, 1996.
|
| 180 |
+
|
| 181 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 182 |
+
|
| 183 |
+
Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015.
|
| 184 |
+
|
| 185 |
+
Chen-Yu Lee, Saining Xie, Patrick Gallagher, Zhengyou Zhang, and Zhuowen Tu. Deeplysupervised nets. AISTATS, 2(3):6, 2015.
|
| 186 |
+
|
| 187 |
+
Chen-Yu Lee, Patrick W Gallagher, and Zhuowen Tu. Generalizing pooling functions in convolutional neural networks: Mixed, gated, and tree. International Conference on Artificial Intelligence and Statistics, 2016.
|
| 188 |
+
|
| 189 |
+
Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. JMLR, 17(39):1–40, 2016.
|
| 190 |
+
|
| 191 |
+
Ming Liang and Xiaolin Hu. Recurrent convolutional neural network for object recognition. CVPR, pp. 3367–3375, 2015.
|
| 192 |
+
|
| 193 |
+
Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015.
|
| 194 |
+
|
| 195 |
+
Long-Ji Lin. Self-improving reactive agents based on reinforcement learning, planning and teaching. Machine Learning, 8(3-4):293–321, 1992.
|
| 196 |
+
|
| 197 |
+
Long-Ji Lin. Reinforcement learning for robots using neural networks. Technical report, DTIC Document, 1993.
|
| 198 |
+
|
| 199 |
+
Min Lin, Qiang Chen, and Shuicheng Yan. Network in network. arXiv preprint arXiv:1312.4400, 2013.
|
| 200 |
+
|
| 201 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.
|
| 202 |
+
|
| 203 |
+
Nicolas Pinto, David Doukhan, James J DiCarlo, and David D Cox. A high-throughput screening approach to discovering good forms of biologically inspired visual representation. PLoS Computational Biology, 5(11):e1000579, 2009.
|
| 204 |
+
|
| 205 |
+
Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014.
|
| 206 |
+
|
| 207 |
+
Shreyas Saxena and Jakob Verbeek. Convolutional neural fabrics. In Advances in Neural Information Processing Systems 29, pp. 4053–4061. 2016.
|
| 208 |
+
|
| 209 |
+
J David Schaffer, Darrell Whitley, and Larry J Eshelman. Combinations of genetic algorithms and neural networks: A survey of the state of the art. International Workshop on Combinations of Genetic Algorithms and Neural Networks, pp. 1–37, 1992.
|
| 210 |
+
|
| 211 |
+
Pierre Sermanet, Soumith Chintala, and Yann LeCun. Convolutional neural networks applied to house numbers digit classification. ICPR, pp. 3288–3291, 2012.
|
| 212 |
+
|
| 213 |
+
Pierre Sermanet, Koray Kavukcuoglu, Soumith Chintala, and Yann LeCun. Pedestrian detection with unsupervised multi-stage feature learning. CVPR, pp. 3626–3633, 2013.
|
| 214 |
+
|
| 215 |
+
Bobak Shahriari, Kevin Swersky, Ziyu Wang, Ryan P Adams, and Nando de Freitas. Taking the human out of the loop: A review of bayesian optimization. Proceedings of the IEEE, 104(1): 148–175, 2016.
|
| 216 |
+
|
| 217 |
+
David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016.
|
| 218 |
+
|
| 219 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 220 |
+
|
| 221 |
+
Jasper Snoek, Hugo Larochelle, and Ryan P Adams. Practical bayesian optimization of machine learning algorithms. NIPS, pp. 2951–2959, 2012.
|
| 222 |
+
|
| 223 |
+
Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net. arXiv preprint arXiv:1412.6806, 2014.
|
| 224 |
+
Rupesh Kumar Srivastava, Klaus Greff, and Jurgen Schmidhuber. Highway networks. ¨ arXiv preprint arXiv:1505.00387, 2015.
|
| 225 |
+
Kenneth O Stanley and Risto Miikkulainen. Evolving neural networks through augmenting topologies. Evolutionary Computation, 10(2):99–127, 2002.
|
| 226 |
+
Kevin Swersky, Jasper Snoek, and Ryan P Adams. Multi-task bayesian optimization. NIPS, pp. 2004–2012, 2013.
|
| 227 |
+
Phillip Verbancsics and Josh Harguess. Generative neuroevolution for deep learning. arXiv preprint arXiv:1312.5355, 2013.
|
| 228 |
+
Joannes Vermorel and Mehryar Mohri. Multi-armed bandit algorithms and empirical evaluation. European Conference on Machine Learning, pp. 437–448, 2005.
|
| 229 |
+
Li Wan, Matthew Zeiler, Sixin Zhang, Yann L Cun, and Rob Fergus. Regularization of neural networks using dropconnect. ICML, pp. 1058–1066, 2013.
|
| 230 |
+
Christopher John Cornish Hellaby Watkins. Learning from delayed rewards. PhD thesis, University of Cambridge, England, 1989.
|
| 231 |
+
|
| 232 |
+
# APPENDIX
|
| 233 |
+
|
| 234 |
+
# A ALGORITHM
|
| 235 |
+
|
| 236 |
+
We first describe the main components of the MetaQNN algorithm. Algorithm 1 shows the main loop, where the parameter $M$ would determine how many models to run for a given $\epsilon$ and the parameter $K$ would determine how many times to sample the replay database to update $Q$ -values on each iteration. The function TRAIN refers to training the specified network and returns a validation accuracy. Algorithm 2 details the method for sampling a new network using the $\epsilon$ -greedy strategy, where we assume we have a function TRANSITION that returns the next state given a state and action. Finally, Algorithm 3 implements the $Q$ -value update detailed in Equation 3, with discounting factor set to 1, for an entire state sequence in temporally reversed order.
|
| 237 |
+
|
| 238 |
+
# Algorithm 1 $Q$ -learning For CNN Topologies
|
| 239 |
+
|
| 240 |
+
Initialize: replay memory $ [ ]$ $Q \{ ( s , u ) \forall s \in S , u \in \mathcal { U } ( s ) \ : \ 0 . 5 \}$
|
| 241 |
+
for episode $= 1$ to $M$ do $S$ , U ← SAMPLE NEW NETWORK(, Q) accuracy $ \mathrm { T R A I N } ( S )$ replay memory.append((S, U, accuracy)) for memory $= 1$ to $K$ do $S _ { S A M P L E }$ , $U _ { S A M P L E }$ , accuracySAMP LE Uniform{replay memory} $Q $ UPDATE Q VALUES( $Q$ , $S _ { S A M P L E }$ , $U _ { S A M P L E }$ , accuracySAMP LE) end for
|
| 242 |
+
end for
|
| 243 |
+
|
| 244 |
+
# Algorithm 2 SAMPLE NEW NETWORK(, Q)
|
| 245 |
+
|
| 246 |
+
Initialize: state sequence $S = [ s _ { \mathrm { S T A R T } } ]$ action sequence $U = [ ]$
|
| 247 |
+
while $U [ - 1 ] \neq$ terminate do $\alpha \sim \mathrm { U n i f o r m } [ 0 , 1 )$ if $\alpha > \epsilon$ then u = argmaxu∈U(S[−1]) Q[(S[−1], u)] s0 = TRANSITION(S[−1], u) else u ∼ Uniform{U(S[−1])} s0 = TRANSITION(S[−1], u) end if U.append $( u )$ if $u : =$ terminate then S.append $\left( s ^ { \prime } \right)$ end if
|
| 248 |
+
end while
|
| 249 |
+
return S, U
|
| 250 |
+
|
| 251 |
+
<table><tr><td>Algorithm3UPDATE_Q_VALUES(Q,S,U,accuracy)</td></tr><tr><td>Q[S[-1],U[-1]] = (1- α)Q[S[-1],U[-1] + α·accuracy</td></tr><tr><td>fori= length(S) - 2 to 0 do</td></tr><tr><td>Q[S[i],U[i]] = (1 -α)Q[S[i], U[i]] + α maxu∈u(S[i+1]) Q[S[i +1],u]</td></tr><tr><td>end for return Q</td></tr></table>
|
| 252 |
+
|
| 253 |
+
# B REPRESENTATION SIZE BINNING
|
| 254 |
+
|
| 255 |
+
As mentioned in Section 4.1 of the main text, we introduce a parameter called representation size to prohibit the agent from taking actions that can reduce the intermediate signal representation to a size that is too small for further processing. However, this process leads to uncertainties in state transitions, as illustrated in Figure A1, which is handled by the standard $Q$ -learning formulation.
|
| 256 |
+
|
| 257 |
+

|
| 258 |
+
Figure A1: Representation size binning: In this figure, we show three example state transitions. The true representation size ( $R$ -size) parameter is included in the figure to show the true underlying state. Assuming there are two $R$ -size bins, $R$ -size $\mathrm { B i n _ { 1 } }$ : $[ 8 , \infty )$ and $R$ -size $\mathrm { B i n _ { 2 } }$ : (0, 7], Figure A1a shows the case where the initial state is in $R$ -size $\mathrm { B i n _ { 1 } }$ and true representation size is 18. After the agent chooses to pool with a $2 \times 2$ filter with stride 2, the true representation size reduces to 9 but the $R$ -size bin does not change. In Figure A1b, the same $2 \times 2$ pooling layer with stride 2 reduces the actual representation size of 14 to 7, but the bin changes to $R$ -size $\mathrm { B i n _ { 2 } }$ . Therefore, in figures A1a and A1b, the agent ends up in different final states, despite originating in the same initial state and choosing the same action. Figure A1c shows that in our state-action space, when the agent takes an action that reduces the representation size, it will have uncertainty in which state it will transition to.
|
| 259 |
+
|
| 260 |
+
# C MNIST EXPERIMENT
|
| 261 |
+
|
| 262 |
+
We noticed that the final MNIST models were prone to overfitting, so we increased dropout and did a small grid search for the weight regularization parameter. For both tuning and final training, we warmed the model with the learned weights from after the first epoch of initial training. The final models and solvers can be found on our project website https://bowenbaker.github.io/metaqnn/. Figure A2 shows the $Q$ -Learning performance for the MNIST experiment.
|
| 263 |
+
|
| 264 |
+
# D FURTHER ANALYSIS OF $Q$ -LEARNING
|
| 265 |
+
|
| 266 |
+
Figure 3 of the main text and Figure A2 show that as the agent begins to exploit, it improves in architecture selection. It is also informative to look at the distribution of models chosen at each $\epsilon$ . Figure A4 gives further insight into the performance achieved at each $\epsilon$ for both experiments.
|
| 267 |
+
|
| 268 |
+
# D.1 $Q$ -LEARNING STABILITY
|
| 269 |
+
|
| 270 |
+
Because the $Q$ -learning agent explores via a random or semi-random distribution, it is natural to ask whether the agent can consistently improve architecture performance. While the success of the three independent experiments described in the main text allude to stability, here we present further evidence. We conduct 10 independent runs of the $Q$ -learning procedure on $10 \%$ of the SVHN dataset (which corresponds to $\sim 7 { , } 0 0 0$ training examples). We use a smaller dataset to reduce the computation time of each independent run to 10GPU-days, as opposed to the 100GPU-days it would take on the full dataset. As can be seen in Figure A3, the $Q$ -learning procedure with the exploration schedule detailed in Table 2 is fairly stable. The standard deviation at $\epsilon = 1$ is notably smaller than at other stages, which we attribute to the large difference in number of samples at each stage.
|
| 271 |
+
|
| 272 |
+

|
| 273 |
+
Figure A2: MNIST $Q$ -Learning Performance. The blue line shows a rolling mean of model accuracy versus iteration, where in each iteration of the algorithm the agent is sampling a model. Each bar (in light blue) marks the average accuracy over all models that were sampled during the exploration phase with the labeled $\epsilon$ . As $\epsilon$ decreases, the average accuracy goes up, demonstrating that the agent learns to select better-performing CNN architectures.
|
| 274 |
+
|
| 275 |
+

|
| 276 |
+
Figure A3: Figure A3a shows the mean model accuracy and standard deviation at each $\epsilon$ over 10 independent runs of the $Q$ -learning procedure on $10 \%$ of the SVHN dataset. Figure A3b shows the mean model accuracy at each $\epsilon$ for each independent experiment. Despite some variance due to a randomized exploration strategy, each independent run successfully improves architecture performance.
|
| 277 |
+
|
| 278 |
+
Furthermore, the best model found during each run had remarkably similar performance with a mean accuracy of $8 8 . 2 5 \%$ and standard deviation of $0 . 5 8 \%$ , which shows that each run successfully found at least one very high performing model. Note that we did not use an extended training schedule to improve performance in this experiment.
|
| 279 |
+
|
| 280 |
+
# D.2 $Q$ -VALUE ANALYSIS
|
| 281 |
+
|
| 282 |
+
We now analyze the actual $Q$ -values generated by the agent during the training process. The learning agent iteratively updates the $Q$ -values of each path during the $\epsilon$ -greedy exploration. Each $Q$ -value is initialized at 0.5. After the $\epsilon$ -schedule is complete, we can analyze the final $Q$ -value associated with each path to gain insights into the layer selection process. In the left column of Figure A5, we plot the average $Q$ -value for each layer type at different layer depths (for both SVHN and CIFAR10) datasets. Roughly speaking, a higher $Q$ -value associated with a layer type indicates a higher probability that the agent will pick that layer type. In Figure A5, we observe that, while the average $Q$ -value is higher for convolution and pooling layers at lower layer depths, the $Q$ -values for fullyconnected and termination layers (softmax and global average pooling) increase as we go deeper into the network. This observation matches with traditional network designs.
|
| 283 |
+
|
| 284 |
+
We can also plot the average $Q$ -values associated with different layer parameters for further analysis. In the right column of Figure A5, we plot the average $Q$ -values for convolution layers with receptive field sizes 1, 3, and 5 at different layer depths. The plots show that layers with receptive field size of 5 have a higher $Q$ -value as compared to sizes 1 and 3 as we go deeper into the networks. This indicates that it might be beneficial to use larger receptive field sizes in deeper networks.
|
| 285 |
+
|
| 286 |
+
In summary, the $Q$ -learning method enables us to perform analysis on the relative benefits of different design parameters of our state space, and possibly gain insights for new CNN designs.
|
| 287 |
+
|
| 288 |
+
# E TOP TOPOLOGIES SELECTED BY ALGORITHM
|
| 289 |
+
|
| 290 |
+
In Tables A1 through A3, we present the top five model architectures selected with Q-learning for each dataset, along with their prediction error reported on the test set, and their total number of parameters. To download the Caffe solver and prototext files, please visit https://bowenbaker.github.io/metaqnn/.
|
| 291 |
+
|
| 292 |
+
Table A1: Top 5 model architectures: CIFAR-10.
|
| 293 |
+
|
| 294 |
+
<table><tr><td rowspan=1 colspan=1>Model Architecture</td><td rowspan=1 colspan=1>Test Error (%)</td><td rowspan=1 colspan=1>#Params (10)</td></tr><tr><td rowspan=1 colspan=1>[C(512,5,1), C(256,3,1), C(256,5,1), C(256,3,1),P(5,3),C(512,3,1),C(512,5,1), P(2,2), SM(10)]</td><td rowspan=1 colspan=1>6.92</td><td rowspan=1 colspan=1>11.18</td></tr><tr><td rowspan=1 colspan=1>[C(128,1,1),C(512,3,1),C(64,1,1), C(128,3,1),P(2,2),C(256,3,1),P(2,2), C(512,3,1),P(3,2),,SM(10)]</td><td rowspan=1 colspan=1>8.78</td><td rowspan=1 colspan=1>2.17</td></tr><tr><td rowspan=1 colspan=1>[C(128,3,1),C(128,1,1),C(512,5,1),P(2,2),C(128,3,1),P(2,2),C(64,3,1),C(64,5,1), S(10)]</td><td rowspan=1 colspan=1>8.88</td><td rowspan=1 colspan=1>2.42</td></tr><tr><td rowspan=1 colspan=1>[C(256,3,1),C(256,3,1),P(5,3),C(256,1,1),C(128,3,1),P(2,2),C(128,3,1), ,SM(10)]</td><td rowspan=1 colspan=1>9.24</td><td rowspan=1 colspan=1>1.10</td></tr><tr><td rowspan=1 colspan=1>[C(128,5,1),C(512,3,1),P(2,2),C(128,1,1),C(128,5,1),P(3,2),C(512,3,1), SM(10)]</td><td rowspan=1 colspan=1>11.63</td><td rowspan=1 colspan=1>1.66</td></tr></table>
|
| 295 |
+
|
| 296 |
+
<table><tr><td rowspan=1 colspan=1>Model Architecture</td><td rowspan=1 colspan=1>Test Error (%)</td><td rowspan=1 colspan=1>#Params (106)</td></tr><tr><td rowspan=1 colspan=1>[C(128,3,1), P(2,2),C(64,5,1),C(512,5,1),C(256,3,1),C(512,3,1),P(2,2), C(512,3,1),C(256,5,1),C(256,3,1),C(128,5,1),C(64,3,1),SM(10)]</td><td rowspan=1 colspan=1>2.24</td><td rowspan=1 colspan=1>9.81</td></tr><tr><td rowspan=1 colspan=1>[C(128,1,1), C(256,5,1),C(128,5,1), P(2,2),C(256,5,1),C(256,1,1),C(256,3,1), C(256,3,1), C(256,5,1), C(512,5,1), C(256,3,1),C(128,3,1), SM(10)]</td><td rowspan=1 colspan=1>2.28</td><td rowspan=1 colspan=1>10.38</td></tr><tr><td rowspan=1 colspan=1>[C(128,5,1), C(128,3,1),C(64,5,1),P(5,3),C(128,3,1),C(512,5,1),C(256,5,1), C(128,5,1), C(128,5,1),,C(128,3,1), SM(10)]</td><td rowspan=1 colspan=1>2.32</td><td rowspan=1 colspan=1>6.83</td></tr><tr><td rowspan=1 colspan=1>[C(128,1,1),C(256,5,1),C(128,5,1),C(256,3,1),C(256,5,1), P(2,2),C(128,1,1),C(512,3,1),C(256,5,1),P(2,2),C(64,5,1),C(64,1,1),SM(10)]</td><td rowspan=1 colspan=1>2.35</td><td rowspan=1 colspan=1>6.99</td></tr><tr><td rowspan=1 colspan=1>[C(128,1,1), C(256,5,1), C(128,5,1), C(256,5,1), C(256,5,1),C(256,1,1), P(3,2), C(128,1,1),C(256,5,1),C(512,5,1),C(256,3,1),C(128,3,1), SM(10)]</td><td rowspan=1 colspan=1>2.36</td><td rowspan=1 colspan=1>10.05</td></tr></table>
|
| 297 |
+
|
| 298 |
+
Table A2: Top 5 model architectures: SVHN. Note that we do not report the best accuracy on test set from the above models in Tables 3 and 4 from the main text. This is because the model that achieved $2 . 2 8 \%$ on the test set performed the best on the validation set.
|
| 299 |
+
|
| 300 |
+
<table><tr><td rowspan=1 colspan=1>Model Architecture</td><td rowspan=1 colspan=1>Test Error (%)</td><td rowspan=1 colspan=1>#Params (10)</td></tr><tr><td rowspan=1 colspan=1>[C(64,1,1),C(256,3,1),P(2,2),C(512,3,1), C(256,1,1), P(5,3),C(256,3,1), C(512,3,1),FC(512), SM(10)]</td><td rowspan=1 colspan=1>0.35</td><td rowspan=1 colspan=1>5.59</td></tr><tr><td rowspan=1 colspan=1>[C(128,3,1), C(64,1,1),C(64,3,1), C(64,5,1), P(2,2), C(128,3,1), P(3,2),C(512,3,1), FC(512),FC(128), S(10)]</td><td rowspan=1 colspan=1>0.38</td><td rowspan=1 colspan=1>7.43</td></tr><tr><td rowspan=1 colspan=1>[C(512,1,1), C(128,3,1), C(128,5,1), C(64,1,1), C(256,5,1), C(64,1,1),P(5,3), C(512,1,1), C(512,3,1), C(256,3,1), C(256,5,1), C(256,5,1),SM(10)]</td><td rowspan=1 colspan=1>0.40</td><td rowspan=1 colspan=1>8.28</td></tr><tr><td rowspan=1 colspan=1>[C(64,3,1), C(128,3,1), C(512,1,1), C(256,1,1), C(256,5,1), C(128,3,1),P(5,3), C(512,1,1), C(512,3,1), C(128,5,1), SM(10)]</td><td rowspan=1 colspan=1>0.41</td><td rowspan=1 colspan=1>6.27</td></tr><tr><td rowspan=1 colspan=1>[C(64,3,1),C(128,1,1),P(2,2), C(256,3,1),C(128,5,1),C(64,1,1),C(512,5,1), C(128,5,1), C(64,1,1), C(512,5,1), C(256,5,1), C(64,5,1),SM(10)]</td><td rowspan=1 colspan=1>0.43</td><td rowspan=1 colspan=1>8.10</td></tr><tr><td rowspan=1 colspan=1>[C(64,1,1),C(256,5,1),,C(256,5,1),C(512,1,1),C(64,3,1),P(5,3),C(256,5,1), C(256,5,1), C(512,5,1), C(64,1,1), C(128,5,1), C(512,5,1),SM(10)]</td><td rowspan=1 colspan=1>0.44</td><td rowspan=1 colspan=1>9.67</td></tr><tr><td rowspan=1 colspan=1>[C(128,3,1), C(512,3,1),P(2,2), C(256,3,1),,C(128,5,1),C(64,1,1),C(64,5,1), C(512,5,1), GAP(10), SM(10)]</td><td rowspan=1 colspan=1>0.44</td><td rowspan=1 colspan=1>3.52</td></tr><tr><td rowspan=1 colspan=1>[C(256,3,1), C(256,5,1), C(512,3,1), C(256,5,1),C(512,1,1),P(5,3),C(256,3,1), C(64,3,1), C(256,5,1), C(512,3,1), C(128,5,1), C(512,5,1),SM(10)]</td><td rowspan=1 colspan=1>0.46</td><td rowspan=1 colspan=1>12.42</td></tr><tr><td rowspan=1 colspan=1>[C(512,5,1), C(128,5,1), C(128,5,1), C(128,3,1), C(256,3,1),C(512,5,1), C(256,3,1), C(128,3,1), S(10)]</td><td rowspan=1 colspan=1>0.55</td><td rowspan=1 colspan=1>7.25</td></tr><tr><td rowspan=1 colspan=1>[C(64,5,1),C(512,5,1),P(3,2),C(256,5,1),C(256,3,1),C(256,3,1),C(128,1,1),C(256,3,1), C(256,5,1), C(64,1,1), C(256,3,1),C(64,3,1),SM(10)]</td><td rowspan=1 colspan=1>0.56</td><td rowspan=1 colspan=1>7.55</td></tr></table>
|
| 301 |
+
|
| 302 |
+
Table A3: Top 10 model architectures: MNIST. We report the top 10 models for MNIST because we included all 10 in our final ensemble. Note that we do not report the best accuracy on test set from the above models in Tables 3 and 4 from the main text. This is because the model that achieved $0 . 4 4 \%$ on the test set performed the best on the validation set.
|
| 303 |
+
|
| 304 |
+

|
| 305 |
+
Figure A4: Accuracy Distribution versus $\epsilon$ : Figures A4a, A4c, and A4e show the accuracy distribution for each $\epsilon$ for the SVHN, CIFAR-10, and MNIST experiments, respectively. Figures A4b, A4d, and A4f show the accuracy distributions for the initial $\epsilon = 1$ and the final $\epsilon = 0 . 1$ . One can see that the accuracy distribution becomes much more peaked in the high accuracy ranges at small $\epsilon$ for each experiment.
|
| 306 |
+
|
| 307 |
+

|
| 308 |
+
Figure A5: Average $Q$ -Value versus Layer Depth for different layer types are shown in the left column. Average $Q$ -Value versus Layer Depth for different receptive field sizes of the convolution layer are shown in the right column.
|
parse/train/S1c2cvqee/S1c2cvqee_content_list.json
ADDED
|
@@ -0,0 +1,1643 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Bowen Baker, Otkrist Gupta, Nikhil Naik & Ramesh Raskar ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
606,
|
| 21 |
+
184
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Media Laboratory \nMassachusetts Institute of Technology \nCambridge MA 02139, USA \n{bowen, otkrist, naik, raskar}@mit.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
185,
|
| 31 |
+
553,
|
| 32 |
+
239
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
276,
|
| 43 |
+
544,
|
| 44 |
+
291
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "At present, designing convolutional neural network (CNN) architectures requires both human expertise and labor. New architectures are handcrafted by careful experimentation or modified from a handful of existing networks. We introduce MetaQNN, a meta-modeling algorithm based on reinforcement learning to automatically generate high-performing CNN architectures for a given learning task. The learning agent is trained to sequentially choose CNN layers using $Q$ - learning with an $\\epsilon$ -greedy exploration strategy and experience replay. The agent explores a large but finite space of possible architectures and iteratively discovers designs with improved performance on the learning task. On image classification benchmarks, the agent-designed networks (consisting of only standard convolution, pooling, and fully-connected layers) beat existing networks designed with the same layer types and are competitive against the state-of-the-art methods that use more complex layer types. We also outperform existing meta-modeling approaches for network design on image classification tasks. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
306,
|
| 54 |
+
764,
|
| 55 |
+
500
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
523,
|
| 66 |
+
336,
|
| 67 |
+
539
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Deep convolutional neural networks (CNNs) have seen great success in the past few years on a variety of machine learning problems (LeCun et al., 2015). A typical CNN architecture consists of several convolution, pooling, and fully connected layers. While constructing a CNN, a network designer has to make numerous design choices: the number of layers of each type, the ordering of layers, and the hyperparameters for each type of layer, e.g., the receptive field size, stride, and number of receptive fields for a convolution layer. The number of possible choices makes the design space of CNN architectures extremely large and hence, infeasible for an exhaustive manual search. While there has been some work (Pinto et al., 2009; Bergstra et al., 2013; Domhan et al., 2015) on automated or computer-aided neural network design, new CNN architectures or network design elements are still primarily developed by researchers using new theoretical insights or intuition gained from experimentation. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
554,
|
| 77 |
+
825,
|
| 78 |
+
707
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "In this paper, we seek to automate the process of CNN architecture selection through a metamodeling procedure based on reinforcement learning. We construct a novel $Q$ -learning agent whose goal is to discover CNN architectures that perform well on a given machine learning task with no human intervention. The learning agent is given the task of sequentially picking layers of a CNN model. By discretizing and limiting the layer parameters to choose from, the agent is left with a finite but large space of model architectures to search from. The agent learns through random exploration and slowly begins to exploit its findings to select higher performing models using the $\\epsilon \\cdot$ - greedy strategy (Mnih et al., 2015). The agent receives the validation accuracy on the given machine learning task as the reward for selecting an architecture. We expedite the learning process through repeated memory sampling using experience replay (Lin, 1993). We refer to this $Q$ -learning based meta-modeling method as MetaQNN, which is summarized in Figure 1.1 ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
713,
|
| 88 |
+
825,
|
| 89 |
+
866
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "We conduct experiments with a space of model architectures consisting of only standard convolution, pooling, and fully connected layers using three standard image classification datasets: CIFAR-10, ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
178,
|
| 98 |
+
875,
|
| 99 |
+
823,
|
| 100 |
+
901
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/46d5c58f33c694a26ef479826deb91e729210b90ab747d2d227eb608e4fdeb87.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"Figure 1: Designing CNN Architectures with $Q$ -learning: The agent begins by sampling a Convolutional Neural Network (CNN) topology conditioned on a predefined behavior distribution and the agent’s prior experience (left block). That CNN topology is then trained on a specific task; the topology description and performance, e.g. validation accuracy, are then stored in the agent’s memory (middle block). Finally, the agent uses its memories to learn about the space of CNN topologies through $Q$ -learning (right block). "
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
184,
|
| 113 |
+
104,
|
| 114 |
+
795,
|
| 115 |
+
223
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "SVHN, and MNIST. The learning agent discovers CNN architectures that beat all existing networks designed only with the same layer types (e.g., Springenberg et al. (2014); Srivastava et al. (2015)). In addition, their performance is competitive against network designs that include complex layer types and training procedures (e.g., Clevert et al. (2015); Lee et al. (2016)). Finally, the MetaQNN selected models comfortably outperform previous automated network design methods (Stanley & Miikkulainen, 2002; Bergstra et al., 2013). The top network designs discovered by the agent on one dataset are also competitive when trained on other datasets, indicating that they are suited for transfer learning tasks. Moreover, we can generate not just one, but several varied, well-performing network designs, which can be ensembled to further boost the prediction performance. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
351,
|
| 125 |
+
825,
|
| 126 |
+
477
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "2 RELATED WORK ",
|
| 133 |
+
"text_level": 1,
|
| 134 |
+
"bbox": [
|
| 135 |
+
176,
|
| 136 |
+
501,
|
| 137 |
+
344,
|
| 138 |
+
516
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "Designing neural network architectures: Research on automating neural network design goes back to the 1980s when genetic algorithm-based approaches were proposed to find both architectures and weights (Schaffer et al., 1992). However, to the best of our knowledge, networks designed with genetic algorithms, such as those generated with the NEAT algorithm (Stanley & Miikkulainen, 2002), have been unable to match the performance of hand-crafted networks on standard benchmarks (Verbancsics & Harguess, 2013). Other biologically inspired ideas have also been explored; motivated by screening methods in genetics, Pinto et al. (2009) proposed a high-throughput network selection approach where they randomly sample thousands of architectures and choose promising ones for further training. In recent work, Saxena & Verbeek (2016) propose to sidestep the architecture selection process through densely connected networks of layers, which come closer to the performance of hand-crafted networks. ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
535,
|
| 148 |
+
825,
|
| 149 |
+
686
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "Bayesian optimization has also been used (Shahriari et al., 2016) for automatic selection of network architectures (Bergstra et al., 2013; Domhan et al., 2015) and hyperparameters (Snoek et al., 2012; Swersky et al., 2013). Notably, Bergstra et al. (2013) proposed a meta-modeling approach based on Tree of Parzen Estimators (TPE) (Bergstra et al., 2011) to choose both the type of layers and hyperparameters of feed-forward networks; however, they fail to match the performance of handcrafted networks. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
694,
|
| 159 |
+
825,
|
| 160 |
+
777
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Reinforcement Learning: Recently there has been much work at the intersection of reinforcement learning and deep learning. For instance, methods using CNNs to approximate the $Q$ -learning utility function (Watkins, 1989) have been successful in game-playing agents (Mnih et al., 2015; Silver et al., 2016) and robotic control (Lillicrap et al., 2015; Levine et al., 2016). These methods rely on phases of exploration, where the agent tries to learn about its environment through sampling, and exploitation, where the agent uses what it learned about the environment to find better paths. In traditional reinforcement learning settings, over-exploration can lead to slow convergence times, yet over-exploitation can lead to convergence to local minima (Kaelbling et al., 1996). However, in the case of large or continuous state spaces, the $\\epsilon$ -greedy strategy of learning has been empirically shown to converge (Vermorel & Mohri, 2005). Finally, when the state space is large or exploration is costly, the experience replay technique (Lin, 1993) has proved useful in experimental settings (Adam et al., 2012; Mnih et al., 2015). We incorporate these techniques— $Q$ -learning, the $\\epsilon$ -greedy strategy and experience replay—in our algorithm design. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
785,
|
| 170 |
+
825,
|
| 171 |
+
924
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
103,
|
| 181 |
+
823,
|
| 182 |
+
146
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "3 BACKGROUND ",
|
| 189 |
+
"text_level": 1,
|
| 190 |
+
"bbox": [
|
| 191 |
+
176,
|
| 192 |
+
166,
|
| 193 |
+
326,
|
| 194 |
+
183
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Our method relies on $Q$ -learning, a type of reinforcement learning. We now summarize the theoretical formulation of $Q$ -learning, as adopted to our problem. Consider the task of teaching an agent to find optimal paths as a Markov Decision Process (MDP) in a finite-horizon environment. Constraining the environment to be finite-horizon ensures that the agent will deterministically terminate in a finite number of time steps. In addition, we restrict the environment to have a discrete and finite state space $s$ as well as action space $\\mathcal { U }$ . For any state $s _ { i } \\in S$ , there is a finite set of actions, $\\mathcal { U } ( s _ { i } ) \\subseteq \\mathcal { U }$ , that the agent can choose from. In an environment with stochastic transitions, an agent in state $s _ { i }$ taking some action $u \\in \\mathcal { U } ( s _ { i } )$ will transition to state $s _ { j }$ with probability $p _ { s ^ { \\prime } | s , u } ( s _ { j } | s _ { i } , u )$ , which may be unknown to the agent. At each time step $t$ , the agent is given a reward $r _ { t }$ , dependent on the transition from state $s$ to $s ^ { \\prime }$ and action $u$ . $r _ { t }$ may also be stochastic according to a distribution $p _ { r | s ^ { \\prime } , s , u }$ . The agent’s goal is to maximize the total expected reward over all possible trajectories, i.e., $\\operatorname* { m i n } _ { \\mathbf { \\zeta } } { } _ { T _ { i } \\in \\mathcal { T } } { \\cal R } _ { T _ { i } }$ , where the total expected reward for a trajectory $\\mathcal { T } _ { i }$ is ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
173,
|
| 203 |
+
198,
|
| 204 |
+
825,
|
| 205 |
+
364
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "equation",
|
| 211 |
+
"img_path": "images/5927b27f356ba42e91e4a613fc362ee76bca291b5db7b09cc114b42b0bfaaa10.jpg",
|
| 212 |
+
"text": "$$\n\\begin{array} { r } { R _ { \\mathcal { T } _ { i } } = \\sum _ { ( s , u , s ^ { \\prime } ) \\in \\mathcal { T } _ { i } } \\mathbb { E } _ { r | s , u , s ^ { \\prime } } [ r | s , u , s ^ { \\prime } ] . } \\end{array}\n$$",
|
| 213 |
+
"text_format": "latex",
|
| 214 |
+
"bbox": [
|
| 215 |
+
369,
|
| 216 |
+
372,
|
| 217 |
+
629,
|
| 218 |
+
392
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 2
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "Though we limit the agent to a finite state and action space, there are still a combinatorially large number of trajectories, which motivates the use of reinforcement learning. We define the maximization problem recursively in terms of subproblems as follows. For any state $s _ { i } \\in S$ and subsequent action $u \\in \\mathcal { U } ( s _ { i } )$ , we define the maximum total expected reward to be $Q ^ { * } ( s _ { i } , u )$ . $Q ^ { * } ( \\cdot )$ is known as the action-value function and individual $Q ^ { * } ( s _ { i } , u )$ are know as $Q$ -values. The recursive maximization equation, which is known as Bellman’s Equation, can be written as ",
|
| 225 |
+
"bbox": [
|
| 226 |
+
173,
|
| 227 |
+
397,
|
| 228 |
+
825,
|
| 229 |
+
481
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 2
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "equation",
|
| 235 |
+
"img_path": "images/ef0e94ac1db4e47b4f8c492f0a1cdc6e797ddb4fe993c8e935c435b38a1c1598.jpg",
|
| 236 |
+
"text": "$$\n\\begin{array} { r } { Q ^ { * } ( s _ { i } , u ) = \\mathbb { E } _ { s _ { j } \\mid s _ { i } , u } \\left[ \\mathbb { E } _ { r \\mid s _ { i } , u , s _ { j } } [ r \\mid s _ { i } , u , s _ { j } ] + \\gamma \\operatorname* { m a x } _ { u ^ { \\prime } \\in \\mathcal { U } ( s _ { j } ) } Q ^ { * } ( s _ { j } , u ^ { \\prime } ) \\right] . } \\end{array}\n$$",
|
| 237 |
+
"text_format": "latex",
|
| 238 |
+
"bbox": [
|
| 239 |
+
258,
|
| 240 |
+
488,
|
| 241 |
+
740,
|
| 242 |
+
507
|
| 243 |
+
],
|
| 244 |
+
"page_idx": 2
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"type": "text",
|
| 248 |
+
"text": "In many cases, it is impossible to analytically solve Bellman’s Equation (Bertsekas, 2015), but it can be formulated as an iterative update ",
|
| 249 |
+
"bbox": [
|
| 250 |
+
176,
|
| 251 |
+
512,
|
| 252 |
+
823,
|
| 253 |
+
541
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 2
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "equation",
|
| 259 |
+
"img_path": "images/11cf16f74b6756b632c5c05b824dfd97ed13031d9f2a39e03093838d14986339.jpg",
|
| 260 |
+
"text": "$$\n\\begin{array} { r } { Q _ { t + 1 } ( s _ { i } , u ) = ( 1 - \\alpha ) Q _ { t } ( s _ { i } , u ) + \\alpha \\left[ r _ { t } + \\gamma \\operatorname* { m a x } _ { u ^ { \\prime } \\in \\mathcal { U } ( s _ { j } ) } Q _ { t } ( s _ { j } , u ^ { \\prime } ) \\right] . } \\end{array}\n$$",
|
| 261 |
+
"text_format": "latex",
|
| 262 |
+
"bbox": [
|
| 263 |
+
248,
|
| 264 |
+
546,
|
| 265 |
+
717,
|
| 266 |
+
566
|
| 267 |
+
],
|
| 268 |
+
"page_idx": 2
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"type": "text",
|
| 272 |
+
"text": "Equation 3 is the simplest form of $Q$ -learning proposed by Watkins (1989). For well formulated problems, $\\begin{array} { r } { \\operatorname* { l i m } _ { t \\to \\infty } \\bar { Q _ { t } } ( s , u ) = Q ^ { * } ( s , u ) } \\end{array}$ , as long as each transition is sampled infinitely many times (Bertsekas, 2015). The update equation has two parameters: (i) $\\alpha$ is a $Q$ -learning rate which determines the weight given to new information over old information, and (ii) $\\gamma$ is the discount factor which determines the weight given to short-term rewards over future rewards. The $Q$ -learning algorithm is model-free, in that the learning agent can solve the task without ever explicitly constructing an estimate of environmental dynamics. In addition, $Q$ -learning is off policy, meaning it can learn about optimal policies while exploring via a non-optimal behavioral distribution, i.e. the distribution by which the agent explores its environment. ",
|
| 273 |
+
"bbox": [
|
| 274 |
+
173,
|
| 275 |
+
571,
|
| 276 |
+
825,
|
| 277 |
+
698
|
| 278 |
+
],
|
| 279 |
+
"page_idx": 2
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"type": "text",
|
| 283 |
+
"text": "We choose the behavior distribution using an $\\epsilon$ -greedy strategy (Mnih et al., 2015). With this strategy, a random action is taken with probability $\\epsilon$ and the greedy action, $\\begin{array} { r } { \\operatorname* { m a x } _ { u \\in \\mathcal { U } ( s _ { i } ) } Q _ { t } \\mathopen { } \\mathclose \\bgroup \\left( s _ { i } , u \\aftergroup \\egroup \\right) } \\end{array}$ , is chosen with probability $1 - \\epsilon$ . We anneal $\\epsilon$ from $1 0$ such that the agent begins in an exploration phase and slowly starts moving towards the exploitation phase. In addition, when the exploration cost is large (which is true for our problem setting), it is beneficial to use the experience replay technique for faster convergence (Lin, 1992). In experience replay, the learning agent is provided with a memory of its past explored paths and rewards. At a given interval, the agent samples from the memory and updates its $Q$ -values via Equation 3. ",
|
| 284 |
+
"bbox": [
|
| 285 |
+
173,
|
| 286 |
+
704,
|
| 287 |
+
825,
|
| 288 |
+
815
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 2
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "4 DESIGNING NEURAL NETWORK ARCHITECTURES WITH $Q$ -LEARNING ",
|
| 295 |
+
"text_level": 1,
|
| 296 |
+
"bbox": [
|
| 297 |
+
171,
|
| 298 |
+
835,
|
| 299 |
+
784,
|
| 300 |
+
852
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 2
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"text": "We consider the task of training a learning agent to sequentially choose neural network layers. Figure 2 shows feasible state and action spaces (a) and a potential trajectory the agent may take along with the CNN architecture defined by this trajectory (b). We model the layer selection process as a Markov Decision Process with the assumption that a well-performing layer in one network should also perform well in another network. We make this assumption based on the hierarchical nature of the feature representations learned by neural networks with many hidden layers (LeCun et al., 2015). The agent sequentially selects layers via the $\\epsilon$ -greedy strategy until it reaches a termination state. The CNN architecture defined by the agent’s path is trained on the chosen learning problem, and the agent is given a reward equal to the validation accuracy. The validation accuracy and architecture description are stored in a replay memory, and experiences are sampled periodically from the replay memory to update $Q$ -values via Equation 3. The agent follows an $\\epsilon$ schedule which determines its shift from exploration to exploitation. ",
|
| 307 |
+
"bbox": [
|
| 308 |
+
174,
|
| 309 |
+
867,
|
| 310 |
+
825,
|
| 311 |
+
924
|
| 312 |
+
],
|
| 313 |
+
"page_idx": 2
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "image",
|
| 317 |
+
"img_path": "images/dee80030fc5fc1b6ad35a44d75d773edc835d64b20e4221813dc684b9dea8980.jpg",
|
| 318 |
+
"image_caption": [
|
| 319 |
+
"Figure 2: Markov Decision Process for CNN Architecture Generation: Figure 2(a) shows the full state and action space. In this illustration, actions are shown to be deterministic for clarity, but they are stochastic in experiments. $C ( n , f , l )$ denotes a convolutional layer with $n$ filters, receptive field size $f$ , and stride l. $P ( f , l )$ denotes a pooling layer with receptive field size $f$ and stride l. $G$ denotes a termination state (Softmax/Global Average Pooling). Figure 2(b) shows a path the agent may choose, highlighted in green, and the corresponding CNN topology. "
|
| 320 |
+
],
|
| 321 |
+
"image_footnote": [],
|
| 322 |
+
"bbox": [
|
| 323 |
+
174,
|
| 324 |
+
99,
|
| 325 |
+
826,
|
| 326 |
+
222
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 3
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "",
|
| 333 |
+
"bbox": [
|
| 334 |
+
174,
|
| 335 |
+
369,
|
| 336 |
+
825,
|
| 337 |
+
481
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 3
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "text",
|
| 343 |
+
"text": "Our method requires three main design choices: (i) reducing CNN layer definitions to simple state tuples, (ii) defining a set of actions the agent may take, i.e., the set of layers the agent may pick next given its current state, and (iii) balancing the size of the state-action space—and correspondingly, the model capacity—with the amount of exploration needed by the agent to converge. We now describe the design choices and the learning process in detail. ",
|
| 344 |
+
"bbox": [
|
| 345 |
+
174,
|
| 346 |
+
488,
|
| 347 |
+
825,
|
| 348 |
+
558
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 3
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "4.1 THE STATE SPACE ",
|
| 355 |
+
"text_level": 1,
|
| 356 |
+
"bbox": [
|
| 357 |
+
176,
|
| 358 |
+
602,
|
| 359 |
+
341,
|
| 360 |
+
616
|
| 361 |
+
],
|
| 362 |
+
"page_idx": 3
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"type": "text",
|
| 366 |
+
"text": "Each state is defined as a tuple of all relevant layer parameters. We allow five different types of layers: convolution (C), pooling (P), fully connected (FC), global average pooling (GAP), and softmax (SM), though the general method is not limited to this set. Table 1 shows the relevant parameters for each layer type and also the discretization we chose for each parameter. Each layer has a parameter layer depth (shown as Layer $1 , 2 , \\ldots$ in Figure 2). Adding layer depth to the state space allows us to constrict the action space such that the state-action graph is directed and acyclic (DAG) and also allows us to specify a maximum number of layers the agent may select before terminating. ",
|
| 367 |
+
"bbox": [
|
| 368 |
+
174,
|
| 369 |
+
638,
|
| 370 |
+
825,
|
| 371 |
+
736
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 3
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "Each layer type also has a parameter called representation size $R$ -size). Convolutional nets progressively compress the representation of the original signal through pooling and convolution. The presence of these layers in our state space may lead the agent on a trajectory where the intermediate signal representation gets reduced to a size that is too small for further processing. For example, five $2 \\times 2$ pooling layers each with stride 2 will reduce an image of initial size $3 2 \\times 3 2$ to size $1 \\times 1$ . At this stage, further pooling, or convolution with receptive field size greater than 1, would be meaningless and degenerate. To avoid such scenarios, we add the $R$ -size parameter to the state tuple $s$ , which allows us to restrict actions from states with $R$ -size $n$ to those that have a receptive field size less than or equal to $n$ . To further constrict the state space, we chose to bin the representation sizes into three discrete buckets. However, binning adds uncertainty to the state transitions: depending on the true underlying representation size, a pooling layer may or may not change the $R$ -size bin. As a result, the action of pooling can lead to two different states, which we model as stochasticity in state transitions. Please see Figure A1 in appendix for an illustrated example. ",
|
| 378 |
+
"bbox": [
|
| 379 |
+
174,
|
| 380 |
+
743,
|
| 381 |
+
825,
|
| 382 |
+
924
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 3
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "table",
|
| 388 |
+
"img_path": "images/fb543ef1fbe7f8639d321846cd82d1fd9ded4647a7073b64fe76386290ecd552.jpg",
|
| 389 |
+
"table_caption": [],
|
| 390 |
+
"table_footnote": [
|
| 391 |
+
"Table 1: Experimental State Space. For each layer type, we list the relevant parameters and the values each parameter is allowed to take. "
|
| 392 |
+
],
|
| 393 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Layer Type</td><td rowspan=1 colspan=1>LayerParameters</td><td rowspan=1 colspan=1>ParameterValues</td></tr><tr><td rowspan=1 colspan=1>Convolution (C)</td><td rowspan=1 colspan=1>i~Layer depthf~Receptive field sizel~Strided ~ # receptive fieldsn ~ Representation size</td><td rowspan=1 colspan=1><12Square. ∈ {1,3,5}Square.Always equal to 1∈{64,128,256,512}∈{(,8],(8,4],(4,1]}</td></tr><tr><td rowspan=1 colspan=1>Pooling (P)</td><td rowspan=1 colspan=1>i~Layer depth(f,l)~ (Receptive field size, Strides)n ~ Representation size</td><td rowspan=1 colspan=1><12Square.∈{(5,3),(3,2),(2,2)}∈{(∞,8],(8,4] and (4,1]}</td></tr><tr><td rowspan=1 colspan=1>Fully Connected (FC)</td><td rowspan=1 colspan=1>i~Layerdepthn ~ # consecutive FC layersd ~# neurons</td><td rowspan=1 colspan=1><12<3∈ {512,256,128}</td></tr><tr><td rowspan=1 colspan=1>Termination State</td><td rowspan=1 colspan=1>S~Previous Statet~Type</td><td rowspan=1 colspan=1>Global Avg.Pooling/Softmax</td></tr></table>",
|
| 394 |
+
"bbox": [
|
| 395 |
+
199,
|
| 396 |
+
101,
|
| 397 |
+
799,
|
| 398 |
+
281
|
| 399 |
+
],
|
| 400 |
+
"page_idx": 4
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"type": "text",
|
| 404 |
+
"text": "4.2 THE ACTION SPACE ",
|
| 405 |
+
"text_level": 1,
|
| 406 |
+
"bbox": [
|
| 407 |
+
174,
|
| 408 |
+
348,
|
| 409 |
+
352,
|
| 410 |
+
363
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 4
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "text",
|
| 416 |
+
"text": "We restrict the agent from taking certain actions to both limit the state-action space and make learning tractable. First, we allow the agent to terminate a path at any point, i.e. it may choose a termination state from any non-termination state. In addition, we only allow transitions for a state with layer depth $i$ to a state with layer depth $i + 1$ , which ensures that there are no loops in the graph. This constraint ensures that the state-action graph is always a DAG. Any state at the maximum layer depth, as prescribed in Table 1, may only transition to a termination layer. ",
|
| 417 |
+
"bbox": [
|
| 418 |
+
174,
|
| 419 |
+
375,
|
| 420 |
+
825,
|
| 421 |
+
458
|
| 422 |
+
],
|
| 423 |
+
"page_idx": 4
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"type": "text",
|
| 427 |
+
"text": "Next, we limit the number of fully connected (FC) layers to be at maximum two, because a large number of FC layers can lead to too may learnable parameters. The agent at a state with type FC may transition to another state with type FC if and only if the number of consecutive FC states is less than the maximum allowed. Furthermore, a state $s$ of type FC with number of neurons $d$ may only transition to either a termination state or a state $s ^ { \\prime }$ of type FC with number of neurons $d ^ { \\prime } \\leq d$ . ",
|
| 428 |
+
"bbox": [
|
| 429 |
+
174,
|
| 430 |
+
465,
|
| 431 |
+
825,
|
| 432 |
+
535
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 4
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "An agent at a state of type convolution (C) may transition to a state with any other layer type. An agent at a state with layer type pooling (P) may transition to a state with any other layer type other than another $\\mathrm { \\bf P }$ state because consecutive pooling layers are equivalent to a single, larger pooling layer which could lie outside of our chosen state space. Furthermore, only states with representation size in bins (8, 4] and (4, 1] may transition to an FC layer, which ensures that the number of weights does not become unreasonably huge. Note that a majority of these constraints are in place to enable faster convergence on our limited hardware (see Section 5) and not a limitation of the method in itself. ",
|
| 439 |
+
"bbox": [
|
| 440 |
+
174,
|
| 441 |
+
541,
|
| 442 |
+
825,
|
| 443 |
+
652
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 4
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "text",
|
| 449 |
+
"text": "4.3 $Q$ -LEARNING TRAINING PROCEDURE ",
|
| 450 |
+
"text_level": 1,
|
| 451 |
+
"bbox": [
|
| 452 |
+
176,
|
| 453 |
+
671,
|
| 454 |
+
472,
|
| 455 |
+
685
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 4
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "For the iterative $Q$ -learning updates (Equation 3), we set the $Q$ -learning rate $( \\alpha )$ to 0.01. In addition, we set the discount factor $( \\gamma )$ to 1 to not over-prioritize short-term rewards. We decrease $\\epsilon$ from 1.0 to 0.1 in steps, where the step-size is defined by the number of unique models trained (Table 2). At $\\epsilon = 1 . 0$ , the agent samples CNN architecture with a random walk along a uniformly weighted Markov chain. Every topology sampled by the agent is trained using the procedure described in Section 5, and the prediction performance of this network topology on the validation set is recorded. We train a larger number of models at $\\epsilon = 1 . 0$ as compared to other values of $\\epsilon$ to ensure that the agent has adequate time to explore before it begins to exploit. We stop the agent at $\\epsilon = 0 . 1$ (and not at $\\epsilon = 0$ ) to obtain a stochastic final policy, which generates perturbations of the global minimum.2 Ideally, we want to identify several well-performing model topologies, which can then be ensembled to improve prediction performance. ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
173,
|
| 464 |
+
696,
|
| 465 |
+
826,
|
| 466 |
+
851
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 4
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "During the entire training process (starting at $\\epsilon = 1 . 0$ ), we maintain a replay dictionary which stores (i) the network topology and (ii) prediction performance on a validation set, for all of the sampled ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
174,
|
| 475 |
+
857,
|
| 476 |
+
821,
|
| 477 |
+
886
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 4
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "table",
|
| 483 |
+
"img_path": "images/f11bc8b6423eda9378277a460cf23802eea7aa8b7e0c5247c91b8439f4a38f24.jpg",
|
| 484 |
+
"table_caption": [],
|
| 485 |
+
"table_footnote": [],
|
| 486 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>E</td><td rowspan=1 colspan=1>1.0</td><td rowspan=1 colspan=1>0.9</td><td rowspan=1 colspan=1>0.8</td><td rowspan=1 colspan=1>0.7</td><td rowspan=1 colspan=1>0.6</td><td rowspan=1 colspan=1>0.5</td><td rowspan=1 colspan=1>0.4</td><td rowspan=1 colspan=1>0.3</td><td rowspan=1 colspan=1>0.2</td><td rowspan=1 colspan=1>0.1</td></tr><tr><td rowspan=1 colspan=1>#ModelsTrained</td><td rowspan=1 colspan=1>1500</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>100</td><td rowspan=1 colspan=1>150</td><td rowspan=1 colspan=1>150</td><td rowspan=1 colspan=1>150</td><td rowspan=1 colspan=1>150</td><td rowspan=1 colspan=1>150</td><td rowspan=1 colspan=1>150</td></tr></table>",
|
| 487 |
+
"bbox": [
|
| 488 |
+
199,
|
| 489 |
+
101,
|
| 490 |
+
797,
|
| 491 |
+
132
|
| 492 |
+
],
|
| 493 |
+
"page_idx": 5
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"type": "text",
|
| 497 |
+
"text": "Table 2: \u000f Schedule. The learning agent trains the specified number of unique models at each \u000f. ",
|
| 498 |
+
"bbox": [
|
| 499 |
+
184,
|
| 500 |
+
142,
|
| 501 |
+
807,
|
| 502 |
+
157
|
| 503 |
+
],
|
| 504 |
+
"page_idx": 5
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"type": "text",
|
| 508 |
+
"text": "models. If a model that has already been trained is re-sampled, it is not re-trained, but instead the previously found validation accuracy is presented to the agent. After each model is sampled and trained, the agent randomly samples 100 models from the replay dictionary and applies the $Q$ -value update defined in Equation 3 for all transitions in each sampled sequence. The $Q$ -value update is applied to the transitions in temporally reversed order, which has been shown to speed up $Q$ -values convergence (Lin, 1993). ",
|
| 509 |
+
"bbox": [
|
| 510 |
+
174,
|
| 511 |
+
172,
|
| 512 |
+
825,
|
| 513 |
+
257
|
| 514 |
+
],
|
| 515 |
+
"page_idx": 5
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"type": "text",
|
| 519 |
+
"text": "5 EXPERIMENT DETAILS ",
|
| 520 |
+
"text_level": 1,
|
| 521 |
+
"bbox": [
|
| 522 |
+
176,
|
| 523 |
+
277,
|
| 524 |
+
395,
|
| 525 |
+
294
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 5
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "During the model exploration phase, we trained each network topology with a quick and aggressive training scheme. For each experiment, we created a validation set by randomly taking 5,000 samples from the training set such that the resulting class distributions were unchanged. For every network, a dropout layer was added after every two layers. The $i ^ { t h }$ dropout layer, out of a total $n$ dropout layers, had a dropout probability of $\\dot { \\frac { \\ i } { 2 n } }$ . Each model was trained for a total of 20 epochs with the Adam optimizer (Kingma & Ba, 2014) with $\\beta _ { 1 } = 0 . 9$ , $\\beta _ { 2 } = 0 . 9 9 9$ , $\\varepsilon = 1 0 ^ { - 8 }$ . The batch size was set to 128, and the initial learning rate was set to 0.001. If the model failed to perform better than a random predictor after the first epoch, we reduced the learning rate by a factor of 0.4 and restarted training, for a maximum of 5 restarts. For models that started learning (i.e., performed better than a random predictor), we reduced the learning rate by a factor of 0.2 every 5 epochs. All weights were initialized with Xavier initialization (Glorot & Bengio, 2010). Our experiments using Caffe (Jia et al., 2014) took 8-10 days to complete for each dataset with a hardware setup consisting of 10 NVIDIA GPUs. ",
|
| 532 |
+
"bbox": [
|
| 533 |
+
173,
|
| 534 |
+
310,
|
| 535 |
+
825,
|
| 536 |
+
492
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 5
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "After the agent completed the $\\epsilon$ schedule (Table 2), we selected the top ten models that were found over the course of exploration. These models were then finetuned using a much longer training schedule, and only the top five were used for ensembling. We now provide details of the datasets and the finetuning process. ",
|
| 543 |
+
"bbox": [
|
| 544 |
+
174,
|
| 545 |
+
500,
|
| 546 |
+
825,
|
| 547 |
+
555
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 5
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "text",
|
| 553 |
+
"text": "The Street View House Numbers (SVHN) dataset has 10 classes with a total of 73,257 samples in the original training set, 26,032 samples in the test set, and 531,131 additional samples in the extended training set. During the exploration phase, we only trained with the original training set, using 5,000 random samples as validation. We finetuned the top ten models with the original plus extended training set, by creating preprocessed training and validation sets as described by Lee et al. (2016). Our final learning rate schedule after tuning on validation set was 0.025 for 5 epochs, 0.0125 for 5 epochs, 0.0001 for 20 epochs, and 0.00001 for 10 epochs. ",
|
| 554 |
+
"bbox": [
|
| 555 |
+
174,
|
| 556 |
+
563,
|
| 557 |
+
825,
|
| 558 |
+
660
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 5
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "text",
|
| 564 |
+
"text": "CIFAR-10, the 10 class tiny image dataset, has 50,000 training samples and 10,000 testing samples. During the exploration phase, we took 5,000 random samples from the training set for validation. The maximum layer depth was increased to 18. After the experiment completed, we used the same validation set to tune hyperparameters, resulting in a final training scheme which we ran on the entire training set. In the final training scheme, we set a learning rate of 0.025 for 40 epochs, 0.0125 for 40 epochs, 0.0001 for 160 epochs, and 0.00001 for 60 epochs, with all other parameters unchanged. During this phase, we preprocess using global contrast normalization and use moderate data augmentation, which consists of random mirroring and random translation by up to 5 pixels. ",
|
| 565 |
+
"bbox": [
|
| 566 |
+
173,
|
| 567 |
+
667,
|
| 568 |
+
825,
|
| 569 |
+
779
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 5
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "MNIST, the 10 class handwritten digits dataset, has 60,000 training samples and 10,000 testing samples. We preprocessed each image with global mean subtraction. In the final training scheme, we trained each model for 40 epochs and decreased learning rate every 5 epochs by a factor of 0.2. For further tuning details please see Appendix C. ",
|
| 576 |
+
"bbox": [
|
| 577 |
+
174,
|
| 578 |
+
785,
|
| 579 |
+
825,
|
| 580 |
+
842
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 5
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "6 RESULTS ",
|
| 587 |
+
"text_level": 1,
|
| 588 |
+
"bbox": [
|
| 589 |
+
174,
|
| 590 |
+
863,
|
| 591 |
+
281,
|
| 592 |
+
878
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 5
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "Model Selection Analysis: From $Q$ -learning principles, we expect the learning agent to improve in its ability to pick network topologies as $\\epsilon$ reduces and the agent enters the exploitation phase. In ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
173,
|
| 601 |
+
895,
|
| 602 |
+
823,
|
| 603 |
+
924
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 5
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "image",
|
| 609 |
+
"img_path": "images/32552c045952a2108296dbbf36564ad8f0b5f3075473a34e23667ff0fce72559.jpg",
|
| 610 |
+
"image_caption": [],
|
| 611 |
+
"image_footnote": [],
|
| 612 |
+
"bbox": [
|
| 613 |
+
506,
|
| 614 |
+
104,
|
| 615 |
+
795,
|
| 616 |
+
267
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 6
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "image",
|
| 622 |
+
"img_path": "images/818d2c4b19fb2d138b036e932e80d2c5a38257b0bfc2910a1ad197b14962fe53.jpg",
|
| 623 |
+
"image_caption": [
|
| 624 |
+
"Figure 3: $Q$ -Learning Performance. In the plots, the blue line shows a rolling mean of model accuracy versus iteration, where in each iteration of the algorithm the agent is sampling a model. Each bar (in light blue) marks the average accuracy over all models that were sampled during the exploration phase with the labeled $\\epsilon$ . As $\\epsilon$ decreases, the average accuracy goes up, demonstrating that the agent learns to select better-performing CNN architectures. "
|
| 625 |
+
],
|
| 626 |
+
"image_footnote": [],
|
| 627 |
+
"bbox": [
|
| 628 |
+
179,
|
| 629 |
+
104,
|
| 630 |
+
468,
|
| 631 |
+
267
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 6
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "table",
|
| 637 |
+
"img_path": "images/e6756f5171e6e93e0d5a10685b9b77948b6c19b9f05100ec2251976e9292687b.jpg",
|
| 638 |
+
"table_caption": [
|
| 639 |
+
"Table 3: Error Rate Comparison with CNNs that only use convolution, pooling, and fully connected layers. We report results for CIFAR-10 and CIFAR-100 with moderate data augmentation and results for MNIST and SVHN without any data augmentation. "
|
| 640 |
+
],
|
| 641 |
+
"table_footnote": [],
|
| 642 |
+
"table_body": "<table><tr><td>Method</td><td>CIFAR-10</td><td>SVHN</td><td>MNIST</td><td>CIFAR-100</td></tr><tr><td>Maxout (Goodfellow et al., 2013)</td><td>9.38</td><td>2.47</td><td>0.45</td><td>38.57</td></tr><tr><td>NIN (Lin et al., 2013)</td><td>8.81</td><td>2.35</td><td>0.47</td><td>35.68</td></tr><tr><td>FitNet (Romero et al., 2014)</td><td>8.39</td><td>2.42</td><td>0.51</td><td>35.04</td></tr><tr><td>HighWay (Srivastava et al.,2015)</td><td>7.72</td><td>-</td><td></td><td></td></tr><tr><td>VGGnet (Simonyan & Zisserman,2014)</td><td>7.25</td><td>=</td><td>=</td><td>=</td></tr><tr><td>All-CNN (Springenberg et al., 2014)</td><td>7.25</td><td>=</td><td>=</td><td>33.71</td></tr><tr><td>MetaQNN (ensemble)</td><td>7.32</td><td>2.06</td><td>0.32</td><td>-</td></tr><tr><td>MetaQNN (top model)</td><td>6.92</td><td>2.28</td><td>0.44</td><td>27.14*</td></tr></table>",
|
| 643 |
+
"bbox": [
|
| 644 |
+
223,
|
| 645 |
+
368,
|
| 646 |
+
772,
|
| 647 |
+
484
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 6
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "Figure 3, we plot the rolling mean of prediction accuracy over 100 models and the mean accuracy of models sampled at different $\\epsilon$ values, for the CIFAR-10 and SVHN experiments. The plots show that, while the prediction accuracy remains flat during the exploration phase $\\epsilon = 1$ ) as expected, the agent consistently improves in its ability to pick better-performing models as $\\epsilon$ reduces from 1 to 0.1. For example, the mean accuracy of models in the SVHN experiment increases from $5 2 . 2 5 \\%$ at $\\epsilon = 1$ to $8 8 . 0 2 \\%$ at $\\epsilon = 0 . 1$ . Furthermore, we demonstrate the stability of the $Q$ -learning procedure with 10 independent runs on a subset of the SVHN dataset in Section D.1 of the Appendix. Additional analysis of $Q$ -learning results can be found in Section D.2. ",
|
| 654 |
+
"bbox": [
|
| 655 |
+
173,
|
| 656 |
+
561,
|
| 657 |
+
825,
|
| 658 |
+
674
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 6
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "The top models selected by the $Q$ -learning agent vary in the number of parameters but all demonstrate high performance (see Appendix Tables 1-3). For example, the number of parameters for the top five CIFAR-10 models range from 11.26 million to 1.10 million, with only a $2 . 3 2 \\%$ decrease in test error. We find design motifs common to the top hand-crafted network architectures as well. For example, the agent often chooses a layer of type $C ( N , 1 , 1 )$ as the first layer in the network. These layers generate $N$ learnable linear transformations of the input data, which is similar in spirit to preprocessing of input data from RGB to a different color spaces such as YUV, as found in prior work (Sermanet et al., 2012; 2013). ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
173,
|
| 667 |
+
680,
|
| 668 |
+
825,
|
| 669 |
+
791
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 6
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "Prediction Performance: We compare the prediction performance of the MetaQNN networks discovered by the $Q$ -learning agent with state-of-the-art methods on three datasets. We report the accuracy of our best model, along with an ensemble of top five models. First, we compare MetaQNN with six existing architectures that are designed with standard convolution, pooling, and fully-connected layers alone, similar to our designs. As seen in Table 3, our top model alone, as well as the committee ensemble of five models, outperforms all similar models. Next, we compare our results with six top networks overall, which contain complex layer types and design ideas, including generalized pooling functions, residual connections, and recurrent modules. Our results are competitive with these methods as well (Table 4). Finally, our method outperforms existing automated network design methods. MetaQNN obtains an error of $6 . 9 2 \\%$ as compared to $2 1 . 2 \\%$ reported by Bergstra et al. (2011) on CIFAR-10; and it obtains an error of $0 . 3 2 \\%$ as compared to $7 . 9 \\%$ reported by Verbancsics & Harguess (2013) on MNIST. ",
|
| 676 |
+
"bbox": [
|
| 677 |
+
173,
|
| 678 |
+
797,
|
| 679 |
+
825,
|
| 680 |
+
924
|
| 681 |
+
],
|
| 682 |
+
"page_idx": 6
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"type": "table",
|
| 686 |
+
"img_path": "images/04dac518be9d1dbeb26306298594acaa705c872c5f3c9d6f7e2cab33fe2aad4e.jpg",
|
| 687 |
+
"table_caption": [
|
| 688 |
+
"Table 4: Error Rate Comparison with state-of-the-art methods with complex layer types. We report results for CIFAR-10 and CIFAR-100 with moderate data augmentation and results for MNIST and SVHN without any data augmentation. "
|
| 689 |
+
],
|
| 690 |
+
"table_footnote": [],
|
| 691 |
+
"table_body": "<table><tr><td>Method</td><td>CIFAR-10</td><td>SVHN</td><td>MNIST</td><td>CIFAR-100</td></tr><tr><td>DropConnect (Wan et al., 2013)</td><td>9.32</td><td>1.94</td><td>0.57</td><td></td></tr><tr><td>DSN (Lee et al., 2015)</td><td>8.22</td><td>1.92</td><td>0.39</td><td>34.57</td></tr><tr><td>R-CNN (Liang& Hu,2015)</td><td>7.72</td><td>1.77</td><td>0.31</td><td>31.75</td></tr><tr><td>MetaQNN (ensemble)</td><td>7.32</td><td>2.06</td><td>0.32</td><td>-</td></tr><tr><td>MetaQNN (top model)</td><td>6.92</td><td>2.28</td><td>0.44</td><td>27.14*</td></tr><tr><td>Resnet(110) (He et al.,2015)</td><td>6.61</td><td>1</td><td></td><td></td></tr><tr><td>Resnet(1001) (He et al.,2016)</td><td>4.62</td><td>=</td><td>=</td><td>22.71</td></tr><tr><td>ELU (Clevert et al., 2015)</td><td>6.55</td><td>=</td><td>=</td><td>24.28</td></tr><tr><td>Tree+Max-Avg (Lee et al.,2016)</td><td>6.05</td><td>1.69</td><td>0.31</td><td>32.37</td></tr></table>",
|
| 692 |
+
"bbox": [
|
| 693 |
+
246,
|
| 694 |
+
101,
|
| 695 |
+
751,
|
| 696 |
+
229
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 7
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "table",
|
| 702 |
+
"img_path": "images/5bca5f49fd7e7bdf163b04f713552739e09b18b7c8a5590e1d004c1fc457ca0c.jpg",
|
| 703 |
+
"table_caption": [
|
| 704 |
+
"Table 5: Prediction Error for the top MetaQNN (CIFAR-10) model trained for other tasks. Finetuning refers to initializing training with the weights found for the optimal CIFAR-10 model. "
|
| 705 |
+
],
|
| 706 |
+
"table_footnote": [],
|
| 707 |
+
"table_body": "<table><tr><td>Dataset</td><td>CIFAR-100</td><td>SVHN</td><td>MNIST</td></tr><tr><td>Training from scratch</td><td>27.14</td><td>2.48</td><td>0.80</td></tr><tr><td>Finetuning</td><td>34.93</td><td>4.00</td><td>0.81</td></tr><tr><td>State-of-the-art</td><td>24.28 (Clevert et al.,2015)</td><td>1.69 (Lee et al., 2016)</td><td>0.31 (Lee et al.,2016)</td></tr></table>",
|
| 708 |
+
"bbox": [
|
| 709 |
+
184,
|
| 710 |
+
297,
|
| 711 |
+
812,
|
| 712 |
+
353
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 7
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "",
|
| 719 |
+
"bbox": [
|
| 720 |
+
174,
|
| 721 |
+
421,
|
| 722 |
+
825,
|
| 723 |
+
463
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 7
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "The difference in validation error between the top 10 models for MNIST was very small, so we also created an ensemble with all 10 models. This ensemble achieved a test error of ${ \\bf0 . 2 8 \\% }$ —which beats the current state-of-the-art on MNIST without data augmentation. ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
174,
|
| 732 |
+
469,
|
| 733 |
+
825,
|
| 734 |
+
512
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 7
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "The best CIFAR-10 model performs $1 \\%$ better than the four next best models, which is why the ensemble accuracy is lower than the best model’s accuracy. We posit that the CIFAR-10 MetaQNN did not have adequate exploration time given the larger state space compared to that of the SVHN experiment, causing it to not find more models with performance similar to the best model. Furthermore, the coarse training scheme could have been not as well suited for CIFAR-10 as it was for SVHN, causing some models to under perform. ",
|
| 741 |
+
"bbox": [
|
| 742 |
+
174,
|
| 743 |
+
520,
|
| 744 |
+
825,
|
| 745 |
+
603
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 7
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "Transfer Learning Ability: Network designs such as VGGnet (Simonyan & Zisserman, 2014) can be adopted to solve a variety of computer vision problems. To check if the MetaQNN networks provide similar transfer learning ability, we use the best MetaQNN model on the CIFAR-10 dataset for training other computer vision tasks. The model performs well (Table 5) both when training from random initializations, and finetuning from existing weights. ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
174,
|
| 754 |
+
609,
|
| 755 |
+
825,
|
| 756 |
+
680
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 7
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "7 CONCLUDING REMARKS ",
|
| 763 |
+
"text_level": 1,
|
| 764 |
+
"bbox": [
|
| 765 |
+
176,
|
| 766 |
+
703,
|
| 767 |
+
411,
|
| 768 |
+
719
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 7
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "Neural networks are being used in an increasingly wide variety of domains, which calls for scalable solutions to produce problem-specific model architectures. We take a step towards this goal and show that a meta-modeling approach using reinforcement learning is able to generate tailored CNN designs for different image classification tasks. Our MetaQNN networks outperform previous metamodeling methods as well as hand-crafted networks which use the same types of layers. ",
|
| 775 |
+
"bbox": [
|
| 776 |
+
174,
|
| 777 |
+
737,
|
| 778 |
+
823,
|
| 779 |
+
806
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 7
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "text",
|
| 785 |
+
"text": "While we report results for image classification problems, our method could be applied to different problem settings, including supervised (e.g., classification, regression) and unsupervised (e.g., autoencoders). The MetaQNN method could also aid constraint-based network design, by optimizing parameters such as size, speed, and accuracy. For instance, one could add a threshold in the state-action space barring the agent from creating models larger than the desired limit. In addition, one could modify the reward function to penalize large models for constraining memory or penalize slow forward passes to incentivize quick inference. ",
|
| 786 |
+
"bbox": [
|
| 787 |
+
174,
|
| 788 |
+
813,
|
| 789 |
+
823,
|
| 790 |
+
883
|
| 791 |
+
],
|
| 792 |
+
"page_idx": 7
|
| 793 |
+
},
|
| 794 |
+
{
|
| 795 |
+
"type": "text",
|
| 796 |
+
"text": "",
|
| 797 |
+
"bbox": [
|
| 798 |
+
173,
|
| 799 |
+
103,
|
| 800 |
+
823,
|
| 801 |
+
132
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 8
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "There are several future avenues for research in reinforcement learning-driven network design as well. In our current implementation, we use the same set of hyperparameters to train all network topologies during the $Q$ -learning phase and further finetune the hyperparameters for top models selected by the MetaQNN agent. However, our approach could be combined with hyperparameter optimization methods to further automate the network design process. Moreover, we constrict the state-action space using coarse, discrete bins to accelerate convergence. It would be possible to move to larger state-action spaces using methods for $Q$ -function approximation (Bertsekas, 2015; Mnih et al., 2015). ",
|
| 808 |
+
"bbox": [
|
| 809 |
+
174,
|
| 810 |
+
138,
|
| 811 |
+
825,
|
| 812 |
+
251
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 8
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 819 |
+
"text_level": 1,
|
| 820 |
+
"bbox": [
|
| 821 |
+
176,
|
| 822 |
+
266,
|
| 823 |
+
326,
|
| 824 |
+
280
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 8
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "We thank Peter Downs for creating the project website and contributing to illustrations. We acknowledge Center for Bits and Atoms at MIT for their help with computing resources. Finally, we thank members of Camera Culture group at MIT Media Lab for their help and support. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
176,
|
| 833 |
+
290,
|
| 834 |
+
821,
|
| 835 |
+
332
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 8
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "REFERENCES ",
|
| 842 |
+
"text_level": 1,
|
| 843 |
+
"bbox": [
|
| 844 |
+
176,
|
| 845 |
+
353,
|
| 846 |
+
285,
|
| 847 |
+
368
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 8
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "Sander Adam, Lucian Busoniu, and Robert Babuska. Experience replay for real-time reinforcement learning control. IEEE Transactions on Systems, Man, and Cybernetics, Part C (Applications and Reviews), 42(2):201–212, 2012. ",
|
| 854 |
+
"bbox": [
|
| 855 |
+
176,
|
| 856 |
+
376,
|
| 857 |
+
823,
|
| 858 |
+
419
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 8
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "James Bergstra, Daniel Yamins, and David D Cox. Making a science of model search: Hyperparameter optimization in hundreds of dimensions for vision architectures. ICML (1), 28:115–123, 2013. ",
|
| 865 |
+
"bbox": [
|
| 866 |
+
174,
|
| 867 |
+
428,
|
| 868 |
+
821,
|
| 869 |
+
469
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 8
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "James S Bergstra, Remi Bardenet, Yoshua Bengio, and Bal ´ azs K ´ egl. Algorithms for hyper-parameter ´ optimization. NIPS, pp. 2546–2554, 2011. ",
|
| 876 |
+
"bbox": [
|
| 877 |
+
171,
|
| 878 |
+
479,
|
| 879 |
+
825,
|
| 880 |
+
508
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 8
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "text",
|
| 886 |
+
"text": "Dimitri P Bertsekas. Convex optimization algorithms. Athena Scientific Belmont, 2015. ",
|
| 887 |
+
"bbox": [
|
| 888 |
+
171,
|
| 889 |
+
516,
|
| 890 |
+
751,
|
| 891 |
+
532
|
| 892 |
+
],
|
| 893 |
+
"page_idx": 8
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "text",
|
| 897 |
+
"text": "Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network ´ learning by exponential linear units (ELUs). arXiv preprint arXiv:1511.07289, 2015. ",
|
| 898 |
+
"bbox": [
|
| 899 |
+
173,
|
| 900 |
+
541,
|
| 901 |
+
821,
|
| 902 |
+
570
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 8
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "text",
|
| 908 |
+
"text": "Tobias Domhan, Jost Tobias Springenberg, and Frank Hutter. Speeding up automatic hyperparameter optimization of deep neural networks by extrapolation of learning curves. IJCAI, 2015. ",
|
| 909 |
+
"bbox": [
|
| 910 |
+
171,
|
| 911 |
+
579,
|
| 912 |
+
821,
|
| 913 |
+
608
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 8
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "text",
|
| 919 |
+
"text": "Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. AISTATS, 9:249–256, 2010. ",
|
| 920 |
+
"bbox": [
|
| 921 |
+
171,
|
| 922 |
+
616,
|
| 923 |
+
823,
|
| 924 |
+
646
|
| 925 |
+
],
|
| 926 |
+
"page_idx": 8
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"type": "text",
|
| 930 |
+
"text": "Ian J Goodfellow, David Warde-Farley, Mehdi Mirza, Aaron C Courville, and Yoshua Bengio. Maxout networks. ICML (3), 28:1319–1327, 2013. ",
|
| 931 |
+
"bbox": [
|
| 932 |
+
169,
|
| 933 |
+
654,
|
| 934 |
+
823,
|
| 935 |
+
684
|
| 936 |
+
],
|
| 937 |
+
"page_idx": 8
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"type": "text",
|
| 941 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. arXiv preprint arXiv:1512.03385, 2015. ",
|
| 942 |
+
"bbox": [
|
| 943 |
+
169,
|
| 944 |
+
691,
|
| 945 |
+
823,
|
| 946 |
+
722
|
| 947 |
+
],
|
| 948 |
+
"page_idx": 8
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"type": "text",
|
| 952 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In European Conference on Computer Vision, pp. 630–645. Springer, 2016. ",
|
| 953 |
+
"bbox": [
|
| 954 |
+
171,
|
| 955 |
+
729,
|
| 956 |
+
823,
|
| 957 |
+
758
|
| 958 |
+
],
|
| 959 |
+
"page_idx": 8
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "text",
|
| 963 |
+
"text": "Yangqing Jia, Evan Shelhamer, Jeff Donahue, Sergey Karayev, Jonathan Long, Ross Girshick, Sergio Guadarrama, and Trevor Darrell. Caffe: Convolutional architecture for fast feature embedding. arXiv preprint arXiv:1408.5093, 2014. ",
|
| 964 |
+
"bbox": [
|
| 965 |
+
174,
|
| 966 |
+
767,
|
| 967 |
+
823,
|
| 968 |
+
810
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 8
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "Leslie Pack Kaelbling, Michael L Littman, and Andrew W Moore. Reinforcement learning: A survey. Journal of Artificial Intelligence Research, 4:237–285, 1996. ",
|
| 975 |
+
"bbox": [
|
| 976 |
+
173,
|
| 977 |
+
819,
|
| 978 |
+
823,
|
| 979 |
+
848
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 8
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 986 |
+
"bbox": [
|
| 987 |
+
174,
|
| 988 |
+
857,
|
| 989 |
+
823,
|
| 990 |
+
886
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 8
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015. ",
|
| 997 |
+
"bbox": [
|
| 998 |
+
174,
|
| 999 |
+
895,
|
| 1000 |
+
821,
|
| 1001 |
+
924
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 8
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "text",
|
| 1007 |
+
"text": "Chen-Yu Lee, Saining Xie, Patrick Gallagher, Zhengyou Zhang, and Zhuowen Tu. Deeplysupervised nets. AISTATS, 2(3):6, 2015. ",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
171,
|
| 1010 |
+
103,
|
| 1011 |
+
823,
|
| 1012 |
+
132
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 9
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "Chen-Yu Lee, Patrick W Gallagher, and Zhuowen Tu. Generalizing pooling functions in convolutional neural networks: Mixed, gated, and tree. International Conference on Artificial Intelligence and Statistics, 2016. ",
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
173,
|
| 1021 |
+
141,
|
| 1022 |
+
821,
|
| 1023 |
+
184
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 9
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. JMLR, 17(39):1–40, 2016. ",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
173,
|
| 1032 |
+
194,
|
| 1033 |
+
820,
|
| 1034 |
+
223
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 9
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "Ming Liang and Xiaolin Hu. Recurrent convolutional neural network for object recognition. CVPR, pp. 3367–3375, 2015. ",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
173,
|
| 1043 |
+
232,
|
| 1044 |
+
821,
|
| 1045 |
+
262
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 9
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015. ",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
171,
|
| 1054 |
+
271,
|
| 1055 |
+
823,
|
| 1056 |
+
314
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 9
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "text",
|
| 1062 |
+
"text": "Long-Ji Lin. Self-improving reactive agents based on reinforcement learning, planning and teaching. Machine Learning, 8(3-4):293–321, 1992. ",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
173,
|
| 1065 |
+
324,
|
| 1066 |
+
821,
|
| 1067 |
+
353
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 9
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "Long-Ji Lin. Reinforcement learning for robots using neural networks. Technical report, DTIC Document, 1993. ",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
173,
|
| 1076 |
+
362,
|
| 1077 |
+
821,
|
| 1078 |
+
392
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 9
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "Min Lin, Qiang Chen, and Shuicheng Yan. Network in network. arXiv preprint arXiv:1312.4400, 2013. ",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
171,
|
| 1087 |
+
400,
|
| 1088 |
+
823,
|
| 1089 |
+
430
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 9
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015. ",
|
| 1096 |
+
"bbox": [
|
| 1097 |
+
174,
|
| 1098 |
+
439,
|
| 1099 |
+
823,
|
| 1100 |
+
483
|
| 1101 |
+
],
|
| 1102 |
+
"page_idx": 9
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"type": "text",
|
| 1106 |
+
"text": "Nicolas Pinto, David Doukhan, James J DiCarlo, and David D Cox. A high-throughput screening approach to discovering good forms of biologically inspired visual representation. PLoS Computational Biology, 5(11):e1000579, 2009. ",
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
174,
|
| 1109 |
+
492,
|
| 1110 |
+
825,
|
| 1111 |
+
535
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 9
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014. ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
173,
|
| 1120 |
+
544,
|
| 1121 |
+
823,
|
| 1122 |
+
574
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 9
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "Shreyas Saxena and Jakob Verbeek. Convolutional neural fabrics. In Advances in Neural Information Processing Systems 29, pp. 4053–4061. 2016. ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
173,
|
| 1131 |
+
583,
|
| 1132 |
+
821,
|
| 1133 |
+
613
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 9
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "J David Schaffer, Darrell Whitley, and Larry J Eshelman. Combinations of genetic algorithms and neural networks: A survey of the state of the art. International Workshop on Combinations of Genetic Algorithms and Neural Networks, pp. 1–37, 1992. ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
173,
|
| 1142 |
+
621,
|
| 1143 |
+
825,
|
| 1144 |
+
665
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 9
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Pierre Sermanet, Soumith Chintala, and Yann LeCun. Convolutional neural networks applied to house numbers digit classification. ICPR, pp. 3288–3291, 2012. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
173,
|
| 1153 |
+
674,
|
| 1154 |
+
823,
|
| 1155 |
+
704
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 9
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "Pierre Sermanet, Koray Kavukcuoglu, Soumith Chintala, and Yann LeCun. Pedestrian detection with unsupervised multi-stage feature learning. CVPR, pp. 3626–3633, 2013. ",
|
| 1162 |
+
"bbox": [
|
| 1163 |
+
171,
|
| 1164 |
+
712,
|
| 1165 |
+
823,
|
| 1166 |
+
742
|
| 1167 |
+
],
|
| 1168 |
+
"page_idx": 9
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"type": "text",
|
| 1172 |
+
"text": "Bobak Shahriari, Kevin Swersky, Ziyu Wang, Ryan P Adams, and Nando de Freitas. Taking the human out of the loop: A review of bayesian optimization. Proceedings of the IEEE, 104(1): 148–175, 2016. ",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
173,
|
| 1175 |
+
751,
|
| 1176 |
+
823,
|
| 1177 |
+
795
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 9
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016. ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
176,
|
| 1186 |
+
804,
|
| 1187 |
+
823,
|
| 1188 |
+
847
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 9
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
173,
|
| 1197 |
+
856,
|
| 1198 |
+
821,
|
| 1199 |
+
886
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 9
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "Jasper Snoek, Hugo Larochelle, and Ryan P Adams. Practical bayesian optimization of machine learning algorithms. NIPS, pp. 2951–2959, 2012. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
174,
|
| 1208 |
+
895,
|
| 1209 |
+
821,
|
| 1210 |
+
924
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 9
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "Jost Tobias Springenberg, Alexey Dosovitskiy, Thomas Brox, and Martin Riedmiller. Striving for simplicity: The all convolutional net. arXiv preprint arXiv:1412.6806, 2014. \nRupesh Kumar Srivastava, Klaus Greff, and Jurgen Schmidhuber. Highway networks. ¨ arXiv preprint arXiv:1505.00387, 2015. \nKenneth O Stanley and Risto Miikkulainen. Evolving neural networks through augmenting topologies. Evolutionary Computation, 10(2):99–127, 2002. \nKevin Swersky, Jasper Snoek, and Ryan P Adams. Multi-task bayesian optimization. NIPS, pp. 2004–2012, 2013. \nPhillip Verbancsics and Josh Harguess. Generative neuroevolution for deep learning. arXiv preprint arXiv:1312.5355, 2013. \nJoannes Vermorel and Mehryar Mohri. Multi-armed bandit algorithms and empirical evaluation. European Conference on Machine Learning, pp. 437–448, 2005. \nLi Wan, Matthew Zeiler, Sixin Zhang, Yann L Cun, and Rob Fergus. Regularization of neural networks using dropconnect. ICML, pp. 1058–1066, 2013. \nChristopher John Cornish Hellaby Watkins. Learning from delayed rewards. PhD thesis, University of Cambridge, England, 1989. ",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
171,
|
| 1219 |
+
102,
|
| 1220 |
+
826,
|
| 1221 |
+
401
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 10
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "text",
|
| 1227 |
+
"text": "APPENDIX ",
|
| 1228 |
+
"text_level": 1,
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
176,
|
| 1231 |
+
103,
|
| 1232 |
+
263,
|
| 1233 |
+
117
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 11
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "text",
|
| 1239 |
+
"text": "A ALGORITHM ",
|
| 1240 |
+
"text_level": 1,
|
| 1241 |
+
"bbox": [
|
| 1242 |
+
176,
|
| 1243 |
+
136,
|
| 1244 |
+
315,
|
| 1245 |
+
151
|
| 1246 |
+
],
|
| 1247 |
+
"page_idx": 11
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"type": "text",
|
| 1251 |
+
"text": "We first describe the main components of the MetaQNN algorithm. Algorithm 1 shows the main loop, where the parameter $M$ would determine how many models to run for a given $\\epsilon$ and the parameter $K$ would determine how many times to sample the replay database to update $Q$ -values on each iteration. The function TRAIN refers to training the specified network and returns a validation accuracy. Algorithm 2 details the method for sampling a new network using the $\\epsilon$ -greedy strategy, where we assume we have a function TRANSITION that returns the next state given a state and action. Finally, Algorithm 3 implements the $Q$ -value update detailed in Equation 3, with discounting factor set to 1, for an entire state sequence in temporally reversed order. ",
|
| 1252 |
+
"bbox": [
|
| 1253 |
+
173,
|
| 1254 |
+
167,
|
| 1255 |
+
825,
|
| 1256 |
+
280
|
| 1257 |
+
],
|
| 1258 |
+
"page_idx": 11
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"type": "text",
|
| 1262 |
+
"text": "Algorithm 1 $Q$ -learning For CNN Topologies ",
|
| 1263 |
+
"text_level": 1,
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
176,
|
| 1266 |
+
296,
|
| 1267 |
+
475,
|
| 1268 |
+
310
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 11
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "Initialize: replay memory $ [ ]$ $Q \\{ ( s , u ) \\forall s \\in S , u \\in \\mathcal { U } ( s ) \\ : \\ 0 . 5 \\}$ \nfor episode $= 1$ to $M$ do $S$ , U ← SAMPLE NEW NETWORK(\u000f, Q) accuracy $ \\mathrm { T R A I N } ( S )$ replay memory.append((S, U, accuracy)) for memory $= 1$ to $K$ do $S _ { S A M P L E }$ , $U _ { S A M P L E }$ , accuracySAMP LE Uniform{replay memory} $Q $ UPDATE Q VALUES( $Q$ , $S _ { S A M P L E }$ , $U _ { S A M P L E }$ , accuracySAMP LE) end for \nend for ",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
183,
|
| 1277 |
+
316,
|
| 1278 |
+
745,
|
| 1279 |
+
483
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 11
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "Algorithm 2 SAMPLE NEW NETWORK(\u000f, Q) ",
|
| 1286 |
+
"text_level": 1,
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
176,
|
| 1289 |
+
516,
|
| 1290 |
+
496,
|
| 1291 |
+
531
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 11
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "text",
|
| 1297 |
+
"text": "Initialize: state sequence $S = [ s _ { \\mathrm { S T A R T } } ]$ action sequence $U = [ ]$ \nwhile $U [ - 1 ] \\neq$ terminate do $\\alpha \\sim \\mathrm { U n i f o r m } [ 0 , 1 )$ if $\\alpha > \\epsilon$ then u = argmaxu∈U(S[−1]) Q[(S[−1], u)] s0 = TRANSITION(S[−1], u) else u ∼ Uniform{U(S[−1])} s0 = TRANSITION(S[−1], u) end if U.append $( u )$ if $u : =$ terminate then S.append $\\left( s ^ { \\prime } \\right)$ end if \nend while \nreturn S, U ",
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
176,
|
| 1300 |
+
536,
|
| 1301 |
+
490,
|
| 1302 |
+
791
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 11
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "table",
|
| 1308 |
+
"img_path": "images/b3a435ef78ca135bca68ea5ed29a97571710a4215efe3d1348bc95ab6c7ef522.jpg",
|
| 1309 |
+
"table_caption": [],
|
| 1310 |
+
"table_footnote": [],
|
| 1311 |
+
"table_body": "<table><tr><td>Algorithm3UPDATE_Q_VALUES(Q,S,U,accuracy)</td></tr><tr><td>Q[S[-1],U[-1]] = (1- α)Q[S[-1],U[-1] + α·accuracy</td></tr><tr><td>fori= length(S) - 2 to 0 do</td></tr><tr><td>Q[S[i],U[i]] = (1 -α)Q[S[i], U[i]] + α maxu∈u(S[i+1]) Q[S[i +1],u]</td></tr><tr><td>end for return Q</td></tr></table>",
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
174,
|
| 1314 |
+
815,
|
| 1315 |
+
823,
|
| 1316 |
+
912
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 11
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "text",
|
| 1322 |
+
"text": "B REPRESENTATION SIZE BINNING ",
|
| 1323 |
+
"text_level": 1,
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
176,
|
| 1326 |
+
102,
|
| 1327 |
+
482,
|
| 1328 |
+
118
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 12
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "text",
|
| 1334 |
+
"text": "As mentioned in Section 4.1 of the main text, we introduce a parameter called representation size to prohibit the agent from taking actions that can reduce the intermediate signal representation to a size that is too small for further processing. However, this process leads to uncertainties in state transitions, as illustrated in Figure A1, which is handled by the standard $Q$ -learning formulation. ",
|
| 1335 |
+
"bbox": [
|
| 1336 |
+
174,
|
| 1337 |
+
133,
|
| 1338 |
+
825,
|
| 1339 |
+
190
|
| 1340 |
+
],
|
| 1341 |
+
"page_idx": 12
|
| 1342 |
+
},
|
| 1343 |
+
{
|
| 1344 |
+
"type": "image",
|
| 1345 |
+
"img_path": "images/bbf152a1215e64fdb34aeb4684b1733d98942af3e1032056d78615c9c7da28af.jpg",
|
| 1346 |
+
"image_caption": [
|
| 1347 |
+
"Figure A1: Representation size binning: In this figure, we show three example state transitions. The true representation size ( $R$ -size) parameter is included in the figure to show the true underlying state. Assuming there are two $R$ -size bins, $R$ -size $\\mathrm { B i n _ { 1 } }$ : $[ 8 , \\infty )$ and $R$ -size $\\mathrm { B i n _ { 2 } }$ : (0, 7], Figure A1a shows the case where the initial state is in $R$ -size $\\mathrm { B i n _ { 1 } }$ and true representation size is 18. After the agent chooses to pool with a $2 \\times 2$ filter with stride 2, the true representation size reduces to 9 but the $R$ -size bin does not change. In Figure A1b, the same $2 \\times 2$ pooling layer with stride 2 reduces the actual representation size of 14 to 7, but the bin changes to $R$ -size $\\mathrm { B i n _ { 2 } }$ . Therefore, in figures A1a and A1b, the agent ends up in different final states, despite originating in the same initial state and choosing the same action. Figure A1c shows that in our state-action space, when the agent takes an action that reduces the representation size, it will have uncertainty in which state it will transition to. "
|
| 1348 |
+
],
|
| 1349 |
+
"image_footnote": [],
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
225,
|
| 1352 |
+
205,
|
| 1353 |
+
767,
|
| 1354 |
+
377
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 12
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "text",
|
| 1360 |
+
"text": "C MNIST EXPERIMENT ",
|
| 1361 |
+
"text_level": 1,
|
| 1362 |
+
"bbox": [
|
| 1363 |
+
174,
|
| 1364 |
+
558,
|
| 1365 |
+
390,
|
| 1366 |
+
574
|
| 1367 |
+
],
|
| 1368 |
+
"page_idx": 12
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"type": "text",
|
| 1372 |
+
"text": "We noticed that the final MNIST models were prone to overfitting, so we increased dropout and did a small grid search for the weight regularization parameter. For both tuning and final training, we warmed the model with the learned weights from after the first epoch of initial training. The final models and solvers can be found on our project website https://bowenbaker.github.io/metaqnn/. Figure A2 shows the $Q$ -Learning performance for the MNIST experiment. ",
|
| 1373 |
+
"bbox": [
|
| 1374 |
+
174,
|
| 1375 |
+
589,
|
| 1376 |
+
825,
|
| 1377 |
+
660
|
| 1378 |
+
],
|
| 1379 |
+
"page_idx": 12
|
| 1380 |
+
},
|
| 1381 |
+
{
|
| 1382 |
+
"type": "text",
|
| 1383 |
+
"text": "D FURTHER ANALYSIS OF $Q$ -LEARNING ",
|
| 1384 |
+
"text_level": 1,
|
| 1385 |
+
"bbox": [
|
| 1386 |
+
174,
|
| 1387 |
+
680,
|
| 1388 |
+
524,
|
| 1389 |
+
696
|
| 1390 |
+
],
|
| 1391 |
+
"page_idx": 12
|
| 1392 |
+
},
|
| 1393 |
+
{
|
| 1394 |
+
"type": "text",
|
| 1395 |
+
"text": "Figure 3 of the main text and Figure A2 show that as the agent begins to exploit, it improves in architecture selection. It is also informative to look at the distribution of models chosen at each $\\epsilon$ . Figure A4 gives further insight into the performance achieved at each $\\epsilon$ for both experiments. ",
|
| 1396 |
+
"bbox": [
|
| 1397 |
+
174,
|
| 1398 |
+
713,
|
| 1399 |
+
825,
|
| 1400 |
+
755
|
| 1401 |
+
],
|
| 1402 |
+
"page_idx": 12
|
| 1403 |
+
},
|
| 1404 |
+
{
|
| 1405 |
+
"type": "text",
|
| 1406 |
+
"text": "D.1 $Q$ -LEARNING STABILITY ",
|
| 1407 |
+
"text_level": 1,
|
| 1408 |
+
"bbox": [
|
| 1409 |
+
174,
|
| 1410 |
+
772,
|
| 1411 |
+
392,
|
| 1412 |
+
786
|
| 1413 |
+
],
|
| 1414 |
+
"page_idx": 12
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"type": "text",
|
| 1418 |
+
"text": "Because the $Q$ -learning agent explores via a random or semi-random distribution, it is natural to ask whether the agent can consistently improve architecture performance. While the success of the three independent experiments described in the main text allude to stability, here we present further evidence. We conduct 10 independent runs of the $Q$ -learning procedure on $10 \\%$ of the SVHN dataset (which corresponds to $\\sim 7 { , } 0 0 0$ training examples). We use a smaller dataset to reduce the computation time of each independent run to 10GPU-days, as opposed to the 100GPU-days it would take on the full dataset. As can be seen in Figure A3, the $Q$ -learning procedure with the exploration schedule detailed in Table 2 is fairly stable. The standard deviation at $\\epsilon = 1$ is notably smaller than at other stages, which we attribute to the large difference in number of samples at each stage. ",
|
| 1419 |
+
"bbox": [
|
| 1420 |
+
174,
|
| 1421 |
+
797,
|
| 1422 |
+
825,
|
| 1423 |
+
924
|
| 1424 |
+
],
|
| 1425 |
+
"page_idx": 12
|
| 1426 |
+
},
|
| 1427 |
+
{
|
| 1428 |
+
"type": "image",
|
| 1429 |
+
"img_path": "images/1040a48db3c9107445d63faf705edb1033b4dc791f36b6e6a2203c2e49609895.jpg",
|
| 1430 |
+
"image_caption": [
|
| 1431 |
+
"Figure A2: MNIST $Q$ -Learning Performance. The blue line shows a rolling mean of model accuracy versus iteration, where in each iteration of the algorithm the agent is sampling a model. Each bar (in light blue) marks the average accuracy over all models that were sampled during the exploration phase with the labeled $\\epsilon$ . As $\\epsilon$ decreases, the average accuracy goes up, demonstrating that the agent learns to select better-performing CNN architectures. "
|
| 1432 |
+
],
|
| 1433 |
+
"image_footnote": [],
|
| 1434 |
+
"bbox": [
|
| 1435 |
+
341,
|
| 1436 |
+
103,
|
| 1437 |
+
630,
|
| 1438 |
+
267
|
| 1439 |
+
],
|
| 1440 |
+
"page_idx": 13
|
| 1441 |
+
},
|
| 1442 |
+
{
|
| 1443 |
+
"type": "image",
|
| 1444 |
+
"img_path": "images/a64860a6aa693382887f15593297e5ca583d08775c931f3f68c8338f77f67885.jpg",
|
| 1445 |
+
"image_caption": [
|
| 1446 |
+
"Figure A3: Figure A3a shows the mean model accuracy and standard deviation at each $\\epsilon$ over 10 independent runs of the $Q$ -learning procedure on $10 \\%$ of the SVHN dataset. Figure A3b shows the mean model accuracy at each $\\epsilon$ for each independent experiment. Despite some variance due to a randomized exploration strategy, each independent run successfully improves architecture performance. "
|
| 1447 |
+
],
|
| 1448 |
+
"image_footnote": [],
|
| 1449 |
+
"bbox": [
|
| 1450 |
+
187,
|
| 1451 |
+
378,
|
| 1452 |
+
797,
|
| 1453 |
+
540
|
| 1454 |
+
],
|
| 1455 |
+
"page_idx": 13
|
| 1456 |
+
},
|
| 1457 |
+
{
|
| 1458 |
+
"type": "text",
|
| 1459 |
+
"text": "Furthermore, the best model found during each run had remarkably similar performance with a mean accuracy of $8 8 . 2 5 \\%$ and standard deviation of $0 . 5 8 \\%$ , which shows that each run successfully found at least one very high performing model. Note that we did not use an extended training schedule to improve performance in this experiment. ",
|
| 1460 |
+
"bbox": [
|
| 1461 |
+
174,
|
| 1462 |
+
650,
|
| 1463 |
+
825,
|
| 1464 |
+
705
|
| 1465 |
+
],
|
| 1466 |
+
"page_idx": 13
|
| 1467 |
+
},
|
| 1468 |
+
{
|
| 1469 |
+
"type": "text",
|
| 1470 |
+
"text": "D.2 $Q$ -VALUE ANALYSIS ",
|
| 1471 |
+
"text_level": 1,
|
| 1472 |
+
"bbox": [
|
| 1473 |
+
176,
|
| 1474 |
+
723,
|
| 1475 |
+
361,
|
| 1476 |
+
738
|
| 1477 |
+
],
|
| 1478 |
+
"page_idx": 13
|
| 1479 |
+
},
|
| 1480 |
+
{
|
| 1481 |
+
"type": "text",
|
| 1482 |
+
"text": "We now analyze the actual $Q$ -values generated by the agent during the training process. The learning agent iteratively updates the $Q$ -values of each path during the $\\epsilon$ -greedy exploration. Each $Q$ -value is initialized at 0.5. After the $\\epsilon$ -schedule is complete, we can analyze the final $Q$ -value associated with each path to gain insights into the layer selection process. In the left column of Figure A5, we plot the average $Q$ -value for each layer type at different layer depths (for both SVHN and CIFAR10) datasets. Roughly speaking, a higher $Q$ -value associated with a layer type indicates a higher probability that the agent will pick that layer type. In Figure A5, we observe that, while the average $Q$ -value is higher for convolution and pooling layers at lower layer depths, the $Q$ -values for fullyconnected and termination layers (softmax and global average pooling) increase as we go deeper into the network. This observation matches with traditional network designs. ",
|
| 1483 |
+
"bbox": [
|
| 1484 |
+
174,
|
| 1485 |
+
750,
|
| 1486 |
+
825,
|
| 1487 |
+
888
|
| 1488 |
+
],
|
| 1489 |
+
"page_idx": 13
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"type": "text",
|
| 1493 |
+
"text": "We can also plot the average $Q$ -values associated with different layer parameters for further analysis. In the right column of Figure A5, we plot the average $Q$ -values for convolution layers with receptive field sizes 1, 3, and 5 at different layer depths. The plots show that layers with receptive field size of 5 have a higher $Q$ -value as compared to sizes 1 and 3 as we go deeper into the networks. This indicates that it might be beneficial to use larger receptive field sizes in deeper networks. ",
|
| 1494 |
+
"bbox": [
|
| 1495 |
+
173,
|
| 1496 |
+
895,
|
| 1497 |
+
821,
|
| 1498 |
+
924
|
| 1499 |
+
],
|
| 1500 |
+
"page_idx": 13
|
| 1501 |
+
},
|
| 1502 |
+
{
|
| 1503 |
+
"type": "text",
|
| 1504 |
+
"text": "",
|
| 1505 |
+
"bbox": [
|
| 1506 |
+
173,
|
| 1507 |
+
103,
|
| 1508 |
+
823,
|
| 1509 |
+
146
|
| 1510 |
+
],
|
| 1511 |
+
"page_idx": 14
|
| 1512 |
+
},
|
| 1513 |
+
{
|
| 1514 |
+
"type": "text",
|
| 1515 |
+
"text": "In summary, the $Q$ -learning method enables us to perform analysis on the relative benefits of different design parameters of our state space, and possibly gain insights for new CNN designs. ",
|
| 1516 |
+
"bbox": [
|
| 1517 |
+
171,
|
| 1518 |
+
152,
|
| 1519 |
+
821,
|
| 1520 |
+
181
|
| 1521 |
+
],
|
| 1522 |
+
"page_idx": 14
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"type": "text",
|
| 1526 |
+
"text": "E TOP TOPOLOGIES SELECTED BY ALGORITHM ",
|
| 1527 |
+
"text_level": 1,
|
| 1528 |
+
"bbox": [
|
| 1529 |
+
173,
|
| 1530 |
+
202,
|
| 1531 |
+
581,
|
| 1532 |
+
218
|
| 1533 |
+
],
|
| 1534 |
+
"page_idx": 14
|
| 1535 |
+
},
|
| 1536 |
+
{
|
| 1537 |
+
"type": "text",
|
| 1538 |
+
"text": "In Tables A1 through A3, we present the top five model architectures selected with Q-learning for each dataset, along with their prediction error reported on the test set, and their total number of parameters. To download the Caffe solver and prototext files, please visit https://bowenbaker.github.io/metaqnn/. ",
|
| 1539 |
+
"bbox": [
|
| 1540 |
+
173,
|
| 1541 |
+
232,
|
| 1542 |
+
825,
|
| 1543 |
+
289
|
| 1544 |
+
],
|
| 1545 |
+
"page_idx": 14
|
| 1546 |
+
},
|
| 1547 |
+
{
|
| 1548 |
+
"type": "table",
|
| 1549 |
+
"img_path": "images/a4b3d984ac022413e835893b43a98af621f1a2a434db861c5c2de49eb522ef56.jpg",
|
| 1550 |
+
"table_caption": [
|
| 1551 |
+
"Table A1: Top 5 model architectures: CIFAR-10. "
|
| 1552 |
+
],
|
| 1553 |
+
"table_footnote": [],
|
| 1554 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Model Architecture</td><td rowspan=1 colspan=1>Test Error (%)</td><td rowspan=1 colspan=1>#Params (10)</td></tr><tr><td rowspan=1 colspan=1>[C(512,5,1), C(256,3,1), C(256,5,1), C(256,3,1),P(5,3),C(512,3,1),C(512,5,1), P(2,2), SM(10)]</td><td rowspan=1 colspan=1>6.92</td><td rowspan=1 colspan=1>11.18</td></tr><tr><td rowspan=1 colspan=1>[C(128,1,1),C(512,3,1),C(64,1,1), C(128,3,1),P(2,2),C(256,3,1),P(2,2), C(512,3,1),P(3,2),,SM(10)]</td><td rowspan=1 colspan=1>8.78</td><td rowspan=1 colspan=1>2.17</td></tr><tr><td rowspan=1 colspan=1>[C(128,3,1),C(128,1,1),C(512,5,1),P(2,2),C(128,3,1),P(2,2),C(64,3,1),C(64,5,1), S(10)]</td><td rowspan=1 colspan=1>8.88</td><td rowspan=1 colspan=1>2.42</td></tr><tr><td rowspan=1 colspan=1>[C(256,3,1),C(256,3,1),P(5,3),C(256,1,1),C(128,3,1),P(2,2),C(128,3,1), ,SM(10)]</td><td rowspan=1 colspan=1>9.24</td><td rowspan=1 colspan=1>1.10</td></tr><tr><td rowspan=1 colspan=1>[C(128,5,1),C(512,3,1),P(2,2),C(128,1,1),C(128,5,1),P(3,2),C(512,3,1), SM(10)]</td><td rowspan=1 colspan=1>11.63</td><td rowspan=1 colspan=1>1.66</td></tr></table>",
|
| 1555 |
+
"bbox": [
|
| 1556 |
+
173,
|
| 1557 |
+
301,
|
| 1558 |
+
828,
|
| 1559 |
+
446
|
| 1560 |
+
],
|
| 1561 |
+
"page_idx": 14
|
| 1562 |
+
},
|
| 1563 |
+
{
|
| 1564 |
+
"type": "table",
|
| 1565 |
+
"img_path": "images/baa9e0df7c9aaabf85d8dd3e8b0b2449cca8d51e81d0dcea57a86fe0e24cfc81.jpg",
|
| 1566 |
+
"table_caption": [],
|
| 1567 |
+
"table_footnote": [],
|
| 1568 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Model Architecture</td><td rowspan=1 colspan=1>Test Error (%)</td><td rowspan=1 colspan=1>#Params (106)</td></tr><tr><td rowspan=1 colspan=1>[C(128,3,1), P(2,2),C(64,5,1),C(512,5,1),C(256,3,1),C(512,3,1),P(2,2), C(512,3,1),C(256,5,1),C(256,3,1),C(128,5,1),C(64,3,1),SM(10)]</td><td rowspan=1 colspan=1>2.24</td><td rowspan=1 colspan=1>9.81</td></tr><tr><td rowspan=1 colspan=1>[C(128,1,1), C(256,5,1),C(128,5,1), P(2,2),C(256,5,1),C(256,1,1),C(256,3,1), C(256,3,1), C(256,5,1), C(512,5,1), C(256,3,1),C(128,3,1), SM(10)]</td><td rowspan=1 colspan=1>2.28</td><td rowspan=1 colspan=1>10.38</td></tr><tr><td rowspan=1 colspan=1>[C(128,5,1), C(128,3,1),C(64,5,1),P(5,3),C(128,3,1),C(512,5,1),C(256,5,1), C(128,5,1), C(128,5,1),,C(128,3,1), SM(10)]</td><td rowspan=1 colspan=1>2.32</td><td rowspan=1 colspan=1>6.83</td></tr><tr><td rowspan=1 colspan=1>[C(128,1,1),C(256,5,1),C(128,5,1),C(256,3,1),C(256,5,1), P(2,2),C(128,1,1),C(512,3,1),C(256,5,1),P(2,2),C(64,5,1),C(64,1,1),SM(10)]</td><td rowspan=1 colspan=1>2.35</td><td rowspan=1 colspan=1>6.99</td></tr><tr><td rowspan=1 colspan=1>[C(128,1,1), C(256,5,1), C(128,5,1), C(256,5,1), C(256,5,1),C(256,1,1), P(3,2), C(128,1,1),C(256,5,1),C(512,5,1),C(256,3,1),C(128,3,1), SM(10)]</td><td rowspan=1 colspan=1>2.36</td><td rowspan=1 colspan=1>10.05</td></tr></table>",
|
| 1569 |
+
"bbox": [
|
| 1570 |
+
173,
|
| 1571 |
+
493,
|
| 1572 |
+
828,
|
| 1573 |
+
689
|
| 1574 |
+
],
|
| 1575 |
+
"page_idx": 14
|
| 1576 |
+
},
|
| 1577 |
+
{
|
| 1578 |
+
"type": "text",
|
| 1579 |
+
"text": "Table A2: Top 5 model architectures: SVHN. Note that we do not report the best accuracy on test set from the above models in Tables 3 and 4 from the main text. This is because the model that achieved $2 . 2 8 \\%$ on the test set performed the best on the validation set. ",
|
| 1580 |
+
"bbox": [
|
| 1581 |
+
173,
|
| 1582 |
+
699,
|
| 1583 |
+
828,
|
| 1584 |
+
742
|
| 1585 |
+
],
|
| 1586 |
+
"page_idx": 14
|
| 1587 |
+
},
|
| 1588 |
+
{
|
| 1589 |
+
"type": "table",
|
| 1590 |
+
"img_path": "images/d00d2f32a054bee202162ba5892e83cf7cdd1c9ff14df4bdef99a7b889e63f27.jpg",
|
| 1591 |
+
"table_caption": [],
|
| 1592 |
+
"table_footnote": [],
|
| 1593 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Model Architecture</td><td rowspan=1 colspan=1>Test Error (%)</td><td rowspan=1 colspan=1>#Params (10)</td></tr><tr><td rowspan=1 colspan=1>[C(64,1,1),C(256,3,1),P(2,2),C(512,3,1), C(256,1,1), P(5,3),C(256,3,1), C(512,3,1),FC(512), SM(10)]</td><td rowspan=1 colspan=1>0.35</td><td rowspan=1 colspan=1>5.59</td></tr><tr><td rowspan=1 colspan=1>[C(128,3,1), C(64,1,1),C(64,3,1), C(64,5,1), P(2,2), C(128,3,1), P(3,2),C(512,3,1), FC(512),FC(128), S(10)]</td><td rowspan=1 colspan=1>0.38</td><td rowspan=1 colspan=1>7.43</td></tr><tr><td rowspan=1 colspan=1>[C(512,1,1), C(128,3,1), C(128,5,1), C(64,1,1), C(256,5,1), C(64,1,1),P(5,3), C(512,1,1), C(512,3,1), C(256,3,1), C(256,5,1), C(256,5,1),SM(10)]</td><td rowspan=1 colspan=1>0.40</td><td rowspan=1 colspan=1>8.28</td></tr><tr><td rowspan=1 colspan=1>[C(64,3,1), C(128,3,1), C(512,1,1), C(256,1,1), C(256,5,1), C(128,3,1),P(5,3), C(512,1,1), C(512,3,1), C(128,5,1), SM(10)]</td><td rowspan=1 colspan=1>0.41</td><td rowspan=1 colspan=1>6.27</td></tr><tr><td rowspan=1 colspan=1>[C(64,3,1),C(128,1,1),P(2,2), C(256,3,1),C(128,5,1),C(64,1,1),C(512,5,1), C(128,5,1), C(64,1,1), C(512,5,1), C(256,5,1), C(64,5,1),SM(10)]</td><td rowspan=1 colspan=1>0.43</td><td rowspan=1 colspan=1>8.10</td></tr><tr><td rowspan=1 colspan=1>[C(64,1,1),C(256,5,1),,C(256,5,1),C(512,1,1),C(64,3,1),P(5,3),C(256,5,1), C(256,5,1), C(512,5,1), C(64,1,1), C(128,5,1), C(512,5,1),SM(10)]</td><td rowspan=1 colspan=1>0.44</td><td rowspan=1 colspan=1>9.67</td></tr><tr><td rowspan=1 colspan=1>[C(128,3,1), C(512,3,1),P(2,2), C(256,3,1),,C(128,5,1),C(64,1,1),C(64,5,1), C(512,5,1), GAP(10), SM(10)]</td><td rowspan=1 colspan=1>0.44</td><td rowspan=1 colspan=1>3.52</td></tr><tr><td rowspan=1 colspan=1>[C(256,3,1), C(256,5,1), C(512,3,1), C(256,5,1),C(512,1,1),P(5,3),C(256,3,1), C(64,3,1), C(256,5,1), C(512,3,1), C(128,5,1), C(512,5,1),SM(10)]</td><td rowspan=1 colspan=1>0.46</td><td rowspan=1 colspan=1>12.42</td></tr><tr><td rowspan=1 colspan=1>[C(512,5,1), C(128,5,1), C(128,5,1), C(128,3,1), C(256,3,1),C(512,5,1), C(256,3,1), C(128,3,1), S(10)]</td><td rowspan=1 colspan=1>0.55</td><td rowspan=1 colspan=1>7.25</td></tr><tr><td rowspan=1 colspan=1>[C(64,5,1),C(512,5,1),P(3,2),C(256,5,1),C(256,3,1),C(256,3,1),C(128,1,1),C(256,3,1), C(256,5,1), C(64,1,1), C(256,3,1),C(64,3,1),SM(10)]</td><td rowspan=1 colspan=1>0.56</td><td rowspan=1 colspan=1>7.55</td></tr></table>",
|
| 1594 |
+
"bbox": [
|
| 1595 |
+
171,
|
| 1596 |
+
309,
|
| 1597 |
+
828,
|
| 1598 |
+
645
|
| 1599 |
+
],
|
| 1600 |
+
"page_idx": 15
|
| 1601 |
+
},
|
| 1602 |
+
{
|
| 1603 |
+
"type": "text",
|
| 1604 |
+
"text": "Table A3: Top 10 model architectures: MNIST. We report the top 10 models for MNIST because we included all 10 in our final ensemble. Note that we do not report the best accuracy on test set from the above models in Tables 3 and 4 from the main text. This is because the model that achieved $0 . 4 4 \\%$ on the test set performed the best on the validation set. ",
|
| 1605 |
+
"bbox": [
|
| 1606 |
+
173,
|
| 1607 |
+
655,
|
| 1608 |
+
826,
|
| 1609 |
+
712
|
| 1610 |
+
],
|
| 1611 |
+
"page_idx": 15
|
| 1612 |
+
},
|
| 1613 |
+
{
|
| 1614 |
+
"type": "image",
|
| 1615 |
+
"img_path": "images/fd32a7a7238161bd217f837e7aa678dfc6a19faca503b359140d345a8d6ea0ab.jpg",
|
| 1616 |
+
"image_caption": [
|
| 1617 |
+
"Figure A4: Accuracy Distribution versus $\\epsilon$ : Figures A4a, A4c, and A4e show the accuracy distribution for each $\\epsilon$ for the SVHN, CIFAR-10, and MNIST experiments, respectively. Figures A4b, A4d, and A4f show the accuracy distributions for the initial $\\epsilon = 1$ and the final $\\epsilon = 0 . 1$ . One can see that the accuracy distribution becomes much more peaked in the high accuracy ranges at small $\\epsilon$ for each experiment. "
|
| 1618 |
+
],
|
| 1619 |
+
"image_footnote": [],
|
| 1620 |
+
"bbox": [
|
| 1621 |
+
189,
|
| 1622 |
+
205,
|
| 1623 |
+
800,
|
| 1624 |
+
734
|
| 1625 |
+
],
|
| 1626 |
+
"page_idx": 16
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"type": "image",
|
| 1630 |
+
"img_path": "images/7533dcaeb55b1d1b05fd06f4deb470699d4d0219efe173f88397cbc8c105105c.jpg",
|
| 1631 |
+
"image_caption": [
|
| 1632 |
+
"Figure A5: Average $Q$ -Value versus Layer Depth for different layer types are shown in the left column. Average $Q$ -Value versus Layer Depth for different receptive field sizes of the convolution layer are shown in the right column. "
|
| 1633 |
+
],
|
| 1634 |
+
"image_footnote": [],
|
| 1635 |
+
"bbox": [
|
| 1636 |
+
187,
|
| 1637 |
+
170,
|
| 1638 |
+
797,
|
| 1639 |
+
803
|
| 1640 |
+
],
|
| 1641 |
+
"page_idx": 17
|
| 1642 |
+
}
|
| 1643 |
+
]
|
parse/train/S1c2cvqee/S1c2cvqee_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1c2cvqee/S1c2cvqee_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1vuO-bCW/S1vuO-bCW_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1vuO-bCW/S1vuO-bCW_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Sk-oDY9ge/Sk-oDY9ge.md
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DIET NETWORKS: THIN PARAMETERS FOR FAT GENOMICS
|
| 2 |
+
|
| 3 |
+
Adriana Romero∗, Pierre Luc Carrier∗, Akram Erraqabi, Tristan Sylvain, Alex Auvolat, Etienne Dejoie
|
| 4 |
+
|
| 5 |
+
Montreal Institute for Learning Algorithms Montreal, Quebec, Canada firstName.lastName@umontreal.ca, except adriana.romero.soriano@umontreal.ca and pierre-luc.carrier@umontreal.ca
|
| 6 |
+
|
| 7 |
+
# Marc-Andre Legault ´ 1, Marie-Pierre Dube´1,2,3
|
| 8 |
+
|
| 9 |
+
1University of Montreal, Faculty of Medicine
|
| 10 |
+
2Montreal Heart Institute,
|
| 11 |
+
3Beaulieu-Saucier Pharmacogenomics Centre
|
| 12 |
+
Montreal, Quebec, Canada
|
| 13 |
+
marc-andre.legault.1@umontreal.ca
|
| 14 |
+
marie-pierre.dube@umontreal.ca
|
| 15 |
+
|
| 16 |
+
# Julie G. Hussin
|
| 17 |
+
|
| 18 |
+
Wellcome Trust Centre for Human Genetics
|
| 19 |
+
University of Oxford
|
| 20 |
+
Oxford, UK
|
| 21 |
+
julieh@well.ox.ac.uk
|
| 22 |
+
|
| 23 |
+
# Yoshua Bengio
|
| 24 |
+
|
| 25 |
+
Montreal Institute for Learning Algorithms Montreal, Quebec, Canada yoshua.umontreal@gmail.com
|
| 26 |
+
|
| 27 |
+
# ABSTRACT
|
| 28 |
+
|
| 29 |
+
Learning tasks such as those involving genomic data often poses a serious challenge: the number of input features can be orders of magnitude larger than the number of training examples, making it difficult to avoid overfitting, even when using the known regularization techniques. We focus here on tasks in which the input is a description of the genetic variation specific to a patient, the single nucleotide polymorphisms (SNPs), yielding millions of ternary inputs. Improving the ability of deep learning to handle such datasets could have an important impact in medical research, more specifically in precision medicine, where highdimensional data regarding a particular patient is used to make predictions of interest. Even though the amount of data for such tasks is increasing, this mismatch between the number of examples and the number of inputs remains a concern. Naive implementations of classifier neural networks involve a huge number of free parameters in their first layer (number of input features times number of hidden units): each input feature is associated with as many parameters as there are hidden units. We propose a novel neural network parametrization which considerably reduces the number of free parameters. It is based on the idea that we can first learn or provide a distributed representation for each input feature (e.g. for each position in the genome where variations are observed in data), and then learn (with another neural network called the parameter prediction network) how to map a feature’s distributed representation (based on the feature’s identity not its value) to the vector of parameters specific to that feature in the classifier neural network (the weights which link the value of the feature to each of the hidden units). This approach views the problem of producing the parameters associated with each feature as a multi-task learning problem. We show experimentally on a population stratification task of interest to medical studies that the proposed approach can significantly reduce both the number of parameters and the error rate of the classifier.
|
| 30 |
+
|
| 31 |
+
# 1 INTRODUCTION
|
| 32 |
+
|
| 33 |
+
Medical datasets often involve a dire imbalance between the number of training examples and the number of input features, especially when genomic information is used as input to the trained predictor. This is problematic in the context where we want to apply deep learning (which typically involves large models) to precision medicine, i.e., making patient-specific predictions using a potentially large set of input features to better characterize the patient. This paper proposes a novel approach, called Diet Networks, to reparametrize neural networks to considerably reduce their number of free parameters when the input is very high-dimensional and orders of magnitude larger than the number of training examples.
|
| 34 |
+
|
| 35 |
+
Genomics is the study of the genetic code encapsulated as DNA in all living organisms’ cells. Genomes contain the instructions to produce and regulate all the functional components needed to guide the development and adaptation of living organisms. In the last decades, advances in genomic technologies resulted in an explosion of available data, making it more interesting to apply advanced machine learning techniques such as deep learning. Learning tasks involving genomic data and already tackled by deep learning include: using Convolutional Neural Networks (CNNs) to learn the functional activity of DNA sequences (Basset package, Kelley et al. (2016), predicting effects of noncoding DNA (DeepSEA, Zhou & Troyanskaya (2015)), investigating the regulatory role of RNA binding proteins in alternative splicing (Alipanahi et al., 2015), inferring gene expression patterns (Chen et al., 2016; Singh et al., 2016) and population genetic parameters (Sheehan & Song, 2016) among others (see Leung et al. (2016) for a detailed example). Noticeably, most of these techniques are based on sequence data where convolutional or recurrent networks are appropriate. When the full DNA sequence is unavailable, such as when data is acquired through genotyping, other methods need to be used. All this work shows that deep learning can be used to tackle genomic-related tasks, paving the road towards a better understanding of the biological impact of DNA variation.
|
| 36 |
+
|
| 37 |
+
Applying deep learning to human genetic variation holds the promise of identifying individuals at risk for medical conditions. Modern genotyping technologies usually target millions of simple variants across the genome, called single nucleotide polymorphisms (SNPs). These genetic mutations result from substitutions from one nucleotide to another (eg. A to C), where both versions exist within a population. In modern studies, as many as 5 millions SNPs can be acquired for every participant. These datasets differ from other types of genomic data because they focus on the genetic differences between individuals which represents a space of high dimensionality where sequencecontext information is unavailable. In medical genetics, these variants are tested for their association with a trait of interest, an approach termed genome-wide association study (GWAS). This methodology aims at finding genetic variants implicated in disease susceptibility, etiology and treatment.
|
| 38 |
+
|
| 39 |
+
An important confounding factor in GWAS is population stratification, which arises because both disease prevalence and genetic profiles vary from one population to the other. Although most GWAS have been restricted to homogeneous populations, dimensionality reduction techniques are generally used to account for population-level genetic differences (Price et al., 2006). Our experiments compare such dimensionality reduction techniques (based on principal components analysis, PCA) to the proposed Diet Network parametrization, as well as with standard deep networks.
|
| 40 |
+
|
| 41 |
+
Recently, several machine learning methods have been successfully applied to detect population stratification, based on the presence of systematic differences in genetic variation between populations. For instance, Support Vector Machines (SVM) models have been used multiple times to infer recent genetic ancestry of sub-continental populations (Haasl et al. (2013)), and local ancestry in admixed populations (SupportMix, Omberg et al. (2012), 23andMe, Inc.). However SVM methods are very sensitive to the the kernel choice and the parameters. They also tend to overfit the model selection criterion which usually induces a limitation in its predictive power.
|
| 42 |
+
|
| 43 |
+
In this work, we are interested in predicting the genetic ancestry of an individual from their SNP data using a novel deep learning approach, Diet Networks, which allow us to considerably reduce the number of free parameters. Therefore, we propose to tackle this problem by introducing a multi-task architecture in which the problem of predicting the appropriate parameters for each input feature is considered like a task in itself, and the same parameter prediction network is used for all of the hundreds of thousands of input features. This parameter prediction network learns to predict these feature-specific parameters as a function of a distributed representation of the feature identity, or feature embedding. The feature embedding can be learned as part of end-to-end training or using other datasets or a priori knowledge about the features. What is important is that two features which are similar in some appropriate sense (in terms of their interactions with other features or other variables observed in any dataset) end up having similar embeddings, and thus a similar parameter vector as output of the parameter prediction network. A practical advantage of this approach is that the parameter prediction network can generalize to new features for which there is no labeled training data (without the target to be predicted by the classifier), so long as it is possible to derive an embedding for that feature (for example using just the unlabeled observations of co-occurences of that feature with other features in human genomes).
|
| 44 |
+
|
| 45 |
+
An interesting consideration is that from the point of the parameter prediction network, each feature is an example: more features now allow to better train the parameter prediction network. It is like if we were considering not the data matrix itself but its transpose. This is actually how the Diet Network implementation processes the data, by using the transpose of the matrix of input values as the input part of the learning task for the parameter prediction network.
|
| 46 |
+
|
| 47 |
+
The idea of having two networks interacting with each other and with one producing parameters for the other is well rooted in the machine learning literature (Bengio et al., 1991; Schmidhuber, 1992; Gomez & Schmidhuber, 2005; Stanley et al., 2009; Denil et al., 2013; Andrychowicz et al., 2016). Recent efforts in the same direction include works such as (Bertinetto et al., 2016; Brabandere et al., 2016; Ha et al., 2016) that use a network to predict the parameters of a Convolutional Neural Network (CNN). Brabandere et al. (2016) introduce a dynamic filter module that generates network filters conditioned on an input. Bertinetto et al. (2016) propose to learn the parameters of a deep model in one shot, by training a second network to predict the parameters of the first from a single exemplar. Hypernetworks (Ha et al., 2016) explore the idea of using a small network to predict the parameters of another network, training them in an end-to-end fashion. The small network takes as input the feature embedding from the previous layer and learns the parameters of the current layer.
|
| 48 |
+
|
| 49 |
+
To the best of our knowledge, deep learning has never been used so far to tackle the problem of ancestry prediction based on SNP data. Compared to other approaches that attempt to learn model parameters using a parameter prediction network, our main goal is to reduce the large number of parameters required by the model, by considering the input features themselves as sub-tasks in a multi-task view of the learning problem, as opposed to constructing a model with even higher capacity, as seen, e.g. in (Ha et al., 2016). Our approach is thus based on building an embedding of these tasks (the features) in order to further reduce the number of parameters.
|
| 50 |
+
|
| 51 |
+
We evaluate our method on a publicly available dataset for ancestry prediction, the 1000 Genomes dataset1, that best represents the human population diversity. Because population-specific differences in disease and drug response are widespread, identifying an individual’s ancestry heritage based on SNP data is a very important task to help detect biological causation and achieve good predictive performance in precision medicine. Most importantly, ancestry-aware approaches in precision genomics will reduce the hidden risks of genetic testing, by preventing spurious diagnosis and ineffective treatment.
|
| 52 |
+
|
| 53 |
+
# 2 METHOD
|
| 54 |
+
|
| 55 |
+
In this section, we describe the Diet Networks as well as the feature embeddings used by the model.
|
| 56 |
+
|
| 57 |
+
# 2.1 MODEL
|
| 58 |
+
|
| 59 |
+
Our model aims at reducing the number of free parameters that a network trained on fat data would typically have.
|
| 60 |
+
|
| 61 |
+
Let $\mathbf { X } \in \mathbb { R } ^ { N \times N _ { d } }$ be a matrix of data, with $N$ samples and $N _ { d }$ features, where $N \ll N _ { d }$ (e. g. $N$ being approximately 100 times smaller than $N _ { d . }$ ). We build a multi-layer perceptron (MLP), which takes $\mathbf { X }$ as input, computes a hidden representation and outputs a prediction $\hat { \mathbf Y }$ . Optionally, the MLP may generate a reconstruction $\hat { \mathbf X }$ of the input data from the hidden representation. Figure 1(a) illustrates this basic network architecture. Let $\mathbf { x _ { i } }$ be one data sample, i.e. a row in $\mathbf { X }$ . The standard formulations to compute its hidden representation $\mathbf { h _ { i } }$ , output prediction $\hat { \mathbf { y } } _ { \mathbf { i } }$ and reconstruction $\hat { \bf x } _ { \bf i }$ are given by
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\mathbf { h _ { i } } = f ( \mathbf { x _ { i } } ) , \quad \hat { \mathbf { y _ { i } } } = g ( \mathbf { h _ { i } } ) , \quad \hat { \mathbf { x _ { i } } } = r ( \mathbf { h _ { i } } ) ,
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
where $f , g$ and $r$ are non-linear functions.
|
| 68 |
+
|
| 69 |
+

|
| 70 |
+
Figure 1: Our model is composed of 3 networks, one basic and two auxiliary networks: (a) a basic discriminative network with optional reconstruction path (dashed arrow), (b) a network that predicts the input fat layer parameters, and (c) a network that predicts the reconstruction fat layer parameters (if any). First layer in the ”prediction networks” (b, c) represents embedding (Emb.). Each MLP block may contain any number of hidden layers. ${ \bf W _ { e } }$ and $\mathbf { \hat { W } _ { d } ^ { T } }$ represent the parameters of the fat hidden layer and the fat reconstruction layer of the basic network (a), respectively. These parameters are predicted by auxiliary networks (b) and (c) – also called parameter prediction networks – to reduce the number of free parameters of (a).
|
| 71 |
+
|
| 72 |
+
The number of parameters of the first hidden layer of the architecture grows linearly with the dimensionality of the input data:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\mathbf { h _ { i } ^ { ( 1 ) } } = f _ { 1 } ( \mathbf { x _ { i } } \mathbf { W _ { e } } + \mathbf { b _ { e } } ) ,
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
where ${ \bf W _ { e } }$ and $\mathbf { b _ { e } }$ are the layer’s parameters. Using fat data such as the one described in Section 1, leads to a parameter explosion in this layer, hereafter referred to as fat hidden layer. To give the reader an intuition, consider the case of having an input with $N _ { d } = 3 0 0 K$ , and a hidden layer with $N _ { h } ^ { 1 } = 1 0 0$ , the number of parameters of such a layer would be 30M. The same happens to the number of parameters of the optional reconstruction layer, hereafter referred to as fat reconstruction layer.
|
| 79 |
+
|
| 80 |
+
In order to mitigate this effect, we introduce an auxiliary network to predict the fat layers’ parameters. The auxiliary network takes as input the transposed data matrix $\mathbf { X ^ { \mathrm { T } } }$ , extracts a feature embedding and learns a function of this embedding, to be used as parameters of a fat layer:
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
( \mathbf { W _ { e } } ) _ { \mathbf { j } : } = \phi ( \mathbf { e _ { j } } ) ,
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
where $\mathbf { e _ { j } }$ represents the embedding of a feature in $\mathbf { X ^ { \mathrm { T } } }$ , $\phi$ is a non-linear function and $( \mathbf { W _ { e } } ) _ { \mathbf { j } : }$ is the $j$ -th row of ${ \bf W _ { e } }$ . This means that each feature is associated with the vector of values it takes in the dataset (e.g. across the patients). Other representations could be used, e.g., derived from other datasets in which those features interact. Figure 1(b) shows a prediction network which is an auxiliary network that predicts the parameters of the fat hidden layer of our basic network. Following the same spirit, Figure 1(c) highlights the interaction between a second prediction network that predicts the fat reconstruction layer parameters and the basic network. The architectures of both auxiliary networks may share the initial feature embedding.
|
| 87 |
+
|
| 88 |
+
The feature embeddings used in the auxiliary networks allow us to substantially reduce the number of free parameters of the fat layers of the basic architecture. The auxiliary network should predict a matrix of weights of size $N _ { d } \times N _ { h } ^ { 1 }$ from a feature embedding. Consider a feature embedding that would transform each $N$ -dimensional feature into a $N _ { f }$ -dimensional vector, where $N _ { f } < N$ . The auxiliary network would learn a function $\phi : \mathcal { R } ^ { N _ { f } } \mathbb { R } ^ { N _ { h } ^ { 1 } }$ . Thus, the fat hidden layer of our basic architecture would have $N _ { f } \times N _ { h } ^ { 1 }$ free parameters (assuming a single layer MLP in the auxiliary network), instead of $N _ { d } \times N _ { h } ^ { 1 }$ . Following our previous example, where $N _ { d } = 3 0 0 K$ and $N _ { h } ^ { 1 } = 1 0 0$ , using an auxiliary network with previously-obtained feature embeddings of dimensionality $N _ { f } =$ 500 would reduce the number of free parameters of the basic network by a factor of 600 (from 30M to 50K).
|
| 89 |
+
|
| 90 |
+
The model is trained end-to-end by minimizing the following objective function
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\mathcal { H } ( \hat { \mathbf { Y } } , \mathbf { Y } ) + \gamma | | \hat { \mathbf { X } } - \mathbf { X } | | _ { 2 } ^ { 2 } ,
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
where $\mathcal { H }$ refers to the cross-entropy, $\mathbf { Y }$ to the true classification labels and $\gamma$ is a tunable parameter to balance the supervised and the reconstruction losses.
|
| 97 |
+
|
| 98 |
+
# 2.2 FEATURE EMBEDDINGS
|
| 99 |
+
|
| 100 |
+
The feature embeddings used by the auxiliary networks can be either pre-computed or learnt offline, as well as learnt jointly with the rest of the architecture. In theory, any kind of embedding could be used, as long as we keep in mind that the goal is to reduce the number of free parameters of the basic model. In this work, we considered random projections (Bingham & Mannila, 2001), histograms (which are akin to bag-of-words representations), feature embeddings learnt offline (Mikolov et al., 2013) and feature embeddings jointly learnt with the rest of the proposed architecture.
|
| 101 |
+
|
| 102 |
+
Random projection: Randomly initializing an MLP defines a random projection. By using such a projection to encode the high-dimensional feature space into a more manageable lower-dimensional space, we were able to obtain decent results.
|
| 103 |
+
|
| 104 |
+
Per class histogram: For a given SNP, we can define a histogram of the values it can take over the whole population. Once normalized, this yields 3 values per SNP, corresponding to the proportion of the population having the values 0, 1 and 2 respectively for that SNP. After initial tests showed this was too coarse a representation for the dataset, we instead chose to consider the per-class proportion of the three values. With 26 classes in the 1000 Genomes dataset, this yields an embedding of size 78 for each feature. By this method, the matrix $\mathbf { X ^ { \mathrm { T } } }$ is summarized as a $N _ { d } \times 7 8$ matrix, where $N _ { d }$ is the number of SNPs in the dataset.
|
| 105 |
+
|
| 106 |
+
SNPtoVec: In Mikolov et al. (2013), the authors propose a word embedding that allows good reconstruction of the words’ context (surrounding words) by a neural network. SNPs do not have a similarly well-defined positional context (SNPs close together in our ordering might very well be independent) so our embedding is instead built by training a denoising autoencoder (DAE) (Vincent et al., 2008) on the matrix X. Thus, the DAE learns to recover the values of missing SNPs by leveraging their similarities and cooccurences with other SNPs. Once the DAE is trained, we obtain an encoding for each feature by feeding to the DAE an input where only that feature is active (the other features are set to 0s) and computing the hidden representation of the autoencoder for that single-feature input.
|
| 107 |
+
|
| 108 |
+
Embedding learnt end-to-end from raw data: In this case, we consider the feature embedding to be another MLP, whose input corresponds to the values that a SNP takes for each of the training samples and, whose parameters are learnt jointly with the rest of the network. Note that the layer(s) corresponding to the feature embedding are shared among auxiliary networks. For experiments reported in Section 4, we used a single hidden layer as embedding.
|
| 109 |
+
|
| 110 |
+
# 3 DATA: THE 1000 GENOMES PROJECT
|
| 111 |
+
|
| 112 |
+
The 1000 Genomes project is the first project to sequence the genomes of a large number of people in populations worldwide, yielding the largest public catalog of human genetic variants to date Consortium (2015). This allowed large-scale comparison of DNA sequences from populations, thanks to the presence of genetic variation. Individuals of the 1000 Genomes project are samples taken from 26 populations over the world, which are grouped into 5 geographical regions. Figure 2(a) shows a histogram derived from the 1000 Genomes data, depicting the frequency of individuals per population (ethnicity). Analogously, Figure 2(b) depicts the frequency of individuals per geographical region.
|
| 113 |
+
|
| 114 |
+
In this dataset, we included 315,345 genetic variants with frequencies of at least $5 \%$ in 3,450 individuals sampled worldwide from 26 populations, interrogated using microarray genotyping technology: the Genome-Wide Human SNP Array 6.0 by Affymetrix. The mutated state is established by comparison to the Genome Reference Consortium human genome (build 37). Since individuals have 2 copies of each genomic position, a sampled individual can have 0, 1 or 2 copies of a genetic mutation, hereafter referred to as an individual genotype. We excluded SNPs positioned on the sex chromosomes and only included SNPs in approximate linkage equilibrium with each other, such that genotypes at neighboring positions are only weakly correlated $( r ^ { 2 } < 0 . 5 )$ .
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
Figure 2: The 1000 Genomes population distribution:(a) Ethnicity; (b) Geographical Region.
|
| 118 |
+
|
| 119 |
+
# 4 EXPERIMENTS
|
| 120 |
+
|
| 121 |
+
In this section, we describe the model architectures, and report and discuss the obtained results.
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Figure 3: Results of our best model: (a) Confusion matrix per ethnicity; (b) Confusion matrix per large geographical region. The 1000 Genomes legend for population abbreviations can be found in the appendix.
|
| 125 |
+
|
| 126 |
+
# 4.1 MODEL ARCHITECTURE
|
| 127 |
+
|
| 128 |
+
We experimented with simple models both in the auxiliary networks and the basic architecture, which yielded very promising results. We designed a basic architecture with 2 hidden layers followed by a softmax layer to perform ancestry prediction. We trained this architecture with and without the assistance of the auxiliary network. Similarly, the auxiliary networks were build by stacking a hidden layer on top of one of the feature embeddings described in Section 2.2. In the reported experiments, all hidden layers have 100 units. All models were trained by means of stochastic gradient descent with adaptive learning rate (Tieleman & Hinton, 2012), both for $\gamma = 0$ and $\gamma = 1 0$ , using dropout, limiting the norm of the weights to 1 and/or applying weight decay to reduce overfitting.2.
|
| 129 |
+
|
| 130 |
+
# 4.2 RESULTS
|
| 131 |
+
|
| 132 |
+
Given the relatively small amount of samples in the 1000 Genomes data, we report results obtained by 5-fold cross validation of the model. We split the data into 5 folds of equal size. A single fold is retained for test, whereas three of the remaining folds are used as training data and the final fold is used as validation data. We repeated the process 5 times (one per fold) and report the means and standard deviations of results on the different test sets.
|
| 133 |
+
|
| 134 |
+
Table 1 summarizes the results obtained for each model. First, we observe that, for most of Diet Network architectures, training with an reconstruction term in the loss $( \gamma > 0 )$ ) reduces the misclassification error and provides a lower standard deviation over the folds, suggesting more robustness to variations in the learnt feature embedding.
|
| 135 |
+
|
| 136 |
+
Training the models end-to-end, with no pre-computed feature embedding, yielded higher misclassification error than simply training the basic model, which could be attributed to the fact that adding the prediction networks makes a difficult, high-dimensional optimization problem even harder. As a general trend, adding pre-computed feature embeddings achieved better performance (lower error), while allowing to significantly reduce the number of free parameters in the fat layers of the model. Among the tested feature embeddings, random projections achieved good results, highlighting the potential of the model when reducing the number of free parameters.
|
| 137 |
+
|
| 138 |
+
Using the SNP2Vec embedding, trained to exploit the similarities and co-occurences between the SNPs, in conjunction with the Diet Networks framework obtains slightly better results than the model using a random projection. The addition of the reconstruction criterion does not appear to reduce the number of errors made by the model but it does appear to reduce the variance of the results, as observed on the other models.
|
| 139 |
+
|
| 140 |
+
Despite its simplicity, the per class histogram encoding (when used with a reconstruction criterion) yielded the best results. Note that this encoding is the one with the fewest number of free parameters in the fat layers, with a reduction factor of almost 4000 w.r.t. the analogous basic model (with reconstruction). Figure 3(a) shows the mean results obtained with the histogram embedding. As shown in the figure, when considering the ethnicity, the main misclassifications involve ethnicities likely to display very close genetic proximity, such as British from England and Scotland, and Utah residents with Northern and Western ancestry (likely to be immigrants from England), or Indian Telugu and Sri Lankan Tamil for instance. However, the model achieves almost $100 \%$ accuracy when considering the 5 geographical regions.
|
| 141 |
+
|
| 142 |
+
We also compared the performance of our model to the principal component analysis (PCA) approach, commonly used in the genomics domain, to select subgroups of individuals in order to perform more homogeneous analysis. The number of principal components (PCs) is chosen according to their significance, and usually varies from one dataset to another, being 10 the de facto standard for small datasets. However, in the case of the 1000 Genomes dataset, we could go up to $5 0 \mathrm { P C s }$ . Therefore, we trained a linear classifier on top of PCA features, considering 10 and $5 0 \mathrm { P C s }$ , $1 0 0 \mathrm { P C s }$ to match the number of feature used in the other experiments, as well as $2 0 0 \mathrm { P C s }$ . Using $2 0 0 ~ \mathrm { P C s }$ yielded better performance, but going beyond that saturated in terms of misclassification error (see SectionC in Appendix for more details). Adding hidden layers to the classifier didn’t help either (see reported results for several MLP configurations before the linear classifier).
|
| 143 |
+
|
| 144 |
+
# 5 CONCLUSION
|
| 145 |
+
|
| 146 |
+
In this paper, we proposed Diet Networks, a novel network parametrization, which considerably reduces the number of free parameters in the fat layers of a model when the input is very high dimensional. We showed how using the parameter prediction networks, yielded better generalization in terms of misclassification error. Notably, when using pre-computed feature embeddings that maximally reduced the number of free parameters, we were able to obtain our best results. We validated our approach on the publicly available 1000 genomes dataset, addressing the relevant task of ancestry prediction based on SNP data. This work demonstrated the potential of deep learning models to tackle domain-specific tasks where there is a mismatch between the number of samples and their high dimensionality.
|
| 147 |
+
|
| 148 |
+
Table 1: Results for 1000 Genomes ancestry prediction. Raw end2end, random projection and SNP2Vec embeddings have dimensionality 100, whereas per class histograms has dimensionality 78. Note that the reported number of free parameters corresponds to the free parameters of the fat layers of the models.
|
| 149 |
+
|
| 150 |
+
<table><tr><td rowspan=1 colspan=1>Model & Embedding</td><td rowspan=1 colspan=1>MeanMisclassif.Error.(%)</td><td rowspan=1 colspan=1>#of free parameters</td></tr><tr><td rowspan=1 colspan=1>Basic</td><td rowspan=1 colspan=1>8.31 ± 1.83</td><td rowspan=1 colspan=1>31.5M</td></tr><tr><td rowspan=1 colspan=1>Raw end2end</td><td rowspan=1 colspan=1>8.88 ±1.42</td><td rowspan=1 colspan=1>217.2k</td></tr><tr><td rowspan=1 colspan=1>Random Projection</td><td rowspan=1 colspan=1>9.03±1.20</td><td rowspan=1 colspan=1>10.1k</td></tr><tr><td rowspan=1 colspan=1>SNP2Vec</td><td rowspan=1 colspan=1>7.60 ± 1.28</td><td rowspan=1 colspan=1>10.1k</td></tr><tr><td rowspan=1 colspan=1>Per class histograms</td><td rowspan=1 colspan=1>7.88 ± 1.40</td><td rowspan=1 colspan=1>7.9k</td></tr><tr><td rowspan=1 colspan=1>Basic with reconstruction</td><td rowspan=1 colspan=1>7.76 ± 1.38</td><td rowspan=1 colspan=1>63M</td></tr><tr><td rowspan=1 colspan=1>Raw end2end with reconstruction</td><td rowspan=1 colspan=1>8.28 ± 1.92</td><td rowspan=1 colspan=1>227.3k</td></tr><tr><td rowspan=1 colspan=1>Random Projection with reconstruction</td><td rowspan=1 colspan=1>8.03±1.03</td><td rowspan=1 colspan=1>20.2k</td></tr><tr><td rowspan=1 colspan=1>SNP2Vecwith reconstruction</td><td rowspan=1 colspan=1>7.88 ±0.72</td><td rowspan=1 colspan=1>20.2k</td></tr><tr><td rowspan=1 colspan=1>Per class histograms with reconstruction</td><td rowspan=1 colspan=1>7.44 ± 0.45</td><td rowspan=1 colspan=1>15.8k</td></tr><tr><td rowspan=1 colspan=1>Traditionalapproaches</td><td rowspan=1 colspan=2>Mean Misclassif. Error. (%)</td></tr><tr><td rowspan=1 colspan=1>PCA (10 PCs)</td><td rowspan=1 colspan=2>20.56 ± 3.20</td></tr><tr><td rowspan=1 colspan=1>PCA (50 PCs)</td><td rowspan=1 colspan=2>12.29 ± 0.89</td></tr><tr><td rowspan=1 colspan=1>PCA (100 PCs)</td><td rowspan=1 colspan=2>10.52 ± 0.25</td></tr><tr><td rowspan=1 colspan=1>PCA (200 PCs)</td><td rowspan=1 colspan=2>9.33±1.24</td></tr><tr><td rowspan=1 colspan=1>PCA(100 PCs) + MLP(50)</td><td rowspan=1 colspan=2>12.67±0.67</td></tr><tr><td rowspan=1 colspan=1>PCA(100 PCs)+MLP(100)</td><td rowspan=1 colspan=2>12.18 ±1.75</td></tr><tr><td rowspan=1 colspan=1>PCA(100 PCs)+MLP(100,100)</td><td rowspan=1 colspan=2>11.95 ± 2.29</td></tr></table>
|
| 151 |
+
|
| 152 |
+
Given the high accuracy achieved in the ancestry prediction task, we believe that deep learning techniques can improve standard practices in the analysis of human polymorphism data. We expect that these techniques will allow us to tackle the more challenging problem of conducting genetic association studies. Hence, we expect to further develop our method to conduct population-aware analyses of SNP data in disease cohorts. The increased power of deep learning methods to identify the genetic basis of common diseases could lead to better patient risk prediction and will improve our overall understanding of disease etiology.
|
| 153 |
+
|
| 154 |
+
# ACKNOWLEDGMENTS
|
| 155 |
+
|
| 156 |
+
The authors would like to thank the developers of Theano Theano Development Team (2016) and Lasagne Lasagne (2016). We acknowledge the support of the following agencies for research funding and computing support: Imagia, CIFAR, Canada Research Chairs, Compute Canada and Calcul Quebec. J.G.H. is an EPAC/Linacre Junior Research Fellow funded by the Human Frontiers ´ Program (LT-001017/2013-L). Special thanks to Valeria Romero-Soriano, Xavier Grau-Bov \` e and ´ Margaux Luck for their patience sharing genomic biology expertise; as well as to Michal Drozdzal, Caglar Gulcehre and Simon Jegou for useful discussions and support. ´
|
| 157 |
+
|
| 158 |
+
# REFERENCES
|
| 159 |
+
|
| 160 |
+
Babak Alipanahi, Andrew Delong, Matthew T Weirauch, and Brendan J Frey. Predicting the sequence specificities of dna-and rna-binding proteins by deep learning. Nature biotechnology, 2015.
|
| 161 |
+
|
| 162 |
+
Marcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W. Hoffman, David Pfau, Tom Schaul, and Nando de Freitas. Learning to learn by gradient descent by gradient descent. Technical report, Google DeepMind, 2016.
|
| 163 |
+
|
| 164 |
+
Y. Bengio, S. Bengio, and J. Cloutier. Learning a synaptic learning rule. 1991 Neural Networks for Computing Conference, Snowbird, 1991.
|
| 165 |
+
|
| 166 |
+
Luca Bertinetto, Joao F. Henriques, Jack Valmadre, Philip H. S. Torr, and Andrea Vedaldi. Learning ˜ feed-forward one-shot learners. CoRR, abs/1606.05233, 2016.
|
| 167 |
+
|
| 168 |
+
Ella Bingham and Heikki Mannila. Random projection in dimensionality reduction: Applications to image and text data. In Proceedings of the Seventh ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’01, pp. 245–250. ACM, 2001. doi: 10.1145/ 502512.502546.
|
| 169 |
+
|
| 170 |
+
Bert De Brabandere, Xu Jia, Tinne Tuytelaars, and Luc Van Gool. Dynamic filter networks. CoRR, abs/1605.09673, 2016.
|
| 171 |
+
|
| 172 |
+
Yifei Chen, Yi Li, Rajiv Narayan, Aravind Subramanian, and Xiaohui Xie. Gene expression inference with deep learning. Bioinformatics, 2016. doi: 10.1093/bioinformatics/btw074.
|
| 173 |
+
|
| 174 |
+
The 1000 Genomes Project Consortium. A global reference for human genetic variation. Nature, 2015. doi: 10.1038/nature15393.
|
| 175 |
+
|
| 176 |
+
Misha Denil, Babak Shakibi, Laurent Dinh, Marc’Aurelio Ranzato, and Nando de Freitas. Predicting parameters in deep learning. arXiv:1306.0543, 2013.
|
| 177 |
+
|
| 178 |
+
Faustino Gomez and Juergen Schmidhuber. Evolving modular fast-weight networks for control. In Proceedings of the Fifteenth International Conference on Artificial Neural Networks: ICANN-05, pp. 383–389, 2005.
|
| 179 |
+
|
| 180 |
+
David Ha, Andrew Dai, and Quoc V. Le. Hypernetworks. CoRR, abs/1609.09106, 2016.
|
| 181 |
+
|
| 182 |
+
Ryan J Haasl, Catherine A McCarty, and Bret A Payseur. Genetic ancestry inference using support vector machines, and the active emergence of a unique american population. European Journal of Human Genetics, 2013. doi: 10.1038/ejhg.2012.258.
|
| 183 |
+
|
| 184 |
+
David R Kelley, Jasper Snoek, and John Rinn. Basset: Learning the regulatory code of the accessible genome with deep convolutional neural networks. bioRxiv, 2016. doi: 10.1101/028399. URL http://biorxiv.org/content/early/2016/02/18/028399.
|
| 185 |
+
|
| 186 |
+
Lasagne. Lasagne. https://github.com/Lasagne/Lasagne, 2016.
|
| 187 |
+
|
| 188 |
+
Michael K. K. Leung, Andrew Delong, Babak Alipanahi, and Brendan J. Frey. Machine Learning in Genomic Medicine: A Review of Computational Problems and Data Sets. Proceedings of the IEEE, 104(1):176–197, January 2016. ISSN 0018-9219. doi: 10.1109/jproc.2015.2494198. URL http://dx.doi.org/10.1109/jproc.2015.2494198.
|
| 189 |
+
|
| 190 |
+
T. Mikolov, I. Sutskever, K. Chen, G.S. Corrado, and J. Dean. Distributed representations of words and phrases and their compositionality. In NIPS’2013, pp. 3111–3119. 2013.
|
| 191 |
+
|
| 192 |
+
Larsson Omberg, Jacqueline Salit, Neil Hackett, Jennifer Fuller, Rebecca Matthew, Lotfi Chouchane, Juan L Rodriguez-Flores, Carlos Bustamante, Ronald G Crystal, and Jason G Mezey. Inferring genome-wide patterns of admixture in qataris using fifty-five ancestral populations. BMC Genetics, 2012. doi: 10.1186/1471-2156-13-49.
|
| 193 |
+
|
| 194 |
+
Alkes L Price, Nick J Patterson, Robert M Plenge, Michael E Weinblatt, Nancy A Shadick, and D Reich. Principal components analysis corrects for stratification in genome-wide association studies. Nature Genetics, 2006. doi: 10.1038/ng1847.
|
| 195 |
+
|
| 196 |
+
Jurgen Schmidhuber. Learning to control fast-weight memories: An alternative to dynamic recurrent ¨ networks. Neural Comput., 4(1):131–139, 1992.
|
| 197 |
+
|
| 198 |
+
Sara Sheehan and Yun S Song. Deep learning for population genetic inference. PLoS Comput Biol, 2016. doi: 10.1371/journal.pcbi.1004845.
|
| 199 |
+
|
| 200 |
+
Ritambhara Singh, Jack Lanchantin, Gabriel Robins, and Yanjun Qi. Deepchrome: deep-learning for predicting gene expression from histone modifications. Bioinformatics, 2016. doi: 10.1093/ bioinformatics/btw427.
|
| 201 |
+
|
| 202 |
+
Kenneth O. Stanley, David B. D’Ambrosio, and Jason Gauci. A hypercube-based encoding for evolving large-scale neural networks. Artif. Life, 15(2):185–212, April 2009.
|
| 203 |
+
|
| 204 |
+
Theano Development Team. Theano: A Python framework for fast computation of mathematical expressions. arXiv e-prints, abs/1605.02688, May 2016. URL http://arxiv.org/abs/ 1605.02688.
|
| 205 |
+
|
| 206 |
+
T. Tieleman and G. Hinton. Lecture 6.5—RmsProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012.
|
| 207 |
+
|
| 208 |
+
Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In Andrew McCallum and Sam Roweis (eds.), Proceedings of the 25th Annual International Conference on Machine Learning (ICML 2008), pp. 1096–1103. Omnipress, 2008.
|
| 209 |
+
|
| 210 |
+
Jian Zhou and Olga Troyanskaya. Predicting effects of noncoding variants with deep learningbased sequence model. Nature Methods, 2015. doi: 10.1038/nmeth.3547.
|
| 211 |
+
|
| 212 |
+
# A THE 1000 GENOMES PROJECT LEGENDS
|
| 213 |
+
|
| 214 |
+
A.1 POPULATION ETHNICITY LEGEND
|
| 215 |
+
|
| 216 |
+
ACB: African Caribbeans in Barbados
|
| 217 |
+
ASW: Americans of African Ancestry in SW USA
|
| 218 |
+
BEB: Bengali from Bangladesh
|
| 219 |
+
CDX: Chinese Dai in Xishuangbanna
|
| 220 |
+
CEU: Utah Residents (CEPH) with Northern and Western Ancestry
|
| 221 |
+
CHB: Han Chinese in Bejing
|
| 222 |
+
CHS: Southern Han Chinese
|
| 223 |
+
CLM: Colombians from Medellin
|
| 224 |
+
ESN: Esan in Nigeria
|
| 225 |
+
FIN: Finnish in Finland
|
| 226 |
+
GBR: British in England and Scotland
|
| 227 |
+
GIH: Gujarati Indian from Houston
|
| 228 |
+
GWD: Gambian in Western Divisions in the Gambia
|
| 229 |
+
IBS: Iberian Population in Spain
|
| 230 |
+
ITU: Indian Telugu from the UK
|
| 231 |
+
JPT: Japanese in Tokyo
|
| 232 |
+
KHV: Kinh in Ho Chi Minh City
|
| 233 |
+
LWK: Luhya in Webuye
|
| 234 |
+
MSL: Mende in Sierra Leone
|
| 235 |
+
MXL: Mexican Ancestry from Los Angeles
|
| 236 |
+
PEL: Peruvians from Lima
|
| 237 |
+
PJL: Punjabi from Lahore
|
| 238 |
+
PUR: Puerto Ricans
|
| 239 |
+
STU: Sri Lankan Tamil from the UK
|
| 240 |
+
TSI: Toscani in Italia
|
| 241 |
+
YRI: Yoruba in Ibadan
|
| 242 |
+
|
| 243 |
+
A.2 GEOGPRAHICAL REGION LEGEND
|
| 244 |
+
|
| 245 |
+
AFR: African
|
| 246 |
+
AMR: Ad Mixed American
|
| 247 |
+
EAS: East Asian
|
| 248 |
+
EUR: European
|
| 249 |
+
SAS: South Asian
|
| 250 |
+
|
| 251 |
+
# B OBTAINING THE 1000 GENOMES DATA
|
| 252 |
+
|
| 253 |
+
SNP data for the 1000G dataset was downloaded from ftp://ftp.1000genomes.ebi.ac. uk:21/vol1/ftp/release/20130502/supporting/hd_genotype_chip/
|
| 254 |
+
|
| 255 |
+
− ALL . wgs . n h g r i c o r i e l l a f f y 6 . 2 0 1 4 0 8 2 5 . g e n o t y p e s h a s p e d . v c f . g z
|
| 256 |
+
|
| 257 |
+
− a f f y s a m p l e s . 2 0 1 4 1 1 1 8 . p a n e l
|
| 258 |
+
|
| 259 |
+
# Representative commands:
|
| 260 |
+
|
| 261 |
+
With PLINK v1.90b2n 64-bit https://www.cog-genomics.org/plink2
|
| 262 |
+
|
| 263 |
+
# c o n v e r t v c f t o p l i n k f o r m a t ( b e d ) , a n d o n l y k e e p i n g common m a r k e r s ( m i n o r a l l e l e f r e q u e n c y $>$ 0 . 0 5 i n c o m b i n e d s a m p l e )
|
| 264 |
+
$>$ p l i n k −−v c f \$ p a t h / ALL . wgs . n h g r i c o r i e l l a f f y 6 . 2 0 1 4 0 8 2 5 . g e n o t y p e s h a s p e d . v c f . g z −−maf 0 . 0 5 −−o u t $\$ 1$ p a t h / a f f y 6 b i a l l e l i c s n p s m a f 0 0 5 a u t −−n o t −c h r X Y MT −−make−b e d
|
| 265 |
+
# p r o d u c e a p r u n e d s u b s e t o f m a r k e r s t h a t a r e i n a p p r o x i m a t e l i n k a g e e q u i l i b r i u m w i t h e a c h o t h e r
|
| 266 |
+
$>$ p l i n k −− b f i l e \$ p a t h / a f f y 6 b i a l l e l i c s n p s m a f 0 0 5 a u t −−i n d e p − p a i r w i s e 50 5 0 . 5 −−o u t $\$ 5$ p a t h / a f f y 6 b i a l l e l i c s n p s m a f 0 0 5 a u t
|
| 267 |
+
# e x c l u d e m a r k e r s t o g e t p r u n e d s u b s e t
|
| 268 |
+
$>$ p l i n k −− b f i l e \$ p a t h / a f f y 6 b i a l l e l i c s n p s m a f 0 0 5 a u t −−e x c l u d e $\$ 9$ p a t h / a f f y 6 b i a l l e l i c s n p s m a f 0 0 5 a u t . p r u n e . o u t −−r e c o d e A −− o u t $\$ 5$ p a t h / a f f y 6 b i a l l e l i c s n p s m a f 0 0 5 t h i n n e d a u t A
|
| 269 |
+
|
| 270 |
+
For information on how to download this pre-processed dataset directly, please email Adriana Romero or Pierre Luc Carrier.
|
| 271 |
+
|
| 272 |
+
# C PCA COMPONENTS AND MISCLASSIFICATION ERROR
|
| 273 |
+
|
| 274 |
+
In this section, we analyze the influence of increasing the number of PCs used to perform classification. Figure 4 depicts the obtained results when considering 100, 200, 400, 800 and $1 0 0 0 \mathrm { P C s }$ . As shown in the figure, the best validation error comes with PC200. Further increasing the number of PCs improves the training error but does not generalize well on the validation set.
|
| 275 |
+
|
| 276 |
+

|
| 277 |
+
Figure 4: PCA: Train and validation misclassification error for different numbers of PCs.
|
parse/train/Sk-oDY9ge/Sk-oDY9ge_content_list.json
ADDED
|
@@ -0,0 +1,1327 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "DIET NETWORKS: THIN PARAMETERS FOR FAT GENOMICS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
173,
|
| 8 |
+
98,
|
| 9 |
+
689,
|
| 10 |
+
145
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Adriana Romero∗, Pierre Luc Carrier∗, Akram Erraqabi, Tristan Sylvain, Alex Auvolat, Etienne Dejoie ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
452,
|
| 21 |
+
212
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Montreal Institute for Learning Algorithms Montreal, Quebec, Canada firstName.lastName@umontreal.ca, except adriana.romero.soriano@umontreal.ca and pierre-luc.carrier@umontreal.ca ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
213,
|
| 31 |
+
524,
|
| 32 |
+
281
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Marc-Andre Legault ´ 1, Marie-Pierre Dube´1,2,3 ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
545,
|
| 42 |
+
170,
|
| 43 |
+
867,
|
| 44 |
+
184
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1University of Montreal, Faculty of Medicine \n2Montreal Heart Institute, \n3Beaulieu-Saucier Pharmacogenomics Centre \nMontreal, Quebec, Canada \nmarc-andre.legault.1@umontreal.ca \nmarie-pierre.dube@umontreal.ca ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
545,
|
| 53 |
+
185,
|
| 54 |
+
867,
|
| 55 |
+
268
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Julie G. Hussin ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
184,
|
| 65 |
+
303,
|
| 66 |
+
292,
|
| 67 |
+
315
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Wellcome Trust Centre for Human Genetics \nUniversity of Oxford \nOxford, UK \njulieh@well.ox.ac.uk ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
184,
|
| 76 |
+
318,
|
| 77 |
+
472,
|
| 78 |
+
371
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Yoshua Bengio ",
|
| 85 |
+
"text_level": 1,
|
| 86 |
+
"bbox": [
|
| 87 |
+
511,
|
| 88 |
+
303,
|
| 89 |
+
614,
|
| 90 |
+
316
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "Montreal Institute for Learning Algorithms Montreal, Quebec, Canada yoshua.umontreal@gmail.com ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
511,
|
| 99 |
+
318,
|
| 100 |
+
794,
|
| 101 |
+
358
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "ABSTRACT ",
|
| 108 |
+
"text_level": 1,
|
| 109 |
+
"bbox": [
|
| 110 |
+
454,
|
| 111 |
+
410,
|
| 112 |
+
544,
|
| 113 |
+
424
|
| 114 |
+
],
|
| 115 |
+
"page_idx": 0
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"type": "text",
|
| 119 |
+
"text": "Learning tasks such as those involving genomic data often poses a serious challenge: the number of input features can be orders of magnitude larger than the number of training examples, making it difficult to avoid overfitting, even when using the known regularization techniques. We focus here on tasks in which the input is a description of the genetic variation specific to a patient, the single nucleotide polymorphisms (SNPs), yielding millions of ternary inputs. Improving the ability of deep learning to handle such datasets could have an important impact in medical research, more specifically in precision medicine, where highdimensional data regarding a particular patient is used to make predictions of interest. Even though the amount of data for such tasks is increasing, this mismatch between the number of examples and the number of inputs remains a concern. Naive implementations of classifier neural networks involve a huge number of free parameters in their first layer (number of input features times number of hidden units): each input feature is associated with as many parameters as there are hidden units. We propose a novel neural network parametrization which considerably reduces the number of free parameters. It is based on the idea that we can first learn or provide a distributed representation for each input feature (e.g. for each position in the genome where variations are observed in data), and then learn (with another neural network called the parameter prediction network) how to map a feature’s distributed representation (based on the feature’s identity not its value) to the vector of parameters specific to that feature in the classifier neural network (the weights which link the value of the feature to each of the hidden units). This approach views the problem of producing the parameters associated with each feature as a multi-task learning problem. We show experimentally on a population stratification task of interest to medical studies that the proposed approach can significantly reduce both the number of parameters and the error rate of the classifier. ",
|
| 120 |
+
"bbox": [
|
| 121 |
+
232,
|
| 122 |
+
441,
|
| 123 |
+
764,
|
| 124 |
+
813
|
| 125 |
+
],
|
| 126 |
+
"page_idx": 0
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"type": "text",
|
| 130 |
+
"text": "1 INTRODUCTION ",
|
| 131 |
+
"text_level": 1,
|
| 132 |
+
"bbox": [
|
| 133 |
+
176,
|
| 134 |
+
842,
|
| 135 |
+
336,
|
| 136 |
+
857
|
| 137 |
+
],
|
| 138 |
+
"page_idx": 0
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"type": "text",
|
| 142 |
+
"text": "Medical datasets often involve a dire imbalance between the number of training examples and the number of input features, especially when genomic information is used as input to the trained predictor. This is problematic in the context where we want to apply deep learning (which typically involves large models) to precision medicine, i.e., making patient-specific predictions using a potentially large set of input features to better characterize the patient. This paper proposes a novel approach, called Diet Networks, to reparametrize neural networks to considerably reduce their number of free parameters when the input is very high-dimensional and orders of magnitude larger than the number of training examples. ",
|
| 143 |
+
"bbox": [
|
| 144 |
+
176,
|
| 145 |
+
873,
|
| 146 |
+
823,
|
| 147 |
+
901
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 0
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "text",
|
| 153 |
+
"text": "",
|
| 154 |
+
"bbox": [
|
| 155 |
+
174,
|
| 156 |
+
103,
|
| 157 |
+
823,
|
| 158 |
+
188
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "text",
|
| 164 |
+
"text": "Genomics is the study of the genetic code encapsulated as DNA in all living organisms’ cells. Genomes contain the instructions to produce and regulate all the functional components needed to guide the development and adaptation of living organisms. In the last decades, advances in genomic technologies resulted in an explosion of available data, making it more interesting to apply advanced machine learning techniques such as deep learning. Learning tasks involving genomic data and already tackled by deep learning include: using Convolutional Neural Networks (CNNs) to learn the functional activity of DNA sequences (Basset package, Kelley et al. (2016), predicting effects of noncoding DNA (DeepSEA, Zhou & Troyanskaya (2015)), investigating the regulatory role of RNA binding proteins in alternative splicing (Alipanahi et al., 2015), inferring gene expression patterns (Chen et al., 2016; Singh et al., 2016) and population genetic parameters (Sheehan & Song, 2016) among others (see Leung et al. (2016) for a detailed example). Noticeably, most of these techniques are based on sequence data where convolutional or recurrent networks are appropriate. When the full DNA sequence is unavailable, such as when data is acquired through genotyping, other methods need to be used. All this work shows that deep learning can be used to tackle genomic-related tasks, paving the road towards a better understanding of the biological impact of DNA variation. ",
|
| 165 |
+
"bbox": [
|
| 166 |
+
174,
|
| 167 |
+
194,
|
| 168 |
+
825,
|
| 169 |
+
401
|
| 170 |
+
],
|
| 171 |
+
"page_idx": 1
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"type": "text",
|
| 175 |
+
"text": "Applying deep learning to human genetic variation holds the promise of identifying individuals at risk for medical conditions. Modern genotyping technologies usually target millions of simple variants across the genome, called single nucleotide polymorphisms (SNPs). These genetic mutations result from substitutions from one nucleotide to another (eg. A to C), where both versions exist within a population. In modern studies, as many as 5 millions SNPs can be acquired for every participant. These datasets differ from other types of genomic data because they focus on the genetic differences between individuals which represents a space of high dimensionality where sequencecontext information is unavailable. In medical genetics, these variants are tested for their association with a trait of interest, an approach termed genome-wide association study (GWAS). This methodology aims at finding genetic variants implicated in disease susceptibility, etiology and treatment. ",
|
| 176 |
+
"bbox": [
|
| 177 |
+
174,
|
| 178 |
+
410,
|
| 179 |
+
825,
|
| 180 |
+
549
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "text",
|
| 186 |
+
"text": "An important confounding factor in GWAS is population stratification, which arises because both disease prevalence and genetic profiles vary from one population to the other. Although most GWAS have been restricted to homogeneous populations, dimensionality reduction techniques are generally used to account for population-level genetic differences (Price et al., 2006). Our experiments compare such dimensionality reduction techniques (based on principal components analysis, PCA) to the proposed Diet Network parametrization, as well as with standard deep networks. ",
|
| 187 |
+
"bbox": [
|
| 188 |
+
174,
|
| 189 |
+
555,
|
| 190 |
+
823,
|
| 191 |
+
638
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "Recently, several machine learning methods have been successfully applied to detect population stratification, based on the presence of systematic differences in genetic variation between populations. For instance, Support Vector Machines (SVM) models have been used multiple times to infer recent genetic ancestry of sub-continental populations (Haasl et al. (2013)), and local ancestry in admixed populations (SupportMix, Omberg et al. (2012), 23andMe, Inc.). However SVM methods are very sensitive to the the kernel choice and the parameters. They also tend to overfit the model selection criterion which usually induces a limitation in its predictive power. ",
|
| 198 |
+
"bbox": [
|
| 199 |
+
174,
|
| 200 |
+
646,
|
| 201 |
+
823,
|
| 202 |
+
743
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "text",
|
| 208 |
+
"text": "In this work, we are interested in predicting the genetic ancestry of an individual from their SNP data using a novel deep learning approach, Diet Networks, which allow us to considerably reduce the number of free parameters. Therefore, we propose to tackle this problem by introducing a multi-task architecture in which the problem of predicting the appropriate parameters for each input feature is considered like a task in itself, and the same parameter prediction network is used for all of the hundreds of thousands of input features. This parameter prediction network learns to predict these feature-specific parameters as a function of a distributed representation of the feature identity, or feature embedding. The feature embedding can be learned as part of end-to-end training or using other datasets or a priori knowledge about the features. What is important is that two features which are similar in some appropriate sense (in terms of their interactions with other features or other variables observed in any dataset) end up having similar embeddings, and thus a similar parameter vector as output of the parameter prediction network. A practical advantage of this approach is that the parameter prediction network can generalize to new features for which there is no labeled training data (without the target to be predicted by the classifier), so long as it is possible to derive an embedding for that feature (for example using just the unlabeled observations of co-occurences of that feature with other features in human genomes). ",
|
| 209 |
+
"bbox": [
|
| 210 |
+
174,
|
| 211 |
+
751,
|
| 212 |
+
825,
|
| 213 |
+
916
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 1
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "",
|
| 220 |
+
"bbox": [
|
| 221 |
+
174,
|
| 222 |
+
103,
|
| 223 |
+
823,
|
| 224 |
+
159
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 2
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "An interesting consideration is that from the point of the parameter prediction network, each feature is an example: more features now allow to better train the parameter prediction network. It is like if we were considering not the data matrix itself but its transpose. This is actually how the Diet Network implementation processes the data, by using the transpose of the matrix of input values as the input part of the learning task for the parameter prediction network. ",
|
| 231 |
+
"bbox": [
|
| 232 |
+
174,
|
| 233 |
+
166,
|
| 234 |
+
825,
|
| 235 |
+
236
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "text",
|
| 241 |
+
"text": "The idea of having two networks interacting with each other and with one producing parameters for the other is well rooted in the machine learning literature (Bengio et al., 1991; Schmidhuber, 1992; Gomez & Schmidhuber, 2005; Stanley et al., 2009; Denil et al., 2013; Andrychowicz et al., 2016). Recent efforts in the same direction include works such as (Bertinetto et al., 2016; Brabandere et al., 2016; Ha et al., 2016) that use a network to predict the parameters of a Convolutional Neural Network (CNN). Brabandere et al. (2016) introduce a dynamic filter module that generates network filters conditioned on an input. Bertinetto et al. (2016) propose to learn the parameters of a deep model in one shot, by training a second network to predict the parameters of the first from a single exemplar. Hypernetworks (Ha et al., 2016) explore the idea of using a small network to predict the parameters of another network, training them in an end-to-end fashion. The small network takes as input the feature embedding from the previous layer and learns the parameters of the current layer. ",
|
| 242 |
+
"bbox": [
|
| 243 |
+
174,
|
| 244 |
+
242,
|
| 245 |
+
825,
|
| 246 |
+
396
|
| 247 |
+
],
|
| 248 |
+
"page_idx": 2
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"type": "text",
|
| 252 |
+
"text": "To the best of our knowledge, deep learning has never been used so far to tackle the problem of ancestry prediction based on SNP data. Compared to other approaches that attempt to learn model parameters using a parameter prediction network, our main goal is to reduce the large number of parameters required by the model, by considering the input features themselves as sub-tasks in a multi-task view of the learning problem, as opposed to constructing a model with even higher capacity, as seen, e.g. in (Ha et al., 2016). Our approach is thus based on building an embedding of these tasks (the features) in order to further reduce the number of parameters. ",
|
| 253 |
+
"bbox": [
|
| 254 |
+
174,
|
| 255 |
+
404,
|
| 256 |
+
825,
|
| 257 |
+
501
|
| 258 |
+
],
|
| 259 |
+
"page_idx": 2
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"type": "text",
|
| 263 |
+
"text": "We evaluate our method on a publicly available dataset for ancestry prediction, the 1000 Genomes dataset1, that best represents the human population diversity. Because population-specific differences in disease and drug response are widespread, identifying an individual’s ancestry heritage based on SNP data is a very important task to help detect biological causation and achieve good predictive performance in precision medicine. Most importantly, ancestry-aware approaches in precision genomics will reduce the hidden risks of genetic testing, by preventing spurious diagnosis and ineffective treatment. ",
|
| 264 |
+
"bbox": [
|
| 265 |
+
174,
|
| 266 |
+
507,
|
| 267 |
+
825,
|
| 268 |
+
604
|
| 269 |
+
],
|
| 270 |
+
"page_idx": 2
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"type": "text",
|
| 274 |
+
"text": "2 METHOD ",
|
| 275 |
+
"text_level": 1,
|
| 276 |
+
"bbox": [
|
| 277 |
+
174,
|
| 278 |
+
627,
|
| 279 |
+
282,
|
| 280 |
+
643
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 2
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "text",
|
| 286 |
+
"text": "In this section, we describe the Diet Networks as well as the feature embeddings used by the model. ",
|
| 287 |
+
"bbox": [
|
| 288 |
+
173,
|
| 289 |
+
660,
|
| 290 |
+
821,
|
| 291 |
+
674
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 2
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "text",
|
| 297 |
+
"text": "2.1 MODEL ",
|
| 298 |
+
"text_level": 1,
|
| 299 |
+
"bbox": [
|
| 300 |
+
174,
|
| 301 |
+
694,
|
| 302 |
+
267,
|
| 303 |
+
708
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 2
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "text",
|
| 309 |
+
"text": "Our model aims at reducing the number of free parameters that a network trained on fat data would typically have. ",
|
| 310 |
+
"bbox": [
|
| 311 |
+
176,
|
| 312 |
+
720,
|
| 313 |
+
823,
|
| 314 |
+
750
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 2
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "text",
|
| 320 |
+
"text": "Let $\\mathbf { X } \\in \\mathbb { R } ^ { N \\times N _ { d } }$ be a matrix of data, with $N$ samples and $N _ { d }$ features, where $N \\ll N _ { d }$ (e. g. $N$ being approximately 100 times smaller than $N _ { d . }$ ). We build a multi-layer perceptron (MLP), which takes $\\mathbf { X }$ as input, computes a hidden representation and outputs a prediction $\\hat { \\mathbf Y }$ . Optionally, the MLP may generate a reconstruction $\\hat { \\mathbf X }$ of the input data from the hidden representation. Figure 1(a) illustrates this basic network architecture. Let $\\mathbf { x _ { i } }$ be one data sample, i.e. a row in $\\mathbf { X }$ . The standard formulations to compute its hidden representation $\\mathbf { h _ { i } }$ , output prediction $\\hat { \\mathbf { y } } _ { \\mathbf { i } }$ and reconstruction $\\hat { \\bf x } _ { \\bf i }$ are given by ",
|
| 321 |
+
"bbox": [
|
| 322 |
+
173,
|
| 323 |
+
756,
|
| 324 |
+
825,
|
| 325 |
+
858
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 2
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "equation",
|
| 331 |
+
"img_path": "images/279880e9472ecab186a8e02cdae756ba9c190fad866ea883db6a87b746af98de.jpg",
|
| 332 |
+
"text": "$$\n\\mathbf { h _ { i } } = f ( \\mathbf { x _ { i } } ) , \\quad \\hat { \\mathbf { y _ { i } } } = g ( \\mathbf { h _ { i } } ) , \\quad \\hat { \\mathbf { x _ { i } } } = r ( \\mathbf { h _ { i } } ) ,\n$$",
|
| 333 |
+
"text_format": "latex",
|
| 334 |
+
"bbox": [
|
| 335 |
+
359,
|
| 336 |
+
859,
|
| 337 |
+
633,
|
| 338 |
+
876
|
| 339 |
+
],
|
| 340 |
+
"page_idx": 2
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"type": "text",
|
| 344 |
+
"text": "where $f , g$ and $r$ are non-linear functions. ",
|
| 345 |
+
"bbox": [
|
| 346 |
+
174,
|
| 347 |
+
882,
|
| 348 |
+
449,
|
| 349 |
+
897
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 2
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "image",
|
| 355 |
+
"img_path": "images/5a4c7493d56a4be3b5a2927448f69fa77c0f63af1cd91a8b998d8317bc19d848.jpg",
|
| 356 |
+
"image_caption": [
|
| 357 |
+
"Figure 1: Our model is composed of 3 networks, one basic and two auxiliary networks: (a) a basic discriminative network with optional reconstruction path (dashed arrow), (b) a network that predicts the input fat layer parameters, and (c) a network that predicts the reconstruction fat layer parameters (if any). First layer in the ”prediction networks” (b, c) represents embedding (Emb.). Each MLP block may contain any number of hidden layers. ${ \\bf W _ { e } }$ and $\\mathbf { \\hat { W } _ { d } ^ { T } }$ represent the parameters of the fat hidden layer and the fat reconstruction layer of the basic network (a), respectively. These parameters are predicted by auxiliary networks (b) and (c) – also called parameter prediction networks – to reduce the number of free parameters of (a). "
|
| 358 |
+
],
|
| 359 |
+
"image_footnote": [],
|
| 360 |
+
"bbox": [
|
| 361 |
+
299,
|
| 362 |
+
108,
|
| 363 |
+
704,
|
| 364 |
+
290
|
| 365 |
+
],
|
| 366 |
+
"page_idx": 3
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"type": "text",
|
| 370 |
+
"text": "The number of parameters of the first hidden layer of the architecture grows linearly with the dimensionality of the input data: ",
|
| 371 |
+
"bbox": [
|
| 372 |
+
173,
|
| 373 |
+
444,
|
| 374 |
+
821,
|
| 375 |
+
472
|
| 376 |
+
],
|
| 377 |
+
"page_idx": 3
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"type": "equation",
|
| 381 |
+
"img_path": "images/61a61509566409f759316f2a8d89ce8e19860afc4c2d075cbc7607f15ef6b1dc.jpg",
|
| 382 |
+
"text": "$$\n\\mathbf { h _ { i } ^ { ( 1 ) } } = f _ { 1 } ( \\mathbf { x _ { i } } \\mathbf { W _ { e } } + \\mathbf { b _ { e } } ) ,\n$$",
|
| 383 |
+
"text_format": "latex",
|
| 384 |
+
"bbox": [
|
| 385 |
+
413,
|
| 386 |
+
469,
|
| 387 |
+
580,
|
| 388 |
+
491
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "where ${ \\bf W _ { e } }$ and $\\mathbf { b _ { e } }$ are the layer’s parameters. Using fat data such as the one described in Section 1, leads to a parameter explosion in this layer, hereafter referred to as fat hidden layer. To give the reader an intuition, consider the case of having an input with $N _ { d } = 3 0 0 K$ , and a hidden layer with $N _ { h } ^ { 1 } = 1 0 0$ , the number of parameters of such a layer would be 30M. The same happens to the number of parameters of the optional reconstruction layer, hereafter referred to as fat reconstruction layer. ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
173,
|
| 397 |
+
493,
|
| 398 |
+
825,
|
| 399 |
+
577
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "In order to mitigate this effect, we introduce an auxiliary network to predict the fat layers’ parameters. The auxiliary network takes as input the transposed data matrix $\\mathbf { X ^ { \\mathrm { T } } }$ , extracts a feature embedding and learns a function of this embedding, to be used as parameters of a fat layer: ",
|
| 406 |
+
"bbox": [
|
| 407 |
+
174,
|
| 408 |
+
583,
|
| 409 |
+
825,
|
| 410 |
+
626
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "equation",
|
| 416 |
+
"img_path": "images/71494a94b2754cda75a8e54e1fdff91daafc15632bdd3309ed641819d383fcb6.jpg",
|
| 417 |
+
"text": "$$\n( \\mathbf { W _ { e } } ) _ { \\mathbf { j } : } = \\phi ( \\mathbf { e _ { j } } ) ,\n$$",
|
| 418 |
+
"text_format": "latex",
|
| 419 |
+
"bbox": [
|
| 420 |
+
439,
|
| 421 |
+
633,
|
| 422 |
+
553,
|
| 423 |
+
652
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "where $\\mathbf { e _ { j } }$ represents the embedding of a feature in $\\mathbf { X ^ { \\mathrm { T } } }$ , $\\phi$ is a non-linear function and $( \\mathbf { W _ { e } } ) _ { \\mathbf { j } : }$ is the $j$ -th row of ${ \\bf W _ { e } }$ . This means that each feature is associated with the vector of values it takes in the dataset (e.g. across the patients). Other representations could be used, e.g., derived from other datasets in which those features interact. Figure 1(b) shows a prediction network which is an auxiliary network that predicts the parameters of the fat hidden layer of our basic network. Following the same spirit, Figure 1(c) highlights the interaction between a second prediction network that predicts the fat reconstruction layer parameters and the basic network. The architectures of both auxiliary networks may share the initial feature embedding. ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
173,
|
| 432 |
+
659,
|
| 433 |
+
825,
|
| 434 |
+
773
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "The feature embeddings used in the auxiliary networks allow us to substantially reduce the number of free parameters of the fat layers of the basic architecture. The auxiliary network should predict a matrix of weights of size $N _ { d } \\times N _ { h } ^ { 1 }$ from a feature embedding. Consider a feature embedding that would transform each $N$ -dimensional feature into a $N _ { f }$ -dimensional vector, where $N _ { f } < N$ . The auxiliary network would learn a function $\\phi : \\mathcal { R } ^ { N _ { f } } \\mathbb { R } ^ { N _ { h } ^ { 1 } }$ . Thus, the fat hidden layer of our basic architecture would have $N _ { f } \\times N _ { h } ^ { 1 }$ free parameters (assuming a single layer MLP in the auxiliary network), instead of $N _ { d } \\times N _ { h } ^ { 1 }$ . Following our previous example, where $N _ { d } = 3 0 0 K$ and $N _ { h } ^ { 1 } = 1 0 0$ , using an auxiliary network with previously-obtained feature embeddings of dimensionality $N _ { f } =$ 500 would reduce the number of free parameters of the basic network by a factor of 600 (from 30M to 50K). ",
|
| 441 |
+
"bbox": [
|
| 442 |
+
173,
|
| 443 |
+
780,
|
| 444 |
+
825,
|
| 445 |
+
924
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 3
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "text",
|
| 451 |
+
"text": "The model is trained end-to-end by minimizing the following objective function ",
|
| 452 |
+
"bbox": [
|
| 453 |
+
173,
|
| 454 |
+
103,
|
| 455 |
+
697,
|
| 456 |
+
118
|
| 457 |
+
],
|
| 458 |
+
"page_idx": 4
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "equation",
|
| 462 |
+
"img_path": "images/0724cce3cf6ed1d208e95b07cb95307d38389db714a8bb2449266ac588d6f202.jpg",
|
| 463 |
+
"text": "$$\n\\mathcal { H } ( \\hat { \\mathbf { Y } } , \\mathbf { Y } ) + \\gamma | | \\hat { \\mathbf { X } } - \\mathbf { X } | | _ { 2 } ^ { 2 } ,\n$$",
|
| 464 |
+
"text_format": "latex",
|
| 465 |
+
"bbox": [
|
| 466 |
+
410,
|
| 467 |
+
125,
|
| 468 |
+
583,
|
| 469 |
+
145
|
| 470 |
+
],
|
| 471 |
+
"page_idx": 4
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"type": "text",
|
| 475 |
+
"text": "where $\\mathcal { H }$ refers to the cross-entropy, $\\mathbf { Y }$ to the true classification labels and $\\gamma$ is a tunable parameter to balance the supervised and the reconstruction losses. ",
|
| 476 |
+
"bbox": [
|
| 477 |
+
171,
|
| 478 |
+
151,
|
| 479 |
+
823,
|
| 480 |
+
180
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 4
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "text",
|
| 486 |
+
"text": "2.2 FEATURE EMBEDDINGS ",
|
| 487 |
+
"text_level": 1,
|
| 488 |
+
"bbox": [
|
| 489 |
+
176,
|
| 490 |
+
196,
|
| 491 |
+
377,
|
| 492 |
+
212
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 4
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "The feature embeddings used by the auxiliary networks can be either pre-computed or learnt offline, as well as learnt jointly with the rest of the architecture. In theory, any kind of embedding could be used, as long as we keep in mind that the goal is to reduce the number of free parameters of the basic model. In this work, we considered random projections (Bingham & Mannila, 2001), histograms (which are akin to bag-of-words representations), feature embeddings learnt offline (Mikolov et al., 2013) and feature embeddings jointly learnt with the rest of the proposed architecture. ",
|
| 499 |
+
"bbox": [
|
| 500 |
+
174,
|
| 501 |
+
223,
|
| 502 |
+
825,
|
| 503 |
+
308
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 4
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "Random projection: Randomly initializing an MLP defines a random projection. By using such a projection to encode the high-dimensional feature space into a more manageable lower-dimensional space, we were able to obtain decent results. ",
|
| 510 |
+
"bbox": [
|
| 511 |
+
176,
|
| 512 |
+
314,
|
| 513 |
+
821,
|
| 514 |
+
356
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 4
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "text",
|
| 520 |
+
"text": "Per class histogram: For a given SNP, we can define a histogram of the values it can take over the whole population. Once normalized, this yields 3 values per SNP, corresponding to the proportion of the population having the values 0, 1 and 2 respectively for that SNP. After initial tests showed this was too coarse a representation for the dataset, we instead chose to consider the per-class proportion of the three values. With 26 classes in the 1000 Genomes dataset, this yields an embedding of size 78 for each feature. By this method, the matrix $\\mathbf { X ^ { \\mathrm { T } } }$ is summarized as a $N _ { d } \\times 7 8$ matrix, where $N _ { d }$ is the number of SNPs in the dataset. ",
|
| 521 |
+
"bbox": [
|
| 522 |
+
174,
|
| 523 |
+
363,
|
| 524 |
+
825,
|
| 525 |
+
460
|
| 526 |
+
],
|
| 527 |
+
"page_idx": 4
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"type": "text",
|
| 531 |
+
"text": "SNPtoVec: In Mikolov et al. (2013), the authors propose a word embedding that allows good reconstruction of the words’ context (surrounding words) by a neural network. SNPs do not have a similarly well-defined positional context (SNPs close together in our ordering might very well be independent) so our embedding is instead built by training a denoising autoencoder (DAE) (Vincent et al., 2008) on the matrix X. Thus, the DAE learns to recover the values of missing SNPs by leveraging their similarities and cooccurences with other SNPs. Once the DAE is trained, we obtain an encoding for each feature by feeding to the DAE an input where only that feature is active (the other features are set to 0s) and computing the hidden representation of the autoencoder for that single-feature input. ",
|
| 532 |
+
"bbox": [
|
| 533 |
+
173,
|
| 534 |
+
467,
|
| 535 |
+
825,
|
| 536 |
+
593
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 4
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "Embedding learnt end-to-end from raw data: In this case, we consider the feature embedding to be another MLP, whose input corresponds to the values that a SNP takes for each of the training samples and, whose parameters are learnt jointly with the rest of the network. Note that the layer(s) corresponding to the feature embedding are shared among auxiliary networks. For experiments reported in Section 4, we used a single hidden layer as embedding. ",
|
| 543 |
+
"bbox": [
|
| 544 |
+
174,
|
| 545 |
+
599,
|
| 546 |
+
825,
|
| 547 |
+
670
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 4
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "text",
|
| 553 |
+
"text": "3 DATA: THE 1000 GENOMES PROJECT ",
|
| 554 |
+
"text_level": 1,
|
| 555 |
+
"bbox": [
|
| 556 |
+
174,
|
| 557 |
+
689,
|
| 558 |
+
517,
|
| 559 |
+
707
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 4
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "The 1000 Genomes project is the first project to sequence the genomes of a large number of people in populations worldwide, yielding the largest public catalog of human genetic variants to date Consortium (2015). This allowed large-scale comparison of DNA sequences from populations, thanks to the presence of genetic variation. Individuals of the 1000 Genomes project are samples taken from 26 populations over the world, which are grouped into 5 geographical regions. Figure 2(a) shows a histogram derived from the 1000 Genomes data, depicting the frequency of individuals per population (ethnicity). Analogously, Figure 2(b) depicts the frequency of individuals per geographical region. ",
|
| 566 |
+
"bbox": [
|
| 567 |
+
174,
|
| 568 |
+
722,
|
| 569 |
+
825,
|
| 570 |
+
833
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 4
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "In this dataset, we included 315,345 genetic variants with frequencies of at least $5 \\%$ in 3,450 individuals sampled worldwide from 26 populations, interrogated using microarray genotyping technology: the Genome-Wide Human SNP Array 6.0 by Affymetrix. The mutated state is established by comparison to the Genome Reference Consortium human genome (build 37). Since individuals have 2 copies of each genomic position, a sampled individual can have 0, 1 or 2 copies of a genetic mutation, hereafter referred to as an individual genotype. We excluded SNPs positioned on the sex chromosomes and only included SNPs in approximate linkage equilibrium with each other, such that genotypes at neighboring positions are only weakly correlated $( r ^ { 2 } < 0 . 5 )$ . ",
|
| 577 |
+
"bbox": [
|
| 578 |
+
174,
|
| 579 |
+
840,
|
| 580 |
+
823,
|
| 581 |
+
924
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 4
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "",
|
| 588 |
+
"bbox": [
|
| 589 |
+
171,
|
| 590 |
+
103,
|
| 591 |
+
823,
|
| 592 |
+
132
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 5
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "image",
|
| 598 |
+
"img_path": "images/09ea8294618b9993a70f96d30ca2f1331641175c150a60f545d07b117b6f0da7.jpg",
|
| 599 |
+
"image_caption": [
|
| 600 |
+
"Figure 2: The 1000 Genomes population distribution:(a) Ethnicity; (b) Geographical Region. "
|
| 601 |
+
],
|
| 602 |
+
"image_footnote": [],
|
| 603 |
+
"bbox": [
|
| 604 |
+
174,
|
| 605 |
+
151,
|
| 606 |
+
823,
|
| 607 |
+
395
|
| 608 |
+
],
|
| 609 |
+
"page_idx": 5
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "text",
|
| 613 |
+
"text": "4 EXPERIMENTS ",
|
| 614 |
+
"text_level": 1,
|
| 615 |
+
"bbox": [
|
| 616 |
+
174,
|
| 617 |
+
453,
|
| 618 |
+
326,
|
| 619 |
+
469
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 5
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": "In this section, we describe the model architectures, and report and discuss the obtained results. ",
|
| 626 |
+
"bbox": [
|
| 627 |
+
171,
|
| 628 |
+
484,
|
| 629 |
+
799,
|
| 630 |
+
500
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 5
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "image",
|
| 636 |
+
"img_path": "images/0ccd4f6db366387a241d01be92e4ff7d2439249520117517a01010e0b34e0731.jpg",
|
| 637 |
+
"image_caption": [
|
| 638 |
+
"Figure 3: Results of our best model: (a) Confusion matrix per ethnicity; (b) Confusion matrix per large geographical region. The 1000 Genomes legend for population abbreviations can be found in the appendix. "
|
| 639 |
+
],
|
| 640 |
+
"image_footnote": [],
|
| 641 |
+
"bbox": [
|
| 642 |
+
174,
|
| 643 |
+
539,
|
| 644 |
+
818,
|
| 645 |
+
787
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 5
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"text": "4.1 MODEL ARCHITECTURE ",
|
| 652 |
+
"text_level": 1,
|
| 653 |
+
"bbox": [
|
| 654 |
+
174,
|
| 655 |
+
869,
|
| 656 |
+
383,
|
| 657 |
+
883
|
| 658 |
+
],
|
| 659 |
+
"page_idx": 5
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"type": "text",
|
| 663 |
+
"text": "We experimented with simple models both in the auxiliary networks and the basic architecture, which yielded very promising results. We designed a basic architecture with 2 hidden layers followed by a softmax layer to perform ancestry prediction. We trained this architecture with and without the assistance of the auxiliary network. Similarly, the auxiliary networks were build by stacking a hidden layer on top of one of the feature embeddings described in Section 2.2. In the reported experiments, all hidden layers have 100 units. All models were trained by means of stochastic gradient descent with adaptive learning rate (Tieleman & Hinton, 2012), both for $\\gamma = 0$ and $\\gamma = 1 0$ , using dropout, limiting the norm of the weights to 1 and/or applying weight decay to reduce overfitting.2. ",
|
| 664 |
+
"bbox": [
|
| 665 |
+
174,
|
| 666 |
+
895,
|
| 667 |
+
823,
|
| 668 |
+
924
|
| 669 |
+
],
|
| 670 |
+
"page_idx": 5
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "text",
|
| 674 |
+
"text": "",
|
| 675 |
+
"bbox": [
|
| 676 |
+
174,
|
| 677 |
+
103,
|
| 678 |
+
825,
|
| 679 |
+
188
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 6
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "text",
|
| 685 |
+
"text": "4.2 RESULTS ",
|
| 686 |
+
"text_level": 1,
|
| 687 |
+
"bbox": [
|
| 688 |
+
174,
|
| 689 |
+
204,
|
| 690 |
+
277,
|
| 691 |
+
218
|
| 692 |
+
],
|
| 693 |
+
"page_idx": 6
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"type": "text",
|
| 697 |
+
"text": "Given the relatively small amount of samples in the 1000 Genomes data, we report results obtained by 5-fold cross validation of the model. We split the data into 5 folds of equal size. A single fold is retained for test, whereas three of the remaining folds are used as training data and the final fold is used as validation data. We repeated the process 5 times (one per fold) and report the means and standard deviations of results on the different test sets. ",
|
| 698 |
+
"bbox": [
|
| 699 |
+
174,
|
| 700 |
+
229,
|
| 701 |
+
825,
|
| 702 |
+
299
|
| 703 |
+
],
|
| 704 |
+
"page_idx": 6
|
| 705 |
+
},
|
| 706 |
+
{
|
| 707 |
+
"type": "text",
|
| 708 |
+
"text": "Table 1 summarizes the results obtained for each model. First, we observe that, for most of Diet Network architectures, training with an reconstruction term in the loss $( \\gamma > 0 )$ ) reduces the misclassification error and provides a lower standard deviation over the folds, suggesting more robustness to variations in the learnt feature embedding. ",
|
| 709 |
+
"bbox": [
|
| 710 |
+
174,
|
| 711 |
+
306,
|
| 712 |
+
823,
|
| 713 |
+
362
|
| 714 |
+
],
|
| 715 |
+
"page_idx": 6
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"type": "text",
|
| 719 |
+
"text": "Training the models end-to-end, with no pre-computed feature embedding, yielded higher misclassification error than simply training the basic model, which could be attributed to the fact that adding the prediction networks makes a difficult, high-dimensional optimization problem even harder. As a general trend, adding pre-computed feature embeddings achieved better performance (lower error), while allowing to significantly reduce the number of free parameters in the fat layers of the model. Among the tested feature embeddings, random projections achieved good results, highlighting the potential of the model when reducing the number of free parameters. ",
|
| 720 |
+
"bbox": [
|
| 721 |
+
174,
|
| 722 |
+
369,
|
| 723 |
+
825,
|
| 724 |
+
467
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 6
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "Using the SNP2Vec embedding, trained to exploit the similarities and co-occurences between the SNPs, in conjunction with the Diet Networks framework obtains slightly better results than the model using a random projection. The addition of the reconstruction criterion does not appear to reduce the number of errors made by the model but it does appear to reduce the variance of the results, as observed on the other models. ",
|
| 731 |
+
"bbox": [
|
| 732 |
+
174,
|
| 733 |
+
474,
|
| 734 |
+
825,
|
| 735 |
+
542
|
| 736 |
+
],
|
| 737 |
+
"page_idx": 6
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"type": "text",
|
| 741 |
+
"text": "Despite its simplicity, the per class histogram encoding (when used with a reconstruction criterion) yielded the best results. Note that this encoding is the one with the fewest number of free parameters in the fat layers, with a reduction factor of almost 4000 w.r.t. the analogous basic model (with reconstruction). Figure 3(a) shows the mean results obtained with the histogram embedding. As shown in the figure, when considering the ethnicity, the main misclassifications involve ethnicities likely to display very close genetic proximity, such as British from England and Scotland, and Utah residents with Northern and Western ancestry (likely to be immigrants from England), or Indian Telugu and Sri Lankan Tamil for instance. However, the model achieves almost $100 \\%$ accuracy when considering the 5 geographical regions. ",
|
| 742 |
+
"bbox": [
|
| 743 |
+
173,
|
| 744 |
+
550,
|
| 745 |
+
825,
|
| 746 |
+
676
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 6
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "We also compared the performance of our model to the principal component analysis (PCA) approach, commonly used in the genomics domain, to select subgroups of individuals in order to perform more homogeneous analysis. The number of principal components (PCs) is chosen according to their significance, and usually varies from one dataset to another, being 10 the de facto standard for small datasets. However, in the case of the 1000 Genomes dataset, we could go up to $5 0 \\mathrm { P C s }$ . Therefore, we trained a linear classifier on top of PCA features, considering 10 and $5 0 \\mathrm { P C s }$ , $1 0 0 \\mathrm { P C s }$ to match the number of feature used in the other experiments, as well as $2 0 0 \\mathrm { P C s }$ . Using $2 0 0 ~ \\mathrm { P C s }$ yielded better performance, but going beyond that saturated in terms of misclassification error (see SectionC in Appendix for more details). Adding hidden layers to the classifier didn’t help either (see reported results for several MLP configurations before the linear classifier). ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
173,
|
| 755 |
+
683,
|
| 756 |
+
825,
|
| 757 |
+
821
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 6
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "5 CONCLUSION ",
|
| 764 |
+
"text_level": 1,
|
| 765 |
+
"bbox": [
|
| 766 |
+
176,
|
| 767 |
+
842,
|
| 768 |
+
318,
|
| 769 |
+
857
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 6
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "In this paper, we proposed Diet Networks, a novel network parametrization, which considerably reduces the number of free parameters in the fat layers of a model when the input is very high dimensional. We showed how using the parameter prediction networks, yielded better generalization in terms of misclassification error. Notably, when using pre-computed feature embeddings that maximally reduced the number of free parameters, we were able to obtain our best results. We validated our approach on the publicly available 1000 genomes dataset, addressing the relevant task of ancestry prediction based on SNP data. This work demonstrated the potential of deep learning models to tackle domain-specific tasks where there is a mismatch between the number of samples and their high dimensionality. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
176,
|
| 778 |
+
872,
|
| 779 |
+
823,
|
| 780 |
+
901
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 6
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "table",
|
| 786 |
+
"img_path": "images/2cb0c7d29b8dea9e5cae08b995d53ee567389dddc319a6317a4231e53fe1835b.jpg",
|
| 787 |
+
"table_caption": [
|
| 788 |
+
"Table 1: Results for 1000 Genomes ancestry prediction. Raw end2end, random projection and SNP2Vec embeddings have dimensionality 100, whereas per class histograms has dimensionality 78. Note that the reported number of free parameters corresponds to the free parameters of the fat layers of the models. "
|
| 789 |
+
],
|
| 790 |
+
"table_footnote": [],
|
| 791 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Model & Embedding</td><td rowspan=1 colspan=1>MeanMisclassif.Error.(%)</td><td rowspan=1 colspan=1>#of free parameters</td></tr><tr><td rowspan=1 colspan=1>Basic</td><td rowspan=1 colspan=1>8.31 ± 1.83</td><td rowspan=1 colspan=1>31.5M</td></tr><tr><td rowspan=1 colspan=1>Raw end2end</td><td rowspan=1 colspan=1>8.88 ±1.42</td><td rowspan=1 colspan=1>217.2k</td></tr><tr><td rowspan=1 colspan=1>Random Projection</td><td rowspan=1 colspan=1>9.03±1.20</td><td rowspan=1 colspan=1>10.1k</td></tr><tr><td rowspan=1 colspan=1>SNP2Vec</td><td rowspan=1 colspan=1>7.60 ± 1.28</td><td rowspan=1 colspan=1>10.1k</td></tr><tr><td rowspan=1 colspan=1>Per class histograms</td><td rowspan=1 colspan=1>7.88 ± 1.40</td><td rowspan=1 colspan=1>7.9k</td></tr><tr><td rowspan=1 colspan=1>Basic with reconstruction</td><td rowspan=1 colspan=1>7.76 ± 1.38</td><td rowspan=1 colspan=1>63M</td></tr><tr><td rowspan=1 colspan=1>Raw end2end with reconstruction</td><td rowspan=1 colspan=1>8.28 ± 1.92</td><td rowspan=1 colspan=1>227.3k</td></tr><tr><td rowspan=1 colspan=1>Random Projection with reconstruction</td><td rowspan=1 colspan=1>8.03±1.03</td><td rowspan=1 colspan=1>20.2k</td></tr><tr><td rowspan=1 colspan=1>SNP2Vecwith reconstruction</td><td rowspan=1 colspan=1>7.88 ±0.72</td><td rowspan=1 colspan=1>20.2k</td></tr><tr><td rowspan=1 colspan=1>Per class histograms with reconstruction</td><td rowspan=1 colspan=1>7.44 ± 0.45</td><td rowspan=1 colspan=1>15.8k</td></tr><tr><td rowspan=1 colspan=1>Traditionalapproaches</td><td rowspan=1 colspan=2>Mean Misclassif. Error. (%)</td></tr><tr><td rowspan=1 colspan=1>PCA (10 PCs)</td><td rowspan=1 colspan=2>20.56 ± 3.20</td></tr><tr><td rowspan=1 colspan=1>PCA (50 PCs)</td><td rowspan=1 colspan=2>12.29 ± 0.89</td></tr><tr><td rowspan=1 colspan=1>PCA (100 PCs)</td><td rowspan=1 colspan=2>10.52 ± 0.25</td></tr><tr><td rowspan=1 colspan=1>PCA (200 PCs)</td><td rowspan=1 colspan=2>9.33±1.24</td></tr><tr><td rowspan=1 colspan=1>PCA(100 PCs) + MLP(50)</td><td rowspan=1 colspan=2>12.67±0.67</td></tr><tr><td rowspan=1 colspan=1>PCA(100 PCs)+MLP(100)</td><td rowspan=1 colspan=2>12.18 ±1.75</td></tr><tr><td rowspan=1 colspan=1>PCA(100 PCs)+MLP(100,100)</td><td rowspan=1 colspan=2>11.95 ± 2.29</td></tr></table>",
|
| 792 |
+
"bbox": [
|
| 793 |
+
196,
|
| 794 |
+
101,
|
| 795 |
+
802,
|
| 796 |
+
357
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 7
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "",
|
| 803 |
+
"bbox": [
|
| 804 |
+
174,
|
| 805 |
+
448,
|
| 806 |
+
825,
|
| 807 |
+
545
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 7
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "Given the high accuracy achieved in the ancestry prediction task, we believe that deep learning techniques can improve standard practices in the analysis of human polymorphism data. We expect that these techniques will allow us to tackle the more challenging problem of conducting genetic association studies. Hence, we expect to further develop our method to conduct population-aware analyses of SNP data in disease cohorts. The increased power of deep learning methods to identify the genetic basis of common diseases could lead to better patient risk prediction and will improve our overall understanding of disease etiology. ",
|
| 814 |
+
"bbox": [
|
| 815 |
+
174,
|
| 816 |
+
553,
|
| 817 |
+
825,
|
| 818 |
+
650
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 7
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 825 |
+
"text_level": 1,
|
| 826 |
+
"bbox": [
|
| 827 |
+
176,
|
| 828 |
+
666,
|
| 829 |
+
326,
|
| 830 |
+
679
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 7
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "The authors would like to thank the developers of Theano Theano Development Team (2016) and Lasagne Lasagne (2016). We acknowledge the support of the following agencies for research funding and computing support: Imagia, CIFAR, Canada Research Chairs, Compute Canada and Calcul Quebec. J.G.H. is an EPAC/Linacre Junior Research Fellow funded by the Human Frontiers ´ Program (LT-001017/2013-L). Special thanks to Valeria Romero-Soriano, Xavier Grau-Bov \\` e and ´ Margaux Luck for their patience sharing genomic biology expertise; as well as to Michal Drozdzal, Caglar Gulcehre and Simon Jegou for useful discussions and support. ´ ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
174,
|
| 839 |
+
689,
|
| 840 |
+
825,
|
| 841 |
+
786
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 7
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "REFERENCES ",
|
| 848 |
+
"text_level": 1,
|
| 849 |
+
"bbox": [
|
| 850 |
+
174,
|
| 851 |
+
808,
|
| 852 |
+
285,
|
| 853 |
+
823
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 7
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "Babak Alipanahi, Andrew Delong, Matthew T Weirauch, and Brendan J Frey. Predicting the sequence specificities of dna-and rna-binding proteins by deep learning. Nature biotechnology, 2015. ",
|
| 860 |
+
"bbox": [
|
| 861 |
+
176,
|
| 862 |
+
830,
|
| 863 |
+
821,
|
| 864 |
+
872
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 7
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "Marcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W. Hoffman, David Pfau, Tom Schaul, and Nando de Freitas. Learning to learn by gradient descent by gradient descent. Technical report, Google DeepMind, 2016. ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
176,
|
| 873 |
+
882,
|
| 874 |
+
823,
|
| 875 |
+
924
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 7
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "Y. Bengio, S. Bengio, and J. Cloutier. Learning a synaptic learning rule. 1991 Neural Networks for Computing Conference, Snowbird, 1991. ",
|
| 882 |
+
"bbox": [
|
| 883 |
+
171,
|
| 884 |
+
103,
|
| 885 |
+
825,
|
| 886 |
+
132
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 8
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "Luca Bertinetto, Joao F. Henriques, Jack Valmadre, Philip H. S. Torr, and Andrea Vedaldi. Learning ˜ feed-forward one-shot learners. CoRR, abs/1606.05233, 2016. ",
|
| 893 |
+
"bbox": [
|
| 894 |
+
173,
|
| 895 |
+
140,
|
| 896 |
+
823,
|
| 897 |
+
170
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 8
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "Ella Bingham and Heikki Mannila. Random projection in dimensionality reduction: Applications to image and text data. In Proceedings of the Seventh ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’01, pp. 245–250. ACM, 2001. doi: 10.1145/ 502512.502546. ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
173,
|
| 906 |
+
176,
|
| 907 |
+
825,
|
| 908 |
+
233
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 8
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "Bert De Brabandere, Xu Jia, Tinne Tuytelaars, and Luc Van Gool. Dynamic filter networks. CoRR, abs/1605.09673, 2016. ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
173,
|
| 917 |
+
242,
|
| 918 |
+
825,
|
| 919 |
+
271
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 8
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "text",
|
| 925 |
+
"text": "Yifei Chen, Yi Li, Rajiv Narayan, Aravind Subramanian, and Xiaohui Xie. Gene expression inference with deep learning. Bioinformatics, 2016. doi: 10.1093/bioinformatics/btw074. ",
|
| 926 |
+
"bbox": [
|
| 927 |
+
173,
|
| 928 |
+
279,
|
| 929 |
+
823,
|
| 930 |
+
309
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 8
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "The 1000 Genomes Project Consortium. A global reference for human genetic variation. Nature, 2015. doi: 10.1038/nature15393. ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
173,
|
| 939 |
+
315,
|
| 940 |
+
823,
|
| 941 |
+
345
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 8
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "text",
|
| 947 |
+
"text": "Misha Denil, Babak Shakibi, Laurent Dinh, Marc’Aurelio Ranzato, and Nando de Freitas. Predicting parameters in deep learning. arXiv:1306.0543, 2013. ",
|
| 948 |
+
"bbox": [
|
| 949 |
+
171,
|
| 950 |
+
353,
|
| 951 |
+
823,
|
| 952 |
+
383
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 8
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "Faustino Gomez and Juergen Schmidhuber. Evolving modular fast-weight networks for control. In Proceedings of the Fifteenth International Conference on Artificial Neural Networks: ICANN-05, pp. 383–389, 2005. ",
|
| 959 |
+
"bbox": [
|
| 960 |
+
173,
|
| 961 |
+
390,
|
| 962 |
+
825,
|
| 963 |
+
433
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 8
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "text",
|
| 969 |
+
"text": "David Ha, Andrew Dai, and Quoc V. Le. Hypernetworks. CoRR, abs/1609.09106, 2016. ",
|
| 970 |
+
"bbox": [
|
| 971 |
+
174,
|
| 972 |
+
440,
|
| 973 |
+
753,
|
| 974 |
+
457
|
| 975 |
+
],
|
| 976 |
+
"page_idx": 8
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"type": "text",
|
| 980 |
+
"text": "Ryan J Haasl, Catherine A McCarty, and Bret A Payseur. Genetic ancestry inference using support vector machines, and the active emergence of a unique american population. European Journal of Human Genetics, 2013. doi: 10.1038/ejhg.2012.258. ",
|
| 981 |
+
"bbox": [
|
| 982 |
+
174,
|
| 983 |
+
464,
|
| 984 |
+
826,
|
| 985 |
+
508
|
| 986 |
+
],
|
| 987 |
+
"page_idx": 8
|
| 988 |
+
},
|
| 989 |
+
{
|
| 990 |
+
"type": "text",
|
| 991 |
+
"text": "David R Kelley, Jasper Snoek, and John Rinn. Basset: Learning the regulatory code of the accessible genome with deep convolutional neural networks. bioRxiv, 2016. doi: 10.1101/028399. URL http://biorxiv.org/content/early/2016/02/18/028399. ",
|
| 992 |
+
"bbox": [
|
| 993 |
+
173,
|
| 994 |
+
515,
|
| 995 |
+
821,
|
| 996 |
+
559
|
| 997 |
+
],
|
| 998 |
+
"page_idx": 8
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"type": "text",
|
| 1002 |
+
"text": "Lasagne. Lasagne. https://github.com/Lasagne/Lasagne, 2016. ",
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
173,
|
| 1005 |
+
566,
|
| 1006 |
+
681,
|
| 1007 |
+
582
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 8
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "Michael K. K. Leung, Andrew Delong, Babak Alipanahi, and Brendan J. Frey. Machine Learning in Genomic Medicine: A Review of Computational Problems and Data Sets. Proceedings of the IEEE, 104(1):176–197, January 2016. ISSN 0018-9219. doi: 10.1109/jproc.2015.2494198. URL http://dx.doi.org/10.1109/jproc.2015.2494198. ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
173,
|
| 1016 |
+
589,
|
| 1017 |
+
825,
|
| 1018 |
+
646
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 8
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "T. Mikolov, I. Sutskever, K. Chen, G.S. Corrado, and J. Dean. Distributed representations of words and phrases and their compositionality. In NIPS’2013, pp. 3111–3119. 2013. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
169,
|
| 1027 |
+
654,
|
| 1028 |
+
823,
|
| 1029 |
+
684
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 8
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "Larsson Omberg, Jacqueline Salit, Neil Hackett, Jennifer Fuller, Rebecca Matthew, Lotfi Chouchane, Juan L Rodriguez-Flores, Carlos Bustamante, Ronald G Crystal, and Jason G Mezey. Inferring genome-wide patterns of admixture in qataris using fifty-five ancestral populations. BMC Genetics, 2012. doi: 10.1186/1471-2156-13-49. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
173,
|
| 1038 |
+
691,
|
| 1039 |
+
825,
|
| 1040 |
+
747
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 8
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "Alkes L Price, Nick J Patterson, Robert M Plenge, Michael E Weinblatt, Nancy A Shadick, and D Reich. Principal components analysis corrects for stratification in genome-wide association studies. Nature Genetics, 2006. doi: 10.1038/ng1847. ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
173,
|
| 1049 |
+
756,
|
| 1050 |
+
825,
|
| 1051 |
+
799
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 8
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "Jurgen Schmidhuber. Learning to control fast-weight memories: An alternative to dynamic recurrent ¨ networks. Neural Comput., 4(1):131–139, 1992. ",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
173,
|
| 1060 |
+
806,
|
| 1061 |
+
821,
|
| 1062 |
+
837
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 8
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Sara Sheehan and Yun S Song. Deep learning for population genetic inference. PLoS Comput Biol, 2016. doi: 10.1371/journal.pcbi.1004845. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
173,
|
| 1071 |
+
844,
|
| 1072 |
+
823,
|
| 1073 |
+
873
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 8
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "Ritambhara Singh, Jack Lanchantin, Gabriel Robins, and Yanjun Qi. Deepchrome: deep-learning for predicting gene expression from histone modifications. Bioinformatics, 2016. doi: 10.1093/ bioinformatics/btw427. ",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
174,
|
| 1082 |
+
882,
|
| 1083 |
+
825,
|
| 1084 |
+
922
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 8
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "text",
|
| 1090 |
+
"text": "Kenneth O. Stanley, David B. D’Ambrosio, and Jason Gauci. A hypercube-based encoding for evolving large-scale neural networks. Artif. Life, 15(2):185–212, April 2009. ",
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
171,
|
| 1093 |
+
103,
|
| 1094 |
+
823,
|
| 1095 |
+
132
|
| 1096 |
+
],
|
| 1097 |
+
"page_idx": 9
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"type": "text",
|
| 1101 |
+
"text": "Theano Development Team. Theano: A Python framework for fast computation of mathematical expressions. arXiv e-prints, abs/1605.02688, May 2016. URL http://arxiv.org/abs/ 1605.02688. ",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
174,
|
| 1104 |
+
145,
|
| 1105 |
+
825,
|
| 1106 |
+
188
|
| 1107 |
+
],
|
| 1108 |
+
"page_idx": 9
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"type": "text",
|
| 1112 |
+
"text": "T. Tieleman and G. Hinton. Lecture 6.5—RmsProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012. ",
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
171,
|
| 1115 |
+
202,
|
| 1116 |
+
823,
|
| 1117 |
+
229
|
| 1118 |
+
],
|
| 1119 |
+
"page_idx": 9
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"type": "text",
|
| 1123 |
+
"text": "Pascal Vincent, Hugo Larochelle, Yoshua Bengio, and Pierre-Antoine Manzagol. Extracting and composing robust features with denoising autoencoders. In Andrew McCallum and Sam Roweis (eds.), Proceedings of the 25th Annual International Conference on Machine Learning (ICML 2008), pp. 1096–1103. Omnipress, 2008. ",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
173,
|
| 1126 |
+
243,
|
| 1127 |
+
825,
|
| 1128 |
+
299
|
| 1129 |
+
],
|
| 1130 |
+
"page_idx": 9
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"type": "text",
|
| 1134 |
+
"text": "Jian Zhou and Olga Troyanskaya. Predicting effects of noncoding variants with deep learningbased sequence model. Nature Methods, 2015. doi: 10.1038/nmeth.3547. ",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
173,
|
| 1137 |
+
314,
|
| 1138 |
+
823,
|
| 1139 |
+
342
|
| 1140 |
+
],
|
| 1141 |
+
"page_idx": 9
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"type": "text",
|
| 1145 |
+
"text": "A THE 1000 GENOMES PROJECT LEGENDS ",
|
| 1146 |
+
"text_level": 1,
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
176,
|
| 1149 |
+
373,
|
| 1150 |
+
547,
|
| 1151 |
+
390
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 9
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "A.1 POPULATION ETHNICITY LEGEND ",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
176,
|
| 1160 |
+
406,
|
| 1161 |
+
450,
|
| 1162 |
+
420
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 9
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "text",
|
| 1168 |
+
"text": "ACB: African Caribbeans in Barbados \nASW: Americans of African Ancestry in SW USA \nBEB: Bengali from Bangladesh \nCDX: Chinese Dai in Xishuangbanna \nCEU: Utah Residents (CEPH) with Northern and Western Ancestry \nCHB: Han Chinese in Bejing \nCHS: Southern Han Chinese \nCLM: Colombians from Medellin \nESN: Esan in Nigeria \nFIN: Finnish in Finland \nGBR: British in England and Scotland \nGIH: Gujarati Indian from Houston \nGWD: Gambian in Western Divisions in the Gambia \nIBS: Iberian Population in Spain \nITU: Indian Telugu from the UK \nJPT: Japanese in Tokyo \nKHV: Kinh in Ho Chi Minh City \nLWK: Luhya in Webuye \nMSL: Mende in Sierra Leone \nMXL: Mexican Ancestry from Los Angeles \nPEL: Peruvians from Lima \nPJL: Punjabi from Lahore \nPUR: Puerto Ricans \nSTU: Sri Lankan Tamil from the UK \nTSI: Toscani in Italia \nYRI: Yoruba in Ibadan ",
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
173,
|
| 1171 |
+
434,
|
| 1172 |
+
619,
|
| 1173 |
+
792
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 9
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"text": "A.2 GEOGPRAHICAL REGION LEGEND ",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
176,
|
| 1182 |
+
828,
|
| 1183 |
+
450,
|
| 1184 |
+
840
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 9
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "AFR: African \nAMR: Ad Mixed American \nEAS: East Asian \nEUR: European \nSAS: South Asian ",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
173,
|
| 1193 |
+
854,
|
| 1194 |
+
359,
|
| 1195 |
+
922
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 9
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "B OBTAINING THE 1000 GENOMES DATA ",
|
| 1202 |
+
"text_level": 1,
|
| 1203 |
+
"bbox": [
|
| 1204 |
+
174,
|
| 1205 |
+
102,
|
| 1206 |
+
531,
|
| 1207 |
+
118
|
| 1208 |
+
],
|
| 1209 |
+
"page_idx": 10
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"type": "text",
|
| 1213 |
+
"text": "SNP data for the 1000G dataset was downloaded from ftp://ftp.1000genomes.ebi.ac. uk:21/vol1/ftp/release/20130502/supporting/hd_genotype_chip/ ",
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
173,
|
| 1216 |
+
133,
|
| 1217 |
+
820,
|
| 1218 |
+
162
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 10
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "− ALL . wgs . n h g r i c o r i e l l a f f y 6 . 2 0 1 4 0 8 2 5 . g e n o t y p e s h a s p e d . v c f . g z ",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
171,
|
| 1227 |
+
167,
|
| 1228 |
+
802,
|
| 1229 |
+
198
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 10
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "− a f f y s a m p l e s . 2 0 1 4 1 1 1 8 . p a n e l ",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
176,
|
| 1238 |
+
196,
|
| 1239 |
+
459,
|
| 1240 |
+
213
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 10
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "text",
|
| 1246 |
+
"text": "Representative commands: ",
|
| 1247 |
+
"text_level": 1,
|
| 1248 |
+
"bbox": [
|
| 1249 |
+
174,
|
| 1250 |
+
227,
|
| 1251 |
+
362,
|
| 1252 |
+
241
|
| 1253 |
+
],
|
| 1254 |
+
"page_idx": 10
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "text",
|
| 1258 |
+
"text": "With PLINK v1.90b2n 64-bit https://www.cog-genomics.org/plink2 ",
|
| 1259 |
+
"bbox": [
|
| 1260 |
+
174,
|
| 1261 |
+
248,
|
| 1262 |
+
714,
|
| 1263 |
+
263
|
| 1264 |
+
],
|
| 1265 |
+
"page_idx": 10
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "text",
|
| 1269 |
+
"text": "# c o n v e r t v c f t o p l i n k f o r m a t ( b e d ) , a n d o n l y k e e p i n g common m a r k e r s ( m i n o r a l l e l e f r e q u e n c y $>$ 0 . 0 5 i n c o m b i n e d s a m p l e ) \n$>$ p l i n k −−v c f \\$ p a t h / ALL . wgs . n h g r i c o r i e l l a f f y 6 . 2 0 1 4 0 8 2 5 . g e n o t y p e s h a s p e d . v c f . g z −−maf 0 . 0 5 −−o u t $\\$ 1$ p a t h / a f f y 6 b i a l l e l i c s n p s m a f 0 0 5 a u t −−n o t −c h r X Y MT −−make−b e d \n# p r o d u c e a p r u n e d s u b s e t o f m a r k e r s t h a t a r e i n a p p r o x i m a t e l i n k a g e e q u i l i b r i u m w i t h e a c h o t h e r \n$>$ p l i n k −− b f i l e \\$ p a t h / a f f y 6 b i a l l e l i c s n p s m a f 0 0 5 a u t −−i n d e p − p a i r w i s e 50 5 0 . 5 −−o u t $\\$ 5$ p a t h / a f f y 6 b i a l l e l i c s n p s m a f 0 0 5 a u t \n# e x c l u d e m a r k e r s t o g e t p r u n e d s u b s e t \n$>$ p l i n k −− b f i l e \\$ p a t h / a f f y 6 b i a l l e l i c s n p s m a f 0 0 5 a u t −−e x c l u d e $\\$ 9$ p a t h / a f f y 6 b i a l l e l i c s n p s m a f 0 0 5 a u t . p r u n e . o u t −−r e c o d e A −− o u t $\\$ 5$ p a t h / a f f y 6 b i a l l e l i c s n p s m a f 0 0 5 t h i n n e d a u t A ",
|
| 1270 |
+
"bbox": [
|
| 1271 |
+
171,
|
| 1272 |
+
268,
|
| 1273 |
+
815,
|
| 1274 |
+
478
|
| 1275 |
+
],
|
| 1276 |
+
"page_idx": 10
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"type": "text",
|
| 1280 |
+
"text": "For information on how to download this pre-processed dataset directly, please email Adriana Romero or Pierre Luc Carrier. ",
|
| 1281 |
+
"bbox": [
|
| 1282 |
+
171,
|
| 1283 |
+
492,
|
| 1284 |
+
825,
|
| 1285 |
+
520
|
| 1286 |
+
],
|
| 1287 |
+
"page_idx": 10
|
| 1288 |
+
},
|
| 1289 |
+
{
|
| 1290 |
+
"type": "text",
|
| 1291 |
+
"text": "C PCA COMPONENTS AND MISCLASSIFICATION ERROR ",
|
| 1292 |
+
"text_level": 1,
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
174,
|
| 1295 |
+
541,
|
| 1296 |
+
647,
|
| 1297 |
+
556
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 10
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "In this section, we analyze the influence of increasing the number of PCs used to perform classification. Figure 4 depicts the obtained results when considering 100, 200, 400, 800 and $1 0 0 0 \\mathrm { P C s }$ . As shown in the figure, the best validation error comes with PC200. Further increasing the number of PCs improves the training error but does not generalize well on the validation set. ",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
173,
|
| 1306 |
+
571,
|
| 1307 |
+
826,
|
| 1308 |
+
628
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 10
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "image",
|
| 1314 |
+
"img_path": "images/3c15c086e405ed2263ab05bb546dd4339ac37174db86a7f53d642a5af2568ee2.jpg",
|
| 1315 |
+
"image_caption": [
|
| 1316 |
+
"Figure 4: PCA: Train and validation misclassification error for different numbers of PCs. "
|
| 1317 |
+
],
|
| 1318 |
+
"image_footnote": [],
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
364,
|
| 1321 |
+
655,
|
| 1322 |
+
619,
|
| 1323 |
+
803
|
| 1324 |
+
],
|
| 1325 |
+
"page_idx": 10
|
| 1326 |
+
}
|
| 1327 |
+
]
|
parse/train/Skn9Shcxe/Skn9Shcxe.md
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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+
The past year saw the introduction of new architectures such as Highway networks (Srivastava et al., 2015a) and Residual networks (He et al., 2015) which, for the first time, enabled the training of feedforward networks with dozens to hundreds of layers using simple gradient descent. While depth of representation has been posited as a primary reason for their success, there are indications that these architectures defy a popular view of deep learning as a hierarchical computation of increasingly abstract features at each layer.
|
| 12 |
+
|
| 13 |
+
In this report, we argue that this view is incomplete and does not adequately explain several recent findings. We propose an alternative viewpoint based on unrolled iterative estimation—a group of successive layers iteratively refine their estimates of the same features instead of computing an entirely new representation. We demonstrate that this viewpoint directly leads to the construction of Highway and Residual networks. Finally we provide preliminary experiments to discuss the similarities and differences between the two architectures.
|
| 14 |
+
|
| 15 |
+
# 1 INTRODUCTION
|
| 16 |
+
|
| 17 |
+
Deep learning can be thought of as learning many levels of representation of the input which form a hierarchy of concepts (Deng & Yu, 2014; Goodfellow et al., 2016; LeCun et al., 2015) (but note that this is not the only view: cf. Schmidhuber (2015)). With fixed computational budget, deeper architectures are believed to possess greater representational power and, consequently, higher performance than shallower models. Intuitively, each layer of a deep neural network computes a new level of representation. For convolutional networks, Zeiler & Fergus (2014) visualized the features computed by each layer, and demonstrated that they in fact become increasingly abstract with depth. We refer to this way of thinking about neural networks as the representation view, which probably dates back to Hubel & Wiesel (1962). The representation view links the layers in a network to the abstraction levels of their representations, and as such represents a pervasive assumption in many recent publications including He et al. (2015) who describe the success of their Residual networks like this: “Solely due to our extremely deep representations, we obtain a $2 8 \%$ relative improvement on the COCO object detection dataset.”
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Illustrating our usage of blocks and stages in Highway and Residual networks.
|
| 21 |
+
|
| 22 |
+
Surprisingly, increasing the depth of a network beyond a certain point often leads to a decline in performance even on the training set (Srivastava et al., 2015a). Since adding more layers cannot decrease representational power, this phenomenon is usually attributed to the vanishing gradient problem (Hochreiter, 1991). Therefore, even though deeper models are more powerful in principle, they often fall short in practice.
|
| 23 |
+
|
| 24 |
+
Recently, training feedforward networks with hundreds of layers has become feasible through the invention of Highway networks Srivastava et al. (2015a) and Residual networks (ResNets; He et al. 2015). The latter have been widely successful in computer vision, advancing the state of the art on many benchmarks and winning several pattern recognition competitions (He et al., 2015), while Highway networks have been used to improve language modeling (Kim et al., 2015; Jozefowicz et al., 2016; Zilly et al., 2016) and translation (Lee et al., 2016). Both architectures have been introduced with the explicit goal of training deeper models.
|
| 25 |
+
|
| 26 |
+
There are, however, some surprising findings that seem to contradict the applicability of the representation view to these very deep networks. For example, it has been reported that removing almost any layer from a trained Highway or Residual network has only minimal effect on its overall performance (Srivastava et al., 2015b; Veit et al., 2016). This idea has been extended to a layerwise dropout as a regularizer for ResNets (Huang et al., 2016b). But if each layer supposedly builds a new level of representation from the previous one, then removing any layer should critically disrupt the input for the following layer. So how is it possible that doing so seems to have only a negligible effect on the network output? Veit et al. (2016) even demonstrated that shuffling some of the layers in a trained ResNet barely affects performance.
|
| 27 |
+
|
| 28 |
+
It has been argued that ResNets are better understood as ensembles of shallow networks (Huang et al., 2016b; Veit et al., 2016; Abdi & Nahavandi, 2016). According to this interpretation, ResNets implicitly average exponentially many subnetworks, each of which only use a subset of the layers. But the question remains open as to how a layer in such a subnetwork can successfully operate with changing input representations. This, along with other findings, begs the question as to whether the representation view is appropriate for understanding these new architectures.
|
| 29 |
+
|
| 30 |
+
In this paper, we propose a new interpretation that reconciles the representation view with the operation of Highway and Residual networks: functional blocks1 in these networks do not compute entirely new representations; instead, they engage in an unrolled iterative estimation of representations that refine/improve upon their input representation, thus preserving feature identity. The transition to a new level of representation occurs when a dimensionality change—through projection—separates two groups of blocks which we refer to as a stage (Figure 1). Taking this perspective, we are able to explain previously elusive findings such as the effects of lesioning and shuffling. Furthermore, we formalize this notion and use it to directly derive Residual and Highway networks. Finally, we present some preliminary experiments to compare these two architectures and investigate some of their relative advantages and disadvantages.
|
| 31 |
+
|
| 32 |
+
# 2 CHALLENGING THE REPRESENTATION VIEW
|
| 33 |
+
|
| 34 |
+
This section provides a brief survey of some the findings and points of contention that seem to contradict a representation view of Highway and Residual networks.
|
| 35 |
+
|
| 36 |
+
Staying Close to the Inputs. The success of ResNets has been partly attributed to the fact that they obviate the need to learn the identity mapping, which is difficult. However, learning the negative identity (so that a feature can replaced by a higher level one) should be at least as difficult. The fact that the residual form is useful indicates that Residual blocks typically stay close to the input representation, rather than replacing it.
|
| 37 |
+
|
| 38 |
+
The analysis by Srivastava et al. (2015a) shows that in trained Highway networks, the activity of the transform gates is often sparse for each individual sample, while their average activity over all training samples is non-sparse. Most units learn to copy their inputs and only replace features selectively. Again, this means that most of the features are propagated unchanged rather than being combined and changed between layers—an observation that contradicts the idea of building a new level of abstraction at each layer.
|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
Figure 2: (a) A single neural network layer that directly computes the desired representation. (b) The unrolled iterative estimation stage (e.g. from a Residual network) stretches the computation over three layers by first providing a noisy estimate of that representation, but then iteratively refines it over the next to layers. (c) A classic group of three layers can also distribute the computation, but they would produce a new representation at each layer. The iterative estimation stage in (b) can be seen as a middle ground between a single classic neural network layer, (a), and multiple classic layers, (c).
|
| 42 |
+
|
| 43 |
+
Lesioning. If it were true that each layer computes a completely new set of features, then removing a layer from a trained network would completely change the input distribution for the next layer. We would then expect to see the overall performance drop to almost chance level. This is in fact what Veit et al. (2016) find for the 15-layer VGG network on CIFAR-10: removing any layer from the trained network sets the classification error to around $90 \%$ . But the lesioning studies conducted on Highway networks (Srivastava et al., 2015a) and ResNets (Veit et al., 2016) paint an entirely different picture: only a minor drop in performance is observed for any removed layer. This drop is more pronounced for the early layers and the layers that change dimensionality (i.e. number of filter maps and map sizes), but performance is always still far superior to random guessing.
|
| 44 |
+
|
| 45 |
+
Huang et al. (2016b) take lesioning one step further and drop out entire ResNet layers as a regularizer during training. They describe their method as “[...] a training procedure that enables the seemingly contradictory setup to train short networks and use deep networks at test time”. The regularization effect of this procedure is explained as inducing an implicit ensemble of many shallow networks akin to normal dropout. Note that this explanation requires a departure from the representation view in that each layer has to cope with the possibility of having its entire input layer removed. Otherwise, most shallow networks in the ensemble would perform no better than chance level, just like the lesioned VGG net.
|
| 46 |
+
|
| 47 |
+
Reshuffling. The link between layers and representation levels may be most clearly challenged by an experiment in Veit et al. (2016) where the layers of a trained 110-layer ResNet are reshuffled. Remarkably, error increases smoothly with the amount of reshuffling, and many re-orderings result only in a small increase in error. Note, however, that only layers within a stage are reshuffled, since the dimensionality of the swapped layers must match. Veit et al. (2016) take these results as evidence that ResNets behave as ensembles of exponentially many shallow networks.
|
| 48 |
+
|
| 49 |
+
# 3 UNROLLED ITERATIVE ESTIMATION VIEW
|
| 50 |
+
|
| 51 |
+
The representation view has guided neural networks research by providing intuitions about the “meaning” of their computations. In this section we will augment the representation view to deal with the incongruities and hopefully enable future research on these very deep architectures to reap the same benefits. The target of our modification is the mapping of layers/blocks of the network to levels of abstraction.
|
| 52 |
+
|
| 53 |
+
At this point it is interesting to note that the one-to-one mapping of neural network layers to levels of abstraction is an implicit assumption rather than a stated part of the representation view. A recent deep learning textbook (Goodfellow et al., 2016) explicitly states: “[. . . ] the depth flowchart of the computations needed to compute the representation of each concept may be much deeper than the graph of the concepts themselves.” So in a strict sense the evidence from Section 2 does not in fact contradict a representation view of Residual and Highway networks. It only conflicts with the idea that each layer forms a new level of representation. We can therefore reconcile very deep networks with the representation view by explicitly giving up this assumption.
|
| 54 |
+
|
| 55 |
+
Unrolled Iterative Estimation. We propose to think of blocks in Highway and Residual networks as performing unrolled iterative estimation of representations. By that we mean that the blocks in a stage work together to estimate and iteratively refine a single level of representation. The first layer in that stage already provides a (rough) estimate for the final representation. Subsequent layer in the stage then refine that estimate without changing the level of representation. So if the first layer in a stage detects simple shapes, then the rest of the layers in that stage will work at that level too.
|
| 56 |
+
|
| 57 |
+
A good initial estimate for a representation should on average be correct even though it might have high variance. We can thus formalize the notion of "preserving feature identity" as being an unbiased estimator for the target representation. This means the units $\mathbf { \bar { \boldsymbol { a } } } _ { i } ^ { k }$ in different layers $k \in \{ 1 \ldots L \}$ are all estimators for the same latent feature $A _ { i }$ , where $A _ { i }$ refers to the (unknown) value towards which the $i$ -th feature is converging. The unbiased estimator condition can then be written as the expected difference between the estimator and the final feature:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\underset { \mathbf { x } \in \mathbf { X } } { \mathbb { E } } [ a _ { i } ^ { k } - A _ { i } ] = 0 .
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
Note that both the $a _ { i } ^ { k } \mathrm { s }$ and $A _ { i }$ depend on the samples $\mathbf { x }$ of the data-generating distribution $\boldsymbol { X }$ and are thus random variables. The fact that they both depend on the same $\mathbf { x }$ is also the reason we need to keep them within the same expectation and cannot just write $\mathbb { E } [ a _ { i } ^ { k } ] = A _ { i }$ .
|
| 64 |
+
|
| 65 |
+
Feature Identity. A stage that performs iterative estimation is different from one that computes a new level of representation at each block because it preserves the feature identity. They operate differently even if their structure and their final representations are equivalent, because of the way they treat intermediate representations. This is illustrated in Figure 2, where the iterative estimation stage, (b), is contrasted with a single classic block (a), and multiple classic blocks, (c). In the iterative estimation case (middle), all the blocks within the stage produce estimates of the same representation (indicated by having different shades of blue). Whereas, in a classical stage, (c), the intermediate representations would all be different (represented by different colors).
|
| 66 |
+
|
| 67 |
+
# 3.1 HIGHWAY AND RESIDUAL NETWORKS
|
| 68 |
+
|
| 69 |
+
Both Highway and Residual networks address the problem of training very deep architectures by improving the error flow via identity skip connections that allow units to copy their inputs on to the next layer unchanged. This design principle was originally introduced in Long Short-Term Memory (LSTM) recurrent networks (Hochreiter & Schmidhuber, 1997) and mathematically these architectures correspond to a simplified LSTM network, "unrolled" over time.
|
| 70 |
+
|
| 71 |
+
In Highway Networks, for each unit there are two additional gating units, which control how much (typically non-linear) transformation is applied (transform gate $T$ ) and how much to just copy of the activation from the corresponding unit in the previous layer (carry gate $C$ ). Let $H ( \mathbf { x } )$ be a nonlinear parametric function of the inputs, $\mathbf { x }$ , (typically an affine projection followed by pointwise non-linearity). Then a traditional feed-forward network layer can be written as:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
y ( \mathbf { x } ) = H ( \mathbf { x } ) .
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
By adding two additional units, $T ( \mathbf { x } )$ and $C ( \mathbf { x } )$ a Highway layer can be written as:
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
y ( \mathbf { x } ) = H ( \mathbf { x } ) \cdot T ( \mathbf { x } ) + \mathbf { x } \cdot C ( \mathbf { x } ) .
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
Usually this is further simplified by coupling the gates, i.e. setting $C ( \mathbf { x } ) = 1 - T ( \mathbf { x } )$ :
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
y ( \mathbf { x } ) = H ( \mathbf { x } ) \cdot T ( \mathbf { x } ) + \mathbf { x } \cdot ( 1 - T ( \mathbf { x } ) ) .
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
ResNets simplify the Highway networks approach by reformulating the desired transformation as the input plus a residual $F ( \mathbf { x } )$ . The rationale behind this is that it is easier to optimize the residual form than the original function. For the extreme case where the desired function is the identity, this amounts to the trivial task of pushing the residual to zero:
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
y ( \mathbf { x } ) = F ( \mathbf { x } ) + \mathbf { x } .
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
As with Highway networks, Residual networks can be viewed as unfolded recurrent neural networks of the particular mathematical form (one with an identity self-connection) of an LSTM cell. This has been explicitly pointed out by Liao & Poggio (2016), who also argue that this could allow Residual networks to emulate recurrent processing in the visual cortex and thus adds to their biological plausibility. Setting $F ( \mathbf { x } ) = T ( \mathbf { x } ) [ H ( \mathbf { x } ) - \mathbf { x } ]$ converts Equation 5 to Equation 4 showing that both formulations differ only in the precise functional form for $F$ . Alternatively, Residual networks can be seen as a particular case of Highway networks where $C ( \mathbf { x } ) = T ( \mathbf { x } ) = \mathbf { 1 }$ and are not learned.
|
| 96 |
+
|
| 97 |
+
# 3.2 DERIVING RESIDUAL NETWORKS
|
| 98 |
+
|
| 99 |
+
Equation 1 can be used to directly derive the ResNet equation (Equation 5). First, it follows that the expected difference between outputs of two consecutive blocks in a stage is zero:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\begin{array} { r } { \mathbb { E } [ a _ { i } ^ { k } - A _ { i } ] - \mathbb { E } [ a _ { i } ^ { k - 1 } - A _ { i } ] = 0 } \\ { \mathbb { E } [ a _ { i } ^ { k } - a _ { i } ^ { k - 1 } ] = 0 . } \end{array}
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
If we write feature $a _ { i } ^ { k }$ as a combination of $a _ { i } ^ { k - 1 }$ and a residual $F _ { i }$ , it follows from Equation 7 that the residual has to be zero-mean:
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\begin{array} { c } { { a _ { i } ^ { k } = a _ { i } ^ { k - 1 } + F _ { i } } } \\ { { \implies \mathbb { E } [ F _ { i } ] = 0 . } } \end{array}
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
Therefore, if the residual block $F$ has a zero mean over the training set, then Equation 1 holds and it can be said to maintain feature identity. Note that this is a reasonable assumption, especially when using batch normalization.
|
| 112 |
+
|
| 113 |
+
# 3.3 DERIVING HIGHWAY NETWORKS
|
| 114 |
+
|
| 115 |
+
The coupled Highway formula (Equation 4) can be directly derived as an alternative way of ensuring Equation 1 if we assume a $H _ { i }$ to be a new estimate of $A _ { i }$ . Highway layers then result from the optimal way to linearly combine the former estimate $a _ { i } ^ { k - 1 }$ with $H _ { i }$ such that the resulting $a _ { i } ^ { k }$ is a minimum variance estimate of $A _ { i }$ , i.e. requiring $\mathbb { E } [ a _ { i } ^ { k } - A _ { i } ] = 0$ and that $\mathrm { V a r } [ a _ { i } ^ { k } - A _ { i } ]$ is minimal.
|
| 116 |
+
|
| 117 |
+
Let $\alpha _ { 1 } = \mathrm { V a r } [ a _ { i } ^ { k } - A _ { i } ] - \mathrm { C o v } [ a _ { i } ^ { k } - A _ { i } , a _ { i } ^ { k } - H _ { i } ]$ and $\alpha _ { 2 } = \mathrm { V a r } [ H _ { i } - A _ { i } ] - \mathrm { C o v } [ a _ { i } ^ { k } - A _ { i } , a _ { i } ^ { k } - H _ { i } ]$ , then the optimal linear way of combining them is then given by the following estimator (see Section A.1 for derivation):
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
a _ { i } ^ { k + 1 } = \frac { \alpha _ { 2 } } { \alpha _ { 1 } + \alpha _ { 2 } } a _ { i } ^ { k } + \frac { \alpha _ { 1 } } { \alpha _ { 1 } + \alpha _ { 2 } } H _ { i } .
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
If we use a neural network to compute $H _ { i }$ and another one to compute $\begin{array} { r } { T _ { i } = \frac { \alpha _ { 1 } } { \alpha _ { 1 } + \alpha _ { 2 } } } \end{array}$ , then we recover the Highway formula:
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
a _ { i } ^ { k } = H _ { i } \cdot T _ { i } + a _ { i } ^ { k - 1 } \cdot ( 1 - T _ { i } ) ,
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
where $H _ { i }$ and $T _ { i }$ are both functions of the previous layer activations $\pmb { a } ^ { k - 1 }$ .
|
| 130 |
+
|
| 131 |
+
# 4 DISCUSSION
|
| 132 |
+
|
| 133 |
+
# 4.1 IMPLICATIONS FOR HIGHWAY NETWORKS
|
| 134 |
+
|
| 135 |
+
In Highway networks with coupled gates the mixing coefficients always sum to one. This ensures that the expectation of the new estimate will always be correct (cf. Equation 14). The precise value of mixing will only determine the variance of the new estimate. We can bound this variance to be less or equal to the variance of the previous layer by restricting both mixing coefficients to be positive. In Highway networks this is done by using the logistic sigmoid activation function for the transform gate $T _ { i }$ . This restriction is equivalent to the assumption of $\alpha _ { 1 }$ and $\alpha _ { 2 }$ having the same sign. This assumption holds, for example, if the error of the new estimate $H _ { i } - A _ { i }$ is independent of the old $a _ { i } ^ { k - 1 } - A _ { i }$ . Because in that case their covariance is zero and thus both alphas are positive.
|
| 136 |
+
|
| 137 |
+
Using the logistic sigmoid as activation function for the transform gate further means that the preactivation of $T _ { i }$ implicitly estimates $\log \left( { \frac { \alpha _ { 2 } } { \alpha _ { 1 } } } \right)$ . This is easy to see because the logistic sigmoid of that
|
| 138 |
+
|
| 139 |
+

|
| 140 |
+
Figure 3: Experimental corroboration of Equation 1. The average estimation error – an empirical estimate of the LHS in Equation $1 -$ for each block of each stage ( $\mathbf { \bar { X } }$ -axis). It stays close to zero in all stages of a 50-layer ResNet trained on the ILSVRC-2015 dataset. The standard deviation of the estimation error decreases as depth increases in each stage (left to right), indicating iterative refinement of the representations.
|
| 141 |
+
|
| 142 |
+
term is
|
| 143 |
+
|
| 144 |
+
$$
|
| 145 |
+
\frac { 1 } { 1 + e ^ { \log ( \frac { \alpha _ { 2 } } { \alpha _ { 1 } } ) } } = \frac { 1 } { 1 + \frac { \alpha _ { 2 } } { \alpha _ { 1 } } } = \frac { \alpha _ { 1 } } { \alpha _ { 1 } + \alpha _ { 2 } } .
|
| 146 |
+
$$
|
| 147 |
+
|
| 148 |
+
For the simple case of independent estimates $( \mathrm { C o v } [ a _ { i } ^ { k } - A _ { i } , a _ { i } ^ { k } - H _ { i } ] = 0 )$ ), this gives us another way of understanding the transform gate bias: It controls our initial belief in the variance of the layers estimate as compared to the previous one. A low bias means that the layers on average produce a high variance estimate, and should thus only contribute little, which seems a reasonable assumption for initialization.
|
| 149 |
+
|
| 150 |
+
# 4.2 EXPERIMENTAL CORROBORATION OF ITERATIVE ESTIMATION VIEW
|
| 151 |
+
|
| 152 |
+
The primary prediction of the iterative estimation view is that the estimation error for Highway or Residual blocks within the same stage should be zero in expectation. To empirically test this claim, we extract the intermediate layer outputs for 5000 validation set images using the 50-layer ResNet trained on the ILSVRC-2015 dataset from He et al. (2015). These are then used to compute the empirical mean and standard deviation of the estimation error over the validation subset, for all blocks in the four Residual stages in the network. Finally the mean of the empirical mean and standard deviation is computed over the three spatial dimensions.
|
| 153 |
+
|
| 154 |
+
Figure 3 shows that for the first three stages, the mean estimation error is indeed close to zero. This indicates that it is valid to interpret the role of Residual blocks in this network as that of iteratively refining a representation. Moreover, in each stage the standard deviation of the estimation error decreases over successive blocks, indicating the convergence of the refinement procedure. We note that stage four (with three blocks) appears to be underestimating the representation values, indicating a probable weak link in the architecture.
|
| 155 |
+
|
| 156 |
+
# 4.3 VISUAL EVIDENCE & STAGE-WISE ESTIMATION OF FEATURES
|
| 157 |
+
|
| 158 |
+
ResNets (He et al., 2015) and many other derived architectures share some common characteristics: They are divided into stages of Residual blocks that share the same dimensionality. In between these stages the input dimensionality changes, typically by down-sampling and an increase in the number of channels. These stages typically also increase in length: the early stages consist of fewer layers compared to later ones.
|
| 159 |
+
|
| 160 |
+
We can now interpret these design choices from an iterative estimation point of view. From this perspective the level of representation stays the same within each stage, through the use of identity shortcut connections. Between stages, the level of representation is changed by the use of a projection to change dimensionality. This means that we expect the type of features that are detected to be very similar within a stage and jump in abstraction between stages. This view also suggests that the first few stages can be shorter, since low level representations tend to be relatively simple and need little iterative refinement. The features of later stages on the other hand are likely complex with numerous inter-dependencies and therefore benefit more from iterative refinement.
|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
Figure 4: Feature visualization from Chu et al. (2017), reproduced with kind permission of the authors. It shows how the response of a single filter (unit) evolves over the three blocks (shown from left to right) of stage 1 in a 50-layer ResNet trained on ImageNet. On the left of each visualization are the top 9 patches from the ImageNet validation set that maximally activated that filter. To the right the corresponding guided backpropagation (Springenberg et al., 2014) visualizations are shown.
|
| 164 |
+
|
| 165 |
+
Many visualization studies (such as those by Zeiler & Fergus (2014)) have examined the activities in trained convolutional networks and found evidence supporting the representation view. However, these studies were conducted on networks not designed for iterative estimation. The interpretation above paints a different picture for networks which learn unrolled iterative estimation. In these networks, we should observe stages and not layers corresponding to levels of representation.
|
| 166 |
+
|
| 167 |
+
Indeed, visualization of Residual network features supports the iterative estimation view. In Figure 4 we reproduce visualizations from a study by Chu et al. (2017) who observe: “[. . . ] residual layers of the same dimensionality learn features that get refined and sharpened”. These visualizations show how the response of a single filter changes over three Residual blocks within the same stage of a 50-layer Residual network trained for image classification. Note that the filter appears to refine its response by including surrounding context, rather than changing it across blocks in the same stage. In the first block, the top nine activating patches for the filter include three light sources and six specular highlights. In later blocks, through the incorporation of spatial context, eight out of nine maximally activating patches are specular highlights. Similar refinement behavior is observed throughout the different stages of the network.
|
| 168 |
+
|
| 169 |
+
Another finding in line with this implication of the iterative estimation view is that in some cases sharing weights of the Residual blocks within a stage doesn’t deteriorate performance much (Liao & Poggio, 2016). Similarly Lu & Renals (2015) shared the weights of the transform and carry gates of a thin and deep highway network, while still achieving better performance than both normal deep neural networks and Residual networks.
|
| 170 |
+
|
| 171 |
+
# 4.4 REVISITING EVIDENCE AGAINST THE REPRESENTATION VIEW
|
| 172 |
+
|
| 173 |
+
Staying Close to the Inputs. When iteratively re-estimating a variable, staying close to the old value should be a more common operation than changing it significantly. This is the reason why the ResNet formulation makes sense: learning the identity is hard and it is needed frequently. It also explains sparse transform gate activity in trained Highway networks: These networks learn to dynamically and selectively update individual features, while keeping most of the representation intact.
|
| 174 |
+
|
| 175 |
+
Lesioning. Another implication of the iteration view is that processing in layers is incremental and somewhat interchangeable. Each layer (apart from the first) refines an already reasonable estimate of the representation. It follows that removing layers, like in the lesioning experiments, should have only a mild effect on the final result because doing so does not change the overall representation the next layer receives, only its quality. The following layer can still perform mostly the same operation, even with a somewhat noisy input. Layer dropout (Huang et al., 2016b) amplifies this effect by explicitly training the network to work with a variable number of iterations. By dropping random layers it further penalizes iterations relying on each other, which could be another explanation for the regularization effect of the technique.
|
| 176 |
+
|
| 177 |
+
Shuffling. The layers within a stage should also be interchangeable to a certain degree, because they all work with the same input and output representations. Of course, this interchangeability is not without limitations. The network could learn to depend on a specific order of refinements, which would be disturbed by shuffling and lesioning. But we can expect these effects to be moderate in many cases, which is indeed what has been reported in the literature.
|
| 178 |
+
|
| 179 |
+
Table 1: Comparison of several Highway network and Residual network variants.
|
| 180 |
+
|
| 181 |
+
<table><tr><td>Variant</td><td>Functional Form</td><td>Perplexity</td></tr><tr><td>Plain</td><td>H(x)</td><td>92.60</td></tr><tr><td>Residual</td><td>H(x)+x</td><td>91.32</td></tr><tr><td>T-Only</td><td>H(x):T(x) + x</td><td>82.94</td></tr><tr><td>C-Only</td><td>H(x)+x.C(x)</td><td>79.15</td></tr><tr><td>Coupled</td><td>H(x):T(x)+x·(1-T(x))</td><td>79.13</td></tr><tr><td>Full</td><td>H(x)·T(x)+x:C(x)</td><td>79.09</td></tr></table>
|
| 182 |
+
|
| 183 |
+
(a) Comparing of various variants of the Highway formulation for character-aware neural language models (Kim et al., 2015).
|
| 184 |
+
|
| 185 |
+
<table><tr><td>Variant</td><td>Top5 Error</td></tr><tr><td>Highway</td><td>10.03 ± 0.17</td></tr><tr><td>Highway-Full</td><td>10.21 ± 0.03</td></tr><tr><td>Resnet</td><td>9.40 ± 0.18</td></tr><tr><td>Highway + BN</td><td>7.53 ± 0.05</td></tr><tr><td>Highway-Full + BN</td><td>7.29 ± 0.11</td></tr><tr><td>Resnet+BN</td><td>7.17 ± 0.14</td></tr></table>
|
| 186 |
+
|
| 187 |
+
(b) Comparing ILSVRC-2012 top5 classification error. Mean and std over 3 runs.
|
| 188 |
+
|
| 189 |
+
# 5 COMPARATIVE CASE STUDIES
|
| 190 |
+
|
| 191 |
+
The preceding sections show that we can construct both Highway and Residual architectures mathematically grounded in learning unrolled iterative estimation. The common feature between these architectures is that they preserve feature identities, and the primary difference is that they have different biases towards switching feature identities. Unfortunately, since our current understanding of the computations required to solve complex problems is limited, it is extremely hard to say a priori which architecture may be more suitable for which type of problems. Therefore, in this section we perform two case studies comparing and contrasting their behavior experimentally. The studies are each based on applications for which Residual and Highway layers respectively have been effective.
|
| 192 |
+
|
| 193 |
+
# 5.1 IMAGE CLASSIFICATION
|
| 194 |
+
|
| 195 |
+
Deep Residual networks outperformed all other entries at the 2016 ImageNet classification challenge. In this study we compare the performance of 50-layer convolutional Highway and Residual networks for ImageNet classification. Our aim is not to examine the importance of depth for this task— shallower networks have already outperformed deep Residual networks on all original Residual network benchmarks (Huang et al., 2016a; Szegedy et al., 2016). Instead, our goal is to fairly compare the two architectures, and test the following claims regarding deep convolutional Highway networks (He et al., 2015; 2016; Veit et al., 2016):
|
| 196 |
+
|
| 197 |
+
1. They are harder to train, leading to stalled training or poor results.
|
| 198 |
+
2. They require extensive tuning of the initial bias, and even then produce much worse results compared to Residual networks.
|
| 199 |
+
3. They are wasteful in terms of parameters since they utilize extra learned gates, doubling the total parameters for the same number of units compared to a Residual layer.
|
| 200 |
+
|
| 201 |
+
We train a 50-layer convolutional Highway network based on the 50-layer Residual network from He et al. (2015). The design of the two networks are identical (including use of batch normalization (BN) after every convolution operation), except that unlike Residual blocks, the Highway blocks use two sets of layers to learn $H$ and $T$ and then combine them using the coupled Highway formulation. We train two slight variations of the Highway network: Highway, in which $H$ has the same design as in a Residual block before addition i.e. Conv-BN-ReLU-Conv-BN-ReLU-Conv-BN, and Highway-Full, in which an additional third ReLU operation is added. The design of $T$ is Conv-BN-ReLU-Conv-BN-ReLU-Conv-BN-Sigmoid. As proposed initially for Highway layers, both $H$ and $T$ are learned using the same receptive fields and number of parameters. The transform gate biases are set to $- 1$ at the start of training. For fair comparison, the number of feature maps throughout the Highway network is reduced such that the total number of parameters is close to the Residual network. The training algorithm and learning rate schedule are kept the same as those used for the Residual network.
|
| 202 |
+
|
| 203 |
+
The plots in Figure 5a show that the Residual network fits the data better—its final training loss is lower than the Highway network. The final performance of both networks on the validation set (see Table 1b) is very similar, with the Residual network producing a slightly better top-5 classification error of $7 . 1 7 \%$ vs. $7 . 5 3 \%$ for the Highway network. The Highway-Full network produces even closer results with a mean error of $7 . 2 9 \%$ . These results contradict claims 1 and 2 above, since the Highway networks are easy to train without requiring any bias tuning. However, there is some support for claim 3 since the Highway network appears to slightly underfit compared to the Residual network, suggesting lower capacity for the same number of parameters.
|
| 204 |
+
|
| 205 |
+
Importance of Expressive Gating. The mismatch between the results above and claims 1 and 2 made by He et al. (2016) can be explained based on the importance of having sufficiently expressive transform gates. For experiments with Highway networks (which they refer to as Residual networks with exclusive gating), He et al. (2016) used $1 \times 1$ convolutions for the transform gate, instead of having the same receptive fields for the gates as the primary transformation $( H )$ , as done by Srivastava et al. (2015a). This change in design appears to be the primary cause of instabilities in learning since the gates can no longer function effectively. Therefore, it is important to use equally expressive transformations for $H$ and $T$ in Highway networks.
|
| 206 |
+
|
| 207 |
+
Role of Batch Normalization. Since both architectures have built-in ease of optimization compared to plain networks, it is interesting to investigate the necessity of batch normalization for training these networks. Our derivation in Section 3.2 suggest that BN in Residual networks could take the role of an inductive bias towards iterative estimation by keeping the expected mean of the residual zero (cf. Equation 9). To investigate its role we train the networks above without any batch normalization. The resulting training curves are shown in Figure 5b of the supplementary.
|
| 208 |
+
|
| 209 |
+
We find that without BN both networks reach an even lower training error than before while performing worse on the validation set indicating increased overfitting for both. This shows that BN is not necessary for training these networks and does not speed up learning. Interestingly, the effect is more pronounced for the Highway network, which now fits the data better than the ResNet. This contradicts claim 3, since a Highway network with the same number of parameters as a Residual network demonstrates slightly higher capacity. On the other hand both networks produce a higher validation error— $1 0 . 0 3 \%$ and $9 . 4 \bar { 0 } \%$ for the Highway and Residual network respectively—indicating a clear case of overfitting. This means that batch normalization provides regularization benefits that can’t easily be explained by either improved optimization nor by the inductive bias for Residual networks.
|
| 210 |
+
|
| 211 |
+
# 5.2 LANGUAGE MODELING
|
| 212 |
+
|
| 213 |
+
Next we compare different functional forms (or variants) of the Highway network formulation for the case of character-aware language modeling. Kim et al. (2015) have shown that utilizing a few Highway fully connected layers instead of conventional plain layers improves model performance for a variety of languages. The architecture consists of a stack of convolutional layers followed by Highway layers and then an LSTM layer which predicts the next word based on the history. Similar architectures have since been utilized for obtaining substantial improvements for large-scale language modeling (Jozefowicz et al., 2016) and character level machine translation (Lee et al., 2016). Highway layers with coupled gates have been used in all these studies.
|
| 214 |
+
|
| 215 |
+
Only two to four Highway layers were necessary to obtain significant modeling improvements in the studies above. Thus, it is reasonable to assume that the central advantage of using Highway layers for this task is not easing of credit assignment over depth, but an improved modeling bias. To test how well Residual and other variants of Highway networks perform, we compare several language models trained on the Penn Treebank dataset using the same setup and code provided by Kim et al. (2015). We use the LSTM-Char-Large model, only changing the two Highway layers to different variants. The following variants are tested:
|
| 216 |
+
|
| 217 |
+
Full The original Highway formulation based on the LSTM cell. We note that this variant uses more parameters than the others, since changing the layer size to reduce parameters would affect the rest of the network architecture as well.
|
| 218 |
+
|
| 219 |
+
Coupled The most commonly used Highway variant, derived in Section 3.3.
|
| 220 |
+
|
| 221 |
+
C-Only A Highway variant with a carry gate but no transform gate (always set to one).
|
| 222 |
+
|
| 223 |
+
T-Only A Highway variant with a transform gate but no carry gate (always set to one).
|
| 224 |
+
|
| 225 |
+
Residual The Residual form from He et al. (2015), in which both transform and carry gate are always one. For this variant we use four layers instead of two, to match the amount of computation/parameters of the other variants.
|
| 226 |
+
|
| 227 |
+
The test set perplexity of each model is shown in Table 1a. We find that the the Full, Coupled and C-Only variants have similar performance, better than the T-Only variant and substantially better than the Residual variant. The Residual variant results in performance close to that obtained by using a single plain layer, even though four Residual layers are used. Learned gating of the identity connection is crucial for improving performance for this task.
|
| 228 |
+
|
| 229 |
+
Recall that the Highway layers transform character-aware representations before feeding them into an LSTM layer. Thus the non-contextual word-level representations resulting from the convolutional layers are transformed into representations better suited for contextual language modeling. Since it is unlikely that the entire representation needs to change completely, this setting fits well with the iterative estimation perspective.
|
| 230 |
+
|
| 231 |
+
Interestingly, Table 1a shows a significant advantage for all variants with a multiplicative gate on the inputs. These results suggest that in this setting it is crucial to dynamically replace parts of the input representation. Some features need to be changed drastically conditioned on other detected features such as word type while other features need to be retained. As a result, even though Residual networks are compatible with iterative estimation, they may not be the best choice for tasks where mixing adaptive feature transform/replacement and reuse is required.
|
| 232 |
+
|
| 233 |
+
# 6 CONCLUSION
|
| 234 |
+
|
| 235 |
+
This paper offers a new perspective on Highway and Residual networks as performing unrolled iterative estimation. As an extension of the popular representation view, it stands in contrast to the optimization perspective from which these architectures have originally been introduced. According to the new view, successive layers (within a stage) cooperate to compute a single level of representation. Therefore, the first layer already computes a rough estimate of that representation, which is then iteratively refined by the successive layers. Unlike layers in a conventional neural network, which each compute a new representation, these layers therefore preserve feature identity.
|
| 236 |
+
|
| 237 |
+
We have further shown that both Residual and Highway networks can be directly derived from this new perspective. This offers a unified theory from which these architectures can be understood as two approaches to the same problem. This view further provides a framework from which to understand several surprising recent findings like resilience to lesioning, benefits of layer dropout, and the mild negative effects of layer reshuffling. Together with the derivations these results serve as compelling evidence for the validity of our new perspective.
|
| 238 |
+
|
| 239 |
+
Motivated by their conceptual similarities we set out to compare Highway and Residual networks. In preliminary experiments we found that they give very similar results for networks of equal size, thus refuting some claims that Highway networks would need more parameters, or that any form of gating impairs the performance of Residual networks. In another example, we found non-gated identity skip-connections to perform significantly worse, and offered a possible explanation: If the task requires dynamically replacing individual features, then the use of gating is beneficial.
|
| 240 |
+
|
| 241 |
+
The preliminary evidence presented in this report is meant as a starting point for further investigation. We hope that the unrolled iterative estimation perspective will provide valuable intuitions to help guide research into understanding, improving and possibly combining these exciting techniques.
|
| 242 |
+
|
| 243 |
+
# ACKNOWLEDGEMENTS
|
| 244 |
+
|
| 245 |
+
The authors wish to thank Faustino Gomez, Bas Steunebrink, Jonathan Masci, Sjoerd van Steenkiste and Christian Osendorfer for their feedback and support. We are grateful to NVIDIA Corporation for providing us a DGX-1 as part of the Pioneers of AI Research award. This research was supported by the EU project “INPUT” (H2020-ICT-2015 grant no. 687795).
|
| 246 |
+
|
| 247 |
+
REFERENCES
|
| 248 |
+
Abdi, Masoud and Nahavandi, Saeid. Multi-Residual Networks. arXiv:1609.05672 [cs], September 2016.
|
| 249 |
+
Chu, Brian, Yang, Daylen, and Tadinada, Ravi. Visualizing Residual Networks. arXiv:1701.02362 [cs], January 2017.
|
| 250 |
+
Deng, Li and Yu, Dong. Deep Learning Methods and Applications. Foundations and Trends in Signal Processing, pp. 199–200, 2014.
|
| 251 |
+
Goodfellow, Ian, Bengio, Yoshua, and Courville, Aaron. Deep Learning. Book in preparation for MIT Press, 2016.
|
| 252 |
+
He, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Deep Residual Learning for Image Recognition. arXiv:1512.03385 [cs], December 2015.
|
| 253 |
+
He, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Identity Mappings in Deep Residual Networks. In Computer Vision–ECCV 2016, 2016.
|
| 254 |
+
Hochreiter, Sepp. Untersuchungen zu dynamischen neuronalen Netzen. Diploma, Technische Universität München, pp. 91, 1991.
|
| 255 |
+
Hochreiter, Sepp and Schmidhuber, Jürgen. Long short-term memory. Neural computation, 9(8): 1735–1780, 1997.
|
| 256 |
+
Huang, Gao, Liu, Zhuang, and Weinberger, Kilian Q. Densely Connected Convolutional Networks. arXiv:1608.06993 [cs], August 2016a.
|
| 257 |
+
Huang, Gao, Sun, Yu, Liu, Zhuang, Sedra, Daniel, and Weinberger, Kilian. Deep Networks with Stochastic Depth. arXiv:1603.09382 [cs], March 2016b.
|
| 258 |
+
Hubel, David H. and Wiesel, Torsten N. Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex. The Journal of physiology, 160(1):106–154, 1962.
|
| 259 |
+
Jozefowicz, Rafal, Vinyals, Oriol, Schuster, Mike, Shazeer, Noam, and Wu, Yonghui. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016.
|
| 260 |
+
Kim, Yoon, Jernite, Yacine, Sontag, David, and Rush, Alexander M. Character-aware neural language models. arXiv preprint arXiv:1508.06615, 2015.
|
| 261 |
+
LeCun, Yann, Bengio, Yoshua, and Hinton, Geoffrey. Deep learning. Nature, 521(7553):436–444, May 2015. ISSN 0028-0836. doi: 10.1038/nature14539.
|
| 262 |
+
Lee, Jason, Cho, Kyunghyun, and Hofmann, Thomas. Fully Character-Level Neural Machine Translation without Explicit Segmentation. arXiv preprint arXiv:1610.03017, 2016.
|
| 263 |
+
Liao, Qianli and Poggio, Tomaso. Bridging the Gaps Between Residual Learning, Recurrent Neural Networks and Visual Cortex. arXiv:1604.03640 [cs], April 2016.
|
| 264 |
+
Lu, Liang and Renals, Steve. Small-footprint Deep Neural Networks with Highway Connections for Speech Recognition. arXiv:1512.04280 [cs], December 2015.
|
| 265 |
+
Schmidhuber, Jürgen. Deep learning in neural networks: An overview. Neural Networks, 61:85–117, January 2015. ISSN 0893-6080. doi: 10.1016/j.neunet.2014.09.003.
|
| 266 |
+
Springenberg, Jost Tobias, Dosovitskiy, Alexey, Brox, Thomas, and Riedmiller, Martin. Striving for Simplicity: The All Convolutional Net. arXiv:1412.6806 [cs], December 2014.
|
| 267 |
+
Srivastava, Rupesh K, Greff, Klaus, and Schmidhuber, Juergen. Training Very Deep Networks. In Cortes, C., Lawrence, N. D., Lee, D. D., Sugiyama, M., and Garnett, R. (eds.), Advances in Neural Information Processing Systems 28, pp. 2377–2385. Curran Associates, Inc., 2015a.
|
| 268 |
+
Srivastava, Rupesh Kumar, Greff, Klaus, and Schmidhuber, Jürgen. Highway Networks. arXiv:1505.00387 [cs], May 2015b.
|
| 269 |
+
|
| 270 |
+
Szegedy, Christian, Ioffe, Sergey, Vanhoucke, Vincent, and Alemi, Alex. Inception-v4, InceptionResNet and the Impact of Residual Connections on Learning. arXiv:1602.07261 [cs], February 2016.
|
| 271 |
+
|
| 272 |
+
Veit, Andreas, Wilber, Michael, and Belongie, Serge. Residual Networks are Exponential Ensembles of Relatively Shallow Networks. arXiv:1605.06431 [cs], May 2016.
|
| 273 |
+
|
| 274 |
+
Zeiler, Matthew D. and Fergus, Rob. Visualizing and understanding convolutional networks. In European Conference on Computer Vision, pp. 818–833. Springer, 2014.
|
| 275 |
+
|
| 276 |
+
Zilly, Julian Georg, Srivastava, Rupesh Kumar, Koutník, Jan, and Schmidhuber, Jürgen. Recurrent Highway Networks. arXiv:1607.03474 [cs], July 2016.
|
| 277 |
+
|
| 278 |
+

|
| 279 |
+
Figure 5: Comparing 50-layer Highway vs. Residual networks on ILSVRC-2012 classification.
|
| 280 |
+
|
| 281 |
+
# A DERIVATION
|
| 282 |
+
|
| 283 |
+
A.1 OPTIMAL LINEAR ESTIMATOR
|
| 284 |
+
|
| 285 |
+
Assume two random variables $A$ and $B$ that are both noisy measurements of a third (latent) random variable $C$ :
|
| 286 |
+
|
| 287 |
+
$$
|
| 288 |
+
\mathbb { E } [ A - C ] = \mathbb { E } [ B - C ] = 0
|
| 289 |
+
$$
|
| 290 |
+
|
| 291 |
+
We call the corresponding variances $\mathrm { V a r } [ A - C ] = \sigma _ { A } ^ { 2 }$ and $\mathrm { V a r } [ B - C ] = \sigma _ { B } ^ { 2 }$ and covariance Cov[A, B] = σ2AB .
|
| 292 |
+
|
| 293 |
+
We are looking for the linear estimator $q ( A , B ) = q _ { 0 } + q _ { 1 } A + q _ { 2 } B$ of $C$ with $\mathbb { E } [ q - C ] = 0$ (unbiased) that has minimum variance.
|
| 294 |
+
|
| 295 |
+
$$
|
| 296 |
+
\begin{array} { r } { \mathbb { E } [ q ( A , B ) - C ] = 0 } \\ { \mathbb { E } [ q _ { 0 } + q _ { 1 } A + q _ { 2 } B - C ] = 0 } \\ { \mathbb { E } [ q _ { 0 } + q _ { 1 } A - q _ { 1 } C + q _ { 2 } B - q _ { 2 } C + ( q _ { 1 } + q _ { 2 } - 1 ) C ] = 0 } \\ { \mathbb { E } [ q _ { 0 } + q _ { 1 } ( A - C ) + q _ { 2 } ( B - C ) + ( q _ { 1 } + q _ { 2 } - 1 ) C ] = 0 } \\ { q _ { 0 } + ( q _ { 1 } + q _ { 2 } - 1 ) \mathbb { E } [ C ] = 0 } \\ { \mathbb { E } [ C ] ( 1 - q _ { 1 } - q _ { 2 } ) = q _ { 0 } } \end{array}
|
| 297 |
+
$$
|
| 298 |
+
|
| 299 |
+
for all $\mathbb { E } [ C ]$ which is possible iff:
|
| 300 |
+
|
| 301 |
+
$$
|
| 302 |
+
q _ { 0 } = 0 \mathrm { a n d } q _ { 1 } + q _ { 2 } = 1 .
|
| 303 |
+
$$
|
| 304 |
+
|
| 305 |
+
The second condition about minimal variance thus reduces to:
|
| 306 |
+
|
| 307 |
+
$$
|
| 308 |
+
\begin{array} { r l } { \underset { q _ { 1 } , q _ { 2 } } { \operatorname { m i n i m i z e } } } & { { } \mathrm { V a r } [ q _ { 1 } A + q _ { 2 } B - C ] } \\ { \mathrm { s u b j e c t } \mathrm { t o } } & { { } q _ { 1 } + q _ { 2 } = 1 } \end{array}
|
| 309 |
+
$$
|
| 310 |
+
|
| 311 |
+
We can solve this using Lagrangian multipliers. For that we need to take the derivative of the following term w.r.t. $q _ { 1 } , q _ { 2 }$ and $\lambda$ and set them to zero:
|
| 312 |
+
|
| 313 |
+
$$
|
| 314 |
+
\mathrm { V a r } [ q _ { 1 } A + q _ { 2 } B - C ] - \lambda ( q _ { 1 } + q _ { 2 } - 1 ) )
|
| 315 |
+
$$
|
| 316 |
+
|
| 317 |
+
The first equation is therefore:
|
| 318 |
+
|
| 319 |
+
$$
|
| 320 |
+
\begin{array} { r l r } & { } & { \frac { d } { d q _ { 1 } } ( \mathrm { V a r } [ q _ { 1 } A + q _ { 2 } B - C ] - \lambda ( q _ { 1 } + q _ { 2 } - 1 ) ) = 0 } \\ & { } & { \frac { d } { d q _ { 1 } } \mathrm { V a r } [ q _ { 1 } A + q _ { 2 } B - C ] - \lambda = 0 } \\ & { } & { \frac { d } { d q _ { 1 } } \mathrm { V a r } [ q _ { 1 } ( A - C ) + q _ { 2 } ( B - C ) ] - \lambda = 0 } \\ & { } & { \frac { d } { d q _ { 1 } } ( q _ { 1 } ^ { 2 } \mathrm { V a r } [ A - C ] + 2 q _ { 1 } q _ { 2 } \mathrm { C o v } [ A - C , B - C ] ) - \lambda = 0 } \\ & { } & { 2 q _ { 1 } \sigma _ { A } ^ { 2 } + 2 q _ { 2 } \sigma _ { A B } ^ { 2 } - \lambda = 0 } \end{array}
|
| 321 |
+
$$
|
| 322 |
+
|
| 323 |
+
Analogously we get:
|
| 324 |
+
|
| 325 |
+
and:
|
| 326 |
+
|
| 327 |
+
$$
|
| 328 |
+
\begin{array} { c } { { 2 q _ { 2 } \sigma _ { B } ^ { 2 } + 2 q _ { 1 } \sigma _ { A B } ^ { 2 } - \lambda = 0 } } \\ { { { } } } \\ { { q _ { 1 } + q _ { 2 } = 1 } } \end{array}
|
| 329 |
+
$$
|
| 330 |
+
|
| 331 |
+
Solving these equations gives us:
|
| 332 |
+
|
| 333 |
+
$$
|
| 334 |
+
\begin{array} { c } { { q _ { 1 } = \displaystyle \frac { \sigma _ { B } ^ { 2 } - \sigma _ { A B } ^ { 2 } } { \sigma _ { A } ^ { 2 } - 2 \sigma _ { A B } ^ { 2 } + \sigma _ { B } ^ { 2 } } } } \\ { { q _ { 2 } = \displaystyle \frac { \sigma _ { A } ^ { 2 } - \sigma _ { A B } ^ { 2 } } { \sigma _ { A } ^ { 2 } - 2 \sigma _ { A B } ^ { 2 } + \sigma _ { B } ^ { 2 } } } } \end{array}
|
| 335 |
+
$$
|
| 336 |
+
|
| 337 |
+
We can write our estimator in terms of $\alpha _ { 1 } = \sigma _ { B } ^ { 2 } - \sigma _ { A B } ^ { 2 }$ and $\alpha _ { 2 } = \sigma _ { A } ^ { 2 } - \sigma _ { A B } ^ { 2 }$ :
|
| 338 |
+
|
| 339 |
+
$$
|
| 340 |
+
q = \frac { \alpha _ { 1 } } { \alpha _ { 1 } + \alpha _ { 2 } } A + \frac { \alpha _ { 2 } } { \alpha _ { 1 } + \alpha _ { 2 } } B
|
| 341 |
+
$$
|
parse/train/Skn9Shcxe/Skn9Shcxe_content_list.json
ADDED
|
@@ -0,0 +1,1620 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "HIGHWAY AND RESIDUAL NETWORKS LEARN UNROLLED ITERATIVE ESTIMATION ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
723,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Klaus Greff The Swiss AI Lab IDSIA (USI-SUPSI) ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
169,
|
| 20 |
+
444,
|
| 21 |
+
199
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Rupesh K. Srivastava & Jürgen Schmidhuber \nThe Swiss AI Lab IDSIA (USI-SUPSI) & NNAISENSE, Lugano, Switzerland \n{klaus,rupesh,juergen}@idsia.ch ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
183,
|
| 30 |
+
219,
|
| 31 |
+
699,
|
| 32 |
+
262
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
297,
|
| 43 |
+
544,
|
| 44 |
+
313
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "The past year saw the introduction of new architectures such as Highway networks (Srivastava et al., 2015a) and Residual networks (He et al., 2015) which, for the first time, enabled the training of feedforward networks with dozens to hundreds of layers using simple gradient descent. While depth of representation has been posited as a primary reason for their success, there are indications that these architectures defy a popular view of deep learning as a hierarchical computation of increasingly abstract features at each layer. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
333,
|
| 54 |
+
766,
|
| 55 |
+
431
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "In this report, we argue that this view is incomplete and does not adequately explain several recent findings. We propose an alternative viewpoint based on unrolled iterative estimation—a group of successive layers iteratively refine their estimates of the same features instead of computing an entirely new representation. We demonstrate that this viewpoint directly leads to the construction of Highway and Residual networks. Finally we provide preliminary experiments to discuss the similarities and differences between the two architectures. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
233,
|
| 64 |
+
435,
|
| 65 |
+
764,
|
| 66 |
+
532
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 INTRODUCTION ",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
176,
|
| 76 |
+
569,
|
| 77 |
+
334,
|
| 78 |
+
585
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Deep learning can be thought of as learning many levels of representation of the input which form a hierarchy of concepts (Deng & Yu, 2014; Goodfellow et al., 2016; LeCun et al., 2015) (but note that this is not the only view: cf. Schmidhuber (2015)). With fixed computational budget, deeper architectures are believed to possess greater representational power and, consequently, higher performance than shallower models. Intuitively, each layer of a deep neural network computes a new level of representation. For convolutional networks, Zeiler & Fergus (2014) visualized the features computed by each layer, and demonstrated that they in fact become increasingly abstract with depth. We refer to this way of thinking about neural networks as the representation view, which probably dates back to Hubel & Wiesel (1962). The representation view links the layers in a network to the abstraction levels of their representations, and as such represents a pervasive assumption in many recent publications including He et al. (2015) who describe the success of their Residual networks like this: “Solely due to our extremely deep representations, we obtain a $2 8 \\%$ relative improvement on the COCO object detection dataset.” ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
604,
|
| 88 |
+
517,
|
| 89 |
+
896
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/c72bd1edfa4f620b0d47ab0e9d8ff30d77ec65bad1319f56b2b35cfd2577ead1.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Illustrating our usage of blocks and stages in Highway and Residual networks. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
540,
|
| 102 |
+
606,
|
| 103 |
+
813,
|
| 104 |
+
844
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "",
|
| 111 |
+
"bbox": [
|
| 112 |
+
173,
|
| 113 |
+
896,
|
| 114 |
+
823,
|
| 115 |
+
922
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Surprisingly, increasing the depth of a network beyond a certain point often leads to a decline in performance even on the training set (Srivastava et al., 2015a). Since adding more layers cannot decrease representational power, this phenomenon is usually attributed to the vanishing gradient problem (Hochreiter, 1991). Therefore, even though deeper models are more powerful in principle, they often fall short in practice. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
103,
|
| 125 |
+
825,
|
| 126 |
+
172
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "Recently, training feedforward networks with hundreds of layers has become feasible through the invention of Highway networks Srivastava et al. (2015a) and Residual networks (ResNets; He et al. 2015). The latter have been widely successful in computer vision, advancing the state of the art on many benchmarks and winning several pattern recognition competitions (He et al., 2015), while Highway networks have been used to improve language modeling (Kim et al., 2015; Jozefowicz et al., 2016; Zilly et al., 2016) and translation (Lee et al., 2016). Both architectures have been introduced with the explicit goal of training deeper models. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
180,
|
| 136 |
+
825,
|
| 137 |
+
279
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "There are, however, some surprising findings that seem to contradict the applicability of the representation view to these very deep networks. For example, it has been reported that removing almost any layer from a trained Highway or Residual network has only minimal effect on its overall performance (Srivastava et al., 2015b; Veit et al., 2016). This idea has been extended to a layerwise dropout as a regularizer for ResNets (Huang et al., 2016b). But if each layer supposedly builds a new level of representation from the previous one, then removing any layer should critically disrupt the input for the following layer. So how is it possible that doing so seems to have only a negligible effect on the network output? Veit et al. (2016) even demonstrated that shuffling some of the layers in a trained ResNet barely affects performance. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
285,
|
| 147 |
+
825,
|
| 148 |
+
410
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "It has been argued that ResNets are better understood as ensembles of shallow networks (Huang et al., 2016b; Veit et al., 2016; Abdi & Nahavandi, 2016). According to this interpretation, ResNets implicitly average exponentially many subnetworks, each of which only use a subset of the layers. But the question remains open as to how a layer in such a subnetwork can successfully operate with changing input representations. This, along with other findings, begs the question as to whether the representation view is appropriate for understanding these new architectures. ",
|
| 155 |
+
"bbox": [
|
| 156 |
+
174,
|
| 157 |
+
416,
|
| 158 |
+
825,
|
| 159 |
+
501
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "In this paper, we propose a new interpretation that reconciles the representation view with the operation of Highway and Residual networks: functional blocks1 in these networks do not compute entirely new representations; instead, they engage in an unrolled iterative estimation of representations that refine/improve upon their input representation, thus preserving feature identity. The transition to a new level of representation occurs when a dimensionality change—through projection—separates two groups of blocks which we refer to as a stage (Figure 1). Taking this perspective, we are able to explain previously elusive findings such as the effects of lesioning and shuffling. Furthermore, we formalize this notion and use it to directly derive Residual and Highway networks. Finally, we present some preliminary experiments to compare these two architectures and investigate some of their relative advantages and disadvantages. ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
507,
|
| 169 |
+
825,
|
| 170 |
+
646
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "2 CHALLENGING THE REPRESENTATION VIEW ",
|
| 177 |
+
"text_level": 1,
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
667,
|
| 181 |
+
575,
|
| 182 |
+
683
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "This section provides a brief survey of some the findings and points of contention that seem to contradict a representation view of Highway and Residual networks. ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
698,
|
| 192 |
+
823,
|
| 193 |
+
727
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "Staying Close to the Inputs. The success of ResNets has been partly attributed to the fact that they obviate the need to learn the identity mapping, which is difficult. However, learning the negative identity (so that a feature can replaced by a higher level one) should be at least as difficult. The fact that the residual form is useful indicates that Residual blocks typically stay close to the input representation, rather than replacing it. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
742,
|
| 203 |
+
825,
|
| 204 |
+
811
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "The analysis by Srivastava et al. (2015a) shows that in trained Highway networks, the activity of the transform gates is often sparse for each individual sample, while their average activity over all training samples is non-sparse. Most units learn to copy their inputs and only replace features selectively. Again, this means that most of the features are propagated unchanged rather than being combined and changed between layers—an observation that contradicts the idea of building a new level of abstraction at each layer. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
819,
|
| 214 |
+
825,
|
| 215 |
+
875
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "image",
|
| 221 |
+
"img_path": "images/248158b1743dda819549c3d98d7aba61f66c22d696af5bc96bc30c387844b3c9.jpg",
|
| 222 |
+
"image_caption": [
|
| 223 |
+
"Figure 2: (a) A single neural network layer that directly computes the desired representation. (b) The unrolled iterative estimation stage (e.g. from a Residual network) stretches the computation over three layers by first providing a noisy estimate of that representation, but then iteratively refines it over the next to layers. (c) A classic group of three layers can also distribute the computation, but they would produce a new representation at each layer. The iterative estimation stage in (b) can be seen as a middle ground between a single classic neural network layer, (a), and multiple classic layers, (c). "
|
| 224 |
+
],
|
| 225 |
+
"image_footnote": [],
|
| 226 |
+
"bbox": [
|
| 227 |
+
176,
|
| 228 |
+
127,
|
| 229 |
+
496,
|
| 230 |
+
287
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 2
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "text",
|
| 236 |
+
"text": "",
|
| 237 |
+
"bbox": [
|
| 238 |
+
173,
|
| 239 |
+
315,
|
| 240 |
+
823,
|
| 241 |
+
343
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "Lesioning. If it were true that each layer computes a completely new set of features, then removing a layer from a trained network would completely change the input distribution for the next layer. We would then expect to see the overall performance drop to almost chance level. This is in fact what Veit et al. (2016) find for the 15-layer VGG network on CIFAR-10: removing any layer from the trained network sets the classification error to around $90 \\%$ . But the lesioning studies conducted on Highway networks (Srivastava et al., 2015a) and ResNets (Veit et al., 2016) paint an entirely different picture: only a minor drop in performance is observed for any removed layer. This drop is more pronounced for the early layers and the layers that change dimensionality (i.e. number of filter maps and map sizes), but performance is always still far superior to random guessing. ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
174,
|
| 250 |
+
361,
|
| 251 |
+
825,
|
| 252 |
+
487
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "Huang et al. (2016b) take lesioning one step further and drop out entire ResNet layers as a regularizer during training. They describe their method as “[...] a training procedure that enables the seemingly contradictory setup to train short networks and use deep networks at test time”. The regularization effect of this procedure is explained as inducing an implicit ensemble of many shallow networks akin to normal dropout. Note that this explanation requires a departure from the representation view in that each layer has to cope with the possibility of having its entire input layer removed. Otherwise, most shallow networks in the ensemble would perform no better than chance level, just like the lesioned VGG net. ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
174,
|
| 261 |
+
493,
|
| 262 |
+
825,
|
| 263 |
+
604
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "Reshuffling. The link between layers and representation levels may be most clearly challenged by an experiment in Veit et al. (2016) where the layers of a trained 110-layer ResNet are reshuffled. Remarkably, error increases smoothly with the amount of reshuffling, and many re-orderings result only in a small increase in error. Note, however, that only layers within a stage are reshuffled, since the dimensionality of the swapped layers must match. Veit et al. (2016) take these results as evidence that ResNets behave as ensembles of exponentially many shallow networks. ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
174,
|
| 272 |
+
622,
|
| 273 |
+
825,
|
| 274 |
+
707
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "3 UNROLLED ITERATIVE ESTIMATION VIEW ",
|
| 281 |
+
"text_level": 1,
|
| 282 |
+
"bbox": [
|
| 283 |
+
174,
|
| 284 |
+
729,
|
| 285 |
+
558,
|
| 286 |
+
746
|
| 287 |
+
],
|
| 288 |
+
"page_idx": 2
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"type": "text",
|
| 292 |
+
"text": "The representation view has guided neural networks research by providing intuitions about the “meaning” of their computations. In this section we will augment the representation view to deal with the incongruities and hopefully enable future research on these very deep architectures to reap the same benefits. The target of our modification is the mapping of layers/blocks of the network to levels of abstraction. ",
|
| 293 |
+
"bbox": [
|
| 294 |
+
173,
|
| 295 |
+
763,
|
| 296 |
+
823,
|
| 297 |
+
833
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "At this point it is interesting to note that the one-to-one mapping of neural network layers to levels of abstraction is an implicit assumption rather than a stated part of the representation view. A recent deep learning textbook (Goodfellow et al., 2016) explicitly states: “[. . . ] the depth flowchart of the computations needed to compute the representation of each concept may be much deeper than the graph of the concepts themselves.” So in a strict sense the evidence from Section 2 does not in fact contradict a representation view of Residual and Highway networks. It only conflicts with the idea that each layer forms a new level of representation. We can therefore reconcile very deep networks with the representation view by explicitly giving up this assumption. ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
840,
|
| 307 |
+
825,
|
| 308 |
+
924
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "",
|
| 315 |
+
"bbox": [
|
| 316 |
+
171,
|
| 317 |
+
103,
|
| 318 |
+
823,
|
| 319 |
+
132
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 3
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "Unrolled Iterative Estimation. We propose to think of blocks in Highway and Residual networks as performing unrolled iterative estimation of representations. By that we mean that the blocks in a stage work together to estimate and iteratively refine a single level of representation. The first layer in that stage already provides a (rough) estimate for the final representation. Subsequent layer in the stage then refine that estimate without changing the level of representation. So if the first layer in a stage detects simple shapes, then the rest of the layers in that stage will work at that level too. ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
174,
|
| 328 |
+
147,
|
| 329 |
+
825,
|
| 330 |
+
231
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "A good initial estimate for a representation should on average be correct even though it might have high variance. We can thus formalize the notion of \"preserving feature identity\" as being an unbiased estimator for the target representation. This means the units $\\mathbf { \\bar { \\boldsymbol { a } } } _ { i } ^ { k }$ in different layers $k \\in \\{ 1 \\ldots L \\}$ are all estimators for the same latent feature $A _ { i }$ , where $A _ { i }$ refers to the (unknown) value towards which the $i$ -th feature is converging. The unbiased estimator condition can then be written as the expected difference between the estimator and the final feature: ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
173,
|
| 339 |
+
237,
|
| 340 |
+
825,
|
| 341 |
+
321
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "equation",
|
| 347 |
+
"img_path": "images/d0ad18db3128a6c19ab981ba5c171be0897f233f373000d28a2a8f23b1c6c8d9.jpg",
|
| 348 |
+
"text": "$$\n\\underset { \\mathbf { x } \\in \\mathbf { X } } { \\mathbb { E } } [ a _ { i } ^ { k } - A _ { i } ] = 0 .\n$$",
|
| 349 |
+
"text_format": "latex",
|
| 350 |
+
"bbox": [
|
| 351 |
+
434,
|
| 352 |
+
325,
|
| 353 |
+
563,
|
| 354 |
+
352
|
| 355 |
+
],
|
| 356 |
+
"page_idx": 3
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"type": "text",
|
| 360 |
+
"text": "Note that both the $a _ { i } ^ { k } \\mathrm { s }$ and $A _ { i }$ depend on the samples $\\mathbf { x }$ of the data-generating distribution $\\boldsymbol { X }$ and are thus random variables. The fact that they both depend on the same $\\mathbf { x }$ is also the reason we need to keep them within the same expectation and cannot just write $\\mathbb { E } [ a _ { i } ^ { k } ] = A _ { i }$ . ",
|
| 361 |
+
"bbox": [
|
| 362 |
+
174,
|
| 363 |
+
359,
|
| 364 |
+
825,
|
| 365 |
+
402
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 3
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "Feature Identity. A stage that performs iterative estimation is different from one that computes a new level of representation at each block because it preserves the feature identity. They operate differently even if their structure and their final representations are equivalent, because of the way they treat intermediate representations. This is illustrated in Figure 2, where the iterative estimation stage, (b), is contrasted with a single classic block (a), and multiple classic blocks, (c). In the iterative estimation case (middle), all the blocks within the stage produce estimates of the same representation (indicated by having different shades of blue). Whereas, in a classical stage, (c), the intermediate representations would all be different (represented by different colors). ",
|
| 372 |
+
"bbox": [
|
| 373 |
+
173,
|
| 374 |
+
416,
|
| 375 |
+
825,
|
| 376 |
+
529
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 3
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "3.1 HIGHWAY AND RESIDUAL NETWORKS",
|
| 383 |
+
"text_level": 1,
|
| 384 |
+
"bbox": [
|
| 385 |
+
176,
|
| 386 |
+
546,
|
| 387 |
+
480,
|
| 388 |
+
560
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "Both Highway and Residual networks address the problem of training very deep architectures by improving the error flow via identity skip connections that allow units to copy their inputs on to the next layer unchanged. This design principle was originally introduced in Long Short-Term Memory (LSTM) recurrent networks (Hochreiter & Schmidhuber, 1997) and mathematically these architectures correspond to a simplified LSTM network, \"unrolled\" over time. ",
|
| 395 |
+
"bbox": [
|
| 396 |
+
174,
|
| 397 |
+
571,
|
| 398 |
+
825,
|
| 399 |
+
642
|
| 400 |
+
],
|
| 401 |
+
"page_idx": 3
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"type": "text",
|
| 405 |
+
"text": "In Highway Networks, for each unit there are two additional gating units, which control how much (typically non-linear) transformation is applied (transform gate $T$ ) and how much to just copy of the activation from the corresponding unit in the previous layer (carry gate $C$ ). Let $H ( \\mathbf { x } )$ be a nonlinear parametric function of the inputs, $\\mathbf { x }$ , (typically an affine projection followed by pointwise non-linearity). Then a traditional feed-forward network layer can be written as: ",
|
| 406 |
+
"bbox": [
|
| 407 |
+
173,
|
| 408 |
+
648,
|
| 409 |
+
825,
|
| 410 |
+
718
|
| 411 |
+
],
|
| 412 |
+
"page_idx": 3
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"type": "equation",
|
| 416 |
+
"img_path": "images/e171d3017f5492dad76c1bdd660ab028d91e8a9e54a0137f08553f7432daac5c.jpg",
|
| 417 |
+
"text": "$$\ny ( \\mathbf { x } ) = H ( \\mathbf { x } ) .\n$$",
|
| 418 |
+
"text_format": "latex",
|
| 419 |
+
"bbox": [
|
| 420 |
+
449,
|
| 421 |
+
724,
|
| 422 |
+
549,
|
| 423 |
+
742
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "By adding two additional units, $T ( \\mathbf { x } )$ and $C ( \\mathbf { x } )$ a Highway layer can be written as: ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
173,
|
| 432 |
+
747,
|
| 433 |
+
715,
|
| 434 |
+
763
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "equation",
|
| 440 |
+
"img_path": "images/ef8f6dbf275ef29d8048db17221e7ca1d1add87bc8b2224fa113a24676010b98.jpg",
|
| 441 |
+
"text": "$$\ny ( \\mathbf { x } ) = H ( \\mathbf { x } ) \\cdot T ( \\mathbf { x } ) + \\mathbf { x } \\cdot C ( \\mathbf { x } ) .\n$$",
|
| 442 |
+
"text_format": "latex",
|
| 443 |
+
"bbox": [
|
| 444 |
+
387,
|
| 445 |
+
770,
|
| 446 |
+
609,
|
| 447 |
+
787
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 3
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "text",
|
| 453 |
+
"text": "Usually this is further simplified by coupling the gates, i.e. setting $C ( \\mathbf { x } ) = 1 - T ( \\mathbf { x } )$ : ",
|
| 454 |
+
"bbox": [
|
| 455 |
+
173,
|
| 456 |
+
792,
|
| 457 |
+
736,
|
| 458 |
+
809
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 3
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "equation",
|
| 464 |
+
"img_path": "images/6dd460975ad552f47453c9afa0cf3e65ae141426c6db6ea0d1fc10cd2fd175db.jpg",
|
| 465 |
+
"text": "$$\ny ( \\mathbf { x } ) = H ( \\mathbf { x } ) \\cdot T ( \\mathbf { x } ) + \\mathbf { x } \\cdot ( 1 - T ( \\mathbf { x } ) ) .\n$$",
|
| 466 |
+
"text_format": "latex",
|
| 467 |
+
"bbox": [
|
| 468 |
+
367,
|
| 469 |
+
814,
|
| 470 |
+
630,
|
| 471 |
+
832
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 3
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "ResNets simplify the Highway networks approach by reformulating the desired transformation as the input plus a residual $F ( \\mathbf { x } )$ . The rationale behind this is that it is easier to optimize the residual form than the original function. For the extreme case where the desired function is the identity, this amounts to the trivial task of pushing the residual to zero: ",
|
| 478 |
+
"bbox": [
|
| 479 |
+
174,
|
| 480 |
+
845,
|
| 481 |
+
823,
|
| 482 |
+
901
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 3
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "equation",
|
| 488 |
+
"img_path": "images/479373c6321cc3baa7b7b54d87ca9e8db77d96512f60d1c5f632a634af3cde27.jpg",
|
| 489 |
+
"text": "$$\ny ( \\mathbf { x } ) = F ( \\mathbf { x } ) + \\mathbf { x } .\n$$",
|
| 490 |
+
"text_format": "latex",
|
| 491 |
+
"bbox": [
|
| 492 |
+
436,
|
| 493 |
+
907,
|
| 494 |
+
562,
|
| 495 |
+
925
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 3
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "As with Highway networks, Residual networks can be viewed as unfolded recurrent neural networks of the particular mathematical form (one with an identity self-connection) of an LSTM cell. This has been explicitly pointed out by Liao & Poggio (2016), who also argue that this could allow Residual networks to emulate recurrent processing in the visual cortex and thus adds to their biological plausibility. Setting $F ( \\mathbf { x } ) = T ( \\mathbf { x } ) [ H ( \\mathbf { x } ) - \\mathbf { x } ]$ converts Equation 5 to Equation 4 showing that both formulations differ only in the precise functional form for $F$ . Alternatively, Residual networks can be seen as a particular case of Highway networks where $C ( \\mathbf { x } ) = T ( \\mathbf { x } ) = \\mathbf { 1 }$ and are not learned. ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
173,
|
| 504 |
+
103,
|
| 505 |
+
825,
|
| 506 |
+
202
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 4
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "3.2 DERIVING RESIDUAL NETWORKS ",
|
| 513 |
+
"text_level": 1,
|
| 514 |
+
"bbox": [
|
| 515 |
+
176,
|
| 516 |
+
218,
|
| 517 |
+
447,
|
| 518 |
+
232
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 4
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "text",
|
| 524 |
+
"text": "Equation 1 can be used to directly derive the ResNet equation (Equation 5). First, it follows that the expected difference between outputs of two consecutive blocks in a stage is zero: ",
|
| 525 |
+
"bbox": [
|
| 526 |
+
173,
|
| 527 |
+
243,
|
| 528 |
+
823,
|
| 529 |
+
272
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 4
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "equation",
|
| 535 |
+
"img_path": "images/6e2163ae6da6e2a2eeb8ce02321b1b2163fd42a1d8efd68de3e412db395c74be.jpg",
|
| 536 |
+
"text": "$$\n\\begin{array} { r } { \\mathbb { E } [ a _ { i } ^ { k } - A _ { i } ] - \\mathbb { E } [ a _ { i } ^ { k - 1 } - A _ { i } ] = 0 } \\\\ { \\mathbb { E } [ a _ { i } ^ { k } - a _ { i } ^ { k - 1 } ] = 0 . } \\end{array}\n$$",
|
| 537 |
+
"text_format": "latex",
|
| 538 |
+
"bbox": [
|
| 539 |
+
387,
|
| 540 |
+
277,
|
| 541 |
+
611,
|
| 542 |
+
321
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 4
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "If we write feature $a _ { i } ^ { k }$ as a combination of $a _ { i } ^ { k - 1 }$ and a residual $F _ { i }$ , it follows from Equation 7 that the residual has to be zero-mean: ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
173,
|
| 551 |
+
325,
|
| 552 |
+
825,
|
| 553 |
+
354
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "equation",
|
| 559 |
+
"img_path": "images/a4ae41a5e42b4b09e4dee5f0f0eb0b56989ca1a4bc45d2b71f09917aacda6fc6.jpg",
|
| 560 |
+
"text": "$$\n\\begin{array} { c } { { a _ { i } ^ { k } = a _ { i } ^ { k - 1 } + F _ { i } } } \\\\ { { \\implies \\mathbb { E } [ F _ { i } ] = 0 . } } \\end{array}\n$$",
|
| 561 |
+
"text_format": "latex",
|
| 562 |
+
"bbox": [
|
| 563 |
+
415,
|
| 564 |
+
358,
|
| 565 |
+
584,
|
| 566 |
+
398
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 4
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"text": "Therefore, if the residual block $F$ has a zero mean over the training set, then Equation 1 holds and it can be said to maintain feature identity. Note that this is a reasonable assumption, especially when using batch normalization. ",
|
| 573 |
+
"bbox": [
|
| 574 |
+
173,
|
| 575 |
+
401,
|
| 576 |
+
825,
|
| 577 |
+
444
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 4
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "text",
|
| 583 |
+
"text": "3.3 DERIVING HIGHWAY NETWORKS ",
|
| 584 |
+
"text_level": 1,
|
| 585 |
+
"bbox": [
|
| 586 |
+
176,
|
| 587 |
+
460,
|
| 588 |
+
444,
|
| 589 |
+
476
|
| 590 |
+
],
|
| 591 |
+
"page_idx": 4
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"type": "text",
|
| 595 |
+
"text": "The coupled Highway formula (Equation 4) can be directly derived as an alternative way of ensuring Equation 1 if we assume a $H _ { i }$ to be a new estimate of $A _ { i }$ . Highway layers then result from the optimal way to linearly combine the former estimate $a _ { i } ^ { k - 1 }$ with $H _ { i }$ such that the resulting $a _ { i } ^ { k }$ is a minimum variance estimate of $A _ { i }$ , i.e. requiring $\\mathbb { E } [ a _ { i } ^ { k } - A _ { i } ] = 0$ and that $\\mathrm { V a r } [ a _ { i } ^ { k } - A _ { i } ]$ is minimal. ",
|
| 596 |
+
"bbox": [
|
| 597 |
+
173,
|
| 598 |
+
486,
|
| 599 |
+
825,
|
| 600 |
+
547
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 4
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "Let $\\alpha _ { 1 } = \\mathrm { V a r } [ a _ { i } ^ { k } - A _ { i } ] - \\mathrm { C o v } [ a _ { i } ^ { k } - A _ { i } , a _ { i } ^ { k } - H _ { i } ]$ and $\\alpha _ { 2 } = \\mathrm { V a r } [ H _ { i } - A _ { i } ] - \\mathrm { C o v } [ a _ { i } ^ { k } - A _ { i } , a _ { i } ^ { k } - H _ { i } ]$ , then the optimal linear way of combining them is then given by the following estimator (see Section A.1 for derivation): ",
|
| 607 |
+
"bbox": [
|
| 608 |
+
174,
|
| 609 |
+
553,
|
| 610 |
+
825,
|
| 611 |
+
595
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 4
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "equation",
|
| 617 |
+
"img_path": "images/e94fd4ef95f7bcf2459555b8dfdf54df2c103453eecc0fac061d2975c0485198.jpg",
|
| 618 |
+
"text": "$$\na _ { i } ^ { k + 1 } = \\frac { \\alpha _ { 2 } } { \\alpha _ { 1 } + \\alpha _ { 2 } } a _ { i } ^ { k } + \\frac { \\alpha _ { 1 } } { \\alpha _ { 1 } + \\alpha _ { 2 } } H _ { i } .\n$$",
|
| 619 |
+
"text_format": "latex",
|
| 620 |
+
"bbox": [
|
| 621 |
+
380,
|
| 622 |
+
594,
|
| 623 |
+
619,
|
| 624 |
+
623
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 4
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "If we use a neural network to compute $H _ { i }$ and another one to compute $\\begin{array} { r } { T _ { i } = \\frac { \\alpha _ { 1 } } { \\alpha _ { 1 } + \\alpha _ { 2 } } } \\end{array}$ , then we recover the Highway formula: ",
|
| 631 |
+
"bbox": [
|
| 632 |
+
173,
|
| 633 |
+
632,
|
| 634 |
+
823,
|
| 635 |
+
661
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 4
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "equation",
|
| 641 |
+
"img_path": "images/da542c1142b547fae25590bc1459c1aed238fc1f2a50d0a81b8fe7b621d478d2.jpg",
|
| 642 |
+
"text": "$$\na _ { i } ^ { k } = H _ { i } \\cdot T _ { i } + a _ { i } ^ { k - 1 } \\cdot ( 1 - T _ { i } ) ,\n$$",
|
| 643 |
+
"text_format": "latex",
|
| 644 |
+
"bbox": [
|
| 645 |
+
392,
|
| 646 |
+
660,
|
| 647 |
+
604,
|
| 648 |
+
680
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 4
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "where $H _ { i }$ and $T _ { i }$ are both functions of the previous layer activations $\\pmb { a } ^ { k - 1 }$ . ",
|
| 655 |
+
"bbox": [
|
| 656 |
+
174,
|
| 657 |
+
684,
|
| 658 |
+
661,
|
| 659 |
+
699
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 4
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "4 DISCUSSION ",
|
| 666 |
+
"text_level": 1,
|
| 667 |
+
"bbox": [
|
| 668 |
+
174,
|
| 669 |
+
718,
|
| 670 |
+
310,
|
| 671 |
+
734
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 4
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "4.1 IMPLICATIONS FOR HIGHWAY NETWORKS ",
|
| 678 |
+
"text_level": 1,
|
| 679 |
+
"bbox": [
|
| 680 |
+
174,
|
| 681 |
+
750,
|
| 682 |
+
506,
|
| 683 |
+
763
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 4
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "In Highway networks with coupled gates the mixing coefficients always sum to one. This ensures that the expectation of the new estimate will always be correct (cf. Equation 14). The precise value of mixing will only determine the variance of the new estimate. We can bound this variance to be less or equal to the variance of the previous layer by restricting both mixing coefficients to be positive. In Highway networks this is done by using the logistic sigmoid activation function for the transform gate $T _ { i }$ . This restriction is equivalent to the assumption of $\\alpha _ { 1 }$ and $\\alpha _ { 2 }$ having the same sign. This assumption holds, for example, if the error of the new estimate $H _ { i } - A _ { i }$ is independent of the old $a _ { i } ^ { k - 1 } - A _ { i }$ . Because in that case their covariance is zero and thus both alphas are positive. ",
|
| 690 |
+
"bbox": [
|
| 691 |
+
173,
|
| 692 |
+
775,
|
| 693 |
+
825,
|
| 694 |
+
888
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 4
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "Using the logistic sigmoid as activation function for the transform gate further means that the preactivation of $T _ { i }$ implicitly estimates $\\log \\left( { \\frac { \\alpha _ { 2 } } { \\alpha _ { 1 } } } \\right)$ . This is easy to see because the logistic sigmoid of that ",
|
| 701 |
+
"bbox": [
|
| 702 |
+
173,
|
| 703 |
+
895,
|
| 704 |
+
823,
|
| 705 |
+
926
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 4
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "image",
|
| 711 |
+
"img_path": "images/09b7434de4705a1639d5c3d95d17608800a3f37dc81b0d8ddeef20cf504d2412.jpg",
|
| 712 |
+
"image_caption": [
|
| 713 |
+
"Figure 3: Experimental corroboration of Equation 1. The average estimation error – an empirical estimate of the LHS in Equation $1 -$ for each block of each stage ( $\\mathbf { \\bar { X } }$ -axis). It stays close to zero in all stages of a 50-layer ResNet trained on the ILSVRC-2015 dataset. The standard deviation of the estimation error decreases as depth increases in each stage (left to right), indicating iterative refinement of the representations. "
|
| 714 |
+
],
|
| 715 |
+
"image_footnote": [],
|
| 716 |
+
"bbox": [
|
| 717 |
+
214,
|
| 718 |
+
116,
|
| 719 |
+
764,
|
| 720 |
+
241
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 5
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "term is ",
|
| 727 |
+
"bbox": [
|
| 728 |
+
173,
|
| 729 |
+
363,
|
| 730 |
+
222,
|
| 731 |
+
376
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 5
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "equation",
|
| 737 |
+
"img_path": "images/c72144e5086e77ae5fce89ceed2fef5daa630e2e165ddd56e77bd38570e9c8e4.jpg",
|
| 738 |
+
"text": "$$\n\\frac { 1 } { 1 + e ^ { \\log ( \\frac { \\alpha _ { 2 } } { \\alpha _ { 1 } } ) } } = \\frac { 1 } { 1 + \\frac { \\alpha _ { 2 } } { \\alpha _ { 1 } } } = \\frac { \\alpha _ { 1 } } { \\alpha _ { 1 } + \\alpha _ { 2 } } .\n$$",
|
| 739 |
+
"text_format": "latex",
|
| 740 |
+
"bbox": [
|
| 741 |
+
375,
|
| 742 |
+
372,
|
| 743 |
+
622,
|
| 744 |
+
409
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 5
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "text",
|
| 750 |
+
"text": "For the simple case of independent estimates $( \\mathrm { C o v } [ a _ { i } ^ { k } - A _ { i } , a _ { i } ^ { k } - H _ { i } ] = 0 )$ ), this gives us another way of understanding the transform gate bias: It controls our initial belief in the variance of the layers estimate as compared to the previous one. A low bias means that the layers on average produce a high variance estimate, and should thus only contribute little, which seems a reasonable assumption for initialization. ",
|
| 751 |
+
"bbox": [
|
| 752 |
+
174,
|
| 753 |
+
414,
|
| 754 |
+
825,
|
| 755 |
+
484
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 5
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"text": "4.2 EXPERIMENTAL CORROBORATION OF ITERATIVE ESTIMATION VIEW ",
|
| 762 |
+
"text_level": 1,
|
| 763 |
+
"bbox": [
|
| 764 |
+
176,
|
| 765 |
+
503,
|
| 766 |
+
689,
|
| 767 |
+
518
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 5
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "The primary prediction of the iterative estimation view is that the estimation error for Highway or Residual blocks within the same stage should be zero in expectation. To empirically test this claim, we extract the intermediate layer outputs for 5000 validation set images using the 50-layer ResNet trained on the ILSVRC-2015 dataset from He et al. (2015). These are then used to compute the empirical mean and standard deviation of the estimation error over the validation subset, for all blocks in the four Residual stages in the network. Finally the mean of the empirical mean and standard deviation is computed over the three spatial dimensions. ",
|
| 774 |
+
"bbox": [
|
| 775 |
+
174,
|
| 776 |
+
529,
|
| 777 |
+
825,
|
| 778 |
+
627
|
| 779 |
+
],
|
| 780 |
+
"page_idx": 5
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"type": "text",
|
| 784 |
+
"text": "Figure 3 shows that for the first three stages, the mean estimation error is indeed close to zero. This indicates that it is valid to interpret the role of Residual blocks in this network as that of iteratively refining a representation. Moreover, in each stage the standard deviation of the estimation error decreases over successive blocks, indicating the convergence of the refinement procedure. We note that stage four (with three blocks) appears to be underestimating the representation values, indicating a probable weak link in the architecture. ",
|
| 785 |
+
"bbox": [
|
| 786 |
+
174,
|
| 787 |
+
635,
|
| 788 |
+
825,
|
| 789 |
+
718
|
| 790 |
+
],
|
| 791 |
+
"page_idx": 5
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"type": "text",
|
| 795 |
+
"text": "4.3 VISUAL EVIDENCE & STAGE-WISE ESTIMATION OF FEATURES ",
|
| 796 |
+
"text_level": 1,
|
| 797 |
+
"bbox": [
|
| 798 |
+
176,
|
| 799 |
+
736,
|
| 800 |
+
647,
|
| 801 |
+
751
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 5
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "ResNets (He et al., 2015) and many other derived architectures share some common characteristics: They are divided into stages of Residual blocks that share the same dimensionality. In between these stages the input dimensionality changes, typically by down-sampling and an increase in the number of channels. These stages typically also increase in length: the early stages consist of fewer layers compared to later ones. ",
|
| 808 |
+
"bbox": [
|
| 809 |
+
174,
|
| 810 |
+
762,
|
| 811 |
+
825,
|
| 812 |
+
833
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 5
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "We can now interpret these design choices from an iterative estimation point of view. From this perspective the level of representation stays the same within each stage, through the use of identity shortcut connections. Between stages, the level of representation is changed by the use of a projection to change dimensionality. This means that we expect the type of features that are detected to be very similar within a stage and jump in abstraction between stages. This view also suggests that the first few stages can be shorter, since low level representations tend to be relatively simple and need little iterative refinement. The features of later stages on the other hand are likely complex with numerous inter-dependencies and therefore benefit more from iterative refinement. ",
|
| 819 |
+
"bbox": [
|
| 820 |
+
174,
|
| 821 |
+
839,
|
| 822 |
+
825,
|
| 823 |
+
924
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 5
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "image",
|
| 829 |
+
"img_path": "images/3af1c9d6b4491436b6e6b02980dc723d1e9ab8d5fb1fe79d601e16612c6ecbac.jpg",
|
| 830 |
+
"image_caption": [
|
| 831 |
+
"Figure 4: Feature visualization from Chu et al. (2017), reproduced with kind permission of the authors. It shows how the response of a single filter (unit) evolves over the three blocks (shown from left to right) of stage 1 in a 50-layer ResNet trained on ImageNet. On the left of each visualization are the top 9 patches from the ImageNet validation set that maximally activated that filter. To the right the corresponding guided backpropagation (Springenberg et al., 2014) visualizations are shown. "
|
| 832 |
+
],
|
| 833 |
+
"image_footnote": [],
|
| 834 |
+
"bbox": [
|
| 835 |
+
174,
|
| 836 |
+
101,
|
| 837 |
+
821,
|
| 838 |
+
176
|
| 839 |
+
],
|
| 840 |
+
"page_idx": 6
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"type": "text",
|
| 844 |
+
"text": "",
|
| 845 |
+
"bbox": [
|
| 846 |
+
174,
|
| 847 |
+
284,
|
| 848 |
+
820,
|
| 849 |
+
311
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 6
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "Many visualization studies (such as those by Zeiler & Fergus (2014)) have examined the activities in trained convolutional networks and found evidence supporting the representation view. However, these studies were conducted on networks not designed for iterative estimation. The interpretation above paints a different picture for networks which learn unrolled iterative estimation. In these networks, we should observe stages and not layers corresponding to levels of representation. ",
|
| 856 |
+
"bbox": [
|
| 857 |
+
174,
|
| 858 |
+
319,
|
| 859 |
+
825,
|
| 860 |
+
388
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 6
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "Indeed, visualization of Residual network features supports the iterative estimation view. In Figure 4 we reproduce visualizations from a study by Chu et al. (2017) who observe: “[. . . ] residual layers of the same dimensionality learn features that get refined and sharpened”. These visualizations show how the response of a single filter changes over three Residual blocks within the same stage of a 50-layer Residual network trained for image classification. Note that the filter appears to refine its response by including surrounding context, rather than changing it across blocks in the same stage. In the first block, the top nine activating patches for the filter include three light sources and six specular highlights. In later blocks, through the incorporation of spatial context, eight out of nine maximally activating patches are specular highlights. Similar refinement behavior is observed throughout the different stages of the network. ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
174,
|
| 869 |
+
396,
|
| 870 |
+
825,
|
| 871 |
+
535
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 6
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "Another finding in line with this implication of the iterative estimation view is that in some cases sharing weights of the Residual blocks within a stage doesn’t deteriorate performance much (Liao & Poggio, 2016). Similarly Lu & Renals (2015) shared the weights of the transform and carry gates of a thin and deep highway network, while still achieving better performance than both normal deep neural networks and Residual networks. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
174,
|
| 880 |
+
541,
|
| 881 |
+
825,
|
| 882 |
+
611
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 6
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "4.4 REVISITING EVIDENCE AGAINST THE REPRESENTATION VIEW ",
|
| 889 |
+
"text_level": 1,
|
| 890 |
+
"bbox": [
|
| 891 |
+
183,
|
| 892 |
+
628,
|
| 893 |
+
640,
|
| 894 |
+
643
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 6
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "text",
|
| 900 |
+
"text": "Staying Close to the Inputs. When iteratively re-estimating a variable, staying close to the old value should be a more common operation than changing it significantly. This is the reason why the ResNet formulation makes sense: learning the identity is hard and it is needed frequently. It also explains sparse transform gate activity in trained Highway networks: These networks learn to dynamically and selectively update individual features, while keeping most of the representation intact. ",
|
| 901 |
+
"bbox": [
|
| 902 |
+
174,
|
| 903 |
+
655,
|
| 904 |
+
825,
|
| 905 |
+
738
|
| 906 |
+
],
|
| 907 |
+
"page_idx": 6
|
| 908 |
+
},
|
| 909 |
+
{
|
| 910 |
+
"type": "text",
|
| 911 |
+
"text": "Lesioning. Another implication of the iteration view is that processing in layers is incremental and somewhat interchangeable. Each layer (apart from the first) refines an already reasonable estimate of the representation. It follows that removing layers, like in the lesioning experiments, should have only a mild effect on the final result because doing so does not change the overall representation the next layer receives, only its quality. The following layer can still perform mostly the same operation, even with a somewhat noisy input. Layer dropout (Huang et al., 2016b) amplifies this effect by explicitly training the network to work with a variable number of iterations. By dropping random layers it further penalizes iterations relying on each other, which could be another explanation for the regularization effect of the technique. ",
|
| 912 |
+
"bbox": [
|
| 913 |
+
174,
|
| 914 |
+
753,
|
| 915 |
+
825,
|
| 916 |
+
880
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 6
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "text",
|
| 922 |
+
"text": "Shuffling. The layers within a stage should also be interchangeable to a certain degree, because they all work with the same input and output representations. Of course, this interchangeability is not without limitations. The network could learn to depend on a specific order of refinements, which would be disturbed by shuffling and lesioning. But we can expect these effects to be moderate in many cases, which is indeed what has been reported in the literature. ",
|
| 923 |
+
"bbox": [
|
| 924 |
+
173,
|
| 925 |
+
895,
|
| 926 |
+
821,
|
| 927 |
+
924
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 6
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "table",
|
| 933 |
+
"img_path": "images/53aaba70039d1f7096c1c25a78b2f216d43501d996430e0588a1c80cc9c11a0c.jpg",
|
| 934 |
+
"table_caption": [
|
| 935 |
+
"Table 1: Comparison of several Highway network and Residual network variants. "
|
| 936 |
+
],
|
| 937 |
+
"table_footnote": [
|
| 938 |
+
"(a) Comparing of various variants of the Highway formulation for character-aware neural language models (Kim et al., 2015). "
|
| 939 |
+
],
|
| 940 |
+
"table_body": "<table><tr><td>Variant</td><td>Functional Form</td><td>Perplexity</td></tr><tr><td>Plain</td><td>H(x)</td><td>92.60</td></tr><tr><td>Residual</td><td>H(x)+x</td><td>91.32</td></tr><tr><td>T-Only</td><td>H(x):T(x) + x</td><td>82.94</td></tr><tr><td>C-Only</td><td>H(x)+x.C(x)</td><td>79.15</td></tr><tr><td>Coupled</td><td>H(x):T(x)+x·(1-T(x))</td><td>79.13</td></tr><tr><td>Full</td><td>H(x)·T(x)+x:C(x)</td><td>79.09</td></tr></table>",
|
| 941 |
+
"bbox": [
|
| 942 |
+
173,
|
| 943 |
+
101,
|
| 944 |
+
560,
|
| 945 |
+
214
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 7
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "table",
|
| 951 |
+
"img_path": "images/88161ec5d0844a1b1564431bb53489dd9ba6ca321d3c8ced13c3a5aee03a0353.jpg",
|
| 952 |
+
"table_caption": [],
|
| 953 |
+
"table_footnote": [
|
| 954 |
+
"(b) Comparing ILSVRC-2012 top5 classification error. Mean and std over 3 runs. "
|
| 955 |
+
],
|
| 956 |
+
"table_body": "<table><tr><td>Variant</td><td>Top5 Error</td></tr><tr><td>Highway</td><td>10.03 ± 0.17</td></tr><tr><td>Highway-Full</td><td>10.21 ± 0.03</td></tr><tr><td>Resnet</td><td>9.40 ± 0.18</td></tr><tr><td>Highway + BN</td><td>7.53 ± 0.05</td></tr><tr><td>Highway-Full + BN</td><td>7.29 ± 0.11</td></tr><tr><td>Resnet+BN</td><td>7.17 ± 0.14</td></tr></table>",
|
| 957 |
+
"bbox": [
|
| 958 |
+
581,
|
| 959 |
+
101,
|
| 960 |
+
841,
|
| 961 |
+
214
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 7
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "",
|
| 968 |
+
"bbox": [
|
| 969 |
+
174,
|
| 970 |
+
297,
|
| 971 |
+
825,
|
| 972 |
+
339
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 7
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "5 COMPARATIVE CASE STUDIES ",
|
| 979 |
+
"text_level": 1,
|
| 980 |
+
"bbox": [
|
| 981 |
+
176,
|
| 982 |
+
359,
|
| 983 |
+
459,
|
| 984 |
+
376
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 7
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "The preceding sections show that we can construct both Highway and Residual architectures mathematically grounded in learning unrolled iterative estimation. The common feature between these architectures is that they preserve feature identities, and the primary difference is that they have different biases towards switching feature identities. Unfortunately, since our current understanding of the computations required to solve complex problems is limited, it is extremely hard to say a priori which architecture may be more suitable for which type of problems. Therefore, in this section we perform two case studies comparing and contrasting their behavior experimentally. The studies are each based on applications for which Residual and Highway layers respectively have been effective. ",
|
| 991 |
+
"bbox": [
|
| 992 |
+
174,
|
| 993 |
+
391,
|
| 994 |
+
825,
|
| 995 |
+
502
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 7
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "5.1 IMAGE CLASSIFICATION ",
|
| 1002 |
+
"text_level": 1,
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
174,
|
| 1005 |
+
520,
|
| 1006 |
+
383,
|
| 1007 |
+
534
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 7
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "Deep Residual networks outperformed all other entries at the 2016 ImageNet classification challenge. In this study we compare the performance of 50-layer convolutional Highway and Residual networks for ImageNet classification. Our aim is not to examine the importance of depth for this task— shallower networks have already outperformed deep Residual networks on all original Residual network benchmarks (Huang et al., 2016a; Szegedy et al., 2016). Instead, our goal is to fairly compare the two architectures, and test the following claims regarding deep convolutional Highway networks (He et al., 2015; 2016; Veit et al., 2016): ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
174,
|
| 1016 |
+
545,
|
| 1017 |
+
826,
|
| 1018 |
+
643
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 7
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "1. They are harder to train, leading to stalled training or poor results. \n2. They require extensive tuning of the initial bias, and even then produce much worse results compared to Residual networks. \n3. They are wasteful in terms of parameters since they utilize extra learned gates, doubling the total parameters for the same number of units compared to a Residual layer. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
210,
|
| 1027 |
+
655,
|
| 1028 |
+
825,
|
| 1029 |
+
732
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 7
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "We train a 50-layer convolutional Highway network based on the 50-layer Residual network from He et al. (2015). The design of the two networks are identical (including use of batch normalization (BN) after every convolution operation), except that unlike Residual blocks, the Highway blocks use two sets of layers to learn $H$ and $T$ and then combine them using the coupled Highway formulation. We train two slight variations of the Highway network: Highway, in which $H$ has the same design as in a Residual block before addition i.e. Conv-BN-ReLU-Conv-BN-ReLU-Conv-BN, and Highway-Full, in which an additional third ReLU operation is added. The design of $T$ is Conv-BN-ReLU-Conv-BN-ReLU-Conv-BN-Sigmoid. As proposed initially for Highway layers, both $H$ and $T$ are learned using the same receptive fields and number of parameters. The transform gate biases are set to $- 1$ at the start of training. For fair comparison, the number of feature maps throughout the Highway network is reduced such that the total number of parameters is close to the Residual network. The training algorithm and learning rate schedule are kept the same as those used for the Residual network. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
173,
|
| 1038 |
+
743,
|
| 1039 |
+
825,
|
| 1040 |
+
922
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 7
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "The plots in Figure 5a show that the Residual network fits the data better—its final training loss is lower than the Highway network. The final performance of both networks on the validation set (see Table 1b) is very similar, with the Residual network producing a slightly better top-5 classification error of $7 . 1 7 \\%$ vs. $7 . 5 3 \\%$ for the Highway network. The Highway-Full network produces even closer results with a mean error of $7 . 2 9 \\%$ . These results contradict claims 1 and 2 above, since the Highway networks are easy to train without requiring any bias tuning. However, there is some support for claim 3 since the Highway network appears to slightly underfit compared to the Residual network, suggesting lower capacity for the same number of parameters. ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
174,
|
| 1049 |
+
103,
|
| 1050 |
+
825,
|
| 1051 |
+
215
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 8
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "Importance of Expressive Gating. The mismatch between the results above and claims 1 and 2 made by He et al. (2016) can be explained based on the importance of having sufficiently expressive transform gates. For experiments with Highway networks (which they refer to as Residual networks with exclusive gating), He et al. (2016) used $1 \\times 1$ convolutions for the transform gate, instead of having the same receptive fields for the gates as the primary transformation $( H )$ , as done by Srivastava et al. (2015a). This change in design appears to be the primary cause of instabilities in learning since the gates can no longer function effectively. Therefore, it is important to use equally expressive transformations for $H$ and $T$ in Highway networks. ",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
174,
|
| 1060 |
+
231,
|
| 1061 |
+
825,
|
| 1062 |
+
342
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 8
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Role of Batch Normalization. Since both architectures have built-in ease of optimization compared to plain networks, it is interesting to investigate the necessity of batch normalization for training these networks. Our derivation in Section 3.2 suggest that BN in Residual networks could take the role of an inductive bias towards iterative estimation by keeping the expected mean of the residual zero (cf. Equation 9). To investigate its role we train the networks above without any batch normalization. The resulting training curves are shown in Figure 5b of the supplementary. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
174,
|
| 1071 |
+
358,
|
| 1072 |
+
825,
|
| 1073 |
+
443
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 8
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "We find that without BN both networks reach an even lower training error than before while performing worse on the validation set indicating increased overfitting for both. This shows that BN is not necessary for training these networks and does not speed up learning. Interestingly, the effect is more pronounced for the Highway network, which now fits the data better than the ResNet. This contradicts claim 3, since a Highway network with the same number of parameters as a Residual network demonstrates slightly higher capacity. On the other hand both networks produce a higher validation error— $1 0 . 0 3 \\%$ and $9 . 4 \\bar { 0 } \\%$ for the Highway and Residual network respectively—indicating a clear case of overfitting. This means that batch normalization provides regularization benefits that can’t easily be explained by either improved optimization nor by the inductive bias for Residual networks. ",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
174,
|
| 1082 |
+
449,
|
| 1083 |
+
825,
|
| 1084 |
+
588
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 8
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "text",
|
| 1090 |
+
"text": "5.2 LANGUAGE MODELING ",
|
| 1091 |
+
"text_level": 1,
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
176,
|
| 1094 |
+
606,
|
| 1095 |
+
377,
|
| 1096 |
+
621
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 8
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "Next we compare different functional forms (or variants) of the Highway network formulation for the case of character-aware language modeling. Kim et al. (2015) have shown that utilizing a few Highway fully connected layers instead of conventional plain layers improves model performance for a variety of languages. The architecture consists of a stack of convolutional layers followed by Highway layers and then an LSTM layer which predicts the next word based on the history. Similar architectures have since been utilized for obtaining substantial improvements for large-scale language modeling (Jozefowicz et al., 2016) and character level machine translation (Lee et al., 2016). Highway layers with coupled gates have been used in all these studies. ",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
174,
|
| 1105 |
+
632,
|
| 1106 |
+
825,
|
| 1107 |
+
744
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 8
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "Only two to four Highway layers were necessary to obtain significant modeling improvements in the studies above. Thus, it is reasonable to assume that the central advantage of using Highway layers for this task is not easing of credit assignment over depth, but an improved modeling bias. To test how well Residual and other variants of Highway networks perform, we compare several language models trained on the Penn Treebank dataset using the same setup and code provided by Kim et al. (2015). We use the LSTM-Char-Large model, only changing the two Highway layers to different variants. The following variants are tested: ",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
174,
|
| 1116 |
+
751,
|
| 1117 |
+
825,
|
| 1118 |
+
848
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 8
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "Full The original Highway formulation based on the LSTM cell. We note that this variant uses more parameters than the others, since changing the layer size to reduce parameters would affect the rest of the network architecture as well. ",
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
174,
|
| 1127 |
+
862,
|
| 1128 |
+
825,
|
| 1129 |
+
904
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 8
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "Coupled The most commonly used Highway variant, derived in Section 3.3. ",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
173,
|
| 1138 |
+
909,
|
| 1139 |
+
678,
|
| 1140 |
+
924
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 8
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "C-Only A Highway variant with a carry gate but no transform gate (always set to one). ",
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
174,
|
| 1149 |
+
103,
|
| 1150 |
+
745,
|
| 1151 |
+
118
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 9
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "T-Only A Highway variant with a transform gate but no carry gate (always set to one). ",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
174,
|
| 1160 |
+
122,
|
| 1161 |
+
743,
|
| 1162 |
+
137
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 9
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "text",
|
| 1168 |
+
"text": "Residual The Residual form from He et al. (2015), in which both transform and carry gate are always one. For this variant we use four layers instead of two, to match the amount of computation/parameters of the other variants. ",
|
| 1169 |
+
"bbox": [
|
| 1170 |
+
173,
|
| 1171 |
+
142,
|
| 1172 |
+
825,
|
| 1173 |
+
184
|
| 1174 |
+
],
|
| 1175 |
+
"page_idx": 9
|
| 1176 |
+
},
|
| 1177 |
+
{
|
| 1178 |
+
"type": "text",
|
| 1179 |
+
"text": "The test set perplexity of each model is shown in Table 1a. We find that the the Full, Coupled and C-Only variants have similar performance, better than the T-Only variant and substantially better than the Residual variant. The Residual variant results in performance close to that obtained by using a single plain layer, even though four Residual layers are used. Learned gating of the identity connection is crucial for improving performance for this task. ",
|
| 1180 |
+
"bbox": [
|
| 1181 |
+
174,
|
| 1182 |
+
196,
|
| 1183 |
+
825,
|
| 1184 |
+
267
|
| 1185 |
+
],
|
| 1186 |
+
"page_idx": 9
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"type": "text",
|
| 1190 |
+
"text": "Recall that the Highway layers transform character-aware representations before feeding them into an LSTM layer. Thus the non-contextual word-level representations resulting from the convolutional layers are transformed into representations better suited for contextual language modeling. Since it is unlikely that the entire representation needs to change completely, this setting fits well with the iterative estimation perspective. ",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
174,
|
| 1193 |
+
275,
|
| 1194 |
+
825,
|
| 1195 |
+
344
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 9
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "Interestingly, Table 1a shows a significant advantage for all variants with a multiplicative gate on the inputs. These results suggest that in this setting it is crucial to dynamically replace parts of the input representation. Some features need to be changed drastically conditioned on other detected features such as word type while other features need to be retained. As a result, even though Residual networks are compatible with iterative estimation, they may not be the best choice for tasks where mixing adaptive feature transform/replacement and reuse is required. ",
|
| 1202 |
+
"bbox": [
|
| 1203 |
+
174,
|
| 1204 |
+
351,
|
| 1205 |
+
825,
|
| 1206 |
+
435
|
| 1207 |
+
],
|
| 1208 |
+
"page_idx": 9
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"type": "text",
|
| 1212 |
+
"text": "6 CONCLUSION ",
|
| 1213 |
+
"text_level": 1,
|
| 1214 |
+
"bbox": [
|
| 1215 |
+
174,
|
| 1216 |
+
455,
|
| 1217 |
+
318,
|
| 1218 |
+
472
|
| 1219 |
+
],
|
| 1220 |
+
"page_idx": 9
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"type": "text",
|
| 1224 |
+
"text": "This paper offers a new perspective on Highway and Residual networks as performing unrolled iterative estimation. As an extension of the popular representation view, it stands in contrast to the optimization perspective from which these architectures have originally been introduced. According to the new view, successive layers (within a stage) cooperate to compute a single level of representation. Therefore, the first layer already computes a rough estimate of that representation, which is then iteratively refined by the successive layers. Unlike layers in a conventional neural network, which each compute a new representation, these layers therefore preserve feature identity. ",
|
| 1225 |
+
"bbox": [
|
| 1226 |
+
174,
|
| 1227 |
+
487,
|
| 1228 |
+
825,
|
| 1229 |
+
585
|
| 1230 |
+
],
|
| 1231 |
+
"page_idx": 9
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"type": "text",
|
| 1235 |
+
"text": "We have further shown that both Residual and Highway networks can be directly derived from this new perspective. This offers a unified theory from which these architectures can be understood as two approaches to the same problem. This view further provides a framework from which to understand several surprising recent findings like resilience to lesioning, benefits of layer dropout, and the mild negative effects of layer reshuffling. Together with the derivations these results serve as compelling evidence for the validity of our new perspective. ",
|
| 1236 |
+
"bbox": [
|
| 1237 |
+
174,
|
| 1238 |
+
592,
|
| 1239 |
+
825,
|
| 1240 |
+
675
|
| 1241 |
+
],
|
| 1242 |
+
"page_idx": 9
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"type": "text",
|
| 1246 |
+
"text": "Motivated by their conceptual similarities we set out to compare Highway and Residual networks. In preliminary experiments we found that they give very similar results for networks of equal size, thus refuting some claims that Highway networks would need more parameters, or that any form of gating impairs the performance of Residual networks. In another example, we found non-gated identity skip-connections to perform significantly worse, and offered a possible explanation: If the task requires dynamically replacing individual features, then the use of gating is beneficial. ",
|
| 1247 |
+
"bbox": [
|
| 1248 |
+
174,
|
| 1249 |
+
681,
|
| 1250 |
+
825,
|
| 1251 |
+
766
|
| 1252 |
+
],
|
| 1253 |
+
"page_idx": 9
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"type": "text",
|
| 1257 |
+
"text": "The preliminary evidence presented in this report is meant as a starting point for further investigation. We hope that the unrolled iterative estimation perspective will provide valuable intuitions to help guide research into understanding, improving and possibly combining these exciting techniques. ",
|
| 1258 |
+
"bbox": [
|
| 1259 |
+
174,
|
| 1260 |
+
773,
|
| 1261 |
+
825,
|
| 1262 |
+
815
|
| 1263 |
+
],
|
| 1264 |
+
"page_idx": 9
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"type": "text",
|
| 1268 |
+
"text": "ACKNOWLEDGEMENTS ",
|
| 1269 |
+
"text_level": 1,
|
| 1270 |
+
"bbox": [
|
| 1271 |
+
176,
|
| 1272 |
+
837,
|
| 1273 |
+
367,
|
| 1274 |
+
852
|
| 1275 |
+
],
|
| 1276 |
+
"page_idx": 9
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"type": "text",
|
| 1280 |
+
"text": "The authors wish to thank Faustino Gomez, Bas Steunebrink, Jonathan Masci, Sjoerd van Steenkiste and Christian Osendorfer for their feedback and support. We are grateful to NVIDIA Corporation for providing us a DGX-1 as part of the Pioneers of AI Research award. This research was supported by the EU project “INPUT” (H2020-ICT-2015 grant no. 687795). ",
|
| 1281 |
+
"bbox": [
|
| 1282 |
+
176,
|
| 1283 |
+
867,
|
| 1284 |
+
825,
|
| 1285 |
+
924
|
| 1286 |
+
],
|
| 1287 |
+
"page_idx": 9
|
| 1288 |
+
},
|
| 1289 |
+
{
|
| 1290 |
+
"type": "text",
|
| 1291 |
+
"text": "REFERENCES \nAbdi, Masoud and Nahavandi, Saeid. Multi-Residual Networks. arXiv:1609.05672 [cs], September 2016. \nChu, Brian, Yang, Daylen, and Tadinada, Ravi. Visualizing Residual Networks. arXiv:1701.02362 [cs], January 2017. \nDeng, Li and Yu, Dong. Deep Learning Methods and Applications. Foundations and Trends in Signal Processing, pp. 199–200, 2014. \nGoodfellow, Ian, Bengio, Yoshua, and Courville, Aaron. Deep Learning. Book in preparation for MIT Press, 2016. \nHe, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Deep Residual Learning for Image Recognition. arXiv:1512.03385 [cs], December 2015. \nHe, Kaiming, Zhang, Xiangyu, Ren, Shaoqing, and Sun, Jian. Identity Mappings in Deep Residual Networks. In Computer Vision–ECCV 2016, 2016. \nHochreiter, Sepp. Untersuchungen zu dynamischen neuronalen Netzen. Diploma, Technische Universität München, pp. 91, 1991. \nHochreiter, Sepp and Schmidhuber, Jürgen. Long short-term memory. Neural computation, 9(8): 1735–1780, 1997. \nHuang, Gao, Liu, Zhuang, and Weinberger, Kilian Q. Densely Connected Convolutional Networks. arXiv:1608.06993 [cs], August 2016a. \nHuang, Gao, Sun, Yu, Liu, Zhuang, Sedra, Daniel, and Weinberger, Kilian. Deep Networks with Stochastic Depth. arXiv:1603.09382 [cs], March 2016b. \nHubel, David H. and Wiesel, Torsten N. Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex. The Journal of physiology, 160(1):106–154, 1962. \nJozefowicz, Rafal, Vinyals, Oriol, Schuster, Mike, Shazeer, Noam, and Wu, Yonghui. Exploring the limits of language modeling. arXiv preprint arXiv:1602.02410, 2016. \nKim, Yoon, Jernite, Yacine, Sontag, David, and Rush, Alexander M. Character-aware neural language models. arXiv preprint arXiv:1508.06615, 2015. \nLeCun, Yann, Bengio, Yoshua, and Hinton, Geoffrey. Deep learning. Nature, 521(7553):436–444, May 2015. ISSN 0028-0836. doi: 10.1038/nature14539. \nLee, Jason, Cho, Kyunghyun, and Hofmann, Thomas. Fully Character-Level Neural Machine Translation without Explicit Segmentation. arXiv preprint arXiv:1610.03017, 2016. \nLiao, Qianli and Poggio, Tomaso. Bridging the Gaps Between Residual Learning, Recurrent Neural Networks and Visual Cortex. arXiv:1604.03640 [cs], April 2016. \nLu, Liang and Renals, Steve. Small-footprint Deep Neural Networks with Highway Connections for Speech Recognition. arXiv:1512.04280 [cs], December 2015. \nSchmidhuber, Jürgen. Deep learning in neural networks: An overview. Neural Networks, 61:85–117, January 2015. ISSN 0893-6080. doi: 10.1016/j.neunet.2014.09.003. \nSpringenberg, Jost Tobias, Dosovitskiy, Alexey, Brox, Thomas, and Riedmiller, Martin. Striving for Simplicity: The All Convolutional Net. arXiv:1412.6806 [cs], December 2014. \nSrivastava, Rupesh K, Greff, Klaus, and Schmidhuber, Juergen. Training Very Deep Networks. In Cortes, C., Lawrence, N. D., Lee, D. D., Sugiyama, M., and Garnett, R. (eds.), Advances in Neural Information Processing Systems 28, pp. 2377–2385. Curran Associates, Inc., 2015a. \nSrivastava, Rupesh Kumar, Greff, Klaus, and Schmidhuber, Jürgen. Highway Networks. arXiv:1505.00387 [cs], May 2015b. ",
|
| 1292 |
+
"bbox": [
|
| 1293 |
+
171,
|
| 1294 |
+
87,
|
| 1295 |
+
828,
|
| 1296 |
+
924
|
| 1297 |
+
],
|
| 1298 |
+
"page_idx": 10
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"type": "text",
|
| 1302 |
+
"text": "Szegedy, Christian, Ioffe, Sergey, Vanhoucke, Vincent, and Alemi, Alex. Inception-v4, InceptionResNet and the Impact of Residual Connections on Learning. arXiv:1602.07261 [cs], February 2016. ",
|
| 1303 |
+
"bbox": [
|
| 1304 |
+
174,
|
| 1305 |
+
103,
|
| 1306 |
+
823,
|
| 1307 |
+
145
|
| 1308 |
+
],
|
| 1309 |
+
"page_idx": 11
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "text",
|
| 1313 |
+
"text": "Veit, Andreas, Wilber, Michael, and Belongie, Serge. Residual Networks are Exponential Ensembles of Relatively Shallow Networks. arXiv:1605.06431 [cs], May 2016. ",
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
171,
|
| 1316 |
+
155,
|
| 1317 |
+
823,
|
| 1318 |
+
184
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 11
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "text",
|
| 1324 |
+
"text": "Zeiler, Matthew D. and Fergus, Rob. Visualizing and understanding convolutional networks. In European Conference on Computer Vision, pp. 818–833. Springer, 2014. ",
|
| 1325 |
+
"bbox": [
|
| 1326 |
+
173,
|
| 1327 |
+
193,
|
| 1328 |
+
823,
|
| 1329 |
+
222
|
| 1330 |
+
],
|
| 1331 |
+
"page_idx": 11
|
| 1332 |
+
},
|
| 1333 |
+
{
|
| 1334 |
+
"type": "text",
|
| 1335 |
+
"text": "Zilly, Julian Georg, Srivastava, Rupesh Kumar, Koutník, Jan, and Schmidhuber, Jürgen. Recurrent Highway Networks. arXiv:1607.03474 [cs], July 2016. ",
|
| 1336 |
+
"bbox": [
|
| 1337 |
+
173,
|
| 1338 |
+
231,
|
| 1339 |
+
823,
|
| 1340 |
+
260
|
| 1341 |
+
],
|
| 1342 |
+
"page_idx": 11
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "image",
|
| 1346 |
+
"img_path": "images/f0a9278a7a7c56b67639b1d680b954144ef134bf734070b5cf2e8ec24142110b.jpg",
|
| 1347 |
+
"image_caption": [
|
| 1348 |
+
"Figure 5: Comparing 50-layer Highway vs. Residual networks on ILSVRC-2012 classification. "
|
| 1349 |
+
],
|
| 1350 |
+
"image_footnote": [],
|
| 1351 |
+
"bbox": [
|
| 1352 |
+
197,
|
| 1353 |
+
113,
|
| 1354 |
+
797,
|
| 1355 |
+
473
|
| 1356 |
+
],
|
| 1357 |
+
"page_idx": 12
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "text",
|
| 1361 |
+
"text": "A DERIVATION ",
|
| 1362 |
+
"text_level": 1,
|
| 1363 |
+
"bbox": [
|
| 1364 |
+
176,
|
| 1365 |
+
522,
|
| 1366 |
+
316,
|
| 1367 |
+
539
|
| 1368 |
+
],
|
| 1369 |
+
"page_idx": 12
|
| 1370 |
+
},
|
| 1371 |
+
{
|
| 1372 |
+
"type": "text",
|
| 1373 |
+
"text": "A.1 OPTIMAL LINEAR ESTIMATOR ",
|
| 1374 |
+
"bbox": [
|
| 1375 |
+
176,
|
| 1376 |
+
553,
|
| 1377 |
+
429,
|
| 1378 |
+
568
|
| 1379 |
+
],
|
| 1380 |
+
"page_idx": 12
|
| 1381 |
+
},
|
| 1382 |
+
{
|
| 1383 |
+
"type": "text",
|
| 1384 |
+
"text": "Assume two random variables $A$ and $B$ that are both noisy measurements of a third (latent) random variable $C$ : ",
|
| 1385 |
+
"bbox": [
|
| 1386 |
+
171,
|
| 1387 |
+
579,
|
| 1388 |
+
825,
|
| 1389 |
+
607
|
| 1390 |
+
],
|
| 1391 |
+
"page_idx": 12
|
| 1392 |
+
},
|
| 1393 |
+
{
|
| 1394 |
+
"type": "equation",
|
| 1395 |
+
"img_path": "images/ce2dcbd445360ebc92e7be8bb5d81d3b70f97a34c8a192c52ac79cc4779974c7.jpg",
|
| 1396 |
+
"text": "$$\n\\mathbb { E } [ A - C ] = \\mathbb { E } [ B - C ] = 0\n$$",
|
| 1397 |
+
"text_format": "latex",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
405,
|
| 1400 |
+
606,
|
| 1401 |
+
594,
|
| 1402 |
+
623
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 12
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "text",
|
| 1408 |
+
"text": "We call the corresponding variances $\\mathrm { V a r } [ A - C ] = \\sigma _ { A } ^ { 2 }$ and $\\mathrm { V a r } [ B - C ] = \\sigma _ { B } ^ { 2 }$ and covariance Cov[A, B] = σ2AB . ",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
174,
|
| 1411 |
+
625,
|
| 1412 |
+
826,
|
| 1413 |
+
655
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 12
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "text",
|
| 1419 |
+
"text": "We are looking for the linear estimator $q ( A , B ) = q _ { 0 } + q _ { 1 } A + q _ { 2 } B$ of $C$ with $\\mathbb { E } [ q - C ] = 0$ (unbiased) that has minimum variance. ",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
173,
|
| 1422 |
+
659,
|
| 1423 |
+
823,
|
| 1424 |
+
689
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 12
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "equation",
|
| 1430 |
+
"img_path": "images/48ec35c1a97e27eba875f331e7aa7cae630b656709498d5de2e2cbb5b6c6cb2e.jpg",
|
| 1431 |
+
"text": "$$\n\\begin{array} { r } { \\mathbb { E } [ q ( A , B ) - C ] = 0 } \\\\ { \\mathbb { E } [ q _ { 0 } + q _ { 1 } A + q _ { 2 } B - C ] = 0 } \\\\ { \\mathbb { E } [ q _ { 0 } + q _ { 1 } A - q _ { 1 } C + q _ { 2 } B - q _ { 2 } C + ( q _ { 1 } + q _ { 2 } - 1 ) C ] = 0 } \\\\ { \\mathbb { E } [ q _ { 0 } + q _ { 1 } ( A - C ) + q _ { 2 } ( B - C ) + ( q _ { 1 } + q _ { 2 } - 1 ) C ] = 0 } \\\\ { q _ { 0 } + ( q _ { 1 } + q _ { 2 } - 1 ) \\mathbb { E } [ C ] = 0 } \\\\ { \\mathbb { E } [ C ] ( 1 - q _ { 1 } - q _ { 2 } ) = q _ { 0 } } \\end{array}\n$$",
|
| 1432 |
+
"text_format": "latex",
|
| 1433 |
+
"bbox": [
|
| 1434 |
+
305,
|
| 1435 |
+
712,
|
| 1436 |
+
691,
|
| 1437 |
+
820
|
| 1438 |
+
],
|
| 1439 |
+
"page_idx": 12
|
| 1440 |
+
},
|
| 1441 |
+
{
|
| 1442 |
+
"type": "text",
|
| 1443 |
+
"text": "for all $\\mathbb { E } [ C ]$ which is possible iff: ",
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
173,
|
| 1446 |
+
821,
|
| 1447 |
+
393,
|
| 1448 |
+
837
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 12
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "equation",
|
| 1454 |
+
"img_path": "images/4e52a287caf62440e5ffcbd7f6c4d2ff9a563147ff0676a966fca450c17e90c0.jpg",
|
| 1455 |
+
"text": "$$\nq _ { 0 } = 0 \\mathrm { a n d } q _ { 1 } + q _ { 2 } = 1 .\n$$",
|
| 1456 |
+
"text_format": "latex",
|
| 1457 |
+
"bbox": [
|
| 1458 |
+
416,
|
| 1459 |
+
842,
|
| 1460 |
+
580,
|
| 1461 |
+
857
|
| 1462 |
+
],
|
| 1463 |
+
"page_idx": 12
|
| 1464 |
+
},
|
| 1465 |
+
{
|
| 1466 |
+
"type": "text",
|
| 1467 |
+
"text": "The second condition about minimal variance thus reduces to: ",
|
| 1468 |
+
"bbox": [
|
| 1469 |
+
173,
|
| 1470 |
+
868,
|
| 1471 |
+
581,
|
| 1472 |
+
883
|
| 1473 |
+
],
|
| 1474 |
+
"page_idx": 12
|
| 1475 |
+
},
|
| 1476 |
+
{
|
| 1477 |
+
"type": "equation",
|
| 1478 |
+
"img_path": "images/9eb8825476a1f85e1483df26cfab31e40b714fd21810fb12082d4ace925e51ca.jpg",
|
| 1479 |
+
"text": "$$\n\\begin{array} { r l } { \\underset { q _ { 1 } , q _ { 2 } } { \\operatorname { m i n i m i z e } } } & { { } \\mathrm { V a r } [ q _ { 1 } A + q _ { 2 } B - C ] } \\\\ { \\mathrm { s u b j e c t } \\mathrm { t o } } & { { } q _ { 1 } + q _ { 2 } = 1 } \\end{array}\n$$",
|
| 1480 |
+
"text_format": "latex",
|
| 1481 |
+
"bbox": [
|
| 1482 |
+
382,
|
| 1483 |
+
885,
|
| 1484 |
+
614,
|
| 1485 |
+
928
|
| 1486 |
+
],
|
| 1487 |
+
"page_idx": 12
|
| 1488 |
+
},
|
| 1489 |
+
{
|
| 1490 |
+
"type": "text",
|
| 1491 |
+
"text": "We can solve this using Lagrangian multipliers. For that we need to take the derivative of the following term w.r.t. $q _ { 1 } , q _ { 2 }$ and $\\lambda$ and set them to zero: ",
|
| 1492 |
+
"bbox": [
|
| 1493 |
+
171,
|
| 1494 |
+
103,
|
| 1495 |
+
823,
|
| 1496 |
+
132
|
| 1497 |
+
],
|
| 1498 |
+
"page_idx": 13
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"type": "equation",
|
| 1502 |
+
"img_path": "images/69c22521235c1aee6a45276afdbde7dbac7f10db042cd629e6f590d50f7bfb52.jpg",
|
| 1503 |
+
"text": "$$\n\\mathrm { V a r } [ q _ { 1 } A + q _ { 2 } B - C ] - \\lambda ( q _ { 1 } + q _ { 2 } - 1 ) )\n$$",
|
| 1504 |
+
"text_format": "latex",
|
| 1505 |
+
"bbox": [
|
| 1506 |
+
362,
|
| 1507 |
+
138,
|
| 1508 |
+
633,
|
| 1509 |
+
156
|
| 1510 |
+
],
|
| 1511 |
+
"page_idx": 13
|
| 1512 |
+
},
|
| 1513 |
+
{
|
| 1514 |
+
"type": "text",
|
| 1515 |
+
"text": "The first equation is therefore: ",
|
| 1516 |
+
"bbox": [
|
| 1517 |
+
173,
|
| 1518 |
+
170,
|
| 1519 |
+
374,
|
| 1520 |
+
185
|
| 1521 |
+
],
|
| 1522 |
+
"page_idx": 13
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"type": "equation",
|
| 1526 |
+
"img_path": "images/f612be4800058d9ce3a960acf4bc8f36d495f444681692e22246e1da6409bdb9.jpg",
|
| 1527 |
+
"text": "$$\n\\begin{array} { r l r } & { } & { \\frac { d } { d q _ { 1 } } ( \\mathrm { V a r } [ q _ { 1 } A + q _ { 2 } B - C ] - \\lambda ( q _ { 1 } + q _ { 2 } - 1 ) ) = 0 } \\\\ & { } & { \\frac { d } { d q _ { 1 } } \\mathrm { V a r } [ q _ { 1 } A + q _ { 2 } B - C ] - \\lambda = 0 } \\\\ & { } & { \\frac { d } { d q _ { 1 } } \\mathrm { V a r } [ q _ { 1 } ( A - C ) + q _ { 2 } ( B - C ) ] - \\lambda = 0 } \\\\ & { } & { \\frac { d } { d q _ { 1 } } ( q _ { 1 } ^ { 2 } \\mathrm { V a r } [ A - C ] + 2 q _ { 1 } q _ { 2 } \\mathrm { C o v } [ A - C , B - C ] ) - \\lambda = 0 } \\\\ & { } & { 2 q _ { 1 } \\sigma _ { A } ^ { 2 } + 2 q _ { 2 } \\sigma _ { A B } ^ { 2 } - \\lambda = 0 } \\end{array}\n$$",
|
| 1528 |
+
"text_format": "latex",
|
| 1529 |
+
"bbox": [
|
| 1530 |
+
302,
|
| 1531 |
+
190,
|
| 1532 |
+
697,
|
| 1533 |
+
347
|
| 1534 |
+
],
|
| 1535 |
+
"page_idx": 13
|
| 1536 |
+
},
|
| 1537 |
+
{
|
| 1538 |
+
"type": "text",
|
| 1539 |
+
"text": "Analogously we get: ",
|
| 1540 |
+
"bbox": [
|
| 1541 |
+
174,
|
| 1542 |
+
351,
|
| 1543 |
+
310,
|
| 1544 |
+
364
|
| 1545 |
+
],
|
| 1546 |
+
"page_idx": 13
|
| 1547 |
+
},
|
| 1548 |
+
{
|
| 1549 |
+
"type": "text",
|
| 1550 |
+
"text": "and: ",
|
| 1551 |
+
"bbox": [
|
| 1552 |
+
173,
|
| 1553 |
+
383,
|
| 1554 |
+
204,
|
| 1555 |
+
397
|
| 1556 |
+
],
|
| 1557 |
+
"page_idx": 13
|
| 1558 |
+
},
|
| 1559 |
+
{
|
| 1560 |
+
"type": "equation",
|
| 1561 |
+
"img_path": "images/943a2dc5ac735a659c9c8ffcc0c4349cb0ac5a89467ae84c7a2528b7ec40b3f9.jpg",
|
| 1562 |
+
"text": "$$\n\\begin{array} { c } { { 2 q _ { 2 } \\sigma _ { B } ^ { 2 } + 2 q _ { 1 } \\sigma _ { A B } ^ { 2 } - \\lambda = 0 } } \\\\ { { { } } } \\\\ { { q _ { 1 } + q _ { 2 } = 1 } } \\end{array}\n$$",
|
| 1563 |
+
"text_format": "latex",
|
| 1564 |
+
"bbox": [
|
| 1565 |
+
408,
|
| 1566 |
+
359,
|
| 1567 |
+
588,
|
| 1568 |
+
415
|
| 1569 |
+
],
|
| 1570 |
+
"page_idx": 13
|
| 1571 |
+
},
|
| 1572 |
+
{
|
| 1573 |
+
"type": "text",
|
| 1574 |
+
"text": "Solving these equations gives us: ",
|
| 1575 |
+
"bbox": [
|
| 1576 |
+
173,
|
| 1577 |
+
422,
|
| 1578 |
+
392,
|
| 1579 |
+
438
|
| 1580 |
+
],
|
| 1581 |
+
"page_idx": 13
|
| 1582 |
+
},
|
| 1583 |
+
{
|
| 1584 |
+
"type": "equation",
|
| 1585 |
+
"img_path": "images/5eda67b76f7b95956e6e98f75d2fee1d03098c9748f487c44701f5d67fa6b19c.jpg",
|
| 1586 |
+
"text": "$$\n\\begin{array} { c } { { q _ { 1 } = \\displaystyle \\frac { \\sigma _ { B } ^ { 2 } - \\sigma _ { A B } ^ { 2 } } { \\sigma _ { A } ^ { 2 } - 2 \\sigma _ { A B } ^ { 2 } + \\sigma _ { B } ^ { 2 } } } } \\\\ { { q _ { 2 } = \\displaystyle \\frac { \\sigma _ { A } ^ { 2 } - \\sigma _ { A B } ^ { 2 } } { \\sigma _ { A } ^ { 2 } - 2 \\sigma _ { A B } ^ { 2 } + \\sigma _ { B } ^ { 2 } } } } \\end{array}\n$$",
|
| 1587 |
+
"text_format": "latex",
|
| 1588 |
+
"bbox": [
|
| 1589 |
+
416,
|
| 1590 |
+
444,
|
| 1591 |
+
581,
|
| 1592 |
+
518
|
| 1593 |
+
],
|
| 1594 |
+
"page_idx": 13
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"type": "text",
|
| 1598 |
+
"text": "We can write our estimator in terms of $\\alpha _ { 1 } = \\sigma _ { B } ^ { 2 } - \\sigma _ { A B } ^ { 2 }$ and $\\alpha _ { 2 } = \\sigma _ { A } ^ { 2 } - \\sigma _ { A B } ^ { 2 }$ : ",
|
| 1599 |
+
"bbox": [
|
| 1600 |
+
171,
|
| 1601 |
+
547,
|
| 1602 |
+
687,
|
| 1603 |
+
566
|
| 1604 |
+
],
|
| 1605 |
+
"page_idx": 13
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "equation",
|
| 1609 |
+
"img_path": "images/dd68680620a16b5704f226c4fb1434bd9b275c74c65409839baf773fd4393113.jpg",
|
| 1610 |
+
"text": "$$\nq = \\frac { \\alpha _ { 1 } } { \\alpha _ { 1 } + \\alpha _ { 2 } } A + \\frac { \\alpha _ { 2 } } { \\alpha _ { 1 } + \\alpha _ { 2 } } B\n$$",
|
| 1611 |
+
"text_format": "latex",
|
| 1612 |
+
"bbox": [
|
| 1613 |
+
400,
|
| 1614 |
+
570,
|
| 1615 |
+
599,
|
| 1616 |
+
602
|
| 1617 |
+
],
|
| 1618 |
+
"page_idx": 13
|
| 1619 |
+
}
|
| 1620 |
+
]
|
parse/train/Skn9Shcxe/Skn9Shcxe_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Skn9Shcxe/Skn9Shcxe_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJe4_xSFDB/rJe4_xSFDB.md
ADDED
|
@@ -0,0 +1,419 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LIPSCHITZ CONSTANT ESTIMATION OF NEURAL NETWORKS VIA SPARSE POLYNOMIAL OPTIMIZATION
|
| 2 |
+
|
| 3 |
+
Fabian Latorre, Paul Rolland and Volkan Cevher EPFL, Switzerland firstname.lastname@epfl.ch
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We introduce LiPopt, a polynomial optimization framework for computing increasingly tighter upper bounds on the Lipschitz constant of neural networks. The underlying optimization problems boil down to either linear (LP) or semidefinite (SDP) programming. We show how to use the sparse connectivity of a network, to significantly reduce the complexity of computation. This is specially useful for convolutional as well as pruned neural networks. We conduct experiments on networks with random weights as well as networks trained on MNIST, showing that in the particular case of the $\ell _ { \infty }$ -Lipschitz constant, our approach yields superior estimates, compared to baselines available in the literature.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
We consider a neural network $f _ { d }$ defined by the recursion:
|
| 12 |
+
|
| 13 |
+
$$
|
| 14 |
+
f _ { 1 } ( x ) : = W _ { 1 } x \qquad f _ { i } ( x ) : = W _ { i } \sigma ( f _ { i - 1 } ( x ) ) , \quad i = 2 , \ldots , d
|
| 15 |
+
$$
|
| 16 |
+
|
| 17 |
+
for an integer $d$ larger than 1, matrices $\{ W _ { i } \} _ { i = 1 } ^ { d }$ of appropriate dimensions and an activation function $\sigma$ , understood to be applied element-wise. We refer to $d$ as the depth, and we focus on the case where $f _ { d }$ has a single real value as output.
|
| 18 |
+
|
| 19 |
+
In this work, we address the problem of estimating the Lipschitz constant of the network $f _ { d }$ . A function $f$ is Lipschitz continuous with respect to a norm $\left\| \cdot \right\|$ if there exists a constant $L$ such that for all $x , y$ we have $| f ( x ) - f ( y ) | \leq L \| x - y \|$ . The minimum over all such values satisfying this condition is called the Lipschitz constant of $f$ and is denoted by $L ( f )$ .
|
| 20 |
+
|
| 21 |
+
The Lipschitz constant of a neural network is of major importance in many successful applications of deep learning. In the context of supervised learning, Bartlett et al. (2017) show how it directly correlates with the generalization ability of neural network classifiers, suggesting it as model complexity measure. It also provides a measure of robustness against adversarial perturbations (Szegedy et al., 2014) and can be used to improve such metric (Cisse et al., 2017). Moreover, an upper bound on $L ( f _ { d } )$ provides a certificate of robust classification around data points (Weng et al., 2018).
|
| 22 |
+
|
| 23 |
+
Another example is the discriminator network of the Wasserstein GAN (Arjovsky et al., 2017), whose Lipschitz constant is constrained to be at most 1. To handle this constraint, researchers have proposed different methods like heuristic penalties (Gulrajani et al., 2017), upper bounds (Miyato et al., 2018), choice of activation function (Anil et al., 2019), among many others. This line of work has shown that accurate estimation of such constant is key to generating high quality images.
|
| 24 |
+
|
| 25 |
+
Lower bounds or heuristic estimates of $L ( f _ { d } )$ can be used to provide a general sense of how robust a network is, but fail to provide true certificates of robustness to input perturbations. Such certificates require true upper bounds, and are paramount when deploying safety-critical deep reinforcement learning applications (Berkenkamp et al., 2017; Jin & Lavaei, 2018). The trivial upper bound given by the product of layer-wise Lipschitz constants is easy to compute but rather loose and overly pessimistic, providing poor insight into the true robustness of a network (Huster et al., 2018).
|
| 26 |
+
|
| 27 |
+
Indeed, there is a growing need for methods that provide tighter upper bounds on $L ( f _ { d } )$ , even at the expense of increased complexity. For example Raghunathan et al. (2018a); Jin & Lavaei (2018); Fazlyab et al. (2019) derive upper bounds based on semidefinite programming $( S D P )$ . While expensive to compute, these type of certificates are in practice surprisingly tight. Our work belongs in this vein of research, and aims to overcome some limitations in the current state-of-the-art.
|
| 28 |
+
|
| 29 |
+
# Our Contributions.
|
| 30 |
+
|
| 31 |
+
. We present LiPopt, a general approach for upper bounding the Lipschitz constant of a neural network based on a relaxation to a polynomial optimization problem (POP) (Lasserre, 2015). This approach requires only that the unit ball be described with polynomial inequalities, which covers the common $\ell _ { 2 ^ { - } }$ and $\ell _ { \infty }$ -norms. . Based on a theorem due to Weisser et al. (2018), we exploit the sparse connectivity of neural network architectures to derive a sequence of linear programs (LPs) of considerably smaller size than their vanilla counterparts. We provide an asymptotic analysis of the size of such programs, in terms of the number of neurons, depth and sparsity of the network. . Focusing on the $\ell _ { \infty }$ -norm, we experiment on networks with random weights and networks trained on MNIST (Lecun et al., 1998). We evaluate different configurations of depth, width and sparsity and we show that the proposed sequence of LPs can provide tighter upper bounds on $\dot { L } ( f _ { d } )$ compared to other baselines available in the literature.
|
| 32 |
+
|
| 33 |
+
Notation. We denote by $n _ { i }$ the number of columns of the matrix $W _ { i }$ in the definition (1) of the network. This corresponds to the size of the $i$ -th layer, where we identify the input as the first layer. We let $n = n _ { 1 } + . . . + n _ { d }$ be the total number of neurons in the network. For a vector $x$ , $\operatorname { D i a g } ( x )$ denotes the square matrix with $x$ in its diagonal and zeros everywhere else. For an array $X$ , $\operatorname { v e c } ( X )$ is the flattened array. The support of a sequence $\operatorname { s u p p } ( \alpha )$ is defined as the set of indices $j$ such that $\alpha _ { j }$ is nonnote by o. For the m $x = [ x _ { 1 } , \ldots , x _ { n } ]$ a sequence of nonnegative integers . The set of nonnegative integers is $\gamma = [ \gamma _ { 1 } , \dotsc , \gamma _ { n } ]$ we $x ^ { \gamma }$ $x _ { 1 } ^ { \gamma _ { 1 } } x _ { 2 } ^ { \gamma _ { 2 } } \ldots x _ { n } ^ { \gamma _ { n } }$ $\mathbb { N }$
|
| 34 |
+
|
| 35 |
+
Remark. The definition of network (1) covers typical architectures composed of dense and convolutional layers. In general, our proposed approach can be readily extended with minor modifications to any directed acyclic computation graph e.g., residual network architectures (He et al., 2016).
|
| 36 |
+
|
| 37 |
+
# 2 POLYNOMIAL OPTIMIZATION FORMULATION
|
| 38 |
+
|
| 39 |
+
In this section we derive an upper bound on $L ( f _ { d } )$ given by the value of a POP, i.e. the minimum value of a polynomial subject to polynomial inequalities. Our starting point is the following theorem, which casts $\dot { L } ( f )$ as an optimization problem:
|
| 40 |
+
|
| 41 |
+
Theorem 1. Let $f$ be a differentiable and Lipschitz continuous function on an open, convex subset $\mathcal { X }$ of an euclidean space. Let $\left\| \cdot \right\| _ { * }$ be the dual norm. The Lipschitz constant of $f$ is given by
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
L ( f ) = \operatorname* { s u p } _ { x \in \mathcal { X } } \| \nabla f ( x ) \| _ { * }
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
For completeness, we provide a proof in appendix A. In our setting, we assume that the activation function $\sigma$ is Lipschitz continuous and differentiable. In this case, the assumptions of Theorem 1 are fulfilled because $f _ { d }$ is a composition of activations and linear transformations. The differentiability assumption rules out the common ReLU activation $\sigma ( x ) = \operatorname* { m a x } \{ 0 , x \}$ , but allows many others such as the exponential linear unit (ELU) (Clevert et al., 2015) or the softplus.
|
| 48 |
+
|
| 49 |
+
Using the chain rule, the compositional structure of $f _ { d }$ yields the following formula for its gradient:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
\nabla f _ { d } ( x ) = W _ { 1 } ^ { T } \prod _ { i = 1 } ^ { d - 1 } \operatorname { D i a g } ( \sigma ^ { \prime } ( f _ { i } ( x ) ) ) W _ { i + 1 } ^ { T }
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
For every $i = 1 , \ldots , d - 1$ we introduce a variable $s _ { i } = \sigma ^ { \prime } ( f _ { i } ( x ) )$ corresponding to the derivative of $\sigma$ at the $i$ -th hidden layer of the network. For activation functions like ELU or softplus, their derivative is bounded between 0 and 1, which implies that $0 \leq s _ { i } \leq 1$ . This bound together with the definition of the dual norm $\| x \| _ { * } : = \operatorname* { s u p } _ { \| t \| \leq 1 } t ^ { T } \bar { x }$ implies the following upper bound of $L ( f _ { d } )$ :
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
L ( f _ { d } ) \leq \operatorname* { m a x } \left\{ t ^ { T } W _ { 1 } ^ { T } \prod _ { i = 1 } ^ { d - 1 } \operatorname { D i a g } ( s _ { i } ) W _ { i + 1 } ^ { T } : 0 \leq s _ { i } \leq 1 , \| t \| \leq 1 \right\}
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
We will refer to the polynomial objective of this problem as the norm-gradient polynomial of the network $f _ { d }$ , a central object of study in this work.
|
| 62 |
+
|
| 63 |
+
For some frequently used $\ell _ { p }$ -norms, the constraint $\| t \| _ { p } \leq 1$ can be written with polynomial inequalities. In the rest of this work, we use exclusively the $\ell _ { \infty }$ -norm for which $\| t \| _ { \infty } \dot { \leq } 1$ is equivalent to the polynomial inequalities $- 1 \leq t _ { i } \leq 1$ , for $i = 1 , \ldots , n _ { 1 }$ . However, note that when $p \geq 2$ is a positive even integer, $\| t \| _ { p } \leq 1$ is equivalent to a single polynomial inequality $\| t \| _ { p } ^ { p } \leq 1$ , and our proposed approach can be adapted with minimal modifications.
|
| 64 |
+
|
| 65 |
+
In such cases, the optimization problem in the right-hand side of (4) is a POP. Optimization of polynomials is a NP-hard problem and we do not expect to have efficient algorithms for solving (4) in this general form. In the next sections we describe LiPopt: a systematic way of obtaining an upper bound on $L ( f _ { d } )$ via tractable approximation methods of the POP (4).
|
| 66 |
+
|
| 67 |
+
Local estimation. In many practical escenarios, we have additional bounds on the input of the network. For example, in the case of image classification tasks, valid input is constrained in a hypercube. In the robustness certification task, we are interested in all possible input in a $\epsilon$ -ball around some data point. In those cases, it is interesting to compute a local Lipschitz constant, that is, the Lipschitz constant of a function restricted to a subset.
|
| 68 |
+
|
| 69 |
+
We can achieve this by deriving tighter bounds $0 \leq l _ { i } \leq s _ { i } \leq u _ { i } \leq 1$ , as a consequence of the restricted input (see for example, Algorithm 1 in Wong & Kolter (2018)). By incorporating this knowledge in the optimization problem (4) we obtain bounds on local Lipschitz constants of $f _ { d }$ . We study this setting and provide numerical experiments in section 7.3.
|
| 70 |
+
|
| 71 |
+
Choice of norm. We highlight the importance of computing good upper bounds on $L ( f _ { d } )$ with respect to the $\ell _ { \infty }$ -norm. It is one of the most commonly used norms to assess robustness in the adversarial examples literature. Moreover, it has been shown that, in practice, $\ell _ { \infty }$ -norm robust networks are also robust in other more plausible measures of perceptibility, like the Wasserstein distance (Wong et al., 2019). This motivates our focus on this choice.
|
| 72 |
+
|
| 73 |
+
# 3 HIERARCHICAL SOLUTION BASED ON A POLYNOMIAL POSITIVITY CERTIFICATE
|
| 74 |
+
|
| 75 |
+
For ease of exposition, we rewrite (4) as a POP constrained in $[ 0 , 1 ] ^ { n }$ using the substitution $s _ { 0 } : = ( t +$ $1 ) / 2$ . Denote by $p$ the norm-gradient polynomial, and let $x = [ s _ { 0 } , \ldots , s _ { d - 1 } ]$ be the concatenation of all variables. Polynomial optimization methods (Lasserre, 2015) start from the observation that a value $\lambda$ is an upper bound for $p$ over a set $K$ if and only if the polynomial $\lambda - p$ is positive over $K$ .
|
| 76 |
+
|
| 77 |
+
In LiPopt, we will employ a well-known classical result in algebraic geometry, the so-called Krivine’s positivity certificate1, but in theory we can use any positivity certificate like sum-of-squares (SOS). The following is a straightforward adaptation of Krivine’s certificate to our setting:
|
| 78 |
+
|
| 79 |
+
Theorem 2. (Adapted from Krivine (1964); Stengle (1974); Handelman (1988)) If the polynomial $\lambda - p$ is strictly positive on $[ 0 , 1 ] ^ { n }$ , then there exist finitely many positive weights $c _ { \alpha \beta }$ such that
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\lambda - p = \sum _ { ( \alpha , \beta ) \in \mathbb { N } ^ { 2 n } } c _ { \alpha \beta } h _ { \alpha \beta } , \qquad h _ { \alpha \beta } ( x ) : = \prod _ { j = 1 } ^ { n } x _ { j } ^ { \alpha _ { j } } ( 1 - x _ { j } ) ^ { \beta _ { j } }
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
By truncating the degree of Krivine’s positivity certificate (Theorem 2) and minimizing over all possible upper bounds $\lambda$ we obtain a hierarchy of LP problems (Lasserre, 2015, Section 9):
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\theta _ { k } : = \operatorname* { m i n } _ { c \geq 0 , \lambda } \left\{ \lambda : \lambda - p = \sum _ { ( \alpha , \beta ) \in \mathbb { N } _ { k } ^ { 2 n } } c _ { \alpha \beta } h _ { \alpha \beta } \right\}
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
where $\mathbb { N } _ { k } ^ { 2 n }$ is the set of nonnegative integer sequences of length $2 n$ adding up to at most $k$ . This is indeed a sequence of LPs as the polynomial equality constraint can be implemented by equating coefficients in the canonical monomial basis. For this polynomial equality to be feasible, the degree of the certificate has to be at least that of the norm-gradient polynomial $p$ , which is equal to the depth $d$ . This implies that the first nontrivial bound $( \theta _ { k } < \infty )$ ) corresponds to $k = d$ .
|
| 92 |
+
|
| 93 |
+
The sequence $\{ \theta _ { k } \} _ { k = 1 } ^ { \infty }$ is non-incresing and converges to the maximum of the upper bound (4). Note that for any level of the hierarchy, the solution of the LP (6) provides a valid upper bound on $L ( f _ { d } )$ .
|
| 94 |
+
|
| 95 |
+
An advantage of using Krivine’s positivity certificate over SOS is that one obtains an LP hierarchy (rather than SDP), for which commercial solvers can reliably handle a large instances. Other positivity certificates offering a similar advantage are the DSOS and SDSOS hierarchies (Ahmadi & Majumdar, 2019), which boil down to LP or second order cone programming (SOCP), respectively.
|
| 96 |
+
|
| 97 |
+
Drawback. The size of the LPs given by Krivine’s positivity certificate can become quite large. The dimension of the variable $c$ is $| \mathbb { N } _ { k } ^ { 2 n } | = { \dot { \mathcal { O } } } ( n ^ { k } )$ . For reference, if we consider the MNIST dataset and a one-hidden-layer network with 100 neurons we have $\left| \mathbb { N } _ { 2 } ^ { 2 n } \right| \approx 1 . 5 \times 1 0 ^ { 6 }$ while $\left| \mathbb { N } _ { 3 } ^ { 2 n } \right| \approx 9 . 3 \times 1 0 ^ { 8 }$ . To make this approach more scalable, in the next section we exploit the sparsity of the polynomial $p$ to find LPs of drastically smaller size than (6), but with similar approximation properties.
|
| 98 |
+
|
| 99 |
+
Remark. In order to compute upper bounds for local Lipschitz constants, first obtain tighter bounds $0 \leq l _ { i } \leq s _ { i } \leq u _ { i }$ and then perform the change of variables $\widetilde { s } _ { i } = ( s _ { i } - l _ { i } ) / ( u _ { i } - l _ { i } )$ to rewrite the problem (4) as a POP constrained on $[ 0 , 1 ] ^ { n }$ .
|
| 100 |
+
|
| 101 |
+
# 4 REDUCING THE NUMBER OF VARIABLES
|
| 102 |
+
|
| 103 |
+
Many neural network architectures, like those composed of convolutional layers, have a highly sparse connectivity between neurons. Moreover, it has been empirically observed that up to $90 \%$ of network weights can be pruned (set to zero) without harming accuracy (Frankle & Carbin, 2019). In such cases their norm-gradient polynomial has a special structure that allows polynomial positivity certificates of smaller size than the one given by Krivine’s positivity certificate (Theorem 2).
|
| 104 |
+
|
| 105 |
+
In this section, we describe an implementation of LiPopt (Algorithm 1) that exploits the sparsity of the network to decrease the complexity of the LPs (6) given by the Krivine’s positivity certificate. In this way, we obtain upper bounds on $L ( f _ { d } )$ that require less computation and memory. Let us start with the definition of a valid sparsity pattern:
|
| 106 |
+
|
| 107 |
+
Definition 1. Let $I = \{ 1 , \ldots , n \}$ and $p$ be a polynomial with variable $x \in \mathbb { R } ^ { n }$ . A valid sparsity pattern of $p$ is a sequence $\{ I _ { i } \} _ { i = 1 } ^ { m }$ of subsets of $I$ , called cliques, such that $\textstyle \bigcup _ { i = 1 } ^ { m } I _ { i } = I$ and:
|
| 108 |
+
|
| 109 |
+
. $\textstyle p = \sum _ { i = 1 } ^ { m } p _ { i }$ where $p _ { i }$ is a polynomial that depends only on the variables $\{ x _ { j } : j \in I _ { i } \}$ . for all $i = 1 , \ldots , m - 1$ there is an $l \leq i$ such that $\begin{array} { r } { ( I _ { i + 1 } \cap \bigcup _ { r = 1 } ^ { i } I _ { r } ) \subseteq I _ { l } } \end{array}$
|
| 110 |
+
|
| 111 |
+
When the polynomial objective $p$ in a POP has a valid sparsity pattern, there is an extension of Theorem 2 due to Weisser et al. (2018), providing a smaller positivity certificate for $\lambda - p$ over $[ 0 , 1 ] ^ { n }$ . We refer to it as the sparse Krivine’s certificate and we include it here for completeness:
|
| 112 |
+
|
| 113 |
+
Theorem 3 (Adapted from Weisser et al. (2018)). Let a polynomial $p$ have a valid sparsity pattern $\{ I _ { i } \} _ { i = 1 } ^ { m }$ . Define $N _ { i }$ as the set of sequences $( \alpha , \beta ) \in \bar { \mathbb { N } } ^ { 2 n }$ where the support of both $\alpha$ and $\beta$ is contained in $I _ { i }$ . If $\lambda - p$ is strictly positive over $K = [ 0 , 1 ] ^ { n }$ , there exist finitely many positive weights $c _ { \alpha \beta }$ such that
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\lambda - p = \sum _ { i = 1 } ^ { m } h _ { i } , \qquad h _ { i } = \sum _ { ( \alpha , \beta ) \in N _ { i } } c _ { \alpha \beta } h _ { \alpha \beta }
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
where the polynomials $h _ { \alpha \beta }$ are defined as in (5).
|
| 120 |
+
|
| 121 |
+
The sparse Krivine’s certificate can be used like the general version (Theorem 2) to derive a sequence of LPs approximating the upper bound on $L ( f _ { d } )$ stated in (4). However, the number of different polynomials $h _ { \alpha \beta }$ of degree at most $k$ appearing in the sparse certificate can be drastically smaller, the amount of which determines how good the sparsity pattern is.
|
| 122 |
+
|
| 123 |
+
We introduce a graph that depends on the network $f _ { d }$ , from which we will extract a sparsity pattern for the norm-gradient polynomial of a network.
|
| 124 |
+
|
| 125 |
+

|
| 126 |
+
Figure 1: Sparsity pattern of Proposition 1 for a network of depth three.
|
| 127 |
+
|
| 128 |
+

|
| 129 |
+
Figure 2: Structure of one set in the sparsity pattern from Proposition 1 for a network with 2D convolutional layers with $3 \times 3$ filters.
|
| 130 |
+
|
| 131 |
+
Definition 2. Let $f _ { d }$ be a network with weights $\{ W _ { i } \} _ { i = 1 } ^ { d }$ . Define a directed graph $G _ { d } = ( V , E )$ as:
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\begin{array} { c } { { V = \{ s _ { i , j } : 0 \leq i \leq d - 1 , 1 \leq j \leq n _ { i } \} } } \\ { { E = \{ ( s _ { i , j } , s _ { i + 1 , k } ) : 0 \leq i \leq d - 2 , [ W _ { i } ] _ { k , j } \neq 0 \} } } \end{array}
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
which we call the computational graph of the network $f _ { d }$
|
| 138 |
+
|
| 139 |
+
In the graph $G _ { d }$ the vertex $s _ { ( i , j ) }$ represents the $j$ -th neuron in the $i$ -th layer. There is a directed edge between two neurons in consecutive layers if they are joined by a nonzero weight in the network. The following result shows that for fully connected networks we can extract a valid sparsity pattern from this graph. We relegate the proof to appendix B.
|
| 140 |
+
|
| 141 |
+
Proposition 1. Let $f _ { d }$ be a dense network (all weights are nonzero). The following sets, indexed by $i = 1 , \ldots , n _ { d } ,$ form a valid sparsity pattern for the norm-gradient polynomial of the network $f _ { d }$ :
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
I _ { i } : = \left\{ s _ { ( d - 1 , i ) } \right\} \cup \left\{ s _ { ( j , k ) } : t h e r e \ e x i s t s a \ d i r e c t e d p a t h f r o m \ s _ { ( j , k ) } \ t o \ s _ { ( d - 1 , i ) } \ i n \ G _ { d } \right\}
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
We refer to this as the sparsity pattern induced by $G _ { d }$ . An example is depicted in in Figure 1.
|
| 148 |
+
|
| 149 |
+
Remark. When the network is not dense, the the second condition (Definition 1) for the sparsity pattern (9) to be valid might not hold. In that case we lose the guarantee that the values of the corresponding LPs converge to the maximum of the POP (4). Nevertheless, it still provides a valid positivity certificate that we use to upper bound $L ( f _ { d } )$ . In Section 7 we show that in practice it provides upper bounds of good enough quality. If needed, a valid sparsity pattern can be obtained via a chordal completion of the correlative sparsity graph of the POP (Waki et al., 2006).
|
| 150 |
+
|
| 151 |
+
We now quantify how good this sparsity pattern is. Let $s$ be the size of the largest clique in a sparsity pattern, and let $N _ { i , k }$ be the subset of $N _ { i }$ (defined in Theorem 3) composed of sequences summing up to $k$ . The number of different polynomials for the $k$ -th LP in the hierarchy given by the sparse Krivine’s certificate can be bounded as follows:
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
\left| \bigcup _ { i = 1 } ^ { m } N _ { i , k } \right| \leq \sum _ { i = 1 } ^ { m } { \binom { 2 | I _ { i } | + k } { k } } = \mathcal { O } \left( m s ^ { k } \right)
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+
We immediately see that the dependence on the number of cliques $m$ is really mild (linear) but the size of the cliques as well as the degree of the hierarchy can really impact the size of the optimization problem. Nevertheless, this upper bound can be quite loose; polynomials $h _ { \alpha \beta }$ that depend only on variables in the intersection of two or more cliques are counted more than once.
|
| 158 |
+
|
| 159 |
+
The number of cliques given in the sparsity pattern induced by $G _ { d }$ is equal to the size of the last layer $m = n _ { d }$ and the size of each clique depends on the particular implementation of the network. We now study different architectures that could arise in practice, and determine the amount of polynomials in their sparse Krivine’s certificate.
|
| 160 |
+
|
| 161 |
+
Fully connected networks. Even in the case of a network with all nonzero connections, the sparsity pattern induced by $G _ { d }$ decreases the size of the LPs when compared to Krivine’s certificate. In this case the cliques have size $n _ { 1 } + . . . + n _ { d - 1 } + 1$ but they all have the same common intersection equal to all neurons up to the second-to-last hidden layer. A straightforward counting argument shows that the total number of polynomials is $\mathcal { O } ( n ( n _ { 1 } + . . . + n _ { d - 1 } + \bar { 1 } ) ^ { k - 1 } )$ ), improving the upper bound (10).
|
| 162 |
+
|
| 163 |
+
Unstructured sparsity. In the case of networks obtained by pruning (Hanson & Pratt, 1989) or generated randomly from a distribution over graphs (Xie et al., 2019), the sparsity pattern can be arbitrary. In this case the size of the resulting LPs varies at runtime. Under the layer-wise assumption that any neuron is connected to at most $r$ neurons in the previous layer, the size of the cliques in (9) is bounded as $s = \mathcal { O } ( r ^ { d } )$ . This estimate has an exponential dependency on the depth but ignores that many neurons might share connections to the same inputs in the previous layer, thus being potentially loose. The bound (10) implies that the number of different polynomials is $\mathcal { O } ( n _ { d } r ^ { d k } )$ .
|
| 164 |
+
|
| 165 |
+
2D Convolutional networks. The sparsity in the weight matrices of convolutional layers has a certain local structure; neurons are connected to contiguous inputs in the previous layer. Adjacent neurons also have many input pixels in common (see Figure 2). Assuming a constant number of channels per layer, the size of the cliques in (9) is $\mathcal { O } ( d ^ { 3 } )$ . Intuitively, such number is proportional to the volume of the pyramid depicted in Figure 2 where each dimension depends linearly on $d$ . Using (10) we get that there are $\mathcal { O } ( \dot { n } _ { d } d ^ { 3 k } )$ different polynomials in the sparse Krivine’s certificate. This is a drastic decrease in complexity when compared to the unstructured sparsity case.
|
| 166 |
+
|
| 167 |
+
The use of sparsity in polynomial optimization preceeds Theorem 3 (Weisser et al., 2018). First studied in the context of sum-of-squares by Kojima et al. (2005) and further refined in Waki et al. (2006); Lasserre (2006) (and references therein), it has found applications in safety verification (Yang et al., 2016; Zhang et al., 2018), sensor localization Wang et al. (2006), optimal power flow (Ghaddar et al., 2015) and many others. Our work fits precisely into this set of important applications.
|
| 168 |
+
|
| 169 |
+
# Algorithm 1 LiPopt for ELU activations and sparsity pattern
|
| 170 |
+
|
| 171 |
+
Input: matrices $\{ W _ { i } \} _ { i = 1 } ^ { d }$ , sparsity pattern $\{ I _ { i } \} _ { i = 1 } ^ { m }$ , hierarchy degree $k$ .
|
| 172 |
+
1: p ← (2s0 − 1)T W T1 Qd−1i=1 $\triangleright$ compute norm-gradient polynomial
|
| 173 |
+
2: $x \gets [ s _ { 0 } , \ldots , s _ { d - 1 } ]$
|
| 174 |
+
3: $b [ b _ { \gamma } : \gamma \in \mathbb { N } _ { k } ^ { n } ]$ where $\begin{array} { r } { p ( x ) = \sum _ { \gamma \in \mathbb { N } _ { k } ^ { n } } b _ { \gamma } x ^ { \gamma } } \end{array}$ $\triangleright$ compute coefficients of $p$ in basis
|
| 175 |
+
4: for $i = 1 , \ldots , m$ do
|
| 176 |
+
5: $N _ { i , k } \gets \{ ( \alpha , \beta ) \in \mathbb { N } _ { k } ^ { 2 n } : \operatorname { s u p p } ( \alpha ) \cap \operatorname { s u p p } ( \beta ) \subseteq I _ { i } \}$
|
| 177 |
+
6: $\widetilde { N } _ { k } \gets \cup _ { i = 1 } ^ { m } N _ { i , k }$
|
| 178 |
+
7: $\begin{array} { r } { h \sum _ { ( \alpha , \beta ) \in \widetilde { N } } c _ { \alpha \beta } h _ { \alpha \beta } } \end{array}$ . compute positivity certificate
|
| 179 |
+
8: $c [ c _ { \alpha \beta } : ( \alpha , \beta ) \in \widetilde { N } _ { k } ] ; \ y [ \lambda , c ]$ $\triangleright$ linear program variables
|
| 180 |
+
9: $Z \gets [ z _ { \gamma } ] _ { \gamma \in \mathbb { N } _ { k } ^ { n } }$ where $\begin{array} { r } { \lambda - h ( x ) = \sum _ { \gamma \in \mathbb { N } _ { k } ^ { n } } ( z _ { \gamma } ^ { T } y ) x ^ { \gamma } } \end{array}$ $\triangleright$ compute coefficients of $\lambda - h$ in basis
|
| 181 |
+
return $\operatorname* { m i n } \{ \lambda : b = Z y$ , $y = [ \lambda , c ]$ , $c \geq 0 \}$ $\triangleright$ solve LP
|
| 182 |
+
|
| 183 |
+
# 5 QCQP REFORMULATION AND SHOR’S SDP RELAXATION
|
| 184 |
+
|
| 185 |
+
Another way of upper bounding $L ( f _ { d } )$ comes from a further relaxation of (4) to an SDP. We consider the following equivalent formulation where the variables $s _ { i }$ are normalized to lie in the interval $[ - 1 , 1 ]$ , and we rename $t = s _ { 0 }$ :
|
| 186 |
+
|
| 187 |
+
$$
|
| 188 |
+
L ( f _ { d } ) \leq \operatorname* { m a x } \left\{ \frac { 1 } { 2 ^ { d - 1 } } s _ { 0 } ^ { T } W _ { 1 } ^ { T } \prod _ { i = 1 } ^ { d - 1 } \mathrm { D i a g } ( s _ { i } + 1 ) W _ { i + 1 } ^ { T } : - 1 \leq s _ { i } \leq 1 \right\}
|
| 189 |
+
$$
|
| 190 |
+
|
| 191 |
+
Any polynomial optimization problem like (11) can be cast as a (possibly non-convex) quadratically constrained quadratic program (QCQP) by introducing new variables and quadratic constraints. This is a well-known procedure described in Park & Boyd (2017, Section 2.1). When $d = 2$ problem (11) is already a QCQP (for the $\ell _ { \infty }$ and $\ell _ { 2 }$ -norm cases) and no modification is necessary.
|
| 192 |
+
|
| 193 |
+
QCQP reformulation. We illustrate the case $d = 3$ where we have the variables $s _ { 1 } , s _ { 2 }$ corresponding to the first and second hidden layer and a variable $s _ { 0 }$ corresponding to the input. The norm-gradient polynomial in this case is cubic, and it can be rewritten as a quadratic polynomial by introducing new variables corresponding to the product of the first and second hidden layer variables.
|
| 194 |
+
|
| 195 |
+
More precisely the introduction of a variable $s _ { 1 , 2 }$ with quadratic constraint $s _ { 1 , 2 } = \mathrm { v e c } ( s _ { 1 } s _ { 2 } ^ { T } )$ allows us to write the objective (11) as a quadratic polynomial. The problem then becomes a QCQP with variable $y = [ 1 , s _ { 0 } , s _ { 1 } , s _ { 2 } , s _ { 1 , 2 } ]$ of dimension $1 + n + n _ { 1 } n _ { 2 }$ .
|
| 196 |
+
|
| 197 |
+
SDP relaxation. Any quadratic objective and constraints can then be relaxed to linear constraints on the positive semidefinite variable $y y ^ { T } = X \succcurlyeq 0$ yielding the so-called Shor’s relaxation of (11) (Park & Boyd, 2017, Section 3.3). When $d = 2$ the resulting SDP corresponds precisely to the one studied in Raghunathan et al. (2018a). This resolves a common misconception (Raghunathan et al., 2018b) that this approach is only limited to networks with one hidden layer.
|
| 198 |
+
|
| 199 |
+
Note that in our setting we are only interested in the optimal value rather than the optimizers, so there is no need to extract a solution for (11) from that of the SDP relaxation.
|
| 200 |
+
|
| 201 |
+
Drawback. This approach includes a further relaxation step from (11), thus being fundamentally limited in how tightly it can upper bound the value of $L ( f _ { d } )$ . Moreover when compared to LP solvers, off-the-shelf semidefinite programming solvers are, in general, much more limited in the number of variables they can efficiently handle.
|
| 202 |
+
|
| 203 |
+
In the case $d = 2$ this relaxation provides a constant factor approximation to the original QCQP (Ye, 1999). Further approximation quality results for such hierarchical optimization approaches to NP-hard problems are out of the scope of this work.
|
| 204 |
+
|
| 205 |
+
Relation to sum-of-squares. The QCQP approach might appear fundamentaly different to the hierarchical optimization approaches to POPs, like the one described in Section 3. However, it is known that Shor’s SDP relaxation corresponds exactly to the first degree of the SOS hierarchical SDP solution to the QCQP relaxation (Lasserre, 2000). Thus, the approach in section 3 and the one in this section are, in essence, the same; they only differ in the choice of polynomial positivity certificate.
|
| 206 |
+
|
| 207 |
+
# 6 RELATED WORK
|
| 208 |
+
|
| 209 |
+
Estimation of $L ( f _ { d } )$ with $\ell _ { 2 }$ -norm is studied by Virmaux & Scaman (2018); Combettes & Pesquet (2019); Fazlyab et al. (2019); Jin & Lavaei (2018). The method SeqLip proposed in Virmaux & Scaman (2018) has the drawback of not providing true upper bounds. It is in fact a heuristic method for solving (4) but which provides no guarantees and thus can not be used for robustness certification. In contrast the LipSDP method of Fazlyab et al. (2019) provides true upper bounds on $L ( f _ { d } )$ and in practice shows superior performance over both SeqLip and CPLip (Combettes & Pesquet, 2019).
|
| 210 |
+
|
| 211 |
+
Despite the accurate estimation of LipSDP, its formulation is limited to the $\ell _ { 2 }$ -norm. The only estimate available for other $\ell _ { p }$ -norms comes from the equivalence of norms in euclidean spaces. For instance, we can obtain an upper bound for the $\ell _ { \infty }$ -norm after multiplying the $\ell _ { 2 }$ Lipschitz constant upper bound by the square root of the input dimension. The resulting bound can be rather loose and our experiments in section 7 confirm the issue. In contrast, our proposed approach LiPopt can acommodate any norm whose unit ball can be described via polynomial inequalities.
|
| 212 |
+
|
| 213 |
+
Let us point to one key advantage of LiPopt, compared to LipSDP (Jin & Lavaei, 2018; Fazlyab et al., 2019). In the context of robustness certification we are given a sample $x ^ { \sharp }$ and a ball of radius $\epsilon$ around it. Computing an upper bound on the local Lipschitz constant in this subset, rather than a global one, can provide a larger region of certified robustness. Taking into account the restricted domain we can refine the bounds in our POP (see remark in section 1). This potentially yields a tighter estimate of the local Lipschitz constant. On the other hand, it is not clear how to include such additional information in LipSDP, which only computes one global bound on the Lipschitz constant for the unconstrained network.
|
| 214 |
+
|
| 215 |
+
Raghunathan et al. (2018a) find an upper bound for $L ( f _ { d } )$ with $\ell _ { \infty }$ metric starting from problem (4) but only in the context of one-hidden-layer networks $\ Q = 2 ,$ ). To compute such bound they use its corresponding Shor’s relaxation and obtain as a byproduct a differentiable regularizer for training networks. They claim such approach is limited to the setting $d = 2$ but, as we remark in section 5, it is just a particular instance of the SDP relaxation method for QCQPs arising from a polynomial optimization problem. We find that this method fits into the LiPopt framework, using SOS certificates instead of Krivine’s. We expect that the SDP-based bounds described in 5 can also be used as regularizers promoting robustness.
|
| 216 |
+
|
| 217 |
+
Weng et al. (2018) provide an upper bound on the local Lipschitz constant for networks based on a sequence of ad-hoc bounding arguments, which are particular to the choice of ReLU activation function. In contrast, our approach applies in general to activations whose derivative is bounded.
|
| 218 |
+
|
| 219 |
+
# 7 EXPERIMENTS
|
| 220 |
+
|
| 221 |
+
We consider the following estimators of $L ( f _ { d } )$ with respect to the $\ell _ { \infty }$ norm:
|
| 222 |
+
|
| 223 |
+
<table><tr><td rowspan=1 colspan=1>Name</td><td rowspan=1 colspan=1>Description</td></tr><tr><td rowspan=1 colspan=1>SDP</td><td rowspan=1 colspan=1>Upper bound arising from the solution of the SDP relaxation described in Sec-tion 5</td></tr><tr><td rowspan=1 colspan=1>LipOpt-k</td><td rowspan=1 colspan=1>Upper bound arising from the k-th degree of the LP hierarchy (6) based on thesparse Krivine Positivstellenstatz.</td></tr><tr><td rowspan=1 colspan=1>Lip-SDP</td><td rowspan=1 colspan=1>Upper bound from Fazlyab et al. (2019) multiplied √d where d is the inputdimension of the network.</td></tr><tr><td rowspan=1 colspan=1>UBP</td><td rowspan=1 colspan=1>Upper bound determined by the product of the layer-wise Lipschitz constantswith loometric</td></tr><tr><td rowspan=1 colspan=1>LBS</td><td rowspan=1 colspan=1>Lower bound obtained by sampling 5oooO random points around zero, andevaluating the dual norm of the gradient</td></tr></table>
|
| 224 |
+
|
| 225 |
+
# 7.1 EXPERIMENTS ON RANDOM NETWORKS
|
| 226 |
+
|
| 227 |
+
We compare the bounds obtained by the algorithms described above on networks with random weights and either one or two hidden layers. We define the sparsity level of a network as the maximum number of neurons any neuron in one layer is connected to in the next layer. For example, the network represented on Figure 1 has sparsity 2. The non-zero weights of network’s $i$ -th layer are sampled uniformly in $[ - \frac { \breve { 1 } } { \sqrt { n _ { i } } } , \frac { 1 } { \sqrt { n _ { i } } } ]$ where $n _ { i }$ is the number of neurons in layer $i$ .
|
| 228 |
+
|
| 229 |
+
For different configurations of width and sparsity, we generate 10 random networks and average the obtained Lipschitz bounds. For better comparison, we plot the relative error. Since we do not know the true Lipschitz constant, we cannot compute the true relative error. Instead, we take as reference the lower bound given by LBS. Figures 3 and 5 show the relative error, i.e., $( \hat { L } - L _ { L B S } ) / L _ { L B S }$ where $L _ { L B S }$ is the lower bound computed by LBS and $\hat { L }$ is the estimated upper bound. Figures 9 and 10 in Appendix C we show the values of the computed Lipschitz bounds for 1 and 2 hidden layers respectively.
|
| 230 |
+
|
| 231 |
+
When the chosen degree for LiPopt-k is the smallest as possible, i.e., equal to the depth of the network, we observe that the method is already competitive with the SDP method, especially in the case of 2 hidden layers. When we increment the degree by 1, LiPopt-k becomes uniformly better than SDP over all tested configurations. We remark that the upper bounds given by UBP are too large to be shown in the plots. Similarly, for the 1-hidden layer networks, the bounds from LipSDP are too large to be plotted.
|
| 232 |
+
|
| 233 |
+
Finally, we measured the computation time of the different methods on each tested network (Figures 4 and 6). We observe that the computation time for LiPopt-k heavily depends on the network sparsity, which reflects the fact that such structure is exploited in the algorithm. In contrast, the time required for SDP does not depend on the sparsity, but only on the size of the network. Therefore as the network size grows (with fixed sparsity level), LipOpt-k obtains a better upper bound and runs faster. Also, with our method, we see that it is possible to increase the computation power in order to compute tighter bounds when required, making it more flexible than SDP in terms of computation/accuracy tradeoff. LiPopt uses the Gurobi LP solver, while SDP uses Mosek. All methods run on a single machine with Core i7 2.8Ghz quad-core processor and 16Gb of RAM.
|
| 234 |
+
|
| 235 |
+

|
| 236 |
+
Figure 3: Lipschitz approximated relative error for 1-hidden layer networks
|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
Figure 4: Computation times for 1-hidden layer networks (seconds)
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
Figure 5: Lipschitz approximated relative error for 2-hidden layer networks
|
| 243 |
+
|
| 244 |
+

|
| 245 |
+
Figure 6: Computation times for 2-hidden layer networks (seconds)
|
| 246 |
+
|
| 247 |
+
# 7.2 EXPERIMENTS ON TRAINED NETWORKS
|
| 248 |
+
|
| 249 |
+
Similarly, we compare these methods on networks trained on MNIST. The architecture we use is a fully connected network with two hidden layers with 300 and 100 neurons respectively, and with one-hot output of size 10. Since the output is multi-dimensional, we restrict the network to a single output, and estimate the Lipschitz constant with respect to label 8.
|
| 250 |
+
|
| 251 |
+
Moreover, in order to improve the scalability of our method, we train the network using the pruning strategy described in Han et al. $( 2 0 1 5 ) ^ { 2 }$ . After training the full network using a standard technique, the weights of smallest magnitude are set to zero. Then, the network is trained for additional iterations, only updating the nonzero parameters. Doing so, we were able to remove $9 5 \%$ of the weights, while preserving the same test accuracy. We recorded the Lipschitz bounds for various methods in Table 7.2. We observe clear improvement of the Lipschitz bound obtained from LiPopt-k compared to SDP method, even when using $k = 3$ . Also note that the input dimension is too large for the method Lip-SDP to provide competitive bound, so we do not provide the obtained bound for this method.
|
| 252 |
+
|
| 253 |
+
<table><tr><td rowspan=1 colspan=1>Algorithm</td><td rowspan=1 colspan=1>LBS</td><td rowspan=1 colspan=1>LiPopt-4</td><td rowspan=1 colspan=1>LiPopt-3</td><td rowspan=1 colspan=1>SDP</td><td rowspan=1 colspan=1>UBP</td></tr><tr><td rowspan=1 colspan=1>Lipschitz bound</td><td rowspan=1 colspan=1>84.2</td><td rowspan=1 colspan=1>88.3</td><td rowspan=1 colspan=1>94.6</td><td rowspan=1 colspan=1>98.8</td><td rowspan=1 colspan=1>691.5</td></tr></table>
|
| 254 |
+
|
| 255 |
+
# 7.3 ESTIMATING LOCAL LIPSCHITZ CONSTANTS WITH LIPOPT
|
| 256 |
+
|
| 257 |
+
In the of section 7.1, we study the improvement on the upper bound obtained by LiPopt, when we incorporate tighter upper and lower bounds on the variables $s _ { i }$ of the polynomial optimization problem (4). Such bounds arise from the limited range that the pre-activation values of the network can take, when the input is limited to an $\ell _ { \infty }$ -norm ball of radius $\epsilon$ centered at an arbitrary point $x _ { 0 }$ .
|
| 258 |
+
|
| 259 |
+
The algorithm that computes upper and lower bounds on the pre-activation values is fast (it has the same complexity as a forward pass) and is described, for example, in Wong & Kolter (2018). The variables $s _ { i }$ correspond to the value of the derivative of the activation function. For activations like ELU or ReLU, their derivative is monotonically increasing, so we need only evaluate it at the upper and lower bounds of the pre-activation values to obtain corresponding bounds for the variables $s _ { i }$ .
|
| 260 |
+
|
| 261 |
+
We plot the local upper bounds obtained by LiPopt-3 for increasing values of the radius $\epsilon$ , the bound for the global constant (given by LiPopt-3) and the lower bound on the local Lipschitz constant obtained by sampling in the $\epsilon$ -neighborhood (LBS). We sample 15 random networks and plot the average values obtained. We observe clear gap between both estimates, which shows that larger certified balls could be obtained with such method in the robustness certification applications.
|
| 262 |
+
|
| 263 |
+

|
| 264 |
+
Figure 7: Global vs local Lipschitz constant bounds for 1-hidden layer networks
|
| 265 |
+
|
| 266 |
+

|
| 267 |
+
Figure 8: Global vs local Lipschitz constant bounds for 2-hidden layer networks
|
| 268 |
+
|
| 269 |
+
# 8 CONCLUSION AND FUTURE WORK
|
| 270 |
+
|
| 271 |
+
In this work, we have introduced a general approach for computing an upper bound on the Lipschitz constant of neural networks. This approach is based on polynomial positivity certificates and generalizes some existing methods available in the literature. We have empirically demonstrated that it can tightly upper bound such constant. The resulting optimization problems are computationally expensive but the sparsity of the network can reduce this burden.
|
| 272 |
+
|
| 273 |
+
In order to further scale such methods to larger and deeper networks, we are interested in several possible directions: $( i )$ divide-and-conquer approaches splitting the computation on sub-networks in the same spirit of Fazlyab et al. (2019), $( i i )$ exploiting parallel optimization algorithms leveraging the structure of the polynomials, $( i i i )$ custom optimization algorithms with low-memory costs such as Frank-wolfe-type methods for SDP (Yurtsever et al., 2019) as well as stochastic handling of constraints (Fercoq et al., 2019) and $( i v )$ , exploting the symmetries in the polynomial that arise from weight sharing in typical network architectures to further reduce the size of the problems.
|
| 274 |
+
|
| 275 |
+
# ACKNOWLEDGMENTS
|
| 276 |
+
|
| 277 |
+
This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement 725594 - time-data) and from the Swiss National Science Foundation (SNSF) under grant number 200021 178865. FL is supported through a PhD fellowship of the Swiss Data Science Center, a joint venture between EPFL and ETH Zurich. VC acknowledges the 2019 Google Faculty Research Award.
|
| 278 |
+
|
| 279 |
+
REFERENCES
|
| 280 |
+
A. Ahmadi and A. Majumdar. Dsos and sdsos optimization: More tractable alternatives to sum of squares and semidefinite optimization. SIAM Journal on Applied Algebra and Geometry, 3(2):193–230, 2019. doi: 10.1137/18M118935X. URL https://doi.org/10.1137/ 18M118935X.
|
| 281 |
+
Cem Anil, James Lucas, and Roger Grosse. Sorting out Lipschitz function approximation. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 291–301, Long Beach, California, USA, 09–15 Jun 2019. PMLR.
|
| 282 |
+
Martin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein generative adversarial networks. ´ In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 214–223, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR.
|
| 283 |
+
Peter L Bartlett, Dylan J Foster, and Matus J Telgarsky. Spectrally-normalized margin bounds for neural networks. In Advances in Neural Information Processing Systems 30, pp. 6240–6249. Curran Associates, Inc., 2017.
|
| 284 |
+
Felix Berkenkamp, Matteo Turchetta, Angela Schoellig, and Andreas Krause. Safe model-based reinforcement learning with stability guarantees. In Advances in Neural Information Processing Systems 30, pp. 908–918. Curran Associates, Inc., 2017.
|
| 285 |
+
Moustapha Cisse, Piotr Bojanowski, Edouard Grave, Yann Dauphin, and Nicolas Usunier. Parseval networks: Improving robustness to adversarial examples. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 854–863, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR.
|
| 286 |
+
Djork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and Accurate Deep Network ´ Learning by Exponential Linear Units (ELUs). arXiv e-prints, art. arXiv:1511.07289, Nov 2015.
|
| 287 |
+
Patrick L. Combettes and Jean-Christophe Pesquet. Lipschitz Certificates for Neural Network Structures Driven by Averaged Activation Operators. arXiv e-prints, art. arXiv:1903.01014, Mar 2019.
|
| 288 |
+
Mahyar Fazlyab, Alexander Robey, Hamed Hassani, Manfred Morari, and George J. Pappas. Efficient and Accurate Estimation of Lipschitz Constants for Deep Neural Networks. arXiv e-prints, art. arXiv:1906.04893, Jun 2019.
|
| 289 |
+
Olivier Fercoq, Ahmet Alacaoglu, Ion Necoara, and Volkan Cevher. Almost surely constrained convex optimization. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 1910–1919, Long Beach, California, USA, 09–15 Jun 2019. PMLR.
|
| 290 |
+
Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations, 2019.
|
| 291 |
+
Bissan Ghaddar, Jakub Marecek, and Martin Mevissen. Optimal power flow as a polynomial optimization problem. IEEE Transactions on Power Systems, 31(1):539–546, 2015.
|
| 292 |
+
Ishaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in Neural Information Processing Systems 30, pp. 5767–5777. Curran Associates, Inc., 2017.
|
| 293 |
+
Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015.
|
| 294 |
+
David Handelman. Representing polynomials by positive linear functions on compact convex polyhedra. Pacific J. Math., 132(1):35–62, 1988. URL https://projecteuclid.org: 443/euclid.pjm/1102689794.
|
| 295 |
+
Stephen Jose Hanson and Lorien Y. Pratt. Comparing biases for minimal network construction with back-propagation. In Advances in Neural Information Processing Systems 1, pp. 177–185. Morgan-Kaufmann, 1989.
|
| 296 |
+
|
| 297 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Conference on Computer Vision and Pattern Recognition, pp. 770–778, 06 2016. doi: 10.1109/CVPR.2016.90.
|
| 298 |
+
|
| 299 |
+
Todd Huster, Cho-Yu Jason Chiang, and Ritu Chadha. Limitations of the Lipschitz constant as a defense against adversarial examples. arXiv e-prints, art. arXiv:1807.09705, Jul 2018.
|
| 300 |
+
|
| 301 |
+
Ming Jin and Javad Lavaei. Stability-certified reinforcement learning: A control-theoretic perspective. arXiv e-prints, art. arXiv:1810.11505, Oct 2018.
|
| 302 |
+
|
| 303 |
+
Masakazu Kojima, Sunyoung Kim, and Hayato Waki. Sparsity in sums of squares of polynomials. Mathematical Programming, 103(1):45–62, May 2005. ISSN 1436-4646. doi: 10.1007/s10107-004-0554-3.
|
| 304 |
+
|
| 305 |
+
Jean-Louis Krivine. Anneaux preordonn ´ es. ´ Journal d’analyse mathematique ´ , 12:p. 307–326, 1964.
|
| 306 |
+
|
| 307 |
+
J. B. Lasserre. Convergent lmi relaxations for nonconvex quadratic programs. In Proceedings of the 39th IEEE Conference on Decision and Control (Cat. No.00CH37187), volume 5, pp. 5041–5046 vol.5, Dec 2000. doi: 10.1109/CDC.2001.914738.
|
| 308 |
+
|
| 309 |
+
Jean B Lasserre. Convergent sdp-relaxations in polynomial optimization with sparsity. SIAM Journal on Optimization, 17(3):822–843, 2006.
|
| 310 |
+
|
| 311 |
+
Jean Bernard Lasserre. An Introduction to Polynomial and Semi-Algebraic Optimization. Cambridge Texts in Applied Mathematics. Cambridge University Press, 2015. doi: 10.1017/ CBO9781107447226.
|
| 312 |
+
|
| 313 |
+
Y. Lecun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, Nov 1998. doi: 10.1109/5.726791.
|
| 314 |
+
|
| 315 |
+
Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In International Conference on Learning Representations, 2018.
|
| 316 |
+
|
| 317 |
+
Jaehyun Park and Stephen Boyd. General heuristics for nonconvex quadratically constrained quadratic programming. arXiv preprint arXiv:1703.07870, 2017.
|
| 318 |
+
|
| 319 |
+
Aditi Raghunathan, Jacob Steinhardt, and Percy Liang. Certified defenses against adversarial examples. In International Conference on Learning Representations, 2018a.
|
| 320 |
+
|
| 321 |
+
Aditi Raghunathan, Jacob Steinhardt, and Percy S Liang. Semidefinite relaxations for certifying robustness to adversarial examples. In Advances in Neural Information Processing Systems, pp. 10877–10887, 2018b.
|
| 322 |
+
|
| 323 |
+
Gilbert Stengle. A nullstellensatz and a positivstellensatz in semialgebraic geometry. Mathematische Annalen, 207(2):87–97, Jun 1974. ISSN 1432-1807. doi: 10.1007/BF01362149.
|
| 324 |
+
|
| 325 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014.
|
| 326 |
+
|
| 327 |
+
Aladin Virmaux and Kevin Scaman. Lipschitz regularity of deep neural networks: analysis and efficient estimation. In Advances in Neural Information Processing Systems 31, pp. 3835–3844. Curran Associates, Inc., 2018.
|
| 328 |
+
|
| 329 |
+
H. Waki, S. Kim, M. Kojima, and M. Muramatsu. Sums of squares and semidefinite program relaxations for polynomial optimization problems with structured sparsity. SIAM Journal on Optimization, 17(1):218–242, 2006. doi: 10.1137/050623802.
|
| 330 |
+
|
| 331 |
+
Zizhuo Wang, Song Zheng, Stephen Boyd, and Yinyu Ye. Further relaxations of the sdp approach to sensor network localization. Tech. Rep., 2006.
|
| 332 |
+
|
| 333 |
+
Tillmann Weisser, Jean B Lasserre, and Kim-Chuan Toh. Sparse-bsos: a bounded degree sos hierarchy for large scale polynomial optimization with sparsity. Mathematical Programming Computation, 10(1):1–32, 2018.
|
| 334 |
+
|
| 335 |
+
Lily Weng, Huan Zhang, Hongge Chen, Zhao Song, Cho-Jui Hsieh, Luca Daniel, Duane Boning, and Inderjit Dhillon. Towards fast computation of certified robustness for ReLU networks. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 5276–5285, Stockholmsmassan, Stockholm Sweden, 10–15 ¨ Jul 2018. PMLR.
|
| 336 |
+
|
| 337 |
+
Eric Wong and Zico Kolter. Provable defenses against adversarial examples via the convex outer adversarial polytope. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 5286–5295, Stockholmsmassan, ¨ Stockholm Sweden, 10–15 Jul 2018. PMLR.
|
| 338 |
+
|
| 339 |
+
Eric Wong, Frank Schmidt, and Zico Kolter. Wasserstein adversarial examples via projected Sinkhorn iterations. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 6808–6817, Long Beach, California, USA, 09–15 Jun 2019. PMLR.
|
| 340 |
+
|
| 341 |
+
Saining Xie, Alexander Kirillov, Ross Girshick, and Kaiming He. Exploring Randomly Wired Neural Networks for Image Recognition. International Conference on Computer Vision, Apr 2019.
|
| 342 |
+
|
| 343 |
+
Zhengfeng Yang, Chao Huang, Xin Chen, Wang Lin, and Zhiming Liu. A linear programming relaxation based approach for generating barrier certificates of hybrid systems. In John Fitzgerald, Constance Heitmeyer, Stefania Gnesi, and Anna Philippou (eds.), FM 2016: Formal Methods, pp. 721–738, Cham, 2016. Springer International Publishing. ISBN 978-3-319-48989-6.
|
| 344 |
+
|
| 345 |
+
Yinyu Ye. Approximating quadratic programming with bound and quadratic constraints. Mathematical Programming, 84(2):219–226, Feb 1999. ISSN 1436-4646. doi: 10.1007/s10107980012a.
|
| 346 |
+
|
| 347 |
+
Alp Yurtsever, Olivier Fercoq, and Volkan Cevher. A conditional-gradient-based augmented lagrangian framework. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 7272–7281, Long Beach, California, USA, 09–15 Jun 2019. PMLR.
|
| 348 |
+
|
| 349 |
+
Y. Zhang, Z. Yang, W. Lin, H. Zhu, X. Chen, and X. Li. Safety verification of nonlinear hybrid systems based on bilinear programming. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 37(11):2768–2778, Nov 2018. doi: 10.1109/TCAD.2018.2858383.
|
| 350 |
+
|
| 351 |
+
# A PROOF OF THEOREM 1
|
| 352 |
+
|
| 353 |
+
Theorem. Let $f$ be a differentiable and Lipschitz continuous function on an open, convex subset $\mathcal { X }$ of a euclidean space. Let $\| \cdot \|$ be the dual norm. The Lipschitz constant of $f$ is given by
|
| 354 |
+
|
| 355 |
+
$$
|
| 356 |
+
L ( f ) = \operatorname* { s u p } _ { x \in \mathcal { X } } \| \nabla f ( x ) \| _ { * }
|
| 357 |
+
$$
|
| 358 |
+
|
| 359 |
+
Proof. First we show that $L ( f ) \leq \operatorname* { s u p } _ { x \in \mathcal { X } } \left\| \nabla f ( x ) \right\| _ { * }$ .
|
| 360 |
+
|
| 361 |
+
$$
|
| 362 |
+
\begin{array} { r l } { | f ( y ) - f ( x ) | = \displaystyle \left. \int _ { 0 } ^ { 1 } \nabla f ( ( 1 - t ) x + t y ) ^ { T } ( y - x ) d t \right. } & { } \\ { \displaystyle } & { \le \displaystyle \int _ { 0 } ^ { 1 } \left. \nabla f ( ( 1 - t ) x + t y ) ^ { T } ( y - x ) \right. d t } \\ { \displaystyle } & { \le \displaystyle \int _ { 0 } ^ { 1 } \| \nabla f ( ( 1 - t ) x + t y ) \| _ { * } d t \| y - x \| } \\ { \displaystyle } & { \le \operatorname* { s u p } _ { x \in \mathcal { X } } \| \nabla f ( x ) \| _ { * } \| y - x \| } \end{array}
|
| 363 |
+
$$
|
| 364 |
+
|
| 365 |
+
were we have used the convexity of $\mathcal { X }$ .
|
| 366 |
+
|
| 367 |
+
Now we show the reverse inequality $L ( f ) \geq \operatorname* { s u p } _ { x \in \mathcal { X } } \| \nabla f ( x ) \| _ { * }$ . To this end, we show that for any positive $\epsilon$ , we have that $L ( f ) \geq \operatorname* { s u p } _ { x \in \mathcal { X } } \| \nabla f ( x ) \| _ { * } ^ { - } - \epsilon$ .
|
| 368 |
+
|
| 369 |
+
Let $z \in \mathcal { X }$ be such that $\begin{array} { r } { \| \nabla f ( z ) \| _ { * } \geq \operatorname* { s u p } _ { x \in \mathcal { X } } \| \nabla f ( x ) \| _ { * } - \epsilon } \end{array}$ . Because $\mathcal { X }$ is open, there exists a sequence $\{ h _ { k } \} _ { k = 1 } ^ { \infty }$ with the following properties:
|
| 370 |
+
|
| 371 |
+
1. $\langle h _ { k } , \nabla f ( z ) \rangle = \| h _ { k } \| \| \nabla f ( z ) \| _ { * }$
|
| 372 |
+
2. $z + h _ { k } \in \mathcal { X }$
|
| 373 |
+
3. $\scriptstyle \operatorname* { l i m } _ { k \to \infty } h _ { k } = 0$ .
|
| 374 |
+
|
| 375 |
+
By definition of the gradient, there exists a function $\delta$ such that $\begin{array} { r } { \operatorname* { l i m } _ { h 0 } \delta ( h ) = 0 } \end{array}$ and the following holds:
|
| 376 |
+
|
| 377 |
+
$$
|
| 378 |
+
f ( z + h ) = f ( z ) + \langle h , \nabla f ( z ) \rangle + \delta ( h ) \| h \|
|
| 379 |
+
$$
|
| 380 |
+
|
| 381 |
+
For our previously defined iterates $h _ { k }$ we then have
|
| 382 |
+
|
| 383 |
+
$$
|
| 384 |
+
\Rightarrow | f ( z + h _ { k } ) - f ( z ) | = | \| h _ { k } \| \| \nabla f ( z ) \| _ { * } + \delta ( h _ { k } ) \| h _ { k } \| |
|
| 385 |
+
$$
|
| 386 |
+
|
| 387 |
+
Dividing both sides by $\| h _ { k } \|$ and using the definition of $L ( f )$ we finally get
|
| 388 |
+
|
| 389 |
+
$$
|
| 390 |
+
\begin{array} { r l } & { \Rightarrow L ( f ) \geq \left| \frac { f ( z + h _ { k } ) - f ( z ) } { \| h _ { k } \| } \right| = \| \| \nabla f ( z ) \| _ { * } + \delta ( h _ { k } ) \| } \\ & { \Rightarrow L ( f ) \geq \underset { k \to \infty } { \operatorname* { l i m } } \left| \| f ( z ) \| _ { * } + \delta ( h _ { k } ) \right| = \| \nabla f ( z ) \| _ { * } } \\ & { \Rightarrow L ( f ) \geq \underset { x \in \mathcal { X } } { \operatorname* { s u p } } \| \nabla f ( x ) \| _ { * } - \epsilon } \end{array}
|
| 391 |
+
$$
|
| 392 |
+
|
| 393 |
+
# B PROOF OF PROPOSITION 1
|
| 394 |
+
|
| 395 |
+
Proposition. Let $f _ { d }$ be a dense network (all weights are nonzero). The following sets, indexed by $i = 1 , \ldots , n _ { d } ,$ form a valid sparsity pattern for the norm-gradient polynomial of the network $f _ { d }$ :
|
| 396 |
+
|
| 397 |
+
$$
|
| 398 |
+
I _ { i } : = \left\{ s _ { ( d - 1 , i ) } \right\} \cup \left\{ s _ { ( j , k ) } : t h e r e \ e x i s t s a \ d i r e c t e d p a t h f r o m \ s _ { ( j , k ) } \ t o \ s _ { ( d - 1 , i ) } \ i n \ G _ { d } \right\}
|
| 399 |
+
$$
|
| 400 |
+
|
| 401 |
+
Proof. First we show that $\cup _ { i = 1 } ^ { m } I _ { i } = I$ . This comes from the fact that any neuron in the network is connected to at least one neuron in the last layer. Otherwise such neuron could be removed from the network altogether.
|
| 402 |
+
|
| 403 |
+
Now we show the second property of a valid sparsity pattern. Note that the norm-gradient polynomial is composed of monomials corresponding to the product of variables in a path from input to a final neuron. This imples that if we let $p _ { i }$ be the sum of all the terms that involve the neuron $s _ { ( d - 1 , i ) }$ we have that $p = \sum _ { i } p _ { i }$ , and $p _ { i }$ only depends on the variables in $I _ { i }$ .
|
| 404 |
+
|
| 405 |
+
We now show the last property of the valid sparsity pattern. This is the only part where we use that the network is dense. For any network architecture the first two conditions hold. We will use the fact that the maximal cliques of a chordal graph form a valid sparsity pattern (see for example Lasserre (2006)).
|
| 406 |
+
|
| 407 |
+
Because the network is dense, we see that the clique $I _ { i }$ is composed of the neuron in the last layer $s _ { ( d - 1 , i ) }$ and all neurons in the previous layers. Now consider the extension of the computational graph $\hat { G } _ { d } = ( V , \hat { E } )$ where
|
| 408 |
+
|
| 409 |
+
$$
|
| 410 |
+
\hat { E } = E \cup \{ ( s _ { j , k } , s _ { l , m } ) : j , l \leq d - 2 ) \}
|
| 411 |
+
$$
|
| 412 |
+
|
| 413 |
+
which consists of adding all the edges between the neurons that are not in the last layer. We show that this graph is chordal. Let $( a _ { 1 } , \ldots , a _ { r } , a _ { 1 } )$ be a cycle of length at least 4 $( r \geq 4 )$ ). notice that because neurons in the last layer are not connected between them in $\hat { G }$ , no two consecutive neurons in this cycle belong to the last layer. This implies that in the subsequence $( a _ { 1 } , a _ { 2 } , a _ { 3 } , a _ { 4 } , a _ { 5 } )$ at most three belong to the last layer. A simple analysis of all cases implies that it contains at least two nonconsecutive neurons not in the last layer. Neurons not in the last layer are always connected in $\hat { G }$ . This constitutes a chord. This shows that $\hat { G } _ { d }$ is a chordal graph. Its maximal cliques correspond exactly to the sets in proposition.
|
| 414 |
+
|
| 415 |
+

|
| 416 |
+
Figure 9: Lipschitz bound comparison for 1-hidden layer networks
|
| 417 |
+
|
| 418 |
+

|
| 419 |
+
Figure 10: Lipschitz bound comparison for 2-hidden layer networks
|
parse/train/rJe4_xSFDB/rJe4_xSFDB_content_list.json
ADDED
|
@@ -0,0 +1,2027 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "LIPSCHITZ CONSTANT ESTIMATION OF NEURAL NETWORKS VIA SPARSE POLYNOMIAL OPTIMIZATION ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Fabian Latorre, Paul Rolland and Volkan Cevher EPFL, Switzerland firstname.lastname@epfl.ch ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
169,
|
| 20 |
+
527,
|
| 21 |
+
212
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
248,
|
| 32 |
+
544,
|
| 33 |
+
263
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "We introduce LiPopt, a polynomial optimization framework for computing increasingly tighter upper bounds on the Lipschitz constant of neural networks. The underlying optimization problems boil down to either linear (LP) or semidefinite (SDP) programming. We show how to use the sparse connectivity of a network, to significantly reduce the complexity of computation. This is specially useful for convolutional as well as pruned neural networks. We conduct experiments on networks with random weights as well as networks trained on MNIST, showing that in the particular case of the $\\ell _ { \\infty }$ -Lipschitz constant, our approach yields superior estimates, compared to baselines available in the literature. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
232,
|
| 42 |
+
280,
|
| 43 |
+
764,
|
| 44 |
+
406
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
433,
|
| 55 |
+
336,
|
| 56 |
+
449
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "We consider a neural network $f _ { d }$ defined by the recursion: ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
465,
|
| 66 |
+
555,
|
| 67 |
+
479
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "equation",
|
| 73 |
+
"img_path": "images/ded54dbcbd18d154034b9d67f56076860b19495ceaece4b0a3a42c57579b382e.jpg",
|
| 74 |
+
"text": "$$\nf _ { 1 } ( x ) : = W _ { 1 } x \\qquad f _ { i } ( x ) : = W _ { i } \\sigma ( f _ { i - 1 } ( x ) ) , \\quad i = 2 , \\ldots , d\n$$",
|
| 75 |
+
"text_format": "latex",
|
| 76 |
+
"bbox": [
|
| 77 |
+
302,
|
| 78 |
+
487,
|
| 79 |
+
696,
|
| 80 |
+
505
|
| 81 |
+
],
|
| 82 |
+
"page_idx": 0
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"type": "text",
|
| 86 |
+
"text": "for an integer $d$ larger than 1, matrices $\\{ W _ { i } \\} _ { i = 1 } ^ { d }$ of appropriate dimensions and an activation function $\\sigma$ , understood to be applied element-wise. We refer to $d$ as the depth, and we focus on the case where $f _ { d }$ has a single real value as output. ",
|
| 87 |
+
"bbox": [
|
| 88 |
+
174,
|
| 89 |
+
511,
|
| 90 |
+
825,
|
| 91 |
+
554
|
| 92 |
+
],
|
| 93 |
+
"page_idx": 0
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"type": "text",
|
| 97 |
+
"text": "In this work, we address the problem of estimating the Lipschitz constant of the network $f _ { d }$ . A function $f$ is Lipschitz continuous with respect to a norm $\\left\\| \\cdot \\right\\|$ if there exists a constant $L$ such that for all $x , y$ we have $| f ( x ) - f ( y ) | \\leq L \\| x - y \\|$ . The minimum over all such values satisfying this condition is called the Lipschitz constant of $f$ and is denoted by $L ( f )$ . ",
|
| 98 |
+
"bbox": [
|
| 99 |
+
174,
|
| 100 |
+
560,
|
| 101 |
+
825,
|
| 102 |
+
617
|
| 103 |
+
],
|
| 104 |
+
"page_idx": 0
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"type": "text",
|
| 108 |
+
"text": "The Lipschitz constant of a neural network is of major importance in many successful applications of deep learning. In the context of supervised learning, Bartlett et al. (2017) show how it directly correlates with the generalization ability of neural network classifiers, suggesting it as model complexity measure. It also provides a measure of robustness against adversarial perturbations (Szegedy et al., 2014) and can be used to improve such metric (Cisse et al., 2017). Moreover, an upper bound on $L ( f _ { d } )$ provides a certificate of robust classification around data points (Weng et al., 2018). ",
|
| 109 |
+
"bbox": [
|
| 110 |
+
173,
|
| 111 |
+
623,
|
| 112 |
+
823,
|
| 113 |
+
708
|
| 114 |
+
],
|
| 115 |
+
"page_idx": 0
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"type": "text",
|
| 119 |
+
"text": "Another example is the discriminator network of the Wasserstein GAN (Arjovsky et al., 2017), whose Lipschitz constant is constrained to be at most 1. To handle this constraint, researchers have proposed different methods like heuristic penalties (Gulrajani et al., 2017), upper bounds (Miyato et al., 2018), choice of activation function (Anil et al., 2019), among many others. This line of work has shown that accurate estimation of such constant is key to generating high quality images. ",
|
| 120 |
+
"bbox": [
|
| 121 |
+
174,
|
| 122 |
+
713,
|
| 123 |
+
823,
|
| 124 |
+
785
|
| 125 |
+
],
|
| 126 |
+
"page_idx": 0
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"type": "text",
|
| 130 |
+
"text": "Lower bounds or heuristic estimates of $L ( f _ { d } )$ can be used to provide a general sense of how robust a network is, but fail to provide true certificates of robustness to input perturbations. Such certificates require true upper bounds, and are paramount when deploying safety-critical deep reinforcement learning applications (Berkenkamp et al., 2017; Jin & Lavaei, 2018). The trivial upper bound given by the product of layer-wise Lipschitz constants is easy to compute but rather loose and overly pessimistic, providing poor insight into the true robustness of a network (Huster et al., 2018). ",
|
| 131 |
+
"bbox": [
|
| 132 |
+
173,
|
| 133 |
+
790,
|
| 134 |
+
825,
|
| 135 |
+
875
|
| 136 |
+
],
|
| 137 |
+
"page_idx": 0
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"type": "text",
|
| 141 |
+
"text": "Indeed, there is a growing need for methods that provide tighter upper bounds on $L ( f _ { d } )$ , even at the expense of increased complexity. For example Raghunathan et al. (2018a); Jin & Lavaei (2018); Fazlyab et al. (2019) derive upper bounds based on semidefinite programming $( S D P )$ . While expensive to compute, these type of certificates are in practice surprisingly tight. Our work belongs in this vein of research, and aims to overcome some limitations in the current state-of-the-art. ",
|
| 142 |
+
"bbox": [
|
| 143 |
+
176,
|
| 144 |
+
882,
|
| 145 |
+
823,
|
| 146 |
+
924
|
| 147 |
+
],
|
| 148 |
+
"page_idx": 0
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"type": "text",
|
| 152 |
+
"text": "",
|
| 153 |
+
"bbox": [
|
| 154 |
+
171,
|
| 155 |
+
103,
|
| 156 |
+
823,
|
| 157 |
+
132
|
| 158 |
+
],
|
| 159 |
+
"page_idx": 1
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"type": "text",
|
| 163 |
+
"text": "Our Contributions. ",
|
| 164 |
+
"text_level": 1,
|
| 165 |
+
"bbox": [
|
| 166 |
+
174,
|
| 167 |
+
138,
|
| 168 |
+
308,
|
| 169 |
+
154
|
| 170 |
+
],
|
| 171 |
+
"page_idx": 1
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"type": "text",
|
| 175 |
+
"text": ". We present LiPopt, a general approach for upper bounding the Lipschitz constant of a neural network based on a relaxation to a polynomial optimization problem (POP) (Lasserre, 2015). This approach requires only that the unit ball be described with polynomial inequalities, which covers the common $\\ell _ { 2 ^ { - } }$ and $\\ell _ { \\infty }$ -norms. . Based on a theorem due to Weisser et al. (2018), we exploit the sparse connectivity of neural network architectures to derive a sequence of linear programs (LPs) of considerably smaller size than their vanilla counterparts. We provide an asymptotic analysis of the size of such programs, in terms of the number of neurons, depth and sparsity of the network. . Focusing on the $\\ell _ { \\infty }$ -norm, we experiment on networks with random weights and networks trained on MNIST (Lecun et al., 1998). We evaluate different configurations of depth, width and sparsity and we show that the proposed sequence of LPs can provide tighter upper bounds on $\\dot { L } ( f _ { d } )$ compared to other baselines available in the literature. ",
|
| 176 |
+
"bbox": [
|
| 177 |
+
214,
|
| 178 |
+
165,
|
| 179 |
+
825,
|
| 180 |
+
342
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "text",
|
| 186 |
+
"text": "Notation. We denote by $n _ { i }$ the number of columns of the matrix $W _ { i }$ in the definition (1) of the network. This corresponds to the size of the $i$ -th layer, where we identify the input as the first layer. We let $n = n _ { 1 } + . . . + n _ { d }$ be the total number of neurons in the network. For a vector $x$ , $\\operatorname { D i a g } ( x )$ denotes the square matrix with $x$ in its diagonal and zeros everywhere else. For an array $X$ , $\\operatorname { v e c } ( X )$ is the flattened array. The support of a sequence $\\operatorname { s u p p } ( \\alpha )$ is defined as the set of indices $j$ such that $\\alpha _ { j }$ is nonnote by o. For the m $x = [ x _ { 1 } , \\ldots , x _ { n } ]$ a sequence of nonnegative integers . The set of nonnegative integers is $\\gamma = [ \\gamma _ { 1 } , \\dotsc , \\gamma _ { n } ]$ we $x ^ { \\gamma }$ $x _ { 1 } ^ { \\gamma _ { 1 } } x _ { 2 } ^ { \\gamma _ { 2 } } \\ldots x _ { n } ^ { \\gamma _ { n } }$ $\\mathbb { N }$ ",
|
| 187 |
+
"bbox": [
|
| 188 |
+
173,
|
| 189 |
+
353,
|
| 190 |
+
825,
|
| 191 |
+
453
|
| 192 |
+
],
|
| 193 |
+
"page_idx": 1
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"type": "text",
|
| 197 |
+
"text": "Remark. The definition of network (1) covers typical architectures composed of dense and convolutional layers. In general, our proposed approach can be readily extended with minor modifications to any directed acyclic computation graph e.g., residual network architectures (He et al., 2016). ",
|
| 198 |
+
"bbox": [
|
| 199 |
+
174,
|
| 200 |
+
458,
|
| 201 |
+
825,
|
| 202 |
+
501
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "text",
|
| 208 |
+
"text": "2 POLYNOMIAL OPTIMIZATION FORMULATION ",
|
| 209 |
+
"text_level": 1,
|
| 210 |
+
"bbox": [
|
| 211 |
+
174,
|
| 212 |
+
521,
|
| 213 |
+
575,
|
| 214 |
+
536
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "In this section we derive an upper bound on $L ( f _ { d } )$ given by the value of a POP, i.e. the minimum value of a polynomial subject to polynomial inequalities. Our starting point is the following theorem, which casts $\\dot { L } ( f )$ as an optimization problem: ",
|
| 221 |
+
"bbox": [
|
| 222 |
+
174,
|
| 223 |
+
551,
|
| 224 |
+
825,
|
| 225 |
+
594
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 1
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "Theorem 1. Let $f$ be a differentiable and Lipschitz continuous function on an open, convex subset $\\mathcal { X }$ of an euclidean space. Let $\\left\\| \\cdot \\right\\| _ { * }$ be the dual norm. The Lipschitz constant of $f$ is given by ",
|
| 232 |
+
"bbox": [
|
| 233 |
+
173,
|
| 234 |
+
598,
|
| 235 |
+
823,
|
| 236 |
+
627
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 1
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "equation",
|
| 242 |
+
"img_path": "images/60509a44624d170b551ac8124e22f37454b86cf5c67ce09ac35dcfaaec65ac75.jpg",
|
| 243 |
+
"text": "$$\nL ( f ) = \\operatorname* { s u p } _ { x \\in \\mathcal { X } } \\| \\nabla f ( x ) \\| _ { * }\n$$",
|
| 244 |
+
"text_format": "latex",
|
| 245 |
+
"bbox": [
|
| 246 |
+
419,
|
| 247 |
+
633,
|
| 248 |
+
576,
|
| 249 |
+
660
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 1
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "For completeness, we provide a proof in appendix A. In our setting, we assume that the activation function $\\sigma$ is Lipschitz continuous and differentiable. In this case, the assumptions of Theorem 1 are fulfilled because $f _ { d }$ is a composition of activations and linear transformations. The differentiability assumption rules out the common ReLU activation $\\sigma ( x ) = \\operatorname* { m a x } \\{ 0 , x \\}$ , but allows many others such as the exponential linear unit (ELU) (Clevert et al., 2015) or the softplus. ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
672,
|
| 259 |
+
825,
|
| 260 |
+
743
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 1
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "Using the chain rule, the compositional structure of $f _ { d }$ yields the following formula for its gradient: ",
|
| 267 |
+
"bbox": [
|
| 268 |
+
174,
|
| 269 |
+
750,
|
| 270 |
+
821,
|
| 271 |
+
765
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 1
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "equation",
|
| 277 |
+
"img_path": "images/8c315039031f15ba726b0bd654a23f3b741bc72bb3b9c78c76e7d7e1c56f75ac.jpg",
|
| 278 |
+
"text": "$$\n\\nabla f _ { d } ( x ) = W _ { 1 } ^ { T } \\prod _ { i = 1 } ^ { d - 1 } \\operatorname { D i a g } ( \\sigma ^ { \\prime } ( f _ { i } ( x ) ) ) W _ { i + 1 } ^ { T }\n$$",
|
| 279 |
+
"text_format": "latex",
|
| 280 |
+
"bbox": [
|
| 281 |
+
359,
|
| 282 |
+
772,
|
| 283 |
+
638,
|
| 284 |
+
816
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 1
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "For every $i = 1 , \\ldots , d - 1$ we introduce a variable $s _ { i } = \\sigma ^ { \\prime } ( f _ { i } ( x ) )$ corresponding to the derivative of $\\sigma$ at the $i$ -th hidden layer of the network. For activation functions like ELU or softplus, their derivative is bounded between 0 and 1, which implies that $0 \\leq s _ { i } \\leq 1$ . This bound together with the definition of the dual norm $\\| x \\| _ { * } : = \\operatorname* { s u p } _ { \\| t \\| \\leq 1 } t ^ { T } \\bar { x }$ implies the following upper bound of $L ( f _ { d } )$ : ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
174,
|
| 293 |
+
819,
|
| 294 |
+
825,
|
| 295 |
+
878
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 1
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "equation",
|
| 301 |
+
"img_path": "images/62b8f435440d06d49028a508591599cb300936b48d32010bafd9b338fb37e55a.jpg",
|
| 302 |
+
"text": "$$\nL ( f _ { d } ) \\leq \\operatorname* { m a x } \\left\\{ t ^ { T } W _ { 1 } ^ { T } \\prod _ { i = 1 } ^ { d - 1 } \\operatorname { D i a g } ( s _ { i } ) W _ { i + 1 } ^ { T } : 0 \\leq s _ { i } \\leq 1 , \\| t \\| \\leq 1 \\right\\}\n$$",
|
| 303 |
+
"text_format": "latex",
|
| 304 |
+
"bbox": [
|
| 305 |
+
279,
|
| 306 |
+
885,
|
| 307 |
+
718,
|
| 308 |
+
928
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 1
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "We will refer to the polynomial objective of this problem as the norm-gradient polynomial of the network $f _ { d }$ , a central object of study in this work. ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
173,
|
| 317 |
+
103,
|
| 318 |
+
823,
|
| 319 |
+
132
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 2
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "For some frequently used $\\ell _ { p }$ -norms, the constraint $\\| t \\| _ { p } \\leq 1$ can be written with polynomial inequalities. In the rest of this work, we use exclusively the $\\ell _ { \\infty }$ -norm for which $\\| t \\| _ { \\infty } \\dot { \\leq } 1$ is equivalent to the polynomial inequalities $- 1 \\leq t _ { i } \\leq 1$ , for $i = 1 , \\ldots , n _ { 1 }$ . However, note that when $p \\geq 2$ is a positive even integer, $\\| t \\| _ { p } \\leq 1$ is equivalent to a single polynomial inequality $\\| t \\| _ { p } ^ { p } \\leq 1$ , and our proposed approach can be adapted with minimal modifications. ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
173,
|
| 328 |
+
138,
|
| 329 |
+
825,
|
| 330 |
+
208
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 2
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "In such cases, the optimization problem in the right-hand side of (4) is a POP. Optimization of polynomials is a NP-hard problem and we do not expect to have efficient algorithms for solving (4) in this general form. In the next sections we describe LiPopt: a systematic way of obtaining an upper bound on $L ( f _ { d } )$ via tractable approximation methods of the POP (4). ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
173,
|
| 339 |
+
215,
|
| 340 |
+
825,
|
| 341 |
+
272
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 2
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "Local estimation. In many practical escenarios, we have additional bounds on the input of the network. For example, in the case of image classification tasks, valid input is constrained in a hypercube. In the robustness certification task, we are interested in all possible input in a $\\epsilon$ -ball around some data point. In those cases, it is interesting to compute a local Lipschitz constant, that is, the Lipschitz constant of a function restricted to a subset. ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
174,
|
| 350 |
+
279,
|
| 351 |
+
825,
|
| 352 |
+
349
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 2
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "We can achieve this by deriving tighter bounds $0 \\leq l _ { i } \\leq s _ { i } \\leq u _ { i } \\leq 1$ , as a consequence of the restricted input (see for example, Algorithm 1 in Wong & Kolter (2018)). By incorporating this knowledge in the optimization problem (4) we obtain bounds on local Lipschitz constants of $f _ { d }$ . We study this setting and provide numerical experiments in section 7.3. ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
174,
|
| 361 |
+
354,
|
| 362 |
+
825,
|
| 363 |
+
411
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 2
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "Choice of norm. We highlight the importance of computing good upper bounds on $L ( f _ { d } )$ with respect to the $\\ell _ { \\infty }$ -norm. It is one of the most commonly used norms to assess robustness in the adversarial examples literature. Moreover, it has been shown that, in practice, $\\ell _ { \\infty }$ -norm robust networks are also robust in other more plausible measures of perceptibility, like the Wasserstein distance (Wong et al., 2019). This motivates our focus on this choice. ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
173,
|
| 372 |
+
417,
|
| 373 |
+
825,
|
| 374 |
+
488
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 2
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "3 HIERARCHICAL SOLUTION BASED ON A POLYNOMIAL POSITIVITY CERTIFICATE ",
|
| 381 |
+
"text_level": 1,
|
| 382 |
+
"bbox": [
|
| 383 |
+
174,
|
| 384 |
+
508,
|
| 385 |
+
754,
|
| 386 |
+
542
|
| 387 |
+
],
|
| 388 |
+
"page_idx": 2
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"type": "text",
|
| 392 |
+
"text": "For ease of exposition, we rewrite (4) as a POP constrained in $[ 0 , 1 ] ^ { n }$ using the substitution $s _ { 0 } : = ( t +$ $1 ) / 2$ . Denote by $p$ the norm-gradient polynomial, and let $x = [ s _ { 0 } , \\ldots , s _ { d - 1 } ]$ be the concatenation of all variables. Polynomial optimization methods (Lasserre, 2015) start from the observation that a value $\\lambda$ is an upper bound for $p$ over a set $K$ if and only if the polynomial $\\lambda - p$ is positive over $K$ . ",
|
| 393 |
+
"bbox": [
|
| 394 |
+
174,
|
| 395 |
+
558,
|
| 396 |
+
823,
|
| 397 |
+
614
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 2
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "text",
|
| 403 |
+
"text": "In LiPopt, we will employ a well-known classical result in algebraic geometry, the so-called Krivine’s positivity certificate1, but in theory we can use any positivity certificate like sum-of-squares (SOS). The following is a straightforward adaptation of Krivine’s certificate to our setting: ",
|
| 404 |
+
"bbox": [
|
| 405 |
+
174,
|
| 406 |
+
621,
|
| 407 |
+
825,
|
| 408 |
+
664
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 2
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "text",
|
| 414 |
+
"text": "Theorem 2. (Adapted from Krivine (1964); Stengle (1974); Handelman (1988)) If the polynomial $\\lambda - p$ is strictly positive on $[ 0 , 1 ] ^ { n }$ , then there exist finitely many positive weights $c _ { \\alpha \\beta }$ such that ",
|
| 415 |
+
"bbox": [
|
| 416 |
+
171,
|
| 417 |
+
667,
|
| 418 |
+
826,
|
| 419 |
+
696
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 2
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "equation",
|
| 425 |
+
"img_path": "images/129b32c4644953706b16713c0ee5edf6122c045905a283e94383cccc49410b0a.jpg",
|
| 426 |
+
"text": "$$\n\\lambda - p = \\sum _ { ( \\alpha , \\beta ) \\in \\mathbb { N } ^ { 2 n } } c _ { \\alpha \\beta } h _ { \\alpha \\beta } , \\qquad h _ { \\alpha \\beta } ( x ) : = \\prod _ { j = 1 } ^ { n } x _ { j } ^ { \\alpha _ { j } } ( 1 - x _ { j } ) ^ { \\beta _ { j } }\n$$",
|
| 427 |
+
"text_format": "latex",
|
| 428 |
+
"bbox": [
|
| 429 |
+
292,
|
| 430 |
+
704,
|
| 431 |
+
705,
|
| 432 |
+
747
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 2
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "By truncating the degree of Krivine’s positivity certificate (Theorem 2) and minimizing over all possible upper bounds $\\lambda$ we obtain a hierarchy of LP problems (Lasserre, 2015, Section 9): ",
|
| 439 |
+
"bbox": [
|
| 440 |
+
173,
|
| 441 |
+
762,
|
| 442 |
+
825,
|
| 443 |
+
791
|
| 444 |
+
],
|
| 445 |
+
"page_idx": 2
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"type": "equation",
|
| 449 |
+
"img_path": "images/85ab3fa57f224c695d1d082d0c9f29e80081616bfde85f0870f55fdf44cdd098.jpg",
|
| 450 |
+
"text": "$$\n\\theta _ { k } : = \\operatorname* { m i n } _ { c \\geq 0 , \\lambda } \\left\\{ \\lambda : \\lambda - p = \\sum _ { ( \\alpha , \\beta ) \\in \\mathbb { N } _ { k } ^ { 2 n } } c _ { \\alpha \\beta } h _ { \\alpha \\beta } \\right\\}\n$$",
|
| 451 |
+
"text_format": "latex",
|
| 452 |
+
"bbox": [
|
| 453 |
+
343,
|
| 454 |
+
797,
|
| 455 |
+
653,
|
| 456 |
+
848
|
| 457 |
+
],
|
| 458 |
+
"page_idx": 2
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "text",
|
| 462 |
+
"text": "where $\\mathbb { N } _ { k } ^ { 2 n }$ is the set of nonnegative integer sequences of length $2 n$ adding up to at most $k$ . This is indeed a sequence of LPs as the polynomial equality constraint can be implemented by equating coefficients in the canonical monomial basis. For this polynomial equality to be feasible, the degree of the certificate has to be at least that of the norm-gradient polynomial $p$ , which is equal to the depth $d$ . This implies that the first nontrivial bound $( \\theta _ { k } < \\infty )$ ) corresponds to $k = d$ . ",
|
| 463 |
+
"bbox": [
|
| 464 |
+
174,
|
| 465 |
+
856,
|
| 466 |
+
823,
|
| 467 |
+
900
|
| 468 |
+
],
|
| 469 |
+
"page_idx": 2
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "text",
|
| 473 |
+
"text": "",
|
| 474 |
+
"bbox": [
|
| 475 |
+
171,
|
| 476 |
+
103,
|
| 477 |
+
823,
|
| 478 |
+
132
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 3
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "The sequence $\\{ \\theta _ { k } \\} _ { k = 1 } ^ { \\infty }$ is non-incresing and converges to the maximum of the upper bound (4). Note that for any level of the hierarchy, the solution of the LP (6) provides a valid upper bound on $L ( f _ { d } )$ . ",
|
| 485 |
+
"bbox": [
|
| 486 |
+
171,
|
| 487 |
+
138,
|
| 488 |
+
823,
|
| 489 |
+
167
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 3
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "An advantage of using Krivine’s positivity certificate over SOS is that one obtains an LP hierarchy (rather than SDP), for which commercial solvers can reliably handle a large instances. Other positivity certificates offering a similar advantage are the DSOS and SDSOS hierarchies (Ahmadi & Majumdar, 2019), which boil down to LP or second order cone programming (SOCP), respectively. ",
|
| 496 |
+
"bbox": [
|
| 497 |
+
174,
|
| 498 |
+
172,
|
| 499 |
+
825,
|
| 500 |
+
229
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 3
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "Drawback. The size of the LPs given by Krivine’s positivity certificate can become quite large. The dimension of the variable $c$ is $| \\mathbb { N } _ { k } ^ { 2 n } | = { \\dot { \\mathcal { O } } } ( n ^ { k } )$ . For reference, if we consider the MNIST dataset and a one-hidden-layer network with 100 neurons we have $\\left| \\mathbb { N } _ { 2 } ^ { 2 n } \\right| \\approx 1 . 5 \\times 1 0 ^ { 6 }$ while $\\left| \\mathbb { N } _ { 3 } ^ { 2 n } \\right| \\approx 9 . 3 \\times 1 0 ^ { 8 }$ . To make this approach more scalable, in the next section we exploit the sparsity of the polynomial $p$ to find LPs of drastically smaller size than (6), but with similar approximation properties. ",
|
| 507 |
+
"bbox": [
|
| 508 |
+
173,
|
| 509 |
+
236,
|
| 510 |
+
825,
|
| 511 |
+
309
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 3
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "Remark. In order to compute upper bounds for local Lipschitz constants, first obtain tighter bounds $0 \\leq l _ { i } \\leq s _ { i } \\leq u _ { i }$ and then perform the change of variables $\\widetilde { s } _ { i } = ( s _ { i } - l _ { i } ) / ( u _ { i } - l _ { i } )$ to rewrite the problem (4) as a POP constrained on $[ 0 , 1 ] ^ { n }$ . ",
|
| 518 |
+
"bbox": [
|
| 519 |
+
174,
|
| 520 |
+
315,
|
| 521 |
+
823,
|
| 522 |
+
358
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 3
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "text",
|
| 528 |
+
"text": "4 REDUCING THE NUMBER OF VARIABLES ",
|
| 529 |
+
"text_level": 1,
|
| 530 |
+
"bbox": [
|
| 531 |
+
174,
|
| 532 |
+
378,
|
| 533 |
+
540,
|
| 534 |
+
395
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 3
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "text",
|
| 540 |
+
"text": "Many neural network architectures, like those composed of convolutional layers, have a highly sparse connectivity between neurons. Moreover, it has been empirically observed that up to $90 \\%$ of network weights can be pruned (set to zero) without harming accuracy (Frankle & Carbin, 2019). In such cases their norm-gradient polynomial has a special structure that allows polynomial positivity certificates of smaller size than the one given by Krivine’s positivity certificate (Theorem 2). ",
|
| 541 |
+
"bbox": [
|
| 542 |
+
174,
|
| 543 |
+
410,
|
| 544 |
+
825,
|
| 545 |
+
481
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 3
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "In this section, we describe an implementation of LiPopt (Algorithm 1) that exploits the sparsity of the network to decrease the complexity of the LPs (6) given by the Krivine’s positivity certificate. In this way, we obtain upper bounds on $L ( f _ { d } )$ that require less computation and memory. Let us start with the definition of a valid sparsity pattern: ",
|
| 552 |
+
"bbox": [
|
| 553 |
+
174,
|
| 554 |
+
486,
|
| 555 |
+
825,
|
| 556 |
+
542
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 3
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "Definition 1. Let $I = \\{ 1 , \\ldots , n \\}$ and $p$ be a polynomial with variable $x \\in \\mathbb { R } ^ { n }$ . A valid sparsity pattern of $p$ is a sequence $\\{ I _ { i } \\} _ { i = 1 } ^ { m }$ of subsets of $I$ , called cliques, such that $\\textstyle \\bigcup _ { i = 1 } ^ { m } I _ { i } = I$ and: ",
|
| 563 |
+
"bbox": [
|
| 564 |
+
174,
|
| 565 |
+
547,
|
| 566 |
+
821,
|
| 567 |
+
578
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 3
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "text",
|
| 573 |
+
"text": ". $\\textstyle p = \\sum _ { i = 1 } ^ { m } p _ { i }$ where $p _ { i }$ is a polynomial that depends only on the variables $\\{ x _ { j } : j \\in I _ { i } \\}$ . for all $i = 1 , \\ldots , m - 1$ there is an $l \\leq i$ such that $\\begin{array} { r } { ( I _ { i + 1 } \\cap \\bigcup _ { r = 1 } ^ { i } I _ { r } ) \\subseteq I _ { l } } \\end{array}$ ",
|
| 574 |
+
"bbox": [
|
| 575 |
+
209,
|
| 576 |
+
588,
|
| 577 |
+
807,
|
| 578 |
+
633
|
| 579 |
+
],
|
| 580 |
+
"page_idx": 3
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"type": "text",
|
| 584 |
+
"text": "When the polynomial objective $p$ in a POP has a valid sparsity pattern, there is an extension of Theorem 2 due to Weisser et al. (2018), providing a smaller positivity certificate for $\\lambda - p$ over $[ 0 , 1 ] ^ { n }$ . We refer to it as the sparse Krivine’s certificate and we include it here for completeness: ",
|
| 585 |
+
"bbox": [
|
| 586 |
+
174,
|
| 587 |
+
643,
|
| 588 |
+
823,
|
| 589 |
+
686
|
| 590 |
+
],
|
| 591 |
+
"page_idx": 3
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"type": "text",
|
| 595 |
+
"text": "Theorem 3 (Adapted from Weisser et al. (2018)). Let a polynomial $p$ have a valid sparsity pattern $\\{ I _ { i } \\} _ { i = 1 } ^ { m }$ . Define $N _ { i }$ as the set of sequences $( \\alpha , \\beta ) \\in \\bar { \\mathbb { N } } ^ { 2 n }$ where the support of both $\\alpha$ and $\\beta$ is contained in $I _ { i }$ . If $\\lambda - p$ is strictly positive over $K = [ 0 , 1 ] ^ { n }$ , there exist finitely many positive weights $c _ { \\alpha \\beta }$ such that ",
|
| 596 |
+
"bbox": [
|
| 597 |
+
173,
|
| 598 |
+
690,
|
| 599 |
+
825,
|
| 600 |
+
747
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 3
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "equation",
|
| 606 |
+
"img_path": "images/fcdf50ff56f4ca85812f18578bf61580b244b879c06374dcd3fc6e93ab8b7e0e.jpg",
|
| 607 |
+
"text": "$$\n\\lambda - p = \\sum _ { i = 1 } ^ { m } h _ { i } , \\qquad h _ { i } = \\sum _ { ( \\alpha , \\beta ) \\in N _ { i } } c _ { \\alpha \\beta } h _ { \\alpha \\beta }\n$$",
|
| 608 |
+
"text_format": "latex",
|
| 609 |
+
"bbox": [
|
| 610 |
+
338,
|
| 611 |
+
755,
|
| 612 |
+
658,
|
| 613 |
+
799
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 3
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "where the polynomials $h _ { \\alpha \\beta }$ are defined as in (5). ",
|
| 620 |
+
"bbox": [
|
| 621 |
+
174,
|
| 622 |
+
805,
|
| 623 |
+
490,
|
| 624 |
+
820
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 3
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "The sparse Krivine’s certificate can be used like the general version (Theorem 2) to derive a sequence of LPs approximating the upper bound on $L ( f _ { d } )$ stated in (4). However, the number of different polynomials $h _ { \\alpha \\beta }$ of degree at most $k$ appearing in the sparse certificate can be drastically smaller, the amount of which determines how good the sparsity pattern is. ",
|
| 631 |
+
"bbox": [
|
| 632 |
+
174,
|
| 633 |
+
832,
|
| 634 |
+
825,
|
| 635 |
+
888
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 3
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "We introduce a graph that depends on the network $f _ { d }$ , from which we will extract a sparsity pattern for the norm-gradient polynomial of a network. ",
|
| 642 |
+
"bbox": [
|
| 643 |
+
174,
|
| 644 |
+
895,
|
| 645 |
+
821,
|
| 646 |
+
924
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 3
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "image",
|
| 652 |
+
"img_path": "images/214b4ec10db794f93e318582922104545dac5f8d93ae013d25d849c225637e9d.jpg",
|
| 653 |
+
"image_caption": [
|
| 654 |
+
"Figure 1: Sparsity pattern of Proposition 1 for a network of depth three. "
|
| 655 |
+
],
|
| 656 |
+
"image_footnote": [],
|
| 657 |
+
"bbox": [
|
| 658 |
+
238,
|
| 659 |
+
107,
|
| 660 |
+
423,
|
| 661 |
+
231
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 4
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "image",
|
| 667 |
+
"img_path": "images/c840ffb3080a0f590ddc61c0b1ed0992fd23d3fa33726a52fedf988a09c2b4b8.jpg",
|
| 668 |
+
"image_caption": [
|
| 669 |
+
"Figure 2: Structure of one set in the sparsity pattern from Proposition 1 for a network with 2D convolutional layers with $3 \\times 3$ filters. "
|
| 670 |
+
],
|
| 671 |
+
"image_footnote": [],
|
| 672 |
+
"bbox": [
|
| 673 |
+
575,
|
| 674 |
+
101,
|
| 675 |
+
761,
|
| 676 |
+
226
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 4
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "Definition 2. Let $f _ { d }$ be a network with weights $\\{ W _ { i } \\} _ { i = 1 } ^ { d }$ . Define a directed graph $G _ { d } = ( V , E )$ as: ",
|
| 683 |
+
"bbox": [
|
| 684 |
+
173,
|
| 685 |
+
303,
|
| 686 |
+
823,
|
| 687 |
+
320
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 4
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "equation",
|
| 693 |
+
"img_path": "images/1e6de452fb7d0105bd4ab2196f6da58a08f35b8fe1d242cc21e870607d5ddd58.jpg",
|
| 694 |
+
"text": "$$\n\\begin{array} { c } { { V = \\{ s _ { i , j } : 0 \\leq i \\leq d - 1 , 1 \\leq j \\leq n _ { i } \\} } } \\\\ { { E = \\{ ( s _ { i , j } , s _ { i + 1 , k } ) : 0 \\leq i \\leq d - 2 , [ W _ { i } ] _ { k , j } \\neq 0 \\} } } \\end{array}\n$$",
|
| 695 |
+
"text_format": "latex",
|
| 696 |
+
"bbox": [
|
| 697 |
+
331,
|
| 698 |
+
327,
|
| 699 |
+
666,
|
| 700 |
+
363
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 4
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "which we call the computational graph of the network $f _ { d }$ ",
|
| 707 |
+
"bbox": [
|
| 708 |
+
176,
|
| 709 |
+
364,
|
| 710 |
+
549,
|
| 711 |
+
378
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 4
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "In the graph $G _ { d }$ the vertex $s _ { ( i , j ) }$ represents the $j$ -th neuron in the $i$ -th layer. There is a directed edge between two neurons in consecutive layers if they are joined by a nonzero weight in the network. The following result shows that for fully connected networks we can extract a valid sparsity pattern from this graph. We relegate the proof to appendix B. ",
|
| 718 |
+
"bbox": [
|
| 719 |
+
174,
|
| 720 |
+
390,
|
| 721 |
+
826,
|
| 722 |
+
445
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 4
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"text": "Proposition 1. Let $f _ { d }$ be a dense network (all weights are nonzero). The following sets, indexed by $i = 1 , \\ldots , n _ { d } ,$ form a valid sparsity pattern for the norm-gradient polynomial of the network $f _ { d }$ : ",
|
| 729 |
+
"bbox": [
|
| 730 |
+
173,
|
| 731 |
+
449,
|
| 732 |
+
823,
|
| 733 |
+
478
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 4
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "equation",
|
| 739 |
+
"img_path": "images/e00aa72600f1772a52650432929c0d6a675d1891a3d4f35dc2108c5bd78fe522.jpg",
|
| 740 |
+
"text": "$$\nI _ { i } : = \\left\\{ s _ { ( d - 1 , i ) } \\right\\} \\cup \\left\\{ s _ { ( j , k ) } : t h e r e \\ e x i s t s a \\ d i r e c t e d p a t h f r o m \\ s _ { ( j , k ) } \\ t o \\ s _ { ( d - 1 , i ) } \\ i n \\ G _ { d } \\right\\}\n$$",
|
| 741 |
+
"text_format": "latex",
|
| 742 |
+
"bbox": [
|
| 743 |
+
218,
|
| 744 |
+
481,
|
| 745 |
+
779,
|
| 746 |
+
502
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 4
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "We refer to this as the sparsity pattern induced by $G _ { d }$ . An example is depicted in in Figure 1. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
174,
|
| 755 |
+
511,
|
| 756 |
+
781,
|
| 757 |
+
526
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 4
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "Remark. When the network is not dense, the the second condition (Definition 1) for the sparsity pattern (9) to be valid might not hold. In that case we lose the guarantee that the values of the corresponding LPs converge to the maximum of the POP (4). Nevertheless, it still provides a valid positivity certificate that we use to upper bound $L ( f _ { d } )$ . In Section 7 we show that in practice it provides upper bounds of good enough quality. If needed, a valid sparsity pattern can be obtained via a chordal completion of the correlative sparsity graph of the POP (Waki et al., 2006). ",
|
| 764 |
+
"bbox": [
|
| 765 |
+
173,
|
| 766 |
+
532,
|
| 767 |
+
825,
|
| 768 |
+
617
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 4
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "We now quantify how good this sparsity pattern is. Let $s$ be the size of the largest clique in a sparsity pattern, and let $N _ { i , k }$ be the subset of $N _ { i }$ (defined in Theorem 3) composed of sequences summing up to $k$ . The number of different polynomials for the $k$ -th LP in the hierarchy given by the sparse Krivine’s certificate can be bounded as follows: ",
|
| 775 |
+
"bbox": [
|
| 776 |
+
173,
|
| 777 |
+
623,
|
| 778 |
+
825,
|
| 779 |
+
679
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 4
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "equation",
|
| 785 |
+
"img_path": "images/1605b4d5612c218f1773d81f12f4c2fc096d0a6a1d3dcecb82971dfcd7819f11.jpg",
|
| 786 |
+
"text": "$$\n\\left| \\bigcup _ { i = 1 } ^ { m } N _ { i , k } \\right| \\leq \\sum _ { i = 1 } ^ { m } { \\binom { 2 | I _ { i } | + k } { k } } = \\mathcal { O } \\left( m s ^ { k } \\right)\n$$",
|
| 787 |
+
"text_format": "latex",
|
| 788 |
+
"bbox": [
|
| 789 |
+
356,
|
| 790 |
+
681,
|
| 791 |
+
640,
|
| 792 |
+
724
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 4
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "We immediately see that the dependence on the number of cliques $m$ is really mild (linear) but the size of the cliques as well as the degree of the hierarchy can really impact the size of the optimization problem. Nevertheless, this upper bound can be quite loose; polynomials $h _ { \\alpha \\beta }$ that depend only on variables in the intersection of two or more cliques are counted more than once. ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
173,
|
| 801 |
+
728,
|
| 802 |
+
823,
|
| 803 |
+
785
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 4
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "The number of cliques given in the sparsity pattern induced by $G _ { d }$ is equal to the size of the last layer $m = n _ { d }$ and the size of each clique depends on the particular implementation of the network. We now study different architectures that could arise in practice, and determine the amount of polynomials in their sparse Krivine’s certificate. ",
|
| 810 |
+
"bbox": [
|
| 811 |
+
173,
|
| 812 |
+
790,
|
| 813 |
+
825,
|
| 814 |
+
848
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 4
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "text",
|
| 820 |
+
"text": "Fully connected networks. Even in the case of a network with all nonzero connections, the sparsity pattern induced by $G _ { d }$ decreases the size of the LPs when compared to Krivine’s certificate. In this case the cliques have size $n _ { 1 } + . . . + n _ { d - 1 } + 1$ but they all have the same common intersection equal to all neurons up to the second-to-last hidden layer. A straightforward counting argument shows that the total number of polynomials is $\\mathcal { O } ( n ( n _ { 1 } + . . . + n _ { d - 1 } + \\bar { 1 } ) ^ { k - 1 } )$ ), improving the upper bound (10). ",
|
| 821 |
+
"bbox": [
|
| 822 |
+
174,
|
| 823 |
+
853,
|
| 824 |
+
825,
|
| 825 |
+
925
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 4
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"type": "text",
|
| 831 |
+
"text": "Unstructured sparsity. In the case of networks obtained by pruning (Hanson & Pratt, 1989) or generated randomly from a distribution over graphs (Xie et al., 2019), the sparsity pattern can be arbitrary. In this case the size of the resulting LPs varies at runtime. Under the layer-wise assumption that any neuron is connected to at most $r$ neurons in the previous layer, the size of the cliques in (9) is bounded as $s = \\mathcal { O } ( r ^ { d } )$ . This estimate has an exponential dependency on the depth but ignores that many neurons might share connections to the same inputs in the previous layer, thus being potentially loose. The bound (10) implies that the number of different polynomials is $\\mathcal { O } ( n _ { d } r ^ { d k } )$ . ",
|
| 832 |
+
"bbox": [
|
| 833 |
+
173,
|
| 834 |
+
103,
|
| 835 |
+
825,
|
| 836 |
+
202
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 5
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "2D Convolutional networks. The sparsity in the weight matrices of convolutional layers has a certain local structure; neurons are connected to contiguous inputs in the previous layer. Adjacent neurons also have many input pixels in common (see Figure 2). Assuming a constant number of channels per layer, the size of the cliques in (9) is $\\mathcal { O } ( d ^ { 3 } )$ . Intuitively, such number is proportional to the volume of the pyramid depicted in Figure 2 where each dimension depends linearly on $d$ . Using (10) we get that there are $\\mathcal { O } ( \\dot { n } _ { d } d ^ { 3 k } )$ different polynomials in the sparse Krivine’s certificate. This is a drastic decrease in complexity when compared to the unstructured sparsity case. ",
|
| 843 |
+
"bbox": [
|
| 844 |
+
173,
|
| 845 |
+
208,
|
| 846 |
+
825,
|
| 847 |
+
306
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 5
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "The use of sparsity in polynomial optimization preceeds Theorem 3 (Weisser et al., 2018). First studied in the context of sum-of-squares by Kojima et al. (2005) and further refined in Waki et al. (2006); Lasserre (2006) (and references therein), it has found applications in safety verification (Yang et al., 2016; Zhang et al., 2018), sensor localization Wang et al. (2006), optimal power flow (Ghaddar et al., 2015) and many others. Our work fits precisely into this set of important applications. ",
|
| 854 |
+
"bbox": [
|
| 855 |
+
173,
|
| 856 |
+
311,
|
| 857 |
+
825,
|
| 858 |
+
382
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 5
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "Algorithm 1 LiPopt for ELU activations and sparsity pattern ",
|
| 865 |
+
"text_level": 1,
|
| 866 |
+
"bbox": [
|
| 867 |
+
169,
|
| 868 |
+
396,
|
| 869 |
+
578,
|
| 870 |
+
411
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 5
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "Input: matrices $\\{ W _ { i } \\} _ { i = 1 } ^ { d }$ , sparsity pattern $\\{ I _ { i } \\} _ { i = 1 } ^ { m }$ , hierarchy degree $k$ . \n1: p ← (2s0 − 1)T W T1 Qd−1i=1 $\\triangleright$ compute norm-gradient polynomial \n2: $x \\gets [ s _ { 0 } , \\ldots , s _ { d - 1 } ]$ \n3: $b [ b _ { \\gamma } : \\gamma \\in \\mathbb { N } _ { k } ^ { n } ]$ where $\\begin{array} { r } { p ( x ) = \\sum _ { \\gamma \\in \\mathbb { N } _ { k } ^ { n } } b _ { \\gamma } x ^ { \\gamma } } \\end{array}$ $\\triangleright$ compute coefficients of $p$ in basis \n4: for $i = 1 , \\ldots , m$ do \n5: $N _ { i , k } \\gets \\{ ( \\alpha , \\beta ) \\in \\mathbb { N } _ { k } ^ { 2 n } : \\operatorname { s u p p } ( \\alpha ) \\cap \\operatorname { s u p p } ( \\beta ) \\subseteq I _ { i } \\}$ \n6: $\\widetilde { N } _ { k } \\gets \\cup _ { i = 1 } ^ { m } N _ { i , k }$ \n7: $\\begin{array} { r } { h \\sum _ { ( \\alpha , \\beta ) \\in \\widetilde { N } } c _ { \\alpha \\beta } h _ { \\alpha \\beta } } \\end{array}$ . compute positivity certificate \n8: $c [ c _ { \\alpha \\beta } : ( \\alpha , \\beta ) \\in \\widetilde { N } _ { k } ] ; \\ y [ \\lambda , c ]$ $\\triangleright$ linear program variables \n9: $Z \\gets [ z _ { \\gamma } ] _ { \\gamma \\in \\mathbb { N } _ { k } ^ { n } }$ where $\\begin{array} { r } { \\lambda - h ( x ) = \\sum _ { \\gamma \\in \\mathbb { N } _ { k } ^ { n } } ( z _ { \\gamma } ^ { T } y ) x ^ { \\gamma } } \\end{array}$ $\\triangleright$ compute coefficients of $\\lambda - h$ in basis \nreturn $\\operatorname* { m i n } \\{ \\lambda : b = Z y$ , $y = [ \\lambda , c ]$ , $c \\geq 0 \\}$ $\\triangleright$ solve LP ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
179,
|
| 879 |
+
415,
|
| 880 |
+
826,
|
| 881 |
+
597
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 5
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "5 QCQP REFORMULATION AND SHOR’S SDP RELAXATION ",
|
| 888 |
+
"text_level": 1,
|
| 889 |
+
"bbox": [
|
| 890 |
+
174,
|
| 891 |
+
631,
|
| 892 |
+
679,
|
| 893 |
+
648
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 5
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "Another way of upper bounding $L ( f _ { d } )$ comes from a further relaxation of (4) to an SDP. We consider the following equivalent formulation where the variables $s _ { i }$ are normalized to lie in the interval $[ - 1 , 1 ]$ , and we rename $t = s _ { 0 }$ : ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
174,
|
| 902 |
+
662,
|
| 903 |
+
825,
|
| 904 |
+
705
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 5
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "equation",
|
| 910 |
+
"img_path": "images/a92dcd5872f8f32c29cb12ddae91e20b5069f6a226343e3f05057bb3fc98632b.jpg",
|
| 911 |
+
"text": "$$\nL ( f _ { d } ) \\leq \\operatorname* { m a x } \\left\\{ \\frac { 1 } { 2 ^ { d - 1 } } s _ { 0 } ^ { T } W _ { 1 } ^ { T } \\prod _ { i = 1 } ^ { d - 1 } \\mathrm { D i a g } ( s _ { i } + 1 ) W _ { i + 1 } ^ { T } : - 1 \\leq s _ { i } \\leq 1 \\right\\}\n$$",
|
| 912 |
+
"text_format": "latex",
|
| 913 |
+
"bbox": [
|
| 914 |
+
269,
|
| 915 |
+
709,
|
| 916 |
+
728,
|
| 917 |
+
752
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 5
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "Any polynomial optimization problem like (11) can be cast as a (possibly non-convex) quadratically constrained quadratic program (QCQP) by introducing new variables and quadratic constraints. This is a well-known procedure described in Park & Boyd (2017, Section 2.1). When $d = 2$ problem (11) is already a QCQP (for the $\\ell _ { \\infty }$ and $\\ell _ { 2 }$ -norm cases) and no modification is necessary. ",
|
| 924 |
+
"bbox": [
|
| 925 |
+
174,
|
| 926 |
+
756,
|
| 927 |
+
825,
|
| 928 |
+
813
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 5
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "QCQP reformulation. We illustrate the case $d = 3$ where we have the variables $s _ { 1 } , s _ { 2 }$ corresponding to the first and second hidden layer and a variable $s _ { 0 }$ corresponding to the input. The norm-gradient polynomial in this case is cubic, and it can be rewritten as a quadratic polynomial by introducing new variables corresponding to the product of the first and second hidden layer variables. ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
174,
|
| 937 |
+
818,
|
| 938 |
+
825,
|
| 939 |
+
875
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 5
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "text",
|
| 945 |
+
"text": "More precisely the introduction of a variable $s _ { 1 , 2 }$ with quadratic constraint $s _ { 1 , 2 } = \\mathrm { v e c } ( s _ { 1 } s _ { 2 } ^ { T } )$ allows us to write the objective (11) as a quadratic polynomial. The problem then becomes a QCQP with variable $y = [ 1 , s _ { 0 } , s _ { 1 } , s _ { 2 } , s _ { 1 , 2 } ]$ of dimension $1 + n + n _ { 1 } n _ { 2 }$ . ",
|
| 946 |
+
"bbox": [
|
| 947 |
+
176,
|
| 948 |
+
881,
|
| 949 |
+
823,
|
| 950 |
+
924
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 5
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "text",
|
| 956 |
+
"text": "SDP relaxation. Any quadratic objective and constraints can then be relaxed to linear constraints on the positive semidefinite variable $y y ^ { T } = X \\succcurlyeq 0$ yielding the so-called Shor’s relaxation of (11) (Park & Boyd, 2017, Section 3.3). When $d = 2$ the resulting SDP corresponds precisely to the one studied in Raghunathan et al. (2018a). This resolves a common misconception (Raghunathan et al., 2018b) that this approach is only limited to networks with one hidden layer. ",
|
| 957 |
+
"bbox": [
|
| 958 |
+
174,
|
| 959 |
+
103,
|
| 960 |
+
825,
|
| 961 |
+
174
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 6
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "Note that in our setting we are only interested in the optimal value rather than the optimizers, so there is no need to extract a solution for (11) from that of the SDP relaxation. ",
|
| 968 |
+
"bbox": [
|
| 969 |
+
173,
|
| 970 |
+
180,
|
| 971 |
+
823,
|
| 972 |
+
208
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 6
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "Drawback. This approach includes a further relaxation step from (11), thus being fundamentally limited in how tightly it can upper bound the value of $L ( f _ { d } )$ . Moreover when compared to LP solvers, off-the-shelf semidefinite programming solvers are, in general, much more limited in the number of variables they can efficiently handle. ",
|
| 979 |
+
"bbox": [
|
| 980 |
+
174,
|
| 981 |
+
215,
|
| 982 |
+
825,
|
| 983 |
+
271
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 6
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "In the case $d = 2$ this relaxation provides a constant factor approximation to the original QCQP (Ye, 1999). Further approximation quality results for such hierarchical optimization approaches to NP-hard problems are out of the scope of this work. ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
176,
|
| 992 |
+
279,
|
| 993 |
+
823,
|
| 994 |
+
320
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 6
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "Relation to sum-of-squares. The QCQP approach might appear fundamentaly different to the hierarchical optimization approaches to POPs, like the one described in Section 3. However, it is known that Shor’s SDP relaxation corresponds exactly to the first degree of the SOS hierarchical SDP solution to the QCQP relaxation (Lasserre, 2000). Thus, the approach in section 3 and the one in this section are, in essence, the same; they only differ in the choice of polynomial positivity certificate. ",
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
174,
|
| 1003 |
+
327,
|
| 1004 |
+
825,
|
| 1005 |
+
411
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 6
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "6 RELATED WORK ",
|
| 1012 |
+
"text_level": 1,
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
176,
|
| 1015 |
+
431,
|
| 1016 |
+
341,
|
| 1017 |
+
448
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 6
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "Estimation of $L ( f _ { d } )$ with $\\ell _ { 2 }$ -norm is studied by Virmaux & Scaman (2018); Combettes & Pesquet (2019); Fazlyab et al. (2019); Jin & Lavaei (2018). The method SeqLip proposed in Virmaux & Scaman (2018) has the drawback of not providing true upper bounds. It is in fact a heuristic method for solving (4) but which provides no guarantees and thus can not be used for robustness certification. In contrast the LipSDP method of Fazlyab et al. (2019) provides true upper bounds on $L ( f _ { d } )$ and in practice shows superior performance over both SeqLip and CPLip (Combettes & Pesquet, 2019). ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
174,
|
| 1026 |
+
463,
|
| 1027 |
+
825,
|
| 1028 |
+
547
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 6
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Despite the accurate estimation of LipSDP, its formulation is limited to the $\\ell _ { 2 }$ -norm. The only estimate available for other $\\ell _ { p }$ -norms comes from the equivalence of norms in euclidean spaces. For instance, we can obtain an upper bound for the $\\ell _ { \\infty }$ -norm after multiplying the $\\ell _ { 2 }$ Lipschitz constant upper bound by the square root of the input dimension. The resulting bound can be rather loose and our experiments in section 7 confirm the issue. In contrast, our proposed approach LiPopt can acommodate any norm whose unit ball can be described via polynomial inequalities. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
174,
|
| 1037 |
+
554,
|
| 1038 |
+
825,
|
| 1039 |
+
638
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 6
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "Let us point to one key advantage of LiPopt, compared to LipSDP (Jin & Lavaei, 2018; Fazlyab et al., 2019). In the context of robustness certification we are given a sample $x ^ { \\sharp }$ and a ball of radius $\\epsilon$ around it. Computing an upper bound on the local Lipschitz constant in this subset, rather than a global one, can provide a larger region of certified robustness. Taking into account the restricted domain we can refine the bounds in our POP (see remark in section 1). This potentially yields a tighter estimate of the local Lipschitz constant. On the other hand, it is not clear how to include such additional information in LipSDP, which only computes one global bound on the Lipschitz constant for the unconstrained network. ",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
173,
|
| 1048 |
+
645,
|
| 1049 |
+
825,
|
| 1050 |
+
756
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 6
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "Raghunathan et al. (2018a) find an upper bound for $L ( f _ { d } )$ with $\\ell _ { \\infty }$ metric starting from problem (4) but only in the context of one-hidden-layer networks $\\ Q = 2 ,$ ). To compute such bound they use its corresponding Shor’s relaxation and obtain as a byproduct a differentiable regularizer for training networks. They claim such approach is limited to the setting $d = 2$ but, as we remark in section 5, it is just a particular instance of the SDP relaxation method for QCQPs arising from a polynomial optimization problem. We find that this method fits into the LiPopt framework, using SOS certificates instead of Krivine’s. We expect that the SDP-based bounds described in 5 can also be used as regularizers promoting robustness. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
173,
|
| 1059 |
+
762,
|
| 1060 |
+
825,
|
| 1061 |
+
875
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 6
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Weng et al. (2018) provide an upper bound on the local Lipschitz constant for networks based on a sequence of ad-hoc bounding arguments, which are particular to the choice of ReLU activation function. In contrast, our approach applies in general to activations whose derivative is bounded. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
176,
|
| 1070 |
+
882,
|
| 1071 |
+
823,
|
| 1072 |
+
924
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 6
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "7 EXPERIMENTS ",
|
| 1079 |
+
"text_level": 1,
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
176,
|
| 1082 |
+
102,
|
| 1083 |
+
328,
|
| 1084 |
+
118
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 7
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "text",
|
| 1090 |
+
"text": "We consider the following estimators of $L ( f _ { d } )$ with respect to the $\\ell _ { \\infty }$ norm: ",
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
174,
|
| 1093 |
+
135,
|
| 1094 |
+
671,
|
| 1095 |
+
150
|
| 1096 |
+
],
|
| 1097 |
+
"page_idx": 7
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"type": "table",
|
| 1101 |
+
"img_path": "images/e03d448dda6e959c59199c79a3d624f826935996a0764afbac9c989df4e22337.jpg",
|
| 1102 |
+
"table_caption": [],
|
| 1103 |
+
"table_footnote": [],
|
| 1104 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Name</td><td rowspan=1 colspan=1>Description</td></tr><tr><td rowspan=1 colspan=1>SDP</td><td rowspan=1 colspan=1>Upper bound arising from the solution of the SDP relaxation described in Sec-tion 5</td></tr><tr><td rowspan=1 colspan=1>LipOpt-k</td><td rowspan=1 colspan=1>Upper bound arising from the k-th degree of the LP hierarchy (6) based on thesparse Krivine Positivstellenstatz.</td></tr><tr><td rowspan=1 colspan=1>Lip-SDP</td><td rowspan=1 colspan=1>Upper bound from Fazlyab et al. (2019) multiplied √d where d is the inputdimension of the network.</td></tr><tr><td rowspan=1 colspan=1>UBP</td><td rowspan=1 colspan=1>Upper bound determined by the product of the layer-wise Lipschitz constantswith loometric</td></tr><tr><td rowspan=1 colspan=1>LBS</td><td rowspan=1 colspan=1>Lower bound obtained by sampling 5oooO random points around zero, andevaluating the dual norm of the gradient</td></tr></table>",
|
| 1105 |
+
"bbox": [
|
| 1106 |
+
187,
|
| 1107 |
+
161,
|
| 1108 |
+
808,
|
| 1109 |
+
321
|
| 1110 |
+
],
|
| 1111 |
+
"page_idx": 7
|
| 1112 |
+
},
|
| 1113 |
+
{
|
| 1114 |
+
"type": "text",
|
| 1115 |
+
"text": "7.1 EXPERIMENTS ON RANDOM NETWORKS ",
|
| 1116 |
+
"text_level": 1,
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
176,
|
| 1119 |
+
339,
|
| 1120 |
+
490,
|
| 1121 |
+
353
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 7
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "We compare the bounds obtained by the algorithms described above on networks with random weights and either one or two hidden layers. We define the sparsity level of a network as the maximum number of neurons any neuron in one layer is connected to in the next layer. For example, the network represented on Figure 1 has sparsity 2. The non-zero weights of network’s $i$ -th layer are sampled uniformly in $[ - \\frac { \\breve { 1 } } { \\sqrt { n _ { i } } } , \\frac { 1 } { \\sqrt { n _ { i } } } ]$ where $n _ { i }$ is the number of neurons in layer $i$ . ",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
174,
|
| 1130 |
+
366,
|
| 1131 |
+
825,
|
| 1132 |
+
439
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 7
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "For different configurations of width and sparsity, we generate 10 random networks and average the obtained Lipschitz bounds. For better comparison, we plot the relative error. Since we do not know the true Lipschitz constant, we cannot compute the true relative error. Instead, we take as reference the lower bound given by LBS. Figures 3 and 5 show the relative error, i.e., $( \\hat { L } - L _ { L B S } ) / L _ { L B S }$ where $L _ { L B S }$ is the lower bound computed by LBS and $\\hat { L }$ is the estimated upper bound. Figures 9 and 10 in Appendix C we show the values of the computed Lipschitz bounds for 1 and 2 hidden layers respectively. ",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
173,
|
| 1141 |
+
445,
|
| 1142 |
+
825,
|
| 1143 |
+
547
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 7
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "When the chosen degree for LiPopt-k is the smallest as possible, i.e., equal to the depth of the network, we observe that the method is already competitive with the SDP method, especially in the case of 2 hidden layers. When we increment the degree by 1, LiPopt-k becomes uniformly better than SDP over all tested configurations. We remark that the upper bounds given by UBP are too large to be shown in the plots. Similarly, for the 1-hidden layer networks, the bounds from LipSDP are too large to be plotted. ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
174,
|
| 1152 |
+
554,
|
| 1153 |
+
825,
|
| 1154 |
+
638
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 7
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "Finally, we measured the computation time of the different methods on each tested network (Figures 4 and 6). We observe that the computation time for LiPopt-k heavily depends on the network sparsity, which reflects the fact that such structure is exploited in the algorithm. In contrast, the time required for SDP does not depend on the sparsity, but only on the size of the network. Therefore as the network size grows (with fixed sparsity level), LipOpt-k obtains a better upper bound and runs faster. Also, with our method, we see that it is possible to increase the computation power in order to compute tighter bounds when required, making it more flexible than SDP in terms of computation/accuracy tradeoff. LiPopt uses the Gurobi LP solver, while SDP uses Mosek. All methods run on a single machine with Core i7 2.8Ghz quad-core processor and 16Gb of RAM. ",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
173,
|
| 1163 |
+
645,
|
| 1164 |
+
825,
|
| 1165 |
+
771
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 7
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "image",
|
| 1171 |
+
"img_path": "images/36715696c6d13101074bebdd53e4699329e7143885a21b2eaae6a91eea796e9d.jpg",
|
| 1172 |
+
"image_caption": [
|
| 1173 |
+
"Figure 3: Lipschitz approximated relative error for 1-hidden layer networks "
|
| 1174 |
+
],
|
| 1175 |
+
"image_footnote": [],
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
194,
|
| 1178 |
+
785,
|
| 1179 |
+
802,
|
| 1180 |
+
885
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 7
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "image",
|
| 1186 |
+
"img_path": "images/16f4460aa96107ed8b842356f329b5f9c62f18f106042c719ca032bde18b336b.jpg",
|
| 1187 |
+
"image_caption": [
|
| 1188 |
+
"Figure 4: Computation times for 1-hidden layer networks (seconds) "
|
| 1189 |
+
],
|
| 1190 |
+
"image_footnote": [],
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
194,
|
| 1193 |
+
101,
|
| 1194 |
+
800,
|
| 1195 |
+
202
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 8
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "image",
|
| 1201 |
+
"img_path": "images/688cbbb935006042a5b738de27979cf8fb8ddd23c626da768e5bb13bf7dbf66b.jpg",
|
| 1202 |
+
"image_caption": [
|
| 1203 |
+
"Figure 5: Lipschitz approximated relative error for 2-hidden layer networks "
|
| 1204 |
+
],
|
| 1205 |
+
"image_footnote": [],
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
194,
|
| 1208 |
+
241,
|
| 1209 |
+
800,
|
| 1210 |
+
340
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 8
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "image",
|
| 1216 |
+
"img_path": "images/2913548161f337fdbd03d9ad1bbad83e6f237e8215410cc7e959db088133e3f3.jpg",
|
| 1217 |
+
"image_caption": [
|
| 1218 |
+
"Figure 6: Computation times for 2-hidden layer networks (seconds) "
|
| 1219 |
+
],
|
| 1220 |
+
"image_footnote": [],
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
194,
|
| 1223 |
+
381,
|
| 1224 |
+
800,
|
| 1225 |
+
481
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 8
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "7.2 EXPERIMENTS ON TRAINED NETWORKS ",
|
| 1232 |
+
"text_level": 1,
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
178,
|
| 1235 |
+
534,
|
| 1236 |
+
490,
|
| 1237 |
+
546
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 8
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "Similarly, we compare these methods on networks trained on MNIST. The architecture we use is a fully connected network with two hidden layers with 300 and 100 neurons respectively, and with one-hot output of size 10. Since the output is multi-dimensional, we restrict the network to a single output, and estimate the Lipschitz constant with respect to label 8. ",
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
174,
|
| 1246 |
+
559,
|
| 1247 |
+
825,
|
| 1248 |
+
614
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 8
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "text",
|
| 1254 |
+
"text": "Moreover, in order to improve the scalability of our method, we train the network using the pruning strategy described in Han et al. $( 2 0 1 5 ) ^ { 2 }$ . After training the full network using a standard technique, the weights of smallest magnitude are set to zero. Then, the network is trained for additional iterations, only updating the nonzero parameters. Doing so, we were able to remove $9 5 \\%$ of the weights, while preserving the same test accuracy. We recorded the Lipschitz bounds for various methods in Table 7.2. We observe clear improvement of the Lipschitz bound obtained from LiPopt-k compared to SDP method, even when using $k = 3$ . Also note that the input dimension is too large for the method Lip-SDP to provide competitive bound, so we do not provide the obtained bound for this method. ",
|
| 1255 |
+
"bbox": [
|
| 1256 |
+
173,
|
| 1257 |
+
622,
|
| 1258 |
+
825,
|
| 1259 |
+
747
|
| 1260 |
+
],
|
| 1261 |
+
"page_idx": 8
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"type": "table",
|
| 1265 |
+
"img_path": "images/5c9e6703311909e83ec421e16b97c0ae23b2c72f5204afd3ee85185349ca221c.jpg",
|
| 1266 |
+
"table_caption": [],
|
| 1267 |
+
"table_footnote": [],
|
| 1268 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Algorithm</td><td rowspan=1 colspan=1>LBS</td><td rowspan=1 colspan=1>LiPopt-4</td><td rowspan=1 colspan=1>LiPopt-3</td><td rowspan=1 colspan=1>SDP</td><td rowspan=1 colspan=1>UBP</td></tr><tr><td rowspan=1 colspan=1>Lipschitz bound</td><td rowspan=1 colspan=1>84.2</td><td rowspan=1 colspan=1>88.3</td><td rowspan=1 colspan=1>94.6</td><td rowspan=1 colspan=1>98.8</td><td rowspan=1 colspan=1>691.5</td></tr></table>",
|
| 1269 |
+
"bbox": [
|
| 1270 |
+
272,
|
| 1271 |
+
757,
|
| 1272 |
+
717,
|
| 1273 |
+
790
|
| 1274 |
+
],
|
| 1275 |
+
"page_idx": 8
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"type": "text",
|
| 1279 |
+
"text": "7.3 ESTIMATING LOCAL LIPSCHITZ CONSTANTS WITH LIPOPT ",
|
| 1280 |
+
"text_level": 1,
|
| 1281 |
+
"bbox": [
|
| 1282 |
+
173,
|
| 1283 |
+
804,
|
| 1284 |
+
619,
|
| 1285 |
+
819
|
| 1286 |
+
],
|
| 1287 |
+
"page_idx": 8
|
| 1288 |
+
},
|
| 1289 |
+
{
|
| 1290 |
+
"type": "text",
|
| 1291 |
+
"text": "In the of section 7.1, we study the improvement on the upper bound obtained by LiPopt, when we incorporate tighter upper and lower bounds on the variables $s _ { i }$ of the polynomial optimization problem (4). Such bounds arise from the limited range that the pre-activation values of the network can take, when the input is limited to an $\\ell _ { \\infty }$ -norm ball of radius $\\epsilon$ centered at an arbitrary point $x _ { 0 }$ . ",
|
| 1292 |
+
"bbox": [
|
| 1293 |
+
173,
|
| 1294 |
+
830,
|
| 1295 |
+
825,
|
| 1296 |
+
887
|
| 1297 |
+
],
|
| 1298 |
+
"page_idx": 8
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"type": "text",
|
| 1302 |
+
"text": "The algorithm that computes upper and lower bounds on the pre-activation values is fast (it has the same complexity as a forward pass) and is described, for example, in Wong & Kolter (2018). The variables $s _ { i }$ correspond to the value of the derivative of the activation function. For activations like ELU or ReLU, their derivative is monotonically increasing, so we need only evaluate it at the upper and lower bounds of the pre-activation values to obtain corresponding bounds for the variables $s _ { i }$ . ",
|
| 1303 |
+
"bbox": [
|
| 1304 |
+
174,
|
| 1305 |
+
103,
|
| 1306 |
+
825,
|
| 1307 |
+
174
|
| 1308 |
+
],
|
| 1309 |
+
"page_idx": 9
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "text",
|
| 1313 |
+
"text": "We plot the local upper bounds obtained by LiPopt-3 for increasing values of the radius $\\epsilon$ , the bound for the global constant (given by LiPopt-3) and the lower bound on the local Lipschitz constant obtained by sampling in the $\\epsilon$ -neighborhood (LBS). We sample 15 random networks and plot the average values obtained. We observe clear gap between both estimates, which shows that larger certified balls could be obtained with such method in the robustness certification applications. ",
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
174,
|
| 1316 |
+
180,
|
| 1317 |
+
825,
|
| 1318 |
+
251
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 9
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "image",
|
| 1324 |
+
"img_path": "images/caca3de17318ea9710940bfd4d6d9c624bdb96ef7815b200478040db061a5551.jpg",
|
| 1325 |
+
"image_caption": [
|
| 1326 |
+
"Figure 7: Global vs local Lipschitz constant bounds for 1-hidden layer networks "
|
| 1327 |
+
],
|
| 1328 |
+
"image_footnote": [],
|
| 1329 |
+
"bbox": [
|
| 1330 |
+
196,
|
| 1331 |
+
267,
|
| 1332 |
+
803,
|
| 1333 |
+
369
|
| 1334 |
+
],
|
| 1335 |
+
"page_idx": 9
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"type": "image",
|
| 1339 |
+
"img_path": "images/adac380da60ee5e5deb213f94cacd68bbe4c0a5ffac2336cfd61a636727ca433.jpg",
|
| 1340 |
+
"image_caption": [
|
| 1341 |
+
"Figure 8: Global vs local Lipschitz constant bounds for 2-hidden layer networks "
|
| 1342 |
+
],
|
| 1343 |
+
"image_footnote": [],
|
| 1344 |
+
"bbox": [
|
| 1345 |
+
194,
|
| 1346 |
+
430,
|
| 1347 |
+
803,
|
| 1348 |
+
534
|
| 1349 |
+
],
|
| 1350 |
+
"page_idx": 9
|
| 1351 |
+
},
|
| 1352 |
+
{
|
| 1353 |
+
"type": "text",
|
| 1354 |
+
"text": "8 CONCLUSION AND FUTURE WORK ",
|
| 1355 |
+
"text_level": 1,
|
| 1356 |
+
"bbox": [
|
| 1357 |
+
174,
|
| 1358 |
+
598,
|
| 1359 |
+
486,
|
| 1360 |
+
613
|
| 1361 |
+
],
|
| 1362 |
+
"page_idx": 9
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"type": "text",
|
| 1366 |
+
"text": "In this work, we have introduced a general approach for computing an upper bound on the Lipschitz constant of neural networks. This approach is based on polynomial positivity certificates and generalizes some existing methods available in the literature. We have empirically demonstrated that it can tightly upper bound such constant. The resulting optimization problems are computationally expensive but the sparsity of the network can reduce this burden. ",
|
| 1367 |
+
"bbox": [
|
| 1368 |
+
173,
|
| 1369 |
+
632,
|
| 1370 |
+
823,
|
| 1371 |
+
702
|
| 1372 |
+
],
|
| 1373 |
+
"page_idx": 9
|
| 1374 |
+
},
|
| 1375 |
+
{
|
| 1376 |
+
"type": "text",
|
| 1377 |
+
"text": "In order to further scale such methods to larger and deeper networks, we are interested in several possible directions: $( i )$ divide-and-conquer approaches splitting the computation on sub-networks in the same spirit of Fazlyab et al. (2019), $( i i )$ exploiting parallel optimization algorithms leveraging the structure of the polynomials, $( i i i )$ custom optimization algorithms with low-memory costs such as Frank-wolfe-type methods for SDP (Yurtsever et al., 2019) as well as stochastic handling of constraints (Fercoq et al., 2019) and $( i v )$ , exploting the symmetries in the polynomial that arise from weight sharing in typical network architectures to further reduce the size of the problems. ",
|
| 1378 |
+
"bbox": [
|
| 1379 |
+
174,
|
| 1380 |
+
709,
|
| 1381 |
+
825,
|
| 1382 |
+
806
|
| 1383 |
+
],
|
| 1384 |
+
"page_idx": 9
|
| 1385 |
+
},
|
| 1386 |
+
{
|
| 1387 |
+
"type": "text",
|
| 1388 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 1389 |
+
"text_level": 1,
|
| 1390 |
+
"bbox": [
|
| 1391 |
+
176,
|
| 1392 |
+
828,
|
| 1393 |
+
326,
|
| 1394 |
+
842
|
| 1395 |
+
],
|
| 1396 |
+
"page_idx": 9
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"type": "text",
|
| 1400 |
+
"text": "This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement 725594 - time-data) and from the Swiss National Science Foundation (SNSF) under grant number 200021 178865. FL is supported through a PhD fellowship of the Swiss Data Science Center, a joint venture between EPFL and ETH Zurich. VC acknowledges the 2019 Google Faculty Research Award. ",
|
| 1401 |
+
"bbox": [
|
| 1402 |
+
176,
|
| 1403 |
+
853,
|
| 1404 |
+
825,
|
| 1405 |
+
924
|
| 1406 |
+
],
|
| 1407 |
+
"page_idx": 9
|
| 1408 |
+
},
|
| 1409 |
+
{
|
| 1410 |
+
"type": "text",
|
| 1411 |
+
"text": "REFERENCES \nA. Ahmadi and A. Majumdar. Dsos and sdsos optimization: More tractable alternatives to sum of squares and semidefinite optimization. SIAM Journal on Applied Algebra and Geometry, 3(2):193–230, 2019. doi: 10.1137/18M118935X. URL https://doi.org/10.1137/ 18M118935X. \nCem Anil, James Lucas, and Roger Grosse. Sorting out Lipschitz function approximation. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 291–301, Long Beach, California, USA, 09–15 Jun 2019. PMLR. \nMartin Arjovsky, Soumith Chintala, and Leon Bottou. Wasserstein generative adversarial networks. ´ In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 214–223, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. \nPeter L Bartlett, Dylan J Foster, and Matus J Telgarsky. Spectrally-normalized margin bounds for neural networks. In Advances in Neural Information Processing Systems 30, pp. 6240–6249. Curran Associates, Inc., 2017. \nFelix Berkenkamp, Matteo Turchetta, Angela Schoellig, and Andreas Krause. Safe model-based reinforcement learning with stability guarantees. In Advances in Neural Information Processing Systems 30, pp. 908–918. Curran Associates, Inc., 2017. \nMoustapha Cisse, Piotr Bojanowski, Edouard Grave, Yann Dauphin, and Nicolas Usunier. Parseval networks: Improving robustness to adversarial examples. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 854–863, International Convention Centre, Sydney, Australia, 06–11 Aug 2017. PMLR. \nDjork-Arne Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and Accurate Deep Network ´ Learning by Exponential Linear Units (ELUs). arXiv e-prints, art. arXiv:1511.07289, Nov 2015. \nPatrick L. Combettes and Jean-Christophe Pesquet. Lipschitz Certificates for Neural Network Structures Driven by Averaged Activation Operators. arXiv e-prints, art. arXiv:1903.01014, Mar 2019. \nMahyar Fazlyab, Alexander Robey, Hamed Hassani, Manfred Morari, and George J. Pappas. Efficient and Accurate Estimation of Lipschitz Constants for Deep Neural Networks. arXiv e-prints, art. arXiv:1906.04893, Jun 2019. \nOlivier Fercoq, Ahmet Alacaoglu, Ion Necoara, and Volkan Cevher. Almost surely constrained convex optimization. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 1910–1919, Long Beach, California, USA, 09–15 Jun 2019. PMLR. \nJonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations, 2019. \nBissan Ghaddar, Jakub Marecek, and Martin Mevissen. Optimal power flow as a polynomial optimization problem. IEEE Transactions on Power Systems, 31(1):539–546, 2015. \nIshaan Gulrajani, Faruk Ahmed, Martin Arjovsky, Vincent Dumoulin, and Aaron C Courville. Improved training of wasserstein gans. In Advances in Neural Information Processing Systems 30, pp. 5767–5777. Curran Associates, Inc., 2017. \nSong Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015. \nDavid Handelman. Representing polynomials by positive linear functions on compact convex polyhedra. Pacific J. Math., 132(1):35–62, 1988. URL https://projecteuclid.org: 443/euclid.pjm/1102689794. \nStephen Jose Hanson and Lorien Y. Pratt. Comparing biases for minimal network construction with back-propagation. In Advances in Neural Information Processing Systems 1, pp. 177–185. Morgan-Kaufmann, 1989. ",
|
| 1412 |
+
"bbox": [
|
| 1413 |
+
171,
|
| 1414 |
+
78,
|
| 1415 |
+
826,
|
| 1416 |
+
931
|
| 1417 |
+
],
|
| 1418 |
+
"page_idx": 10
|
| 1419 |
+
},
|
| 1420 |
+
{
|
| 1421 |
+
"type": "text",
|
| 1422 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Conference on Computer Vision and Pattern Recognition, pp. 770–778, 06 2016. doi: 10.1109/CVPR.2016.90. ",
|
| 1423 |
+
"bbox": [
|
| 1424 |
+
176,
|
| 1425 |
+
103,
|
| 1426 |
+
821,
|
| 1427 |
+
146
|
| 1428 |
+
],
|
| 1429 |
+
"page_idx": 11
|
| 1430 |
+
},
|
| 1431 |
+
{
|
| 1432 |
+
"type": "text",
|
| 1433 |
+
"text": "Todd Huster, Cho-Yu Jason Chiang, and Ritu Chadha. Limitations of the Lipschitz constant as a defense against adversarial examples. arXiv e-prints, art. arXiv:1807.09705, Jul 2018. ",
|
| 1434 |
+
"bbox": [
|
| 1435 |
+
173,
|
| 1436 |
+
156,
|
| 1437 |
+
823,
|
| 1438 |
+
185
|
| 1439 |
+
],
|
| 1440 |
+
"page_idx": 11
|
| 1441 |
+
},
|
| 1442 |
+
{
|
| 1443 |
+
"type": "text",
|
| 1444 |
+
"text": "Ming Jin and Javad Lavaei. Stability-certified reinforcement learning: A control-theoretic perspective. arXiv e-prints, art. arXiv:1810.11505, Oct 2018. ",
|
| 1445 |
+
"bbox": [
|
| 1446 |
+
173,
|
| 1447 |
+
195,
|
| 1448 |
+
820,
|
| 1449 |
+
224
|
| 1450 |
+
],
|
| 1451 |
+
"page_idx": 11
|
| 1452 |
+
},
|
| 1453 |
+
{
|
| 1454 |
+
"type": "text",
|
| 1455 |
+
"text": "Masakazu Kojima, Sunyoung Kim, and Hayato Waki. Sparsity in sums of squares of polynomials. Mathematical Programming, 103(1):45–62, May 2005. ISSN 1436-4646. doi: 10.1007/s10107-004-0554-3. ",
|
| 1456 |
+
"bbox": [
|
| 1457 |
+
173,
|
| 1458 |
+
234,
|
| 1459 |
+
825,
|
| 1460 |
+
276
|
| 1461 |
+
],
|
| 1462 |
+
"page_idx": 11
|
| 1463 |
+
},
|
| 1464 |
+
{
|
| 1465 |
+
"type": "text",
|
| 1466 |
+
"text": "Jean-Louis Krivine. Anneaux preordonn ´ es. ´ Journal d’analyse mathematique ´ , 12:p. 307–326, 1964. ",
|
| 1467 |
+
"bbox": [
|
| 1468 |
+
169,
|
| 1469 |
+
287,
|
| 1470 |
+
823,
|
| 1471 |
+
304
|
| 1472 |
+
],
|
| 1473 |
+
"page_idx": 11
|
| 1474 |
+
},
|
| 1475 |
+
{
|
| 1476 |
+
"type": "text",
|
| 1477 |
+
"text": "J. B. Lasserre. Convergent lmi relaxations for nonconvex quadratic programs. In Proceedings of the 39th IEEE Conference on Decision and Control (Cat. No.00CH37187), volume 5, pp. 5041–5046 vol.5, Dec 2000. doi: 10.1109/CDC.2001.914738. ",
|
| 1478 |
+
"bbox": [
|
| 1479 |
+
173,
|
| 1480 |
+
313,
|
| 1481 |
+
823,
|
| 1482 |
+
356
|
| 1483 |
+
],
|
| 1484 |
+
"page_idx": 11
|
| 1485 |
+
},
|
| 1486 |
+
{
|
| 1487 |
+
"type": "text",
|
| 1488 |
+
"text": "Jean B Lasserre. Convergent sdp-relaxations in polynomial optimization with sparsity. SIAM Journal on Optimization, 17(3):822–843, 2006. ",
|
| 1489 |
+
"bbox": [
|
| 1490 |
+
166,
|
| 1491 |
+
366,
|
| 1492 |
+
823,
|
| 1493 |
+
395
|
| 1494 |
+
],
|
| 1495 |
+
"page_idx": 11
|
| 1496 |
+
},
|
| 1497 |
+
{
|
| 1498 |
+
"type": "text",
|
| 1499 |
+
"text": "Jean Bernard Lasserre. An Introduction to Polynomial and Semi-Algebraic Optimization. Cambridge Texts in Applied Mathematics. Cambridge University Press, 2015. doi: 10.1017/ CBO9781107447226. ",
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
173,
|
| 1502 |
+
405,
|
| 1503 |
+
825,
|
| 1504 |
+
448
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 11
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "text",
|
| 1510 |
+
"text": "Y. Lecun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, Nov 1998. doi: 10.1109/5.726791. ",
|
| 1511 |
+
"bbox": [
|
| 1512 |
+
174,
|
| 1513 |
+
458,
|
| 1514 |
+
821,
|
| 1515 |
+
488
|
| 1516 |
+
],
|
| 1517 |
+
"page_idx": 11
|
| 1518 |
+
},
|
| 1519 |
+
{
|
| 1520 |
+
"type": "text",
|
| 1521 |
+
"text": "Takeru Miyato, Toshiki Kataoka, Masanori Koyama, and Yuichi Yoshida. Spectral normalization for generative adversarial networks. In International Conference on Learning Representations, 2018. ",
|
| 1522 |
+
"bbox": [
|
| 1523 |
+
173,
|
| 1524 |
+
497,
|
| 1525 |
+
825,
|
| 1526 |
+
540
|
| 1527 |
+
],
|
| 1528 |
+
"page_idx": 11
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"type": "text",
|
| 1532 |
+
"text": "Jaehyun Park and Stephen Boyd. General heuristics for nonconvex quadratically constrained quadratic programming. arXiv preprint arXiv:1703.07870, 2017. ",
|
| 1533 |
+
"bbox": [
|
| 1534 |
+
168,
|
| 1535 |
+
551,
|
| 1536 |
+
825,
|
| 1537 |
+
580
|
| 1538 |
+
],
|
| 1539 |
+
"page_idx": 11
|
| 1540 |
+
},
|
| 1541 |
+
{
|
| 1542 |
+
"type": "text",
|
| 1543 |
+
"text": "Aditi Raghunathan, Jacob Steinhardt, and Percy Liang. Certified defenses against adversarial examples. In International Conference on Learning Representations, 2018a. ",
|
| 1544 |
+
"bbox": [
|
| 1545 |
+
171,
|
| 1546 |
+
590,
|
| 1547 |
+
823,
|
| 1548 |
+
619
|
| 1549 |
+
],
|
| 1550 |
+
"page_idx": 11
|
| 1551 |
+
},
|
| 1552 |
+
{
|
| 1553 |
+
"type": "text",
|
| 1554 |
+
"text": "Aditi Raghunathan, Jacob Steinhardt, and Percy S Liang. Semidefinite relaxations for certifying robustness to adversarial examples. In Advances in Neural Information Processing Systems, pp. 10877–10887, 2018b. ",
|
| 1555 |
+
"bbox": [
|
| 1556 |
+
174,
|
| 1557 |
+
628,
|
| 1558 |
+
823,
|
| 1559 |
+
672
|
| 1560 |
+
],
|
| 1561 |
+
"page_idx": 11
|
| 1562 |
+
},
|
| 1563 |
+
{
|
| 1564 |
+
"type": "text",
|
| 1565 |
+
"text": "Gilbert Stengle. A nullstellensatz and a positivstellensatz in semialgebraic geometry. Mathematische Annalen, 207(2):87–97, Jun 1974. ISSN 1432-1807. doi: 10.1007/BF01362149. ",
|
| 1566 |
+
"bbox": [
|
| 1567 |
+
173,
|
| 1568 |
+
683,
|
| 1569 |
+
821,
|
| 1570 |
+
712
|
| 1571 |
+
],
|
| 1572 |
+
"page_idx": 11
|
| 1573 |
+
},
|
| 1574 |
+
{
|
| 1575 |
+
"type": "text",
|
| 1576 |
+
"text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014. ",
|
| 1577 |
+
"bbox": [
|
| 1578 |
+
173,
|
| 1579 |
+
722,
|
| 1580 |
+
825,
|
| 1581 |
+
779
|
| 1582 |
+
],
|
| 1583 |
+
"page_idx": 11
|
| 1584 |
+
},
|
| 1585 |
+
{
|
| 1586 |
+
"type": "text",
|
| 1587 |
+
"text": "Aladin Virmaux and Kevin Scaman. Lipschitz regularity of deep neural networks: analysis and efficient estimation. In Advances in Neural Information Processing Systems 31, pp. 3835–3844. Curran Associates, Inc., 2018. ",
|
| 1588 |
+
"bbox": [
|
| 1589 |
+
173,
|
| 1590 |
+
787,
|
| 1591 |
+
823,
|
| 1592 |
+
832
|
| 1593 |
+
],
|
| 1594 |
+
"page_idx": 11
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"type": "text",
|
| 1598 |
+
"text": "H. Waki, S. Kim, M. Kojima, and M. Muramatsu. Sums of squares and semidefinite program relaxations for polynomial optimization problems with structured sparsity. SIAM Journal on Optimization, 17(1):218–242, 2006. doi: 10.1137/050623802. ",
|
| 1599 |
+
"bbox": [
|
| 1600 |
+
174,
|
| 1601 |
+
842,
|
| 1602 |
+
823,
|
| 1603 |
+
885
|
| 1604 |
+
],
|
| 1605 |
+
"page_idx": 11
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "text",
|
| 1609 |
+
"text": "Zizhuo Wang, Song Zheng, Stephen Boyd, and Yinyu Ye. Further relaxations of the sdp approach to sensor network localization. Tech. Rep., 2006. ",
|
| 1610 |
+
"bbox": [
|
| 1611 |
+
173,
|
| 1612 |
+
895,
|
| 1613 |
+
823,
|
| 1614 |
+
924
|
| 1615 |
+
],
|
| 1616 |
+
"page_idx": 11
|
| 1617 |
+
},
|
| 1618 |
+
{
|
| 1619 |
+
"type": "text",
|
| 1620 |
+
"text": "Tillmann Weisser, Jean B Lasserre, and Kim-Chuan Toh. Sparse-bsos: a bounded degree sos hierarchy for large scale polynomial optimization with sparsity. Mathematical Programming Computation, 10(1):1–32, 2018. ",
|
| 1621 |
+
"bbox": [
|
| 1622 |
+
176,
|
| 1623 |
+
103,
|
| 1624 |
+
821,
|
| 1625 |
+
145
|
| 1626 |
+
],
|
| 1627 |
+
"page_idx": 12
|
| 1628 |
+
},
|
| 1629 |
+
{
|
| 1630 |
+
"type": "text",
|
| 1631 |
+
"text": "Lily Weng, Huan Zhang, Hongge Chen, Zhao Song, Cho-Jui Hsieh, Luca Daniel, Duane Boning, and Inderjit Dhillon. Towards fast computation of certified robustness for ReLU networks. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 5276–5285, Stockholmsmassan, Stockholm Sweden, 10–15 ¨ Jul 2018. PMLR. ",
|
| 1632 |
+
"bbox": [
|
| 1633 |
+
173,
|
| 1634 |
+
155,
|
| 1635 |
+
825,
|
| 1636 |
+
224
|
| 1637 |
+
],
|
| 1638 |
+
"page_idx": 12
|
| 1639 |
+
},
|
| 1640 |
+
{
|
| 1641 |
+
"type": "text",
|
| 1642 |
+
"text": "Eric Wong and Zico Kolter. Provable defenses against adversarial examples via the convex outer adversarial polytope. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 5286–5295, Stockholmsmassan, ¨ Stockholm Sweden, 10–15 Jul 2018. PMLR. ",
|
| 1643 |
+
"bbox": [
|
| 1644 |
+
173,
|
| 1645 |
+
234,
|
| 1646 |
+
825,
|
| 1647 |
+
290
|
| 1648 |
+
],
|
| 1649 |
+
"page_idx": 12
|
| 1650 |
+
},
|
| 1651 |
+
{
|
| 1652 |
+
"type": "text",
|
| 1653 |
+
"text": "Eric Wong, Frank Schmidt, and Zico Kolter. Wasserstein adversarial examples via projected Sinkhorn iterations. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 6808–6817, Long Beach, California, USA, 09–15 Jun 2019. PMLR. ",
|
| 1654 |
+
"bbox": [
|
| 1655 |
+
173,
|
| 1656 |
+
299,
|
| 1657 |
+
825,
|
| 1658 |
+
356
|
| 1659 |
+
],
|
| 1660 |
+
"page_idx": 12
|
| 1661 |
+
},
|
| 1662 |
+
{
|
| 1663 |
+
"type": "text",
|
| 1664 |
+
"text": "Saining Xie, Alexander Kirillov, Ross Girshick, and Kaiming He. Exploring Randomly Wired Neural Networks for Image Recognition. International Conference on Computer Vision, Apr 2019. ",
|
| 1665 |
+
"bbox": [
|
| 1666 |
+
174,
|
| 1667 |
+
364,
|
| 1668 |
+
825,
|
| 1669 |
+
407
|
| 1670 |
+
],
|
| 1671 |
+
"page_idx": 12
|
| 1672 |
+
},
|
| 1673 |
+
{
|
| 1674 |
+
"type": "text",
|
| 1675 |
+
"text": "Zhengfeng Yang, Chao Huang, Xin Chen, Wang Lin, and Zhiming Liu. A linear programming relaxation based approach for generating barrier certificates of hybrid systems. In John Fitzgerald, Constance Heitmeyer, Stefania Gnesi, and Anna Philippou (eds.), FM 2016: Formal Methods, pp. 721–738, Cham, 2016. Springer International Publishing. ISBN 978-3-319-48989-6. ",
|
| 1676 |
+
"bbox": [
|
| 1677 |
+
173,
|
| 1678 |
+
416,
|
| 1679 |
+
825,
|
| 1680 |
+
473
|
| 1681 |
+
],
|
| 1682 |
+
"page_idx": 12
|
| 1683 |
+
},
|
| 1684 |
+
{
|
| 1685 |
+
"type": "text",
|
| 1686 |
+
"text": "Yinyu Ye. Approximating quadratic programming with bound and quadratic constraints. Mathematical Programming, 84(2):219–226, Feb 1999. ISSN 1436-4646. doi: 10.1007/s10107980012a. ",
|
| 1687 |
+
"bbox": [
|
| 1688 |
+
174,
|
| 1689 |
+
482,
|
| 1690 |
+
820,
|
| 1691 |
+
511
|
| 1692 |
+
],
|
| 1693 |
+
"page_idx": 12
|
| 1694 |
+
},
|
| 1695 |
+
{
|
| 1696 |
+
"type": "text",
|
| 1697 |
+
"text": "Alp Yurtsever, Olivier Fercoq, and Volkan Cevher. A conditional-gradient-based augmented lagrangian framework. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 7272–7281, Long Beach, California, USA, 09–15 Jun 2019. PMLR. ",
|
| 1698 |
+
"bbox": [
|
| 1699 |
+
174,
|
| 1700 |
+
518,
|
| 1701 |
+
825,
|
| 1702 |
+
575
|
| 1703 |
+
],
|
| 1704 |
+
"page_idx": 12
|
| 1705 |
+
},
|
| 1706 |
+
{
|
| 1707 |
+
"type": "text",
|
| 1708 |
+
"text": "Y. Zhang, Z. Yang, W. Lin, H. Zhu, X. Chen, and X. Li. Safety verification of nonlinear hybrid systems based on bilinear programming. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 37(11):2768–2778, Nov 2018. doi: 10.1109/TCAD.2018.2858383. ",
|
| 1709 |
+
"bbox": [
|
| 1710 |
+
176,
|
| 1711 |
+
585,
|
| 1712 |
+
823,
|
| 1713 |
+
628
|
| 1714 |
+
],
|
| 1715 |
+
"page_idx": 12
|
| 1716 |
+
},
|
| 1717 |
+
{
|
| 1718 |
+
"type": "text",
|
| 1719 |
+
"text": "A PROOF OF THEOREM 1 ",
|
| 1720 |
+
"text_level": 1,
|
| 1721 |
+
"bbox": [
|
| 1722 |
+
176,
|
| 1723 |
+
102,
|
| 1724 |
+
398,
|
| 1725 |
+
118
|
| 1726 |
+
],
|
| 1727 |
+
"page_idx": 13
|
| 1728 |
+
},
|
| 1729 |
+
{
|
| 1730 |
+
"type": "text",
|
| 1731 |
+
"text": "Theorem. Let $f$ be a differentiable and Lipschitz continuous function on an open, convex subset $\\mathcal { X }$ of a euclidean space. Let $\\| \\cdot \\|$ be the dual norm. The Lipschitz constant of $f$ is given by ",
|
| 1732 |
+
"bbox": [
|
| 1733 |
+
173,
|
| 1734 |
+
133,
|
| 1735 |
+
823,
|
| 1736 |
+
162
|
| 1737 |
+
],
|
| 1738 |
+
"page_idx": 13
|
| 1739 |
+
},
|
| 1740 |
+
{
|
| 1741 |
+
"type": "equation",
|
| 1742 |
+
"img_path": "images/75dfe4ce7cb4a035435f0b2e71357c5eec573e8af23660a36246e3b6a1b236ae.jpg",
|
| 1743 |
+
"text": "$$\nL ( f ) = \\operatorname* { s u p } _ { x \\in \\mathcal { X } } \\| \\nabla f ( x ) \\| _ { * }\n$$",
|
| 1744 |
+
"text_format": "latex",
|
| 1745 |
+
"bbox": [
|
| 1746 |
+
419,
|
| 1747 |
+
169,
|
| 1748 |
+
576,
|
| 1749 |
+
194
|
| 1750 |
+
],
|
| 1751 |
+
"page_idx": 13
|
| 1752 |
+
},
|
| 1753 |
+
{
|
| 1754 |
+
"type": "text",
|
| 1755 |
+
"text": "Proof. First we show that $L ( f ) \\leq \\operatorname* { s u p } _ { x \\in \\mathcal { X } } \\left\\| \\nabla f ( x ) \\right\\| _ { * }$ . ",
|
| 1756 |
+
"bbox": [
|
| 1757 |
+
173,
|
| 1758 |
+
208,
|
| 1759 |
+
532,
|
| 1760 |
+
227
|
| 1761 |
+
],
|
| 1762 |
+
"page_idx": 13
|
| 1763 |
+
},
|
| 1764 |
+
{
|
| 1765 |
+
"type": "equation",
|
| 1766 |
+
"img_path": "images/11c208c20edd3bfbe6f7541c0dcc3b8f8bd7d078186d170c8a575f6991daf8d2.jpg",
|
| 1767 |
+
"text": "$$\n\\begin{array} { r l } { | f ( y ) - f ( x ) | = \\displaystyle \\left. \\int _ { 0 } ^ { 1 } \\nabla f ( ( 1 - t ) x + t y ) ^ { T } ( y - x ) d t \\right. } & { } \\\\ { \\displaystyle } & { \\le \\displaystyle \\int _ { 0 } ^ { 1 } \\left. \\nabla f ( ( 1 - t ) x + t y ) ^ { T } ( y - x ) \\right. d t } \\\\ { \\displaystyle } & { \\le \\displaystyle \\int _ { 0 } ^ { 1 } \\| \\nabla f ( ( 1 - t ) x + t y ) \\| _ { * } d t \\| y - x \\| } \\\\ { \\displaystyle } & { \\le \\operatorname* { s u p } _ { x \\in \\mathcal { X } } \\| \\nabla f ( x ) \\| _ { * } \\| y - x \\| } \\end{array}\n$$",
|
| 1768 |
+
"text_format": "latex",
|
| 1769 |
+
"bbox": [
|
| 1770 |
+
313,
|
| 1771 |
+
232,
|
| 1772 |
+
681,
|
| 1773 |
+
367
|
| 1774 |
+
],
|
| 1775 |
+
"page_idx": 13
|
| 1776 |
+
},
|
| 1777 |
+
{
|
| 1778 |
+
"type": "text",
|
| 1779 |
+
"text": "were we have used the convexity of $\\mathcal { X }$ . ",
|
| 1780 |
+
"bbox": [
|
| 1781 |
+
174,
|
| 1782 |
+
373,
|
| 1783 |
+
429,
|
| 1784 |
+
388
|
| 1785 |
+
],
|
| 1786 |
+
"page_idx": 13
|
| 1787 |
+
},
|
| 1788 |
+
{
|
| 1789 |
+
"type": "text",
|
| 1790 |
+
"text": "Now we show the reverse inequality $L ( f ) \\geq \\operatorname* { s u p } _ { x \\in \\mathcal { X } } \\| \\nabla f ( x ) \\| _ { * }$ . To this end, we show that for any positive $\\epsilon$ , we have that $L ( f ) \\geq \\operatorname* { s u p } _ { x \\in \\mathcal { X } } \\| \\nabla f ( x ) \\| _ { * } ^ { - } - \\epsilon$ . ",
|
| 1791 |
+
"bbox": [
|
| 1792 |
+
176,
|
| 1793 |
+
393,
|
| 1794 |
+
821,
|
| 1795 |
+
425
|
| 1796 |
+
],
|
| 1797 |
+
"page_idx": 13
|
| 1798 |
+
},
|
| 1799 |
+
{
|
| 1800 |
+
"type": "text",
|
| 1801 |
+
"text": "Let $z \\in \\mathcal { X }$ be such that $\\begin{array} { r } { \\| \\nabla f ( z ) \\| _ { * } \\geq \\operatorname* { s u p } _ { x \\in \\mathcal { X } } \\| \\nabla f ( x ) \\| _ { * } - \\epsilon } \\end{array}$ . Because $\\mathcal { X }$ is open, there exists a sequence $\\{ h _ { k } \\} _ { k = 1 } ^ { \\infty }$ with the following properties: ",
|
| 1802 |
+
"bbox": [
|
| 1803 |
+
171,
|
| 1804 |
+
429,
|
| 1805 |
+
823,
|
| 1806 |
+
459
|
| 1807 |
+
],
|
| 1808 |
+
"page_idx": 13
|
| 1809 |
+
},
|
| 1810 |
+
{
|
| 1811 |
+
"type": "text",
|
| 1812 |
+
"text": "1. $\\langle h _ { k } , \\nabla f ( z ) \\rangle = \\| h _ { k } \\| \\| \\nabla f ( z ) \\| _ { * }$ \n2. $z + h _ { k } \\in \\mathcal { X }$ \n3. $\\scriptstyle \\operatorname* { l i m } _ { k \\to \\infty } h _ { k } = 0$ . ",
|
| 1813 |
+
"bbox": [
|
| 1814 |
+
210,
|
| 1815 |
+
469,
|
| 1816 |
+
441,
|
| 1817 |
+
536
|
| 1818 |
+
],
|
| 1819 |
+
"page_idx": 13
|
| 1820 |
+
},
|
| 1821 |
+
{
|
| 1822 |
+
"type": "text",
|
| 1823 |
+
"text": "By definition of the gradient, there exists a function $\\delta$ such that $\\begin{array} { r } { \\operatorname* { l i m } _ { h 0 } \\delta ( h ) = 0 } \\end{array}$ and the following holds: ",
|
| 1824 |
+
"bbox": [
|
| 1825 |
+
173,
|
| 1826 |
+
549,
|
| 1827 |
+
826,
|
| 1828 |
+
578
|
| 1829 |
+
],
|
| 1830 |
+
"page_idx": 13
|
| 1831 |
+
},
|
| 1832 |
+
{
|
| 1833 |
+
"type": "equation",
|
| 1834 |
+
"img_path": "images/38ad4a9092670ba6ca44fc64a23c7fa0036502183c9ee4b5246dad401ab5b5f1.jpg",
|
| 1835 |
+
"text": "$$\nf ( z + h ) = f ( z ) + \\langle h , \\nabla f ( z ) \\rangle + \\delta ( h ) \\| h \\|\n$$",
|
| 1836 |
+
"text_format": "latex",
|
| 1837 |
+
"bbox": [
|
| 1838 |
+
356,
|
| 1839 |
+
584,
|
| 1840 |
+
642,
|
| 1841 |
+
602
|
| 1842 |
+
],
|
| 1843 |
+
"page_idx": 13
|
| 1844 |
+
},
|
| 1845 |
+
{
|
| 1846 |
+
"type": "text",
|
| 1847 |
+
"text": "For our previously defined iterates $h _ { k }$ we then have ",
|
| 1848 |
+
"bbox": [
|
| 1849 |
+
173,
|
| 1850 |
+
626,
|
| 1851 |
+
513,
|
| 1852 |
+
641
|
| 1853 |
+
],
|
| 1854 |
+
"page_idx": 13
|
| 1855 |
+
},
|
| 1856 |
+
{
|
| 1857 |
+
"type": "equation",
|
| 1858 |
+
"img_path": "images/f035e537b88c8260bf8fab399bdd1662362352735767530a787320483ef4834b.jpg",
|
| 1859 |
+
"text": "$$\n\\Rightarrow | f ( z + h _ { k } ) - f ( z ) | = | \\| h _ { k } \\| \\| \\nabla f ( z ) \\| _ { * } + \\delta ( h _ { k } ) \\| h _ { k } \\| |\n$$",
|
| 1860 |
+
"text_format": "latex",
|
| 1861 |
+
"bbox": [
|
| 1862 |
+
308,
|
| 1863 |
+
647,
|
| 1864 |
+
687,
|
| 1865 |
+
665
|
| 1866 |
+
],
|
| 1867 |
+
"page_idx": 13
|
| 1868 |
+
},
|
| 1869 |
+
{
|
| 1870 |
+
"type": "text",
|
| 1871 |
+
"text": "Dividing both sides by $\\| h _ { k } \\|$ and using the definition of $L ( f )$ we finally get ",
|
| 1872 |
+
"bbox": [
|
| 1873 |
+
174,
|
| 1874 |
+
671,
|
| 1875 |
+
668,
|
| 1876 |
+
686
|
| 1877 |
+
],
|
| 1878 |
+
"page_idx": 13
|
| 1879 |
+
},
|
| 1880 |
+
{
|
| 1881 |
+
"type": "equation",
|
| 1882 |
+
"img_path": "images/70b835093901ec3f851bb3421f3cd18cc33122b41478fb029605712706c281b0.jpg",
|
| 1883 |
+
"text": "$$\n\\begin{array} { r l } & { \\Rightarrow L ( f ) \\geq \\left| \\frac { f ( z + h _ { k } ) - f ( z ) } { \\| h _ { k } \\| } \\right| = \\| \\| \\nabla f ( z ) \\| _ { * } + \\delta ( h _ { k } ) \\| } \\\\ & { \\Rightarrow L ( f ) \\geq \\underset { k \\to \\infty } { \\operatorname* { l i m } } \\left| \\| f ( z ) \\| _ { * } + \\delta ( h _ { k } ) \\right| = \\| \\nabla f ( z ) \\| _ { * } } \\\\ & { \\Rightarrow L ( f ) \\geq \\underset { x \\in \\mathcal { X } } { \\operatorname* { s u p } } \\| \\nabla f ( x ) \\| _ { * } - \\epsilon } \\end{array}\n$$",
|
| 1884 |
+
"text_format": "latex",
|
| 1885 |
+
"bbox": [
|
| 1886 |
+
310,
|
| 1887 |
+
693,
|
| 1888 |
+
684,
|
| 1889 |
+
780
|
| 1890 |
+
],
|
| 1891 |
+
"page_idx": 13
|
| 1892 |
+
},
|
| 1893 |
+
{
|
| 1894 |
+
"type": "text",
|
| 1895 |
+
"text": "B PROOF OF PROPOSITION 1 ",
|
| 1896 |
+
"text_level": 1,
|
| 1897 |
+
"bbox": [
|
| 1898 |
+
176,
|
| 1899 |
+
102,
|
| 1900 |
+
426,
|
| 1901 |
+
118
|
| 1902 |
+
],
|
| 1903 |
+
"page_idx": 14
|
| 1904 |
+
},
|
| 1905 |
+
{
|
| 1906 |
+
"type": "text",
|
| 1907 |
+
"text": "Proposition. Let $f _ { d }$ be a dense network (all weights are nonzero). The following sets, indexed by $i = 1 , \\ldots , n _ { d } ,$ form a valid sparsity pattern for the norm-gradient polynomial of the network $f _ { d }$ : ",
|
| 1908 |
+
"bbox": [
|
| 1909 |
+
171,
|
| 1910 |
+
133,
|
| 1911 |
+
825,
|
| 1912 |
+
162
|
| 1913 |
+
],
|
| 1914 |
+
"page_idx": 14
|
| 1915 |
+
},
|
| 1916 |
+
{
|
| 1917 |
+
"type": "equation",
|
| 1918 |
+
"img_path": "images/28c073681c59ded7112f85f02f38fbdcd87581ad3f5fe805743c77946d8ec9b8.jpg",
|
| 1919 |
+
"text": "$$\nI _ { i } : = \\left\\{ s _ { ( d - 1 , i ) } \\right\\} \\cup \\left\\{ s _ { ( j , k ) } : t h e r e \\ e x i s t s a \\ d i r e c t e d p a t h f r o m \\ s _ { ( j , k ) } \\ t o \\ s _ { ( d - 1 , i ) } \\ i n \\ G _ { d } \\right\\}\n$$",
|
| 1920 |
+
"text_format": "latex",
|
| 1921 |
+
"bbox": [
|
| 1922 |
+
202,
|
| 1923 |
+
167,
|
| 1924 |
+
766,
|
| 1925 |
+
188
|
| 1926 |
+
],
|
| 1927 |
+
"page_idx": 14
|
| 1928 |
+
},
|
| 1929 |
+
{
|
| 1930 |
+
"type": "text",
|
| 1931 |
+
"text": "Proof. First we show that $\\cup _ { i = 1 } ^ { m } I _ { i } = I$ . This comes from the fact that any neuron in the network is connected to at least one neuron in the last layer. Otherwise such neuron could be removed from the network altogether. ",
|
| 1932 |
+
"bbox": [
|
| 1933 |
+
173,
|
| 1934 |
+
199,
|
| 1935 |
+
825,
|
| 1936 |
+
242
|
| 1937 |
+
],
|
| 1938 |
+
"page_idx": 14
|
| 1939 |
+
},
|
| 1940 |
+
{
|
| 1941 |
+
"type": "text",
|
| 1942 |
+
"text": "Now we show the second property of a valid sparsity pattern. Note that the norm-gradient polynomial is composed of monomials corresponding to the product of variables in a path from input to a final neuron. This imples that if we let $p _ { i }$ be the sum of all the terms that involve the neuron $s _ { ( d - 1 , i ) }$ we have that $p = \\sum _ { i } p _ { i }$ , and $p _ { i }$ only depends on the variables in $I _ { i }$ . ",
|
| 1943 |
+
"bbox": [
|
| 1944 |
+
173,
|
| 1945 |
+
248,
|
| 1946 |
+
825,
|
| 1947 |
+
308
|
| 1948 |
+
],
|
| 1949 |
+
"page_idx": 14
|
| 1950 |
+
},
|
| 1951 |
+
{
|
| 1952 |
+
"type": "text",
|
| 1953 |
+
"text": "We now show the last property of the valid sparsity pattern. This is the only part where we use that the network is dense. For any network architecture the first two conditions hold. We will use the fact that the maximal cliques of a chordal graph form a valid sparsity pattern (see for example Lasserre (2006)). ",
|
| 1954 |
+
"bbox": [
|
| 1955 |
+
174,
|
| 1956 |
+
313,
|
| 1957 |
+
825,
|
| 1958 |
+
369
|
| 1959 |
+
],
|
| 1960 |
+
"page_idx": 14
|
| 1961 |
+
},
|
| 1962 |
+
{
|
| 1963 |
+
"type": "text",
|
| 1964 |
+
"text": "Because the network is dense, we see that the clique $I _ { i }$ is composed of the neuron in the last layer $s _ { ( d - 1 , i ) }$ and all neurons in the previous layers. Now consider the extension of the computational graph $\\hat { G } _ { d } = ( V , \\hat { E } )$ where ",
|
| 1965 |
+
"bbox": [
|
| 1966 |
+
173,
|
| 1967 |
+
376,
|
| 1968 |
+
825,
|
| 1969 |
+
422
|
| 1970 |
+
],
|
| 1971 |
+
"page_idx": 14
|
| 1972 |
+
},
|
| 1973 |
+
{
|
| 1974 |
+
"type": "equation",
|
| 1975 |
+
"img_path": "images/6d0207377aeca8d2dbfbc4e2f33b0809474cb656649321b97c0b44d62f73e483.jpg",
|
| 1976 |
+
"text": "$$\n\\hat { E } = E \\cup \\{ ( s _ { j , k } , s _ { l , m } ) : j , l \\leq d - 2 ) \\}\n$$",
|
| 1977 |
+
"text_format": "latex",
|
| 1978 |
+
"bbox": [
|
| 1979 |
+
370,
|
| 1980 |
+
430,
|
| 1981 |
+
627,
|
| 1982 |
+
449
|
| 1983 |
+
],
|
| 1984 |
+
"page_idx": 14
|
| 1985 |
+
},
|
| 1986 |
+
{
|
| 1987 |
+
"type": "text",
|
| 1988 |
+
"text": "which consists of adding all the edges between the neurons that are not in the last layer. We show that this graph is chordal. Let $( a _ { 1 } , \\ldots , a _ { r } , a _ { 1 } )$ be a cycle of length at least 4 $( r \\geq 4 )$ ). notice that because neurons in the last layer are not connected between them in $\\hat { G }$ , no two consecutive neurons in this cycle belong to the last layer. This implies that in the subsequence $( a _ { 1 } , a _ { 2 } , a _ { 3 } , a _ { 4 } , a _ { 5 } )$ at most three belong to the last layer. A simple analysis of all cases implies that it contains at least two nonconsecutive neurons not in the last layer. Neurons not in the last layer are always connected in $\\hat { G }$ . This constitutes a chord. This shows that $\\hat { G } _ { d }$ is a chordal graph. Its maximal cliques correspond exactly to the sets in proposition. ",
|
| 1989 |
+
"bbox": [
|
| 1990 |
+
173,
|
| 1991 |
+
454,
|
| 1992 |
+
825,
|
| 1993 |
+
571
|
| 1994 |
+
],
|
| 1995 |
+
"page_idx": 14
|
| 1996 |
+
},
|
| 1997 |
+
{
|
| 1998 |
+
"type": "image",
|
| 1999 |
+
"img_path": "images/c4d3bde944b1201dbb14a1b15dbe0955ab341b628a0782d8b01936caadfeaf19.jpg",
|
| 2000 |
+
"image_caption": [
|
| 2001 |
+
"Figure 9: Lipschitz bound comparison for 1-hidden layer networks "
|
| 2002 |
+
],
|
| 2003 |
+
"image_footnote": [],
|
| 2004 |
+
"bbox": [
|
| 2005 |
+
181,
|
| 2006 |
+
137,
|
| 2007 |
+
813,
|
| 2008 |
+
241
|
| 2009 |
+
],
|
| 2010 |
+
"page_idx": 15
|
| 2011 |
+
},
|
| 2012 |
+
{
|
| 2013 |
+
"type": "image",
|
| 2014 |
+
"img_path": "images/5b9afc5939934f50f5c505c382a417332da65ece6fd0ac90a05e2e208e5c12a0.jpg",
|
| 2015 |
+
"image_caption": [
|
| 2016 |
+
"Figure 10: Lipschitz bound comparison for 2-hidden layer networks "
|
| 2017 |
+
],
|
| 2018 |
+
"image_footnote": [],
|
| 2019 |
+
"bbox": [
|
| 2020 |
+
181,
|
| 2021 |
+
286,
|
| 2022 |
+
813,
|
| 2023 |
+
391
|
| 2024 |
+
],
|
| 2025 |
+
"page_idx": 15
|
| 2026 |
+
}
|
| 2027 |
+
]
|
parse/train/rJe4_xSFDB/rJe4_xSFDB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rJe4_xSFDB/rJe4_xSFDB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|