Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/Bk8ZcAxR-/Bk8ZcAxR-.md +401 -0
- parse/train/Bk8ZcAxR-/Bk8ZcAxR-_content_list.json +0 -0
- parse/train/Bk8ZcAxR-/Bk8ZcAxR-_middle.json +0 -0
- parse/train/Bk8ZcAxR-/Bk8ZcAxR-_model.json +0 -0
- parse/train/HJYoqzbC-/HJYoqzbC-_content_list.json +1264 -0
- parse/train/HJYoqzbC-/HJYoqzbC-_middle.json +0 -0
- parse/train/HJeq43AqF7/HJeq43AqF7.md +261 -0
- parse/train/HJeq43AqF7/HJeq43AqF7_content_list.json +1384 -0
- parse/train/HJeq43AqF7/HJeq43AqF7_middle.json +0 -0
- parse/train/HJeq43AqF7/HJeq43AqF7_model.json +0 -0
- parse/train/SJzMATlAZ/SJzMATlAZ.md +331 -0
- parse/train/SJzMATlAZ/SJzMATlAZ_model.json +0 -0
- parse/train/sUgpxb9QD/sUgpxb9QD.md +447 -0
- parse/train/sUgpxb9QD/sUgpxb9QD_content_list.json +1151 -0
- parse/train/sUgpxb9QD/sUgpxb9QD_middle.json +0 -0
- parse/train/sUgpxb9QD/sUgpxb9QD_model.json +0 -0
- parse/train/umIdUL8rMH/umIdUL8rMH.md +488 -0
- parse/train/umIdUL8rMH/umIdUL8rMH_content_list.json +0 -0
- parse/train/umIdUL8rMH/umIdUL8rMH_middle.json +0 -0
- parse/train/umIdUL8rMH/umIdUL8rMH_model.json +0 -0
parse/train/Bk8ZcAxR-/Bk8ZcAxR-.md
ADDED
|
@@ -0,0 +1,401 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EIGENOPTION DISCOVERY THROUGH THEDEEP SUCCESSOR REPRESENTATION
|
| 2 |
+
|
| 3 |
+
Marlos C. Machado1∗, Clemens Rosenbaum2, Xiaoxiao Guo3
|
| 4 |
+
Miao Liu3, Gerald Tesauro3, Murray Campbell3
|
| 5 |
+
1 University of Alberta, Edmonton, AB, Canada
|
| 6 |
+
2 University of Massachusetts, Amherst, MA, USA
|
| 7 |
+
3 IBM Research, Yorktown Heights, NY, USA
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Options in reinforcement learning allow agents to hierarchically decompose a task into subtasks, having the potential to speed up learning and planning. However, autonomously learning effective sets of options is still a major challenge in the field. In this paper we focus on the recently introduced idea of using representation learning methods to guide the option discovery process. Specifically, we look at eigenoptions, options obtained from representations that encode diffusive information flow in the environment. We extend the existing algorithms for eigenoption discovery to settings with stochastic transitions and in which handcrafted features are not available. We propose an algorithm that discovers eigenoptions while learning non-linear state representations from raw pixels. It exploits recent successes in the deep reinforcement learning literature and the equivalence between proto-value functions and the successor representation. We use traditional tabular domains to provide intuition about our approach and Atari 2600 games to demonstrate its potential.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Sequential decision making usually involves planning, acting, and learning about temporally extended courses of actions over different time scales. In the reinforcement learning framework, options are a well-known formalization of the notion of actions extended in time; and they have been shown to speed up learning and planning when appropriately defined (e.g., Brunskill & Li, 2014; Guo et al., 2017; Solway et al., 2014). In spite of that, autonomously identifying good options is still an open problem. This problem is known as the problem of option discovery.
|
| 16 |
+
|
| 17 |
+
Option discovery has received ample attention over many years, with varied solutions being proposed (e.g., Bacon et al., 2017; S¸ imsek & Barto, 2004; Daniel et al., 2016; Florensa et al., 2017; Konidaris & Barto, 2009; Mankowitz et al., 2016; McGovern & Barto, 2001). Recently, Machado et al. (2017) and Vezhnevets et al. (2017) proposed the idea of learning options that traverse directions of a latent representation of the environment. In this paper we further explore this idea.
|
| 18 |
+
|
| 19 |
+
More specifically, we focus on the concept of eigenoptions (Machado et al., 2017), options learned using a model of diffusive information flow in the environment. They have been shown to improve agents’ performance by reducing the expected number of time steps a uniform random policy needs in order to traverse the state space. Eigenoptions are defined in terms of proto-value functions (PVFs; Mahadevan, 2005), basis functions learned from the environment’s underlying state-transition graph. PVFs and eigenoptions have been defined and thoroughly evaluated in the tabular case. Currently, eigenoptions can be used in environments where it is infeasible to enumerate states only when a linear representation of these states is known beforehand.
|
| 20 |
+
|
| 21 |
+
In this paper we extend the notion of eigenoptions to stochastic environments with non-enumerated states, which are commonly approximated by feature representations. Despite methods that learn representations generally being more flexible, more scalable, and often leading to better performance, current algorithms for eigenoption discovery cannot be combined with representation learning. We introduce an algorithm that is capable of discovering eigenoptions while learning representations. The learned representations implicitly approximate the model of diffusive information flow (hereafter abbreviated as the DIF model) in the environment. We do so by exploiting the equivalence between PVFs and the successor representation (SR; Dayan, 1993). Notably, by using the SR we also start to be able to deal with stochastic transitions naturally, a limitation of previous algorithms.
|
| 22 |
+
|
| 23 |
+
We evaluate our algorithm in a tabular domain as well as on Atari 2600 games. We use the tabular domain to provide intuition about our algorithm and to compare it to the algorithms in the literature. Our evaluation in Atari 2600 games provides promising evidence of the applicability of our algorithm in a setting in which a representation of the agent’s observation is learned from raw pixels.
|
| 24 |
+
|
| 25 |
+
# 2 BACKGROUND
|
| 26 |
+
|
| 27 |
+
In this section we discuss the reinforcement learning setting, the options framework, and the set of options known as eigenoptions. We also discuss the successor representation, which is the main concept used in the proposed algorithm.
|
| 28 |
+
|
| 29 |
+
# 2.1 REINFORCEMENT LEARNING AND OPTIONS
|
| 30 |
+
|
| 31 |
+
We consider the reinforcement learning (RL) problem in which a learning agent interacts with an unknown environment in order to maximize a reward signal. RL is often formalized as a Markov decision process (MDP), described as a 5-tuple: $\langle \mathcal { S } , \mathcal { A } , p , r , \gamma \rangle$ . At time $t$ the agent is in state $s _ { t } \in \mathcal S$ where it takes action $a _ { t } \in \mathcal A$ that leads to the next state $s _ { t + 1 } ~ \in ~ \mathcal { S }$ according to the transition probability kernel $p ( s ^ { \prime } | s , a )$ . The agent also observes a reward $R _ { t + 1 }$ generated by the function $r : \mathcal { S } \times \mathcal { A } \mathbb { R }$ . The agent’s goal is to learn a policy $\pi : \mathcal { S \times A } \to [ 0 , 1 ]$ that maximizes the expected discounted return $\begin{array} { r } { G _ { t } \doteq \mathbb { E } _ { \pi , p } \big [ \sum _ { k = 0 } ^ { \infty } \gamma ^ { k } R _ { t + k + 1 } | s _ { t } \big ] } \end{array}$ , where $\gamma \in [ 0 , 1 ]$ is the discount factor.
|
| 32 |
+
|
| 33 |
+
In this paper we are interested in the class of algorithms that determine the agent’s policy by being greedy with respect to estimates of value functions; either w.r.t. the state value $v _ { \pi } ( s )$ , or w.r.t. the state-action value function $q _ { \pi } ( s , a )$ . Formally, $\begin{array} { r } { v _ { \pi } ( s ) = \mathbb { E } _ { \pi , p } [ G _ { t } | s ] = \sum _ { a } \pi ( a | s ) q _ { \pi } ( s , a ) } \end{array}$ . Notice that in large problems these estimates have to be approximated because it is infeasible to learn a value for each state-action pair. This is generally done by parameterizing $q _ { \pi } ( s , a )$ with a set of weights $\pmb \theta$ such that $q ( s , a , \pmb \theta ) \approx q _ { \pi } ( s , a )$ . Currently, neural networks are the most successful parametrization approach in the field (e.g., Mnih et al., 2015; Tesauro, 1995). One of the better known instantiations of this idea is the algorithm called Deep Q-network (DQN; Mnih et al., 2015), which uses a neural network to estimate state-action value functions from raw pixels.
|
| 34 |
+
|
| 35 |
+
Options (Sutton et al., 1999) are our main topic of study. They are temporally extended actions that allow us to represent courses of actions. An option $\omega \in \Omega$ is a 3-tuple $\omega = \langle { \mathcal { T } } _ { \omega } , { \pi } _ { \omega } , { \mathcal { T } } _ { \omega } \rangle$ where $\mathcal { T } _ { \omega } \subseteq \mathcal { S }$ denotes the option’s initiation set, $\pi _ { \omega } : \mathcal { S } \times \mathcal { A } \to [ 0 , 1 ]$ denotes the option’s policy, and $\mathcal { T } _ { \omega } \subseteq \mathcal { S }$ denotes the option’s termination set. We consider the call-and-return option execution model in which a meta-policy $\mu : \mathcal { S } \Omega$ dictates the agent’s behavior (notice ${ \mathcal { A } } \subseteq \Omega$ ). After the agent decides to follow option $\omega$ from a state in $\mathcal { T } _ { \omega }$ , actions are selected according to $\pi _ { \omega }$ until the agent reaches a state in $\mathcal { T } _ { \omega }$ . We are interested in learning $\mathcal { T } _ { \omega } , \pi _ { \omega }$ , and $\mathcal { T } _ { \omega }$ from scratch.
|
| 36 |
+
|
| 37 |
+
# 2.2 PROTO-VALUE FUNCTIONS AND EIGENOPTIONS
|
| 38 |
+
|
| 39 |
+
Eigenoptions are options that maximize eigenpurposes $r _ { i } ^ { \mathbf { e } }$ , intrinsic reward functions obtained from the DIF model (Machado et al., 2017). Formally,
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
\begin{array} { r l r } { r _ { i } ^ { \bf e } ( s , s ^ { \prime } ) } & { { } = } & { { \bf e } ^ { \top } \Big ( \phi ( s ^ { \prime } ) - \phi ( s ) \Big ) , } \end{array}
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
where $\phi ( \cdot )$ denotes a feature representation of a given state (e.g., one-hot encoding in the tabular case) and e denotes an eigenvector encoding the DIF model at a specific timescale. Each intrinsic reward function, defined by the eigenvector being used, incentivizes the agent to traverse a different latent dimension of the state space.
|
| 46 |
+
|
| 47 |
+
In the tabular case, the algorithms capable of learning eigenoptions encode the DIF model through the combinatorial graph Laplacian $\bar { \mathcal { L } } = D ^ { - 1 / 2 } ( D \bar { - } \bar { W } ) D ^ { \bar { - } 1 / 2 }$ , where $W$ is the graph’s weight matrix and $D$ is the diagonal matrix whose entries are the row sums of $W$ . The weight matrix is a square matrix where the $i j$ -th entry represents the connection between states $i$ and $j$ . Notice that this approach does not naturally deal with stochastic or unidirectional transitions because $W$ is generally defined as a symmetric adjacency matrix. Importantly, the eigenvectors of $\mathcal { L }$ are also known as proto-value functions (PVFs; Mahadevan, 2005; Mahadevan & Maggioni, 2007).
|
| 48 |
+
|
| 49 |
+

|
| 50 |
+
Figure 1: Successor representation, with respect to the uniform random policy, of state A (left). This example is similar to Dayan’s (1993). The red color represents larger values while the blue color represents smaller values (states that are temporally further away).
|
| 51 |
+
|
| 52 |
+
In settings in which states cannot be enumerated, the DIF model is represented through a matrix of transitions $T$ , with row $i$ encoding the transition vector $\phi ( s _ { t } ) - \phi ( \bar { s } _ { t - 1 } )$ , where $\phi ( \cdot )$ denotes a fixed linear feature representation known beforehand ( $i$ can be different from $t$ if transitions are observed more than once). Machado et al. (2017) justifies this sampling strategy with the fact that, in the tabular case, if every transition is sampled once, the right eigenvectors of matrix $T$ converge to PVFs. Because transitions are added only once, regardless of their frequency, this algorithm is not well suited to stochastic environments. In this paper we introduce an algorithm that naturally deals with stochasticity and that does not require $\phi ( \cdot )$ to be known beforehand. Our algorithm learns the environment’s DIF model while learning a representation of the environment from raw pixels.
|
| 53 |
+
|
| 54 |
+
# 2.3 THE SUCCESSOR REPRESENTATION
|
| 55 |
+
|
| 56 |
+
The successor representation (SR; Dayan, 1993) determines state generalization by how similar its successor states are. It is defined to be the expected future occupancy of state $s ^ { \prime }$ given the agent’s policy is $\pi$ and its starting state is $s$ . It can be seen as defining state similarity in terms of time. See Figure 1 for an example. The Euclidean distance between state A and state C is smaller than the Euclidean distance between state A and state B. However, if one considers the gray tiles to be walls, an agent in state A can reach state B much quicker than state C. The SR captures this distinction, ensuring that state A is more similar to state $\mathbf { B }$ than it is to state C.
|
| 57 |
+
|
| 58 |
+
Let $\mathbb { 1 } _ { \{ \cdot \} }$ denote the indicator function, the SR, $\Psi _ { \pi } ( s , s ^ { \prime } )$ , is formally defined, for $\gamma < 1$ , as :
|
| 59 |
+
|
| 60 |
+
$$
|
| 61 |
+
\begin{array} { r l l } { \Psi _ { \pi } ( s , s ^ { \prime } ) } & { = } & { \mathbb { E } _ { \pi , p } \Bigg [ \displaystyle \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } \mathbb { 1 } _ { \{ S _ { t } = s ^ { \prime } \} } \Big | S _ { 0 } = s \Bigg ] . } \end{array}
|
| 62 |
+
$$
|
| 63 |
+
|
| 64 |
+
This expectation can be estimated from samples with temporal-difference error (Sutton, 1988):
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
\begin{array} { r l r } { \hat { \Psi } ( s , j ) } & { \longleftarrow } & { \hat { \Psi } ( s , j ) + \eta \Biggl [ \mathbb { 1 } _ { \{ s = j \} } + \gamma \hat { \Psi } ( s ^ { \prime } , j ) - \hat { \Psi } ( s , j ) \Biggr ] , } \end{array}
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
where $\eta$ is the step-size. In the limit, the SR converges to $\Psi _ { \pi } = ( I { - } \gamma T _ { \pi } ) ^ { - 1 }$ . This lets us decompose the value function into the product between the SR and the immediate reward (Dayan, 1993):
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
v _ { \pi } ( s ) = \sum _ { s ^ { \prime } \in S } \Psi _ { \pi } ( s , s ^ { \prime } ) r ( s ^ { \prime } ) .
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
The SR is directly related to several other ideas in the field. It can be seen as the dual approach to dynamic programming and to value-function based methods in reinforcement learning (Wang et al., 2007). Moreover, the eigenvectors generated from its eigendecomposition are equivalent to proto-value functions (Stachenfeld et al., 2014; 2017) and to slow feature analysis (Sprekeler, 2011).
|
| 77 |
+
|
| 78 |
+
Alg. 1 Eigenoption discovery through the SR
|
| 79 |
+
|
| 80 |
+
<table><tr><td>←LEARNREPRESENTATION() E←EXTRACTEIGENPURPOSES(亚)</td></tr><tr><td>for each eigepurpose ei ∈Edo</td></tr><tr><td>{Ie;,Te,Te>←LEARNEIGENOPTION(ei)</td></tr><tr><td>end for</td></tr></table>
|
| 81 |
+
|
| 82 |
+
Alg. 2 LEARNREPRESENTATION() with the SR
|
| 83 |
+
|
| 84 |
+
<table><tr><td>fora given number of steps n do Observes ∈S,take action α ∈A selected ac- cording to π(s),and observe a next state s' ∈ S for each state j ∈ S do</td></tr><tr><td>重(s,j)←(s,j)+ n(l{s=j}+γ亚(s',j)-Φ(s,j))</td></tr><tr><td>end for</td></tr><tr><td>end for return 业</td></tr></table>
|
| 85 |
+
|
| 86 |
+
Such equivalences play a central role in the algorithm we describe in the next section. The SR may also have an important role in neuroscience. Stachenfeld et al. (2014; 2017) recently suggested that the successor representation is encoded by the hippocampus, and that a low-dimensional basis set representing it is encoded by the enthorhinal cortex. Interestingly, both hippocampus and entorhinal cortex are believed to be part of the brain system responsible for spatial memory and navigation.
|
| 87 |
+
|
| 88 |
+
# 3 EIGENOPTION DISCOVERY
|
| 89 |
+
|
| 90 |
+
In order to discover eigenoptions, we first need to obtain the eigenpurposes through the eigenvectors encoding the DIF model in the environment. This is currently done through PVFs, which the agent obtains by either explicitly building the environment’s adjacency matrix or by enumerating all of the environment’s transitions $\cdot f .$ Section 2.2). Such an approach is fairly effective in deterministic settings in which states can be enumerated and uniquely identified, i.e., the tabular case. However, there is no obvious extension of this approach to stochastic settings. It may be hard for the agent to explicitly model the environment dynamics in a weight matrix. The existent alternative, to enumerate the environment’s transitions, may have a large cost. These issues become worse when states cannot be enumerated, i.e., the function approximation case. The existing algorithm that is applicable to the function approximation setting requires a fixed representation as input, not being able to learn a representation while estimating the DIF model.
|
| 91 |
+
|
| 92 |
+
In this paper we introduce an algorithm that addresses the aforementioned issues by estimating the DIF model through the SR. Also, we introduce a new neural network that is capable of approximating the SR from raw pixels by learning a latent representation of game screens. The learned SR is then used to discover eigenoptions, replacing the need for knowing the combinatorial Laplacian. In this section we discuss the proposed algorithm in the tabular case, the equivalence between PVFs and the SR, and the algorithm capable of estimating the SR, and eigenoptions, from raw pixels.
|
| 93 |
+
|
| 94 |
+
# 3.1 THE TABULAR CASE
|
| 95 |
+
|
| 96 |
+
The general structure of the algorithms capable of discovering eigenoptions is fairly straightforward, as shown in Alg. 1. The agent learns (or is given) a representation that captures the DIF model (e.g., the combinatorial Laplacian). It then uses the eigenvectors of this representation to define eigenpurposes (EXTRACTEIGENPURPOSES), the intrinsic reward functions described by Equation 1 that it will learn how to maximize. The option’s policy is the one that maximizes this new reward function, while a state $s$ is defined to be terminal with respect to the eigenpurpose $\mathbf { e } _ { i }$ if $q _ { * } ^ { \mathbf { e } _ { i } } ( s , a ) \leq 0$ for all $a \in { \mathcal { A } }$ . The initiation set of an option $\mathbf { e } _ { i }$ is defined to be $\mathcal { S } \setminus \mathcal { T } _ { { \mathbf { e } } _ { i } } ^ { \overline { { \mathbf { \Theta } } } }$ .
|
| 97 |
+
|
| 98 |
+
In the tabular case, our proposed algorithm is also fairly simple. Instead of assuming the matrix $\hat { \Psi }$ is given in the form of the graph Laplacian, or trying to estimate the graph Laplacian from samples by stacking the row vectors corresponding to the different observed transitions, we estimate the DIF model through the successor representation $\left( c . f . \right.$ Alg. 2). This idea is supported by the fact that, for our purposes, the eigenvectors of the normalized Laplacian and the eigenvectors of the SR are equivalent. Below we formalize this concept and discuss its implications. We show that the eigenvectors of the normalized Laplacian are equal to the eigenvectors of the SR scaled by $\gamma ^ { - 1 } D ^ { 1 / 2 }$ .
|
| 99 |
+
|
| 100 |
+
The aforementioned equivalence ensures that the eigenpurposes extraction and the eigenoption learning steps remain unchanged. That is, we still obtain the eigenpurposes from the eigendecomposition1 of matrix $\hat { \Psi }$ , and we still use each eigenvector $\mathbf { e } _ { i } \in E$ to define the new learning problem in which the agent wants to maximize the eigenpurpose, defined in Equation 1.
|
| 101 |
+
|
| 102 |
+
Importantly, the use of the SR addresses some other limitations of previous work: 1) it deals with stochasticity in the environment and in the agent’s policy naturally; 2) its memory cost is independent on the number of samples drawn by the agent; and 3) it does not assume that for every action there is another action the agent can take to return to the state it was before, i.e., $W$ is symmetric.
|
| 103 |
+
|
| 104 |
+
# 3.2 RELATIONSHIP BETWEEN PVFS AND THE SR
|
| 105 |
+
|
| 106 |
+
As aforementioned, PVFs (the eigenvectors of the normalized Laplacian) are equal to the eigenvectors of the successor representation scaled by $\gamma ^ { - 1 } D ^ { 1 / 2 }$ . To the best of our knowledge, this equivalence was first explicitly discussed by Stachenfeld et al. (2014). We provide below a more formal statement of such an equivalence, for the eingevalues and the eigenvectors of both approaches. We use the proof to further discuss the extent of this interchangeability.
|
| 107 |
+
|
| 108 |
+
Theorem. Stachenfeld et al. (2014): Let $0 < \gamma < 1$ s.t. $\Psi = ( I - \gamma T ) ^ { - 1 }$ denotes the matrix encoding the $S R$ , and let $\mathcal { L } = D ^ { - 1 / 2 } ( D - W ) D ^ { - 1 / 2 }$ denote the matrix corresponding to the normalized Laplacian, both obtained under a uniform random policy. The $i$ -th eigenvalue $( \lambda _ { S R , i } )$ of the SR and the $j$ -th eigenvalue $( \lambda _ { P V F , j } )$ of the normalized Laplacian are related as follows:
|
| 109 |
+
|
| 110 |
+
$$
|
| 111 |
+
\lambda _ { P V F , j } = \left[ 1 - ( 1 - { \lambda _ { S R , i } } ^ { - 1 } ) \gamma ^ { - 1 } \right]
|
| 112 |
+
$$
|
| 113 |
+
|
| 114 |
+
The $i$ -th eigenvector $( \mathbf { e } _ { S R , i } )$ of the $S R$ and the $j$ -th eigenvector $( \mathbf { e } _ { P V F , j } )$ of the normalized Laplacian, where $i + j = n + 1$ , with $n$ being the total number of rows (and columns) of matrix $T$ , are related as follows:
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
{ \bf e } _ { P V F , j } = ( \gamma ^ { - 1 } D ^ { 1 / 2 } ) { \bf e } _ { S R , i }
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
Proof. Let $\lambda _ { i }$ , $\mathbf { e } _ { i }$ denote the $i$ -th eigenvalue and eigenvector of the SR, respectively. Using the fact that the SR is known to converge, in the limit, to $( I { \bar { - } } \gamma T ) ^ { - 1 }$ (through the Neumann series), we have:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\begin{array} { r l } { { ( I - \gamma T ) ^ { - 1 } { \bf e } _ { i } ~ = ~ \lambda _ { i } { \bf e } _ { i } } } & { { } } \\ { { ( I - \gamma T ) { \bf e } _ { i } ~ = ~ \lambda _ { i } ^ { - 1 } { \bf e } _ { i } } } & { { } } \\ { { ( I - T ) \gamma ^ { - 1 } { \bf e } _ { i } ~ = ~ [ 1 - ( 1 - \lambda _ { i } ^ { - 1 } ) \gamma ^ { - 1 } ] \gamma ^ { - 1 } { \bf e } _ { i } } } & { { } } \\ { { ( I - T ) \gamma ^ { - 1 } { \bf e } _ { i } ~ = ~ \lambda _ { j } ^ { \prime } \gamma ^ { - 1 } { \bf e } _ { i } } } & { { } } \\ { { ( I - D ^ { - 1 } W ) \gamma ^ { - 1 } { \bf e } _ { i } ~ = ~ \lambda _ { j } ^ { \prime } \gamma ^ { - 1 } { \bf e } _ { i } } } & { { } } \\ { { { \cal D } ^ { - 1 / 2 } ( D - W ) D ^ { - 1 / 2 } D ^ { 1 / 2 } \gamma ^ { - 1 } { \bf e } _ { i } ~ = ~ \lambda _ { j } ^ { \prime } \gamma ^ { - 1 } D ^ { 1 / 2 } { \bf e } _ { i } } } & { { } } \end{array}
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
Importantly, when using PVFs we are first interested in the eigenvectors with the corresponding smallest eigenvalues, as they are the “smoothest” ones. However, when using the SR we are interested in the eigenvectors with the largest eigenvalues. The change of variables in Eq. 3 highlights this fact i.e., $\lambda _ { j } ^ { \overline { { \prime } } } = [ 1 - ( 1 - \lambda _ { i } ^ { - 1 } ) \gamma ^ { - 1 } ]$ . The indices $j$ are sorted in the reverse order of the indices $i$ . This distinction can be very important when trying to estimate the relevant eigenvectors. Finding the largest eigenvalues/eigenvectors is statistically more robust to noise in estimation and does not depend on the lowest spectrum of the matrix. Moreover, notice that the scaling by $D ^ { 1 / 2 }$ does not change the direction of the eigenvectors when the size of the action set is constant across all states. This is often the case in the RL problems being studied.
|
| 127 |
+
|
| 128 |
+
3.3 THE FUNCTION APPROXIMATION CASE: THE SR THROUGH DEEP NEURAL NETWORKS
|
| 129 |
+
|
| 130 |
+
The tabular case is interesting to study because it provides intuition about the problem and it is easier to analyze, both empirically and theoretically. However, the tabular case is only realizable in toy domains. In real-world situations the number of states is often very large and the ability to generalize and to recognize similar states is essential. In this section, inspired by Kulkarni et al.’s (2016b) and Oh et al.’s (2015) work, we propose replacing Alg. 2 by a neural network that is able to estimate the successor representation from raw pixels. Such an approach circumvents the limitations of previous work that required a linear feature representation to be provided beforehand.
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
Figure 2: Neural network architecture used to learn the SR. The symbols $\otimes$ and $\varnothing$ denote elementwise multiplication and the fact that gradients are not propagated further back, respectively.
|
| 134 |
+
|
| 135 |
+
The SR with non-enumerated states: Originally, the SR was not defined in the function approximation setting, where states are described in terms of feature vectors. Successor features are the natural extension of the SR to this setting. We use Barreto et al.’s (2017) definition of successor features, where $\psi _ { \pi , i } ( s )$ denotes the successor feature $i$ of state $s \in \mathcal { S }$ when following a policy $\pi$ :
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
\begin{array} { r c l } { \psi _ { \pi , i } ( s ) } & { = } & { \mathbb { E } _ { \pi , p } \Bigg [ \displaystyle \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } \phi _ { i } ( S _ { t } ) \Big | S _ { 0 } = s \Bigg ] . } \end{array}
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
In words, $\psi _ { \pi , i } ( s )$ encodes the discounted expected value of the $i$ -th feature in the vector $\phi ( \cdot )$ when the agent starts in state $s$ and follows the policy $\pi$ . The update rule presented in Eq. 2 can be naturally extended to this definition. The temporal-difference error in the update rule can be used as a differentiable loss function, allowing us to estimate the successor features with a neural network.
|
| 142 |
+
|
| 143 |
+
Neural network architecture: The architecture we used is depicted in Fig 2. The reconstruction module is the same as the one introduced by Oh et al. (2015), but augmented by the SR estimator (the three layers depicted at the bottom). The SR estimator uses the learned latent representation as input i.e., the output of the representation learning module.
|
| 144 |
+
|
| 145 |
+
The proposed neural network receives raw pixels as input and learns to estimate the successor features of a lower-dimension representation learned by the neural network. The loss function $\mathcal { L } _ { S R }$ we use to learn the successor features is:
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
\mathcal { L } _ { S R } ( s , s ^ { \prime } ) = \mathbb { E } \Bigg [ \Big ( \phi ^ { - } ( s ) + \gamma \psi ^ { - } \left( \phi ^ { - } ( s ^ { \prime } ) \right) - \psi \left( \phi ( s ) \right) \Big ) ^ { 2 } \Bigg ] ,
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
where $\phi ( s )$ denotes the feature vector encoding the learned representation of state $s$ and $\psi ( \cdot )$ denotes the estimated successor features. In practice, $\phi ( \cdot )$ is the output of the representation learning module and $\psi ( \cdot )$ is the output of the SR estimator, as shown in Fig. 2. The loss function above also highlights the fact that we have two neural networks. We use $-$ to represent a target network (Mnih et al., 2015), which is updated at a slower rate for stability purposes.
|
| 152 |
+
|
| 153 |
+
We cannot directly estimate the successor features from raw pixels using only $\mathcal { L } _ { S R }$ because zero is one of its fixed points. This is the reason we added Oh et al.’s (2015) reconstruction module in the proposed network. It behaves as an auxiliary task (Jaderberg et al., 2017) that predicts the next state to be observed given the current state and action. By predicting the next state we increase the likelihood the agent will learn a representation that takes into consideration the pixels that are under its control, which has been shown to be a good bias in RL problems (Bellemare et al., 2012). Such an auxiliary task is defined through the network’s reconstruction error $\mathcal { L } _ { R E }$ :
|
| 154 |
+
|
| 155 |
+
$$
|
| 156 |
+
\begin{array} { r } { \mathcal { L } _ { R E } ( s , a , s ^ { \prime } ) = \Big ( \zeta \big ( \phi ( s ) , a \big ) - s ^ { \prime } \Big ) ^ { 2 } , } \end{array}
|
| 157 |
+
$$
|
| 158 |
+
|
| 159 |
+
where $\zeta ( \cdot )$ denotes the output of the reconstruction module, as shown in Fig. 2. The final loss being optimized is $\begin{array} { r } { \mathcal { L } ( s , a , s ^ { \prime } ) = \bar { \mathcal L } _ { R E } ( s , a , s ^ { \prime } ) + \mathcal { L } _ { S R } ( s , s ^ { \prime } ) } \end{array}$ .
|
| 160 |
+
|
| 161 |
+

|
| 162 |
+
Figure 3: Results in the rooms domain. The rightmost figure depicts the diffusion time as eigenoptions are added to the agent’s action set (sorted by eigenvalues corresponding to the eigenpurposes).
|
| 163 |
+
|
| 164 |
+
Finally, to ensure that the SR will not interfere with the learned features, we zero the gradients coming from the SR estimator (represented with the symbol $\phi$ in Fig. 2). We trained our model with RMSProp and we followed the same protocol Oh et al. (2015) used to initialize the network.
|
| 165 |
+
|
| 166 |
+
Eigenoption learning: In Alg. 1, the function EXTRACTEIGENPURPOSES returns the eigenpurposes described by Eq. 1. Eigenpurposes are defined in terms of a feature representation $\phi ( s _ { t } )$ of the environment and of the eigenvectors $\mathbf { e } _ { i }$ of the DIF model (the SR in our case). We use the trained network to generate both. It is trivial to obtain $\phi ( s _ { t } )$ as we just use the output of the appropriate layer in the network as our feature representation. To obtain $\mathbf { e } _ { i }$ we first need to generate a meaningful matrix since our network outputs a vector of successor features instead of a matrix. We do so by having the agent follow the uniform random policy while we store the network outputs $\psi ( s _ { t } )$ , which correspond to the network estimate of the successor features of state $s _ { t }$ . We then create a matrix $T$ where row $t$ corresponds to $\psi ( s _ { t } )$ and we define $\mathbf { e } _ { i }$ to be its right eigenvectors.
|
| 167 |
+
|
| 168 |
+
Once we have created the eigenpurposes, the option discovery problem is reduced to a regular RL problem where the agent aims to maximize the cumulative sum of rewards. Any learning algorithm can be used for that. We provide details about our approach in the next section.
|
| 169 |
+
|
| 170 |
+
# 4 EXPERIMENTS
|
| 171 |
+
|
| 172 |
+
We evaluate the discovered eigenoptions quantitatively and qualitatively in this section. We use the traditional rooms domain to evaluate the impact, on the eigenvectors and on the discovered options, of approximating the DIF model through the SR. We then use Atari 2600 games to demonstrate how the proposed network does discover purposeful options from raw pixels.
|
| 173 |
+
|
| 174 |
+
# 4.1 TABULAR CASE
|
| 175 |
+
|
| 176 |
+
Our first experiment evaluates the impact of estimating the SR from samples instead of assuming the DIF model was given in the form of the normalized Laplacian. We use the rooms domain (Fig. 3a; Sutton et al., 1999) to evaluate our method. Fig. 4b depicts the first eigenvector obtained from the SR while Fig. 4c depicts the corresponding eigenoption. We followed the uniform random policy for 1,000 episodes to learn the SR. Episodes were 100 time steps long. We used a stepsize of 0.1, and we set $\gamma = 0 . 9$ . The estimated eigenvector is fairly close to the true one and, as expected, the obtained eigenvector is fairly similar to the PVFs that are obtained for this domain. In the Appendix we provide the plots for the true SR and the PVF, as well as plots for different eigenvectors, comparing them to those obtained from $( I - \gamma T ) ^ { - 1 }$ .
|
| 177 |
+
|
| 178 |
+
Eigenoptions are known for improving the agent’s ability to explore the environment. We use the metric diffusion time to validate whether such an ability is preserved with our method. The diffusion time can be seen as a proxy for how hard it is for an agent to reach the goal state when following a uniform random policy. It is defined as the expected number of decisions (action selection steps) an agent needs to take, when following the uniform random policy, to navigate between two randomly chosen states. We compared the agent’s diffusion time when using eigenoptions obtained with PVFs to the diffusion time when using eigenoptions obtained with estimates of the SR. As we can see in Fig 3d, the eigenoptions obtained with the SR do help the agent to explore the environment. The gap between the diffusion time when using PVFs and when using the SR is likely due to different ways of dealing with corners. The SR implicitly models self-loops in the states adjacent to walls, since the agent takes an action and it observes it did not move.
|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
Figure 4: Different environments (varying start and goal locations) used in our evaluation (a), as well as the learning curves obtained in each one of these environments (b, c) for different number of options obtained from the SR when estimated after 100 episodes. See text for more details.
|
| 182 |
+
|
| 183 |
+
We also evaluated how the estimates of the SR evolve as more episodes are used during learning, and its impact in the diffusion time (Fig 3d). In the Appendix we present more results, showing that the local structure of the graph is generally preserved. Naturally, more episodes allow us to learn more accurate estimates of the SR as a more global facet of the environment is seen, since the agent has more chances to further explore the state space. However, it seems that even the SR learned from few episodes allow us to discover useful eigenoptions, as depicted in Fig. 3d. The eigenoptions obtained from the SR learned using only 100 episodes are already capable of reducing the agent’s diffusion time considerably. Finally, it is important to stress that the discovered options do more than randomly selecting subgoal states. “Random options” only reduce the agent’s diffusion time when hundreds of them are added to the agent’s action set (Machado et al., 2017).
|
| 184 |
+
|
| 185 |
+
Finally, we evaluated the use of the discovered eigenoptions to maximize reward. In our experiments the agent learned, off-policy, the greedy policy over primitive actions (target policy) while following the uniform random policy over actions and eigenoptions (behavior policy). We used Qlearning (Watkins & Dayan, 1992) in our experiments – parameters $\lambda = 0$ , $\alpha = 0 . 1$ , and $\gamma = 0 . 9$ . As before, episodes were 100 time steps long. Figure 4 summarizes the obtained results comparing the performance of our approach to regular Q-learning over primitive actions. The eigenoptions were extracted from estimates of the SR obtained after 100 episodes. The reported results are the average over 24 independent runs when learning the SR, with each one of these runs encoding 100 runs evaluating Q-Learning. The options were added following the sorting provided by the eigenvalues. For example, 4 options denotes an agent with the action set used in the behavior policy being composed of the four primitive actions and the four eigenoptions generated by the top 2 eigenvalues (both directions are being used). Notice that these results do not try to take the sample efficiency of our approach into consideration, they are only meant to showcase how eigenoptions, once discovered, can speed up learning. The sample complexity of learning options is generally justified in lifelong learning settings where they are re-used over multiple tasks (e.g., Brunskill & Li, 2014). This is beyond the scope of this paper.
|
| 186 |
+
|
| 187 |
+
The obtained results clearly show that eigenoptions are not only capable of reducing the diffusion time in the environment but of also improving the agent’s control performance. They do so by increasing the likelihood that the agent will cover a larger part of the state space given the same amount of time. Moreover, as before, it seems that a very accurate estimate of the successor representation is not necessary for the eigenoptions to be useful. Similar results can be obtained for different locations of the start and goal states, and when the estimates of the SR are more accurate. These results can be seen in the Appendix.
|
| 188 |
+
|
| 189 |
+
# 4.2 ATARI 2600
|
| 190 |
+
|
| 191 |
+
This second set of experiments evaluates the eigenoptions discovered when the SR is obtained from raw pixels. We obtained the SR through the neural network described in Section 3. We used four
|
| 192 |
+
|
| 193 |
+

|
| 194 |
+
Figure 5: Plots of density of state visitation of eigenoptions discovered in three Atari 2600 games. States visited more frequently show darker images of the avatar. Note that an eigenoption’s overwhelming mass of visitations corresponds to its terminal state, and that disparate options have different terminal states.
|
| 195 |
+
|
| 196 |
+
Atari 2600 games from the Arcade Learning Environment (Bellemare et al., 2013) as testbed: BANK HEIST, FREEWAY, MONTEZUMA’S REVENGE, and MS. PAC-MAN.
|
| 197 |
+
|
| 198 |
+
We followed the protocol described in the previous section to create eigenpurposes. We trained the network in Fig. 2 to estimate the SR under the uniform random policy. Since the network does not impact the policy being followed, we built a dataset of 500, 000 samples for each game and we used this dataset to optimize the network weights. We passed through the shuffled dataset 10 times, using RMSProp with a step size of $1 0 ^ { - 4 }$ . Once we were done with the training, we let the agent follow a uniform random policy for $5 0 , 0 0 0$ steps while we stored the SR output by the network for each observed state as a row of matrix $T$ . We define e, in the eigenpurposes we maximize $\cdot \cdot f .$ , Eq. 1), to be the right eigenvectors of the matrix $T$ , while $\phi ( \cdot )$ is extracted at each time step from the network in Fig. 2. Due to computational constraints, we approximated the final eigenoptions. We did so by using the ALE’s internal emulator to do a one-step lookahead and act greedily with respect to each eigenpurpose (in practice, this is equivalent to learning with $\gamma = 0$ ). This is not ideal because the options we obtain are quite limited, since they do not deal with delayed rewards. However, even in such limiting setting we were able to obtain promising results, as we discuss below.
|
| 199 |
+
|
| 200 |
+
Following Machado et al. (2017), we evaluate the discovered eigenoptions qualitatively. We execute all options following the procedure described above (greedy one-step lookahead) while tracking the avatar’s position on the screen. Figure 5 summarizes the behavior of some of the meaningful options discovered. The trajectories generated by different options are represented by different colors and the color’s intensity at a given location represents how often the agent was at that location. Eigenoptions were introduced as options that generate purposeful behavior and that help agents explore the environment. We can clearly see that the discovered eigenoptions are indeed purposeful. They aim to reach a specific location and stay there. If this was not the case the agent’s trajectory would be much more visible. Instead, what we actually observe is that the mass of visitation is concentrated on one location on the screen, dominating (color intensity) all the others. The location the agent is spending most of its time on can in fact be seen as the option’s terminal state. Constantly being in a state suggests the agent has arrived to a myopic local maximum for that eigenpurpose.
|
| 201 |
+
|
| 202 |
+
In three out of four games (BANK HEIST, MONTEZUMA’S REVENGE, MS. PACMAN) our algorithm discovers options that clearly push the agent to corners and to other relevant parts of the state space, corroborating the intuition that eigenoptions also improve exploration. In MONTEZUMA’S REVENGE, the terminal state of the highlighted options even correspond to what are considered good subgoals for the game (Kulkarni et al., 2016a). It is likely that additional subgoals, such as the key, were not found due to our myopic greedy approach. This approach may also explain why our algorithm was ineffective in FREEWAY. Avoiding cars may be impossible without longer-term planning. A plot depicting the two meaningful options discovered in this game is in the Appendix. Importantly, the fact that myopic policies are able to navigate to specific locations and stay there also suggests that, as in the tabular case, the proposed approach gives rise to dense intrinsic rewards that are very informative. This is another important constrast between randomly assigned subgoals and our approach. Randomly assigned subgoals do not give rise to such dense rewards. Thus, one can argue that our approach does not only generate useful options but it also gives rise to dense eigenpurposes, making it easier to build the policies associated with them.
|
| 203 |
+
|
| 204 |
+
It is important to stress that our algorithm was able to discover eigenoptions, from raw pixels, similar to those obtained by algorithms that use the RAM state of the game as a feature representation. The RAM state of the game often uses specific bytes to encode important information of the game, such as the position of the player’s avatar in the game. Our algorithm had to implicitly learn what were the meaningful parts of the screen. Also, different from previous algorithms, our approach is not constrained by the dimensionality of the state representation nor to binary features. Based on this discussion, we consider our results to be very promising, even though we only depict options that have effect on the initial state of the games. We believe that in a more general setting (e.g., using DQN to learn policies) our algorithm has the potential to discover even better options.
|
| 205 |
+
|
| 206 |
+
# 5 RELATED WORK
|
| 207 |
+
|
| 208 |
+
Our work was directly inspired by Kulkarni et al. (2016b), the first to propose approximating the SR using a neural network. We use their loss function in a novel architecture. Because we are not directly using the SR for control, we define the SR in terms of states, instead of state-action pairs. Different from Kulkarni et al. (2016b), our network does not learn a reward model and it does not use an autoencoder to learn a representation of the world. It tries to predict the next state the agent will observe. The prediction module we used was introduced by Oh et al. (2015). Because it predicts the next state, it implicitly learns representations that take into consideration the parts of the screen that are under the agent’s control. The ability to recognize such features is known as contingency awareness, and it is known to have the potential to improve agents’ performance (Bellemare et al., 2012). Kulkarni et al. (2016b) did suggest the deep SR could be used to find bottleneck states, which are commonly used as subgoals for options, but such an idea was not further explored. Importantly, Jong et al. (2008) and Machado et al. (2017) have shown that options that look for bottleneck states can be quite harmful in the learning process.
|
| 209 |
+
|
| 210 |
+
The idea of explicitly building hierarchies based on the learned latent representation of the state space is due to Machado et al. (2017) and Vezhnevets et al. (2017). Machado et al. (2017) proposed the concept of eigenoptions, but limited to the linear function approximation case. Vezhnevets et al. (2017) do not explicitly build options with initiation and termination sets. Instead, they learn a hierarchy through an end-to-end learning system that does not allow us to easily retrieve options from it. Finally, Kompella et al. (2017) has proposed the use of slow feature analysis (SFA; Wiskott & Sejnowski, 2002) to discover options. Sprekeler (2011) has shown that, given a specific choice of adjacency function, PVFs (and consequently the SR) are equivalent to SFA. However, their work is limited to linear function approximation. Our method also differs in how we define the initiation and termination sets. The options they discover look for bottleneck states, which is not our case.
|
| 211 |
+
|
| 212 |
+
# 6 CONCLUSION
|
| 213 |
+
|
| 214 |
+
In this paper we introduced a new algorithm for eigenoption discovery in RL. Our algorithm uses the successor representation (SR) to estimate the model of diffusive information flow in the environment, leveraging the equivalence between proto-value functions (PVFs) and the SR. This approach circumvents several limitations from previous work: (i) it builds increasingly accurate estimates using a constant-cost update-rule; (ii) it naturally deals with stochastic MDPs; (iii) it does not depend on the assumption that the transition matrix is symmetric; and (iv) it does not depend on handcrafted feature representations. The first three items were achieved by simply using the SR instead of the PVFs, while the latter was achieved by using a neural network to estimate the SR.
|
| 215 |
+
|
| 216 |
+
The proposed framework opens up multiple possibilities for investigation in the future. It would be interesting to evaluate the compositionality of eigenoptions, or how transferable they are between similar environments, such as the different modes of Atari 2600 games (Machado et al., 2018). Finally, now that the fundamental algorithms have been introduced, it would be interesting to investigate whether one can use eigenoptions to accumulate rewards instead of using them for exploration.
|
| 217 |
+
|
| 218 |
+
# ACKNOWLEDGMENTS
|
| 219 |
+
|
| 220 |
+
The authors would like to thank Craig Sherstan and Martha White for feedback on an earlier draft, Kamyar Azizzadenesheli, Marc G. Bellemare and Michael Bowling for useful discussions, and the anonymous reviewers for their feedback and suggestions.
|
| 221 |
+
|
| 222 |
+
# REFERENCES
|
| 223 |
+
|
| 224 |
+
Pierre-Luc Bacon, Jean Harb, and Doina Precup. The Option-Critic Architecture. In Proc. of the AAAI Conference on Artificial Intelligence (AAAI), pp. 1726–1734, 2017.
|
| 225 |
+
|
| 226 |
+
Andre Barreto, Will Dabney, R ´ emi Munos, Jonathan Hunt, Tom Schaul, David Silver, and Hado ´ van Hasselt. Successor Features for Transfer in Reinforcement Learning. In Advances in Neural Information Processing Systems (NIPS), pp. 4058–4068, 2017.
|
| 227 |
+
|
| 228 |
+
Marc G. Bellemare, Joel Veness, and Michael Bowling. Investigating Contingency Awareness Using Atari 2600 Games. In Proc. of the AAAI Conference on Artificial Intelligence (AAAI), 2012.
|
| 229 |
+
|
| 230 |
+
Marc G. Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The Arcade Learning Environment: An Evaluation Platform for General Agents. Journal of Artificial Intelligence Research, 47:253–279, 2013.
|
| 231 |
+
|
| 232 |
+
Emma Brunskill and Lihong Li. PAC-inspired Option Discovery in Lifelong Reinforcement Learning. In Proc. of the International Conference on Machine Learning (ICML), pp. 316–324, 2014.
|
| 233 |
+
|
| 234 |
+
Ozg ¨ ur S¸ imsek and Andrew G. Barto. Using Relative Novelty to Identify Useful Temporal Abstrac- ¨ tions in Reinforcement Learning. In Proc. of the International Conference on Machine Learning (ICML), 2004.
|
| 235 |
+
|
| 236 |
+
Christian Daniel, Herke van Hoof, Jan Peters, and Gerhard Neumann. Probabilistic Inference for Determining Options in Reinforcement Learning. Machine Learning, 104(2-3):337–357, 2016.
|
| 237 |
+
|
| 238 |
+
Peter Dayan. Improving Generalization for Temporal Difference Learning: The Successor Representation. Neural Computation, 5(4):613–624, 1993.
|
| 239 |
+
|
| 240 |
+
Carlos Florensa, Yan Duan, and Pieter Abbeel. Stochastic Neural Networks for Hierarchical Reinforcement Learning. In Proc. of the International Conference on Learning Representations (ICLR), 2017.
|
| 241 |
+
|
| 242 |
+
Zhaohan Daniel Guo, Philip S. Thomas, and Emma Brunskill. Using Options and Covariance Testing for Long Horizon Off-Policy Policy Evaluation. In Advances in Neural Information Processing Systems (NIPS), pp. 2489–2498, 2017.
|
| 243 |
+
|
| 244 |
+
Max Jaderberg, Volodymyr Mnih, Wojciech Marian Czarnecki, Tom Schaul, Joel Z. Leibo, David Silver, and Koray Kavukcuoglu. Reinforcement Learning with Unsupervised Auxiliary Tasks. In Proc. of the International Conference on Learning Representations (ICLR), 2017.
|
| 245 |
+
|
| 246 |
+
Nicholas K. Jong, Todd Hester, and Peter Stone. The Utility of Temporal Abstraction in Reinforcement Learning. In Proc. of the International Joint Conference on Autonomous Agents and Multiagent Systems (AAMAS), pp. 299–306, 2008.
|
| 247 |
+
|
| 248 |
+
Varun Raj Kompella, Marijn F. Stollenga, Matthew D. Luciw, and Jurgen Schmidhuber. Continual ¨ Curiosity-driven Skill Acquisition from High-Dimensional Video Inputs for Humanoid Robots. Artificial Intelligence, 247:313–335, 2017.
|
| 249 |
+
|
| 250 |
+
George Konidaris and Andrew G. Barto. Skill Discovery in Continuous Reinforcement Learning Domains using Skill Chaining. In Advances in Neural Information Processing Systems (NIPS), pp. 1015–1023, 2009.
|
| 251 |
+
|
| 252 |
+
Tejas D. Kulkarni, Karthik Narasimhan, Ardavan Saeedi, and Josh Tenenbaum. Hierarchical Deep Reinforcement Learning: Integrating Temporal Abstraction and Intrinsic Motivation. In Advances in Neural Information Processing Systems (NIPS), pp. 3675–3683, 2016a.
|
| 253 |
+
|
| 254 |
+
Tejas D. Kulkarni, Ardavan Saeedi, Simanta Gautam, and Samuel J. Gershman. Deep Successor Reinforcement Learning. CoRR, abs/1606.02396, 2016b.
|
| 255 |
+
|
| 256 |
+
Marlos C. Machado, Marc G. Bellemare, and Michael Bowling. A Laplacian Framework for Option Discovery in Reinforcement Learning. In Proc. of the International Conference on Machine Learning (ICML), pp. 2295–2304, 2017.
|
| 257 |
+
|
| 258 |
+
Marlos C. Machado, Marc G. Bellemare, Erik Talvitie, Joel Veness, Matthew Hausknecht, and Michael Bowling. Revisiting the Arcade Learning Environment: Evaluation Protocols and Open Problems for General Agents. Journal of Artificial Intelligence Research (JAIR), In press, 2018.
|
| 259 |
+
|
| 260 |
+
Sridhar Mahadevan. Proto-value Functions: Developmental Reinforcement Learning. In Proc. of the International Conference on Machine Learning (ICML), pp. 553–560, 2005.
|
| 261 |
+
|
| 262 |
+
Sridhar Mahadevan and Mauro Maggioni. Proto-value Functions: A Laplacian Framework for Learning Representation and Control in Markov Decision Processes. Journal of Machine Learning Research (JMLR), 8:2169–2231, 2007.
|
| 263 |
+
|
| 264 |
+
Daniel J. Mankowitz, Timothy Arthur Mann, and Shie Mannor. Adaptive Skills Adaptive Partitions (ASAP). In Advances in Neural Information Processing Systems (NIPS), pp. 1588–1596, 2016.
|
| 265 |
+
|
| 266 |
+
Amy McGovern and Andrew G. Barto. Automatic Discovery of Subgoals in Reinforcement Learning using Diverse Density. In Proc. of the International Conference on Machine Learning (ICML), pp. 361–368, 2001.
|
| 267 |
+
|
| 268 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. Human-level Control through Deep Reinforcement Learning. Nature, 518(7540):529–533, 2015.
|
| 269 |
+
|
| 270 |
+
Junhyuk Oh, Xiaoxiao Guo, Honglak Lee, Richard L. Lewis, and Satinder P. Singh. ActionConditional Video Prediction using Deep Networks in Atari Games. In Advances in Neural Information Processing Systems (NIPS), pp. 2863–2871, 2015.
|
| 271 |
+
|
| 272 |
+
Alec Solway, Carlos Diuk, Natalia Cordova, Debbie Yee, Andrew G. Barto, Yael Niv, and ´ Matthew M. Botvinick. Optimal Behavioral Hierarchy. PLOS Computational Biology, 10(8): 1–10, 2014.
|
| 273 |
+
|
| 274 |
+
Henning Sprekeler. On the Relation of Slow Feature Analysis and Laplacian Eigenmaps. Neural Computation, 23(12):3287–3302, 2011.
|
| 275 |
+
|
| 276 |
+
Kimberly L. Stachenfeld, Matthew Botvinick, and Samuel J. Gershman. Design Principles of the Hippocampal Cognitive Map. In Advances in Neural Information Processing Systems (NIPS), pp. 2528–2536, 2014.
|
| 277 |
+
|
| 278 |
+
Kimberly L. Stachenfeld, Matthew M Botvinick, and Samuel J. Gershman. The Hippocampus as a Predictive Map. Nature Neuroscience, 20:1643–1653, 2017.
|
| 279 |
+
|
| 280 |
+
Richard S. Sutton. Learning to Predict by the Methods of Temporal Differences. Machine Learning, 3:9–44, 1988.
|
| 281 |
+
|
| 282 |
+
Richard S. Sutton, Doina Precup, and Satinder P. Singh. Between MDPs and Semi-MDPs: A Framework for Temporal Abstraction in Reinforcement Learning. Artificial Intelligence, 112(1-2):181– 211, 1999.
|
| 283 |
+
|
| 284 |
+
Gerald Tesauro. Temporal Difference Learning and TD-Gammon. Communications of the ACM, 38 (3):58–68, 1995.
|
| 285 |
+
|
| 286 |
+
Alexander Sasha Vezhnevets, Simon Osindero, Tom Schaul, Nicolas Heess, Max Jaderberg, David Silver, and Koray Kavukcuoglu. FeUdal Networks for Hierarchical Reinforcement Learning. In Proc. of the International Conference on Machine Learning (ICML), pp. 3540–3549, 2017.
|
| 287 |
+
|
| 288 |
+
T. Wang, M. Bowling, and D. Schuurmans. Dual Representations for Dynamic Programming and Reinforcement Learning. In Proc. of the IEEE International Symposium on Approximate Dynamic Programming and Reinforcement Learning (ADPRL), pp. 44–51, 2007.
|
| 289 |
+
|
| 290 |
+
Christopher J. C. H. Watkins and Peter Dayan. Technical Note: Q-Learning. Machine Learning, 8 (3-4), May 1992.
|
| 291 |
+
|
| 292 |
+
Laurenz Wiskott and Terrence J. Sejnowski. Slow Feature Analysis: Unsupervised Learning of Invariances. Neural Computation, 14(4):715–770, 2002.
|
| 293 |
+
|
| 294 |
+
# APPENDIX: SUPPLEMENTARY MATERIAL
|
| 295 |
+
|
| 296 |
+
This supplementary material contains details omitted from the main text due to space constraints. The list of contents is below:
|
| 297 |
+
|
| 298 |
+
• A more detailed proof of the theorem in the paper;
|
| 299 |
+
• Empirical results evaluating how the number of episodes used to learn the successor representation impacts the obtained eigenvectors and their corresponding eigenoptions;
|
| 300 |
+
• Evaluation of the reconstruction module (auxiliary task) that learns the latent representation that is used to estimate the successor representation.
|
| 301 |
+
|
| 302 |
+
# A MORE DETAILED PROOF OF THE THEOREM IN THE MAIN PAPER
|
| 303 |
+
|
| 304 |
+
Theorem. Stachenfeld et al. (2014): Let $0 < \gamma < 1$ s.t. $\Psi = ( I - \gamma T ) ^ { - 1 }$ denotes the matrix encoding the $S R$ , and let $\mathcal { L } = D ^ { - 1 / 2 } ( D - W ) D ^ { - 1 / 2 }$ denote the matrix corresponding to the normalized Laplacian, both obtained under a uniform random policy. The $i$ -th eigenvalue $( \lambda _ { S R , i } )$ of the $S R$ and the $j$ -th eigenvalue $( \lambda _ { P V F , j } )$ of the normalized Laplacian are related as follows:
|
| 305 |
+
|
| 306 |
+
$$
|
| 307 |
+
\lambda _ { P V F , j } = \left[ 1 - ( 1 - { \lambda _ { S R , i } } ^ { - 1 } ) \gamma ^ { - 1 } \right]
|
| 308 |
+
$$
|
| 309 |
+
|
| 310 |
+
The i-th eigenvector $( \mathbf { e } _ { S R , i } )$ of the $S R$ and the $j$ -th eigenvector $( \mathbf { e } _ { P V F , j } )$ of the normalized Laplacian, where $i + j = n + 1$ , with $n$ being the total number of rows (and columns) of matrix $T$ , are related as follows:
|
| 311 |
+
|
| 312 |
+
$$
|
| 313 |
+
{ \bf e } _ { P V F , j } = ( \gamma ^ { - 1 } D ^ { 1 / 2 } ) { \bf e } _ { S R , i }
|
| 314 |
+
$$
|
| 315 |
+
|
| 316 |
+
Proof. This proof is more detailed than the one presented in the main paper. Let $\lambda _ { i } , \mathbf { e } _ { i }$ denote the $i$ -th eigenvalue and eigenvector of the SR. Using the fact that the SR is known to converge, in the limit, to $( I - \gamma T ) ^ { - 1 }$ (through the Neumann series), we have:
|
| 317 |
+
|
| 318 |
+
$$
|
| 319 |
+
\begin{array} { r l } { \frac { ( 1 - \sqrt { 2 } - \sqrt { 3 } ) ! } { 2 } \langle x - y \rangle _ { i } } & { = - \lambda _ { 0 } ! } \\ { ( 1 - \sqrt { 2 } - \sqrt { 3 } ) ! } & { = - \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 2 - \sqrt { 3 } - \Gamma _ { i } ) \Gamma _ { i } } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 3 - \sqrt { 3 } - \Gamma _ { i } ) \Gamma _ { i } } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 4 - \sqrt { 3 } - \Gamma _ { i } ) \Gamma _ { i } } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 5 - \sqrt { 3 } - \Gamma _ { i } ) \Gamma _ { i } } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 4 - \sqrt { 3 } - \Gamma _ { i } ) \Gamma _ { i } } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 5 - \sqrt { 3 } - \Gamma _ { i } ) \Gamma _ { i } } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 6 - \sqrt { 3 } - \Gamma _ { i } ) \Gamma _ { i } } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 7 - \sqrt { 3 } ) ! } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 7 - \sqrt { 3 } ) ! } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 7 - \sqrt { 3 } ) ! } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 5 - \sqrt { 3 } ) ! } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 7 - \sqrt { 3 } ) ! } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ { ( 4 - \sqrt { 3 } - \Gamma _ { i } ) ! } \\ { ( 5 - \sqrt { 3 } ) ! } & { = \lambda _ { 0 } ! ^ { 2 } \sqrt { 3 } \Gamma _ { i } } \\ ( 6 - \sqrt { 3 } - \Gamma _ { i } ) \end{array}
|
| 320 |
+
$$
|
| 321 |
+
|
| 322 |
+
THE IMPACT THE NUMBER OF EPISODES HAS IN LEARNING THE SR AND THE EIGENOPTIONS
|
| 323 |
+
|
| 324 |
+
In Section 4.1 we briefly discussed the impact of estimating the successor representation from samples instead of assuming the agent has access to the normalized Laplacian. It makes much more sense to use the successor representation as the DIF model in the environment if we can estimate it quickly. The diffusion time was the main evidence we used in Section 4.1 to support our claim that early estimates of the successor representation are useful for eigenoption discovery. In order to be concise we did not actually plot the eigenvectors of the estimates of the successor representation at different moments, nor explicitly compared them to proto-value functions or to the eigenvectors of the matrix $( I - \gamma T ) ^ { - 1 }$ . We do so in this section.
|
| 325 |
+
|
| 326 |
+
Figures 7–10 depict the first four eigenvectors of the successor representation in the Rooms domain, after being learned for different number of episodes (episodes were 100 time steps long, $\eta = 0 . 1$ , $\gamma = 0 . 9$ ). We also depict the corresponding eigenvectors of the $( I - \gamma T ) ^ { - 1 } \ \mathrm { m a t r i x } ^ { 2 }$ , and of the normalized Laplacian (Machado et al., 2017). Because the eigenvectors orientation (sign) is often arbitrary in an eigendecomposition, we matched their orientation to ease visualization.
|
| 327 |
+
|
| 328 |
+
Overall, after 500 episodes we already have an almost perfect estimate of the first eigenvectors in the environment; while 100 episodes seem to not be enough to accurately learn the DIF model in all rooms. However, learning the successor representation for 100 episodes seems to be enough to generate eigenoptions that reduce the agent’s diffusion time, as we show in Figure 3d. We can better discuss this behavior by looking at Figures 11–14, which depict the options generated by the obtained eigenvectors.
|
| 329 |
+
|
| 330 |
+
With the exception of the options generated after learning the successor representation for 100 episodes, all the eigenoptions obtained from estimates of the successor representation already move the agent towards the “correct” room(s). Naturally, they do not always hit the corners, but the general structure of the policies can be clearly seen. We also observe that the eigenoptions obtained from proto-value functions are shifted one tile from the corners. As discussed in the main paper, this is a consequence of how Machado et al.’s (2017) dealt with corners. They did not model selfloops in the MDP, despite the fact that the agent can be in the same state for two consecutive steps. The successor representation captures this naturally. Finally, we use Figure 11a to speculate why the options learned after 100 episodes are capable of reducing the agent’s diffusion time. The first eigenoption learned by the agent moves it to the parts of the state space it has never been to, this may be the reason that the combination of these options is so effective. It also suggests that incremental methods for option discovery and exploration are a promising path for future work.
|
| 331 |
+
|
| 332 |
+
# USING EIGENOPTIONS TO ACCUMULATE REWARD IN THE ENVIRONMENT
|
| 333 |
+
|
| 334 |
+
In Section 4.1 we also evaluated the agent’s ability to accumulate reward after the eigenoptions have been learned. We further analyze this topic here. As in Section 4.1, the agent learned, off-policy, the greedy policy over primitive actions (target policy) while following the uniform random policy over actions and eigenoptions (behavior policy). We used Q-learning (Watkins $\&$ Dayan, 1992) in our experiments – parameters $\lambda = 0$ , $\alpha = 0 . 1$ , and $\gamma = 0 . 9$ . Episodes were 100 time steps long. Figures 16–19 summarize the obtained results comparing the performance of our approach to regular Q-learning over primitive actions in four different environments ( $\cdot \cdot f .$ Figure 15). We evaluate the agent’s performance when using eigenoptions extracted from estimates of the SR obtained after 100, 500, and 1000 episodes, as well eigenoptions obtained from the true SR, i.e., $( I - \gamma T ) ^ { - 1 }$ . The reported results are the average over 24 independent runs when learning the SR, with each one of these runs encoding 100 runs evaluating Q-Learning. The options were added following the sorting provided by the eigenvalues. For example, 4 options denotes an agent with the action set used in the behavior policy being composed of the four primitive actions and the four eigenoptions generated by the top 2 eigenvalues (both directions are being used).
|
| 335 |
+
|
| 336 |
+
We can see that eigenoptions are not only capable of reducing the diffusion time in the environment but of also improving the agent’s control performance. They do so by increasing the likelihood that the agent will cover a larger part of the state space given the same amount of time. Interestingly, few eigenoptions seem to be enough for the agent. Moreover, although rough estimates of the SR seem to be enough to improve the agent’s performance (e.g., estimates obtained after only 100 episodes).
|
| 337 |
+
|
| 338 |
+
More accurate predictions of the SR are able to further improve the agent’s performance, mainly when dozens of eigenoptions are being used. The first eigenoptions to be accurately estimated are those with larger eigenvalues, which are the ones we add first.
|
| 339 |
+
|
| 340 |
+
# EVALUATION OF THE RECONSTRUCTION TASK
|
| 341 |
+
|
| 342 |
+
In Section 4.2 we analyzed the eigenoptions we are able to discover in four games of the Arcade Learning Environment. We did not discuss the performance of the proposed network in the auxiliary tasks we defined. We do so here. Figures 20–23 depict a comparison between the target screen that should be predicted and the network’s actual prediction for ten time steps in each game. We can see that it accurately predicts the general structure of the environment and it is able to keep track of most moving sprites on the screen. The prediction is quite noisy, different from Oh et al.’s (2015) result. Still, it is interesting to see how even an underperforming network is able to learn useful representations for our algorithm. It is likely better representations would result in better options.
|
| 343 |
+
|
| 344 |
+
# EIGENOPTIONS DISCOVERED IN FREEWAY
|
| 345 |
+
|
| 346 |
+
Figure 6 depicts the two meaningful eigenoptions we were able to discover in the game FREEWAY. As in Figure 5, each option is represented by the normalized count of the avatar’s position on the screen in a trajectory. The trajectories generated by different options are represented by different colors and the color’s intensity at a given location represents how often the agent was at that location.
|
| 347 |
+
|
| 348 |
+

|
| 349 |
+
Figure 6: Eigenoptions discovered in the game FREEWAY.
|
| 350 |
+
|
| 351 |
+

|
| 352 |
+
Figure 7: Evolution of the first eigenvector being estimated by the SR and baselines.
|
| 353 |
+
|
| 354 |
+

|
| 355 |
+
Figure 8: Evolution of the second eigenvector being estimated by the SR and baselines.
|
| 356 |
+
|
| 357 |
+

|
| 358 |
+
Figure 9: Evolution of the third eigenvector being estimated by the SR and baselines.
|
| 359 |
+
|
| 360 |
+

|
| 361 |
+
Figure 10: Evolution of the fourth eigenvector being estimated by the SR and baselines.
|
| 362 |
+
|
| 363 |
+

|
| 364 |
+
Figure 11: Evolution of the first eigenoption being estimated by the SR and baselines.
|
| 365 |
+
|
| 366 |
+

|
| 367 |
+
Figure 12: Evolution of the second eigenoption being estimated by the SR and baselines.
|
| 368 |
+
|
| 369 |
+

|
| 370 |
+
Figure 13: Evolution of the third eigenoption being estimated by the SR and baselines.
|
| 371 |
+
|
| 372 |
+

|
| 373 |
+
Figure 14: Evolution of the fourth eigenoption being estimated by the SR and baselines.
|
| 374 |
+
|
| 375 |
+

|
| 376 |
+
Figure 15: Different environments (varying start and goal locations) used when evaluating the agent’s ability to accumulate reward with and without eigenoptions.
|
| 377 |
+
|
| 378 |
+

|
| 379 |
+
Figure 16: Plot depicting the agent’s performance when following options obtained through estimates of the SR (100, 500, and 1, 000 episodes), as well as through the true SR, in environment 1.
|
| 380 |
+
|
| 381 |
+

|
| 382 |
+
Figure 17: Plot depicting the agent’s performance when following options obtained through estimates of the SR (100, 500, and 1, 000 episodes), as well as through the true SR, in environment 2.
|
| 383 |
+
|
| 384 |
+

|
| 385 |
+
Figure 18: Plot depicting the agent’s performance when following options obtained through estimates of the SR (100, 500, and 1, 000 episodes), as well as through the true SR, in environment 3.
|
| 386 |
+
|
| 387 |
+

|
| 388 |
+
|
| 389 |
+
Figure 19: Plot depicting the agent’s performance when following options obtained through estimates of the SR (100, 500, and 1, 000 episodes), as well as through the true SR, in environment 4.
|
| 390 |
+
|
| 391 |
+

|
| 392 |
+
Figure 20: Final 1-step predictions in the game BANK HEIST. We use the task of predicting the next game screen as an auxiliary task when estimating the successor representation.
|
| 393 |
+
|
| 394 |
+

|
| 395 |
+
Figure 21: Final 1-step predictions in the game FREEWAY. We use the task of predicting the next game screen as an auxiliary task when estimating the successor representation.
|
| 396 |
+
|
| 397 |
+

|
| 398 |
+
Figure 22: Final 1-step predictions in the game MONTEZUMA’S REVENGE. We use the task of predicting the next game screen as an auxiliary task when estimating the successor representation.
|
| 399 |
+
|
| 400 |
+

|
| 401 |
+
Figure 23: Final 1-step predictions in the game MS. PACMAN. We use the task of predicting the next game screen as an auxiliary task when estimating the successor representation.
|
parse/train/Bk8ZcAxR-/Bk8ZcAxR-_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Bk8ZcAxR-/Bk8ZcAxR-_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Bk8ZcAxR-/Bk8ZcAxR-_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJYoqzbC-/HJYoqzbC-_content_list.json
ADDED
|
@@ -0,0 +1,1264 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
101,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
236,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Despite many second-order methods have been proposed to train neural networks, most of the results were done on smaller single layer fully connected networks, so we still cannot conclude whether it’s useful in training deep convolutional networks. In this study, we conduct extensive experiments to answer the question ”whether second-order method is useful for deep learning?”. In our analysis, we find out although currently second-order methods are too slow to be applied in practice, it can reduce training loss in fewer number of iterations compared with SGD. In addition, we have the following interesting findings: (1) When using a large batch size, inexact-Newton methods will converge much faster than SGD. Therefore inexact-Newton method could be a better choice in distributed training of deep networks. (2) Quasi-newton methods are competitive with SGD even when using ReLu activation function (which has no curvature) on residual networks. However, current methods are too sensitive to parameters and not easy to tune for different settings. Therefore, quasi-newton methods with more selfadjusting mechanisms might be more useful than SGD in training deeper networks. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
265,
|
| 43 |
+
764,
|
| 44 |
+
486
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
510,
|
| 55 |
+
336,
|
| 56 |
+
526
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "In training deep neural networks and many other machine learning models, first-order methods have been extensively used. Stochastic Gradient Descent (SGD) method has shown positive results on various tasks in practice. It is very easy to implement and suitable to be applied in large-scale machine learning. However, SGD also has certain disadvantages. Practical success usually comes with laborious work of hyper-parameter searching. Furthermore, pure SGD often struggles to regions of loss surface with largely varying magnitudes of curvature (Dauphin et al., 2014). More importantly, it is very difficult to parallelize SGD—when increasing batch size, it is known that SGD will converge slowly and often obtain a solution with relatively poor generalization error (Keskar et al., 2016; Kawaguchi et al., 2017). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
541,
|
| 66 |
+
825,
|
| 67 |
+
666
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Second-order methods, on the other hand, improves the search direction using exact or approximate Hessian. Using curvature information enables such methods to make more progress per step than first-order methods relying solely on the gradient. Unfortunately, it is relatively hard to implement an efficient second-order method for large-scale deep neural networks. As parameters in the model scale up to millions, storing full hessian matrix is simply infeasible. Besides, larger datasets makes calculating exact or approximate hessian over whole dataset impossible. We will need to adopt the same mini-batch scheme as in SGD—using sub-sampled hessian in a data batch to calculate the update direction. Stochastic hessian cannot guarantee the approximated local quadratic problem to be positive semidefinite. Consequently the calculated update direction might not be a descent direction and the guarantee of the faster convergence rate of second-order method might not hold. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
672,
|
| 77 |
+
825,
|
| 78 |
+
811
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "To overcome these challenges, few second-order methods have been proposed in the literature. Most of these methods can be categorized into into stochastic inexact-Newton methods and stochastic quasi-Newton methods, and both types of methods show certain advantages in their experimental results. However, when we try to answer the question ”whether second-order method is useful for deep learning”, we are still unsure the answer. The reasons are as follows. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
819,
|
| 88 |
+
823,
|
| 89 |
+
888
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "First, the reported results in previous methods usually are based on reduce of training loss versus number of epochs. But to compute an update direction, these methods incur the extra costs of having to compute second-order information, so overall training time might become too long to really use those methods in practice. We need a comparison of training loss versus training time to evaluate the applicability of second-order methods. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
895,
|
| 99 |
+
821,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
176,
|
| 109 |
+
103,
|
| 110 |
+
823,
|
| 111 |
+
145
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "More importantly, previous methods are mostly tested on simple networks such as multi-layer fully connected networks rather than deep convolutional network, which is deemed as the standard model in applying neural networks these days. Indeed, a similar study has been conducted before (Ngiam et al., 2011), but models used in the study are mostly shallow autoencoders and only one secondorder method is compared. It is still not obvious to us the advantage of second-order methods and to what extent these methods are useful in training modern deep networks, especially convolutional neural networks. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
152,
|
| 121 |
+
825,
|
| 122 |
+
250
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "Hence, instead of proposing yet another second-order method, in this study we step back to experiment with some representative second-order methods on two datasets with various settings, and analyze both success and failure cases of second-order methods to conclude the advantages and limits of it. And we hope these information can be used in the future when designing new second-order methods. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
257,
|
| 132 |
+
825,
|
| 133 |
+
327
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "Through this study, our major findings are as follows. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
176,
|
| 142 |
+
333,
|
| 143 |
+
524,
|
| 144 |
+
348
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "• Second-order methods can achieve better training loss in fewer number of epochs. This confirms that curvature information is still useful when training convolutional networks. \n• Larger batch size benefits inexact-Newton methods more than SGD but not the case for quasi-Newton methods. \n• Currently, second-order methods are too slow to be considered practical in training deep neural networks as compared to SGD. \n• Network structures with zero second-order derivatives will deteriorate performance of inexact-Newton methods but not quasi-Newton methods. \n• Fixed learning rate is not applicable to second-order methods ",
|
| 151 |
+
"bbox": [
|
| 152 |
+
215,
|
| 153 |
+
363,
|
| 154 |
+
825,
|
| 155 |
+
518
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 1
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "text",
|
| 161 |
+
"text": "We will review the existing second-order works in the next section, and experimental and analysis will be given subsequently to support our claims above. ",
|
| 162 |
+
"bbox": [
|
| 163 |
+
174,
|
| 164 |
+
532,
|
| 165 |
+
823,
|
| 166 |
+
560
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 1
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "text",
|
| 172 |
+
"text": "2 EXISTING SECOND-ORDER METHODS ",
|
| 173 |
+
"text_level": 1,
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
583,
|
| 177 |
+
519,
|
| 178 |
+
599
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "Essentially, second-order methods obtain the update direction by minimizing a quadratic approximate function around the current solution, and the update rule can often be written as ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
173,
|
| 187 |
+
616,
|
| 188 |
+
821,
|
| 189 |
+
645
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "equation",
|
| 195 |
+
"img_path": "images/7b87ea3362d348cd5b97e09d67d15673d0c2d8a2a25905d626bbc6959f1f6bfa.jpg",
|
| 196 |
+
"text": "$$\nw _ { k + 1 } = w _ { k } - \\alpha _ { k } H _ { k } { \\hat { \\nabla } } f ( w _ { k } ) ,\n$$",
|
| 197 |
+
"text_format": "latex",
|
| 198 |
+
"bbox": [
|
| 199 |
+
398,
|
| 200 |
+
654,
|
| 201 |
+
599,
|
| 202 |
+
672
|
| 203 |
+
],
|
| 204 |
+
"page_idx": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"type": "text",
|
| 208 |
+
"text": "where $H _ { k }$ is the inverse of Hessian or its approximation. For large-scale deep network training, due to the huge amount of parameters, all second-order methods need to approximate the calculation of (1) in certain ways. Based on the approximations they made, second-order methods can be categorized into following types. ",
|
| 209 |
+
"bbox": [
|
| 210 |
+
174,
|
| 211 |
+
681,
|
| 212 |
+
825,
|
| 213 |
+
738
|
| 214 |
+
],
|
| 215 |
+
"page_idx": 1
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"type": "text",
|
| 219 |
+
"text": "2.1 STOCHASTIC INEXACT-NEWTON METHODS ",
|
| 220 |
+
"text_level": 1,
|
| 221 |
+
"bbox": [
|
| 222 |
+
174,
|
| 223 |
+
757,
|
| 224 |
+
516,
|
| 225 |
+
772
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 1
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "The first family of algorithms, called ”inexact-Newton method”, use exact Hessian inverse as $H _ { k }$ but compute $H _ { k } \\nabla f ( w _ { k } )$ inexactly. In (Martens & Sutskever, 2011), a ”Hessian-free” approach is proposed. By using hessian-vector products, Newton updates can be solved by Conjugate Gradient (CG) inexactly, in which the search direction is computed by applying CG to the Newton method, and terminating it once it has made sufficient progress. Hessian-vector products can be computed efficiently using a form of automatic differentiation supported by most popular deep learning frameworks. (Wang et al., 2015) proposed a similar method which solves Newton equation with gradient replaced by linear combination of current and previous gradients. In practice, this method does not show prominent improvement over basic inexact-Newton method; therefore, we choose method in (Martens & Sutskever, 2011) to represent this category. ",
|
| 232 |
+
"bbox": [
|
| 233 |
+
173,
|
| 234 |
+
784,
|
| 235 |
+
825,
|
| 236 |
+
924
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 1
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "text",
|
| 242 |
+
"text": "2.2 STOCHASTIC QUASI-NEWTON METHODS ",
|
| 243 |
+
"text_level": 1,
|
| 244 |
+
"bbox": [
|
| 245 |
+
176,
|
| 246 |
+
103,
|
| 247 |
+
498,
|
| 248 |
+
117
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "Recently, several stochastic quasi-Newton algorithms have been developed for large-scale machine learning (Wang et al., 2017; Curtis, 2016; Keskar & Berahas, 2016; Ramamurthy & Duffy, 2016; Byrd et al., 2016). These methods use approximate hessian instead of the real one for (1), and they differ from each other by using different criteria to obtain curvature pairs and different frequencies of updating. Basically, the spirit of Quasi-Newton methods is to obtain a lower per-iteration cost but good enough second-order approximation to have better update per iteration. (Wang et al., 2017) and (Curtis, 2016) modify the BFGS update rule to prevent the updates steps from becoming unbounded values. (Byrd et al., 2016) extends L-BFGS method by decoupling of the parameter updates from the curvature estimation to achieve a better stability when dealing with large-scale problems. (Keskar & Berahas, 2016) further extended this direction by adding more checking conditions to make sure the update direction is likely descendent. In addition, they approximate empirical fisher information matrix instead of hessian matrix. (Ramamurthy & Duffy, 2016) proposed to use rank one approximation in a limited memory version manner. It combines L-SR1 method with either Line Search or Trust Region scheme to optimize the model. Notice that not all methods above are proposed specifically for non-convex problems. But even as proposed in (Keskar & Berahas, 2016) which claims its applicability for non-convex problem, in our implementation we found out the empirical fisher information becomes too small and the corresponding update is negligible. Both (Wang et al., 2017) and (Curtis, 2016) don’t provide large-scale derivation in their methods and to directly implement their method, large size of hessian information needed to be stored, which is in feasible in our experiments. Therefore, we only choose (Byrd et al., 2016) and (Ramamurthy & Duffy, 2016) to represent this category. ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
174,
|
| 257 |
+
130,
|
| 258 |
+
825,
|
| 259 |
+
421
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "2.3 STOCHASTIC GAUSS-NEWTON METHODS ",
|
| 266 |
+
"text_level": 1,
|
| 267 |
+
"bbox": [
|
| 268 |
+
174,
|
| 269 |
+
439,
|
| 270 |
+
501,
|
| 271 |
+
453
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 2
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "text",
|
| 277 |
+
"text": "Gauss-Newton is a positive semidefinite approximation to the hessian matrix. In (Botev et al., 2017), an efficient block-diagonal approximation to the Gauss-Newton matrix for multi-layer fully connected networks is proposed. It represents the approximation by Kronecker Product and factorize it to achieve an easier calculation. A similar work was done in (Martens & Grosse, 2015). The difference is that in (Martens & Grosse, 2015), Fisher-information matrix instead of hessian matrix is approximated. Although we want to include this type of optimization methods in comparison, these methods requires dedicate implementation for each type of neural network. When the network contains layers that are not fully connected and possibly with weight sharing, such as convolutional layers, it is hard to exploit the Kronecker product structure to form the Gauss-Newton matrix. Since we are focusing on convolutional neural networks in this paper, we did not take this category into comparison. ",
|
| 278 |
+
"bbox": [
|
| 279 |
+
174,
|
| 280 |
+
465,
|
| 281 |
+
825,
|
| 282 |
+
617
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 2
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "2.4 TRUST-REGION METHODS ",
|
| 289 |
+
"text_level": 1,
|
| 290 |
+
"bbox": [
|
| 291 |
+
176,
|
| 292 |
+
636,
|
| 293 |
+
397,
|
| 294 |
+
650
|
| 295 |
+
],
|
| 296 |
+
"page_idx": 2
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"type": "text",
|
| 300 |
+
"text": "Trust region methods are another important family of second-order methods. Instead of solving the linear system in (1), they obtain the update direction by minimizing the quadratic approximation around the current solution with the norm constraints. The 2-norm constraint, known as “trust region”, is used to prevent the iterate from moving too far. However, this non-convex quadratic subproblem with bounded constraint is non-trivial to solve for large-scale applications, thus trust region methods have not been studied much for training deep networks. Similar to trust region method, cubic regularization method (Nesterov & Polyak, 2006) solves a similar subproblem but replaces the bounded constraints by cubic regularization. Just before submitting this work, a recent paper (Xu et al., 2017b;a) on arXiv tested a trust region method and cubic regularization method on multi-layer perceptons, but it has not been applied to convolutional neural network. We will try to include this type of methods into comparison in the future. ",
|
| 301 |
+
"bbox": [
|
| 302 |
+
174,
|
| 303 |
+
662,
|
| 304 |
+
825,
|
| 305 |
+
815
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 2
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "3 EXPERIMENTAL SETUPS ",
|
| 312 |
+
"text_level": 1,
|
| 313 |
+
"bbox": [
|
| 314 |
+
176,
|
| 315 |
+
837,
|
| 316 |
+
406,
|
| 317 |
+
853
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 2
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "3.1 DATASETS ",
|
| 324 |
+
"text_level": 1,
|
| 325 |
+
"bbox": [
|
| 326 |
+
174,
|
| 327 |
+
868,
|
| 328 |
+
287,
|
| 329 |
+
883
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 2
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "We will use MNIST and CIFAR-10 datasets in the experiments. MNIST consists of 60,000 1x28x28 images of hand-written digits. In this study, we report results based on all 60,000 images including both training and validation sets. CIFAR-10 dataset consists of $6 0 , 0 0 0 \\ 3 \\mathrm { x } 3 2 \\mathrm { x } 3 2$ colour images in 10 classes, with 6,000 images per class. We follow the same setting as provided with 50,000 training images and 10,000 test images. There are many data augmentation methods mentioned in the literature; however, as our analysis focuses more on optimization rather than achieving highest accuracy, we didn’t augment datasets. ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
174,
|
| 338 |
+
895,
|
| 339 |
+
823,
|
| 340 |
+
924
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 2
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "table",
|
| 346 |
+
"img_path": "images/a92067555ce37678016ada020b7fadbf99b3481907052a1003ad556c4960770f.jpg",
|
| 347 |
+
"table_caption": [
|
| 348 |
+
"Table 1: Testing accuracy achieved by SGD for eahc model. "
|
| 349 |
+
],
|
| 350 |
+
"table_footnote": [],
|
| 351 |
+
"table_body": "<table><tr><td></td><td>MNIST</td><td>CIFAR-10</td></tr><tr><td>LeNet</td><td>99.2</td><td>69</td></tr><tr><td>AlexNet</td><td>99.4</td><td>77.48</td></tr><tr><td>DRN</td><td>99.3</td><td>82.3</td></tr></table>",
|
| 352 |
+
"bbox": [
|
| 353 |
+
380,
|
| 354 |
+
127,
|
| 355 |
+
617,
|
| 356 |
+
186
|
| 357 |
+
],
|
| 358 |
+
"page_idx": 3
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "text",
|
| 362 |
+
"text": "",
|
| 363 |
+
"bbox": [
|
| 364 |
+
174,
|
| 365 |
+
218,
|
| 366 |
+
825,
|
| 367 |
+
289
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 3
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "3.2 MODELS ",
|
| 374 |
+
"text_level": 1,
|
| 375 |
+
"bbox": [
|
| 376 |
+
174,
|
| 377 |
+
306,
|
| 378 |
+
276,
|
| 379 |
+
320
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 3
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "In this study, we are interested in analyzing performance of second-order methods on convolutional neural networks. We first start with the basic LeNet5 (LeCun et al., 1995), and then test results with AlexNet (Krizhevsky et al., 2012), which can be thought as adding more layer of convolutions with larger number of filters. Last, we evaluate optimization methods on latest 18-layer Deep Residual Network(DRN) (He et al., 2016). For LeNet, we have 2 convolutional layers with 20 and $5 0 ~ 5 \\mathrm { x } 5$ filters. For AlexNet, 3 convolutional layers with 64, 64, 128 5x5 filters are used. For DRN, we follow the same implementation as listed in (He et al., 2016). Best testing accuracy achieved by fixed learning rate SGD for each model is listed in Table 1. ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
174,
|
| 388 |
+
333,
|
| 389 |
+
823,
|
| 390 |
+
444
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "Notice that there are certain different settings we used as compared to standard deep neural networks. First, the nonlinear activation unit used in all our implementations except few designed experiments is tanh instead of ReLu. As we will show in the following discussions, ReLu will cause the vanishing second-order information and thus prohibit the training with stochastic inexact-Newton methods. Second, we used fixed learning rate of SGD instead of having a decaying schedule. As this study mainly wants to investigate the effectiveness of second-order information over first-order gradients, we stick to the most basic usage of first-order method. ",
|
| 397 |
+
"bbox": [
|
| 398 |
+
174,
|
| 399 |
+
452,
|
| 400 |
+
825,
|
| 401 |
+
549
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 3
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "Finally, we restrict ourselves to SGD without momentum since our goal is to study whether secondorder information is useful. Because of these reasons and no data augmentation, our reported best test accuracy might not be the same as in the literature. We verified that with decaying schedule, data augmentation and momentum used, our DRN implementation on CIFAR-10 can achieve around $9 3 \\%$ test accuracy and this is almost the same as in (He et al., 2016). ",
|
| 408 |
+
"bbox": [
|
| 409 |
+
174,
|
| 410 |
+
556,
|
| 411 |
+
825,
|
| 412 |
+
626
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 3
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "3.3 OPTIMIZATION METHODS ",
|
| 419 |
+
"text_level": 1,
|
| 420 |
+
"bbox": [
|
| 421 |
+
176,
|
| 422 |
+
643,
|
| 423 |
+
392,
|
| 424 |
+
657
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 3
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "We will compare SGD with one inexact-Newton method and two quasi-Newton methods. For inexact-Newton method, we compare with the hessian-free method proposed in (Martens & Sutskever, 2011), which uses Stochastic Hessian and full Gradient (SHG), and compute the update direction by conjugate gradient method. Computation of full gradient is time-consuming and sometimes is not necessary when applying this method. On MNIST with LeNet model, we show in Figure 1 that SHG with larger full gradient used is indeed better, but it’s not significantly better than only partial gradients. Therefore, in our experiment when applying SHG we will only use $2 0 \\%$ of data to compute the gradient. For quasi-Newton method, we use L-SR1 (SR1) (Ramamurthy & Duffy, 2016) and Stochastic Quasi-Newton method (SQN) (Bollapragada et al., 2016) as representative. In this study, results are based on selecting batch size as 100 except for certain designed experiments. As we are trying to understand the best applicability of each method, all the hyper-parameters are tuned to achieve the best possible results. ",
|
| 431 |
+
"bbox": [
|
| 432 |
+
174,
|
| 433 |
+
670,
|
| 434 |
+
825,
|
| 435 |
+
837
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 3
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "3.4 FIX LEARNING RATE VERSUS LINE SEARCH",
|
| 442 |
+
"text_level": 1,
|
| 443 |
+
"bbox": [
|
| 444 |
+
174,
|
| 445 |
+
854,
|
| 446 |
+
522,
|
| 447 |
+
869
|
| 448 |
+
],
|
| 449 |
+
"page_idx": 3
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"type": "text",
|
| 453 |
+
"text": "While in (Byrd et al., 2016) a decaying schedule $1 / k$ ,where $\\mathbf { k }$ is the current number of iteration, is proposed to be the step size of each update, in practice we find out this scheme does not work on most of our experiments. Instead, we improve the stability by applying line search to find out the ",
|
| 454 |
+
"bbox": [
|
| 455 |
+
176,
|
| 456 |
+
882,
|
| 457 |
+
825,
|
| 458 |
+
924
|
| 459 |
+
],
|
| 460 |
+
"page_idx": 3
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"type": "image",
|
| 464 |
+
"img_path": "images/b59153e177dc1e92dcd9b117b4555c7a9632a2f00d40b3ed70354a30cb3db724.jpg",
|
| 465 |
+
"image_caption": [
|
| 466 |
+
"Figure 1: Percentage of data (or simply one batch) used to calculate gradient used in SHG method. We can see $2 0 \\%$ data to compute gradient is enough. One epoch refers to iterate whole dataset once. Following figures follow the same definition. "
|
| 467 |
+
],
|
| 468 |
+
"image_footnote": [],
|
| 469 |
+
"bbox": [
|
| 470 |
+
338,
|
| 471 |
+
106,
|
| 472 |
+
656,
|
| 473 |
+
255
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 4
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "step size. We adopt the backtracking line search and accept the step size whenever it satisfies the following sufficient decrease condition (see (Wright, 2008)): ",
|
| 480 |
+
"bbox": [
|
| 481 |
+
173,
|
| 482 |
+
343,
|
| 483 |
+
823,
|
| 484 |
+
371
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 4
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "equation",
|
| 490 |
+
"img_path": "images/1c962632b98d274c80e89187e41db360afd152f76d11e7c69121b637a80bc935.jpg",
|
| 491 |
+
"text": "$$\n\\begin{array} { r } { f ( w + \\eta p ) - f ( w ) \\leq 0 . 1 \\eta \\nabla f ( w ) ^ { T } p , } \\end{array}\n$$",
|
| 492 |
+
"text_format": "latex",
|
| 493 |
+
"bbox": [
|
| 494 |
+
372,
|
| 495 |
+
377,
|
| 496 |
+
624,
|
| 497 |
+
396
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 4
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "where $p$ is the search direction, and both gradient and function values are computed using the current batch. In this study, without further notice, SGD and GD will use well tuned fix learning rate and we will apply line search for SHG, SQN and SR1. Due to this finding, we are also interested in knowing whether line search is essential when applying second-order methods. Analysis will be provided below. ",
|
| 504 |
+
"bbox": [
|
| 505 |
+
174,
|
| 506 |
+
400,
|
| 507 |
+
825,
|
| 508 |
+
470
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 4
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "4 RESULTS AND ANALYSIS ",
|
| 515 |
+
"text_level": 1,
|
| 516 |
+
"bbox": [
|
| 517 |
+
176,
|
| 518 |
+
491,
|
| 519 |
+
413,
|
| 520 |
+
507
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 4
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "4.1 SHG OUTPERFORMS SGD IN NUMBER OF TRAINING STEPS BUT SGD IS SUBSTANTIALLY FASTER ",
|
| 527 |
+
"text_level": 1,
|
| 528 |
+
"bbox": [
|
| 529 |
+
174,
|
| 530 |
+
522,
|
| 531 |
+
710,
|
| 532 |
+
550
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 4
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "We show MNIST results in Figure 2 and CIFAR-10 results in Figure 3. Is second-order methods useful in training deep neural network? By only looking at number of epochs to minimize training objective, we can clearly answer yes. SHG method performs well on both datasets, and quasi-Newton methods have slightly worse performance on MNIST but are significantly better than SGD on CIFAR-10. Another point to notice is that we could not find a set of parameters to make SQN work with AlexNet on CIFAR-10. This signals that quasi-Netwon methods without parameter control or self-adjusting features can easily fall short in training non-convex problems. ",
|
| 539 |
+
"bbox": [
|
| 540 |
+
174,
|
| 541 |
+
561,
|
| 542 |
+
825,
|
| 543 |
+
660
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 4
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "It might be argued that as each update, SHG accesses much more data $2 0 \\%$ of total as mentioned) than SGD (one batch), so it is self-evident that SHG can have better results. Nevertheless, we also include the Gradient Descent (GD) method to verify that amount of data accessed is not the key to performance in this case. In each iteration, GD will use average gradient of $2 0 \\%$ of data to be the update direction. So GD has same number of updates as SGD, and access same amount of data as SHG in each update. If amount of data accessed were the key, GD should have a similar performance as SHG method. But we can clearly tell from the both figures that GD has a very different training loss curve from SHG. GD is actually worse than SGD in most cases which indicates that aggregated gradient information is not helpful in training deep neural networks. This verifies the effectiveness of second-order information. ",
|
| 550 |
+
"bbox": [
|
| 551 |
+
174,
|
| 552 |
+
666,
|
| 553 |
+
825,
|
| 554 |
+
805
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 4
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "text",
|
| 560 |
+
"text": "Thus, second-order methods sound like a promising optimization method in deep learning. But when we look at the time spent to optimize as shown in Figure 4 and 5, clearly second-order methods won’t be a practical choice. SHG takes hundred to thousand times more to finish the training. This is because SHG needs to computes (almost) full gradient information. As the training data grows larger, this will be a demanding computational task. We also include time required to achieve a designated accuracy for both datasets. SGD is still substantially faster than all second-order methods. Quasi-Newton methods in general take shorter time to train and achieve decent testing results. Especially SQN is the fastest among three second-order methods. It is because SQN decouples the computation of update pairs and parameter updates. Therefore, in each iteration the required computation is reduced. ",
|
| 561 |
+
"bbox": [
|
| 562 |
+
174,
|
| 563 |
+
811,
|
| 564 |
+
825,
|
| 565 |
+
924
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 4
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "image",
|
| 571 |
+
"img_path": "images/7d506e26a930b7527165cf6abceebf01fdf9417aa89a6a04371e953423bf8ad0.jpg",
|
| 572 |
+
"image_caption": [
|
| 573 |
+
"Figure 2: Average training loss versus epochs of SGD, SHG, GD, SR1, SQN on MNIST dataset. SHG is slightly faster than SGD. Quasi-Newton methods are comparable to SGD. "
|
| 574 |
+
],
|
| 575 |
+
"image_footnote": [],
|
| 576 |
+
"bbox": [
|
| 577 |
+
179,
|
| 578 |
+
103,
|
| 579 |
+
810,
|
| 580 |
+
448
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 5
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "",
|
| 587 |
+
"bbox": [
|
| 588 |
+
174,
|
| 589 |
+
522,
|
| 590 |
+
823,
|
| 591 |
+
551
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 5
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "In our implementation, computation of full gradient is done by iterating many smaller batches. Ideally, we could parallelize this operation to accelerate the SHG method so SHG might become competitive to SGD in time when distributed training is available. Furthermore, in next section we will show SHG benefits from big batches, which is also a good feature for parallelizing the computation. ",
|
| 598 |
+
"bbox": [
|
| 599 |
+
176,
|
| 600 |
+
558,
|
| 601 |
+
823,
|
| 602 |
+
628
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 5
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "table",
|
| 608 |
+
"img_path": "images/396cfe981f736da26f857d64ed6604f62c3cc60c7704e201def2f3392f199af0.jpg",
|
| 609 |
+
"table_caption": [],
|
| 610 |
+
"table_footnote": [],
|
| 611 |
+
"table_body": "<table><tr><td rowspan=2 colspan=1></td><td rowspan=1 colspan=1>MNIST</td><td rowspan=1 colspan=1>CIFAR-10</td></tr><tr><td rowspan=1 colspan=1>LeNet AlexNet</td><td rowspan=1 colspan=1>LeNet AlexNet</td></tr><tr><td rowspan=1 colspan=1>SGD</td><td rowspan=1 colspan=1>4.4 4.0</td><td rowspan=1 colspan=1>89.7 51.3</td></tr><tr><td rowspan=1 colspan=1>SHG</td><td rowspan=1 colspan=1>183 122</td><td rowspan=1 colspan=1>1422 1856</td></tr><tr><td rowspan=1 colspan=1>SQN</td><td rowspan=1 colspan=1>71.9 50.7</td><td rowspan=1 colspan=1>229 NA</td></tr><tr><td rowspan=1 colspan=1>SR1</td><td rowspan=1 colspan=1>172.9 121.9</td><td rowspan=1 colspan=1>2744 483</td></tr></table>",
|
| 612 |
+
"bbox": [
|
| 613 |
+
339,
|
| 614 |
+
641,
|
| 615 |
+
656,
|
| 616 |
+
729
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 5
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "Table 2: Time(sec) required to achieve desginated testing accuracy, MNIST: $9 8 \\%$ and CIFAR$1 0 { : } 7 3 \\%$ ",
|
| 623 |
+
"bbox": [
|
| 624 |
+
171,
|
| 625 |
+
739,
|
| 626 |
+
823,
|
| 627 |
+
767
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 5
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "text",
|
| 633 |
+
"text": "4.2 SHG PERFORMS BETTER UNDER BIG BATCH SETTING ",
|
| 634 |
+
"text_level": 1,
|
| 635 |
+
"bbox": [
|
| 636 |
+
173,
|
| 637 |
+
792,
|
| 638 |
+
583,
|
| 639 |
+
808
|
| 640 |
+
],
|
| 641 |
+
"page_idx": 5
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"type": "text",
|
| 645 |
+
"text": "It has been observed that increasing the batch size will hurt the convergence speed of SGD (Goyal et al., 2017; ?; You et al., 2017). Therefore, it is interesting to see the performance of second-order methods as we increase batch size. ",
|
| 646 |
+
"bbox": [
|
| 647 |
+
174,
|
| 648 |
+
818,
|
| 649 |
+
825,
|
| 650 |
+
861
|
| 651 |
+
],
|
| 652 |
+
"page_idx": 5
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"type": "text",
|
| 656 |
+
"text": "In Figure 6, we test the performance of SQN when we increase batch size. As we can see, SQN works well when batch size is small but the training becomes stagnant when batch size becomes larger. We believe it’s because there are many hyper-parameters in quasi-Newton methods such as batch size, number of curvature pairs to use, learning rate and frequency of updates. Again without a good controlling mechanism, the approximation computed might be noisy and sudden change one of any parameters alone will make the algorithm problematic. Same situation can be observed in SR1 as shown in Figure 7. Its performance becomes worse than SGD when the batch size is increased. ",
|
| 657 |
+
"bbox": [
|
| 658 |
+
174,
|
| 659 |
+
867,
|
| 660 |
+
825,
|
| 661 |
+
924
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 5
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "image",
|
| 667 |
+
"img_path": "images/117b56239de3b838f5a2111aad818b00fbcd5ed9375305f67f650f29b9b28567.jpg",
|
| 668 |
+
"image_caption": [
|
| 669 |
+
"Figure 3: Average training loss versus epochs of SGD, SHG, GD, SR1, SQN on CIFAR-10 dataset. Clearly both inexact-Newton and quasi-Newton methods optimize the training loss faster than SGD. "
|
| 670 |
+
],
|
| 671 |
+
"image_footnote": [],
|
| 672 |
+
"bbox": [
|
| 673 |
+
176,
|
| 674 |
+
102,
|
| 675 |
+
807,
|
| 676 |
+
444
|
| 677 |
+
],
|
| 678 |
+
"page_idx": 6
|
| 679 |
+
},
|
| 680 |
+
{
|
| 681 |
+
"type": "text",
|
| 682 |
+
"text": "",
|
| 683 |
+
"bbox": [
|
| 684 |
+
174,
|
| 685 |
+
523,
|
| 686 |
+
825,
|
| 687 |
+
564
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 6
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "On the other hand, the behavior is totally different for inexact-Newton method such as SHG—SHG benefits from bigger batches, as shown in Figure 8. Although the effect of larger batches seems to be stronger for SGD when batch size grows to 400, SHG with even larger sizes (e.g., 3200) will outperform SGD more when compared to smaller batch sizes. This implies unlike first-order methods which rely on the noisy of gradient estimation to jump out the valley, curvature information captured by SHG is enough to optimize the objective function, and larger batch size of hessian-vector product used in SHG leads to better results. When batch size is larger, it’s even easier to parallelize and compute the full gradient part. This shows a good direction to apply second-order methods in the future. ",
|
| 694 |
+
"bbox": [
|
| 695 |
+
173,
|
| 696 |
+
571,
|
| 697 |
+
825,
|
| 698 |
+
696
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 6
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "4.3 LIMITS OF SECOND-ORDER METHODS: RELU UNIT AND IDENTITY LINK ",
|
| 705 |
+
"text_level": 1,
|
| 706 |
+
"bbox": [
|
| 707 |
+
174,
|
| 708 |
+
718,
|
| 709 |
+
720,
|
| 710 |
+
734
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 6
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "text",
|
| 716 |
+
"text": "At first glance, second-order methods especially SHG can achieve good results with standard deep convolutional neural networks. But when it comes to Deep Residual Network, the story is different as shown in Figure 9. SHG is able to train a DRN on MNIST but not CIFAR-10. As derived in (Botev et al., 2017), hessian matrix of multi-layer fully connected network will be related to this recursive pre-activation hessian $_ \\mathrm { H }$ : ",
|
| 717 |
+
"bbox": [
|
| 718 |
+
174,
|
| 719 |
+
747,
|
| 720 |
+
825,
|
| 721 |
+
818
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 6
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "equation",
|
| 727 |
+
"img_path": "images/f137eb08a80021079e3ee316343f8a7e6287a81c769867720b40509e8cf53f7b.jpg",
|
| 728 |
+
"text": "$$\nH _ { \\lambda } = B _ { \\lambda } W _ { \\lambda + 1 } ^ { T } H _ { \\lambda + 1 } W _ { \\lambda + 1 } B _ { \\lambda } + D _ { \\lambda }\n$$",
|
| 729 |
+
"text_format": "latex",
|
| 730 |
+
"bbox": [
|
| 731 |
+
372,
|
| 732 |
+
829,
|
| 733 |
+
624,
|
| 734 |
+
849
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 6
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "text",
|
| 740 |
+
"text": "where we could define the diagonal matrices: ",
|
| 741 |
+
"bbox": [
|
| 742 |
+
176,
|
| 743 |
+
867,
|
| 744 |
+
472,
|
| 745 |
+
881
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 6
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "equation",
|
| 751 |
+
"img_path": "images/5dbf35f322592fbb8086a9632bccb788acfe25f43350a0609201309ecfe1ec1e.jpg",
|
| 752 |
+
"text": "$$\nB _ { \\lambda } = \\mathrm { d i a g } ( f _ { \\lambda } ^ { \\prime } ( h _ { \\lambda } ) )\n$$",
|
| 753 |
+
"text_format": "latex",
|
| 754 |
+
"bbox": [
|
| 755 |
+
431,
|
| 756 |
+
907,
|
| 757 |
+
566,
|
| 758 |
+
925
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 6
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "image",
|
| 764 |
+
"img_path": "images/eb9810a45d4749ae95baaaea5fd1b3f94b3231311e964401a335c607b61f74e1.jpg",
|
| 765 |
+
"image_caption": [
|
| 766 |
+
"Figure 4: Average training loss versus time of SGD,SHG,GD,SR1,SQN on MNIST dataset. "
|
| 767 |
+
],
|
| 768 |
+
"image_footnote": [],
|
| 769 |
+
"bbox": [
|
| 770 |
+
174,
|
| 771 |
+
101,
|
| 772 |
+
812,
|
| 773 |
+
449
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 7
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "equation",
|
| 779 |
+
"img_path": "images/523bd1fd5034451f574271cebe9cc95c4457600fcaedd28ee07f995daa61d9bd.jpg",
|
| 780 |
+
"text": "$$\nD _ { \\lambda } = \\mathrm { d i a g } ( f _ { \\lambda } ^ { \\prime \\prime } ( h _ { \\lambda } ) { \\frac { \\partial E } { \\partial a _ { \\lambda } } } )\n$$",
|
| 781 |
+
"text_format": "latex",
|
| 782 |
+
"bbox": [
|
| 783 |
+
415,
|
| 784 |
+
554,
|
| 785 |
+
583,
|
| 786 |
+
587
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 7
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "where E is the total loss, f is the activation function and $a _ { \\lambda }$ is the activation of certain layer $\\lambda$ . Therefore, if ReLu is used as nonlinear unit of the network, it will have zero second-order derivatives so part of the hessian information will be lost. In addition, identity link used in the DRN also has zero second-order derivatives. Since DRN contains both designs, we are not sure which unit deteriorates SHG more. Therefore, we design an ablation test to verify the effects. ",
|
| 793 |
+
"bbox": [
|
| 794 |
+
174,
|
| 795 |
+
617,
|
| 796 |
+
823,
|
| 797 |
+
688
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 7
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "First, we compare AlexNet with tanh and AlexNet with ReLu. This is a straightforward comparison to understand the influence of using ReLu. Next, we take AlexNet with tanh and substitute the last convolutional layer in AlexNet with a single residual block. Within the block, again tanh is used instead of ReLu and we keep the identity link. Although it’s a relatively shallow network compared to the one used in DRN, it’s enough to tell the influence of using identity link. As shown in Figure 10 and 11, both designs will deteriorate the performance of SHG. And ReLu posts stronger challenges to this type of second-order methods. This is a really problematic issue as nowadays, popularity of DRN grows fast and likely it will become the standard type of neural network. Without an efficient way of solving this problem means SHG won’t be useful even it can be parallelized. On contrary, quasi-Newton methods use first-order information to approximate second-order information. Despite the second-order information is disrupted by vanishing effect, it can still receive gradients to complete the calculation. Besides, we observe that it converges to smaller training loss than SGD on both MNIST and CIFAR-10. It has the potential to be applied in training deeper residual networks. ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
174,
|
| 806 |
+
694,
|
| 807 |
+
825,
|
| 808 |
+
875
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 7
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "The reason why SHG still works on training MNIST is likely due to the fact that images in MNIST are simple patterns with most parts black. So the information lost is not severe enough to stop us from training. But in general it should become an issue on most of real-world datasets. ",
|
| 815 |
+
"bbox": [
|
| 816 |
+
176,
|
| 817 |
+
881,
|
| 818 |
+
823,
|
| 819 |
+
924
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 7
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "image",
|
| 825 |
+
"img_path": "images/0d3556ad7c642e95de87bf6052fc72cded8492d2b05dd6a8a4cb119f45bab3b3.jpg",
|
| 826 |
+
"image_caption": [
|
| 827 |
+
"Figure 5: Average training loss versus time of SGD,SHG,GD,SR1,SQN on CIFAR-10 dataset. SGD in practice requires minimal computations and consequently faster than second-order methods. "
|
| 828 |
+
],
|
| 829 |
+
"image_footnote": [],
|
| 830 |
+
"bbox": [
|
| 831 |
+
179,
|
| 832 |
+
102,
|
| 833 |
+
812,
|
| 834 |
+
446
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 8
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "image",
|
| 840 |
+
"img_path": "images/9c3282b1f4dd944c86b7ee53d56cb51770c23488c71a6b24676c292c3a8152a7.jpg",
|
| 841 |
+
"image_caption": [
|
| 842 |
+
"Figure 6: Effect of changing batch size of SQN method. SQN fails to generalize the performance to larger batches. In principle SQN is sentitive to hyper-parameters. "
|
| 843 |
+
],
|
| 844 |
+
"image_footnote": [],
|
| 845 |
+
"bbox": [
|
| 846 |
+
343,
|
| 847 |
+
540,
|
| 848 |
+
648,
|
| 849 |
+
710
|
| 850 |
+
],
|
| 851 |
+
"page_idx": 8
|
| 852 |
+
},
|
| 853 |
+
{
|
| 854 |
+
"type": "text",
|
| 855 |
+
"text": "4.4 LINE SEARCH IS ESSENTIAL TO SECOND-ORDER METHODS",
|
| 856 |
+
"bbox": [
|
| 857 |
+
174,
|
| 858 |
+
815,
|
| 859 |
+
629,
|
| 860 |
+
829
|
| 861 |
+
],
|
| 862 |
+
"page_idx": 8
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"type": "text",
|
| 866 |
+
"text": "In this part, we replace the line search computations with well tuned fixed learning rate. In sum, second-order methods will not work on most of cases as shown in figure 12. As each update might not be descent direction, larger step sizes usually cause model to explode at certain point of training. With a fixed step size, only smaller values could be chosen. Consequently, the training process is relatively stagnant. The full capability of second-order methods cannot be achieved. ",
|
| 867 |
+
"bbox": [
|
| 868 |
+
174,
|
| 869 |
+
853,
|
| 870 |
+
825,
|
| 871 |
+
924
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 8
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "image",
|
| 877 |
+
"img_path": "images/74ae4feb605195a28019dc66325dda32d6ab1ea5934a00b68a403b8db7de6fa9.jpg",
|
| 878 |
+
"image_caption": [
|
| 879 |
+
"Figure 7: Effect of changing batch size of SGD and SR1 methods. SR1 is sensitive to batch size too. As batch size grows, SGD outperforms SR1 on both datasets. "
|
| 880 |
+
],
|
| 881 |
+
"image_footnote": [],
|
| 882 |
+
"bbox": [
|
| 883 |
+
176,
|
| 884 |
+
101,
|
| 885 |
+
816,
|
| 886 |
+
452
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 9
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "5 CONCLUSIONS ",
|
| 893 |
+
"text_level": 1,
|
| 894 |
+
"bbox": [
|
| 895 |
+
176,
|
| 896 |
+
525,
|
| 897 |
+
328,
|
| 898 |
+
541
|
| 899 |
+
],
|
| 900 |
+
"page_idx": 9
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"type": "text",
|
| 904 |
+
"text": "Second-order information is helpful to reduce the number of training epochs needed but it severely suffers from computational cost. So presently, light-weight first-order methods still dominate the optimization of deep neural network. Fortunately, both inexact-Newton methods and quasi-Newton methods seem to have certain ways to improve in the future. For inexact-Newton methods, parallelization is obviously the most promising direction to further study. With bigger batches and proper distributed system supported, it has a chance to achieve competitive results in practical timing constraints. Nevertheless, we will need to figure out how to deal with vanishing second-order information to make it really useful in deep learning. ",
|
| 905 |
+
"bbox": [
|
| 906 |
+
174,
|
| 907 |
+
556,
|
| 908 |
+
825,
|
| 909 |
+
667
|
| 910 |
+
],
|
| 911 |
+
"page_idx": 9
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "text",
|
| 915 |
+
"text": "For quasi-Newton method, although currently it is fast enough to be considered as the same order as SGD, a good balance between the precision of approximation and frequency of updates should still be considered to further cut the computational time. In addition, a more efficient and safer selfadjusting or correction mechanism can be added to make it stable under different setup of parameters and batch sizes. In addition, from preliminary analysis, quasi-Newton methods show competitive results when training DRN on both MNIST and CIFAR-10. This is another interesting research direction to explore. ",
|
| 916 |
+
"bbox": [
|
| 917 |
+
173,
|
| 918 |
+
675,
|
| 919 |
+
825,
|
| 920 |
+
772
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 9
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "image",
|
| 926 |
+
"img_path": "images/4a918bceba5e9385e39b1f7c96b0f2a700d0ac7950318a60be570be7fd2d1e52.jpg",
|
| 927 |
+
"image_caption": [
|
| 928 |
+
"Figure 8: Effect of changing batch size of SGD and SHG methods. SGD benefits a bit when batch size grows to 400 but not larger. SHG outperforms SGD significantly when batch size keeps growing. Notice that large batch size means smaller number of updates in each epoch. "
|
| 929 |
+
],
|
| 930 |
+
"image_footnote": [],
|
| 931 |
+
"bbox": [
|
| 932 |
+
176,
|
| 933 |
+
146,
|
| 934 |
+
818,
|
| 935 |
+
496
|
| 936 |
+
],
|
| 937 |
+
"page_idx": 10
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"type": "image",
|
| 941 |
+
"img_path": "images/01f1b93fae803d8b3498c2594f848a5aed9db7f4bb78ef4f9e7b1e4fd1ce8251.jpg",
|
| 942 |
+
"image_caption": [
|
| 943 |
+
"Figure 9: Results of training regular DRN with ReLu activation. Although SHG can still optimize DRN on MNIST well, it fails to converge to better training loss on CIFAR-10 dataset. "
|
| 944 |
+
],
|
| 945 |
+
"image_footnote": [],
|
| 946 |
+
"bbox": [
|
| 947 |
+
174,
|
| 948 |
+
655,
|
| 949 |
+
815,
|
| 950 |
+
829
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 10
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "image",
|
| 956 |
+
"img_path": "images/559aacb55b499ae8f3adffc23415cfe7b7fa142d5858ef6c4e4de60fffd5673b.jpg",
|
| 957 |
+
"image_caption": [
|
| 958 |
+
"Figure 10: Effect of using ReLu in AlextNet. Left figure is Regular AlexNet with tanh activation and right figure is AlexNet with ReLu activation. Apparently using ReLu in deep neural networks deteriorates performance of SHG but not SR1. "
|
| 959 |
+
],
|
| 960 |
+
"image_footnote": [],
|
| 961 |
+
"bbox": [
|
| 962 |
+
176,
|
| 963 |
+
121,
|
| 964 |
+
816,
|
| 965 |
+
292
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 11
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "image",
|
| 971 |
+
"img_path": "images/d00c6857b425ff567092c45773ca41afcb1c801186eaec4f86561ba9261fb259.jpg",
|
| 972 |
+
"image_caption": [
|
| 973 |
+
"Figure 11: Effect of adding Identity expression in AlexNet. Left figure is Regular AlexNet with tanh activation and right figure is AlexNet with last convolutional layer replaced by a residual block. The influence of identity link is not as strong as ReLu but still affects the performance of SHG. "
|
| 974 |
+
],
|
| 975 |
+
"image_footnote": [],
|
| 976 |
+
"bbox": [
|
| 977 |
+
178,
|
| 978 |
+
400,
|
| 979 |
+
818,
|
| 980 |
+
574
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 11
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "image",
|
| 986 |
+
"img_path": "images/79dcb4b7b16dfaafa0731fe712a223c1698a3c8d4f8aeb4888bb26c17b66b192.jpg",
|
| 987 |
+
"image_caption": [
|
| 988 |
+
"Figure 12: Effect of using fixed learning rate of SGD and SR1 methods. Second-order methods cannot work with fixed learning rate. "
|
| 989 |
+
],
|
| 990 |
+
"image_footnote": [],
|
| 991 |
+
"bbox": [
|
| 992 |
+
176,
|
| 993 |
+
679,
|
| 994 |
+
816,
|
| 995 |
+
854
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 11
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "REFERENCES ",
|
| 1002 |
+
"text_level": 1,
|
| 1003 |
+
"bbox": [
|
| 1004 |
+
176,
|
| 1005 |
+
103,
|
| 1006 |
+
287,
|
| 1007 |
+
117
|
| 1008 |
+
],
|
| 1009 |
+
"page_idx": 12
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"type": "text",
|
| 1013 |
+
"text": "Raghu Bollapragada, Richard Byrd, and Jorge Nocedal. Exact and inexact subsampled newton methods for optimization. arXiv preprint arXiv:1609.08502, 2016. ",
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
174,
|
| 1016 |
+
126,
|
| 1017 |
+
823,
|
| 1018 |
+
155
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 12
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "Aleksandar Botev, Hippolyt Ritter, and David Barber. Practical gauss-newton optimisation for deep learning. In ICML, 2017. ",
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
173,
|
| 1027 |
+
162,
|
| 1028 |
+
821,
|
| 1029 |
+
191
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 12
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "text",
|
| 1035 |
+
"text": "Richard H Byrd, Samantha L Hansen, Jorge Nocedal, and Yoram Singer. A stochastic quasi-newton method for large-scale optimization. SIAM Journal on Optimization, 26(2):1008–1031, 2016. ",
|
| 1036 |
+
"bbox": [
|
| 1037 |
+
173,
|
| 1038 |
+
199,
|
| 1039 |
+
821,
|
| 1040 |
+
229
|
| 1041 |
+
],
|
| 1042 |
+
"page_idx": 12
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"type": "text",
|
| 1046 |
+
"text": "Frank Curtis. A self-correcting variable-metric algorithm for stochastic optimization. In International Conference on Machine Learning, pp. 632–641, 2016. ",
|
| 1047 |
+
"bbox": [
|
| 1048 |
+
173,
|
| 1049 |
+
237,
|
| 1050 |
+
823,
|
| 1051 |
+
266
|
| 1052 |
+
],
|
| 1053 |
+
"page_idx": 12
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"type": "text",
|
| 1057 |
+
"text": "Yann N Dauphin, Razvan Pascanu, Caglar Gulcehre, Kyunghyun Cho, Surya Ganguli, and Yoshua Bengio. Identifying and attacking the saddle point problem in high-dimensional non-convex optimization. In Advances in neural information processing systems, pp. 2933–2941, 2014. ",
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
176,
|
| 1060 |
+
273,
|
| 1061 |
+
823,
|
| 1062 |
+
318
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 12
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Priya Goyal, Piotr Dollar, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, An-´ drew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
176,
|
| 1071 |
+
324,
|
| 1072 |
+
821,
|
| 1073 |
+
367
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 12
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
173,
|
| 1082 |
+
376,
|
| 1083 |
+
821,
|
| 1084 |
+
419
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 12
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "text",
|
| 1090 |
+
"text": "Kenji Kawaguchi, Leslie Pack Kaelbling, and Yoshua Bengio. Generalization in deep learning. arXiv preprint arXiv:1710.05468, 2017. ",
|
| 1091 |
+
"bbox": [
|
| 1092 |
+
169,
|
| 1093 |
+
426,
|
| 1094 |
+
823,
|
| 1095 |
+
455
|
| 1096 |
+
],
|
| 1097 |
+
"page_idx": 12
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"type": "text",
|
| 1101 |
+
"text": "Nitish Shirish Keskar and Albert S Berahas. adaqn: An adaptive quasi-newton algorithm for training rnns. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 1–16. Springer, 2016. ",
|
| 1102 |
+
"bbox": [
|
| 1103 |
+
174,
|
| 1104 |
+
464,
|
| 1105 |
+
823,
|
| 1106 |
+
507
|
| 1107 |
+
],
|
| 1108 |
+
"page_idx": 12
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"type": "text",
|
| 1112 |
+
"text": "Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv preprint arXiv:1609.04836, 2016. ",
|
| 1113 |
+
"bbox": [
|
| 1114 |
+
174,
|
| 1115 |
+
515,
|
| 1116 |
+
823,
|
| 1117 |
+
558
|
| 1118 |
+
],
|
| 1119 |
+
"page_idx": 12
|
| 1120 |
+
},
|
| 1121 |
+
{
|
| 1122 |
+
"type": "text",
|
| 1123 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012. ",
|
| 1124 |
+
"bbox": [
|
| 1125 |
+
174,
|
| 1126 |
+
565,
|
| 1127 |
+
825,
|
| 1128 |
+
608
|
| 1129 |
+
],
|
| 1130 |
+
"page_idx": 12
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"type": "text",
|
| 1134 |
+
"text": "Yann LeCun, LD Jackel, Leon Bottou, Corinna Cortes, John S Denker, Harris Drucker, Isabelle ´ Guyon, UA Muller, Eduard Sackinger, Patrice Simard, et al. Learning algorithms for classification: A comparison on handwritten digit recognition. Neural networks: the statistical mechanics perspective, 261:276, 1995. ",
|
| 1135 |
+
"bbox": [
|
| 1136 |
+
173,
|
| 1137 |
+
616,
|
| 1138 |
+
825,
|
| 1139 |
+
672
|
| 1140 |
+
],
|
| 1141 |
+
"page_idx": 12
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"type": "text",
|
| 1145 |
+
"text": "James Martens and Roger Grosse. Optimizing neural networks with kronecker-factored approximate curvature. In ICML, 2015. ",
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
171,
|
| 1148 |
+
681,
|
| 1149 |
+
821,
|
| 1150 |
+
710
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 12
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "James Martens and Ilya Sutskever. Learning recurrent neural networks with hessian-free optimization. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 1033–1040, 2011. ",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
173,
|
| 1159 |
+
718,
|
| 1160 |
+
823,
|
| 1161 |
+
761
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 12
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "Yurii Nesterov and Boris T Polyak. Cubic regularization of newton method and its global performance. Mathematical Programming, 108(1):177–205, 2006. ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
176,
|
| 1170 |
+
768,
|
| 1171 |
+
820,
|
| 1172 |
+
799
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 12
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "Jiquan Ngiam, Adam Coates, Ahbik Lahiri, Bobby Prochnow, Quoc V Le, and Andrew Y Ng. On optimization methods for deep learning. In Proceedings of the 28th international conference on machine learning (ICML-11), pp. 265–272, 2011. ",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
174,
|
| 1181 |
+
806,
|
| 1182 |
+
823,
|
| 1183 |
+
851
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 12
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "Vivek Ramamurthy and Nigel Duffy. L-sr1: A second order optimization method for deep learning. https://openreview.net/pdf?id=By1snw5gl, 2016. ",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
176,
|
| 1192 |
+
858,
|
| 1193 |
+
820,
|
| 1194 |
+
887
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 12
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "Chien-Chih Wang, Chun-Heng Huang, and Chih-Jen Lin. Subsampled hessian newton methods for supervised learning. Neural computation, 2015. ",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
176,
|
| 1203 |
+
895,
|
| 1204 |
+
821,
|
| 1205 |
+
924
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 12
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "text",
|
| 1211 |
+
"text": "Xiao Wang, Shiqian Ma, Donald Goldfarb, and Wei Liu. Stochastic quasi-newton methods for nonconvex stochastic optimization. SIAM Journal on Optimization, 27(2):927–956, 2017. ",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
174,
|
| 1214 |
+
103,
|
| 1215 |
+
823,
|
| 1216 |
+
132
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 13
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "Jorge Nocedal Stephen J Wright. Numerical optimization. 2008. ",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
173,
|
| 1225 |
+
140,
|
| 1226 |
+
599,
|
| 1227 |
+
156
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 13
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "Peng Xu, Farbod Roosta-Khorasan, and Michael W Mahoney. Second-order optimization for nonconvex machine learning: An empirical study. arXiv preprint arXiv:1708.07827, 2017a. ",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
176,
|
| 1236 |
+
165,
|
| 1237 |
+
821,
|
| 1238 |
+
194
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 13
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "text",
|
| 1244 |
+
"text": "Peng Xu, Farbod Roosta-Khorasani, and Michael W Mahoney. Newton-type methods for nonconvex optimization under inexact hessian information. arXiv preprint arXiv:1708.07164, 2017b. ",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
173,
|
| 1247 |
+
203,
|
| 1248 |
+
821,
|
| 1249 |
+
232
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 13
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "Yang You, Zhao Zhang, Cho-Jui Hsieh, and James Demmel. 100-epoch imagenet training with alexnet in 24 minutes. arXiv preprint arXiv:1709.05011, 2017. ",
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
173,
|
| 1258 |
+
241,
|
| 1259 |
+
823,
|
| 1260 |
+
270
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 13
|
| 1263 |
+
}
|
| 1264 |
+
]
|
parse/train/HJYoqzbC-/HJYoqzbC-_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJeq43AqF7/HJeq43AqF7.md
ADDED
|
@@ -0,0 +1,261 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# UNSUPERVISED LATENT TREE INDUCTION WITH DEEP INSIDE-OUTSIDE RECURSIVE AUTO-ENCODERS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Syntax is a powerful abstraction for language understanding. Many downstream tasks require segmenting input text into meaningful constituent chunks (e.g., noun phrases or entities); more generally, models for learning semantic representations of text benefit from integrating syntax in the form of parse trees (e.g., treeLSTMs). Supervised parsers have traditionally been used to obtain these trees, but lately interest has increased in unsupervised methods that induce syntactic representations directly from unlabeled text. To this end, we propose the deep insideoutside recursive autoencoder (DIORA), a fully-unsupervised method for discovering syntax that simultaneously learns representations for constituents within the induced tree. Unlike many prior approaches, DIORA does not rely on supervision from auxiliary downstream tasks and is thus not constrained to particular domains. Furthermore, competing approaches do not learn explicit phrase representations along with tree structures, which limits their applicability to phrase-based tasks. Extensive experiments on unsupervised parsing, segmentation, and phrase clustering demonstrate the efficacy of our method. DIORA achieves the state of the art in unsupervised parsing (46.9 F1) on the benchmark WSJ dataset.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Syntax in the form of parse trees is an essential component of many natural language processing tasks. Constituent spans taken from a parse tree are useful for tasks such as relation extraction Verga et al. (2016) and semantic role labeling (Strubell et al., 2018), while the full parse itself can be used to build higher-quality systems for machine translation (Aharoni and Goldberg, 2017) and text classification (Tai et al., 2015). Supervised parsers trained on datasets such as the Penn Treebank (Marcus et al., 1994) are traditionally used to obtain these trees; however, these datasets are generally small and restricted to the newswire domain. For out-of-domain applications, it is generally infeasible to create new treebanks, as syntactic annotation is expensive and time-consuming.
|
| 12 |
+
|
| 13 |
+
Motivated by these limitations, we propose a method that extracts both shallow parses (i.e., noun phrases or entities) and full syntactic trees from any domain or language automatically without any training data. In addition to just producing the parse, we want our model to build representations for internal constituents that obey syntactic and semantic regularities, as we can then easily inject these representations into downstream tasks. Our model extends existing work on latent tree chart parsers (Le and Zuidema, 2015; Yogatama et al., 2016; Maillard et al., 2017; Choi et al., 2018), which build up representations for all internal nodes in the tree (cells in the chart) generated by a soft weighting over all possible sub-trees (Section 2).
|
| 14 |
+
|
| 15 |
+
In previous work, the representation at the root node is used as a sentence encoding and trained to optimize some downstream task, typically natural language inference. Unfortunately, this method requires sentence level annotations to train the model. Worse still, analysis on the trees learned by these models show that they are actually quite poor at capturing syntax that in any way resembles linguistic theory (Williams et al., 2018a). To address these issues, we incorporate the inside-outside algorithm (Baker, 1979; Lari and Young, 1990) into a latent tree chart parser. The bottom-up inside step is equivalent to the forward-pass of previous latent tree chart parsers (Maillard et al., 2017). However, these inside representations are encoded by looking only within the current subtree, completely ignoring outside context. Thus, we perform an additional top-down outside calculation for each node in the tree incorporating external context into sub-tree representations. Finally, we train the outside representations of leaves to reconstruct the initial input, which results in a completely unsupervised autoencoder-like objective.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Example parse trees. Top PRPN-LM prediction, bottom DIORA prediction. DIORA correctly chunks the span ‘raised hopes for further interest-rate cuts’.
|
| 19 |
+
|
| 20 |
+
Recently, Shen et al. (2018) proposed Parsing-Reading-Predict Networks (PRPN), an RNN based language model with an additional module for inferring syntactic distance. After training, this syntax module can be decomposed to recover a parse (Htut et al., 2018) via a complex mechanism that involves modeling a distribution over possible syntactic structures with a stick-breaking process. Like DIORA, this model can be trained in a completely unsupervised manner. However, it has no mechanism of explicitly modeling phrases, and span representations can only be generated by post-hoc heuristics. Additionally, finding the most probable tree in DIORA is much simpler than in PRPN, as we can just run the CKY algorithm.
|
| 21 |
+
|
| 22 |
+
To probe different properties of our model, we run experiments on unsupervised parsing, segmentation, and phrase representations. DIORA sets the state-of-the-art for unsupervised parsing on the WSJ dataset, has a greater recall on a more constituent types than PRPN, and demonstrates strong clustering of phrase representations.
|
| 23 |
+
|
| 24 |
+
# 2 DIORA: DEEP INSIDE-OUTSIDE RECURSIVE AUTO-ENCODER
|
| 25 |
+
|
| 26 |
+
Our goal is to build an unsupervised model which can automatically discover syntactic structure from raw text. The hypothesis that our model follows is that the most efficient compression of a sentence will be derived from following the true syntactic structure of the underlying input. Our model is an extension of latent tree chart parsers augmented with the inside-outside algorithm (Baker, 1979; Lari and Young, 1990) and trained as an auto-encoder. Based on our hypothesis, the auto-encoder will best reconstruct the input by discovering and exploiting syntactic regularities of the text.
|
| 27 |
+
|
| 28 |
+
The inside phase of our method recursively compresses the input sequence into a single vector representing the sentence (Section 2.1.1). This is analogous to the compression step of an autoencoder and equivalent to existing latent tree chart parsers forward pass. Following this, we initiate the outside phase of our algorithm there a generic sentence (root) representation which is trained as a part of the model parameter. As an outside step of the inside-outside algorithm (Section 2.1.2), we expand outward until finally producing reconstructed representations of the leaf nodes. These reconstructed leaves are then optimized to reconstruct the input sentence as done in an auto-encoder based deep neural network (Section 2.2).
|
| 29 |
+
|
| 30 |
+
# 2.1 FILLING THE CHART WITH INSIDE-OUTSIDE
|
| 31 |
+
|
| 32 |
+
Each inside representation of a given sub-tree is built considering only the children constituents of that sub-tree, independent of any outside context. After the inside representations are calculated, we do a top-down outside pass to compute outside representations. The outside representations are encoded by looking at the context of a given sub-tree. In the end, each cell in the chart will contain an inside vector, inside compatibility score, outside vector, and outside compatibility score.
|
| 33 |
+
|
| 34 |
+
Once the chart is filled, each constituent $k$ (cell in the chart) is associated with an inside vector $\alpha _ { k } ^ { v e c }$ , an outside vector $\beta _ { k } ^ { v e c }$ , inside score $\alpha _ { k } ^ { s c o r e }$ and outside score $\beta _ { k } ^ { s c o r e }$ .
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
Figure 2: The inside and outside pass of DIORA for the input ‘the cat drank milk’. a) The inside pass: The inside vector for the phrase ‘the cat drank’ is a weighted average of the compositions for the two possible segmentations - ((the cat), drank) and (the, (cat drank)). The weights come from the learned compatibility scores $\alpha _ { k } ^ { s c o r e }$ . b) The outside Pass: The outside vector for the phrase ‘drank milk’ is a function of the outside vector of its parent and the inside vector of its sibling.
|
| 38 |
+
|
| 39 |
+
Assuming that the input to our model is a sentence $X$ made up of $T$ tokens, $x _ { 0 } , x _ { 1 } , . . . , x _ { T }$ , we describe inside and outside phases of our algorithm in the following Sections 2.1.1 and 2.1.2. Also, each token $x _ { i }$ has a corresponding pre-trained $d$ dimensional embedding vector $v _ { i }$ .
|
| 40 |
+
|
| 41 |
+
# 2.1.1 INSIDE PHASE
|
| 42 |
+
|
| 43 |
+
For each pair of neighboring constituents $i$ and $j$ , we compute a compatibility score $\alpha _ { k } ^ { s c o r e }$ and a composition vector $\alpha _ { k } ^ { v e c }$ . The score and vector that represents a particular span $k$ are computed using a soft weighting over all possible pairs of constituents that together covers the span entirely (we refer to this set of constituent pairs as $\{ k \} )$ :
|
| 44 |
+
|
| 45 |
+
Vectors for spans of length 1 are initialized using a linear transformation of the embedded input $v _ { i }$ .
|
| 46 |
+
Scores associated with these spans are set to 0.
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
\begin{array} { r } { \alpha _ { k } ^ { v e c } = W _ { i n } v _ { k } ^ { T } } \\ { \alpha _ { k } ^ { s c o r e } = 0 \qquad } \end{array}
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
For higher levels of the chart we use:
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
\begin{array} { c } { { \alpha _ { k } ^ { v e c } = \displaystyle \sum _ { i , j \in \{ k \} } e ^ { c o m p a t ( i , j ) } c o m p o s e ( i , j ) } } \\ { { \alpha _ { k } ^ { s c o r e } = \displaystyle \sum _ { i , j \in \{ k \} } e ^ { c o m p a t ( i , j ) } c o m p a t ( i , j ) } } \end{array}
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
The compatibility function compat is a bilinear function of the vectors from neighboring spans, adding their scores:
|
| 59 |
+
|
| 60 |
+
$$
|
| 61 |
+
c o m p a t ( i , j ) = \alpha _ { i } ^ { v e c } S ^ { i n \top } \alpha _ { j } ^ { v e c \top } + \alpha _ { i } ^ { s c o r e } + \alpha _ { j } ^ { s c o r e }
|
| 62 |
+
$$
|
| 63 |
+
|
| 64 |
+
And the composition function compose is a TreeLSTM (Tai et al., 2015) which produces a hidden state vector $h$ and cell state vector $c$ .:
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
c o m p o s e ( i , j ) = T r e e L S T M ^ { i n } ( \alpha _ { i } ^ { v e c } , \alpha _ { j } ^ { v e c } ) = \left[ h \right]
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
Where the T reeLST M is defined as follows:
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\begin{array}{c} { \left[ \begin{array} { l } { i } \\ { f _ { i } } \\ { f _ { j } } \\ { u } \\ { o } \end{array} \right] } = { \left[ \begin{array} { l } { \sigma } \\ { \sigma } \\ { \sigma } \\ { \sigma } \\ { \operatorname { t a n h } } \end{array} \right] } \left( U \left[ h _ { i } \right] ^ { \top } + b + { \left[ \begin{array} { l } { 0 } \\ { \omega } \\ { \omega } \\ { h _ { j } } \end{array} \right] } \right) \\ { c = c _ { i } \odot \sigma ( f _ { i } ) + c _ { j } \odot \sigma ( f _ { j } ) + \operatorname { t a n h } ( u ) \odot \sigma ( i ) } \\ { h = \sigma ( o ) + \operatorname { t a n h } ( c ) } \end{array}
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
The constant $\omega$ is set to 1 for the inside phase and 0 for the outside phase. The parameters $U$ and $b$ are not shared between the inside phase and outside phase.
|
| 77 |
+
|
| 78 |
+
# 2.1.2 OUTSIDE PHASE
|
| 79 |
+
|
| 80 |
+
The outside computation is similar to the inside,
|
| 81 |
+
|
| 82 |
+
The root node of the outside chart is learned as a bias. Descendant cells are predicted using a disambiguation over the possible outside contexts. Each component of the context consists of a sibling cell from the inside chart and a parent cell from the outside chart.
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\begin{array} { c } { { \beta _ { k } ^ { v e c } = \displaystyle \sum _ { i , j \in \{ k \} } e ^ { d i s a m b ( i , j ) } p r e d i c t ( i , j ) } } \\ { { \beta _ { k } ^ { s c o r e } = \displaystyle \sum _ { i , j \in \{ k \} } e ^ { d i s a m b ( i , j ) } d i s a m b ( i , j ) } } \\ { { d i s a m b ( i , j ) = \beta _ { i } ^ { v e c } S ^ { o u t \top } \alpha _ { j } ^ { v e c \top } + \beta _ { i } ^ { s c o r e } + \alpha _ { j } ^ { s c o r e } } } \\ { { p r e d i c t ( i , j ) = T r e e L S T M ^ { o u t } ( \alpha _ { i } ^ { v e c } , \beta _ { j } ^ { v e c } ) } } \end{array}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
# 2.2 TRAINING OBJECTIVE
|
| 89 |
+
|
| 90 |
+
To train our model we use an auto-encoder-like language modeling objective. In a standard autoencoder, the input $X$ is compressed into a single lower dimensional representation $Y$ . $Y$ is then decompressed and trained to predict $X$ . In our model, we never condition the reconstruction of $X$ on a single $Y$ because the root’s outside representation is initialized with a bias rather than the root’s own inside vector. Instead, we reconstruct $X$ conditioned on the many sub-tree roots, none of which is a single compression of the entire $X$ , but rather a subset.
|
| 91 |
+
|
| 92 |
+
Each generated outside vector $\beta _ { i } ^ { v e c }$ for constituents of length 1 are trained to predict their original input $v _ { i }$ . We approximate a reconstruction loss with a max-margin across $N$ negative samples.
|
| 93 |
+
|
| 94 |
+
For each $x _ { i }$ , we sample $N$ negative $\boldsymbol { x } _ { i } ^ { n }$ uniformly at random from the vocabulary. The training objective of our model over a batch $\mathbf { B } = \{ X _ { T ^ { i } } ^ { i } , i \stackrel { \cdot } { = } 1 , . . . , B \}$ is computed identically for all tokens (which are also all spans with length 1) within the batch and averaged to get the overall loss for the entire batch. Precisely, the loss function for each token (span k) is described in Equation 14.
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
L ( \mathbf { B } ) = \sum _ { n = 1 } ^ { n = N } \operatorname* { m a x } ( 0 , 1 - \beta _ { k } ^ { v e c } * \alpha _ { k } ^ { v e c } + \beta _ { k } ^ { v e c } * \alpha _ { k _ { n } } ^ { v e c } )
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
In equation 14, transformation, $\alpha _ { k _ { n } } ^ { v e c }$ are representations for negative samples from vocabulary. Similar to inputare also computed after applying a linear transformation over the input emnbeddings. As mentioned before, $\alpha _ { k } ^ { v e c }$ and $\beta _ { k } ^ { v e c }$ are inside and outside representations, for span k, respectively.
|
| 101 |
+
|
| 102 |
+
Algorithm 1 Parsing with DIORA
|
| 103 |
+
|
| 104 |
+
<table><tr><td>1:</td><td>procedure CKY(chart)</td></tr><tr><td>2: for each k ∈chart|size(k)=1 do</td><td>Initialize terminal values.</td></tr><tr><td>3: 4:</td><td>xk←0</td></tr><tr><td>foreachk ∈chart do</td><td>Calculate a maximum score for each span.</td></tr><tr><td>5: 6:</td><td>xk ← max [xi +xj + compat(i,j)] i,j∈{k}</td></tr><tr><td>i,j∈{k}</td><td>bk ← arg max[xi + xj + compat(i,j)] >Record a backpointer.</td></tr><tr><td>7:</td><td>procedure FOLLOW-BACKPOINTERS(k)</td></tr><tr><td>8:</td><td>if size(k)= 1 then</td></tr><tr><td>9: 10:</td><td>return k</td></tr><tr><td>11:</td><td>𝑖 ←FOLLOW-BACKPOINTERS(b)</td></tr><tr><td>12:</td><td>j ←FOLLOW-BACKPOINTERS(b)</td></tr><tr><td>return (i, j) 13:</td><td>return FOLLOW-BACKPOINTERS(k = root) >Backtrack to get the maximal tree.</td></tr></table>
|
| 105 |
+
|
| 106 |
+
# 2.3 DIORA CKY PARSING
|
| 107 |
+
|
| 108 |
+
To obtain a parse with DIORA, we populate an inside and outside chart using the input sentence. Then, we can extract the most likely parse based on our single grammar rule using the CKY procedure (Kasami, 1966; Younger, 1967).
|
| 109 |
+
|
| 110 |
+
It’s true that using CKY produces the most likely parse given a set of grammar rules, although in the case of DIORA, the single grammar rule is only a weak abstraction for a PCFG. For this reason, including context during CKY might inform our parser to make different decision. We include context by adding the scalar value of the outside cell to each inside cell.
|
| 111 |
+
|
| 112 |
+
# 3 EXPERIMENTS
|
| 113 |
+
|
| 114 |
+
To evaluate the effectiveness of DIORA, we run experiments on unsupervised parsing, unsupervised segmentation, and phrase similarities. The model has been implemented in PyTorch (Team, 2018) and the code is published online1. For implementation details, see the Appendix A.1
|
| 115 |
+
|
| 116 |
+
Our main baseline is the current state-of-the-art unsupervised parser PRPN(Shen et al., 2018). We compare our model against two size variants of this model which were used in Htut et al. (2018). Comparison of the number of parameters and maximum training sentence length are shown in 1.
|
| 117 |
+
|
| 118 |
+
Table 1: Model Dimensions.
|
| 119 |
+
|
| 120 |
+
<table><tr><td>Model</td><td>Word Dim</td><td>#Parameters</td><td>Max Length</td></tr><tr><td>DIORA</td><td>300</td><td>1,502,400</td><td>20</td></tr><tr><td>PRPN-UP</td><td>200</td><td>3,624,202</td><td>35</td></tr><tr><td>PRPN-LM</td><td>800</td><td>35,593,202</td><td>35</td></tr></table>
|
| 121 |
+
|
| 122 |
+
# 3.1 UNSUPERVISED PARSING
|
| 123 |
+
|
| 124 |
+
We first evaluate how well our model is able to predict a full unlabeled syntactic parse. We look at two data sets which have been used in prior work (Htut et al., 2018), The Wall Street Journal(WSJ) section of Penn Tree Bank (Marcus et al., 1994), and the automatic parses from MultiNLI (Williams et al., 2018b). WSJ has gold human annotated parses and MultiNLI contains automatic parses derived from the Stanford CoreNLP parser (Manning et al., 2014).
|
| 125 |
+
|
| 126 |
+
We compare our model to left/right branching and balanced trees which are deterministically constructed. RL-SPINN (Yogatama et al., 2016) and ST-Gumbel (Choi et al., 2018) are chart parsing models trained to predict the downstream task of NLI.
|
| 127 |
+
|
| 128 |
+
# 3.1.1 RESULTS AND DISCUSSION
|
| 129 |
+
|
| 130 |
+
Latent tree models have been shown to perform particularly poorly on attachments at the beginning and end of the sequence (Williams et al., 2018a). To address this, we incorporate a post-processing heuristic $+ \mathrm { P P }$ in Table 2). We see that PRPN-UP and DIORA benefit much more than PRPN-LM from this heuristic. This is consistent with qualitative analysis showing that DIORA and PRPN-UP incorrectly attach trailing punctuation much more than PRPN-LM. This heuristic simply attaches trailing punctuation to the root of the tree, regardless of its predicted attachment. We find this to be extremely effective, increasing our state-of-the-art WSJ parsing results by by over 3 absolute F1 points.
|
| 131 |
+
|
| 132 |
+
On the MultiNLI dataset, PRPN-LM is the top performing model without using the PP heuristic and DIORA outperforms PRPN-UP. Afterwards, PRPN-UP surpasses DIORA. However, it is worth noting that this is not actually a gold standard evaluation and instead evaluates the ability to replicate the output of a trained parser Manning et al. (2014).
|
| 133 |
+
|
| 134 |
+
Table 2: Unsupervised Parsing. $\dagger$ indicates trained to optimize NLI task.We use the max unlabeled binary F1 across runs for PRPN-UP 2, PRPN-LM, and DIORA. F1 was calculated using the parse trees provided by Htut et al. (2018) and all results in the upper portion of the table were copied from Htut et al. (2018). $+ \mathrm { P P }$ refers to post-processing heuristic to remove trailing punctuation explained in Section 3.1.
|
| 135 |
+
|
| 136 |
+
<table><tr><td rowspan=2 colspan=1>Model</td><td rowspan=2 colspan=1>MultiNLIF1 Depth</td><td rowspan=2 colspan=1>WSJF1 Depth</td></tr><tr><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Left Branching</td><td rowspan=1 colspan=1>- -</td><td rowspan=1 colspan=1>13.1 12.4</td></tr><tr><td rowspan=1 colspan=1>Right Branching</td><td rowspan=1 colspan=1>- -</td><td rowspan=1 colspan=1>16.5 12.4</td></tr><tr><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>27.0 4.4</td><td rowspan=1 colspan=1>21.4 5.3</td></tr><tr><td rowspan=1 colspan=1>Balanced</td><td rowspan=1 colspan=1>21.3 3.9</td><td rowspan=1 colspan=1>21.3 4.6</td></tr><tr><td rowspan=2 colspan=1>RL-SPINNt- w/o Leaf GRU</td><td rowspan=1 colspan=1>18.8 8.6</td><td rowspan=1 colspan=1>13.2 -</td></tr><tr><td rowspan=1 colspan=1>18.1 8.6</td><td rowspan=1 colspan=1>13.2 -</td></tr><tr><td rowspan=2 colspan=1>ST-Gumbelt - w/o Leaf GRU</td><td rowspan=1 colspan=1>23.7 4.1</td><td rowspan=1 colspan=1>20.1 1</td></tr><tr><td rowspan=1 colspan=1>27.5 4.6</td><td rowspan=1 colspan=1>25.0 -</td></tr><tr><td rowspan=1 colspan=1>PRPN-UP</td><td rowspan=1 colspan=1>48.4 4.9</td><td rowspan=2 colspan=1>40.6 5.943.5 6.2</td></tr><tr><td rowspan=1 colspan=1>PRPN-LM</td><td rowspan=1 colspan=1>50.2 5.0</td></tr><tr><td rowspan=1 colspan=1>DIORA</td><td rowspan=1 colspan=1>49.0 6.2</td><td rowspan=1 colspan=1>43.8 8.1</td></tr><tr><td rowspan=1 colspan=1>PRPN-UP+PP</td><td rowspan=1 colspan=1>54.6 4.9</td><td rowspan=1 colspan=1>46.1 5.9</td></tr><tr><td rowspan=1 colspan=1>PRPN-LM+PP</td><td rowspan=1 colspan=1>50.1 5.0</td><td rowspan=1 colspan=1>43.0 6.2</td></tr><tr><td rowspan=1 colspan=1>DIORA+PP</td><td rowspan=1 colspan=1>53.7 6.1</td><td rowspan=1 colspan=1>46.9 7.9</td></tr></table>
|
| 137 |
+
|
| 138 |
+
# 3.2 UNSUPERVISED PHRASE SEGMENTATION
|
| 139 |
+
|
| 140 |
+
In many scenarios, rather than a full parse, one is only concerned with extracting particular constituent phrases, such as entities, to be used for downstream analysis. In order to get an idea of how well our model can perform on phrase segmentation, we consider the maximum recall of spans in our predicted parse tree. We leave methods for cutting the tree to future work and instead consider the maximum recall of our model which serves as an upper bound on its performance. We calculate recall as the percentage of labeled constituents that appear in our predicted tree relative the total number of constituents in the gold tree. We separate these scores by type which are presented in Table 3.
|
| 141 |
+
|
| 142 |
+
# 3.2.1 RESULTS AND DISCUSSION
|
| 143 |
+
|
| 144 |
+
In Table 2 we see the breakdown of constituent recall across the 10 most common types. We see that PRPN-UP has the highest recall for the most common type noun-phrase, but drops in every other category. DIORA achieves the highest recall across the most types and is the only model to perform effectively on verb-phrases. However, DIORA performs poorly relative to PRPN at prepositional phrases.
|
| 145 |
+
|
| 146 |
+
<table><tr><td>Label</td><td>Count</td><td>DIORA</td><td>PRPN-UP</td><td>PRPN-LM</td></tr><tr><td>NP</td><td>297,687</td><td>0.620</td><td>0.687</td><td>0.597</td></tr><tr><td>VP</td><td>168,603</td><td>0.569</td><td>0.397</td><td>0.316</td></tr><tr><td>PP</td><td>116,338</td><td>0.338</td><td>0.499</td><td>0.602</td></tr><tr><td>S</td><td>87,714</td><td>0.711</td><td>0.629</td><td>0.625</td></tr><tr><td>SBAR</td><td>24,743</td><td>0.490</td><td>0.412</td><td>0.554</td></tr><tr><td>ADJP</td><td>12,261</td><td>0.495</td><td>0.343</td><td>0.360</td></tr><tr><td>QP</td><td>11,441</td><td>0.624</td><td>0.336</td><td>0.545</td></tr><tr><td>ADVP</td><td>5,812</td><td>0.437</td><td>0.392</td><td>0.499</td></tr><tr><td>PRN</td><td>2,971</td><td>0.185</td><td>0.108</td><td>0.138</td></tr><tr><td>SINV</td><td>2,563</td><td>0.923</td><td>0.889</td><td>0.905</td></tr></table>
|
| 147 |
+
|
| 148 |
+
Table 3: Segment recall from WSJ seperated by phrase type. The 10 most frequent phrase types are shown. Highest value in each row is bolded.
|
| 149 |
+
|
| 150 |
+
# 3.3 PHRASE SIMILARITY
|
| 151 |
+
|
| 152 |
+
One of the goals of DIORA is to learn meaningful representations for spans of text. Most language modeling methods focus only on explicitly modeling token representations and rely on ad-hoc post-processing to generate representations for longer spans, typically relying on simple arithmetic functions of the individual tokens.
|
| 153 |
+
|
| 154 |
+
To evaluate our model’s learned phrase representations, we look at the similarity between spans of the same type within labeled phrase datasets. We look at two datasets, CoNLL 2000 is a shallow parsing dataset containing spans of noun phrases, verb phrases, etc. CoNLL 2012 is a named entity dataset containing 19 different entity types.
|
| 155 |
+
|
| 156 |
+
For each of the labeled spans (greater than length 1) in the datasets, we generate a phrase representation and similarities are based on cosine distance. We report three numerical evaluations for both datasets precision $@ \mathrm { K }$ , mean average precision (MAP), and dendogram purity (DP). We run a hierarchical clustering algorithm over the representations and computeDP (Kobren et al., 2017). Given any two points with the same gold label, the clustering tree is cut to form the minimal cluster containing both points. DP then calculates how pure that cluster is.
|
| 157 |
+
|
| 158 |
+
The first baseline we compare against produces phrase representations from averaging Glove vectors of the individual tokens within the span. The second uses ELMo (Peters et al., 2018a), a method for obtaining powerful, context dependent word embeddings that has led to many recent state-of-the-art results in NLP. We obtain phrases following the procedure described in (Peters et al., 2018b) and represent phrases as a function of its first and last hidden state. We look at two variants of $\mathrm { E L M o } ^ { 3 }$ . ELMo-L1 produces token hidden states by only taking the bottom LSTM layer outputs, ELMo-Avg takes a flat average over all of the LSTM hidden state layers4.
|
| 159 |
+
|
| 160 |
+
# 3.3.1 RESULTS
|
| 161 |
+
|
| 162 |
+
On the CoNLL 2000 dataset, we find that our model outperforms Glove and is competitive with ELMo. For CoNLL 2012, an named entity dataset, we find Glove to actually be the top performer
|
| 163 |
+
|
| 164 |
+
under some metrics while our model is far behind. These results indicate that DIORA is capturing syntax quite well, but is currently missing semantics.
|
| 165 |
+
|
| 166 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Dim</td><td colspan="4">CoNLL 2000</td><td colspan="4">CoNLL 2012</td></tr><tr><td>DP</td><td>P@10</td><td>P@100</td><td>MAP</td><td>DP</td><td>P@10</td><td>P@100</td><td>MAP</td></tr><tr><td>Random</td><td>300</td><td>0.425</td><td>0.41</td><td>0.40</td><td>0.34</td><td>0.16</td><td>0.15</td><td>0.14</td><td>0.13</td></tr><tr><td>Glove</td><td>300</td><td>0.521</td><td>0.89</td><td>0.74</td><td>0.53</td><td>0.392</td><td>0.82</td><td>0.65</td><td>0.47</td></tr><tr><td>ELMo-L1</td><td>4096</td><td>0.632</td><td>0.96</td><td>0.83</td><td>0.55</td><td>0.352</td><td>0.85</td><td>0.68</td><td>0.39</td></tr><tr><td>-L2</td><td>4096</td><td>0.545</td><td>0.94</td><td>0.79</td><td>0.57</td><td>0.301</td><td>0.83</td><td>0.67</td><td>0.39</td></tr><tr><td>- Concat</td><td>8192</td><td>0.576</td><td>0.95</td><td>0.78</td><td>0.58</td><td>0.308</td><td>0.84</td><td>0.68</td><td>0.40</td></tr><tr><td>- Avg</td><td>4096</td><td>0.618</td><td>0.97</td><td>0.84</td><td>0.67</td><td>0.369</td><td>0.87</td><td>0.73</td><td>0.46</td></tr><tr><td>DIORA-In</td><td>200</td><td>0.620</td><td>0.89</td><td>0.77</td><td>0.61</td><td>0.303</td><td>0.77</td><td>0.54</td><td>0.36</td></tr><tr><td>- Out</td><td>200</td><td>0.581</td><td>0.69</td><td>0.65</td><td>0.47</td><td>0.200</td><td>0.35</td><td>0.24</td><td>0.18</td></tr><tr><td>- In/Out</td><td>400</td><td>0.615</td><td>0.89</td><td>0.79</td><td>0.62</td><td>0.308</td><td>0.76</td><td>0.54</td><td>0.35</td></tr><tr><td>- In/Out Ext.</td><td>400</td><td>0.633</td><td>0.89</td><td>0.79</td><td>0.62</td><td>0.311</td><td>0.77</td><td>0.54</td><td>0.35</td></tr></table>
|
| 167 |
+
|
| 168 |
+
Table 4: Dendogram purity, $\mathrm { P @ 1 0 }$ , $\mathrm { P } @ 1 0 0$ , and MAP for labeled chunks from CoNLL-2000 and CoNLL 2012 datasets. For both metrics, higher is better. The top value in each column is bolded, or italicized if it is better than our model.
|
| 169 |
+
|
| 170 |
+
# 3.4 QUALITATIVE RESULTS
|
| 171 |
+
|
| 172 |
+
We show example trees from PRPN-LM and DIORA in 3.
|
| 173 |
+
|
| 174 |
+
# 4 RELATED WORK
|
| 175 |
+
|
| 176 |
+
Latent Tree Learning A brief survey of neural latent tree learning models was covered in Williams et al. (2018a). The first positive result for latent tree was shown in Htut et al. (2018), which used a language modeling objective. The model in Liue et al. (2018) uses an inside chart and an outside procedure to calculate marginal probabilities use to align spans between sentences in entailment.
|
| 177 |
+
|
| 178 |
+
Neural Inside-Outside Parsers The Inside-Outside Recursive Neural Network (IORNN) in Le and Zuidema (2014) is closest to ours and is a graph-based dependency parser that produces a $k$ -best list of parses, in contrast, DIORA produces the most likely parse given the learned the potential functions of the constituents. The Neural CRF Parser (Durrett and Klein, 2015), similar to DIORA, performs exact inference on the structure of a sentence, although requires a set of grammar rules and labeled parse trees during training. DIORA, like Liue et al. (2018), has a single grammar rule that applies to any pair of constituents and does not use structural supervision.
|
| 179 |
+
|
| 180 |
+
Unsupervised Parsing and Segmentation Unsupervised segmentation (also called chunking) from raw text dates back to Ponvert et al. (2011). Another paper by the same authors (Ponvert et al., 2010) only looked at parsing certain low-level constituents. Earlier grammar induction models were evaluated against a subset of the WSJ treebank filtered to sentences of length 10 after removing punctuation (Klein and Manning, 2002; 2004) while DIORA is evaluated against two much larger datasets for unsupervised parsing, including the full WSJ treebank. Unsupervised segmentation with across parallel corpora was performed in Das and Petrov (2011). The source language had segment labels, the target language did not, but there are mapped translations between the two languages. Cohen et al. (2011) achieved unsupervised segmentation for parallel corpora without using mapped translations.
|
| 181 |
+
|
| 182 |
+
# 5 CONCLUSION
|
| 183 |
+
|
| 184 |
+
In this work we presented DIORA, a completely unsupervised method for inducing syntactic trees and segmentations over text. We showed that an auto encoder language modeling objective on top of inside-outside representations of latent tree chart parsers allows us to effectively learn syntactic structure of language. In experiments on unsupervised parsing, chunking, and phrase representations we show our model is comparable to or outperforms current baselines, achieving the state-of-the-art performance on unsupervised parsing for the WSJ dataset. .
|
| 185 |
+
|
| 186 |
+

|
| 187 |
+
Figure 3: Pairs of example parses for the same sentence from two different models. For each pair, the top is the output of PRPN-LM and bottom was produced by DIORA. Bolden token pairs or spans indicate a parse error by PRPN that was correctly attached by DIORA. Some punctuation was removed for clarity of printed trees.
|
| 188 |
+
|
| 189 |
+
Future work can improve the current method by training larger models over much larger corpora including other domains and languages. While the current model seems to focus primarily on syntax, extra unsupervised objectives or light supervision could be injected into the learning procedure to encourage a more thorough capturing of semantics.
|
| 190 |
+
|
| 191 |
+
# REFERENCES
|
| 192 |
+
|
| 193 |
+
Patrick Verga, David Belanger, Emma Strubell, Benjamin Roth, and Andrew McCallum. Multilingual relation extraction using compositional universal schema. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 886–896, San Diego, California, June 2016. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/N16-1103.
|
| 194 |
+
|
| 195 |
+
Emma Strubell, Patrick Verga, Daniel Andor, David Weiss, and Andrew McCallum. LinguisticallyInformed Self-Attention for Semantic Role Labeling. In Conference on Empirical Methods in Natural Language Processing (EMNLP), Brussels, Belgium, October 2018.
|
| 196 |
+
|
| 197 |
+
Roee Aharoni and Yoav Goldberg. Towards string-to-tree neural machine translation. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, 2017.
|
| 198 |
+
|
| 199 |
+
Kai Sheng Tai, Richard Socher, and Christopher D. Manning. Improved semantic representations from tree-structured long short-term memory networks. In ACL, 2015.
|
| 200 |
+
|
| 201 |
+
Mitchell Marcus, Grace Kim, Mary Ann Marcinkiewicz, Robert MacIntyre, Ann Bies, Mark Ferguson, Karen Katz, and Britta Schasberger. The penn treebank: annotating predicate argument structure. In Proceedings of the workshop on Human Language Technology, pages 114–119. Association for Computational Linguistics, 1994.
|
| 202 |
+
|
| 203 |
+
Phong Le and Willem Zuidema. The forest convolutional network: Compositional distributional semantics with a neural chart and without binarization. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 1155–1164, 2015.
|
| 204 |
+
|
| 205 |
+
Dani Yogatama, Phil Blunsom, Chris Dyer, Edward Grefenstette, and Wang Ling. Learning to compose words into sentences with reinforcement learning. arXiv preprint arXiv:1611.09100, 2016.
|
| 206 |
+
|
| 207 |
+
Jean Maillard, Stephen Clark, and Dani Yogatama. Jointly learning sentence embeddings and syntax with unsupervised tree-lstms. arXiv preprint arXiv:1705.09189, 2017.
|
| 208 |
+
|
| 209 |
+
Jihun Choi, Kang Min Yoo, and Sang-goo Lee. Learning to compose task-specific tree structures. In In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, New Orleans, Louisiana, USA, February 2-7, 2018, 2018.
|
| 210 |
+
|
| 211 |
+
Adina Williams, Andrew Drozdov, and Samuel R Bowman. Do latent tree learning models identify meaningful structure in sentences? Transactions of the Association of Computational Linguistics, 6:253–267, 2018a.
|
| 212 |
+
|
| 213 |
+
James K Baker. Trainable grammars for speech recognition. The Journal of the Acoustical Society of America, 65(S1):S132–S132, 1979.
|
| 214 |
+
|
| 215 |
+
Karim Lari and Steve J Young. The estimation of stochastic context-free grammars using the insideoutside algorithm. Computer speech & language, 4(1):35–56, 1990.
|
| 216 |
+
|
| 217 |
+
Yikang Shen, Zhouhan Lin, Chin-Wei Huang, and Aaron Courville. Neural language modeling by jointly learning syntax and lexicon. 2018.
|
| 218 |
+
|
| 219 |
+
Phu Mon Htut, Kyunghyun Cho, and Samuel R Bowman. Grammar induction with neural language models: An unusual replication. In Conference on Empirical Methods in Natural Language Processing (EMNLP), Brussels, Belgium, October 2018.
|
| 220 |
+
|
| 221 |
+
Tadao Kasami. An efficient recognition and syntax-analysis algorithm for context-free languages. Coordinated Science Laboratory Report no. R-257, 1966.
|
| 222 |
+
|
| 223 |
+
Daniel H Younger. Recognition and parsing of context-free languages in time n3. Information and control, 10(2):189–208, 1967.
|
| 224 |
+
|
| 225 |
+
Pytorch Core Team. Pytorch: Tensors and dynamic neural networks in python with strong gpu acceleration. http://pytorch.org/, 2018. Accessed: 2018-09-26.
|
| 226 |
+
|
| 227 |
+
Adina Williams, Nikita Nangia, and Samuel Bowman. A broad-coverage challenge corpus for sentence understanding through inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 1112–1122. Association for Computational Linguistics, 2018b. URL http://aclweb.org/anthology/N18-1101.
|
| 228 |
+
|
| 229 |
+
Christopher Manning, Mihai Surdeanu, John Bauer, Jenny Finkel, Steven Bethard, and David McClosky. The stanford corenlp natural language processing toolkit. In Proceedings of 52nd annual meeting of the association for computational linguistics: system demonstrations, pages 55–60, 2014.
|
| 230 |
+
|
| 231 |
+
Ari Kobren, Nicholas Monath, Akshay Krishnamurthy, and Andrew McCallum. A hierarchical algorithm for extreme clustering. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’17, pages 255–264, New York, NY, USA, 2017. ACM. ISBN 978-1-4503-4887-4. doi: 10.1145/3097983.3098079. URL http://doi.acm.org/10.1145/3097983.3098079.
|
| 232 |
+
|
| 233 |
+
Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. In Proc. of NAACL, 2018a.
|
| 234 |
+
|
| 235 |
+
Matthew E Peters, Mark Neumann, Luke Zettlemoyer, and Wen-tau Yih. Dissecting contextual word embeddings: Architecture and representation. In Conference on Empirical Methods in Natural Language Processing (EMNLP), Brussels, Belgium, October 2018b.
|
| 236 |
+
|
| 237 |
+
Yang Liue, Matt Gardner, and Mirella Lapata. Structured alignment networks. In Conference on Empirical Methods in Natural Language Processing (EMNLP), Brussels, Belgium, October 2018.
|
| 238 |
+
|
| 239 |
+
Phong Le and Willem Zuidema. The inside-outside recursive neural network model for dependency parsing. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pages 729–739, 2014.
|
| 240 |
+
|
| 241 |
+
Greg Durrett and Dan Klein. Neural crf parsing. In ACL, 2015.
|
| 242 |
+
|
| 243 |
+
Elias Ponvert, Jason Baldridge, and Katrin Erk. Simple unsupervised grammar induction from raw text with cascaded finite state models. In ACL, 2011.
|
| 244 |
+
|
| 245 |
+
Elias Ponvert, Jason Baldridge, and Katrin Erk. Simple unsupervised identification of low-level constituents. 2010 IEEE Fourth International Conference on Semantic Computing, pages 24–31, 2010.
|
| 246 |
+
|
| 247 |
+
Dan Klein and Christopher D. Manning. A generative constituent-context model for improved grammar induction. In ACL, 2002.
|
| 248 |
+
|
| 249 |
+
Dan Klein and Christopher D. Manning. Corpus-based induction of syntactic structure: Models of dependency and constituency. In ACL, 2004.
|
| 250 |
+
|
| 251 |
+
Dipanjan Das and Slav Petrov. Unsupervised part-of-speech tagging with bilingual graph-based projections. In ACL, 2011.
|
| 252 |
+
|
| 253 |
+
Shay B. Cohen, Dipanjan Das, and Noah A. Smith. Unsupervised structure prediction with nonparallel multilingual guidance. In EMNLP, 2011.
|
| 254 |
+
|
| 255 |
+
Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pages 1532–1543, 2014.
|
| 256 |
+
|
| 257 |
+
# A APPENDIX
|
| 258 |
+
|
| 259 |
+
# A.1 TRAINING DETAILS
|
| 260 |
+
|
| 261 |
+
All DIORA experiments are trained with these settings unless otherwise specified: we use the ALLNLI corpus including only sentences with length less than 20, stochastic gradient descent with a batch size of 256, and the model dimension set to 200. The input sentences are embedded using the 300D 480B GloVe embeddings (Pennington et al., 2014) and are not updated during training. Sentences are grouped into batches with uniform sentence length. Each cell in the chart has its L2- norm set to 1. Early stopping is done using the reconstruction objective evaluated on a held-out set. When depending on Noise Contrastive Estimation (as is the case in the reconstruction objective), we sample 3 negative examples per positive example.
|
parse/train/HJeq43AqF7/HJeq43AqF7_content_list.json
ADDED
|
@@ -0,0 +1,1384 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "UNSUPERVISED LATENT TREE INDUCTION WITH DEEP INSIDE-OUTSIDE RECURSIVE AUTO-ENCODERS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Syntax is a powerful abstraction for language understanding. Many downstream tasks require segmenting input text into meaningful constituent chunks (e.g., noun phrases or entities); more generally, models for learning semantic representations of text benefit from integrating syntax in the form of parse trees (e.g., treeLSTMs). Supervised parsers have traditionally been used to obtain these trees, but lately interest has increased in unsupervised methods that induce syntactic representations directly from unlabeled text. To this end, we propose the deep insideoutside recursive autoencoder (DIORA), a fully-unsupervised method for discovering syntax that simultaneously learns representations for constituents within the induced tree. Unlike many prior approaches, DIORA does not rely on supervision from auxiliary downstream tasks and is thus not constrained to particular domains. Furthermore, competing approaches do not learn explicit phrase representations along with tree structures, which limits their applicability to phrase-based tasks. Extensive experiments on unsupervised parsing, segmentation, and phrase clustering demonstrate the efficacy of our method. DIORA achieves the state of the art in unsupervised parsing (46.9 F1) on the benchmark WSJ dataset. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
267,
|
| 43 |
+
764,
|
| 44 |
+
489
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
516,
|
| 55 |
+
336,
|
| 56 |
+
532
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Syntax in the form of parse trees is an essential component of many natural language processing tasks. Constituent spans taken from a parse tree are useful for tasks such as relation extraction Verga et al. (2016) and semantic role labeling (Strubell et al., 2018), while the full parse itself can be used to build higher-quality systems for machine translation (Aharoni and Goldberg, 2017) and text classification (Tai et al., 2015). Supervised parsers trained on datasets such as the Penn Treebank (Marcus et al., 1994) are traditionally used to obtain these trees; however, these datasets are generally small and restricted to the newswire domain. For out-of-domain applications, it is generally infeasible to create new treebanks, as syntactic annotation is expensive and time-consuming. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
547,
|
| 66 |
+
825,
|
| 67 |
+
659
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Motivated by these limitations, we propose a method that extracts both shallow parses (i.e., noun phrases or entities) and full syntactic trees from any domain or language automatically without any training data. In addition to just producing the parse, we want our model to build representations for internal constituents that obey syntactic and semantic regularities, as we can then easily inject these representations into downstream tasks. Our model extends existing work on latent tree chart parsers (Le and Zuidema, 2015; Yogatama et al., 2016; Maillard et al., 2017; Choi et al., 2018), which build up representations for all internal nodes in the tree (cells in the chart) generated by a soft weighting over all possible sub-trees (Section 2). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
666,
|
| 77 |
+
825,
|
| 78 |
+
777
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "In previous work, the representation at the root node is used as a sentence encoding and trained to optimize some downstream task, typically natural language inference. Unfortunately, this method requires sentence level annotations to train the model. Worse still, analysis on the trees learned by these models show that they are actually quite poor at capturing syntax that in any way resembles linguistic theory (Williams et al., 2018a). To address these issues, we incorporate the inside-outside algorithm (Baker, 1979; Lari and Young, 1990) into a latent tree chart parser. The bottom-up inside step is equivalent to the forward-pass of previous latent tree chart parsers (Maillard et al., 2017). However, these inside representations are encoded by looking only within the current subtree, completely ignoring outside context. Thus, we perform an additional top-down outside calculation for each node in the tree incorporating external context into sub-tree representations. Finally, we train the outside representations of leaves to reconstruct the initial input, which results in a completely unsupervised autoencoder-like objective. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
785,
|
| 88 |
+
825,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/257d72c4357292801b1451c12a1c400f9d36051fd62db8226b13f401c4123b5d.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Example parse trees. Top PRPN-LM prediction, bottom DIORA prediction. DIORA correctly chunks the span ‘raised hopes for further interest-rate cuts’. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
284,
|
| 102 |
+
98,
|
| 103 |
+
717,
|
| 104 |
+
223
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
300,
|
| 114 |
+
821,
|
| 115 |
+
328
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Recently, Shen et al. (2018) proposed Parsing-Reading-Predict Networks (PRPN), an RNN based language model with an additional module for inferring syntactic distance. After training, this syntax module can be decomposed to recover a parse (Htut et al., 2018) via a complex mechanism that involves modeling a distribution over possible syntactic structures with a stick-breaking process. Like DIORA, this model can be trained in a completely unsupervised manner. However, it has no mechanism of explicitly modeling phrases, and span representations can only be generated by post-hoc heuristics. Additionally, finding the most probable tree in DIORA is much simpler than in PRPN, as we can just run the CKY algorithm. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
335,
|
| 125 |
+
825,
|
| 126 |
+
446
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "To probe different properties of our model, we run experiments on unsupervised parsing, segmentation, and phrase representations. DIORA sets the state-of-the-art for unsupervised parsing on the WSJ dataset, has a greater recall on a more constituent types than PRPN, and demonstrates strong clustering of phrase representations. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
454,
|
| 136 |
+
825,
|
| 137 |
+
510
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "2 DIORA: DEEP INSIDE-OUTSIDE RECURSIVE AUTO-ENCODER ",
|
| 144 |
+
"text_level": 1,
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
534,
|
| 148 |
+
722,
|
| 149 |
+
550
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "Our goal is to build an unsupervised model which can automatically discover syntactic structure from raw text. The hypothesis that our model follows is that the most efficient compression of a sentence will be derived from following the true syntactic structure of the underlying input. Our model is an extension of latent tree chart parsers augmented with the inside-outside algorithm (Baker, 1979; Lari and Young, 1990) and trained as an auto-encoder. Based on our hypothesis, the auto-encoder will best reconstruct the input by discovering and exploiting syntactic regularities of the text. ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
174,
|
| 158 |
+
568,
|
| 159 |
+
825,
|
| 160 |
+
651
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "The inside phase of our method recursively compresses the input sequence into a single vector representing the sentence (Section 2.1.1). This is analogous to the compression step of an autoencoder and equivalent to existing latent tree chart parsers forward pass. Following this, we initiate the outside phase of our algorithm there a generic sentence (root) representation which is trained as a part of the model parameter. As an outside step of the inside-outside algorithm (Section 2.1.2), we expand outward until finally producing reconstructed representations of the leaf nodes. These reconstructed leaves are then optimized to reconstruct the input sentence as done in an auto-encoder based deep neural network (Section 2.2). ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
174,
|
| 169 |
+
659,
|
| 170 |
+
825,
|
| 171 |
+
770
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "2.1 FILLING THE CHART WITH INSIDE-OUTSIDE ",
|
| 178 |
+
"text_level": 1,
|
| 179 |
+
"bbox": [
|
| 180 |
+
176,
|
| 181 |
+
791,
|
| 182 |
+
521,
|
| 183 |
+
805
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "Each inside representation of a given sub-tree is built considering only the children constituents of that sub-tree, independent of any outside context. After the inside representations are calculated, we do a top-down outside pass to compute outside representations. The outside representations are encoded by looking at the context of a given sub-tree. In the end, each cell in the chart will contain an inside vector, inside compatibility score, outside vector, and outside compatibility score. ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
174,
|
| 192 |
+
818,
|
| 193 |
+
825,
|
| 194 |
+
888
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Once the chart is filled, each constituent $k$ (cell in the chart) is associated with an inside vector $\\alpha _ { k } ^ { v e c }$ , an outside vector $\\beta _ { k } ^ { v e c }$ , inside score $\\alpha _ { k } ^ { s c o r e }$ and outside score $\\beta _ { k } ^ { s c o r e }$ . ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
895,
|
| 204 |
+
821,
|
| 205 |
+
924
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "image",
|
| 211 |
+
"img_path": "images/a8ac72f7bc5265dbe83dfc1cf63aefad38e0306a727add4fc17297782595aa7f.jpg",
|
| 212 |
+
"image_caption": [
|
| 213 |
+
"Figure 2: The inside and outside pass of DIORA for the input ‘the cat drank milk’. a) The inside pass: The inside vector for the phrase ‘the cat drank’ is a weighted average of the compositions for the two possible segmentations - ((the cat), drank) and (the, (cat drank)). The weights come from the learned compatibility scores $\\alpha _ { k } ^ { s c o r e }$ . b) The outside Pass: The outside vector for the phrase ‘drank milk’ is a function of the outside vector of its parent and the inside vector of its sibling. "
|
| 214 |
+
],
|
| 215 |
+
"image_footnote": [],
|
| 216 |
+
"bbox": [
|
| 217 |
+
186,
|
| 218 |
+
106,
|
| 219 |
+
774,
|
| 220 |
+
272
|
| 221 |
+
],
|
| 222 |
+
"page_idx": 2
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"type": "text",
|
| 226 |
+
"text": "Assuming that the input to our model is a sentence $X$ made up of $T$ tokens, $x _ { 0 } , x _ { 1 } , . . . , x _ { T }$ , we describe inside and outside phases of our algorithm in the following Sections 2.1.1 and 2.1.2. Also, each token $x _ { i }$ has a corresponding pre-trained $d$ dimensional embedding vector $v _ { i }$ . ",
|
| 227 |
+
"bbox": [
|
| 228 |
+
174,
|
| 229 |
+
381,
|
| 230 |
+
825,
|
| 231 |
+
422
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 2
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "text",
|
| 237 |
+
"text": "2.1.1 INSIDE PHASE ",
|
| 238 |
+
"text_level": 1,
|
| 239 |
+
"bbox": [
|
| 240 |
+
174,
|
| 241 |
+
438,
|
| 242 |
+
330,
|
| 243 |
+
453
|
| 244 |
+
],
|
| 245 |
+
"page_idx": 2
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"text": "For each pair of neighboring constituents $i$ and $j$ , we compute a compatibility score $\\alpha _ { k } ^ { s c o r e }$ and a composition vector $\\alpha _ { k } ^ { v e c }$ . The score and vector that represents a particular span $k$ are computed using a soft weighting over all possible pairs of constituents that together covers the span entirely (we refer to this set of constituent pairs as $\\{ k \\} )$ : ",
|
| 250 |
+
"bbox": [
|
| 251 |
+
174,
|
| 252 |
+
462,
|
| 253 |
+
825,
|
| 254 |
+
518
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 2
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"text": "Vectors for spans of length 1 are initialized using a linear transformation of the embedded input $v _ { i }$ . \nScores associated with these spans are set to 0. ",
|
| 261 |
+
"bbox": [
|
| 262 |
+
173,
|
| 263 |
+
525,
|
| 264 |
+
823,
|
| 265 |
+
554
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "equation",
|
| 271 |
+
"img_path": "images/a8b5681fdb928b061ae9de1b599c200822b66fc56df120b545810d8ce175636d.jpg",
|
| 272 |
+
"text": "$$\n\\begin{array} { r } { \\alpha _ { k } ^ { v e c } = W _ { i n } v _ { k } ^ { T } } \\\\ { \\alpha _ { k } ^ { s c o r e } = 0 \\qquad } \\end{array}\n$$",
|
| 273 |
+
"text_format": "latex",
|
| 274 |
+
"bbox": [
|
| 275 |
+
441,
|
| 276 |
+
560,
|
| 277 |
+
557,
|
| 278 |
+
598
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 2
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "For higher levels of the chart we use: ",
|
| 285 |
+
"bbox": [
|
| 286 |
+
173,
|
| 287 |
+
611,
|
| 288 |
+
416,
|
| 289 |
+
626
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 2
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "equation",
|
| 295 |
+
"img_path": "images/e1fc6b578538ecdab318d74c26e219046fbf8b7dd3648dc20f66cc73ff78a6bd.jpg",
|
| 296 |
+
"text": "$$\n\\begin{array} { c } { { \\alpha _ { k } ^ { v e c } = \\displaystyle \\sum _ { i , j \\in \\{ k \\} } e ^ { c o m p a t ( i , j ) } c o m p o s e ( i , j ) } } \\\\ { { \\alpha _ { k } ^ { s c o r e } = \\displaystyle \\sum _ { i , j \\in \\{ k \\} } e ^ { c o m p a t ( i , j ) } c o m p a t ( i , j ) } } \\end{array}\n$$",
|
| 297 |
+
"text_format": "latex",
|
| 298 |
+
"bbox": [
|
| 299 |
+
356,
|
| 300 |
+
631,
|
| 301 |
+
640,
|
| 302 |
+
707
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 2
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "text",
|
| 308 |
+
"text": "The compatibility function compat is a bilinear function of the vectors from neighboring spans, adding their scores: ",
|
| 309 |
+
"bbox": [
|
| 310 |
+
173,
|
| 311 |
+
719,
|
| 312 |
+
825,
|
| 313 |
+
747
|
| 314 |
+
],
|
| 315 |
+
"page_idx": 2
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"type": "equation",
|
| 319 |
+
"img_path": "images/3e08678dd9d99a1925a85f034cdc17870ce017c7cc650f8b93ae633b5d376bbb.jpg",
|
| 320 |
+
"text": "$$\nc o m p a t ( i , j ) = \\alpha _ { i } ^ { v e c } S ^ { i n \\top } \\alpha _ { j } ^ { v e c \\top } + \\alpha _ { i } ^ { s c o r e } + \\alpha _ { j } ^ { s c o r e }\n$$",
|
| 321 |
+
"text_format": "latex",
|
| 322 |
+
"bbox": [
|
| 323 |
+
328,
|
| 324 |
+
773,
|
| 325 |
+
669,
|
| 326 |
+
795
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 2
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "And the composition function compose is a TreeLSTM (Tai et al., 2015) which produces a hidden state vector $h$ and cell state vector $c$ .: ",
|
| 333 |
+
"bbox": [
|
| 334 |
+
176,
|
| 335 |
+
806,
|
| 336 |
+
823,
|
| 337 |
+
835
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 2
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "equation",
|
| 343 |
+
"img_path": "images/cc015c7f0dc77855f9dc91151add750f20b4e3938ad675c42a6e7aa8b551cd8e.jpg",
|
| 344 |
+
"text": "$$\nc o m p o s e ( i , j ) = T r e e L S T M ^ { i n } ( \\alpha _ { i } ^ { v e c } , \\alpha _ { j } ^ { v e c } ) = \\left[ h \\right]\n$$",
|
| 345 |
+
"text_format": "latex",
|
| 346 |
+
"bbox": [
|
| 347 |
+
325,
|
| 348 |
+
861,
|
| 349 |
+
673,
|
| 350 |
+
896
|
| 351 |
+
],
|
| 352 |
+
"page_idx": 2
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"type": "text",
|
| 356 |
+
"text": "Where the T reeLST M is defined as follows: ",
|
| 357 |
+
"bbox": [
|
| 358 |
+
174,
|
| 359 |
+
909,
|
| 360 |
+
475,
|
| 361 |
+
924
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 2
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "equation",
|
| 367 |
+
"img_path": "images/e378ed4e5999a0a826e0131e4535c6d664083ed97b8b02c62db12e7ec5be6a1c.jpg",
|
| 368 |
+
"text": "$$\n\\begin{array}{c} { \\left[ \\begin{array} { l } { i } \\\\ { f _ { i } } \\\\ { f _ { j } } \\\\ { u } \\\\ { o } \\end{array} \\right] } = { \\left[ \\begin{array} { l } { \\sigma } \\\\ { \\sigma } \\\\ { \\sigma } \\\\ { \\sigma } \\\\ { \\operatorname { t a n h } } \\end{array} \\right] } \\left( U \\left[ h _ { i } \\right] ^ { \\top } + b + { \\left[ \\begin{array} { l } { 0 } \\\\ { \\omega } \\\\ { \\omega } \\\\ { h _ { j } } \\end{array} \\right] } \\right) \\\\ { c = c _ { i } \\odot \\sigma ( f _ { i } ) + c _ { j } \\odot \\sigma ( f _ { j } ) + \\operatorname { t a n h } ( u ) \\odot \\sigma ( i ) } \\\\ { h = \\sigma ( o ) + \\operatorname { t a n h } ( c ) } \\end{array} \n$$",
|
| 369 |
+
"text_format": "latex",
|
| 370 |
+
"bbox": [
|
| 371 |
+
326,
|
| 372 |
+
127,
|
| 373 |
+
671,
|
| 374 |
+
239
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "The constant $\\omega$ is set to 1 for the inside phase and 0 for the outside phase. The parameters $U$ and $b$ are not shared between the inside phase and outside phase. ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
173,
|
| 383 |
+
256,
|
| 384 |
+
825,
|
| 385 |
+
286
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 3
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "2.1.2 OUTSIDE PHASE ",
|
| 392 |
+
"text_level": 1,
|
| 393 |
+
"bbox": [
|
| 394 |
+
174,
|
| 395 |
+
306,
|
| 396 |
+
344,
|
| 397 |
+
321
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 3
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "text",
|
| 403 |
+
"text": "The outside computation is similar to the inside, ",
|
| 404 |
+
"bbox": [
|
| 405 |
+
176,
|
| 406 |
+
333,
|
| 407 |
+
490,
|
| 408 |
+
348
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 3
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "text",
|
| 414 |
+
"text": "The root node of the outside chart is learned as a bias. Descendant cells are predicted using a disambiguation over the possible outside contexts. Each component of the context consists of a sibling cell from the inside chart and a parent cell from the outside chart. ",
|
| 415 |
+
"bbox": [
|
| 416 |
+
174,
|
| 417 |
+
356,
|
| 418 |
+
825,
|
| 419 |
+
397
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 3
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "equation",
|
| 425 |
+
"img_path": "images/d84ad192a364bce39e2fdb1f94929687ac03737b11db4f3c519a1c3ff61931d0.jpg",
|
| 426 |
+
"text": "$$\n\\begin{array} { c } { { \\beta _ { k } ^ { v e c } = \\displaystyle \\sum _ { i , j \\in \\{ k \\} } e ^ { d i s a m b ( i , j ) } p r e d i c t ( i , j ) } } \\\\ { { \\beta _ { k } ^ { s c o r e } = \\displaystyle \\sum _ { i , j \\in \\{ k \\} } e ^ { d i s a m b ( i , j ) } d i s a m b ( i , j ) } } \\\\ { { d i s a m b ( i , j ) = \\beta _ { i } ^ { v e c } S ^ { o u t \\top } \\alpha _ { j } ^ { v e c \\top } + \\beta _ { i } ^ { s c o r e } + \\alpha _ { j } ^ { s c o r e } } } \\\\ { { p r e d i c t ( i , j ) = T r e e L S T M ^ { o u t } ( \\alpha _ { i } ^ { v e c } , \\beta _ { j } ^ { v e c } ) } } \\end{array}\n$$",
|
| 427 |
+
"text_format": "latex",
|
| 428 |
+
"bbox": [
|
| 429 |
+
325,
|
| 430 |
+
428,
|
| 431 |
+
671,
|
| 432 |
+
545
|
| 433 |
+
],
|
| 434 |
+
"page_idx": 3
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"type": "text",
|
| 438 |
+
"text": "2.2 TRAINING OBJECTIVE ",
|
| 439 |
+
"text_level": 1,
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
564,
|
| 443 |
+
370,
|
| 444 |
+
579
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "To train our model we use an auto-encoder-like language modeling objective. In a standard autoencoder, the input $X$ is compressed into a single lower dimensional representation $Y$ . $Y$ is then decompressed and trained to predict $X$ . In our model, we never condition the reconstruction of $X$ on a single $Y$ because the root’s outside representation is initialized with a bias rather than the root’s own inside vector. Instead, we reconstruct $X$ conditioned on the many sub-tree roots, none of which is a single compression of the entire $X$ , but rather a subset. ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
173,
|
| 453 |
+
592,
|
| 454 |
+
825,
|
| 455 |
+
676
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 3
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "Each generated outside vector $\\beta _ { i } ^ { v e c }$ for constituents of length 1 are trained to predict their original input $v _ { i }$ . We approximate a reconstruction loss with a max-margin across $N$ negative samples. ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
174,
|
| 464 |
+
683,
|
| 465 |
+
823,
|
| 466 |
+
712
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 3
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "For each $x _ { i }$ , we sample $N$ negative $\\boldsymbol { x } _ { i } ^ { n }$ uniformly at random from the vocabulary. The training objective of our model over a batch $\\mathbf { B } = \\{ X _ { T ^ { i } } ^ { i } , i \\stackrel { \\cdot } { = } 1 , . . . , B \\}$ is computed identically for all tokens (which are also all spans with length 1) within the batch and averaged to get the overall loss for the entire batch. Precisely, the loss function for each token (span k) is described in Equation 14. ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
174,
|
| 475 |
+
718,
|
| 476 |
+
825,
|
| 477 |
+
775
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 3
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "equation",
|
| 483 |
+
"img_path": "images/bd2f7a62a9e3174011edb7342f467e2a6b34f6e22591e9162aed0ddb84b9a9bd.jpg",
|
| 484 |
+
"text": "$$\nL ( \\mathbf { B } ) = \\sum _ { n = 1 } ^ { n = N } \\operatorname* { m a x } ( 0 , 1 - \\beta _ { k } ^ { v e c } * \\alpha _ { k } ^ { v e c } + \\beta _ { k } ^ { v e c } * \\alpha _ { k _ { n } } ^ { v e c } )\n$$",
|
| 485 |
+
"text_format": "latex",
|
| 486 |
+
"bbox": [
|
| 487 |
+
323,
|
| 488 |
+
804,
|
| 489 |
+
674,
|
| 490 |
+
849
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 3
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "In equation 14, transformation, $\\alpha _ { k _ { n } } ^ { v e c }$ are representations for negative samples from vocabulary. Similar to inputare also computed after applying a linear transformation over the input emnbeddings. As mentioned before, $\\alpha _ { k } ^ { v e c }$ and $\\beta _ { k } ^ { v e c }$ are inside and outside representations, for span k, respectively. ",
|
| 497 |
+
"bbox": [
|
| 498 |
+
174,
|
| 499 |
+
867,
|
| 500 |
+
825,
|
| 501 |
+
924
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 3
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "table",
|
| 507 |
+
"img_path": "images/243c035d26ab40786f0806d8a7eac3ed766fd704432d43ab53dd3b7e4de19af5.jpg",
|
| 508 |
+
"table_caption": [
|
| 509 |
+
"Algorithm 1 Parsing with DIORA "
|
| 510 |
+
],
|
| 511 |
+
"table_footnote": [],
|
| 512 |
+
"table_body": "<table><tr><td>1:</td><td>procedure CKY(chart)</td></tr><tr><td>2: for each k ∈chart|size(k)=1 do</td><td>Initialize terminal values.</td></tr><tr><td>3: 4:</td><td>xk←0</td></tr><tr><td>foreachk ∈chart do</td><td>Calculate a maximum score for each span.</td></tr><tr><td>5: 6:</td><td>xk ← max [xi +xj + compat(i,j)] i,j∈{k}</td></tr><tr><td>i,j∈{k}</td><td>bk ← arg max[xi + xj + compat(i,j)] >Record a backpointer.</td></tr><tr><td>7:</td><td>procedure FOLLOW-BACKPOINTERS(k)</td></tr><tr><td>8:</td><td>if size(k)= 1 then</td></tr><tr><td>9: 10:</td><td>return k</td></tr><tr><td>11:</td><td>𝑖 ←FOLLOW-BACKPOINTERS(b)</td></tr><tr><td>12:</td><td>j ←FOLLOW-BACKPOINTERS(b)</td></tr><tr><td>return (i, j) 13:</td><td>return FOLLOW-BACKPOINTERS(k = root) >Backtrack to get the maximal tree.</td></tr></table>",
|
| 513 |
+
"bbox": [
|
| 514 |
+
178,
|
| 515 |
+
116,
|
| 516 |
+
826,
|
| 517 |
+
340
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "2.3 DIORA CKY PARSING ",
|
| 524 |
+
"text_level": 1,
|
| 525 |
+
"bbox": [
|
| 526 |
+
174,
|
| 527 |
+
368,
|
| 528 |
+
379,
|
| 529 |
+
383
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 4
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "To obtain a parse with DIORA, we populate an inside and outside chart using the input sentence. Then, we can extract the most likely parse based on our single grammar rule using the CKY procedure (Kasami, 1966; Younger, 1967). ",
|
| 536 |
+
"bbox": [
|
| 537 |
+
174,
|
| 538 |
+
396,
|
| 539 |
+
823,
|
| 540 |
+
439
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 4
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "It’s true that using CKY produces the most likely parse given a set of grammar rules, although in the case of DIORA, the single grammar rule is only a weak abstraction for a PCFG. For this reason, including context during CKY might inform our parser to make different decision. We include context by adding the scalar value of the outside cell to each inside cell. ",
|
| 547 |
+
"bbox": [
|
| 548 |
+
174,
|
| 549 |
+
445,
|
| 550 |
+
825,
|
| 551 |
+
502
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 4
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "text",
|
| 557 |
+
"text": "3 EXPERIMENTS ",
|
| 558 |
+
"text_level": 1,
|
| 559 |
+
"bbox": [
|
| 560 |
+
176,
|
| 561 |
+
526,
|
| 562 |
+
326,
|
| 563 |
+
541
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 4
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "To evaluate the effectiveness of DIORA, we run experiments on unsupervised parsing, unsupervised segmentation, and phrase similarities. The model has been implemented in PyTorch (Team, 2018) and the code is published online1. For implementation details, see the Appendix A.1 ",
|
| 570 |
+
"bbox": [
|
| 571 |
+
174,
|
| 572 |
+
559,
|
| 573 |
+
825,
|
| 574 |
+
602
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 4
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "text",
|
| 580 |
+
"text": "Our main baseline is the current state-of-the-art unsupervised parser PRPN(Shen et al., 2018). We compare our model against two size variants of this model which were used in Htut et al. (2018). Comparison of the number of parameters and maximum training sentence length are shown in 1. ",
|
| 581 |
+
"bbox": [
|
| 582 |
+
174,
|
| 583 |
+
609,
|
| 584 |
+
823,
|
| 585 |
+
651
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 4
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "table",
|
| 591 |
+
"img_path": "images/895994f1ba00ddb07699230fbe93190af5ed8d0cfddb903232a0b9070a30380e.jpg",
|
| 592 |
+
"table_caption": [
|
| 593 |
+
"Table 1: Model Dimensions. "
|
| 594 |
+
],
|
| 595 |
+
"table_footnote": [],
|
| 596 |
+
"table_body": "<table><tr><td>Model</td><td>Word Dim</td><td>#Parameters</td><td>Max Length</td></tr><tr><td>DIORA</td><td>300</td><td>1,502,400</td><td>20</td></tr><tr><td>PRPN-UP</td><td>200</td><td>3,624,202</td><td>35</td></tr><tr><td>PRPN-LM</td><td>800</td><td>35,593,202</td><td>35</td></tr></table>",
|
| 597 |
+
"bbox": [
|
| 598 |
+
303,
|
| 599 |
+
667,
|
| 600 |
+
687,
|
| 601 |
+
738
|
| 602 |
+
],
|
| 603 |
+
"page_idx": 4
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "text",
|
| 607 |
+
"text": "3.1 UNSUPERVISED PARSING ",
|
| 608 |
+
"text_level": 1,
|
| 609 |
+
"bbox": [
|
| 610 |
+
174,
|
| 611 |
+
795,
|
| 612 |
+
390,
|
| 613 |
+
810
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 4
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "We first evaluate how well our model is able to predict a full unlabeled syntactic parse. We look at two data sets which have been used in prior work (Htut et al., 2018), The Wall Street Journal(WSJ) section of Penn Tree Bank (Marcus et al., 1994), and the automatic parses from MultiNLI (Williams et al., 2018b). WSJ has gold human annotated parses and MultiNLI contains automatic parses derived from the Stanford CoreNLP parser (Manning et al., 2014). ",
|
| 620 |
+
"bbox": [
|
| 621 |
+
173,
|
| 622 |
+
823,
|
| 623 |
+
825,
|
| 624 |
+
892
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 4
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "We compare our model to left/right branching and balanced trees which are deterministically constructed. RL-SPINN (Yogatama et al., 2016) and ST-Gumbel (Choi et al., 2018) are chart parsing models trained to predict the downstream task of NLI. ",
|
| 631 |
+
"bbox": [
|
| 632 |
+
176,
|
| 633 |
+
103,
|
| 634 |
+
823,
|
| 635 |
+
146
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 5
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "3.1.1 RESULTS AND DISCUSSION ",
|
| 642 |
+
"text_level": 1,
|
| 643 |
+
"bbox": [
|
| 644 |
+
176,
|
| 645 |
+
169,
|
| 646 |
+
416,
|
| 647 |
+
183
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "Latent tree models have been shown to perform particularly poorly on attachments at the beginning and end of the sequence (Williams et al., 2018a). To address this, we incorporate a post-processing heuristic $+ \\mathrm { P P }$ in Table 2). We see that PRPN-UP and DIORA benefit much more than PRPN-LM from this heuristic. This is consistent with qualitative analysis showing that DIORA and PRPN-UP incorrectly attach trailing punctuation much more than PRPN-LM. This heuristic simply attaches trailing punctuation to the root of the tree, regardless of its predicted attachment. We find this to be extremely effective, increasing our state-of-the-art WSJ parsing results by by over 3 absolute F1 points. ",
|
| 654 |
+
"bbox": [
|
| 655 |
+
174,
|
| 656 |
+
195,
|
| 657 |
+
825,
|
| 658 |
+
308
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 5
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "On the MultiNLI dataset, PRPN-LM is the top performing model without using the PP heuristic and DIORA outperforms PRPN-UP. Afterwards, PRPN-UP surpasses DIORA. However, it is worth noting that this is not actually a gold standard evaluation and instead evaluates the ability to replicate the output of a trained parser Manning et al. (2014). ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
174,
|
| 667 |
+
314,
|
| 668 |
+
823,
|
| 669 |
+
371
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 5
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "table",
|
| 675 |
+
"img_path": "images/c2c9d041c23c59ac9f54b041afb44f64b71279c7c338cd713e6750499b1b249c.jpg",
|
| 676 |
+
"table_caption": [
|
| 677 |
+
"Table 2: Unsupervised Parsing. $\\dagger$ indicates trained to optimize NLI task.We use the max unlabeled binary F1 across runs for PRPN-UP 2, PRPN-LM, and DIORA. F1 was calculated using the parse trees provided by Htut et al. (2018) and all results in the upper portion of the table were copied from Htut et al. (2018). $+ \\mathrm { P P }$ refers to post-processing heuristic to remove trailing punctuation explained in Section 3.1. "
|
| 678 |
+
],
|
| 679 |
+
"table_footnote": [],
|
| 680 |
+
"table_body": "<table><tr><td rowspan=2 colspan=1>Model</td><td rowspan=2 colspan=1>MultiNLIF1 Depth</td><td rowspan=2 colspan=1>WSJF1 Depth</td></tr><tr><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>Left Branching</td><td rowspan=1 colspan=1>- -</td><td rowspan=1 colspan=1>13.1 12.4</td></tr><tr><td rowspan=1 colspan=1>Right Branching</td><td rowspan=1 colspan=1>- -</td><td rowspan=1 colspan=1>16.5 12.4</td></tr><tr><td rowspan=1 colspan=1>Random</td><td rowspan=1 colspan=1>27.0 4.4</td><td rowspan=1 colspan=1>21.4 5.3</td></tr><tr><td rowspan=1 colspan=1>Balanced</td><td rowspan=1 colspan=1>21.3 3.9</td><td rowspan=1 colspan=1>21.3 4.6</td></tr><tr><td rowspan=2 colspan=1>RL-SPINNt- w/o Leaf GRU</td><td rowspan=1 colspan=1>18.8 8.6</td><td rowspan=1 colspan=1>13.2 -</td></tr><tr><td rowspan=1 colspan=1>18.1 8.6</td><td rowspan=1 colspan=1>13.2 -</td></tr><tr><td rowspan=2 colspan=1>ST-Gumbelt - w/o Leaf GRU</td><td rowspan=1 colspan=1>23.7 4.1</td><td rowspan=1 colspan=1>20.1 1</td></tr><tr><td rowspan=1 colspan=1>27.5 4.6</td><td rowspan=1 colspan=1>25.0 -</td></tr><tr><td rowspan=1 colspan=1>PRPN-UP</td><td rowspan=1 colspan=1>48.4 4.9</td><td rowspan=2 colspan=1>40.6 5.943.5 6.2</td></tr><tr><td rowspan=1 colspan=1>PRPN-LM</td><td rowspan=1 colspan=1>50.2 5.0</td></tr><tr><td rowspan=1 colspan=1>DIORA</td><td rowspan=1 colspan=1>49.0 6.2</td><td rowspan=1 colspan=1>43.8 8.1</td></tr><tr><td rowspan=1 colspan=1>PRPN-UP+PP</td><td rowspan=1 colspan=1>54.6 4.9</td><td rowspan=1 colspan=1>46.1 5.9</td></tr><tr><td rowspan=1 colspan=1>PRPN-LM+PP</td><td rowspan=1 colspan=1>50.1 5.0</td><td rowspan=1 colspan=1>43.0 6.2</td></tr><tr><td rowspan=1 colspan=1>DIORA+PP</td><td rowspan=1 colspan=1>53.7 6.1</td><td rowspan=1 colspan=1>46.9 7.9</td></tr></table>",
|
| 681 |
+
"bbox": [
|
| 682 |
+
320,
|
| 683 |
+
388,
|
| 684 |
+
674,
|
| 685 |
+
662
|
| 686 |
+
],
|
| 687 |
+
"page_idx": 5
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"type": "text",
|
| 691 |
+
"text": "3.2 UNSUPERVISED PHRASE SEGMENTATION ",
|
| 692 |
+
"text_level": 1,
|
| 693 |
+
"bbox": [
|
| 694 |
+
174,
|
| 695 |
+
784,
|
| 696 |
+
500,
|
| 697 |
+
797
|
| 698 |
+
],
|
| 699 |
+
"page_idx": 5
|
| 700 |
+
},
|
| 701 |
+
{
|
| 702 |
+
"type": "text",
|
| 703 |
+
"text": "In many scenarios, rather than a full parse, one is only concerned with extracting particular constituent phrases, such as entities, to be used for downstream analysis. In order to get an idea of how well our model can perform on phrase segmentation, we consider the maximum recall of spans in our predicted parse tree. We leave methods for cutting the tree to future work and instead consider the maximum recall of our model which serves as an upper bound on its performance. We calculate recall as the percentage of labeled constituents that appear in our predicted tree relative the total number of constituents in the gold tree. We separate these scores by type which are presented in Table 3. ",
|
| 704 |
+
"bbox": [
|
| 705 |
+
174,
|
| 706 |
+
811,
|
| 707 |
+
825,
|
| 708 |
+
924
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 5
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "text",
|
| 714 |
+
"text": "3.2.1 RESULTS AND DISCUSSION ",
|
| 715 |
+
"text_level": 1,
|
| 716 |
+
"bbox": [
|
| 717 |
+
176,
|
| 718 |
+
103,
|
| 719 |
+
418,
|
| 720 |
+
118
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 6
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "In Table 2 we see the breakdown of constituent recall across the 10 most common types. We see that PRPN-UP has the highest recall for the most common type noun-phrase, but drops in every other category. DIORA achieves the highest recall across the most types and is the only model to perform effectively on verb-phrases. However, DIORA performs poorly relative to PRPN at prepositional phrases. ",
|
| 727 |
+
"bbox": [
|
| 728 |
+
174,
|
| 729 |
+
127,
|
| 730 |
+
823,
|
| 731 |
+
198
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 6
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "table",
|
| 737 |
+
"img_path": "images/71b6a743592131239466f85127a2097e2a82112439e95775cf26ff7b356dd44d.jpg",
|
| 738 |
+
"table_caption": [],
|
| 739 |
+
"table_footnote": [
|
| 740 |
+
"Table 3: Segment recall from WSJ seperated by phrase type. The 10 most frequent phrase types are shown. Highest value in each row is bolded. "
|
| 741 |
+
],
|
| 742 |
+
"table_body": "<table><tr><td>Label</td><td>Count</td><td>DIORA</td><td>PRPN-UP</td><td>PRPN-LM</td></tr><tr><td>NP</td><td>297,687</td><td>0.620</td><td>0.687</td><td>0.597</td></tr><tr><td>VP</td><td>168,603</td><td>0.569</td><td>0.397</td><td>0.316</td></tr><tr><td>PP</td><td>116,338</td><td>0.338</td><td>0.499</td><td>0.602</td></tr><tr><td>S</td><td>87,714</td><td>0.711</td><td>0.629</td><td>0.625</td></tr><tr><td>SBAR</td><td>24,743</td><td>0.490</td><td>0.412</td><td>0.554</td></tr><tr><td>ADJP</td><td>12,261</td><td>0.495</td><td>0.343</td><td>0.360</td></tr><tr><td>QP</td><td>11,441</td><td>0.624</td><td>0.336</td><td>0.545</td></tr><tr><td>ADVP</td><td>5,812</td><td>0.437</td><td>0.392</td><td>0.499</td></tr><tr><td>PRN</td><td>2,971</td><td>0.185</td><td>0.108</td><td>0.138</td></tr><tr><td>SINV</td><td>2,563</td><td>0.923</td><td>0.889</td><td>0.905</td></tr></table>",
|
| 743 |
+
"bbox": [
|
| 744 |
+
303,
|
| 745 |
+
210,
|
| 746 |
+
691,
|
| 747 |
+
398
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 6
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "3.3 PHRASE SIMILARITY ",
|
| 754 |
+
"text_level": 1,
|
| 755 |
+
"bbox": [
|
| 756 |
+
174,
|
| 757 |
+
464,
|
| 758 |
+
359,
|
| 759 |
+
478
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 6
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "text",
|
| 765 |
+
"text": "One of the goals of DIORA is to learn meaningful representations for spans of text. Most language modeling methods focus only on explicitly modeling token representations and rely on ad-hoc post-processing to generate representations for longer spans, typically relying on simple arithmetic functions of the individual tokens. ",
|
| 766 |
+
"bbox": [
|
| 767 |
+
174,
|
| 768 |
+
491,
|
| 769 |
+
825,
|
| 770 |
+
546
|
| 771 |
+
],
|
| 772 |
+
"page_idx": 6
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"type": "text",
|
| 776 |
+
"text": "To evaluate our model’s learned phrase representations, we look at the similarity between spans of the same type within labeled phrase datasets. We look at two datasets, CoNLL 2000 is a shallow parsing dataset containing spans of noun phrases, verb phrases, etc. CoNLL 2012 is a named entity dataset containing 19 different entity types. ",
|
| 777 |
+
"bbox": [
|
| 778 |
+
174,
|
| 779 |
+
554,
|
| 780 |
+
823,
|
| 781 |
+
609
|
| 782 |
+
],
|
| 783 |
+
"page_idx": 6
|
| 784 |
+
},
|
| 785 |
+
{
|
| 786 |
+
"type": "text",
|
| 787 |
+
"text": "For each of the labeled spans (greater than length 1) in the datasets, we generate a phrase representation and similarities are based on cosine distance. We report three numerical evaluations for both datasets precision $@ \\mathrm { K }$ , mean average precision (MAP), and dendogram purity (DP). We run a hierarchical clustering algorithm over the representations and computeDP (Kobren et al., 2017). Given any two points with the same gold label, the clustering tree is cut to form the minimal cluster containing both points. DP then calculates how pure that cluster is. ",
|
| 788 |
+
"bbox": [
|
| 789 |
+
173,
|
| 790 |
+
616,
|
| 791 |
+
825,
|
| 792 |
+
700
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 6
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "The first baseline we compare against produces phrase representations from averaging Glove vectors of the individual tokens within the span. The second uses ELMo (Peters et al., 2018a), a method for obtaining powerful, context dependent word embeddings that has led to many recent state-of-the-art results in NLP. We obtain phrases following the procedure described in (Peters et al., 2018b) and represent phrases as a function of its first and last hidden state. We look at two variants of $\\mathrm { E L M o } ^ { 3 }$ . ELMo-L1 produces token hidden states by only taking the bottom LSTM layer outputs, ELMo-Avg takes a flat average over all of the LSTM hidden state layers4. ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
174,
|
| 801 |
+
707,
|
| 802 |
+
825,
|
| 803 |
+
804
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 6
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "3.3.1 RESULTS ",
|
| 810 |
+
"text_level": 1,
|
| 811 |
+
"bbox": [
|
| 812 |
+
174,
|
| 813 |
+
820,
|
| 814 |
+
292,
|
| 815 |
+
834
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 6
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "On the CoNLL 2000 dataset, we find that our model outperforms Glove and is competitive with ELMo. For CoNLL 2012, an named entity dataset, we find Glove to actually be the top performer ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
176,
|
| 824 |
+
844,
|
| 825 |
+
821,
|
| 826 |
+
873
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 6
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "under some metrics while our model is far behind. These results indicate that DIORA is capturing syntax quite well, but is currently missing semantics. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
171,
|
| 835 |
+
103,
|
| 836 |
+
823,
|
| 837 |
+
132
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 7
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "table",
|
| 843 |
+
"img_path": "images/b81a20c6c9e4dc57be04ed63f822e5e3b3dba912b448007780cd65d779ce5786.jpg",
|
| 844 |
+
"table_caption": [],
|
| 845 |
+
"table_footnote": [
|
| 846 |
+
"Table 4: Dendogram purity, $\\mathrm { P @ 1 0 }$ , $\\mathrm { P } @ 1 0 0$ , and MAP for labeled chunks from CoNLL-2000 and CoNLL 2012 datasets. For both metrics, higher is better. The top value in each column is bolded, or italicized if it is better than our model. "
|
| 847 |
+
],
|
| 848 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">Dim</td><td colspan=\"4\">CoNLL 2000</td><td colspan=\"4\">CoNLL 2012</td></tr><tr><td>DP</td><td>P@10</td><td>P@100</td><td>MAP</td><td>DP</td><td>P@10</td><td>P@100</td><td>MAP</td></tr><tr><td>Random</td><td>300</td><td>0.425</td><td>0.41</td><td>0.40</td><td>0.34</td><td>0.16</td><td>0.15</td><td>0.14</td><td>0.13</td></tr><tr><td>Glove</td><td>300</td><td>0.521</td><td>0.89</td><td>0.74</td><td>0.53</td><td>0.392</td><td>0.82</td><td>0.65</td><td>0.47</td></tr><tr><td>ELMo-L1</td><td>4096</td><td>0.632</td><td>0.96</td><td>0.83</td><td>0.55</td><td>0.352</td><td>0.85</td><td>0.68</td><td>0.39</td></tr><tr><td>-L2</td><td>4096</td><td>0.545</td><td>0.94</td><td>0.79</td><td>0.57</td><td>0.301</td><td>0.83</td><td>0.67</td><td>0.39</td></tr><tr><td>- Concat</td><td>8192</td><td>0.576</td><td>0.95</td><td>0.78</td><td>0.58</td><td>0.308</td><td>0.84</td><td>0.68</td><td>0.40</td></tr><tr><td>- Avg</td><td>4096</td><td>0.618</td><td>0.97</td><td>0.84</td><td>0.67</td><td>0.369</td><td>0.87</td><td>0.73</td><td>0.46</td></tr><tr><td>DIORA-In</td><td>200</td><td>0.620</td><td>0.89</td><td>0.77</td><td>0.61</td><td>0.303</td><td>0.77</td><td>0.54</td><td>0.36</td></tr><tr><td>- Out</td><td>200</td><td>0.581</td><td>0.69</td><td>0.65</td><td>0.47</td><td>0.200</td><td>0.35</td><td>0.24</td><td>0.18</td></tr><tr><td>- In/Out</td><td>400</td><td>0.615</td><td>0.89</td><td>0.79</td><td>0.62</td><td>0.308</td><td>0.76</td><td>0.54</td><td>0.35</td></tr><tr><td>- In/Out Ext.</td><td>400</td><td>0.633</td><td>0.89</td><td>0.79</td><td>0.62</td><td>0.311</td><td>0.77</td><td>0.54</td><td>0.35</td></tr></table>",
|
| 849 |
+
"bbox": [
|
| 850 |
+
174,
|
| 851 |
+
145,
|
| 852 |
+
825,
|
| 853 |
+
351
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 7
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "3.4 QUALITATIVE RESULTS ",
|
| 860 |
+
"text_level": 1,
|
| 861 |
+
"bbox": [
|
| 862 |
+
176,
|
| 863 |
+
431,
|
| 864 |
+
379,
|
| 865 |
+
445
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 7
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "text",
|
| 871 |
+
"text": "We show example trees from PRPN-LM and DIORA in 3. ",
|
| 872 |
+
"bbox": [
|
| 873 |
+
176,
|
| 874 |
+
457,
|
| 875 |
+
555,
|
| 876 |
+
472
|
| 877 |
+
],
|
| 878 |
+
"page_idx": 7
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "text",
|
| 882 |
+
"text": "4 RELATED WORK ",
|
| 883 |
+
"text_level": 1,
|
| 884 |
+
"bbox": [
|
| 885 |
+
176,
|
| 886 |
+
491,
|
| 887 |
+
344,
|
| 888 |
+
507
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 7
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "Latent Tree Learning A brief survey of neural latent tree learning models was covered in Williams et al. (2018a). The first positive result for latent tree was shown in Htut et al. (2018), which used a language modeling objective. The model in Liue et al. (2018) uses an inside chart and an outside procedure to calculate marginal probabilities use to align spans between sentences in entailment. ",
|
| 895 |
+
"bbox": [
|
| 896 |
+
174,
|
| 897 |
+
523,
|
| 898 |
+
825,
|
| 899 |
+
579
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 7
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "Neural Inside-Outside Parsers The Inside-Outside Recursive Neural Network (IORNN) in Le and Zuidema (2014) is closest to ours and is a graph-based dependency parser that produces a $k$ -best list of parses, in contrast, DIORA produces the most likely parse given the learned the potential functions of the constituents. The Neural CRF Parser (Durrett and Klein, 2015), similar to DIORA, performs exact inference on the structure of a sentence, although requires a set of grammar rules and labeled parse trees during training. DIORA, like Liue et al. (2018), has a single grammar rule that applies to any pair of constituents and does not use structural supervision. ",
|
| 906 |
+
"bbox": [
|
| 907 |
+
174,
|
| 908 |
+
585,
|
| 909 |
+
825,
|
| 910 |
+
684
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 7
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "Unsupervised Parsing and Segmentation Unsupervised segmentation (also called chunking) from raw text dates back to Ponvert et al. (2011). Another paper by the same authors (Ponvert et al., 2010) only looked at parsing certain low-level constituents. Earlier grammar induction models were evaluated against a subset of the WSJ treebank filtered to sentences of length 10 after removing punctuation (Klein and Manning, 2002; 2004) while DIORA is evaluated against two much larger datasets for unsupervised parsing, including the full WSJ treebank. Unsupervised segmentation with across parallel corpora was performed in Das and Petrov (2011). The source language had segment labels, the target language did not, but there are mapped translations between the two languages. Cohen et al. (2011) achieved unsupervised segmentation for parallel corpora without using mapped translations. ",
|
| 917 |
+
"bbox": [
|
| 918 |
+
174,
|
| 919 |
+
690,
|
| 920 |
+
825,
|
| 921 |
+
829
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 7
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "5 CONCLUSION ",
|
| 928 |
+
"text_level": 1,
|
| 929 |
+
"bbox": [
|
| 930 |
+
176,
|
| 931 |
+
849,
|
| 932 |
+
318,
|
| 933 |
+
866
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 7
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"text": "In this work we presented DIORA, a completely unsupervised method for inducing syntactic trees and segmentations over text. We showed that an auto encoder language modeling objective on top of inside-outside representations of latent tree chart parsers allows us to effectively learn syntactic structure of language. In experiments on unsupervised parsing, chunking, and phrase representations we show our model is comparable to or outperforms current baselines, achieving the state-of-the-art performance on unsupervised parsing for the WSJ dataset. . ",
|
| 940 |
+
"bbox": [
|
| 941 |
+
176,
|
| 942 |
+
882,
|
| 943 |
+
823,
|
| 944 |
+
922
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 7
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "image",
|
| 950 |
+
"img_path": "images/30ed060157b9659f2730798dcded6e376d991f624ef5b49674f2de5662f86fe4.jpg",
|
| 951 |
+
"image_caption": [
|
| 952 |
+
"Figure 3: Pairs of example parses for the same sentence from two different models. For each pair, the top is the output of PRPN-LM and bottom was produced by DIORA. Bolden token pairs or spans indicate a parse error by PRPN that was correctly attached by DIORA. Some punctuation was removed for clarity of printed trees. "
|
| 953 |
+
],
|
| 954 |
+
"image_footnote": [],
|
| 955 |
+
"bbox": [
|
| 956 |
+
209,
|
| 957 |
+
94,
|
| 958 |
+
792,
|
| 959 |
+
498
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 8
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "",
|
| 966 |
+
"bbox": [
|
| 967 |
+
174,
|
| 968 |
+
601,
|
| 969 |
+
825,
|
| 970 |
+
642
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 8
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "Future work can improve the current method by training larger models over much larger corpora including other domains and languages. While the current model seems to focus primarily on syntax, extra unsupervised objectives or light supervision could be injected into the learning procedure to encourage a more thorough capturing of semantics. ",
|
| 977 |
+
"bbox": [
|
| 978 |
+
174,
|
| 979 |
+
650,
|
| 980 |
+
825,
|
| 981 |
+
705
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 8
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "REFERENCES ",
|
| 988 |
+
"text_level": 1,
|
| 989 |
+
"bbox": [
|
| 990 |
+
174,
|
| 991 |
+
729,
|
| 992 |
+
285,
|
| 993 |
+
744
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 8
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "Patrick Verga, David Belanger, Emma Strubell, Benjamin Roth, and Andrew McCallum. Multilingual relation extraction using compositional universal schema. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 886–896, San Diego, California, June 2016. Association for Computational Linguistics. URL http://www.aclweb.org/anthology/N16-1103. ",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
174,
|
| 1002 |
+
755,
|
| 1003 |
+
825,
|
| 1004 |
+
825
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 8
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "Emma Strubell, Patrick Verga, Daniel Andor, David Weiss, and Andrew McCallum. LinguisticallyInformed Self-Attention for Semantic Role Labeling. In Conference on Empirical Methods in Natural Language Processing (EMNLP), Brussels, Belgium, October 2018. ",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
174,
|
| 1013 |
+
838,
|
| 1014 |
+
821,
|
| 1015 |
+
881
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 8
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "Roee Aharoni and Yoav Goldberg. Towards string-to-tree neural machine translation. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, 2017. ",
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
173,
|
| 1024 |
+
895,
|
| 1025 |
+
823,
|
| 1026 |
+
924
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 8
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "text",
|
| 1032 |
+
"text": "Kai Sheng Tai, Richard Socher, and Christopher D. Manning. Improved semantic representations from tree-structured long short-term memory networks. In ACL, 2015. ",
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
171,
|
| 1035 |
+
103,
|
| 1036 |
+
823,
|
| 1037 |
+
132
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 9
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "Mitchell Marcus, Grace Kim, Mary Ann Marcinkiewicz, Robert MacIntyre, Ann Bies, Mark Ferguson, Karen Katz, and Britta Schasberger. The penn treebank: annotating predicate argument structure. In Proceedings of the workshop on Human Language Technology, pages 114–119. Association for Computational Linguistics, 1994. ",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
173,
|
| 1046 |
+
140,
|
| 1047 |
+
825,
|
| 1048 |
+
195
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 9
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "text",
|
| 1054 |
+
"text": "Phong Le and Willem Zuidema. The forest convolutional network: Compositional distributional semantics with a neural chart and without binarization. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 1155–1164, 2015. ",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
176,
|
| 1057 |
+
204,
|
| 1058 |
+
823,
|
| 1059 |
+
247
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 9
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "text",
|
| 1065 |
+
"text": "Dani Yogatama, Phil Blunsom, Chris Dyer, Edward Grefenstette, and Wang Ling. Learning to compose words into sentences with reinforcement learning. arXiv preprint arXiv:1611.09100, 2016. ",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
176,
|
| 1068 |
+
253,
|
| 1069 |
+
821,
|
| 1070 |
+
296
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 9
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "Jean Maillard, Stephen Clark, and Dani Yogatama. Jointly learning sentence embeddings and syntax with unsupervised tree-lstms. arXiv preprint arXiv:1705.09189, 2017. ",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
171,
|
| 1079 |
+
304,
|
| 1080 |
+
823,
|
| 1081 |
+
334
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 9
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "Jihun Choi, Kang Min Yoo, and Sang-goo Lee. Learning to compose task-specific tree structures. In In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, New Orleans, Louisiana, USA, February 2-7, 2018, 2018. ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
174,
|
| 1090 |
+
340,
|
| 1091 |
+
823,
|
| 1092 |
+
383
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 9
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "Adina Williams, Andrew Drozdov, and Samuel R Bowman. Do latent tree learning models identify meaningful structure in sentences? Transactions of the Association of Computational Linguistics, 6:253–267, 2018a. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
173,
|
| 1101 |
+
391,
|
| 1102 |
+
823,
|
| 1103 |
+
434
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 9
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "James K Baker. Trainable grammars for speech recognition. The Journal of the Acoustical Society of America, 65(S1):S132–S132, 1979. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
171,
|
| 1112 |
+
441,
|
| 1113 |
+
823,
|
| 1114 |
+
470
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 9
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "Karim Lari and Steve J Young. The estimation of stochastic context-free grammars using the insideoutside algorithm. Computer speech & language, 4(1):35–56, 1990. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
171,
|
| 1123 |
+
478,
|
| 1124 |
+
823,
|
| 1125 |
+
508
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 9
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "Yikang Shen, Zhouhan Lin, Chin-Wei Huang, and Aaron Courville. Neural language modeling by jointly learning syntax and lexicon. 2018. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
173,
|
| 1134 |
+
515,
|
| 1135 |
+
823,
|
| 1136 |
+
544
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 9
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "Phu Mon Htut, Kyunghyun Cho, and Samuel R Bowman. Grammar induction with neural language models: An unusual replication. In Conference on Empirical Methods in Natural Language Processing (EMNLP), Brussels, Belgium, October 2018. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
176,
|
| 1145 |
+
551,
|
| 1146 |
+
823,
|
| 1147 |
+
594
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 9
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "Tadao Kasami. An efficient recognition and syntax-analysis algorithm for context-free languages. Coordinated Science Laboratory Report no. R-257, 1966. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
169,
|
| 1156 |
+
602,
|
| 1157 |
+
821,
|
| 1158 |
+
631
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 9
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Daniel H Younger. Recognition and parsing of context-free languages in time n3. Information and control, 10(2):189–208, 1967. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
174,
|
| 1167 |
+
638,
|
| 1168 |
+
823,
|
| 1169 |
+
667
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 9
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "Pytorch Core Team. Pytorch: Tensors and dynamic neural networks in python with strong gpu acceleration. http://pytorch.org/, 2018. Accessed: 2018-09-26. ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
171,
|
| 1178 |
+
674,
|
| 1179 |
+
821,
|
| 1180 |
+
704
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 9
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "Adina Williams, Nikita Nangia, and Samuel Bowman. A broad-coverage challenge corpus for sentence understanding through inference. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 1112–1122. Association for Computational Linguistics, 2018b. URL http://aclweb.org/anthology/N18-1101. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
174,
|
| 1189 |
+
712,
|
| 1190 |
+
825,
|
| 1191 |
+
782
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 9
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "Christopher Manning, Mihai Surdeanu, John Bauer, Jenny Finkel, Steven Bethard, and David McClosky. The stanford corenlp natural language processing toolkit. In Proceedings of 52nd annual meeting of the association for computational linguistics: system demonstrations, pages 55–60, 2014. ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
174,
|
| 1200 |
+
790,
|
| 1201 |
+
825,
|
| 1202 |
+
844
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 9
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "Ari Kobren, Nicholas Monath, Akshay Krishnamurthy, and Andrew McCallum. A hierarchical algorithm for extreme clustering. In Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’17, pages 255–264, New York, NY, USA, 2017. ACM. ISBN 978-1-4503-4887-4. doi: 10.1145/3097983.3098079. URL http://doi.acm.org/10.1145/3097983.3098079. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
176,
|
| 1211 |
+
854,
|
| 1212 |
+
825,
|
| 1213 |
+
924
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 9
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "Matthew E. Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. In Proc. of NAACL, 2018a. ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
171,
|
| 1222 |
+
103,
|
| 1223 |
+
823,
|
| 1224 |
+
132
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 10
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "Matthew E Peters, Mark Neumann, Luke Zettlemoyer, and Wen-tau Yih. Dissecting contextual word embeddings: Architecture and representation. In Conference on Empirical Methods in Natural Language Processing (EMNLP), Brussels, Belgium, October 2018b. ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
174,
|
| 1233 |
+
140,
|
| 1234 |
+
823,
|
| 1235 |
+
184
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 10
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "Yang Liue, Matt Gardner, and Mirella Lapata. Structured alignment networks. In Conference on Empirical Methods in Natural Language Processing (EMNLP), Brussels, Belgium, October 2018. ",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
173,
|
| 1244 |
+
193,
|
| 1245 |
+
823,
|
| 1246 |
+
222
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 10
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "Phong Le and Willem Zuidema. The inside-outside recursive neural network model for dependency parsing. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pages 729–739, 2014. ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
176,
|
| 1255 |
+
229,
|
| 1256 |
+
823,
|
| 1257 |
+
272
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 10
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "Greg Durrett and Dan Klein. Neural crf parsing. In ACL, 2015. ",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
173,
|
| 1266 |
+
281,
|
| 1267 |
+
589,
|
| 1268 |
+
297
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 10
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "Elias Ponvert, Jason Baldridge, and Katrin Erk. Simple unsupervised grammar induction from raw text with cascaded finite state models. In ACL, 2011. ",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
174,
|
| 1277 |
+
306,
|
| 1278 |
+
823,
|
| 1279 |
+
334
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 10
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "Elias Ponvert, Jason Baldridge, and Katrin Erk. Simple unsupervised identification of low-level constituents. 2010 IEEE Fourth International Conference on Semantic Computing, pages 24–31, 2010. ",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
174,
|
| 1288 |
+
343,
|
| 1289 |
+
825,
|
| 1290 |
+
386
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 10
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "text",
|
| 1296 |
+
"text": "Dan Klein and Christopher D. Manning. A generative constituent-context model for improved grammar induction. In ACL, 2002. ",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
174,
|
| 1299 |
+
395,
|
| 1300 |
+
821,
|
| 1301 |
+
424
|
| 1302 |
+
],
|
| 1303 |
+
"page_idx": 10
|
| 1304 |
+
},
|
| 1305 |
+
{
|
| 1306 |
+
"type": "text",
|
| 1307 |
+
"text": "Dan Klein and Christopher D. Manning. Corpus-based induction of syntactic structure: Models of dependency and constituency. In ACL, 2004. ",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
174,
|
| 1310 |
+
433,
|
| 1311 |
+
821,
|
| 1312 |
+
462
|
| 1313 |
+
],
|
| 1314 |
+
"page_idx": 10
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"type": "text",
|
| 1318 |
+
"text": "Dipanjan Das and Slav Petrov. Unsupervised part-of-speech tagging with bilingual graph-based projections. In ACL, 2011. ",
|
| 1319 |
+
"bbox": [
|
| 1320 |
+
174,
|
| 1321 |
+
470,
|
| 1322 |
+
823,
|
| 1323 |
+
500
|
| 1324 |
+
],
|
| 1325 |
+
"page_idx": 10
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"type": "text",
|
| 1329 |
+
"text": "Shay B. Cohen, Dipanjan Das, and Noah A. Smith. Unsupervised structure prediction with nonparallel multilingual guidance. In EMNLP, 2011. ",
|
| 1330 |
+
"bbox": [
|
| 1331 |
+
173,
|
| 1332 |
+
508,
|
| 1333 |
+
821,
|
| 1334 |
+
537
|
| 1335 |
+
],
|
| 1336 |
+
"page_idx": 10
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"type": "text",
|
| 1340 |
+
"text": "Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pages 1532–1543, 2014. ",
|
| 1341 |
+
"bbox": [
|
| 1342 |
+
173,
|
| 1343 |
+
546,
|
| 1344 |
+
825,
|
| 1345 |
+
589
|
| 1346 |
+
],
|
| 1347 |
+
"page_idx": 10
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"type": "text",
|
| 1351 |
+
"text": "A APPENDIX ",
|
| 1352 |
+
"text_level": 1,
|
| 1353 |
+
"bbox": [
|
| 1354 |
+
176,
|
| 1355 |
+
102,
|
| 1356 |
+
297,
|
| 1357 |
+
117
|
| 1358 |
+
],
|
| 1359 |
+
"page_idx": 11
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "text",
|
| 1363 |
+
"text": "A.1 TRAINING DETAILS ",
|
| 1364 |
+
"text_level": 1,
|
| 1365 |
+
"bbox": [
|
| 1366 |
+
176,
|
| 1367 |
+
133,
|
| 1368 |
+
354,
|
| 1369 |
+
147
|
| 1370 |
+
],
|
| 1371 |
+
"page_idx": 11
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"type": "text",
|
| 1375 |
+
"text": "All DIORA experiments are trained with these settings unless otherwise specified: we use the ALLNLI corpus including only sentences with length less than 20, stochastic gradient descent with a batch size of 256, and the model dimension set to 200. The input sentences are embedded using the 300D 480B GloVe embeddings (Pennington et al., 2014) and are not updated during training. Sentences are grouped into batches with uniform sentence length. Each cell in the chart has its L2- norm set to 1. Early stopping is done using the reconstruction objective evaluated on a held-out set. When depending on Noise Contrastive Estimation (as is the case in the reconstruction objective), we sample 3 negative examples per positive example. ",
|
| 1376 |
+
"bbox": [
|
| 1377 |
+
174,
|
| 1378 |
+
160,
|
| 1379 |
+
825,
|
| 1380 |
+
271
|
| 1381 |
+
],
|
| 1382 |
+
"page_idx": 11
|
| 1383 |
+
}
|
| 1384 |
+
]
|
parse/train/HJeq43AqF7/HJeq43AqF7_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJeq43AqF7/HJeq43AqF7_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJzMATlAZ/SJzMATlAZ.md
ADDED
|
@@ -0,0 +1,331 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DEEP CONTINUOUS CLUSTERING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Clustering high-dimensional datasets is hard because interpoint distances become less informative in high-dimensional spaces. We present a clustering algorithm that performs nonlinear dimensionality reduction and clustering jointly. The data is embedded into a lower-dimensional space by a deep autoencoder. The autoencoder is optimized as part of the clustering process. The resulting network produces clustered data. The presented approach does not rely on prior knowledge of the number of ground-truth clusters. Joint nonlinear dimensionality reduction and clustering are formulated as optimization of a global continuous objective. We thus avoid discrete reconfigurations of the objective that characterize prior clustering algorithms. Experiments on datasets from multiple domains demonstrate that the presented algorithm outperforms state-of-the-art clustering schemes, including recent methods that use deep networks.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Clustering is a fundamental procedure in machine learning and data analysis. Well-known approaches include center-based methods and their generalizations (Banerjee et al., 2005; Teboulle, 2007), and spectral methods $\mathrm { N g }$ et al., 2001; von Luxburg, 2007). Despite decades of progress, reliable clustering of noisy high-dimensional datasets remains an open problem. High dimensionality poses a particular challenge because assumptions made by many algorithms break down in high-dimensional spaces (Ball, 1997; Beyer et al., 1999; Steinbach et al., 2004).
|
| 12 |
+
|
| 13 |
+
There are techniques that reduce the dimensionality of data by embedding it in a lower-dimensional space (van der Maaten et al., 2009). Such general techniques, based on preserving variance or dissimilarity, may not be optimal when the goal is to discover cluster structure. Dedicated algorithms have been developed that combine dimensionality reduction and clustering by fitting low-dimensional subspaces (Kriegel et al., 2009; Vidal, 2011). Such algorithms can achieve better results than pipelines that first apply generic dimensionality reduction and then cluster in the reduced space. However, frameworks such as subspace clustering and projected clustering operate on linear subspaces and are therefore limited in their ability to handle datasets that lie on nonlinear manifolds.
|
| 14 |
+
|
| 15 |
+
Recent approaches have sought to overcome this limitation by constructing a nonlinear embedding of the data into a low-dimensional space in which it is clustered (Dizaji et al., 2017; Xie et al., 2016; Yang et al., 2016; 2017). Ultimately, the goal is to perform nonlinear embedding and clustering jointly, such that the embedding is optimized to bring out the latent cluster structure. These works have achieved impressive results. Nevertheless, they are based on classic center-based, divergencebased, or hierarchical clustering formulations and thus inherit some limitations from these classic methods. In particular, these algorithms require setting the number of clusters a priori. And the optimization procedures they employ involve discrete reconfigurations of the objective, such as discrete reassignments of datapoints to centroids or merging of putative clusters in an agglomerative procedure. Thus it is challenging to integrate them with an optimization procedure that modifies the embedding of the data itself.
|
| 16 |
+
|
| 17 |
+
We seek a procedure for joint nonlinear embedding and clustering that overcomes some of the limitations of prior formulations. There are a number of characteristics we consider desirable. First, we wish to express the joint problem as optimization of a single continuous objective. Second, this optimization should be amenable to scalable gradient-based solvers such as modern variants of SGD. Third, the formulation should not require setting the number of clusters a priori, since this number is often not known in advance.
|
| 18 |
+
|
| 19 |
+
While any one of these desiderata can be fulfilled by some existing approaches, the combination is challenging. For example, it has long been known that the $k$ -means objective can be optimized by SGD (Bottou & Bengio, 1994). But this family of formulations requires positing the number of clusters $k$ in advance. Furthermore, the optimization is punctuated by discrete reassignments of datapoints to centroids, and is thus hard to integrate with continuous embedding of the data.
|
| 20 |
+
|
| 21 |
+
In this paper, we present a formulation for joint nonlinear embedding and clustering that possesses all of the aforementioned desirable characteristics. Our approach is rooted in Robust Continuous Clustering (RCC), a recent formulation of clustering as continuous optimization of a robust objective (Shah & Koltun, 2017). The basic RCC formulation has the characteristics we seek, such as a clear continuous objective and no prior knowledge of the number of clusters. However, integrating it with deep nonlinear embedding is still a challenge. For example, Shah & Koltun (2017) presented a formulation for joint linear embedding and clustering (RCC-DR), but this formulation relies on a complex alternating optimization scheme with linear least-squares subproblems, and does not apply to nonlinear embeddings.
|
| 22 |
+
|
| 23 |
+
We present an integration of the RCC objective with dimensionality reduction that is simpler and more direct than RCC-DR, while naturally handling deep nonlinear embeddings. Our formulation avoids alternating optimization and the introduction of auxiliary dual variables. A deep nonlinear embedding of the data into a low-dimensional space is optimized while the data is clustered in the reduced space. The optimization is expressed by a global continuous objective and conducted by standard gradient-based solvers.
|
| 24 |
+
|
| 25 |
+
The presented algorithm is evaluated on high-dimensional datasets of images and documents. Experiments demonstrate that our formulation performs on par or better than state-of-the-art clustering algorithms across all datasets. This includes recent approaches that utilize deep networks and rely on prior knowledge of the number of ground-truth clusters. Controlled experiments confirm that joint dimensionality reduction and clustering is more effective than a stagewise approach, and that the high accuracy achieved by the presented algorithm is stable across different dimensionalities of the latent space.
|
| 26 |
+
|
| 27 |
+
# 2 PRELIMINARIES
|
| 28 |
+
|
| 29 |
+
Let $\mathbf { X } = [ \mathbf { x } _ { 1 } , \dots , \mathbf { x } _ { N } ]$ be a set of points in $\mathbb { R } ^ { D }$ that must be clustered. Generic clustering algorithms that operate directly on $\mathbf { X }$ rely strongly on interpoint distances. When $D$ is high, these distances become less informative (Ball, 1997; Beyer et al., 1999). Hence most clustering algorithms do not operate effectively in high-dimensional spaces. To overcome this problem, we embed the data into a lower-dimensional space $\mathbb { R } ^ { d }$ . The embedding of the dataset into $\mathbb { R } ^ { \bar { d } }$ is denoted by $\mathbf { Y } = [ \mathbf { y } _ { 1 } , \dots , \mathbf { y } _ { N } ]$ The function that performs the embedding is denoted by $f _ { \pmb { \theta } } : \mathbb { R } ^ { D } \mathbb { R } ^ { d }$ . Thus $\mathbf { y } _ { i } = f _ { \pmb { \theta } } ( \mathbf { x } _ { i } )$ for all $i$
|
| 30 |
+
|
| 31 |
+
Our goal is to cluster the embedded dataset $\mathbf { Y }$ and to optimize the parameters $\pmb \theta$ of the embedding as part of the clustering process. This formulation presents an obvious difficulty: if the embedding $f _ { \theta }$ can be manipulated to assist the clustering of the embedded dataset $\mathbf { Y }$ , there is nothing that prevents $f _ { \theta }$ from distorting the dataset such that $\mathbf { Y }$ no longer respects the structure of the original data. We must therefore introduce a regularizer on $\pmb \theta$ that constrains the low-dimensional image $\mathbf { Y }$ with respect to the original high-dimensional dataset $\mathbf { X }$ . To this end, we also consider a reverse mapping $g _ { \omega } : \mathbb { R } ^ { d } \mathbb { R } ^ { D }$ . To constrain $f _ { \theta }$ to construct a faithful embedding of the original data, we require that the original data be reproducible from its low-dimensional image (Hinton $\&$ Salakhutdinov, 2006):
|
| 32 |
+
|
| 33 |
+
$$
|
| 34 |
+
\operatorname* { m i n i m i z e } \ \| \mathbf { X } - G _ { \omega } ( \mathbf { Y } ) \| _ { F } ^ { 2 } , \qquad \mathrm { w h e r e ~ } \mathbf { Y } = F _ { \theta } ( \mathbf { X } ) , \quad \Omega = \{ \theta , \omega \} .
|
| 35 |
+
$$
|
| 36 |
+
|
| 37 |
+
Here $F _ { \pmb \theta } ( \mathbf { X } ) = [ f _ { \pmb \theta } ( \mathbf { x } _ { 1 } ) , \dots , f _ { \pmb \theta } ( \mathbf { x } _ { N } ) ]$ , $G _ { \omega } ( { \mathbf Y } ) = [ g _ { \omega } ( { \mathbf y } _ { 1 } ) , \dots , g _ { \omega } ( { \mathbf y } _ { N } ) ]$ , and $\Vert \cdot \Vert _ { F }$ denotes the Frobenius norm.
|
| 38 |
+
|
| 39 |
+
Next, we must decide how the low-dimensional embedding $\mathbf { Y }$ will be clustered. A natural solution is to choose a classic clustering framework: a center-based method such as $k$ -means, a divergence-based formulation, or an agglomerative approach. These are the paths taken in recent work on combining nonlinear dimensionality reduction and clustering (Dizaji et al., 2017; Xie et al., 2016; Yang et al., 2016; 2017). However, the classic clustering algorithms have a discrete structure: associations between centroids and datapoints need to be recomputed or putative clusters need to be merged. In either case, the optimization process is punctuated by discrete reconfigurations. This makes it difficult to coordinate the clustering of $\mathbf { Y }$ with the optimization of the embedding parameters $\pmb { \Omega }$ that modify the dataset $\mathbf { Y }$ itself.
|
| 40 |
+
|
| 41 |
+
Since we must conduct clustering in tandem with continuous optimization of the embedding, we seek a clustering algorithm that is inherently continuous and performs clustering by optimizing a continuous objective that does not need to be updated during the optimization. The recent RCC formulation provides a suitable starting point (Shah & Koltun, 2017). The key idea of RCC is to introduce a set of representatives $\mathbf { Z } \in \mathbb { R } ^ { d \times N }$ and optimize the following nonconvex objective:
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
\operatorname* { m i n i m i z e } _ { \mathbf { z } } \ \frac { 1 } { 2 } \| \mathbf { Z } - \mathbf { Y } \| _ { F } ^ { 2 } + \frac { \lambda } { 2 } \sum _ { ( i , j ) \in \mathcal { E } } w _ { i , j } \rho ( \| \mathbf { z } _ { i } - \mathbf { z } _ { j } \| _ { 2 } ) ,
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
where $\rho$ is a redescending M-estimator, $\mathcal { E }$ is a graph connecting the datapoints, $\{ w _ { i , j } \}$ are appropriately defined weights, and $\lambda$ is a coefficient that balances the two objective terms. The first term in objective (2) constrains the representatives to remain near the corresponding datapoints. The second term pulls the representatives to each other, encouraging them to merge. This formulation has a number of advantages. First, it reduces clustering to optimization of a fixed continuous objective. Second, each datapoint has its own representative in $\mathbf { Z }$ and no prior knowledge of the number of clusters is needed. Third, the nonconvex robust estimator $\rho$ limits the influence of outliers.
|
| 48 |
+
|
| 49 |
+
To perform nonlinear embedding and clustering jointly, we wish to integrate the reconstruction objective (1) and the RCC objective (2). This idea is developed in the next section.
|
| 50 |
+
|
| 51 |
+
# 3 DEEP CONTINUOUS CLUSTERING
|
| 52 |
+
|
| 53 |
+
# 3.1 OBJECTIVE
|
| 54 |
+
|
| 55 |
+
The Deep Continuous Clustering (DCC) algorithm optimizes the following objective:
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\mathcal { L } ( \Omega , \mathbf { Z } ) = \frac { 1 } { D } \underbrace { \| \mathbf { X } - G _ { \omega } ( \mathbf { Y } ) \| _ { F } ^ { 2 } } _ { \mathrm { r e c o n s i r u c t i o n \ l o s s } } + \frac { 1 } { d } \left( \sum _ { i } \rho _ { 1 } \big ( \| \mathbf { z } _ { i } - \mathbf { y } _ { i } \| _ { 2 } ; \mu _ { 1 } \big ) + \lambda \sum _ { ( i , j ) \in \mathcal { E } } w _ { i , j } \rho _ { 2 } \big ( \| \mathbf { z } _ { i } - \mathbf { z } _ { j } \| _ { 2 } ; \mu _ { 2 } \big ) \right)
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
where $\mathbf { Y } = F _ { \pmb { \theta } } ( \mathbf { X } )$
|
| 62 |
+
|
| 63 |
+
This formulation bears some similarity to RCC-DR (Shah & Koltun, 2017), but differs in three major respects. First, RCC-DR only operates on a linear embedding defined by a sparse dictionary, while DCC optimizes a more expressive nonlinear embedding parameterized by $\pmb { \Omega }$ . Second, RCC-DR alternates between optimizing dictionary atoms, sparse codes, representatives $\mathbf { Z }$ , and dual line process variables; in contrast, DCC avoids duality altogether and optimizes the global objective directly. Third, DCC does not rely on closed-form or linear least-squares solutions to subproblems; rather, the joint objective is optimized by modern gradient-based solvers, which are commonly used for deep representation learning and are highly scalable.
|
| 64 |
+
|
| 65 |
+
We now discuss objective (3) and its optimization in more detail. The mappings $F _ { \theta }$ and $G _ { \omega }$ are performed by an autoencoder with fully-connected or convolutional layers and rectified linear units after each affine projection (Hinton & Salakhutdinov, 2006; Nair & Hinton, 2010). The graph $\mathcal { E }$ is constructed on $\mathbf { X }$ using the mutual kNN criterion (Brito et al., 1997), augmented by the minimum spanning tree of the kNN graph to ensure connectivity to all datapoints. The role of M-estimators $\rho _ { 1 }$ and $\rho _ { 2 }$ is to pull the representatives of a true underlying cluster into a single point, while disregarding spurious connections across clusters. For both estimators, we use scaled Geman-McClure functions (Geman & McClure, 1987):
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\rho _ { 1 } ( x ; \mu _ { 1 } ) = { \frac { \mu _ { 1 } x ^ { 2 } } { \mu _ { 1 } + x ^ { 2 } } } \quad { \mathrm { a n d } } \quad \rho _ { 2 } ( x ; \mu _ { 2 } ) = { \frac { \mu _ { 2 } x ^ { 2 } } { \mu _ { 2 } + x ^ { 2 } } } .
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
The parameters $\mu _ { 1 }$ and $\mu _ { 2 }$ control the radii of the convex basins of the estimators. The weights $w _ { i , j }$ are set to balance the contribution of each datapoint to the pairwise loss:
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
w _ { i , j } = { \frac { { \frac { 1 } { N } } \sum _ { k = 1 } ^ { n } n _ { k } } { \sqrt { n _ { i } n _ { j } } } } .
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
Here $n _ { i }$ is the degree of $\mathbf { z } _ { i }$ in the graph $\mathcal { E }$ . The numerator is simply the average degree. The parameter $\lambda$ balances the relative strength of the data loss and the pairwise loss. To balance the different terms, we set $\begin{array} { r } { \lambda = \frac { \| \mathbf { Y } \| _ { 2 } } { \| \mathbf { A } \| _ { 2 } } } \end{array}$ , where $\begin{array} { r } { \mathbf { A } = \sum _ { ( i , j ) \in \mathcal { E } } w _ { i , j } ( \mathbf { e } _ { i } - \mathbf { e } _ { j } ) ( \mathbf { e } _ { i } - \mathbf { e } _ { j } ) ^ { \top } } \end{array}$ and $\| \cdot \| _ { 2 }$ denotes the spectral norm. In contrast to RCC-DR, the parameter $\lambda$ need not be updated during the optimization.
|
| 78 |
+
|
| 79 |
+
# 3.2 OPTIMIZATION
|
| 80 |
+
|
| 81 |
+
Objective (3) can be optimized using scalable modern forms of stochastic gradient descent (SGD). Note that each $\mathbf { z } _ { i }$ is updated only via its corresponding loss and pairwise terms. On the other hand, the autoencoder parameters $\pmb { \Omega }$ are updated via all data samples. Thus in a single epoch, there is bound to be a difference between the update rates for $\mathbf { Z }$ and $\pmb { \Omega }$ . To deal with this imbalance, an adaptive solver such as Adam should be used (Kingma & Ba, 2015).
|
| 82 |
+
|
| 83 |
+
Another difficulty is that the graph $\mathcal { E }$ connects all datapoints such that a randomly sampled minibatch is likely to be connected by pairwise terms to datapoints outside the minibatch. In other words, the objective (3), and more specifically the pairwise loss, does not trivially decompose over datapoints. This requires some care in the construction of minibatches. Instead of sampling datapoints, we sample subsets of edges from $\mathcal { E }$ . The corresponding minibatch $\boldsymbol { B }$ is defined by all nodes incident to the sampled edges. However, if we simply restrict the objective (3) to the minibatch and take a gradient step, the reconstruction and data terms will be given additional weight since the same datapoint can participate in different minibatches, once for each incident edge. To maintain balance between the terms, we must weigh the contribution of each datapoint in the minibatch. The rebalanced minibatch loss is given by
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\hat { \mathbf { \xi } } _ { B } ( \mathbf { \Omega } , \mathbf { Z } ) = \frac { 1 } { | B | } \sum _ { i \in B } w _ { i } \left( \frac { \| \mathbf { x } _ { i } - g _ { \omega } ( \mathbf { y } _ { i } ) \| _ { 2 } ^ { 2 } } { D } + \frac { \rho _ { 1 } \left( \left\| \mathbf { z } _ { i } - \mathbf { y } _ { i } \right\| _ { 2 } \right) } { d } \right) + \frac { \lambda } { | B | } \sum _ { ( i , j ) \in \mathcal { E } _ { B } } w _ { i , j } \rho _ { 2 } \left( \left\| \mathbf { z } _ { i } - \mathbf { z } _ { j } \right\| _ { 2 } \right)
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where $\mathbf { y } _ { i } = f _ { \pmb { \theta } } ( \mathbf { x } _ { i } ) \quad \forall i \in \pmb { B }$ .
|
| 90 |
+
|
| 91 |
+
Here $\begin{array} { r } { w _ { i } = \frac { n _ { i } ^ { \mathtt { B } } } { n _ { i } } } \end{array}$ , where $n _ { i } ^ { B }$ is the number of edges connected to the $i ^ { \mathrm { t h } }$ node in the subgraph $\mathcal { E } _ { B }$
|
| 92 |
+
|
| 93 |
+
The gradients of $\mathcal { L } _ { B }$ with respect to the low-dimensional embedding $\mathbf { Y }$ and the representatives $\mathbf { Z }$ are given by
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\begin{array} { r l } & { \displaystyle \frac { \partial \mathcal { L } _ { \mathcal { B } } } { \partial \mathbf { y } _ { i } } = \frac { 1 } { | \mathcal { B } | } \left( \frac { w _ { i } \mu _ { 1 } ^ { 2 } ( \mathbf { y } _ { i } - \mathbf { z } _ { i } ) } { d ( \mu _ { 1 } + \| \mathbf { z } _ { i } - \mathbf { y } _ { i } \| _ { 2 } ^ { 2 } ) ^ { 2 } } + \frac { 2 w _ { i } ( g _ { \omega } ( \mathbf { y } _ { i } ) - \mathbf { x } _ { i } ) } { D } \frac { \partial g _ { \omega } ( \mathbf { y } _ { i } ) } { \partial \mathbf { y } _ { i } } \right) } \\ & { \displaystyle \frac { \partial \mathcal { L } _ { \mathcal { B } } } { \partial \mathbf { z } _ { i } } = \frac { 1 } { | \mathcal { B } | } \left( \frac { w _ { i } \mu _ { 1 } ^ { 2 } ( \mathbf { z } _ { i } - \mathbf { y } _ { i } ) } { d ( \mu _ { 1 } + \| \mathbf { z } _ { i } - \mathbf { y } _ { i } \| _ { 2 } ^ { 2 } ) ^ { 2 } } + { \lambda } \mu _ { 2 } ^ { 2 } \sum _ { ( i , j ) \in \mathcal { E } _ { \mathcal { B } } } \frac { w _ { i , j } ( \mathbf { z } _ { i } - \mathbf { z } _ { j } ) } { ( \mu _ { 2 } + \| \mathbf { z } _ { i } - \mathbf { z } _ { j } \| _ { 2 } ^ { 2 } ) ^ { 2 } } \right) } \end{array}
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
These gradients are propagated to the parameters $\pmb { \Omega }$ .
|
| 100 |
+
|
| 101 |
+
# 3.3 INITIALIZATION, CONTINUATION AND STOPPING CRITERION
|
| 102 |
+
|
| 103 |
+
Initialization. The embedding parameters $\pmb { \Omega }$ are initialized using the stacked denoising autoencoder (SDAE) framework (Vincent et al., 2010). Each pair of corresponding encoding and decoding layers is pretrained in turn. Noise is introduced during pretraining by adding dropout to the input of each affine projection (Srivastava et al., 2014). Encoder-decoder layer pairs are pretrained sequentially, from the outer to the inner. After all layer pairs are pretrained, the entire SDAE is fine-tuned end-to-end using the reconstruction loss. This completes the initialization of the embedding parameters $\pmb { \Omega }$ . These parameters are used to initialize the representatives $\mathbf { Z }$ , which are set to $\mathbf { Z } = \mathbf { Y } = F _ { \pmb { \theta } } ( \mathbf { X } )$ .
|
| 104 |
+
|
| 105 |
+
Continuation. The price of robustness is the nonconvexity of the estimators $\rho _ { 1 }$ and $\rho _ { 2 }$ . One way to alleviate the dangers of nonconvexity is to use a continuation scheme that gradually sharpens the estimator (Blake & Zisserman, 1987; Mobahi & Fisher III, 2015). Following Shah & Koltun (2017), we initially set $\mu _ { i }$ to a high value that makes the estimator $\rho _ { i }$ effectively convex in the relevant range. The value of $\mu _ { i }$ is decreased on a regular schedule until a threshold $\frac { \delta _ { i } } { 2 }$ is reached. We set $\delta _ { 1 }$ to the mean of the distance of each $\mathbf { y } _ { i }$ to the mean of $\mathbf { Y }$ , and $\delta _ { 2 }$ to the mean of the bottom $1 \%$ of the pairwise distances in $\mathcal { E }$ at initialization.
|
| 106 |
+
|
| 107 |
+
# Algorithm 1 Deep Continuous Clustering
|
| 108 |
+
|
| 109 |
+
1: input: Data samples $\{ { \bf { x } } _ { i } \} _ { i }$ .
|
| 110 |
+
2: output: Cluster assignment $\{ c _ { i } \} _ { i }$ .
|
| 111 |
+
3: Construct a graph $\mathcal { E }$ on $\mathbf { X }$ .
|
| 112 |
+
4: Initialize $\pmb { \Omega }$ and $\mathbf { Z }$ .
|
| 113 |
+
5: Precompute $\lambda , w _ { i , j } , \delta _ { 1 } , \delta _ { 2 }$ . Initialize $\mu _ { 1 } , \mu _ { 2 }$ .
|
| 114 |
+
6: while stopping criterion not met do
|
| 115 |
+
7: Every iteration, construct a minibatch $\boldsymbol { B }$ defined by a sample of edges $\mathcal { E } _ { B }$ .
|
| 116 |
+
8: Update $\{ \mathbf { z } _ { i } \} _ { i \in B }$ and $\pmb { \Omega }$ .
|
| 117 |
+
9: Every $M$ epochs, update $\begin{array} { r } { \mu _ { i } = \operatorname* { m a x } \left( \frac { \mu _ { i } } { 2 } , \frac { \delta _ { i } } { 2 } \right) } \end{array}$ .
|
| 118 |
+
10: end while
|
| 119 |
+
11: Construct graph $\mathcal { G } = ( \nu , \mathcal { F } )$ with $f _ { i , j } = 1$ if $\| \mathbf { z } _ { i } ^ { * } - \mathbf { z } _ { j } ^ { * } \| _ { 2 } < \delta _ { 2 }$ .
|
| 120 |
+
12: Output clusters given by the connected components of $\mathcal { G }$ .
|
| 121 |
+
|
| 122 |
+
Stopping criterion. Once the continuation scheme is completed, DCC monitors the computed clustering. At the end of every epoch, a graph $\mathcal { G } = ( \nu , \mathcal { F } )$ is constructed such that $f _ { i , j } = 1$ if $\| \mathbf { z } _ { i } - \mathbf { z } _ { j } \| < \delta _ { 2 }$ . The cluster assignment is given by the connected components of $\mathcal { G }$ . DCC compares this cluster assignment to the one produced at the end of the preceding epoch. If less than $0 . 1 \%$ of the edges in $\mathcal { E }$ changed from intercluster to intracluster or vice versa, DCC outputs the computed clustering and terminates.
|
| 123 |
+
|
| 124 |
+
Complete algorithm. The complete algorithm is summarized in Algorithm 1.
|
| 125 |
+
|
| 126 |
+
# 4 EXPERIMENTS
|
| 127 |
+
|
| 128 |
+
# 4.1 DATASETS
|
| 129 |
+
|
| 130 |
+
We conduct experiments on six high-dimensional datasets, which cover domains such as handwritten digits, objects, faces, and text. We used datasets from Shah & Koltun (2017) that had dimensionality above 100. The datasets are further described in the appendix. All features are normalized to the range [0, 1].
|
| 131 |
+
|
| 132 |
+
Note that DCC is an unsupervised learning algorithm. Unlabelled data is embedded and clustered with no supervision. There is thus no train/test split.
|
| 133 |
+
|
| 134 |
+
# 4.2 BASELINES
|
| 135 |
+
|
| 136 |
+
The presented DCC algorithm is compared to 12 baselines, which include both classic and deep clustering algorithms. The baselines include $k$ -means $^ { + + }$ (Arthur & Vassilvitskii, 2007), DBSCAN (Ester et al., 1996), two variants of agglomerative clustering: Ward (AC-W) and graph degree linkage (GDL) (Zhang et al., 2012), two variants of spectral clustering: spectral embedded clustering (SEC) (Nie et al., 2011) and local discriminant models and global integration (LDMGI) (Yang et al., 2010), and two variant of robust continuous clustering: RCC and RCC-DR (Shah & Koltun, 2017).
|
| 137 |
+
|
| 138 |
+
The deep clustering baselines include four recent approaches that share our basic motivation and use deep networks for clustering: deep embedded clustering (DEC) (Xie et al., 2016), joint unsupervised learning (JULE) (Yang et al., 2016), the deep clustering network (DCN) (Yang et al., 2017), and deep embedded regularized clustering (DEPICT) (Dizaji et al., 2017). These are strong baselines that use deep autoencoders, the same network structure as our approach (DCC). The key difference is in the loss function and the consequent optimization procedure. The prior formulations are built on KLdivergence clustering, agglomerative clustering, and $k$ -means, which involve discrete reconfiguration of the objective during the optimization and rely on knowledge of the number of ground-truth clusters either in the design of network architecture, during the embedding optimization, or in post-processing. In contrast, DCC optimizes a robust continuous loss and does not rely on prior knowledge of the number of clusters.
|
| 139 |
+
|
| 140 |
+
# 4.3 IMPLEMENTATION
|
| 141 |
+
|
| 142 |
+
We report experimental results for two different autoencoder architectures: one with only fullyconnected layers and one with convolutional layers. This is motivated by prior deep clustering algorithms, some of which used fully-connected architectures and some convolutional.
|
| 143 |
+
|
| 144 |
+
For fully-connected autoencoders, we use the same autoencoder architecture as DEC (Xie et al., 2016). Specifically, for all experiments on all datasets, we use an autoencoder with the following dimensions: D–500–500–2000–d–2000–500–500–D. This autoencoder architecture follows parametric t-SNE (van der Maaten, 2009).
|
| 145 |
+
|
| 146 |
+
For convolutional autoencoders, the network architecture is modeled on JULE (Yang et al., 2016). The architecture is specified in the appendix. As in Yang et al. (2016), the number of layers depends on image resolution in the dataset and it is set such that the output resolution of the encoder is about $4 \times 4$ .
|
| 147 |
+
|
| 148 |
+
In both architectures and for all datasets, the dimensionality of the reduced space is set to $d = 1 0$ . (It is only varied for controlled experiments that analyze stability with respect to $d$ .) No dataset-specific hyperparameter tuning was done. For autoencoder initialization, a minibatch size of 256 and dropout probability of 0.2 are used. SDAE pretraining and finetuning start with a learning rate of 0.1, which is decreased by a factor of 10 every 80 epochs. Each layer is pretrained for 200 epochs. Finetuning of the whole SDAE is performed for 400 epochs. For the fully-connected SDAE, the learning rates are scaled in accordance with the dimensionality of the dataset.
|
| 149 |
+
|
| 150 |
+
For m-kNN graph construction, the nearest-neighbor parameter $k$ is set to 10 and the cosine distance metric is used. The Adam solver is used with its default learning rate of 0.001 and momentum 0.99. Minibatches are constructed by sampling 128 edges. DCC was implemented using the PyTorch library.
|
| 151 |
+
|
| 152 |
+
For the baselines, we use publicly available implementations. For $k$ -means $^ { + + }$ , DBSCAN and ACW, we use the implementations in the SciPy library and report the best results across ten random restarts. For a number of baselines, we performed hyperparameter search to maximize their reported performance. For DBSCAN, we searched over values of $E p s$ , for LDMGI we searched over values of the regularization constant $\lambda$ , for SEC we searched over values of the parameter $\mu$ , and for GDL we tuned the graph construction parameter $a$ .
|
| 153 |
+
|
| 154 |
+
The DCN approach uses a different network architecture for each dataset. Wherever possible, we report results using their dataset-specific architecture. For YTF, Coil100, and YaleB, we use their reference architecture for MNIST.
|
| 155 |
+
|
| 156 |
+
# 4.4 MEASURES
|
| 157 |
+
|
| 158 |
+
Common measures of clustering accuracy include normalized mutual information (NMI) (Strehl & Ghosh, 2002) and clustering accuracy (ACC). However, NMI is known to be biased in favor of fine-grained partitions and ACC is also biased on imbalanced datasets (Vinh et al., 2010). To overcome these biases, we use adjusted mutual information (AMI) (Vinh et al., 2010), defined as
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
\mathrm { A M I } ( \mathbf { c } , \hat { \mathbf { c } } ) = \frac { \mathbf { M } \mathrm { I } ( \mathbf { c } , \hat { \mathbf { c } } ) - E [ \mathbf { M } \mathrm { I } ( \mathbf { c } , \hat { \mathbf { c } } ) ] } { \sqrt { \mathbf { H } ( \mathbf { c } ) \mathbf { H } ( \hat { \mathbf { c } } ) } - E [ \mathbf { M } \mathrm { I } ( \mathbf { c } , \hat { \mathbf { c } } ) ] } .
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+
Here $\mathrm { H } ( \cdot )$ is the entropy, $\operatorname { M I } ( \cdot , \cdot )$ is the mutual information, and c and cˆ are the two partitions being compared. AMI lies in a range $[ 0 , 1 ]$ . Higher is better. For completeness, results according to ACC are reported in the appendix.
|
| 165 |
+
|
| 166 |
+
# 4.5 RESULTS
|
| 167 |
+
|
| 168 |
+
The results are summarized in Table 1. Among deep clustering methods that use fully-connected networks, DCN and DEC are not as accurate as fully-connected DCC and are also less consistent: the performance of DEC drops on the high-dimensional image datasets, while DCN is far behind on MNIST and YaleB. Among deep clustering methods that use convolutional networks, the performance of DEPICT drops on COIL100 and YTF, while JULE is far behind on YTF. The GDL algorithm failed to scale to the full MNIST dataset and the corresponding measurement is marked as $\mathrm { \dot { \Omega } n / a \Omega ^ { \prime } }$ .
|
| 169 |
+
|
| 170 |
+
<table><tr><td>Algorithm</td><td>MNIST</td><td>Coil100</td><td>YTF</td><td>YaleB</td><td>Reuters</td><td>RCV1</td></tr><tr><td>k-means++</td><td>0.500</td><td>0.803</td><td>0.783</td><td>0.615</td><td>0.516</td><td>0.355</td></tr><tr><td>AC-W</td><td>0.679</td><td>0.853</td><td>0.801</td><td>0.767</td><td>0.471</td><td>0.364</td></tr><tr><td>DBSCAN</td><td>0.000</td><td>0.399</td><td>0.739</td><td>0.456</td><td>0.011</td><td>0.014</td></tr><tr><td>SEC</td><td>0.469</td><td>0.849</td><td>0.745</td><td>0.849</td><td>0.498</td><td>0.069</td></tr><tr><td>LDMGI</td><td>0.761</td><td>0.888</td><td>0.518</td><td>0.945</td><td>0.523</td><td>0.382</td></tr><tr><td>GDL</td><td>n/a</td><td>0.958</td><td>0.655</td><td>0.924</td><td>0.401</td><td>0.020</td></tr><tr><td>RCC</td><td>0.893</td><td>0.957</td><td>0.836</td><td>0.975</td><td>0.556</td><td>0.138</td></tr><tr><td>RCC-DR</td><td>0.828</td><td>0.957</td><td>0.874</td><td>0.974</td><td>0.553</td><td>0.442</td></tr><tr><td colspan="7">Fully-connected</td></tr><tr><td>DCN</td><td>0.570</td><td>0.810</td><td>0.790</td><td>0.590</td><td>0.430</td><td>0.470</td></tr><tr><td>DEC</td><td>0.840</td><td>0.611</td><td>0.807</td><td>0.000</td><td>0.397</td><td>0.500</td></tr><tr><td>DCC</td><td>0.912</td><td>0.952</td><td>0.877</td><td>0.955</td><td>0.572</td><td>0.495</td></tr><tr><td colspan="7">Convolutional</td></tr><tr><td>JULE</td><td>0.900</td><td>0.979</td><td>0.574</td><td>0.990</td><td></td><td></td></tr><tr><td>DEPICT</td><td>0.919</td><td>0.667</td><td>0.785</td><td>0.989</td><td></td><td></td></tr><tr><td>DCC</td><td>0.913</td><td>0.962</td><td>0.903</td><td>0.985</td><td></td><td></td></tr></table>
|
| 171 |
+
|
| 172 |
+
Table 1: Clustering accuracy of DCC and 12 baselines, measured by AMI. Higher is better. Methods that do no use deep networks are listed first, followed by deep clustering algorithms that use fullyconnected autoencoders (including the fully-connected configuration of DCC) and deep clustering algorithms that use convolutional autoencoders (including the convolutional configuration of DCC). Results that are within $1 \%$ of the highest accuracy achieved by any method are highlighted in bold. DCC performs on par or better than prior deep clustering formulations, without relying on a priori knowledge of the number of ground-truth clusters.
|
| 173 |
+
|
| 174 |
+
# 5 ANALYSIS
|
| 175 |
+
|
| 176 |
+
Importance of joint optimization. We now analyze the importance of performing dimensionality reduction and clustering jointly, versus performing dimensionality reduction and then clustering the embedded data. To this end, we use the same SDAE architecture and training procedure as fully-connected DCC. We optimize the autoencoder but do not optimize the full DCC objective. This yields a standard nonlinear embedding, using the same autoencoder that is used by DCC, into a space with the same reduced dimensionality $d$ . In this space, we apply a number of clustering algorithms: $k$ -means $^ { + + }$ , AC-W, DBSCAN, SEC, LDMGI, GDL, and RCC. The results are shown in Table 2 (top).
|
| 177 |
+
|
| 178 |
+
These results should be compared to results reported in Table 1. The comparison shows that the accuracy of the baseline algorithms benefits from dimensionality reduction. However, in all cases their accuracy is still lower than that attained by DCC using joint optimization. Furthermore, although RCC and DCC share the same underlying nearest-neighbor graph construction and a similar clustering loss, the performance of DCC far surpasses that achieved by stagewise SDAE embedding followed by RCC. Note also that the relative performance of most baselines drops on Coil100 and YaleB. We hypothesize that the fully-connected SDAE is limited in its ability to discover a good low-dimensional embedding for very high-dimensional image datasets (tens of thousands of dimensions for Coil100 and YaleB).
|
| 179 |
+
|
| 180 |
+
Next, we show the performance of the same clustering algorithms when they are applied in the reduced space produced by DCC. These results are reported in Table 2 (bottom). In comparison to Table 2 (top), the performance of all algorithms improves significantly and some results are now on par or better than the results of DCC as reported in Table 1. The improvement for $k$ -means $^ { + + }$ Ward, and DBSCAN is particularly striking. This indicates that the performance of many clustering algorithms can be improved by first optimizing a low-dimensional embedding using DCC and then clustering in the learned embedding space.
|
| 181 |
+
|
| 182 |
+
<table><tr><td>Dataset</td><td>k-means++</td><td>AC-W</td><td>DBSCAN</td><td>SEC</td><td>LDMGI</td><td>GDL</td><td>RCC</td><td>DCC</td></tr><tr><td colspan="9">Clustering in a reduced space learned by SDAE</td></tr><tr><td>MNIST</td><td>0.669</td><td>0.784</td><td>0.115</td><td>n/a</td><td>0.828</td><td>n/a</td><td>0.881</td><td>0.912</td></tr><tr><td>Coil100</td><td>0.333</td><td>0.336</td><td>0.170</td><td>0.384</td><td>0.318</td><td>0.335</td><td>0.589</td><td>0.952</td></tr><tr><td>YTF</td><td>0.764</td><td>0.831</td><td>0.595</td><td>0.527</td><td>0.612</td><td>0.699</td><td>0.827</td><td>0.877</td></tr><tr><td>YaleB</td><td>0.673</td><td>0.688</td><td>0.503</td><td>0.493</td><td>0.676</td><td>0.742</td><td>0.812</td><td>0.955</td></tr><tr><td>Reuters</td><td>0.501</td><td>0.494</td><td>0.042</td><td>0.435</td><td>0.517</td><td>0.488</td><td>0.542</td><td>0.572</td></tr><tr><td>RCV1</td><td>0.454</td><td>0.430</td><td>0.075</td><td>0.442</td><td>0.060</td><td>0.055</td><td>0.410</td><td>0.495</td></tr><tr><td colspan="9">Clustering in a reduced space learned by DCC</td></tr><tr><td>MNIST</td><td>0.880</td><td>0.883</td><td>0.890</td><td>n/a</td><td>0.868</td><td>n/a</td><td>0.912</td><td>0.912</td></tr><tr><td>Coil100</td><td>0.947</td><td>0.947</td><td>0.569</td><td>0.604</td><td>0.919</td><td>0.915</td><td>0.891</td><td>0.952</td></tr><tr><td>YTF</td><td>0.845</td><td>0.841</td><td>0.896</td><td>0.586</td><td>0.762</td><td>0.658</td><td>0.879</td><td>0.877</td></tr><tr><td>YaleB</td><td>0.811</td><td>0.809</td><td>0.809</td><td>0.584</td><td>0.815</td><td>0.660</td><td>0.814</td><td>0.955</td></tr><tr><td>Reuters</td><td>0.553</td><td>0.554</td><td>0.560</td><td>0.479</td><td>0.586</td><td>0.401</td><td>0.581</td><td>0.572</td></tr><tr><td>RCV1</td><td>0.536</td><td>0.472</td><td>0.496</td><td>0.452</td><td>0.178</td><td>0.326</td><td>0.474</td><td>0.495</td></tr></table>
|
| 183 |
+
|
| 184 |
+
Table 2: Importance of joint optimization. This table shows the accuracy (AMI) achieved by running prior clustering algorithms on a low-dimensional embedding of the data. For reference, DCC results from Table 1 are also listed. Top: The embedding is performed using the same autoencoder architecture as used by fully-connected DCC, into the same target space. However, dimensionality reduction and clustering are performed separately. Clustering accuracy is much lower than the accuracy achieved by DCC. Bottom: Here clustering is performed in the reduced space discovered by DCC. The performance of all clustering algorithms improves significantly.
|
| 185 |
+
|
| 186 |
+
Visualization. A visualization is provided in Figure 1. Here we used Barnes-Hut t-SNE (van der Maaten & Hinton, 2008; van der Maaten, 2014) to visualize a randomly sampled subset of 10K datapoints from the MNIST dataset. We show the original dataset, the dataset embedded by the SDAE into $\mathbb { R } ^ { d }$ (optimized for dimensionality reduction), and the embedding into $\mathbb { R } ^ { d }$ produced by DCC. As shown in the figure, the embedding produced by DCC is characterized by well-defined, clearly separated clusters. The clusters strongly correspond to the ground-truth classes (coded by color in the figure), but were discovered with no supervision.
|
| 187 |
+
|
| 188 |
+

|
| 189 |
+
Figure 1: Effect of joint dimensionality reduction and clustering on the embedding. (a) A randomly sampled subset of 10K points from the MNIST dataset, visualized using t-SNE. (b) An embedding of these points into $\mathbb { R } ^ { d }$ , performed by an SDAE that is optimized for dimensionality reduction. (c) An embedding of the same points by the same network, optimized with the DCC objective. When optimized for joint dimensionality reduction and clustering, the network produces an embedding with clearly separated clusters. Best viewed in color.
|
| 190 |
+
|
| 191 |
+
Robustness to dimensionality of the latent space. Next we study the robustness of DCC to the dimensionality $d$ of the latent space. For this experiment, we consider fully-connected DCC. We vary $d$ between 5 and 60 and measure AMI on the MNIST and Reuters datasets. For comparison, we report the performance of DEC, which uses the same autoencoder architecture, as well as the accuracy attained by running $k$ -means $^ { + + }$ on the output of the SDAE, optimized for dimensionality reduction. The results are shown in Figure 2.
|
| 192 |
+
|
| 193 |
+

|
| 194 |
+
Figure 2: Robustness to dimensionality of the latent space. Clustering accuracy (AMI) as a function of the dimensionality $d$ . Best viewed in color.
|
| 195 |
+
|
| 196 |
+
The results yield two conclusions. First, the accuracy of DCC, DEC, and $\mathrm { S D A E } { + } k$ -means gradually decreases as the dimensionality $d$ increases. This supports the common view that clustering becomes progressively harder as the dimensionality of the data increases. Second, the results demonstrate that DCC is more robust to increased dimensionality than DEC and SDAE. For example, on MNIST, as the dimensionality $d$ changes from 5 to 60, the accuracy of DEC and SDAE drops by $28 \%$ and $3 5 \%$ , respectively, while the accuracy of DCC decreases by only $9 \%$ . When $d = 6 0$ , the accuracy attained by DCC is higher than the accuracy attained by DEC and SDAE by $27 \%$ and $40 \%$ , respectively.
|
| 197 |
+
|
| 198 |
+
# 6 CONCLUSION
|
| 199 |
+
|
| 200 |
+
We have presented a clustering algorithm that combines nonlinear dimensionality reduction and clustering. Dimensionality reduction is performed by a deep network that embeds the data into a lower-dimensional space. The embedding is optimized as part of the clustering process and the resulting network produces clustered data. The presented algorithm does not rely on a priori knowledge of the number of ground-truth clusters. Nonlinear dimensionality reduction and clustering are performed by optimizing a global continuous objective using scalable gradient-based solvers.
|
| 201 |
+
|
| 202 |
+
# REFERENCES
|
| 203 |
+
|
| 204 |
+
David Arthur and Sergei Vassilvitskii. k-means $^ { + + }$ : The advantages of careful seeding. In Symposium on Discrete Algorithms (SODA), 2007.
|
| 205 |
+
|
| 206 |
+
Keith Ball. An elementary introduction to modern convex geometry. In Flavors of Geometry. 1997.
|
| 207 |
+
|
| 208 |
+
Arindam Banerjee, Srujana Merugu, Inderjit S. Dhillon, and Joydeep Ghosh. Clustering with Bregman divergences. Journal of Machine Learning Research (JMLR), 6, 2005.
|
| 209 |
+
|
| 210 |
+
Kevin S. Beyer, Jonathan Goldstein, Raghu Ramakrishnan, and Uri Shaft. When is “nearest neighbor” meaningful? In International Conference on Database Theory (ICDT), 1999.
|
| 211 |
+
|
| 212 |
+
Andrew Blake and Andrew Zisserman. Visual Reconstruction. MIT Press, 1987.
|
| 213 |
+
|
| 214 |
+
Leon Bottou and Yoshua Bengio. Convergence properties of the´ $\mathbf { k }$ -means algorithms. In Neural Information Processing Systems (NIPS), 1994.
|
| 215 |
+
|
| 216 |
+
M.R. Brito, E.L. Chavez, A.J. Quiroz, and J.E. Yukich. Connectivity of the mutual k-nearest-neighbor ´ graph in clustering and outlier detection. Statistics & Probability Letters, 35, 1997.
|
| 217 |
+
|
| 218 |
+
Kamran Ghasedi Dizaji, Amirhossein Herandi, Cheng Deng, Weidong Cai, and Heng Huang. Deep clustering via joint convolutional autoencoder embedding and relative entropy minimization. In International Conference on Computer Vision (ICCV), 2017.
|
| 219 |
+
|
| 220 |
+
Martin Ester, Hans-Peter Kriegel, Jorg Sander, and Xiaowei Xu. A density-based algorithm for ¨ discovering clusters in large spatial databases with noise. In Knowledge Discovery and Data Mining (KDD), 1996.
|
| 221 |
+
|
| 222 |
+
Stuart Geman and Donald E. McClure. Statistical methods for tomographic image reconstruction. Bulletin of the International Statistical Institute, 52, 1987.
|
| 223 |
+
|
| 224 |
+
Athinodoros S. Georghiades, Peter N. Belhumeur, and David J. Kriegman. From few to many: Illumination cone models for face recognition under variable lighting and pose. Pattern Analysis and Machine Intelligence (PAMI), 23(6), 2001.
|
| 225 |
+
|
| 226 |
+
Geoffrey E. Hinton and Ruslan Salakhutdinov. Reducing the dimensionality of data with neural networks. Science, 313(5786), 2006.
|
| 227 |
+
|
| 228 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning (ICML), 2015.
|
| 229 |
+
|
| 230 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.
|
| 231 |
+
|
| 232 |
+
Hans-Peter Kriegel, Peer Kroger, and Arthur Zimek. Clustering high-dimensional data: A survey on ¨ subspace clustering, pattern-based clustering, and correlation clustering. ACM Transactions on Knowledge Discovery from Data, 3(1), 2009.
|
| 233 |
+
|
| 234 |
+
Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11), 1998.
|
| 235 |
+
|
| 236 |
+
David D. Lewis, Yiming Yang, Tony G. Rose, and Fan Li. RCV1: A new benchmark collection for text categorization research. Journal of Machine Learning Research (JMLR), 5, 2004.
|
| 237 |
+
|
| 238 |
+
Hossein Mobahi and John W. Fisher III. A theoretical analysis of optimization by Gaussian continuation. In AAAI, 2015.
|
| 239 |
+
|
| 240 |
+
Vinod Nair and Geoffrey E. Hinton. Rectified linear units improve restricted Boltzmann machines. In International Conference on Machine Learning (ICML), 2010.
|
| 241 |
+
|
| 242 |
+
Sameer A. Nene, Shree K. Nayar, and Hiroshi Murase. Columbia object image library (COIL-100). Technical Report CUCS-006-96, Columbia University, 1996.
|
| 243 |
+
|
| 244 |
+
Andrew Y. Ng, Michael I. Jordan, and Yair Weiss. On spectral clustering: Analysis and an algorithm. In Neural Information Processing Systems (NIPS), 2001.
|
| 245 |
+
|
| 246 |
+
Feiping Nie, Zinan Zeng, Ivor W. Tsang, Dong Xu, and Changshui Zhang. Spectral embedded clustering: A framework for in-sample and out-of-sample spectral clustering. IEEE Transactions on Neural Networks, 22(11), 2011.
|
| 247 |
+
|
| 248 |
+
Sohil Atul Shah and Vladlen Koltun. Robust continuous clustering. Proceedings of the National Academy of Sciences (PNAS), 114(37), 2017.
|
| 249 |
+
|
| 250 |
+
Nitish Srivastava, Geoffrey E. Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research (JMLR), 15(1), 2014.
|
| 251 |
+
|
| 252 |
+
Michael Steinbach, Levent Ertoz, and Vipin Kumar. The challenges of clustering high dimensional ¨ data. In New Directions in Statistical Physics. 2004.
|
| 253 |
+
|
| 254 |
+
Alexander Strehl and Joydeep Ghosh. Cluster ensembles – A knowledge reuse framework for combining multiple partitions. Journal of Machine Learning Research (JMLR), 3, 2002.
|
| 255 |
+
|
| 256 |
+
Marc Teboulle. A unified continuous optimization framework for center-based clustering methods. Journal of Machine Learning Research (JMLR), 8, 2007.
|
| 257 |
+
|
| 258 |
+
Laurens van der Maaten. Learning a parametric embedding by preserving local structure. In International Conference on Artificial Intelligence and Statistics (AISTATS), 2009.
|
| 259 |
+
|
| 260 |
+
Laurens van der Maaten. Accelerating t-SNE using tree-based algorithms. Journal of Machine Learning Research (JMLR), 15, 2014.
|
| 261 |
+
|
| 262 |
+
Laurens van der Maaten and Geoffrey E. Hinton. Visualizing high-dimensional data using t-SNE. Journal of Machine Learning Research (JMLR), 9, 2008.
|
| 263 |
+
|
| 264 |
+
Laurens van der Maaten, Eric Postma, and Jaap van den Herik. Dimensionality reduction: A comparative review. Technical Report TiCC-TR 2009-005, Tilburg University, 2009.
|
| 265 |
+
|
| 266 |
+
Rene Vidal. Subspace clustering. ´ IEEE Signal Processing Magazine, 28(2), 2011.
|
| 267 |
+
|
| 268 |
+
Pascal Vincent, Hugo Larochelle, Isabelle Lajoie, Yoshua Bengio, and Pierre-Antoine Manzagol. Stacked denoising autoencoders: Learning useful representations in a deep network with a local denoising criterion. Journal of Machine Learning Research (JMLR), 11, 2010.
|
| 269 |
+
|
| 270 |
+
Nguyen Xuan Vinh, Julien Epps, and James Bailey. Information theoretic measures for clusterings comparison: Variants, properties, normalization and correction for chance. Journal of Machine Learning Research (JMLR), 11, 2010.
|
| 271 |
+
|
| 272 |
+
Ulrike von Luxburg. A tutorial on spectral clustering. Statistics and Computing, 17(4), 2007.
|
| 273 |
+
|
| 274 |
+
Lior Wolf, Tal Hassner, and Itay Maoz. Face recognition in unconstrained videos with matched background similarity. In Computer Vision and Pattern Recognition (CVPR), 2011.
|
| 275 |
+
|
| 276 |
+
Junyuan Xie, Ross B. Girshick, and Ali Farhadi. Unsupervised deep embedding for clustering analysis. In International Conference on Machine Learning (ICML), 2016.
|
| 277 |
+
|
| 278 |
+
Bo Yang, Xiao Fu, Nicholas D. Sidiropoulos, and Mingyi Hong. Towards k-means-friendly spaces: Simultaneous deep learning and clustering. In International Conference on Machine Learning (ICML), 2017.
|
| 279 |
+
|
| 280 |
+
Jianwei Yang, Devi Parikh, and Dhruv Batra. Joint unsupervised learning of deep representations and image clusters. In Computer Vision and Pattern Recognition (CVPR), 2016.
|
| 281 |
+
|
| 282 |
+
Yi Yang, Dong Xu, Feiping Nie, Shuicheng Yan, and Yueting Zhuang. Image clustering using local discriminant models and global integration. IEEE Transactions on Image Processing, 19(10), 2010.
|
| 283 |
+
|
| 284 |
+
Wei Zhang, Xiaogang Wang, Deli Zhao, and Xiaoou Tang. Graph degree linkage: Agglomerative clustering on a directed graph. In European Conference on Computer Vision (ECCV), 2012.
|
| 285 |
+
|
| 286 |
+
# APPENDIX
|
| 287 |
+
|
| 288 |
+
# A DATASETS
|
| 289 |
+
|
| 290 |
+
MNIST (LeCun et al., 1998): This is a popular dataset containing 70,000 images of handwritten digits. Each image is of size $2 8 \times 2 8$ (784 dimensions). The data is categorized into 10 classes.
|
| 291 |
+
|
| 292 |
+
Coil100 (Nene et al., 1996): This dataset consists of 7,200 images of 100 object categories, each captured from 72 poses. Each RGB image is of size $1 2 8 \times 1 2 8$ (49,152 dimensions).
|
| 293 |
+
|
| 294 |
+
YouTube Faces (Wolf et al., 2011): The YTF dataset contains videos of faces. We use all the video frames of the first 40 subjects sorted in chronological order. Each frame is an RGB image of size $5 5 \times 5 5$ . The number of datapoints is 10,056 and the dimensionality is 9,075.
|
| 295 |
+
|
| 296 |
+
YaleB (Georghiades et al., 2001): This dataset contains 2,414 images of faces of 28 human subjects taken under different lightning condition. Each image is of size $1 9 2 \times 1 6 8$ (32,256 dimensions).
|
| 297 |
+
|
| 298 |
+
Reuters: This is a popular dataset comprising 21,578 Reuters news articles. We consider the Modified Apte split, which yields a total of 9,082 articles. TF-IDF features on the 2,000 most frequently occurring word stems are computed and normalized. The dimensionality of the data is thus 2,000.
|
| 299 |
+
|
| 300 |
+
RCV1 (Lewis et al., 2004): This is a document dataset comprising 800,000 Reuters newswire articles. Only the four root categories are considered and all articles labeled with more than one root category are pruned. We report results on a randomly sampled subset of 10,000 articles. 2,000 TF-IDF features were extracted as in the case of the Reuters dataset.
|
| 301 |
+
|
| 302 |
+
# B CONVOLUTIONAL NETWORK ARCHITECTURE
|
| 303 |
+
|
| 304 |
+
Table 3 summarizes the architecture of the convolutional encoder used for the convolutional configuration of DCC. Convolutional kernels are applied with a stride of two. The encoder is followed by a fully-connected layer with output dimension $d$ and a convolutional decoder with kernel size that matches the output dimension of conv5. The decoder architecture mirrors the encoder and the output from each layer is appropriately zero-padded to match the input size of the corresponding encoding layer. All convolutional and transposed convolutional layers are followed by batch normalization and rectified linear units (Ioffe & Szegedy, 2015; Nair & Hinton, 2010).
|
| 305 |
+
|
| 306 |
+
Table 3: Convolutional encoder architecture.
|
| 307 |
+
|
| 308 |
+
<table><tr><td></td><td>MNIST</td><td>Coil100</td><td>YTF</td><td>YaleB</td></tr><tr><td>conv1</td><td>4×4</td><td>4×4</td><td>4×4</td><td>4×4</td></tr><tr><td>conv2</td><td>5×5</td><td>5×5</td><td>5×5</td><td>5×5</td></tr><tr><td>conv3</td><td>5×5</td><td>5×5</td><td>5×5</td><td>5×5</td></tr><tr><td>conv4</td><td>1</td><td>5×5</td><td>5×5</td><td>5×5</td></tr><tr><td>conv5</td><td>1</td><td>5×5</td><td>1</td><td>5×5</td></tr><tr><td>output</td><td>4×4</td><td>4×4</td><td>4×4</td><td>6×6</td></tr></table>
|
| 309 |
+
|
| 310 |
+
# C HYPERPARAMETERS
|
| 311 |
+
|
| 312 |
+
DCC uses three hyperparameters: the nearest neighbor graph (mkNN) parameter $k$ , the embedding dimensionality $d$ , and the update period $M$ for graduated nonconvexity. For fair comparison to RCC and RCC-DR, we fix $k = 1 0$ (the setting used in Shah & Koltun (2017)). The other two hyperparameters were set to $d = 1 0$ and $M = 2 0$ based on grid search on MNIST. The hyperparameters are fixed at these values across all datasets. No dataset-specific tuning is done. However, note that the hyperparameter $M$ is architecture-specific. We set $M = 1 0$ for convolutional autoencoders and it is varied for varying dimensionality $d$ during the controlled experiment reported in Figures 2 and 3. The other hyperparameters such as $\lambda , \delta _ { i } , \mu _ { i }$ are set automatically as described in Sections 3.2 and 3.3 and in Shah & Koltun (2017).
|
| 313 |
+
|
| 314 |
+
# D ACC MEASURE
|
| 315 |
+
|
| 316 |
+
For completeness, we report results according to the ACC measure. Table 4 provides the ACC counterpart to Table 1. Figure 3 provides the ACC counterpart to Figure 2.
|
| 317 |
+
|
| 318 |
+

|
| 319 |
+
Figure 3: Clustering accuracy (ACC) as a function of the dimensionality $d$ of the latent space. This is the ACC counterpart to Figure 2. Best viewed in color.
|
| 320 |
+
|
| 321 |
+
<table><tr><td>Algorithm</td><td>MNIST</td><td>Coil100</td><td>YTF</td><td>YaleB</td><td>Reuters</td><td>RCV1</td></tr><tr><td>k-means++</td><td>0.532</td><td>0.621</td><td>0.624</td><td>0.514</td><td>0.236</td><td>0.529</td></tr><tr><td>AC-W</td><td>0.571</td><td>0.697</td><td>0.647</td><td>0.614</td><td>0.261</td><td>0.554</td></tr><tr><td>DBSCAN</td><td>0.000</td><td>0.921</td><td>0.675</td><td>0.632</td><td>0.700</td><td>0.571</td></tr><tr><td>SEC</td><td>0.545</td><td>0.648</td><td>0.562</td><td>0.721</td><td>0.434</td><td>0.425</td></tr><tr><td>LDMGI</td><td>0.723</td><td>0.763</td><td>0.332</td><td>0.901</td><td>0.465</td><td>0.667</td></tr><tr><td>GDL</td><td>n/a</td><td>0.825</td><td>0.497</td><td>0.783</td><td>0.463</td><td>0.444</td></tr><tr><td>RCC</td><td>0.876</td><td>0.831</td><td>0.484</td><td>0.939</td><td>0.381</td><td>0.356</td></tr><tr><td>RCC-DR</td><td>0.698</td><td>0.825</td><td>0.579</td><td>0.945</td><td>0.437</td><td>0.676</td></tr><tr><td colspan="7">Fully Connected</td></tr><tr><td>DCN</td><td>0.560</td><td>0.620</td><td>0.620</td><td>0.430</td><td>0.220</td><td>0.730</td></tr><tr><td>DEC</td><td>0.867</td><td>0.815</td><td>0.643</td><td>0.027</td><td>0.168</td><td>0.683</td></tr><tr><td>DCC</td><td>0.962</td><td>0.842</td><td>0.605</td><td>0.861</td><td>0.596</td><td>0.563</td></tr><tr><td colspan="7">Fully Convolutional</td></tr><tr><td>JULE</td><td>0.800</td><td>0.911</td><td>0.342</td><td>0.970</td><td></td><td></td></tr><tr><td>DEPICT</td><td>0.968</td><td>0.420</td><td>0.586</td><td>0.965</td><td></td><td></td></tr><tr><td>DCC</td><td>0.963</td><td>0.858</td><td>0.699</td><td>0.964</td><td></td><td></td></tr></table>
|
| 322 |
+
|
| 323 |
+
Table 4: Clustering accuracy of DCC and 12 baselines, measured by ACC. Higher is better. This is the ACC counterpart to Table 1.
|
| 324 |
+
|
| 325 |
+
# E NMI MEASURE
|
| 326 |
+
|
| 327 |
+
We also report results according to the NMI measure. Table 5 provides the NMI counterpart to Table 1.
|
| 328 |
+
|
| 329 |
+
<table><tr><td>Algorithm</td><td>MNIST</td><td>Coil100</td><td>YTF</td><td>YaleB</td><td>Reuters</td><td>RCV1</td></tr><tr><td>k-means++</td><td>0.500</td><td>0.835</td><td>0.788</td><td>0.650</td><td>0.536</td><td>0.355</td></tr><tr><td>AC-W</td><td>0.679</td><td>0.876</td><td>0.806</td><td>0.788</td><td>0.492</td><td>0.364</td></tr><tr><td>DBSCAN</td><td>0.000</td><td>0.458</td><td>0.756</td><td>0.535</td><td>0.022</td><td>0.017</td></tr><tr><td>SEC</td><td>0.469</td><td>0.872</td><td>0.760</td><td>0.863</td><td>0.498</td><td>0.069</td></tr><tr><td>LDMGI</td><td>0.761</td><td>0.906</td><td>0.532</td><td>0.950</td><td>0.523</td><td>0.382</td></tr><tr><td>GDL</td><td>n/a</td><td>0.965</td><td>0.664</td><td>0.931</td><td>0.401</td><td>0.020</td></tr><tr><td>RCC</td><td>0.893</td><td>0.963</td><td>0.850</td><td>0.978</td><td>0.556</td><td>0.138</td></tr><tr><td>RCC-DR</td><td>0.827</td><td>0.963</td><td>0.882</td><td>0.976</td><td>0.553</td><td>0.442</td></tr><tr><td colspan="7">Fully-connected</td></tr><tr><td>DCN</td><td>0.570</td><td>0.830</td><td>0.810</td><td>0.630</td><td>0.460</td><td>0.470</td></tr><tr><td>DEC</td><td>0.853</td><td>0.645</td><td>0.811</td><td>0.000</td><td>0.409</td><td>0.504</td></tr><tr><td>DCC</td><td>0.912</td><td>0.961</td><td>0.886</td><td>0.959</td><td>0.588</td><td>0.498</td></tr><tr><td colspan="7">Convolutional</td></tr><tr><td>JULE</td><td>0.900</td><td>0.983</td><td>0.587</td><td>0.991</td><td></td><td></td></tr><tr><td>DEPICT</td><td>0.919</td><td>0.678</td><td>0.790</td><td>0.990</td><td></td><td></td></tr><tr><td>DCC</td><td>0.915</td><td>0.967</td><td>0.908</td><td>0.987</td><td></td><td></td></tr></table>
|
| 330 |
+
|
| 331 |
+
Table 5: Clustering accuracy of DCC and 12 baselines, measured by NMI. Higher is better. This is the NMI counterpart to Table 1.
|
parse/train/SJzMATlAZ/SJzMATlAZ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/sUgpxb9QD/sUgpxb9QD.md
ADDED
|
@@ -0,0 +1,447 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SOSP: Efficiently Capturing Global Correlations by Second-Order Structured Pruning
|
| 2 |
+
|
| 3 |
+
Anonymous Author(s)
|
| 4 |
+
Affiliation
|
| 5 |
+
Address
|
| 6 |
+
email
|
| 7 |
+
|
| 8 |
+
# Abstract
|
| 9 |
+
|
| 10 |
+
Pruning neural networks reduces inference time and memory cost, as well as accelerates training when done at initialization. On standard hardware, these benefits will be especially prominent if coarse-grained structures, like feature maps, are pruned. We devise global saliency-based methods for second-order structured pruning (SOSP) which include correlations among structures, whereas highest efficiency is achieved by saliency approximations using fast Hessian-vector products. We achieve state-of-the-art results for various object classification benchmarks, especially for large pruning rates highly relevant for resource-constrained applications. We showcase that our approach scales to large-scale vision tasks, even though it captures correlations across all layers of the network. Further, we highlight two outstanding features of our methods. First, to reduce training costs our pruning objectives can also be applied at initialization with no or only minor degradation in accuracy compared to pruning after pretraining. Second, our structured pruning methods allow to reveal architectural bottlenecks, which we remove to further increase the accuracy of the networks.
|
| 11 |
+
|
| 12 |
+
# 16 1 Introduction
|
| 13 |
+
|
| 14 |
+
17 Deep neural networks have consistently grown in size over the last years with increasing performance.
|
| 15 |
+
18 However, this increase in size leads to slower inference, higher computational requirements and
|
| 16 |
+
19 higher cost. To reduce the size of the networks without affecting their performance, a large number
|
| 17 |
+
20 of pruning algorithms have been proposed (e.g., LeCun et al., 1990; Hassibi et al., 1993; Reed, 1993;
|
| 18 |
+
21 Han et al., 2015; Blalock et al., 2020). Pruning can either be unstructured, i.e. removing individual
|
| 19 |
+
22 weights, or structured, i.e. removing entire substructures like nodes or channels. Single-shot pruning
|
| 20 |
+
23 methods, as investigated in this work, usually consist of three steps: 1) training, 2) pruning, 3) another
|
| 21 |
+
24 training step often referred to as fine-tuning.
|
| 22 |
+
25 Unstructured pruning can significantly reduce the number of parameters of a neural network with
|
| 23 |
+
26 only little loss in the accuracy, but the resulting networks often show only a marginal improvement in
|
| 24 |
+
27 training and inference time, unless specialized hardware is used (He et al., 2017). In contrast, struc
|
| 25 |
+
28 tured pruning can directly reduce inference time and even training time when applied at initialization
|
| 26 |
+
29 (Lee et al., 2018). To exploit these advantages, in this work, we focus on structured pruning.
|
| 27 |
+
30 Most sensitivity-based pruning methods such as OBD (e.g., LeCun et al., 1990) or C-OBD (Wang
|
| 28 |
+
31 et al., 2019a) evaluate the effect of removing a single weight or structure on the loss of the neural
|
| 29 |
+
32 network, while neglecting possible correlations between different structures and within the structures
|
| 30 |
+
33 themselves. This can significantly harm the estimation of the sensitivities. We take these correlations
|
| 31 |
+
34 into account by applying efficient second-order estimations that not only consider the diagonal terms
|
| 32 |
+
35 of the Hessian, but also all off-diagonal terms.
|
| 33 |
+
36 Global pruning removes structure by structure from all available structures of a network until a
|
| 34 |
+
37 predefined percentage of pruned structures is reached. Recent examples for global structured pruning
|
| 35 |
+
38 methods are NN Slimming (Liu et al., 2017), C-OBD and EigenGamage (Wang et al., 2019a). Local
|
| 36 |
+
39 pruning, on the other hand, first subdivides all global structures into subsets (e.g. layers) and removes
|
| 37 |
+
40 a percentage of structures of each subset. Recent examples for local pruning methods are HRank
|
| 38 |
+
41 (Lin et al., 2019), CCP (Peng et al., 2019), FPGM (He et al., 2019) and Variational Pruning (Zhao
|
| 39 |
+
42 et al., 2019). Most local pruning schemes use a predefined layer-wise pruning ratio, which fixes the
|
| 40 |
+
43 percentage of structures removed per layer. While this approach prevents the layers from collapsing,
|
| 41 |
+
44 it also reduces some of the degrees of freedom, since some layers may be less important than others.
|
| 42 |
+
45 Our main goal in this work is to devise a simple and efficient second-order pruning method, which
|
| 43 |
+
46 considers all global correlations for structured sensitivity pruning. In addition, we want to highlight
|
| 44 |
+
47 the benefits that such methods may have over other structured global and local pruning schemes.
|
| 45 |
+
|
| 46 |
+
48 Our contributions are as follows:
|
| 47 |
+
|
| 48 |
+
• We introduce two novel saliency-based methods for second-order structured pruning (SOSP), which consider all correlations across structures and layers. We benchmark our SOSP methods against a variety of state-of-the-art pruning methods on several networks and datasets and achieve comparable or better results at low computational costs. • We show that our pruning methods can also be applied at initialization almost matching the performance of pruning after training and significantly reducing the cost of network training. • We exploit the structure of the pruning masks found by our SOSP methods to remove architectural bottlenecks, which further improves the performance of the pruned networks. In this work, we consider layers with disproportionally low pruning ratios architectural bottlenecks.
|
| 49 |
+
|
| 50 |
+
PyTorch code implementing our method is attached in the Supplementary Material and we will publish the code upon acceptance of this manuscript.
|
| 51 |
+
|
| 52 |
+
# 61 2 SOSP: Second-order structured pruning
|
| 53 |
+
|
| 54 |
+
62 A neural network (NN) maps an input $x \in \mathbb { R } ^ { d }$ to an output $f _ { \theta } ( x ) \in \mathbb { R } ^ { D }$ , where $\theta \in \mathbb { R } ^ { P }$ are its
|
| 55 |
+
63 64 $P$ parameters. NN training proceeds, after random intch stochastic gradient descent on the empirical loss $\begin{array} { r } { \mathcal { L } ( \boldsymbol { \theta } ) : = \frac { 1 } { N } \sum _ { n = 1 } ^ { N } \ell \left( f _ { \boldsymbol { \theta } } ( x _ { n } ) , y _ { n } \right) } \end{array}$ $\theta = \theta _ { 0 }$ s, by mini-, given the
|
| 56 |
+
65 training dataset . In the classification case, $y \in \{ 1 , \ldots , D \}$ is a discrete
|
| 57 |
+
66 ground-truth label and $\ell ( f _ { \theta } ( x ) , y ) : = - \log \sigma \left( f _ { \theta } ( x ) \right) _ { y }$ the cross-entropy loss, with $\overset { \prime } { \sigma } : \mathbb { R } ^ { D } \mathbb { R } ^ { D }$
|
| 58 |
+
|
| 59 |
+
the softmax-function. For regression, 67 $\boldsymbol { y } \in \mathbb { R } ^ { D }$ and $\begin{array} { r } { \ell ( f _ { \theta } ( x ) , y ) = \frac { 1 } { 2 } \left\| f _ { \theta } ( x ) - y \right\| ^ { 2 } } \end{array}$ is the squared loss.
|
| 60 |
+
|
| 61 |
+
68 Structured pruning aims to remove weights or rather entire structures from a $\Nu { \cal f } _ { \theta }$ with parameters
|
| 62 |
+
69 $\theta$ . A structure can be a filter (channel) in a convolutional layer, a neuron in a fully-connected layer, or
|
| 63 |
+
70 an entire layer in a parallel architecture. We assume the NN in question has been segmented into
|
| 64 |
+
71 $S$ structures $s = 1 , \ldots , S$ , which can potentially be pruned. We define the notation $\boldsymbol { \theta _ { s } } ^ { \mathbf { \bar { \theta } } } \in \mathbb { R } ^ { P }$ as the
|
| 65 |
+
72 vector whose only nonzero components are those weights from $\theta$ that belong to structure $s$ .1 Then, a
|
| 66 |
+
73 pruning mask is a set $M = \{ s _ { 1 } , \ldots , s _ { m } \}$ of structures. Applying a mask $M$ to a NN $f _ { \theta }$ means to
|
| 67 |
+
74 consider the NN with parameter vector $\begin{array} { r } { \dot { \theta _ { \setminus M } } : = \theta - \sum _ { s \in M } \bar { \theta } _ { s } } \end{array}$ .2
|
| 68 |
+
75 We now develop our pruning methods that incorporate global correlations into their saliency as
|
| 69 |
+
76 sessment by efficiently including the second-order loss terms. The first method (SOSP-I) admits a
|
| 70 |
+
77 direct interpretation in terms of individual loss sensitivities, while the second (SOSP-H) remains very
|
| 71 |
+
78 efficient for the largest networks due to its Hessian-vector product approximation.
|
| 72 |
+
79 The basic idea behind both our pruning methods is to select the pruning mask $M$ so as to (approxi
|
| 73 |
+
80 mately) minimize the joint effect on the network loss
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\lambda ( M ) : = \left| \mathcal { L } ( \boldsymbol { \theta } ) - \mathcal { L } ( \boldsymbol { \theta } _ { \setminus M } ) \right|
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
81 of removing all structures in $M$ , subject to a constraint on the overall pruning ratio. To circumvent
|
| 80 |
+
82 this exponentially large search space, we approximate the loss up to second order, so that
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
\lambda _ { 2 } ( M ) = \left| \sum _ { s \in M } \theta _ { s } ^ { T } \frac { d \mathcal { L } ( \theta ) } { d \theta } - \frac { 1 } { 2 } \sum _ { s , s ^ { \prime } \in M } \theta _ { s } ^ { T } \frac { d ^ { 2 } \mathcal { L } ( \theta ) } { d \theta d \theta ^ { T } } \theta _ { s ^ { \prime } } \right|
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
83 collapses to single-structure contributions plus pairwise correlations; note that the latter include interactions among the weights within a single 84 $s = s ^ { \prime }$ , which can be sizeable for large structures.
|
| 87 |
+
|
| 88 |
+
85 The first-order terms $\lambda _ { 1 } ( s ) : = \theta _ { s } \cdot d \mathcal { L } ( \theta ) / d \theta \in \mathbb { R } ^ { P }$ in (1) are efficient to evaluate by computing the
|
| 89 |
+
86 gradient $d { \mathcal { L } } ( \theta ) / d \theta \in \mathbb { R } ^ { P }$ once and then a (sparse) dot product for every $s$ . In contrast to these first
|
| 90 |
+
87 order terms, the network Hessian $H ( \theta ) : = \bar { d ^ { 2 } } \mathcal { L } ( \theta ) / d \theta ^ { \hat { 2 } } \in \mathbb { R } ^ { P \times P }$ in (1) is prohibitively expensive to
|
| 91 |
+
88 compute or store in full. We therefore propose two different schemes to efficiently overcome this
|
| 92 |
+
89 obstacle. Each scheme entails its own way to select the pruning mask. We name the full methods
|
| 93 |
+
90 SOSP-I (individual sensitivities) and SOSP-H (Hessian-vector product).
|
| 94 |
+
|
| 95 |
+
# 91 2.1 SOSP-I: Saliency from individual sensitivities
|
| 96 |
+
|
| 97 |
+
92 SOSP-I approximates each individual term $\theta _ { s } ^ { T } H ( \theta ) \theta _ { s ^ { \prime } }$ in (1) efficiently, as we will show in Eq. (6).
|
| 98 |
+
93 We can therefore consider a modification of Eq. (1) in which the sensitivity is judged by considering
|
| 99 |
+
94 all single and pairwise sensitivities individually:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\lambda _ { 2 } ^ { I } ( M ) = \sum _ { s \in M } \left| \theta _ { s } ^ { T } \frac { d \mathcal { L } ( \theta ) } { d \theta } \right| + \frac { 1 } { 2 } \sum _ { s , s ^ { \prime } \in M } \left| \theta _ { s } ^ { T } H ( \theta ) \theta _ { s ^ { \prime } } \right| .
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
95 To avoid cancellations between signed contributions, we take absolute values because this measures
|
| 106 |
+
96 the strengths of the individual sensitivities $\lambda _ { 1 } ( s )$ and pairwise correlations $\theta _ { s } ^ { T } H ( \theta ) \theta _ { s ^ { \prime } }$ . While
|
| 107 |
+
97 objectives other than $\lambda _ { 2 } ^ { I }$ are equally possible in the method, including $\lambda _ { 2 }$ and modifications with the
|
| 108 |
+
98 absolute value not pulled in all the way, we found empirically that $\bar { \lambda _ { 2 } ^ { I } }$ performs best overall.
|
| 109 |
+
99 Then, SOSP-I iteratively selects the structures to prune, based on the objective (2): Starting from
|
| 110 |
+
100 an empty pruning mask $M = \{ \}$ , we iteratively add to $M$ the structure $s \notin M$ that minimizes the
|
| 111 |
+
101 overall sensitivity $\lambda _ { 2 } ^ { I } ( M \cup \{ s \} )$ . In practice, the algorithm pre-computes the matrix $Q \in \mathbb { R } ^ { S \times S }$ ,
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
Q _ { s , s ^ { \prime } } : = \frac { 1 } { 2 } \left| \theta _ { s } ^ { T } H ( \theta ) \theta _ { s ^ { \prime } } \right| + \left| \theta _ { s } ^ { T } \frac { d \mathcal { L } ( \theta ) } { d \theta } \right| \cdot \delta _ { s = s ^ { \prime } } ,
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
102 and selects at each iteration a structure $s \notin M$ to prune by
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\underset { s \notin { \cal M } } { \arg \operatorname* { m i n } } \lambda _ { 2 } ^ { I } ( { \cal M } \cup s ) - \lambda _ { 2 } ^ { I } ( { \cal M } ) = \underset { s \notin { \cal M } } { \arg \operatorname* { m i n } } \left( Q _ { s , s } + 2 \sum _ { s ^ { \prime } \in { \cal M } } Q _ { s , s ^ { \prime } } \right) ,
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
103 terminating at the desired pruning ratio.
|
| 124 |
+
|
| 125 |
+
104 105 $\begin{array} { r } { \frac { 1 } { N } \sum _ { n } \nabla _ { \theta } ^ { 2 } \ell ( f _ { \theta } \dot { ( x _ { n } ) } , y _ { n } ) } \end{array}$ te the Hessian terms those terms that involv $\theta _ { s } ^ { T } H ( \theta ) \theta _ { s ^ { \prime } }$ efficiently, we omit from sive second-order derivatives $\nabla _ { { \boldsymbol { \theta } } } ^ { 2 } f _ { \boldsymbol { \theta } } ( { \boldsymbol { x } } _ { n } )$ $\begin{array} { r l } { H ( \theta ) } & { { } = } \end{array}$
|
| 126 |
+
106 of the NN outputs, while including second-order couplings due to . This is equivalent to approx
|
| 127 |
+
107 imating $\begin{array} { r } { H ( \theta ) \ \tilde { \ } \approx H ( f _ { \theta } ^ { l i n } ) : = \frac { 1 } { N } \sum _ { n } \nabla _ { \theta } ^ { 2 } \ell ( f _ { \theta } ^ { l i n } ( x _ { n } ) , \tilde { \ y } _ { n } ) } \end{array}$ for the linearized $f _ { \theta ^ { \prime } } ( x ) \approx f _ { \theta ^ { \prime } } ^ { l i n } ( \stackrel { . . . } { x } ) : =$
|
| 128 |
+
108 $f _ { \theta } ( x ) + \phi ( x ) \cdot ( \theta ^ { \prime } - \theta )$ with $\phi ( { \boldsymbol { x } } ) : = \nabla _ { \theta } f _ { \theta } ( { \boldsymbol { x } } ) \in \mathbb { R } ^ { D \times P }$ , which is well motivated by the NTK limit
|
| 129 |
+
109 (Jacot et al., 2018) for large NNs at both initialization and after training. The terms in the sum become
|
| 130 |
+
|
| 131 |
+
$$
|
| 132 |
+
\nabla _ { \boldsymbol { \theta } } ^ { 2 } \ell \left( f _ { \boldsymbol { \theta } } ^ { l i n } ( x _ { n } ) , y _ { n } \right) = \boldsymbol { \phi } ( x _ { n } ) ^ { T } R _ { n } \boldsymbol { \phi } ( x _ { n } ) ,
|
| 133 |
+
$$
|
| 134 |
+
|
| 135 |
+
110 where $R _ { n } \ \in \ \mathbb { R } ^ { D \times D }$ is diagonal for squared loss, and has an additional rank-1 contribution for
|
| 136 |
+
111 cross-entropy (see App. B). Similar Hessian approximations were employed before in NNs (Hassibi
|
| 137 |
+
112 et al., 1993; Wang et al., 2019a; Peng et al., 2019) and also in the Gauss-Newton optimization method
|
| 138 |
+
113 (Fletcher, 2013). Our final approximation is to use a random subsample of $N ^ { \prime } < N$ data points:
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
\theta _ { s } ^ { T } H ( \theta ) \theta _ { s ^ { \prime } } \approx \frac { 1 } { N ^ { \prime } } \sum _ { n = 1 } ^ { N ^ { \prime } } \left( \phi ( x _ { n } ) \theta _ { s } \right) ^ { T } R _ { n } \left( \phi ( x _ { n } ) \theta _ { s ^ { \prime } } \right) .
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
114 In practice, one pre-computes all (sparse) products $\phi ( x _ { n } ) \theta _ { s } \in \mathbb { R } ^ { D }$ starting from the efficient gradient
|
| 145 |
+
115 $\phi ( x _ { n } )$ , before aggregating a batch onto the terms $\theta _ { s } ^ { T } H ( \theta ) \theta _ { s ^ { \prime } }$ . Eq. (6) also has an interpretation as
|
| 146 |
+
116 output correlations between certain network modifications, without using derivatives (App. C).
|
| 147 |
+
118 SOSP-H treats the second-order terms in (1) in a way that is motivated by the limit of large pruning
|
| 148 |
+
119 ratios: At high pruning ratios, the sum $\sum _ { s ^ { \prime } \in M } \theta _ { s ^ { \prime } }$ in (1) can be approximated by $\begin{array} { r } { \sum _ { s ^ { \prime } = 1 } ^ { \bar { S } } \theta _ { s ^ { \prime } } = : } \end{array}$
|
| 149 |
+
120 $\theta _ { s t r u c }$ (this equals if every NN weight belongs to some structure $s$ ). The second-order term
|
| 150 |
+
121 $\begin{array} { r } { \sum _ { s , s ^ { \prime } \in M } \theta _ { s } ^ { T } \dot { H ( \theta ) } \theta _ { s ^ { \prime } } \approx \left( \sum _ { s \in M } \theta _ { s } ^ { T } \right) \left( \check { H } ( \theta ) \theta _ { s t r u c } \right) } \end{array}$ thus becomes tractable since the Hessian-vector
|
| 151 |
+
122 product $H ( \theta ) \theta _ { s t r u c }$ is efficiently computable by a variant of the backpropagation algorithm. To
|
| 152 |
+
123 account for each structure $s$ and for the first- and second-order contributions separately, as above, we
|
| 153 |
+
124 place absolute value signes in (1) so as to arrive at the final objective $\begin{array} { r } { \lambda _ { 2 } ^ { H } ( M ) \overset { \cdot } { : = } \sum _ { s \in M } \lambda _ { 2 } ^ { H } ( s ) } \end{array}$ with
|
| 154 |
+
|
| 155 |
+
$$
|
| 156 |
+
\lambda _ { 2 } ^ { H } ( s ) : = \left| \theta _ { s } ^ { T } \frac { d \mathcal { L } ( \theta ) } { d \theta } \right| + \frac { 1 } { 2 } \left| \theta _ { s } ^ { T } \big ( H ( \theta ) \theta _ { s t r u c } \big ) \right| .
|
| 157 |
+
$$
|
| 158 |
+
|
| 159 |
+
125 The last term measures the correlations between one structure $s$ and all other prunable structures,
|
| 160 |
+
126 although some of these may cancel unlike for SOSP-I. To minimize $\lambda _ { 2 } ^ { H } ( M )$ , SOSP-H starts from an
|
| 161 |
+
127 empty pruning mask $M = \{ \}$ , and successively adds to $M$ a structure $s \notin M$ with smallest $\lambda _ { 2 } ^ { H } ( s )$ .
|
| 162 |
+
128 Unlike the Gauss-Newton approximation in SOSP-I, SOSP-H uses the exact Hessian $H ( \theta )$ , but can
|
| 163 |
+
129 therefore not account for individual absolute $s { - } s ^ { \prime }$ -correlations, see Eq. (7) vs. (2). Both methods
|
| 164 |
+
130 reduce to the same first-order pruning method when neglecting the second order (i.e. $H ( \theta ) : = 0 \rangle$ ).
|
| 165 |
+
|
| 166 |
+
# 2.3 Computational complexity
|
| 167 |
+
|
| 168 |
+
132 We detail here the computational complexities of our methods (for the experimental evaluation see
|
| 169 |
+
133 Sec. 3.2). The approximation of $Q$ in (3) requires complexity $O \left( N ^ { \prime } D ( F + P ) \right) = O ( N ^ { \prime } D F )$ for
|
| 170 |
+
134 computing all $\bar { \phi ( \boldsymbol { x } _ { n } ) } \theta _ { s }$ , where $F \geq P$ denotes the cost of one forward pass through the network
|
| 171 |
+
135 $F \approx P$ for fully-connected NNs), plus $O ( N ^ { \prime } D S ^ { 2 } )$ for the sum in (6). This is tractable for modern
|
| 172 |
+
136 NNs, while including the exact $H ( \theta )$ would have complexity at least $O ( N ^ { \prime } D S F )$ . Once $Q$ has been
|
| 173 |
+
137 computed, the selection procedure based on (4) has overall complexity ${ \cal O } ( S ^ { 3 } )$ , which is feasible for
|
| 174 |
+
138 most modern convolutional NNs (Sec. 3.2). The total complexity of the SOSP-I method is thus
|
| 175 |
+
|
| 176 |
+
$$
|
| 177 |
+
O ( N ^ { \prime } D F ) + O ( N ^ { \prime } D S ^ { 2 } ) + O ( S ^ { 3 } ) .
|
| 178 |
+
$$
|
| 179 |
+
|
| 180 |
+
139 SOSP-H has computational complexity $O ( N ^ { \prime } D F )$ to compute the sensitivities (7), which is com
|
| 181 |
+
140 parable to computing the sensitivities $Q$ in SOSP-I when the number of structures is low $( S ^ { 2 } \lesssim F )$ .
|
| 182 |
+
141 Together with the sorting of the saliency values $\lambda _ { 2 } ^ { H } ( s )$ , the overall complexity of SOSP-H is thus
|
| 183 |
+
|
| 184 |
+
$$
|
| 185 |
+
O ( N ^ { \prime } D F ) + O ( S \log ( S ) ) .
|
| 186 |
+
$$
|
| 187 |
+
|
| 188 |
+
142 Due to its weak dependency on $S$ , in practice, SOSP-H efficiently scales to large modern networks
|
| 189 |
+
143 and may even be used for unstructured second-order pruning, where $S = P$ .
|
| 190 |
+
144 Both of our methods scale much better than naively including all off-diagonal Hessian terms, which
|
| 191 |
+
145 is intractable for modern NNs due to its $O ( N ^ { \prime } D \dot { S } F )$ scaling. Since SOSP-I builds on individual
|
| 192 |
+
146 absolute sensitivities and the established Gauss-Newton approximation, we use SOSP-I in the
|
| 193 |
+
147 following in particular to validate the more efficient SOSP-H method.
|
| 194 |
+
|
| 195 |
+
# 148 3 Results
|
| 196 |
+
|
| 197 |
+
149 To evaluate our methods, we train and prune VGGs (Simonyan & Zisserman, 2014), ResNets (He
|
| 198 |
+
150 et al., 2016), and DenseNets (Huang et al., 2017) on the Cifar10/100 (Krizhevsky et al., 2009) and
|
| 199 |
+
151 ImageNet (Deng et al., 2009) datasets. Stochastic gradient descent with an initial learning rate of 0.1,
|
| 200 |
+
152 a momentum of 0.9 and weight decay of $1 0 ^ { - 4 }$ is used to train these networks. For ResNet-32/56 and
|
| 201 |
+
153 VGG-Net on Cifar10/100, we use a batch size of 128, train for 200 epochs and reduce the learning rate
|
| 202 |
+
154 by a factor of 10 after 120 and 160 epochs. To fine-tune the network after pruning, we exactly repeat
|
| 203 |
+
155 this learning rate schedule. For DenseNet-40 on Cifar10/100, we train for 300 epochs and reduce
|
| 204 |
+
156 the learning rate after 150 and 225 epochs. For ResNets on ImageNet, we use a batch size of 256,
|
| 205 |
+
157 train for 128 epochs and use a cosine learning rate decay. For all networks, we prune feature maps
|
| 206 |
+
158 (i.e. channels) from all layers except the last fully-connected layer; for ResNets, we also exclude the
|
| 207 |
+
159 downsampling-path from pruning. We approximate the Hessians by a subsample of size $N ^ { \prime } = 1 0 0 0$
|
| 208 |
+
160 (see Sec. 2.1). We report the best or average final test accuracy over 3 trials if not noted otherwise.
|
| 209 |
+
161 The experiments were run on an internal cluster with Nvidia Tesla V100 GPUs. Reproducing the
|
| 210 |
+
162 results presented in this paper would take about 60 days of GPU run-time.
|
| 211 |
+
|
| 212 |
+
Table 1: Comparison of SOSP to other global pruning methods for high pruning ratios. The comparison for moderate pruning ratios is defered to the appendix (see App. A.1). We tuned our pruning ratios to similar values as reported by the referred methods. To ensure identical implementations of the network models in PyTorch, reference numbers are taken from Wang et al. (2019a) and (Mingjie & Zhuang, 2018). In accordance with all referred methods, we report the mean and standard deviation of the best accuracies observed during fine-tuning. For final accuracies after fine-tuning see App. A.3. \* denotes the baseline model. Both SOSP methods perform either on par or outperform the competing global pruning methods.
|
| 213 |
+
|
| 214 |
+
<table><tr><td>Dataset</td><td colspan="3">Cifar10</td><td colspan="3">Cifar100</td></tr><tr><td>Method</td><td>Test acc. (%)</td><td>Reduct. in weights (%)</td><td>Reduct. in MACs (%)</td><td>Test acc. (%)</td><td>Reduct. in weights (%)</td><td>Reduct. in MACs (%)</td></tr><tr><td>VGG-Net*</td><td>94.18</td><td></td><td></td><td>73.45</td><td>=</td><td></td></tr><tr><td>NN Slimming</td><td>85.01</td><td>97.85</td><td>97.89</td><td>58.69</td><td>97.76</td><td>94.09</td></tr><tr><td>NN Slim.+Li</td><td>91.99</td><td>97.93</td><td>86.00</td><td>57.07</td><td>97.59</td><td>93.86</td></tr><tr><td>C-OBD</td><td>92.34 ± 0.18</td><td>97.68 ± 0.02</td><td>77.39 ± 0.36</td><td>58.07 ± 0.60</td><td>97.97 ± 0.04</td><td>77.55 ± 0.25</td></tr><tr><td>EigenDamage</td><td>92.29 ± 0.21</td><td>97.15 ± 0.04</td><td>86.51 ± 0.26</td><td>65.18 ± 0.10</td><td>97.31 ± 0.01</td><td>88.63 ±0.12</td></tr><tr><td>SOSP-I (ours)</td><td>92.62 ± 0.14</td><td>97.79 ± 0.02</td><td>83.52 ±0.29</td><td>64.20 ± 0.23</td><td>97.83 ± 0.04</td><td>87.02 ± 0.20</td></tr><tr><td>SOSP-H(ours)</td><td>92.71 ± 0.19</td><td>97.81 ± 0.01</td><td>86.32 ±0.29</td><td>64.59 ± 0.35</td><td>97.81 ± 0.01</td><td>86.32 ± 0.29</td></tr><tr><td>ResNet-32*</td><td>95.30</td><td></td><td></td><td>76.8</td><td></td><td></td></tr><tr><td>C-OBD</td><td>91.75 ± 0.42</td><td>97.30 ± 0.06</td><td>93.50 ± 0.37</td><td>59.52 ± 0.24</td><td>97.74 ± 0.08</td><td>94.88 ±0.08</td></tr><tr><td>EigenDamage</td><td>93.05 ± 0.23</td><td>96.05 ± 0.03</td><td>94.74 ± 0.02</td><td>65.72 ± 0.04</td><td>95.21 ± 0.04</td><td>94.62 ± 0.06</td></tr><tr><td>SOSP-I(ours)</td><td>92.43 ± 0.09</td><td>95.47 ± 0.33</td><td>94.07 ± 0.66</td><td>67.36 ± 0.46</td><td>92.69 ± 0.07</td><td>95.63 ± 0.13</td></tr><tr><td>SOSP-H(ours)</td><td>92.23 ±0.12</td><td>95.26 ±0.10</td><td>94.45 ±0.40</td><td>68.42 ± 0.21</td><td>94.08 ± 0.21</td><td>95.06 ±0.14</td></tr><tr><td>DenseNet-40*</td><td>94.58</td><td></td><td></td><td>74.11</td><td>=</td><td>=</td></tr><tr><td>NN Slim. + L1</td><td>94.22</td><td>54.21</td><td></td><td>73.19</td><td>54.21</td><td>=</td></tr><tr><td>SOSP-I(ours)</td><td>94.21 ± 0.04</td><td>47.00 ± 0.10</td><td>36.35 ± 0.12</td><td>73.05 ± 0.11</td><td>45.22 ±0.10</td><td>42.05 ±1.16</td></tr><tr><td>SOSP-H(ours)</td><td>94.23 ± 0.05</td><td>49.39 ± 0.65</td><td>38.86 ±0.70</td><td>73.05 ± 0.24</td><td>48.58 ± 0.22</td><td>42.05 ± 0.35</td></tr></table>
|
| 215 |
+
|
| 216 |
+

|
| 217 |
+
Figure 1: Comparison of SOSP to local, i.e. layer-wise, pruning methods on Cifar10. The best final test accuracy is plotted over the effective number of model parameters (a, c) and MACs (b, d). A tabular representation as well as statistics across trials are shown in App. A.4. SOSP outperforms all competing layer-wise pruning methods, especially over the number of effective parameters.
|
| 218 |
+
|
| 219 |
+
# 163 3.1 Comparison to Literature
|
| 220 |
+
|
| 221 |
+
164 Here we benchmark the performance of our SOSP methods against existing pruning algorithms on
|
| 222 |
+
165 different datasets and networks. First, we compare against other recent global pruning methods,
|
| 223 |
+
166 then against local structured pruning methods, i.e. with pre-specified layer-wise pruning rates. In all
|
| 224 |
+
167 comparisons we report the achieved test accuracy, the number of parameters of the pruned network
|
| 225 |
+
168 and the MACs (often referred to as FLOPs). To facilitate direct comparisons, we report test accuracies
|
| 226 |
+
169 in the same way as the competing methods (e.g. best trial or average over trials), but additionally
|
| 227 |
+
170 report mean and standard deviation of the test error for our models in App. A. Our count of the
|
| 228 |
+
171 network parameters and MACs is based on the actual pruned network architecture (cf. App. D), even
|
| 229 |
+
172 though our saliency measure associates with each structure only the weights into this structure.
|
| 230 |
+
173 We first compare our SOSP methods with global pruning methods on VGG-Net, ResNet-32 and
|
| 231 |
+
174 DenseNet-40. We use the same variants and implementations of these networks as used by Neural
|
| 232 |
+
175 Network Slimming (NN Slimming; Liu et al., 2017) as well as EigenDamage and C-OBD (Wang
|
| 233 |
+
176 et al., 2019a), e.g. capping the layer-wise ratio of removed structures at $9 5 \%$ for VGGs to prevent
|
| 234 |
+
177 layer collapse and increasing the width of ResNet-32 by a factor 4. C-OBD is a structured variant of
|
| 235 |
+
178 the original OBD algorithm (Hassibi et al., 1993), which neglects all cross-structure correlations that,
|
| 236 |
+
179 in contrast, SOSP takes into account. The results over three trials for high pruning ratios are shown in
|
| 237 |
+
180 Tab. 1 and for moderate pruning ratios in App. A.1. To enable the comparison to NN Slimming on
|
| 238 |
+
181 an already pretrained VGG, we included the results of NN Slimming applied to a baseline network
|
| 239 |
+
182 obtained without modifications to its initial training, i.e. without $L _ { 1 }$ -regularization on the batch
|
| 240 |
+
183 normalization parameters. For moderate pruning rates, all pruning schemes approximately retain the
|
| 241 |
+
184 baseline performance for VGG-Net and ResNet-32 on Cifar10 and VGG-Net on Cifar100 (see Tab.
|
| 242 |
+
185 3). The only exception is the accuracy for C-OBD applied to VGG-Net on Cifar100, which drops by
|
| 243 |
+
186 approximately $1 \%$ . For ResNet-32 on Cifar100 the accuracy after pruning is approximately $1 \%$ lower
|
| 244 |
+
187 than the baseline, for all pruning schemes. In the regime of larger pruning ratios of approximately $9 7 \%$ ,
|
| 245 |
+
188 SOSP and EigenDamage significantly outperform NN Slimming and C-OBD. SOSP performs on par
|
| 246 |
+
189 with EigenDamage, except for ResNet-32 on Cifar100, where SOSP outperforms EigenDamage by
|
| 247 |
+
190 almost ${ \bar { 3 } } \%$ . This result indicates that SOSP outperforms all other methods especially in the regime of
|
| 248 |
+
191 baseline networks that have relatively few parameters already and on difficult datasets most relevant
|
| 249 |
+
192 for applications. For DenseNet-40, we achieve similar results compared to NN Slimming. However,
|
| 250 |
+
193 note that NN Slimming requires the modification of network pretraining.
|
| 251 |
+
194 Next, we compare our SOSP methods against four recently published local, i.e. layer-wise, pruning
|
| 252 |
+
195 algorithms: FPGM He et al. (2019), GAL (Lin et al., 2019), CCP (Peng et al., 2019), Variational
|
| 253 |
+
196 Pruning (VP; Zhao et al., 2019) and HRank (Lin et al., 2020). For ResNet-56, our SOSP methods
|
| 254 |
+
197 outperform all other methods across all pruning ratios (see Fig. 1a and b). For DenseNet-40, SOSP
|
| 255 |
+
198 achieves better accuracies when compared over parameters (Fig. 1c) and is on par with the best other
|
| 256 |
+
199 methods over MACs (Fig. 1d). The reason for this discrepancy is probably that the SOSP objective is
|
| 257 |
+
200 agnostic to the number of MACs (image size) in each individual structure.
|
| 258 |
+
|
| 259 |
+

|
| 260 |
+
Figure 2: Runtime to calculate the pruning masks for ResNet-56 on Cifar10 over the width of the network for SOSP-I and SOSP-H. We vary the width of the network by increasing the width of each layer by a multiplicative factor.
|
| 261 |
+
|
| 262 |
+
Table 2: Best final test accuracies and pruning ratios (PR) across 2 trials on ImageNet. For comparison to CCP, we also provide their alternative MAC count (for details, see App. D). \* denotes SOSP with kernel scaling (see main text). SOSP outperforms all three competing methods.
|
| 263 |
+
|
| 264 |
+
<table><tr><td>Model</td><td>Top-1% (Gap)</td><td>Parameters (PR)</td><td>MACs (PR)</td><td>Alt. MACs (PR)</td></tr><tr><td>ResNet-18</td><td>69.76 (0.0)</td><td>11.7M (0%)</td><td>1.82B (0%)</td><td>1.82B (0%)</td></tr><tr><td>SOSP (ours)</td><td>69.63 (0.13)</td><td>7.12M (39%)</td><td>1.37B (24%)</td><td>1.31B (28%)</td></tr><tr><td>FPGM</td><td>68.41 (1.87)</td><td>7.10M (39%)</td><td>1.06B (41%)</td><td></td></tr><tr><td>SOSP (ours)</td><td>68.78 (0.98)</td><td>6.42M (45%)</td><td>1.29B (29%)</td><td>1.20B (34%)</td></tr><tr><td>ResNet-50</td><td>76.15 (0.0)</td><td>25.5M (0%)</td><td>3.85B (0%)</td><td>3.85B (0%)</td></tr><tr><td>SOSP (ours)</td><td>76.56(-0.41)</td><td>19.9M(22%)</td><td>3.06B(21%)</td><td>2.72B(29%)</td></tr><tr><td>SOSP*(ours)</td><td>76.60 (-0.45)</td><td>17.9M (30%)</td><td>2.79B (28%)</td><td>2.47B (36%)</td></tr><tr><td>HRank</td><td>74.98 (1.17)</td><td>16.2M(36%)</td><td>2.30B (44%)</td><td></td></tr><tr><td>FPGM</td><td>75.59 (0.56)</td><td>15.9M (37%)</td><td>2.36B (42%)</td><td></td></tr><tr><td>SOSP (ours)</td><td>75.85 (0.30)</td><td>15.4M (40%)</td><td>2.44B (27%)</td><td>1.97B (49%)</td></tr><tr><td>HRank</td><td>71.98 (4.17)</td><td>13.8M (46%)</td><td>1.55B (62%)</td><td></td></tr><tr><td>CCP</td><td>75.21 (0.94)</td><td></td><td></td><td>1.77B (54%)</td></tr><tr><td>SOSP*(ours)</td><td>75.21 (0.94)</td><td>13.0M (49%)</td><td>2.13B (45%)</td><td>1.68B (56%)</td></tr><tr><td>SOSP (ours)</td><td>74.39 (1.76)</td><td>11.8M (54%)</td><td>1.89B (51%)</td><td>1.38B (64%)</td></tr><tr><td>SOSP*(ours)</td><td>73.38 (2.77)</td><td>9.9M (61%)</td><td>1.58B (59%)</td><td>1.10B (72%)</td></tr></table>
|
| 265 |
+
|
| 266 |
+
# 3.2 Scalability and application to large-scale datasets
|
| 267 |
+
|
| 268 |
+
Before going to large datasets, we compare the scalability of our methods SOSP-I and SOSP-H. As the preceding section shows, both methods perform basically on par with each other in terms of accuracy. This confirms that SOSP-H is not degraded by the approximations leading to the efficient Hessian-vector product, or is helped by use of the exact Hessian. In terms of efficiency, however, SOSP-H shows clear advantages compared to SOSP-I, for which the algorithm to select the structures to be pruned scales with ${ \cal O } ( \bar { \cal S } ^ { 3 } )$ (see Sec. 2.3) potentially dominating the overall runtime for large-scale networks. Measurements of the actual runtimes show that already for medium-sized networks SOSP-H is more efficient than SOSP-I (Fig. 2). Since SOSP-I becomes impractical for large-scale networks, for the ImageNet dataset we will only evaluate SOSP-H and refer to it as SOSP.
|
| 269 |
+
|
| 270 |
+
211 On ImageNet, we compare our results to literature for ResNet-18 and ResNet-50, see Tab. 2. Because
|
| 271 |
+
212 SOSP assesses the sensitivity of each structure independently of the contributed MACs, it has a
|
| 272 |
+
213 bias towards pruning small-scale structures. This tendency is strongest for ResNet-50, due to its
|
| 273 |
+
214 $1 \times 1$ -convolutions. Since these $1 \times 1$ -convolutions tend to contribute disproportionately little to the
|
| 274 |
+
215 overall number of MACs, we devised a scaled variant of SOSP, which divides the saliency of every
|
| 275 |
+
216 structure by the kernel size (e.g. 1, 3 or 7). Compared to the vanilla SOSP, the scaled variant of SOSP
|
| 276 |
+
217 is able to remove larger percentages of MACs with similar drops in accuracy (see Tab. 2).
|
| 277 |
+
18 For both networks SOSP outperforms HRank and FPGM, especially when considering the main
|
| 278 |
+
19 objective of SOSP, which is to reduce the number of parameters or structures. Since CCP uses a
|
| 279 |
+
20 different way of calculating the MACs, which leads to consistently higher pruning ratios, we added
|
| 280 |
+
an alternative MAC count to enable a fair comparison (for details, see App. D). Since HRank and
|
| 281 |
+
22 FPGM do not mention their MAC counting convention, we assume they use the same convention
|
| 282 |
+
23 as we do. Taking this into account, our scaled SOSP variant is able to prune more MACs than CCP,
|
| 283 |
+
4 while having the same final accuracy.
|
| 284 |
+
|
| 285 |
+

|
| 286 |
+
Figure 3: Comparison between pruning after training and at initialization on Cifar10. Both pruning schemes, train-pruning (a) and init-pruning (b), train the network for the same overall number of epochs, but generate and apply the pruning masks at different point in times. The average and standard deviation of the test accuracy across 3 trials is plotted against the number of model parameters for ResNet-56 (top row; c) and VGG (bottom row; f). For a single trial, in which overall $5 0 \%$ of the structures are pruned, we visualize the pruning masks of train-pruning and init-pruning by showing the layer-wise pruning ratios in (d, g) and (e, h), respectively.
|
| 287 |
+
|
| 288 |
+
# 3.3 Pruning at Initialization
|
| 289 |
+
|
| 290 |
+
Traditionally, pruning methods are applied to pretrained networks, as also done in the previous sections, but recently there has been growing attention on pruning at initialization following the works of Lee et al. (2018) and Frankle & Carbin (2018). Since SOSP employs the absolute value of the sensitivities, it can also be applied to a randomly initialized network without any modifications. Thus, SOSP can also be seen as an efficient second-order generalization of SNIP (Lee et al., 2018; van Amersfoort et al., 2020). While EigenDamage can in principle be modified and applied to a randomly initialized network, NN Slimming can not be applied at initialization.
|
| 291 |
+
|
| 292 |
+
Usually pruning at initialization leads to worse accuracies than pruning after training (Liu et al., 2018). However, pruning an already trained network is often followed by fine-tuning effectively training the network twice (Fig. 3a). For comparability with pruning at initialization, we unify the overall training schedule between these two settings and consequently apply two training cycles after pruning the randomly initialized network (Fig. 3b; for further discussion, see App. A.5).
|
| 293 |
+
|
| 294 |
+
We observe that applying SOSP at initialization performs almost equally well than applying SOSP after training (see ResNet-56 and VGG in Fig. 3c and f, respectively). In conclusion, applying SOSP at initialization can significantly reduce the time and resources required for network training with no or only minor degradation in accuracy.
|
| 295 |
+
|
| 296 |
+
# 3.4 Identifying & Removing Architectural Bottlenecks
|
| 297 |
+
|
| 298 |
+
43 Even though the previous section highlighted that applying SOSP after training and at initialization
|
| 299 |
+
244 results in comparable accuracies, the pruning masks differ between these two scenarios (compare Fig.
|
| 300 |
+
245 3d and g to e and h, resp.). Despite this difference a common feature of all masks is that some layers
|
| 301 |
+
246 are barely pruned or not pruned at all while others are pruned by up to $8 0 \%$ . This could indicate
|
| 302 |
+
247 towards architectural bottlenecks. We consider a layer an architectural bottleneck if the respective
|
| 303 |
+
248 layer has a considerably lower pruning ratio compared to the other layers. The low pruning ratio of
|
| 304 |
+
249 bottleneck layers indicates that the substructures (e.g. filters) have a high sensitivity. Thus, widening
|
| 305 |
+
250 these layers could improve the overall performance and allow for even smaller models with higher
|
| 306 |
+
251 accuracies.
|
| 307 |
+
252 To utilize this insight we device a procedure that we call expand-pruning. The idea is to first calculate
|
| 308 |
+
253 the pruning ratios of a trained network and then to identify architectural bottlenecks, i.e. the layers
|
| 309 |
+
254 with the lowest pruning ratios. Next, we widen these layers by a factor of two, which has been
|
| 310 |
+
255 empirically shown to work well. Finally, we randomly initialize, train, prune, and fine-tune the
|
| 311 |
+
256 expanded network (for a schematic, see Fig. 4a). As a naive baseline that we call the widen-pruning
|
| 312 |
+
257 procedure, we widen all layers in the network with a constant factor instead of widening specific
|
| 313 |
+
258 layers. We choose the constant factor such that the overall number of parameters matches that of the
|
| 314 |
+
259 expand-prune procedure (see width multiplier in Fig. 4).
|
| 315 |
+
260 We evaluate the expand-pruning procedure for ResNet-56 and VGG on Cifar10, for which we expand
|
| 316 |
+
261 the least pruned of the three main building blocks and the five least pruned layers, respectively (e.g.,
|
| 317 |
+
262 see width multipliers in Fig. 4c and f selected on the basis of the pruning masks shown in Fig. 3d and
|
| 318 |
+
263 g, resp.). Note that for ResNet-56 a more fine-grained removal of bottlenecks, e.g. on layer level,
|
| 319 |
+
264 is not possible without changing the overall ResNet architecture. In summary, a selective removal
|
| 320 |
+
265 of bottlenecks results in smaller network models with higher accuracy than pruning the vanilla
|
| 321 |
+
266 network or unselectively increasing the network size (compare expand-pruning to train-pruning and
|
| 322 |
+
267 widen-pruning in Fig. 4b and e). While in principle any global pruning method could be used for
|
| 323 |
+
268 the expand-pruning procedure, SOSP is especially suited since it does not require to modify the
|
| 324 |
+
269 network architecture like EigenDamage and can also be applied at initialization unlike NN Slimming,
|
| 325 |
+
270 allowing for a similar expand scheme directly at initialization (see App. A.6).
|
| 326 |
+
|
| 327 |
+

|
| 328 |
+
Figure 4: We remove architectural bottlenecks found by SOSP using the expand-pruning scheme (a) on Cifar10. The width of blocks and layers with low pruning ratios in the train-pruning scheme (Fig. 3d and g) are expanded by a width multiplier of 2 (c, f). As a baseline, we uniformly expand all layers in the network by a factor 1.1 (d, g). The layer-wise pruning ratios of the enlarged network models are shown as bar plots in (c, d, f, g). The average and standard deviation of the test accuracy across 3 trials are shown over the number of model parameters (b, e). Note that the full ResNet-56 and VGG models have $0 . 8 6 \cdot 1 0 ^ { 6 }$ and $2 0 \cdot 1 0 ^ { 6 }$ parameters, respectively.
|
| 329 |
+
|
| 330 |
+
# 271 4 Discussion
|
| 331 |
+
|
| 332 |
+
In this work we have demonstrated the effectiveness and scalability of our second-order structured pruning algorithms (SOSP). While both algorithms perform similarly well, SOSP-H is more easily scalable to large scale networks and datasets. We highlighted two major features of our method. Firstly, SOSP can be applied at initialization with only minor degradation in accuracy, which drastically reduces the required time and resources for training. Secondly, we showed that the pruning masks
|
| 333 |
+
|
| 334 |
+
77 found by SOSP can be used to systematically detect and remove architectural bottlenecks, further
|
| 335 |
+
278 improving the performance of pruned networks.
|
| 336 |
+
279 Compared to other global pruning methods, SOSP captures correlations between structures by a sim
|
| 337 |
+
280 ple, effective and scalable algorithm that neither requires to modify the training nor the architecture of
|
| 338 |
+
281 the to be pruned network model and achieves comparable or better accuracies on benchmark datasets.
|
| 339 |
+
282 The C-OBD algorithm (Wang et al., 2019a) is a structured generalization of the original unstructured
|
| 340 |
+
283 OBD algorithm (LeCun et al., 1990). In contrast to OBD, C-OBD accounts for correlations within
|
| 341 |
+
284 each structure, but does not capture correlations between different structures within and across layers.
|
| 342 |
+
285 We show that considering these global correlations consistently improve the performance, especially
|
| 343 |
+
286 for large pruning ratios (Tab. 1). This observation is further confirmed by an ablation study in which
|
| 344 |
+
287 we neglect all cross-structure correlations significantly decreasing the performance under otherwise
|
| 345 |
+
288 identical experimental settings (App. A.2). The objective of EigenDamage (Wang et al., 2019a) to
|
| 346 |
+
289 include second order correlations is similar to ours, but the approaches are significantly different.
|
| 347 |
+
290 EigenDamage uses the Fisher-approximation, which is similar to the Gauss-Newton approximation
|
| 348 |
+
291 used for SOSP-I, and then, in addition to further approximations, apply low rank approximations
|
| 349 |
+
292 that require the substitution of each layer by a bottleneck-block structure. Our SOSP method is
|
| 350 |
+
293 simpler, easier to implement and does not require to modify the network architecture, but nevertheless
|
| 351 |
+
294 performs on par with EigenDamage. The approach of NN Slimming (Liu et al., 2017) is more
|
| 352 |
+
295 heuristic than SOSP and is easy to implement. However, networks need to be pretrained with $L _ { 1 }$
|
| 353 |
+
296 regularization on the batch-normalization parameters, otherwise the performance is severly harmed
|
| 354 |
+
297 (Tab. 1 and 3). SOSP does not require any modifications to the network training and can be applied
|
| 355 |
+
298 to any pretrained network. A recent variant of NN Slimming was developed by Zhuang et al. (2020)
|
| 356 |
+
299 who optimize their hyperparameters to reduce the number of MACs. Using the number MACs as an
|
| 357 |
+
300 objective for SOSP is left for future studies.
|
| 358 |
+
301 In addition to the above comparison to other global pruning methods, we also compared our methods
|
| 359 |
+
302 to simpler local pruning methods that keep the pruning ratios constant for each layer and, consequently,
|
| 360 |
+
303 scale well to large-scale datasets. The pruning method closest to our SOSP-I method is the one by
|
| 361 |
+
304 Peng et al. (2019). While both works consider second-order correlations between structures, theirs is
|
| 362 |
+
305 based on a pruning objective different from our absolute sensitivites in $\lambda _ { 2 } ^ { I }$ and considers only intra
|
| 363 |
+
306 layer correlations. Furthermore, they employ an auxiliary classifier with a hyperparameter, yielding
|
| 364 |
+
307 accuracy improvements that are difficult to disentangle from the effect of second-order pruning. Going
|
| 365 |
+
308 beyond a constant pruning ratio for each layer Su et al. (2020) discovered, for ResNets, that pruning
|
| 366 |
+
309 at initialization seems to preferentially prune initial layers and thus proposed a pruning scheme based
|
| 367 |
+
310 on a “keep-ratio” per layer which increases with the depth of the network. Our experiments confirm
|
| 368 |
+
311 some of the findings of Su et al. (2020), but we also show that the specific network architectures found
|
| 369 |
+
312 by pruning can drastically vary between different networks and especially between initialization and
|
| 370 |
+
313 after training (histograms in Fig. 3). While all local pruning methods specify pruning ratios for each
|
| 371 |
+
314 layer, our method performs automatic selection across layers (histograms in Fig. 3).
|
| 372 |
+
315 This automatic selection allows us to identify and remove architectural bottlenecks. However, our
|
| 373 |
+
316 global pruning method has a bias towards pruning small structures, absent from local pruning methods,
|
| 374 |
+
317 as the size of structures is usually identical within layers. We propose a simple solution by scaling
|
| 375 |
+
318 each structure by the inverse of the kernel size which helps to remove some of the bias. Alternatively,
|
| 376 |
+
319 to better reflect the computational costs in real-world applications, each structure could also be
|
| 377 |
+
320 normalized by the number of its required MACs (like done by van Amersfoort et al., 2020).
|
| 378 |
+
321 Recently, unstructured (Lee et al., 2018; Wang et al., 2019b; Tanaka et al., 2020) and structured
|
| 379 |
+
322 (van Amersfoort et al., 2020; Hayou et al., 2021) pruning schemes that are applicable to networks
|
| 380 |
+
323 at initialization were proposed. While these methods fail to achieve similar accuracies compared to
|
| 381 |
+
324 pruning after training, our SOSP method in the init-pruning setting achieves accuracies comparable
|
| 382 |
+
325 to pruning after training.
|
| 383 |
+
|
| 384 |
+
In accordance with Elsken et al. (2019), our results suggest that pruning can be used to optimize the architectural hyperparameters of established networks (Liu et al., 2018) or super-graphs (Noy et al., 2020). Instead of formulating this optimization as a pruning process, we envision our second-order sensitivity analysis to be a valuable tool to identify and remove bottlenecks to find good neural architectures more quickly. For example, whenever a building block of the neural network cannot be compressed, this building block may be considered a bottleneck of the architecture and could be inflated to improve the overall trade-off between accuracy and computational cost.
|
| 385 |
+
|
| 386 |
+
#
|
| 387 |
+
|
| 388 |
+
References
|
| 389 |
+
334 Blalock, D., Ortiz, J. J. G., Frankle, J., and Guttag, J. What is the state of neural network pruning? arXiv preprint arXiv:2003.03033, 2020.
|
| 390 |
+
336 Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., and Fei-Fei, L. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
|
| 391 |
+
339 Elsken, T., Metzen, J. H., and Hutter, F. Neural architecture search: A survey. Journal of Machine Learning Research, 20(55):1–21, 2019. Fletcher, R. Practical methods of optimization. John Wiley & Sons, 2013. Frankle, J. and Carbin, M. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations, 2018. Han, S., Pool, J., Tran, J., and Dally, W. Learning both weights and connections for efficient neural network. Advances in neural information processing systems, 28:1135–1143, 2015. Hassibi, B., Stork, D. G., and Wolff, G. J. Optimal brain surgeon and general network pruning. In IEEE international conference on neural networks, pp. 293–299. IEEE, 1993. Hayou, S., Ton, J.-F., Doucet, A., and Teh, Y. W. Robust pruning at initialization. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id= vXj_ucZQ4hA.
|
| 392 |
+
351 He, K., Zhang, X., Ren, S., and Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 393 |
+
353 He, Y., Zhang, X., and Sun, J. Channel pruning for accelerating very deep neural networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1389–1397, 2017. He, Y., Liu, P., Wang, Z., Hu, Z., and Yang, Y. Filter pruning via geometric median for deep convolutional neural networks acceleration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4340–4349, 2019. Huang, G., Liu, Z., Van Der Maaten, L., and Weinberger, K. Q. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700–4708, 2017.
|
| 394 |
+
361 Jacot, A., Gabriel, F., and Hongler, C. Neural tangent kernel: convergence and generalization in neural networks. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pp. 8580–8589, 2018.
|
| 395 |
+
Krizhevsky, A., Hinton, G., et al. Learning multiple layers of features from tiny images. 2009.
|
| 396 |
+
365 LeCun, Y., Denker, J. S., and Solla, S. A. Optimal brain damage. In Advances in neural information processing systems, pp. 598–605, 1990.
|
| 397 |
+
367 Lee, N., Ajanthan, T., and Torr, P. Snip: Single-shot network pruning based on connection sensitivity. In International Conference on Learning Representations, 2018. Lin, M., Ji, R., Wang, Y., Zhang, Y., Zhang, B., Tian, Y., and Shao, L. Hrank: Filter pruning using high-rank feature map. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1529–1538, 2020.
|
| 398 |
+
372 Lin, S., Ji, R., Yan, C., Zhang, B., Cao, L., Ye, Q., Huang, F., and Doermann, D. Towards optimal structured cnn pruning via generative adversarial learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2790–2799, 2019. Liu, Z., Li, J., Shen, Z., Huang, G., Yan, S., and Zhang, C. Learning efficient convolutional networks through network slimming. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Oct 2017.
|
| 399 |
+
Liu, Z., Sun, M., Zhou, T., Huang, G., and Darrell, T. Rethinking the value of network pruning. In International Conference on Learning Representations, 2018.
|
| 400 |
+
Mingjie, S. and Zhuang, L. Network slimming. https://github.com/Eric-mingjie/ network-slimming, 2018.
|
| 401 |
+
Noy, A., Nayman, N., Ridnik, T., Zamir, N., Doveh, S., Friedman, I., Giryes, R., and Zelnik, L. ASAP: Architecture search, anneal and prune. In Chiappa, S. and Calandra, R. (eds.), Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics, volume 108 of Proceedings of Machine Learning Research, pp. 493–503, 2020.
|
| 402 |
+
Peng, H., Wu, J., Chen, S., and Huang, J. Collaborative channel pruning for deep networks. In International Conference on Machine Learning, pp. 5113–5122. PMLR, 2019.
|
| 403 |
+
Reed, R. Pruning algorithms-a survey. IEEE transactions on Neural Networks, 4(5):740–747, 1993.
|
| 404 |
+
Simonyan, K. and Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 405 |
+
Su, J., Chen, Y., Cai, T., Wu, T., Gao, R., Wang, L., and Lee, J. D. Sanity-checking pruning methods: Random tickets can win the jackpot. In Advances in Neural Information Processing Systems, 2020.
|
| 406 |
+
Tanaka, H., Kunin, D., Yamins, D. L., and Ganguli, S. Pruning neural networks without any data by iteratively conserving synaptic flow. Advances in Neural Information Processing Systems, 33, 2020.
|
| 407 |
+
Tang, Y., Wang, Y., Xu, Y., Tao, D., Xu, C., Xu, C., and Xu, C. Scop: Scientific control for reliable neural network pruning. Advances in Neural Information Processing Systems, 2020.
|
| 408 |
+
van Amersfoort, J., Alizadeh, M., Farquhar, S., Lane, N., and Gal, Y. Single shot structured pruning before training. arXiv preprint arXiv:2007.00389, 2020.
|
| 409 |
+
Wang, C., Grosse, R., Fidler, S., and Zhang, G. Eigendamage: Structured pruning in the kroneckerfactored eigenbasis. In International Conference on Machine Learning, pp. 6566–6575, 2019a.
|
| 410 |
+
Wang, C., Zhang, G., and Grosse, R. Picking winning tickets before training by preserving gradient flow. In International Conference on Learning Representations, 2019b.
|
| 411 |
+
Zhao, C., Ni, B., Zhang, J., Zhao, Q., Zhang, W., and Tian, Q. Variational convolutional neural network pruning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2780–2789, 2019.
|
| 412 |
+
Zhuang, T., Zhang, Z., Huang, Y., Zeng, X., Shuang, K., and Li, X. Neuron-level structured pruning using polarization regularizer. Advances in Neural Information Processing Systems, 33, 2020.
|
| 413 |
+
|
| 414 |
+
# Checklist
|
| 415 |
+
|
| 416 |
+
1. For all authors...
|
| 417 |
+
|
| 418 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 419 |
+
(b) Did you describe the limitations of your work? [Yes]
|
| 420 |
+
(c) Did you discuss any potential negative societal impacts of your work? [N/A]
|
| 421 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 422 |
+
|
| 423 |
+
2. If you are including theoretical results...
|
| 424 |
+
|
| 425 |
+
(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes]
|
| 426 |
+
|
| 427 |
+
3. If you ran experiments...
|
| 428 |
+
|
| 429 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes]
|
| 430 |
+
|
| 431 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]
|
| 432 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes]
|
| 433 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes]
|
| 434 |
+
|
| 435 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 436 |
+
|
| 437 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes]
|
| 438 |
+
(b) Did you mention the license of the assets? [Yes]
|
| 439 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [Yes]
|
| 440 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 441 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 442 |
+
|
| 443 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 444 |
+
|
| 445 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 446 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 447 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/sUgpxb9QD/sUgpxb9QD_content_list.json
ADDED
|
@@ -0,0 +1,1151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "SOSP: Efficiently Capturing Global Correlations by Second-Order Structured Pruning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
183,
|
| 8 |
+
122,
|
| 9 |
+
815,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
423,
|
| 19 |
+
226,
|
| 20 |
+
580,
|
| 21 |
+
281
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Abstract ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
462,
|
| 31 |
+
318,
|
| 32 |
+
535,
|
| 33 |
+
334
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Pruning neural networks reduces inference time and memory cost, as well as accelerates training when done at initialization. On standard hardware, these benefits will be especially prominent if coarse-grained structures, like feature maps, are pruned. We devise global saliency-based methods for second-order structured pruning (SOSP) which include correlations among structures, whereas highest efficiency is achieved by saliency approximations using fast Hessian-vector products. We achieve state-of-the-art results for various object classification benchmarks, especially for large pruning rates highly relevant for resource-constrained applications. We showcase that our approach scales to large-scale vision tasks, even though it captures correlations across all layers of the network. Further, we highlight two outstanding features of our methods. First, to reduce training costs our pruning objectives can also be applied at initialization with no or only minor degradation in accuracy compared to pruning after pretraining. Second, our structured pruning methods allow to reveal architectural bottlenecks, which we remove to further increase the accuracy of the networks. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
148,
|
| 42 |
+
351,
|
| 43 |
+
766,
|
| 44 |
+
559
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "16 1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
148,
|
| 54 |
+
588,
|
| 55 |
+
312,
|
| 56 |
+
606
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "17 Deep neural networks have consistently grown in size over the last years with increasing performance. \n18 However, this increase in size leads to slower inference, higher computational requirements and \n19 higher cost. To reduce the size of the networks without affecting their performance, a large number \n20 of pruning algorithms have been proposed (e.g., LeCun et al., 1990; Hassibi et al., 1993; Reed, 1993; \n21 Han et al., 2015; Blalock et al., 2020). Pruning can either be unstructured, i.e. removing individual \n22 weights, or structured, i.e. removing entire substructures like nodes or channels. Single-shot pruning \n23 methods, as investigated in this work, usually consist of three steps: 1) training, 2) pruning, 3) another \n24 training step often referred to as fine-tuning. \n25 Unstructured pruning can significantly reduce the number of parameters of a neural network with \n26 only little loss in the accuracy, but the resulting networks often show only a marginal improvement in \n27 training and inference time, unless specialized hardware is used (He et al., 2017). In contrast, struc \n28 tured pruning can directly reduce inference time and even training time when applied at initialization \n29 (Lee et al., 2018). To exploit these advantages, in this work, we focus on structured pruning. \n30 Most sensitivity-based pruning methods such as OBD (e.g., LeCun et al., 1990) or C-OBD (Wang \n31 et al., 2019a) evaluate the effect of removing a single weight or structure on the loss of the neural \n32 network, while neglecting possible correlations between different structures and within the structures \n33 themselves. This can significantly harm the estimation of the sensitivities. We take these correlations \n34 into account by applying efficient second-order estimations that not only consider the diagonal terms \n35 of the Hessian, but also all off-diagonal terms. \n36 Global pruning removes structure by structure from all available structures of a network until a \n37 predefined percentage of pruned structures is reached. Recent examples for global structured pruning \n38 methods are NN Slimming (Liu et al., 2017), C-OBD and EigenGamage (Wang et al., 2019a). Local \n39 pruning, on the other hand, first subdivides all global structures into subsets (e.g. layers) and removes \n40 a percentage of structures of each subset. Recent examples for local pruning methods are HRank \n41 (Lin et al., 2019), CCP (Peng et al., 2019), FPGM (He et al., 2019) and Variational Pruning (Zhao \n42 et al., 2019). Most local pruning schemes use a predefined layer-wise pruning ratio, which fixes the \n43 percentage of structures removed per layer. While this approach prevents the layers from collapsing, \n44 it also reduces some of the degrees of freedom, since some layers may be less important than others. \n45 Our main goal in this work is to devise a simple and efficient second-order pruning method, which \n46 considers all global correlations for structured sensitivity pruning. In addition, we want to highlight \n47 the benefits that such methods may have over other structured global and local pruning schemes. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
147,
|
| 65 |
+
622,
|
| 66 |
+
825,
|
| 67 |
+
733
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "",
|
| 74 |
+
"bbox": [
|
| 75 |
+
147,
|
| 76 |
+
739,
|
| 77 |
+
825,
|
| 78 |
+
808
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "",
|
| 85 |
+
"bbox": [
|
| 86 |
+
147,
|
| 87 |
+
815,
|
| 88 |
+
825,
|
| 89 |
+
898
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
145,
|
| 98 |
+
90,
|
| 99 |
+
825,
|
| 100 |
+
217
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
147,
|
| 109 |
+
222,
|
| 110 |
+
826,
|
| 111 |
+
265
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "48 Our contributions are as follows: ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
150,
|
| 120 |
+
271,
|
| 121 |
+
390,
|
| 122 |
+
285
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "• We introduce two novel saliency-based methods for second-order structured pruning (SOSP), which consider all correlations across structures and layers. We benchmark our SOSP methods against a variety of state-of-the-art pruning methods on several networks and datasets and achieve comparable or better results at low computational costs. • We show that our pruning methods can also be applied at initialization almost matching the performance of pruning after training and significantly reducing the cost of network training. • We exploit the structure of the pruning masks found by our SOSP methods to remove architectural bottlenecks, which further improves the performance of the pruned networks. In this work, we consider layers with disproportionally low pruning ratios architectural bottlenecks. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
217,
|
| 131 |
+
296,
|
| 132 |
+
825,
|
| 133 |
+
449
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "PyTorch code implementing our method is attached in the Supplementary Material and we will publish the code upon acceptance of this manuscript. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
161,
|
| 142 |
+
460,
|
| 143 |
+
823,
|
| 144 |
+
489
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "61 2 SOSP: Second-order structured pruning ",
|
| 151 |
+
"text_level": 1,
|
| 152 |
+
"bbox": [
|
| 153 |
+
147,
|
| 154 |
+
508,
|
| 155 |
+
545,
|
| 156 |
+
526
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "62 A neural network (NN) maps an input $x \\in \\mathbb { R } ^ { d }$ to an output $f _ { \\theta } ( x ) \\in \\mathbb { R } ^ { D }$ , where $\\theta \\in \\mathbb { R } ^ { P }$ are its \n63 64 $P$ parameters. NN training proceeds, after random intch stochastic gradient descent on the empirical loss $\\begin{array} { r } { \\mathcal { L } ( \\boldsymbol { \\theta } ) : = \\frac { 1 } { N } \\sum _ { n = 1 } ^ { N } \\ell \\left( f _ { \\boldsymbol { \\theta } } ( x _ { n } ) , y _ { n } \\right) } \\end{array}$ $\\theta = \\theta _ { 0 }$ s, by mini-, given the \n65 training dataset . In the classification case, $y \\in \\{ 1 , \\ldots , D \\}$ is a discrete \n66 ground-truth label and $\\ell ( f _ { \\theta } ( x ) , y ) : = - \\log \\sigma \\left( f _ { \\theta } ( x ) \\right) _ { y }$ the cross-entropy loss, with $\\overset { \\prime } { \\sigma } : \\mathbb { R } ^ { D } \\mathbb { R } ^ { D }$ ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
147,
|
| 165 |
+
540,
|
| 166 |
+
825,
|
| 167 |
+
617
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "the softmax-function. For regression, 67 $\\boldsymbol { y } \\in \\mathbb { R } ^ { D }$ and $\\begin{array} { r } { \\ell ( f _ { \\theta } ( x ) , y ) = \\frac { 1 } { 2 } \\left\\| f _ { \\theta } ( x ) - y \\right\\| ^ { 2 } } \\end{array}$ is the squared loss. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
153,
|
| 176 |
+
617,
|
| 177 |
+
825,
|
| 178 |
+
633
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "68 Structured pruning aims to remove weights or rather entire structures from a $\\Nu { \\cal f } _ { \\theta }$ with parameters \n69 $\\theta$ . A structure can be a filter (channel) in a convolutional layer, a neuron in a fully-connected layer, or \n70 an entire layer in a parallel architecture. We assume the NN in question has been segmented into \n71 $S$ structures $s = 1 , \\ldots , S$ , which can potentially be pruned. We define the notation $\\boldsymbol { \\theta _ { s } } ^ { \\mathbf { \\bar { \\theta } } } \\in \\mathbb { R } ^ { P }$ as the \n72 vector whose only nonzero components are those weights from $\\theta$ that belong to structure $s$ .1 Then, a \n73 pruning mask is a set $M = \\{ s _ { 1 } , \\ldots , s _ { m } \\}$ of structures. Applying a mask $M$ to a NN $f _ { \\theta }$ means to \n74 consider the NN with parameter vector $\\begin{array} { r } { \\dot { \\theta _ { \\setminus M } } : = \\theta - \\sum _ { s \\in M } \\bar { \\theta } _ { s } } \\end{array}$ .2 \n75 We now develop our pruning methods that incorporate global correlations into their saliency as \n76 sessment by efficiently including the second-order loss terms. The first method (SOSP-I) admits a \n77 direct interpretation in terms of individual loss sensitivities, while the second (SOSP-H) remains very \n78 efficient for the largest networks due to its Hessian-vector product approximation. \n79 The basic idea behind both our pruning methods is to select the pruning mask $M$ so as to (approxi \n80 mately) minimize the joint effect on the network loss ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
147,
|
| 187 |
+
638,
|
| 188 |
+
825,
|
| 189 |
+
738
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "",
|
| 196 |
+
"bbox": [
|
| 197 |
+
147,
|
| 198 |
+
742,
|
| 199 |
+
825,
|
| 200 |
+
797
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "text",
|
| 206 |
+
"text": "",
|
| 207 |
+
"bbox": [
|
| 208 |
+
151,
|
| 209 |
+
804,
|
| 210 |
+
825,
|
| 211 |
+
832
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 1
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "equation",
|
| 217 |
+
"img_path": "images/2caf1e62af79f63ef3162af55bdeb9b878cb5286bbc73bc10e804e97495b29ac.jpg",
|
| 218 |
+
"text": "$$\n\\lambda ( M ) : = \\left| \\mathcal { L } ( \\boldsymbol { \\theta } ) - \\mathcal { L } ( \\boldsymbol { \\theta } _ { \\setminus M } ) \\right|\n$$",
|
| 219 |
+
"text_format": "latex",
|
| 220 |
+
"bbox": [
|
| 221 |
+
405,
|
| 222 |
+
839,
|
| 223 |
+
591,
|
| 224 |
+
859
|
| 225 |
+
],
|
| 226 |
+
"page_idx": 1
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"type": "text",
|
| 230 |
+
"text": "81 of removing all structures in $M$ , subject to a constraint on the overall pruning ratio. To circumvent \n82 this exponentially large search space, we approximate the loss up to second order, so that ",
|
| 231 |
+
"bbox": [
|
| 232 |
+
147,
|
| 233 |
+
90,
|
| 234 |
+
825,
|
| 235 |
+
121
|
| 236 |
+
],
|
| 237 |
+
"page_idx": 2
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"type": "equation",
|
| 241 |
+
"img_path": "images/ab8158d81d23deb50ee177cfcd8abb5c2ceac0565709429364302ae33bd341a0.jpg",
|
| 242 |
+
"text": "$$\n\\lambda _ { 2 } ( M ) = \\left| \\sum _ { s \\in M } \\theta _ { s } ^ { T } \\frac { d \\mathcal { L } ( \\theta ) } { d \\theta } - \\frac { 1 } { 2 } \\sum _ { s , s ^ { \\prime } \\in M } \\theta _ { s } ^ { T } \\frac { d ^ { 2 } \\mathcal { L } ( \\theta ) } { d \\theta d \\theta ^ { T } } \\theta _ { s ^ { \\prime } } \\right|\n$$",
|
| 243 |
+
"text_format": "latex",
|
| 244 |
+
"bbox": [
|
| 245 |
+
330,
|
| 246 |
+
122,
|
| 247 |
+
673,
|
| 248 |
+
172
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "83 collapses to single-structure contributions plus pairwise correlations; note that the latter include interactions among the weights within a single 84 $s = s ^ { \\prime }$ , which can be sizeable for large structures. ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
155,
|
| 257 |
+
175,
|
| 258 |
+
825,
|
| 259 |
+
204
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "85 The first-order terms $\\lambda _ { 1 } ( s ) : = \\theta _ { s } \\cdot d \\mathcal { L } ( \\theta ) / d \\theta \\in \\mathbb { R } ^ { P }$ in (1) are efficient to evaluate by computing the \n86 gradient $d { \\mathcal { L } } ( \\theta ) / d \\theta \\in \\mathbb { R } ^ { P }$ once and then a (sparse) dot product for every $s$ . In contrast to these first \n87 order terms, the network Hessian $H ( \\theta ) : = \\bar { d ^ { 2 } } \\mathcal { L } ( \\theta ) / d \\theta ^ { \\hat { 2 } } \\in \\mathbb { R } ^ { P \\times P }$ in (1) is prohibitively expensive to \n88 compute or store in full. We therefore propose two different schemes to efficiently overcome this \n89 obstacle. Each scheme entails its own way to select the pruning mask. We name the full methods \n90 SOSP-I (individual sensitivities) and SOSP-H (Hessian-vector product). ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
147,
|
| 268 |
+
208,
|
| 269 |
+
826,
|
| 270 |
+
294
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "91 2.1 SOSP-I: Saliency from individual sensitivities ",
|
| 277 |
+
"text_level": 1,
|
| 278 |
+
"bbox": [
|
| 279 |
+
147,
|
| 280 |
+
308,
|
| 281 |
+
529,
|
| 282 |
+
324
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 2
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "92 SOSP-I approximates each individual term $\\theta _ { s } ^ { T } H ( \\theta ) \\theta _ { s ^ { \\prime } }$ in (1) efficiently, as we will show in Eq. (6). \n93 We can therefore consider a modification of Eq. (1) in which the sensitivity is judged by considering \n94 all single and pairwise sensitivities individually: ",
|
| 289 |
+
"bbox": [
|
| 290 |
+
145,
|
| 291 |
+
333,
|
| 292 |
+
826,
|
| 293 |
+
377
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 2
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "equation",
|
| 299 |
+
"img_path": "images/7f034c478133fc08b0cad8320e63885aa4b26c8d2534c308d95a5708b0b3947c.jpg",
|
| 300 |
+
"text": "$$\n\\lambda _ { 2 } ^ { I } ( M ) = \\sum _ { s \\in M } \\left| \\theta _ { s } ^ { T } \\frac { d \\mathcal { L } ( \\theta ) } { d \\theta } \\right| + \\frac { 1 } { 2 } \\sum _ { s , s ^ { \\prime } \\in M } \\left| \\theta _ { s } ^ { T } H ( \\theta ) \\theta _ { s ^ { \\prime } } \\right| .\n$$",
|
| 301 |
+
"text_format": "latex",
|
| 302 |
+
"bbox": [
|
| 303 |
+
328,
|
| 304 |
+
378,
|
| 305 |
+
669,
|
| 306 |
+
420
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 2
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "text",
|
| 312 |
+
"text": "95 To avoid cancellations between signed contributions, we take absolute values because this measures \n96 the strengths of the individual sensitivities $\\lambda _ { 1 } ( s )$ and pairwise correlations $\\theta _ { s } ^ { T } H ( \\theta ) \\theta _ { s ^ { \\prime } }$ . While \n97 objectives other than $\\lambda _ { 2 } ^ { I }$ are equally possible in the method, including $\\lambda _ { 2 }$ and modifications with the \n98 absolute value not pulled in all the way, we found empirically that $\\bar { \\lambda _ { 2 } ^ { I } }$ performs best overall. \n99 Then, SOSP-I iteratively selects the structures to prune, based on the objective (2): Starting from \n100 an empty pruning mask $M = \\{ \\}$ , we iteratively add to $M$ the structure $s \\notin M$ that minimizes the \n101 overall sensitivity $\\lambda _ { 2 } ^ { I } ( M \\cup \\{ s \\} )$ . In practice, the algorithm pre-computes the matrix $Q \\in \\mathbb { R } ^ { S \\times S }$ , ",
|
| 313 |
+
"bbox": [
|
| 314 |
+
145,
|
| 315 |
+
422,
|
| 316 |
+
825,
|
| 317 |
+
479
|
| 318 |
+
],
|
| 319 |
+
"page_idx": 2
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"type": "text",
|
| 323 |
+
"text": "",
|
| 324 |
+
"bbox": [
|
| 325 |
+
143,
|
| 326 |
+
484,
|
| 327 |
+
825,
|
| 328 |
+
529
|
| 329 |
+
],
|
| 330 |
+
"page_idx": 2
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "equation",
|
| 334 |
+
"img_path": "images/9d667da2ecd43b5d7e8dc31d01bbe67828e7902e7b91062714c32f6ec2878c88.jpg",
|
| 335 |
+
"text": "$$\nQ _ { s , s ^ { \\prime } } : = \\frac { 1 } { 2 } \\left| \\theta _ { s } ^ { T } H ( \\theta ) \\theta _ { s ^ { \\prime } } \\right| + \\left| \\theta _ { s } ^ { T } \\frac { d \\mathcal { L } ( \\theta ) } { d \\theta } \\right| \\cdot \\delta _ { s = s ^ { \\prime } } ,\n$$",
|
| 336 |
+
"text_format": "latex",
|
| 337 |
+
"bbox": [
|
| 338 |
+
344,
|
| 339 |
+
531,
|
| 340 |
+
651,
|
| 341 |
+
565
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 2
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "102 and selects at each iteration a structure $s \\notin M$ to prune by ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
142,
|
| 350 |
+
569,
|
| 351 |
+
555,
|
| 352 |
+
584
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 2
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "equation",
|
| 358 |
+
"img_path": "images/b602ea31151d31256e99583f0468537b8314b1004bc5e9008f1836a0212843a5.jpg",
|
| 359 |
+
"text": "$$\n\\underset { s \\notin { \\cal M } } { \\arg \\operatorname* { m i n } } \\lambda _ { 2 } ^ { I } ( { \\cal M } \\cup s ) - \\lambda _ { 2 } ^ { I } ( { \\cal M } ) = \\underset { s \\notin { \\cal M } } { \\arg \\operatorname* { m i n } } \\left( Q _ { s , s } + 2 \\sum _ { s ^ { \\prime } \\in { \\cal M } } Q _ { s , s ^ { \\prime } } \\right) ,\n$$",
|
| 360 |
+
"text_format": "latex",
|
| 361 |
+
"bbox": [
|
| 362 |
+
282,
|
| 363 |
+
587,
|
| 364 |
+
715,
|
| 365 |
+
622
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 2
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "103 terminating at the desired pruning ratio. ",
|
| 372 |
+
"bbox": [
|
| 373 |
+
147,
|
| 374 |
+
626,
|
| 375 |
+
434,
|
| 376 |
+
641
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 2
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "text",
|
| 382 |
+
"text": "104 105 $\\begin{array} { r } { \\frac { 1 } { N } \\sum _ { n } \\nabla _ { \\theta } ^ { 2 } \\ell ( f _ { \\theta } \\dot { ( x _ { n } ) } , y _ { n } ) } \\end{array}$ te the Hessian terms those terms that involv $\\theta _ { s } ^ { T } H ( \\theta ) \\theta _ { s ^ { \\prime } }$ efficiently, we omit from sive second-order derivatives $\\nabla _ { { \\boldsymbol { \\theta } } } ^ { 2 } f _ { \\boldsymbol { \\theta } } ( { \\boldsymbol { x } } _ { n } )$ $\\begin{array} { r l } { H ( \\theta ) } & { { } = } \\end{array}$ \n106 of the NN outputs, while including second-order couplings due to . This is equivalent to approx \n107 imating $\\begin{array} { r } { H ( \\theta ) \\ \\tilde { \\ } \\approx H ( f _ { \\theta } ^ { l i n } ) : = \\frac { 1 } { N } \\sum _ { n } \\nabla _ { \\theta } ^ { 2 } \\ell ( f _ { \\theta } ^ { l i n } ( x _ { n } ) , \\tilde { \\ y } _ { n } ) } \\end{array}$ for the linearized $f _ { \\theta ^ { \\prime } } ( x ) \\approx f _ { \\theta ^ { \\prime } } ^ { l i n } ( \\stackrel { . . . } { x } ) : =$ \n108 $f _ { \\theta } ( x ) + \\phi ( x ) \\cdot ( \\theta ^ { \\prime } - \\theta )$ with $\\phi ( { \\boldsymbol { x } } ) : = \\nabla _ { \\theta } f _ { \\theta } ( { \\boldsymbol { x } } ) \\in \\mathbb { R } ^ { D \\times P }$ , which is well motivated by the NTK limit \n109 (Jacot et al., 2018) for large NNs at both initialization and after training. The terms in the sum become ",
|
| 383 |
+
"bbox": [
|
| 384 |
+
140,
|
| 385 |
+
645,
|
| 386 |
+
826,
|
| 387 |
+
733
|
| 388 |
+
],
|
| 389 |
+
"page_idx": 2
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"type": "equation",
|
| 393 |
+
"img_path": "images/280adf94d7b94c9e525b39b3ecd4965b65e8816cbb638a4a865f3f7dc45ced42.jpg",
|
| 394 |
+
"text": "$$\n\\nabla _ { \\boldsymbol { \\theta } } ^ { 2 } \\ell \\left( f _ { \\boldsymbol { \\theta } } ^ { l i n } ( x _ { n } ) , y _ { n } \\right) = \\boldsymbol { \\phi } ( x _ { n } ) ^ { T } R _ { n } \\boldsymbol { \\phi } ( x _ { n } ) ,\n$$",
|
| 395 |
+
"text_format": "latex",
|
| 396 |
+
"bbox": [
|
| 397 |
+
362,
|
| 398 |
+
736,
|
| 399 |
+
633,
|
| 400 |
+
756
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 2
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "110 where $R _ { n } \\ \\in \\ \\mathbb { R } ^ { D \\times D }$ is diagonal for squared loss, and has an additional rank-1 contribution for \n111 cross-entropy (see App. B). Similar Hessian approximations were employed before in NNs (Hassibi \n112 et al., 1993; Wang et al., 2019a; Peng et al., 2019) and also in the Gauss-Newton optimization method \n113 (Fletcher, 2013). Our final approximation is to use a random subsample of $N ^ { \\prime } < N$ data points: ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
142,
|
| 409 |
+
760,
|
| 410 |
+
825,
|
| 411 |
+
816
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 2
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "equation",
|
| 417 |
+
"img_path": "images/72560a22b30245b87fbc488d8e010d030480b8643a59896914c0df51f8334373.jpg",
|
| 418 |
+
"text": "$$\n\\theta _ { s } ^ { T } H ( \\theta ) \\theta _ { s ^ { \\prime } } \\approx \\frac { 1 } { N ^ { \\prime } } \\sum _ { n = 1 } ^ { N ^ { \\prime } } \\left( \\phi ( x _ { n } ) \\theta _ { s } \\right) ^ { T } R _ { n } \\left( \\phi ( x _ { n } ) \\theta _ { s ^ { \\prime } } \\right) .\n$$",
|
| 419 |
+
"text_format": "latex",
|
| 420 |
+
"bbox": [
|
| 421 |
+
330,
|
| 422 |
+
820,
|
| 423 |
+
666,
|
| 424 |
+
864
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 2
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "114 In practice, one pre-computes all (sparse) products $\\phi ( x _ { n } ) \\theta _ { s } \\in \\mathbb { R } ^ { D }$ starting from the efficient gradient \n115 $\\phi ( x _ { n } )$ , before aggregating a batch onto the terms $\\theta _ { s } ^ { T } H ( \\theta ) \\theta _ { s ^ { \\prime } }$ . Eq. (6) also has an interpretation as \n116 output correlations between certain network modifications, without using derivatives (App. C). \n118 SOSP-H treats the second-order terms in (1) in a way that is motivated by the limit of large pruning \n119 ratios: At high pruning ratios, the sum $\\sum _ { s ^ { \\prime } \\in M } \\theta _ { s ^ { \\prime } }$ in (1) can be approximated by $\\begin{array} { r } { \\sum _ { s ^ { \\prime } = 1 } ^ { \\bar { S } } \\theta _ { s ^ { \\prime } } = : } \\end{array}$ \n120 $\\theta _ { s t r u c }$ (this equals if every NN weight belongs to some structure $s$ ). The second-order term \n121 $\\begin{array} { r } { \\sum _ { s , s ^ { \\prime } \\in M } \\theta _ { s } ^ { T } \\dot { H ( \\theta ) } \\theta _ { s ^ { \\prime } } \\approx \\left( \\sum _ { s \\in M } \\theta _ { s } ^ { T } \\right) \\left( \\check { H } ( \\theta ) \\theta _ { s t r u c } \\right) } \\end{array}$ \u0001 thus becomes tractable since the Hessian-vector \n122 product $H ( \\theta ) \\theta _ { s t r u c }$ is efficiently computable by a variant of the backpropagation algorithm. To \n123 account for each structure $s$ and for the first- and second-order contributions separately, as above, we \n124 place absolute value signes in (1) so as to arrive at the final objective $\\begin{array} { r } { \\lambda _ { 2 } ^ { H } ( M ) \\overset { \\cdot } { : = } \\sum _ { s \\in M } \\lambda _ { 2 } ^ { H } ( s ) } \\end{array}$ with ",
|
| 431 |
+
"bbox": [
|
| 432 |
+
140,
|
| 433 |
+
868,
|
| 434 |
+
825,
|
| 435 |
+
912
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 2
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "",
|
| 442 |
+
"bbox": [
|
| 443 |
+
142,
|
| 444 |
+
116,
|
| 445 |
+
826,
|
| 446 |
+
219
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 3
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "equation",
|
| 452 |
+
"img_path": "images/cbbc370d8b663f4a4fcfdf15d51405128076e1828ee02b0ebaac3d0b7074aeaa.jpg",
|
| 453 |
+
"text": "$$\n\\lambda _ { 2 } ^ { H } ( s ) : = \\left| \\theta _ { s } ^ { T } \\frac { d \\mathcal { L } ( \\theta ) } { d \\theta } \\right| + \\frac { 1 } { 2 } \\left| \\theta _ { s } ^ { T } \\big ( H ( \\theta ) \\theta _ { s t r u c } \\big ) \\right| .\n$$",
|
| 454 |
+
"text_format": "latex",
|
| 455 |
+
"bbox": [
|
| 456 |
+
344,
|
| 457 |
+
222,
|
| 458 |
+
651,
|
| 459 |
+
257
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 3
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "125 The last term measures the correlations between one structure $s$ and all other prunable structures, \n126 although some of these may cancel unlike for SOSP-I. To minimize $\\lambda _ { 2 } ^ { H } ( M )$ , SOSP-H starts from an \n127 empty pruning mask $M = \\{ \\}$ , and successively adds to $M$ a structure $s \\notin M$ with smallest $\\lambda _ { 2 } ^ { H } ( s )$ . \n128 Unlike the Gauss-Newton approximation in SOSP-I, SOSP-H uses the exact Hessian $H ( \\theta )$ , but can \n129 therefore not account for individual absolute $s { - } s ^ { \\prime }$ -correlations, see Eq. (7) vs. (2). Both methods \n130 reduce to the same first-order pruning method when neglecting the second order (i.e. $H ( \\theta ) : = 0 \\rangle$ ). ",
|
| 466 |
+
"bbox": [
|
| 467 |
+
142,
|
| 468 |
+
258,
|
| 469 |
+
825,
|
| 470 |
+
301
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 3
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "",
|
| 477 |
+
"bbox": [
|
| 478 |
+
147,
|
| 479 |
+
305,
|
| 480 |
+
825,
|
| 481 |
+
349
|
| 482 |
+
],
|
| 483 |
+
"page_idx": 3
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"type": "text",
|
| 487 |
+
"text": "2.3 Computational complexity ",
|
| 488 |
+
"text_level": 1,
|
| 489 |
+
"bbox": [
|
| 490 |
+
171,
|
| 491 |
+
363,
|
| 492 |
+
397,
|
| 493 |
+
378
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 3
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "text",
|
| 499 |
+
"text": "132 We detail here the computational complexities of our methods (for the experimental evaluation see \n133 Sec. 3.2). The approximation of $Q$ in (3) requires complexity $O \\left( N ^ { \\prime } D ( F + P ) \\right) = O ( N ^ { \\prime } D F )$ for \n134 computing all $\\bar { \\phi ( \\boldsymbol { x } _ { n } ) } \\theta _ { s }$ , where $F \\geq P$ denotes the cost of one forward pass through the network \n135 $F \\approx P$ for fully-connected NNs), plus $O ( N ^ { \\prime } D S ^ { 2 } )$ for the sum in (6). This is tractable for modern \n136 NNs, while including the exact $H ( \\theta )$ would have complexity at least $O ( N ^ { \\prime } D S F )$ . Once $Q$ has been \n137 computed, the selection procedure based on (4) has overall complexity ${ \\cal O } ( S ^ { 3 } )$ , which is feasible for \n138 most modern convolutional NNs (Sec. 3.2). The total complexity of the SOSP-I method is thus ",
|
| 500 |
+
"bbox": [
|
| 501 |
+
140,
|
| 502 |
+
388,
|
| 503 |
+
825,
|
| 504 |
+
486
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 3
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "equation",
|
| 510 |
+
"img_path": "images/355190e72c986a8bace9c3645e27af4718e9e97ad096f3dcbb72ced8ee77f60c.jpg",
|
| 511 |
+
"text": "$$\nO ( N ^ { \\prime } D F ) + O ( N ^ { \\prime } D S ^ { 2 } ) + O ( S ^ { 3 } ) .\n$$",
|
| 512 |
+
"text_format": "latex",
|
| 513 |
+
"bbox": [
|
| 514 |
+
379,
|
| 515 |
+
488,
|
| 516 |
+
619,
|
| 517 |
+
506
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 3
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "139 SOSP-H has computational complexity $O ( N ^ { \\prime } D F )$ to compute the sensitivities (7), which is com \n140 parable to computing the sensitivities $Q$ in SOSP-I when the number of structures is low $( S ^ { 2 } \\lesssim F )$ . \n141 Together with the sorting of the saliency values $\\lambda _ { 2 } ^ { H } ( s )$ , the overall complexity of SOSP-H is thus ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
142,
|
| 526 |
+
513,
|
| 527 |
+
826,
|
| 528 |
+
558
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 3
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "equation",
|
| 534 |
+
"img_path": "images/2ff3079da0b303e188346e8db73c0ae3a172446d97471b1f0647b4fbfebbc75a.jpg",
|
| 535 |
+
"text": "$$\nO ( N ^ { \\prime } D F ) + O ( S \\log ( S ) ) .\n$$",
|
| 536 |
+
"text_format": "latex",
|
| 537 |
+
"bbox": [
|
| 538 |
+
406,
|
| 539 |
+
559,
|
| 540 |
+
588,
|
| 541 |
+
577
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 3
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "142 Due to its weak dependency on $S$ , in practice, SOSP-H efficiently scales to large modern networks \n143 and may even be used for unstructured second-order pruning, where $S = P$ . \n144 Both of our methods scale much better than naively including all off-diagonal Hessian terms, which \n145 is intractable for modern NNs due to its $O ( N ^ { \\prime } D \\dot { S } F )$ scaling. Since SOSP-I builds on individual \n146 absolute sensitivities and the established Gauss-Newton approximation, we use SOSP-I in the \n147 following in particular to validate the more efficient SOSP-H method. ",
|
| 548 |
+
"bbox": [
|
| 549 |
+
145,
|
| 550 |
+
579,
|
| 551 |
+
825,
|
| 552 |
+
607
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 3
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "",
|
| 559 |
+
"bbox": [
|
| 560 |
+
142,
|
| 561 |
+
613,
|
| 562 |
+
825,
|
| 563 |
+
669
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 3
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "148 3 Results ",
|
| 570 |
+
"text_level": 1,
|
| 571 |
+
"bbox": [
|
| 572 |
+
148,
|
| 573 |
+
688,
|
| 574 |
+
266,
|
| 575 |
+
704
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 3
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "149 To evaluate our methods, we train and prune VGGs (Simonyan & Zisserman, 2014), ResNets (He \n150 et al., 2016), and DenseNets (Huang et al., 2017) on the Cifar10/100 (Krizhevsky et al., 2009) and \n151 ImageNet (Deng et al., 2009) datasets. Stochastic gradient descent with an initial learning rate of 0.1, \n152 a momentum of 0.9 and weight decay of $1 0 ^ { - 4 }$ is used to train these networks. For ResNet-32/56 and \n153 VGG-Net on Cifar10/100, we use a batch size of 128, train for 200 epochs and reduce the learning rate \n154 by a factor of 10 after 120 and 160 epochs. To fine-tune the network after pruning, we exactly repeat \n155 this learning rate schedule. For DenseNet-40 on Cifar10/100, we train for 300 epochs and reduce \n156 the learning rate after 150 and 225 epochs. For ResNets on ImageNet, we use a batch size of 256, \n157 train for 128 epochs and use a cosine learning rate decay. For all networks, we prune feature maps \n158 (i.e. channels) from all layers except the last fully-connected layer; for ResNets, we also exclude the \n159 downsampling-path from pruning. We approximate the Hessians by a subsample of size $N ^ { \\prime } = 1 0 0 0$ \n160 (see Sec. 2.1). We report the best or average final test accuracy over 3 trials if not noted otherwise. \n161 The experiments were run on an internal cluster with Nvidia Tesla V100 GPUs. Reproducing the \n162 results presented in this paper would take about 60 days of GPU run-time. ",
|
| 582 |
+
"bbox": [
|
| 583 |
+
140,
|
| 584 |
+
717,
|
| 585 |
+
826,
|
| 586 |
+
911
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 3
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "table",
|
| 592 |
+
"img_path": "images/8bc2eab2424773321ebf10560b9fdae4d2113c81a8f118678eda85d060cc6a3d.jpg",
|
| 593 |
+
"table_caption": [
|
| 594 |
+
"Table 1: Comparison of SOSP to other global pruning methods for high pruning ratios. The comparison for moderate pruning ratios is defered to the appendix (see App. A.1). We tuned our pruning ratios to similar values as reported by the referred methods. To ensure identical implementations of the network models in PyTorch, reference numbers are taken from Wang et al. (2019a) and (Mingjie & Zhuang, 2018). In accordance with all referred methods, we report the mean and standard deviation of the best accuracies observed during fine-tuning. For final accuracies after fine-tuning see App. A.3. \\* denotes the baseline model. Both SOSP methods perform either on par or outperform the competing global pruning methods. "
|
| 595 |
+
],
|
| 596 |
+
"table_footnote": [],
|
| 597 |
+
"table_body": "<table><tr><td>Dataset</td><td colspan=\"3\">Cifar10</td><td colspan=\"3\">Cifar100</td></tr><tr><td>Method</td><td>Test acc. (%)</td><td>Reduct. in weights (%)</td><td>Reduct. in MACs (%)</td><td>Test acc. (%)</td><td>Reduct. in weights (%)</td><td>Reduct. in MACs (%)</td></tr><tr><td>VGG-Net*</td><td>94.18</td><td></td><td></td><td>73.45</td><td>=</td><td></td></tr><tr><td>NN Slimming</td><td>85.01</td><td>97.85</td><td>97.89</td><td>58.69</td><td>97.76</td><td>94.09</td></tr><tr><td>NN Slim.+Li</td><td>91.99</td><td>97.93</td><td>86.00</td><td>57.07</td><td>97.59</td><td>93.86</td></tr><tr><td>C-OBD</td><td>92.34 ± 0.18</td><td>97.68 ± 0.02</td><td>77.39 ± 0.36</td><td>58.07 ± 0.60</td><td>97.97 ± 0.04</td><td>77.55 ± 0.25</td></tr><tr><td>EigenDamage</td><td>92.29 ± 0.21</td><td>97.15 ± 0.04</td><td>86.51 ± 0.26</td><td>65.18 ± 0.10</td><td>97.31 ± 0.01</td><td>88.63 ±0.12</td></tr><tr><td>SOSP-I (ours)</td><td>92.62 ± 0.14</td><td>97.79 ± 0.02</td><td>83.52 ±0.29</td><td>64.20 ± 0.23</td><td>97.83 ± 0.04</td><td>87.02 ± 0.20</td></tr><tr><td>SOSP-H(ours)</td><td>92.71 ± 0.19</td><td>97.81 ± 0.01</td><td>86.32 ±0.29</td><td>64.59 ± 0.35</td><td>97.81 ± 0.01</td><td>86.32 ± 0.29</td></tr><tr><td>ResNet-32*</td><td>95.30</td><td></td><td></td><td>76.8</td><td></td><td></td></tr><tr><td>C-OBD</td><td>91.75 ± 0.42</td><td>97.30 ± 0.06</td><td>93.50 ± 0.37</td><td>59.52 ± 0.24</td><td>97.74 ± 0.08</td><td>94.88 ±0.08</td></tr><tr><td>EigenDamage</td><td>93.05 ± 0.23</td><td>96.05 ± 0.03</td><td>94.74 ± 0.02</td><td>65.72 ± 0.04</td><td>95.21 ± 0.04</td><td>94.62 ± 0.06</td></tr><tr><td>SOSP-I(ours)</td><td>92.43 ± 0.09</td><td>95.47 ± 0.33</td><td>94.07 ± 0.66</td><td>67.36 ± 0.46</td><td>92.69 ± 0.07</td><td>95.63 ± 0.13</td></tr><tr><td>SOSP-H(ours)</td><td>92.23 ±0.12</td><td>95.26 ±0.10</td><td>94.45 ±0.40</td><td>68.42 ± 0.21</td><td>94.08 ± 0.21</td><td>95.06 ±0.14</td></tr><tr><td>DenseNet-40*</td><td>94.58</td><td></td><td></td><td>74.11</td><td>=</td><td>=</td></tr><tr><td>NN Slim. + L1</td><td>94.22</td><td>54.21</td><td></td><td>73.19</td><td>54.21</td><td>=</td></tr><tr><td>SOSP-I(ours)</td><td>94.21 ± 0.04</td><td>47.00 ± 0.10</td><td>36.35 ± 0.12</td><td>73.05 ± 0.11</td><td>45.22 ±0.10</td><td>42.05 ±1.16</td></tr><tr><td>SOSP-H(ours)</td><td>94.23 ± 0.05</td><td>49.39 ± 0.65</td><td>38.86 ±0.70</td><td>73.05 ± 0.24</td><td>48.58 ± 0.22</td><td>42.05 ± 0.35</td></tr></table>",
|
| 598 |
+
"bbox": [
|
| 599 |
+
202,
|
| 600 |
+
208,
|
| 601 |
+
795,
|
| 602 |
+
434
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 4
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "image",
|
| 608 |
+
"img_path": "images/48af209a8c51f5bcc0cf61ffe529ff0027302b639f0fbc2a992cbd6be72f9970.jpg",
|
| 609 |
+
"image_caption": [
|
| 610 |
+
"Figure 1: Comparison of SOSP to local, i.e. layer-wise, pruning methods on Cifar10. The best final test accuracy is plotted over the effective number of model parameters (a, c) and MACs (b, d). A tabular representation as well as statistics across trials are shown in App. A.4. SOSP outperforms all competing layer-wise pruning methods, especially over the number of effective parameters. "
|
| 611 |
+
],
|
| 612 |
+
"image_footnote": [],
|
| 613 |
+
"bbox": [
|
| 614 |
+
199,
|
| 615 |
+
452,
|
| 616 |
+
795,
|
| 617 |
+
597
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 4
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "163 3.1 Comparison to Literature ",
|
| 624 |
+
"text_level": 1,
|
| 625 |
+
"bbox": [
|
| 626 |
+
143,
|
| 627 |
+
684,
|
| 628 |
+
392,
|
| 629 |
+
699
|
| 630 |
+
],
|
| 631 |
+
"page_idx": 4
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"type": "text",
|
| 635 |
+
"text": "164 Here we benchmark the performance of our SOSP methods against existing pruning algorithms on \n165 different datasets and networks. First, we compare against other recent global pruning methods, \n166 then against local structured pruning methods, i.e. with pre-specified layer-wise pruning rates. In all \n167 comparisons we report the achieved test accuracy, the number of parameters of the pruned network \n168 and the MACs (often referred to as FLOPs). To facilitate direct comparisons, we report test accuracies \n169 in the same way as the competing methods (e.g. best trial or average over trials), but additionally \n170 report mean and standard deviation of the test error for our models in App. A. Our count of the \n171 network parameters and MACs is based on the actual pruned network architecture (cf. App. D), even \n172 though our saliency measure associates with each structure only the weights into this structure. \n173 We first compare our SOSP methods with global pruning methods on VGG-Net, ResNet-32 and \n174 DenseNet-40. We use the same variants and implementations of these networks as used by Neural \n175 Network Slimming (NN Slimming; Liu et al., 2017) as well as EigenDamage and C-OBD (Wang \n176 et al., 2019a), e.g. capping the layer-wise ratio of removed structures at $9 5 \\%$ for VGGs to prevent \n177 layer collapse and increasing the width of ResNet-32 by a factor 4. C-OBD is a structured variant of \n178 the original OBD algorithm (Hassibi et al., 1993), which neglects all cross-structure correlations that, \n179 in contrast, SOSP takes into account. The results over three trials for high pruning ratios are shown in \n180 Tab. 1 and for moderate pruning ratios in App. A.1. To enable the comparison to NN Slimming on \n181 an already pretrained VGG, we included the results of NN Slimming applied to a baseline network \n182 obtained without modifications to its initial training, i.e. without $L _ { 1 }$ -regularization on the batch \n183 normalization parameters. For moderate pruning rates, all pruning schemes approximately retain the \n184 baseline performance for VGG-Net and ResNet-32 on Cifar10 and VGG-Net on Cifar100 (see Tab. \n185 3). The only exception is the accuracy for C-OBD applied to VGG-Net on Cifar100, which drops by \n186 approximately $1 \\%$ . For ResNet-32 on Cifar100 the accuracy after pruning is approximately $1 \\%$ lower \n187 than the baseline, for all pruning schemes. In the regime of larger pruning ratios of approximately $9 7 \\%$ , \n188 SOSP and EigenDamage significantly outperform NN Slimming and C-OBD. SOSP performs on par \n189 with EigenDamage, except for ResNet-32 on Cifar100, where SOSP outperforms EigenDamage by \n190 almost ${ \\bar { 3 } } \\%$ . This result indicates that SOSP outperforms all other methods especially in the regime of \n191 baseline networks that have relatively few parameters already and on difficult datasets most relevant \n192 for applications. For DenseNet-40, we achieve similar results compared to NN Slimming. However, \n193 note that NN Slimming requires the modification of network pretraining. \n194 Next, we compare our SOSP methods against four recently published local, i.e. layer-wise, pruning \n195 algorithms: FPGM He et al. (2019), GAL (Lin et al., 2019), CCP (Peng et al., 2019), Variational \n196 Pruning (VP; Zhao et al., 2019) and HRank (Lin et al., 2020). For ResNet-56, our SOSP methods \n197 outperform all other methods across all pruning ratios (see Fig. 1a and b). For DenseNet-40, SOSP \n198 achieves better accuracies when compared over parameters (Fig. 1c) and is on par with the best other \n199 methods over MACs (Fig. 1d). The reason for this discrepancy is probably that the SOSP objective is \n200 agnostic to the number of MACs (image size) in each individual structure. ",
|
| 636 |
+
"bbox": [
|
| 637 |
+
140,
|
| 638 |
+
710,
|
| 639 |
+
825,
|
| 640 |
+
835
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 4
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "",
|
| 647 |
+
"bbox": [
|
| 648 |
+
142,
|
| 649 |
+
842,
|
| 650 |
+
823,
|
| 651 |
+
911
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 4
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "image",
|
| 657 |
+
"img_path": "images/483c6c0104155e99ede5d9497d8add4cd19500ef371eda5c32c92b05467714a5.jpg",
|
| 658 |
+
"image_caption": [
|
| 659 |
+
"Figure 2: Runtime to calculate the pruning masks for ResNet-56 on Cifar10 over the width of the network for SOSP-I and SOSP-H. We vary the width of the network by increasing the width of each layer by a multiplicative factor. "
|
| 660 |
+
],
|
| 661 |
+
"image_footnote": [],
|
| 662 |
+
"bbox": [
|
| 663 |
+
209,
|
| 664 |
+
98,
|
| 665 |
+
362,
|
| 666 |
+
212
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 5
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "table",
|
| 672 |
+
"img_path": "images/17ae1e51113432217a45df2f703767ec8c89d255da5fe854a82753152a18e577.jpg",
|
| 673 |
+
"table_caption": [
|
| 674 |
+
"Table 2: Best final test accuracies and pruning ratios (PR) across 2 trials on ImageNet. For comparison to CCP, we also provide their alternative MAC count (for details, see App. D). \\* denotes SOSP with kernel scaling (see main text). SOSP outperforms all three competing methods. "
|
| 675 |
+
],
|
| 676 |
+
"table_footnote": [],
|
| 677 |
+
"table_body": "<table><tr><td>Model</td><td>Top-1% (Gap)</td><td>Parameters (PR)</td><td>MACs (PR)</td><td>Alt. MACs (PR)</td></tr><tr><td>ResNet-18</td><td>69.76 (0.0)</td><td>11.7M (0%)</td><td>1.82B (0%)</td><td>1.82B (0%)</td></tr><tr><td>SOSP (ours)</td><td>69.63 (0.13)</td><td>7.12M (39%)</td><td>1.37B (24%)</td><td>1.31B (28%)</td></tr><tr><td>FPGM</td><td>68.41 (1.87)</td><td>7.10M (39%)</td><td>1.06B (41%)</td><td></td></tr><tr><td>SOSP (ours)</td><td>68.78 (0.98)</td><td>6.42M (45%)</td><td>1.29B (29%)</td><td>1.20B (34%)</td></tr><tr><td>ResNet-50</td><td>76.15 (0.0)</td><td>25.5M (0%)</td><td>3.85B (0%)</td><td>3.85B (0%)</td></tr><tr><td>SOSP (ours)</td><td>76.56(-0.41)</td><td>19.9M(22%)</td><td>3.06B(21%)</td><td>2.72B(29%)</td></tr><tr><td>SOSP*(ours)</td><td>76.60 (-0.45)</td><td>17.9M (30%)</td><td>2.79B (28%)</td><td>2.47B (36%)</td></tr><tr><td>HRank</td><td>74.98 (1.17)</td><td>16.2M(36%)</td><td>2.30B (44%)</td><td></td></tr><tr><td>FPGM</td><td>75.59 (0.56)</td><td>15.9M (37%)</td><td>2.36B (42%)</td><td></td></tr><tr><td>SOSP (ours)</td><td>75.85 (0.30)</td><td>15.4M (40%)</td><td>2.44B (27%)</td><td>1.97B (49%)</td></tr><tr><td>HRank</td><td>71.98 (4.17)</td><td>13.8M (46%)</td><td>1.55B (62%)</td><td></td></tr><tr><td>CCP</td><td>75.21 (0.94)</td><td></td><td></td><td>1.77B (54%)</td></tr><tr><td>SOSP*(ours)</td><td>75.21 (0.94)</td><td>13.0M (49%)</td><td>2.13B (45%)</td><td>1.68B (56%)</td></tr><tr><td>SOSP (ours)</td><td>74.39 (1.76)</td><td>11.8M (54%)</td><td>1.89B (51%)</td><td>1.38B (64%)</td></tr><tr><td>SOSP*(ours)</td><td>73.38 (2.77)</td><td>9.9M (61%)</td><td>1.58B (59%)</td><td>1.10B (72%)</td></tr></table>",
|
| 678 |
+
"bbox": [
|
| 679 |
+
428,
|
| 680 |
+
166,
|
| 681 |
+
815,
|
| 682 |
+
329
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 5
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "",
|
| 689 |
+
"bbox": [
|
| 690 |
+
140,
|
| 691 |
+
357,
|
| 692 |
+
825,
|
| 693 |
+
577
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 5
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "",
|
| 700 |
+
"bbox": [
|
| 701 |
+
142,
|
| 702 |
+
583,
|
| 703 |
+
825,
|
| 704 |
+
680
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 5
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "3.2 Scalability and application to large-scale datasets ",
|
| 711 |
+
"text_level": 1,
|
| 712 |
+
"bbox": [
|
| 713 |
+
173,
|
| 714 |
+
699,
|
| 715 |
+
553,
|
| 716 |
+
713
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 5
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "Before going to large datasets, we compare the scalability of our methods SOSP-I and SOSP-H. As the preceding section shows, both methods perform basically on par with each other in terms of accuracy. This confirms that SOSP-H is not degraded by the approximations leading to the efficient Hessian-vector product, or is helped by use of the exact Hessian. In terms of efficiency, however, SOSP-H shows clear advantages compared to SOSP-I, for which the algorithm to select the structures to be pruned scales with ${ \\cal O } ( \\bar { \\cal S } ^ { 3 } )$ (see Sec. 2.3) potentially dominating the overall runtime for large-scale networks. Measurements of the actual runtimes show that already for medium-sized networks SOSP-H is more efficient than SOSP-I (Fig. 2). Since SOSP-I becomes impractical for large-scale networks, for the ImageNet dataset we will only evaluate SOSP-H and refer to it as SOSP. ",
|
| 723 |
+
"bbox": [
|
| 724 |
+
171,
|
| 725 |
+
724,
|
| 726 |
+
825,
|
| 727 |
+
849
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 5
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "text",
|
| 733 |
+
"text": "211 On ImageNet, we compare our results to literature for ResNet-18 and ResNet-50, see Tab. 2. Because \n212 SOSP assesses the sensitivity of each structure independently of the contributed MACs, it has a \n213 bias towards pruning small-scale structures. This tendency is strongest for ResNet-50, due to its \n214 $1 \\times 1$ -convolutions. Since these $1 \\times 1$ -convolutions tend to contribute disproportionately little to the \n215 overall number of MACs, we devised a scaled variant of SOSP, which divides the saliency of every \n216 structure by the kernel size (e.g. 1, 3 or 7). Compared to the vanilla SOSP, the scaled variant of SOSP \n217 is able to remove larger percentages of MACs with similar drops in accuracy (see Tab. 2). \n18 For both networks SOSP outperforms HRank and FPGM, especially when considering the main \n19 objective of SOSP, which is to reduce the number of parameters or structures. Since CCP uses a \n20 different way of calculating the MACs, which leads to consistently higher pruning ratios, we added \nan alternative MAC count to enable a fair comparison (for details, see App. D). Since HRank and \n22 FPGM do not mention their MAC counting convention, we assume they use the same convention \n23 as we do. Taking this into account, our scaled SOSP variant is able to prune more MACs than CCP, \n4 while having the same final accuracy. ",
|
| 734 |
+
"bbox": [
|
| 735 |
+
142,
|
| 736 |
+
856,
|
| 737 |
+
823,
|
| 738 |
+
911
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 5
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "image",
|
| 744 |
+
"img_path": "images/8fb16683ecd07c84d01e7d126b43a3a46dffafe4c8863c75d02039274161673b.jpg",
|
| 745 |
+
"image_caption": [
|
| 746 |
+
"Figure 3: Comparison between pruning after training and at initialization on Cifar10. Both pruning schemes, train-pruning (a) and init-pruning (b), train the network for the same overall number of epochs, but generate and apply the pruning masks at different point in times. The average and standard deviation of the test accuracy across 3 trials is plotted against the number of model parameters for ResNet-56 (top row; c) and VGG (bottom row; f). For a single trial, in which overall $5 0 \\%$ of the structures are pruned, we visualize the pruning masks of train-pruning and init-pruning by showing the layer-wise pruning ratios in (d, g) and (e, h), respectively. "
|
| 747 |
+
],
|
| 748 |
+
"image_footnote": [],
|
| 749 |
+
"bbox": [
|
| 750 |
+
197,
|
| 751 |
+
94,
|
| 752 |
+
789,
|
| 753 |
+
282
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 6
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "",
|
| 760 |
+
"bbox": [
|
| 761 |
+
142,
|
| 762 |
+
417,
|
| 763 |
+
825,
|
| 764 |
+
460
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 6
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "",
|
| 771 |
+
"bbox": [
|
| 772 |
+
155,
|
| 773 |
+
467,
|
| 774 |
+
825,
|
| 775 |
+
564
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 6
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "3.3 Pruning at Initialization ",
|
| 782 |
+
"text_level": 1,
|
| 783 |
+
"bbox": [
|
| 784 |
+
173,
|
| 785 |
+
580,
|
| 786 |
+
382,
|
| 787 |
+
594
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 6
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "text",
|
| 793 |
+
"text": "Traditionally, pruning methods are applied to pretrained networks, as also done in the previous sections, but recently there has been growing attention on pruning at initialization following the works of Lee et al. (2018) and Frankle & Carbin (2018). Since SOSP employs the absolute value of the sensitivities, it can also be applied to a randomly initialized network without any modifications. Thus, SOSP can also be seen as an efficient second-order generalization of SNIP (Lee et al., 2018; van Amersfoort et al., 2020). While EigenDamage can in principle be modified and applied to a randomly initialized network, NN Slimming can not be applied at initialization. ",
|
| 794 |
+
"bbox": [
|
| 795 |
+
173,
|
| 796 |
+
606,
|
| 797 |
+
825,
|
| 798 |
+
703
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 6
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "text",
|
| 804 |
+
"text": "Usually pruning at initialization leads to worse accuracies than pruning after training (Liu et al., 2018). However, pruning an already trained network is often followed by fine-tuning effectively training the network twice (Fig. 3a). For comparability with pruning at initialization, we unify the overall training schedule between these two settings and consequently apply two training cycles after pruning the randomly initialized network (Fig. 3b; for further discussion, see App. A.5). ",
|
| 805 |
+
"bbox": [
|
| 806 |
+
174,
|
| 807 |
+
709,
|
| 808 |
+
825,
|
| 809 |
+
779
|
| 810 |
+
],
|
| 811 |
+
"page_idx": 6
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"type": "text",
|
| 815 |
+
"text": "We observe that applying SOSP at initialization performs almost equally well than applying SOSP after training (see ResNet-56 and VGG in Fig. 3c and f, respectively). In conclusion, applying SOSP at initialization can significantly reduce the time and resources required for network training with no or only minor degradation in accuracy. ",
|
| 816 |
+
"bbox": [
|
| 817 |
+
176,
|
| 818 |
+
785,
|
| 819 |
+
825,
|
| 820 |
+
840
|
| 821 |
+
],
|
| 822 |
+
"page_idx": 6
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"type": "text",
|
| 826 |
+
"text": "3.4 Identifying & Removing Architectural Bottlenecks ",
|
| 827 |
+
"text_level": 1,
|
| 828 |
+
"bbox": [
|
| 829 |
+
173,
|
| 830 |
+
857,
|
| 831 |
+
563,
|
| 832 |
+
872
|
| 833 |
+
],
|
| 834 |
+
"page_idx": 6
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"type": "text",
|
| 838 |
+
"text": "43 Even though the previous section highlighted that applying SOSP after training and at initialization \n244 results in comparable accuracies, the pruning masks differ between these two scenarios (compare Fig. \n245 3d and g to e and h, resp.). Despite this difference a common feature of all masks is that some layers \n246 are barely pruned or not pruned at all while others are pruned by up to $8 0 \\%$ . This could indicate \n247 towards architectural bottlenecks. We consider a layer an architectural bottleneck if the respective \n248 layer has a considerably lower pruning ratio compared to the other layers. The low pruning ratio of \n249 bottleneck layers indicates that the substructures (e.g. filters) have a high sensitivity. Thus, widening \n250 these layers could improve the overall performance and allow for even smaller models with higher \n251 accuracies. \n252 To utilize this insight we device a procedure that we call expand-pruning. The idea is to first calculate \n253 the pruning ratios of a trained network and then to identify architectural bottlenecks, i.e. the layers \n254 with the lowest pruning ratios. Next, we widen these layers by a factor of two, which has been \n255 empirically shown to work well. Finally, we randomly initialize, train, prune, and fine-tune the \n256 expanded network (for a schematic, see Fig. 4a). As a naive baseline that we call the widen-pruning \n257 procedure, we widen all layers in the network with a constant factor instead of widening specific \n258 layers. We choose the constant factor such that the overall number of parameters matches that of the \n259 expand-prune procedure (see width multiplier in Fig. 4). \n260 We evaluate the expand-pruning procedure for ResNet-56 and VGG on Cifar10, for which we expand \n261 the least pruned of the three main building blocks and the five least pruned layers, respectively (e.g., \n262 see width multipliers in Fig. 4c and f selected on the basis of the pruning masks shown in Fig. 3d and \n263 g, resp.). Note that for ResNet-56 a more fine-grained removal of bottlenecks, e.g. on layer level, \n264 is not possible without changing the overall ResNet architecture. In summary, a selective removal \n265 of bottlenecks results in smaller network models with higher accuracy than pruning the vanilla \n266 network or unselectively increasing the network size (compare expand-pruning to train-pruning and \n267 widen-pruning in Fig. 4b and e). While in principle any global pruning method could be used for \n268 the expand-pruning procedure, SOSP is especially suited since it does not require to modify the \n269 network architecture like EigenDamage and can also be applied at initialization unlike NN Slimming, \n270 allowing for a similar expand scheme directly at initialization (see App. A.6). ",
|
| 839 |
+
"bbox": [
|
| 840 |
+
151,
|
| 841 |
+
882,
|
| 842 |
+
826,
|
| 843 |
+
911
|
| 844 |
+
],
|
| 845 |
+
"page_idx": 6
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "image",
|
| 849 |
+
"img_path": "images/758a802e57d71e1fa13757cac17fb49c8b78c4a8458b376f4ee85ee474fcfc1d.jpg",
|
| 850 |
+
"image_caption": [
|
| 851 |
+
"Figure 4: We remove architectural bottlenecks found by SOSP using the expand-pruning scheme (a) on Cifar10. The width of blocks and layers with low pruning ratios in the train-pruning scheme (Fig. 3d and g) are expanded by a width multiplier of 2 (c, f). As a baseline, we uniformly expand all layers in the network by a factor 1.1 (d, g). The layer-wise pruning ratios of the enlarged network models are shown as bar plots in (c, d, f, g). The average and standard deviation of the test accuracy across 3 trials are shown over the number of model parameters (b, e). Note that the full ResNet-56 and VGG models have $0 . 8 6 \\cdot 1 0 ^ { 6 }$ and $2 0 \\cdot 1 0 ^ { 6 }$ parameters, respectively. "
|
| 852 |
+
],
|
| 853 |
+
"image_footnote": [],
|
| 854 |
+
"bbox": [
|
| 855 |
+
191,
|
| 856 |
+
97,
|
| 857 |
+
799,
|
| 858 |
+
275
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 7
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "",
|
| 865 |
+
"bbox": [
|
| 866 |
+
140,
|
| 867 |
+
412,
|
| 868 |
+
825,
|
| 869 |
+
511
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 7
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "text",
|
| 875 |
+
"text": "",
|
| 876 |
+
"bbox": [
|
| 877 |
+
140,
|
| 878 |
+
517,
|
| 879 |
+
825,
|
| 880 |
+
628
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 7
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "text",
|
| 886 |
+
"text": "",
|
| 887 |
+
"bbox": [
|
| 888 |
+
138,
|
| 889 |
+
633,
|
| 890 |
+
825,
|
| 891 |
+
786
|
| 892 |
+
],
|
| 893 |
+
"page_idx": 7
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "text",
|
| 897 |
+
"text": "271 4 Discussion ",
|
| 898 |
+
"text_level": 1,
|
| 899 |
+
"bbox": [
|
| 900 |
+
142,
|
| 901 |
+
808,
|
| 902 |
+
294,
|
| 903 |
+
825
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 7
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "In this work we have demonstrated the effectiveness and scalability of our second-order structured pruning algorithms (SOSP). While both algorithms perform similarly well, SOSP-H is more easily scalable to large scale networks and datasets. We highlighted two major features of our method. Firstly, SOSP can be applied at initialization with only minor degradation in accuracy, which drastically reduces the required time and resources for training. Secondly, we showed that the pruning masks ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
158,
|
| 912 |
+
842,
|
| 913 |
+
823,
|
| 914 |
+
911
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 7
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "text",
|
| 920 |
+
"text": "77 found by SOSP can be used to systematically detect and remove architectural bottlenecks, further \n278 improving the performance of pruned networks. \n279 Compared to other global pruning methods, SOSP captures correlations between structures by a sim \n280 ple, effective and scalable algorithm that neither requires to modify the training nor the architecture of \n281 the to be pruned network model and achieves comparable or better accuracies on benchmark datasets. \n282 The C-OBD algorithm (Wang et al., 2019a) is a structured generalization of the original unstructured \n283 OBD algorithm (LeCun et al., 1990). In contrast to OBD, C-OBD accounts for correlations within \n284 each structure, but does not capture correlations between different structures within and across layers. \n285 We show that considering these global correlations consistently improve the performance, especially \n286 for large pruning ratios (Tab. 1). This observation is further confirmed by an ablation study in which \n287 we neglect all cross-structure correlations significantly decreasing the performance under otherwise \n288 identical experimental settings (App. A.2). The objective of EigenDamage (Wang et al., 2019a) to \n289 include second order correlations is similar to ours, but the approaches are significantly different. \n290 EigenDamage uses the Fisher-approximation, which is similar to the Gauss-Newton approximation \n291 used for SOSP-I, and then, in addition to further approximations, apply low rank approximations \n292 that require the substitution of each layer by a bottleneck-block structure. Our SOSP method is \n293 simpler, easier to implement and does not require to modify the network architecture, but nevertheless \n294 performs on par with EigenDamage. The approach of NN Slimming (Liu et al., 2017) is more \n295 heuristic than SOSP and is easy to implement. However, networks need to be pretrained with $L _ { 1 }$ \n296 regularization on the batch-normalization parameters, otherwise the performance is severly harmed \n297 (Tab. 1 and 3). SOSP does not require any modifications to the network training and can be applied \n298 to any pretrained network. A recent variant of NN Slimming was developed by Zhuang et al. (2020) \n299 who optimize their hyperparameters to reduce the number of MACs. Using the number MACs as an \n300 objective for SOSP is left for future studies. \n301 In addition to the above comparison to other global pruning methods, we also compared our methods \n302 to simpler local pruning methods that keep the pruning ratios constant for each layer and, consequently, \n303 scale well to large-scale datasets. The pruning method closest to our SOSP-I method is the one by \n304 Peng et al. (2019). While both works consider second-order correlations between structures, theirs is \n305 based on a pruning objective different from our absolute sensitivites in $\\lambda _ { 2 } ^ { I }$ and considers only intra \n306 layer correlations. Furthermore, they employ an auxiliary classifier with a hyperparameter, yielding \n307 accuracy improvements that are difficult to disentangle from the effect of second-order pruning. Going \n308 beyond a constant pruning ratio for each layer Su et al. (2020) discovered, for ResNets, that pruning \n309 at initialization seems to preferentially prune initial layers and thus proposed a pruning scheme based \n310 on a “keep-ratio” per layer which increases with the depth of the network. Our experiments confirm \n311 some of the findings of Su et al. (2020), but we also show that the specific network architectures found \n312 by pruning can drastically vary between different networks and especially between initialization and \n313 after training (histograms in Fig. 3). While all local pruning methods specify pruning ratios for each \n314 layer, our method performs automatic selection across layers (histograms in Fig. 3). \n315 This automatic selection allows us to identify and remove architectural bottlenecks. However, our \n316 global pruning method has a bias towards pruning small structures, absent from local pruning methods, \n317 as the size of structures is usually identical within layers. We propose a simple solution by scaling \n318 each structure by the inverse of the kernel size which helps to remove some of the bias. Alternatively, \n319 to better reflect the computational costs in real-world applications, each structure could also be \n320 normalized by the number of its required MACs (like done by van Amersfoort et al., 2020). \n321 Recently, unstructured (Lee et al., 2018; Wang et al., 2019b; Tanaka et al., 2020) and structured \n322 (van Amersfoort et al., 2020; Hayou et al., 2021) pruning schemes that are applicable to networks \n323 at initialization were proposed. While these methods fail to achieve similar accuracies compared to \n324 pruning after training, our SOSP method in the init-pruning setting achieves accuracies comparable \n325 to pruning after training. ",
|
| 921 |
+
"bbox": [
|
| 922 |
+
150,
|
| 923 |
+
92,
|
| 924 |
+
825,
|
| 925 |
+
119
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 8
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "text",
|
| 931 |
+
"text": "",
|
| 932 |
+
"bbox": [
|
| 933 |
+
138,
|
| 934 |
+
125,
|
| 935 |
+
825,
|
| 936 |
+
430
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 8
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "",
|
| 943 |
+
"bbox": [
|
| 944 |
+
143,
|
| 945 |
+
435,
|
| 946 |
+
825,
|
| 947 |
+
628
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 8
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "",
|
| 954 |
+
"bbox": [
|
| 955 |
+
140,
|
| 956 |
+
636,
|
| 957 |
+
825,
|
| 958 |
+
718
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 8
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "",
|
| 965 |
+
"bbox": [
|
| 966 |
+
142,
|
| 967 |
+
724,
|
| 968 |
+
825,
|
| 969 |
+
795
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 8
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "text",
|
| 975 |
+
"text": "In accordance with Elsken et al. (2019), our results suggest that pruning can be used to optimize the architectural hyperparameters of established networks (Liu et al., 2018) or super-graphs (Noy et al., 2020). Instead of formulating this optimization as a pruning process, we envision our second-order sensitivity analysis to be a valuable tool to identify and remove bottlenecks to find good neural architectures more quickly. For example, whenever a building block of the neural network cannot be compressed, this building block may be considered a bottleneck of the architecture and could be inflated to improve the overall trade-off between accuracy and computational cost. ",
|
| 976 |
+
"bbox": [
|
| 977 |
+
168,
|
| 978 |
+
800,
|
| 979 |
+
825,
|
| 980 |
+
897
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 8
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "text",
|
| 986 |
+
"text": "",
|
| 987 |
+
"text_level": 1,
|
| 988 |
+
"bbox": [
|
| 989 |
+
171,
|
| 990 |
+
90,
|
| 991 |
+
267,
|
| 992 |
+
106
|
| 993 |
+
],
|
| 994 |
+
"page_idx": 9
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"type": "text",
|
| 998 |
+
"text": "References \n334 Blalock, D., Ortiz, J. J. G., Frankle, J., and Guttag, J. What is the state of neural network pruning? arXiv preprint arXiv:2003.03033, 2020. \n336 Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., and Fei-Fei, L. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009. \n339 Elsken, T., Metzen, J. H., and Hutter, F. Neural architecture search: A survey. Journal of Machine Learning Research, 20(55):1–21, 2019. Fletcher, R. Practical methods of optimization. John Wiley & Sons, 2013. Frankle, J. and Carbin, M. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations, 2018. Han, S., Pool, J., Tran, J., and Dally, W. Learning both weights and connections for efficient neural network. Advances in neural information processing systems, 28:1135–1143, 2015. Hassibi, B., Stork, D. G., and Wolff, G. J. Optimal brain surgeon and general network pruning. In IEEE international conference on neural networks, pp. 293–299. IEEE, 1993. Hayou, S., Ton, J.-F., Doucet, A., and Teh, Y. W. Robust pruning at initialization. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id= vXj_ucZQ4hA. \n351 He, K., Zhang, X., Ren, S., and Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. \n353 He, Y., Zhang, X., and Sun, J. Channel pruning for accelerating very deep neural networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1389–1397, 2017. He, Y., Liu, P., Wang, Z., Hu, Z., and Yang, Y. Filter pruning via geometric median for deep convolutional neural networks acceleration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4340–4349, 2019. Huang, G., Liu, Z., Van Der Maaten, L., and Weinberger, K. Q. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700–4708, 2017. \n361 Jacot, A., Gabriel, F., and Hongler, C. Neural tangent kernel: convergence and generalization in neural networks. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pp. 8580–8589, 2018. \nKrizhevsky, A., Hinton, G., et al. Learning multiple layers of features from tiny images. 2009. \n365 LeCun, Y., Denker, J. S., and Solla, S. A. Optimal brain damage. In Advances in neural information processing systems, pp. 598–605, 1990. \n367 Lee, N., Ajanthan, T., and Torr, P. Snip: Single-shot network pruning based on connection sensitivity. In International Conference on Learning Representations, 2018. Lin, M., Ji, R., Wang, Y., Zhang, Y., Zhang, B., Tian, Y., and Shao, L. Hrank: Filter pruning using high-rank feature map. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1529–1538, 2020. \n372 Lin, S., Ji, R., Yan, C., Zhang, B., Cao, L., Ye, Q., Huang, F., and Doermann, D. Towards optimal structured cnn pruning via generative adversarial learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2790–2799, 2019. Liu, Z., Li, J., Shen, Z., Huang, G., Yan, S., and Zhang, C. Learning efficient convolutional networks through network slimming. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Oct 2017. \nLiu, Z., Sun, M., Zhou, T., Huang, G., and Darrell, T. Rethinking the value of network pruning. In International Conference on Learning Representations, 2018. \nMingjie, S. and Zhuang, L. Network slimming. https://github.com/Eric-mingjie/ network-slimming, 2018. \nNoy, A., Nayman, N., Ridnik, T., Zamir, N., Doveh, S., Friedman, I., Giryes, R., and Zelnik, L. ASAP: Architecture search, anneal and prune. In Chiappa, S. and Calandra, R. (eds.), Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics, volume 108 of Proceedings of Machine Learning Research, pp. 493–503, 2020. \nPeng, H., Wu, J., Chen, S., and Huang, J. Collaborative channel pruning for deep networks. In International Conference on Machine Learning, pp. 5113–5122. PMLR, 2019. \nReed, R. Pruning algorithms-a survey. IEEE transactions on Neural Networks, 4(5):740–747, 1993. \nSimonyan, K. and Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. \nSu, J., Chen, Y., Cai, T., Wu, T., Gao, R., Wang, L., and Lee, J. D. Sanity-checking pruning methods: Random tickets can win the jackpot. In Advances in Neural Information Processing Systems, 2020. \nTanaka, H., Kunin, D., Yamins, D. L., and Ganguli, S. Pruning neural networks without any data by iteratively conserving synaptic flow. Advances in Neural Information Processing Systems, 33, 2020. \nTang, Y., Wang, Y., Xu, Y., Tao, D., Xu, C., Xu, C., and Xu, C. Scop: Scientific control for reliable neural network pruning. Advances in Neural Information Processing Systems, 2020. \nvan Amersfoort, J., Alizadeh, M., Farquhar, S., Lane, N., and Gal, Y. Single shot structured pruning before training. arXiv preprint arXiv:2007.00389, 2020. \nWang, C., Grosse, R., Fidler, S., and Zhang, G. Eigendamage: Structured pruning in the kroneckerfactored eigenbasis. In International Conference on Machine Learning, pp. 6566–6575, 2019a. \nWang, C., Zhang, G., and Grosse, R. Picking winning tickets before training by preserving gradient flow. In International Conference on Learning Representations, 2019b. \nZhao, C., Ni, B., Zhang, J., Zhao, Q., Zhang, W., and Tian, Q. Variational convolutional neural network pruning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2780–2789, 2019. \nZhuang, T., Zhang, Z., Huang, Y., Zeng, X., Shuang, K., and Li, X. Neuron-level structured pruning using polarization regularizer. Advances in Neural Information Processing Systems, 33, 2020. ",
|
| 999 |
+
"bbox": [
|
| 1000 |
+
150,
|
| 1001 |
+
94,
|
| 1002 |
+
828,
|
| 1003 |
+
915
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 9
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
153,
|
| 1012 |
+
87,
|
| 1013 |
+
828,
|
| 1014 |
+
654
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 10
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "Checklist ",
|
| 1021 |
+
"text_level": 1,
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
165,
|
| 1024 |
+
671,
|
| 1025 |
+
254,
|
| 1026 |
+
688
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 10
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "text",
|
| 1032 |
+
"text": "1. For all authors... ",
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
214,
|
| 1035 |
+
698,
|
| 1036 |
+
339,
|
| 1037 |
+
712
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 10
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
238,
|
| 1046 |
+
717,
|
| 1047 |
+
825,
|
| 1048 |
+
808
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 10
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "text",
|
| 1054 |
+
"text": "2. If you are including theoretical results... ",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
214,
|
| 1057 |
+
811,
|
| 1058 |
+
493,
|
| 1059 |
+
825
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 10
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "text",
|
| 1065 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes] ",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
236,
|
| 1068 |
+
829,
|
| 1069 |
+
733,
|
| 1070 |
+
861
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 10
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "3. If you ran experiments... ",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
214,
|
| 1079 |
+
864,
|
| 1080 |
+
393,
|
| 1081 |
+
880
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 10
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
236,
|
| 1090 |
+
883,
|
| 1091 |
+
823,
|
| 1092 |
+
911
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 10
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
236,
|
| 1101 |
+
90,
|
| 1102 |
+
825,
|
| 1103 |
+
180
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 11
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
209,
|
| 1112 |
+
184,
|
| 1113 |
+
823,
|
| 1114 |
+
199
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 11
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] \n(b) Did you mention the license of the assets? [Yes] \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
238,
|
| 1123 |
+
203,
|
| 1124 |
+
823,
|
| 1125 |
+
310
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 11
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
214,
|
| 1134 |
+
314,
|
| 1135 |
+
705,
|
| 1136 |
+
329
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 11
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
238,
|
| 1145 |
+
333,
|
| 1146 |
+
825,
|
| 1147 |
+
422
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 11
|
| 1150 |
+
}
|
| 1151 |
+
]
|
parse/train/sUgpxb9QD/sUgpxb9QD_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/sUgpxb9QD/sUgpxb9QD_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/umIdUL8rMH/umIdUL8rMH.md
ADDED
|
@@ -0,0 +1,488 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BOIL: TOWARDS REPRESENTATION CHANGE FOR FEW-SHOT LEARNING
|
| 2 |
+
|
| 3 |
+
Jaehoon $\mathbf { O } \mathbf { h } ^ { * 1 }$ , Hyungjun $\mathbf { V o o ^ { * 1 } }$ , ChangHwan $\mathbf { K i m ^ { 1 } }$ & Se-Young $\mathbf { Y u n ^ { 2 } }$
|
| 4 |
+
|
| 5 |
+
1Graduate School of Knowledge Service Engineering, KAIST 2Graduate School of Artificial Intelligence, KAIST {jaehoon.oh,yoohjun,kimbob,yunseyoung}@kaist.ac.kr
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
Model Agnostic Meta-Learning (MAML) is one of the most representative of gradient-based meta-learning algorithms. MAML learns new tasks with a few data samples using inner updates from a meta-initialization point and learns the meta-initialization parameters with outer updates. It has recently been hypothesized that representation reuse, which makes little change in efficient representations, is the dominant factor in the performance of the meta-initialized model through MAML in contrast to representation change, which causes a significant change in representations. In this study, we investigate the necessity of representation change for the ultimate goal of few-shot learning, which is solving domain-agnostic tasks. To this aim, we propose a novel meta-learning algorithm, called BOIL (Body Only update in Inner Loop), which updates only the body (extractor) of the model and freezes the head (classifier) during inner loop updates. BOIL leverages representation change rather than representation reuse. This is because feature vectors (representations) have to move quickly to their corresponding frozen head vectors. We visualize this property using cosine similarity, CKA, and empirical results without the head. BOIL empirically shows significant performance improvement over MAML, particularly on cross-domain tasks. The results imply that representation change in gradient-based meta-learning approaches is a critical component.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Meta-learning, also known as “learning to learn,” is a methodology that imitates human intelligence that can adapt quickly with even a small amount of previously unseen data through the use of previous learning experiences. To this aim, meta-learning with deep neural networks has mainly been studied using metric- and gradient-based approaches. Metric-based meta-learning (Koch, 2015; Vinyals et al., 2016; Snell et al., 2017; Sung et al., 2018) compares the distance between feature embeddings using models as a mapping function of data into an embedding space, whereas gradient-based meta-learning (Ravi & Larochelle, 2016; Finn et al., 2017; Nichol et al., 2018) quickly learns the parameters to be optimized when the models encounter new tasks.
|
| 14 |
+
|
| 15 |
+
Model-agnostic meta-learning (MAML) (Finn et al., 2017) is the most representative gradient-based meta-learning algorithm. MAML algorithm consists of two optimization loops: an inner loop and an outer loop. The inner loop learns task-specific knowledge, and the outer loop finds a universally good meta-initialized parameter allowing the inner loop to quickly learn any task from the initial point with only a few examples. This algorithm has been highly influential in the field of meta-learning, and numerous follow-up studies have been conducted (Oreshkin et al., 2018; Rusu et al., 2018; Zintgraf et al., 2018; Yoon et al., 2018; Finn et al., 2018; Triantafillou et al., 2019; Sun et al., 2019; Na et al., 2019; Tseng et al., 2020).
|
| 16 |
+
|
| 17 |
+
Very recent studies (Raghu et al., 2020; Arnold et al., 2019) have attributed the success of MAML to high-quality features before the inner updates from the meta-initialized parameters. For instance, Raghu et al. (2020) claimed that MAML learns new tasks by updating the head (the last fully connected layer) with almost the same features (the output of the penultimate layer) from the metainitialized network. In this paper, we categorize the learning patterns as follows: A small change in the representations during task learning is named representation reuse, whereas a large change is named representation change.1 Thus, representation reuse was the common belief of MAML.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Difference in task-specific (inner) updates between MAML/ANIL and BOIL. In the figure, the lines represent the decision boundaries defined by the head (classifier) of the network. Different shapes and colors mean different classes. (a) MAML mainly updates the head with a negligible change in body (extractor); hence, representations on the feature space are almost identical. ANIL does not change in the body during inner updates, and they are therefore identical. However, (b) BOIL updates only the body without changing the head during inner updates; hence, representations on the feature space change significantly with the fixed decision boundaries. We visualize the representations from various data sets using UMAP (Uniform Manifold Approximation and Projection for dimension reduction) (McInnes et al., 2018) in Appendix B.
|
| 21 |
+
|
| 22 |
+
Herein, we pose an intriguing question: Is representation reuse sufficient for meta-learning? We believe that the key to successful meta-learning is closer to representation change than to representation reuse. More importantly, representation change is crucial for cross-domain adaptation, which is considered the ultimate goal of meta-learning. By contrast, the MAML accomplished with representation reuse might be poorly trained for cross-domain adaptation since the success of representation reuse might rely heavily on the similarity between the source and the target domains.
|
| 23 |
+
|
| 24 |
+
To answer this question, we propose a novel meta-learning algorithm that leverages representation change. Our contributions can be summarized as follows:
|
| 25 |
+
|
| 26 |
+
• We emphasize the necessity of representation change for meta-learning through crossdomain adaptation experiments.
|
| 27 |
+
• We propose a simple but effective meta-learning algorithm that learns the Body (extractor) of the model Only in the Inner Loop (BOIL). We empirically show that BOIL improves the performance over most of benchmark data sets and that this improvement is particularly noticeable in fine-grained data sets or cross-domain adaptation.
|
| 28 |
+
• We interpret the connection between BOIL and the algorithm using preconditioning gradients (Flennerhag et al., 2020) and show their compatibility, improving performance.
|
| 29 |
+
• We demonstrate that the BOIL algorithm enjoys representation layer reuse on the low-/midlevel body and representation layer change on the high-level body using the cosine similarity and the Centered Kernel Alignment (CKA). We visualize the features between before and after an adaptation, and empirically analyze the effectiveness of the body of BOIL through an ablation study on eliminating the head.
|
| 30 |
+
For ResNet architectures, we propose a disconnection trick that removes the backpropagation path of the last skip connection. The disconnection trick strengthens representation layer change on the high-level body.
|
| 31 |
+
|
| 32 |
+
# 2 PROBLEM SETTING
|
| 33 |
+
|
| 34 |
+
# 2.1 META-LEARNING FRAMEWORK (MAML)
|
| 35 |
+
|
| 36 |
+
The MAML algorithm (Finn et al., 2017) attempts to meta-learn the best initialization of the parameters for a task-learner. It consists of two main optimization loops: an inner loop and an outer loop. First, we sample a batch of tasks within a data set distribution. Each task $\tau _ { i }$ consists of a support set $S _ { \tau _ { i } }$ and a query set $Q _ { \tau _ { i } }$ . When we sample a support set for each task, we first sample $n$ labels from the label set and then sample $k$ instances for each label. Thus, each support set contains $n \times k$ instances. For a query set, we sample instances from the same labels with the support set.
|
| 37 |
+
|
| 38 |
+
With these tasks, the MAML algorithm conducts both meta-training and meta-testing. During metatraining, we first sample a meta-batch consisting of $B$ tasks from the meta-training data set. In the inner loops, we update the meta-initialized parameters $\theta$ to task-specific parameters $\theta _ { \tau _ { \dot { 3 } } }$ using the task-specific loss $L _ { S _ { \tau _ { i } } } ( f _ { \theta } )$ , where $f _ { \theta }$ is a neural network parameterized by $\theta$ , as follows:2
|
| 39 |
+
|
| 40 |
+
$$
|
| 41 |
+
\theta _ { \tau _ { i } } = \theta - \alpha \nabla _ { \theta } L _ { S _ { \tau _ { i } } } ( f _ { \theta } )
|
| 42 |
+
$$
|
| 43 |
+
|
| 44 |
+
Using the query set of the corresponding task, we compute the loss $L _ { Q _ { \tau _ { i } } } ( f _ { \theta _ { \tau _ { i } } } )$ based on each inner updated parameter. By summing all these losses, the meta-loss of each meta-batch, $L _ { m e t a } ( \theta )$ , is computed. The meta-initialized parameters are then updated using the meta-loss in the outer loop through a gradient descent.
|
| 45 |
+
|
| 46 |
+
$$
|
| 47 |
+
\theta ^ { \prime } = \theta - \beta \nabla _ { \theta } L _ { m e t a } ( \theta ) , \mathrm { w h e r e } L _ { m e t a } ( \theta ) = \sum _ { i = 1 } ^ { B } L _ { Q _ { \tau _ { i } } } ( f _ { \theta _ { \tau _ { i } } } )
|
| 48 |
+
$$
|
| 49 |
+
|
| 50 |
+
In meta-testing, the inner loop, which can be interpreted as task-specific learning, is the same as in meta-training. However, the outer loop only computes the accuracy using a query set of tasks and does not perform a gradient descent; thus, it does not update the meta-initialization parameters.
|
| 51 |
+
|
| 52 |
+
# 2.2 EXPERIMENTAL SETUP
|
| 53 |
+
|
| 54 |
+
We used two backbone networks, 4conv network with 64 channels from Vinyals et al. (2016) and ResNet-12 starting with 64 channels and doubling them after every block from Oreshkin et al. (2018). For the batch normalization, we used batch statistics instead of the running statistics during metatesting, following the original MAML (Finn et al., 2017). We trained 4conv network and ResNet-12 for 30,000 and 10,000 epochs, respectively, and then used the model with the best accuracy on metavalidation data set to verify the performance. We applied an inner update once for both meta-training and meta-testing. The outer learning rate was set to 0.001 and 0.0006 and the inner learning rate was set to 0.5 and 0.3 for 4conv network and ResNet-12, respectively. All results were reproduced by our group and reported as the average and standard deviation of the accuracies over $5 \times 1 { , } 0 0 0$ tasks, and the values in parentheses in the algorithm name column of the tables are the number of shots. We validated both MAML/ANIL and BOIL on two general data sets, miniImageNet (Vinyals et al., 2016) and tieredImageNet (Ren et al., 2018), and two specific data sets, Cars (Krause et al., 2013) and CUB (Welinder et al., 2010). Note that our algorithm is not for state-of-the-art performance but for a proposal of a new learning scheme for meta-learning. Full details on the implementation and data sets are described in Appendix A.3 In addition, the results of the other data sets at a size of $3 2 \times$ 32 and using the 4conv network with 32 channels from Finn et al. (2017) (i.e., original setting) are reported in Appendix C and Appendix D, respectively.
|
| 55 |
+
|
| 56 |
+
# 3 BOIL (BODY ONLY UPDATE IN INNER LOOP)
|
| 57 |
+
|
| 58 |
+
3.1 THE ULTIMATE GOAL OF META-LEARNING: DOMAIN-AGNOSTIC ADAPTATION
|
| 59 |
+
|
| 60 |
+
Recently, Raghu et al. (2020) proposed two opposing hypotheses, representation reuse and representation change, and demonstrated that representation reuse is the dominant factor of MAML. We can discriminate two hypotheses according to which part of the neural network, body or head, is mostly updated through the inner loop. Here, the body indicates all convolutional layers, and the head indicates the remaining fully connected layer. In other words, the representation change hypothesis attributes the capability of MAML to the updates on the body, whereas the representation reuse hypothesis considers that the network body is already universal to various tasks before the inner loops. To demonstrate the representation reuse hypothesis of MAML, the authors proposed the ANIL (Almost No Inner Loop) algorithm, which only updates the head in the inner loops during training and testing, and showed that ANIL has a performance comparable to that of MAML. This implies that the representation trained by MAML/ANIL, even before updated task-specifically, is sufficient to achieve the desired performance. Furthermore, they proposed the NIL-testing (No Inner Loop) algorithm, which removes the head and performs unseen tasks using only the distance between the representations of a support set and those of a query set during testing to identify the capability of representation reuse. NIL-testing of MAML also achieves a performance comparable to MAML. Based on these results, it was claimed that the success of MAML is attributed to representation reuse.
|
| 61 |
+
|
| 62 |
+
Here, we investigate the necessity of representation change. We believe that the meta-trained models should achieve a good performance in many other domains, which is referred to as domain-agnostic adaptation in this paper. To this end, representation reuse is not appropriate since representation reuse uses the similarity between the source and target domains. The higher the similarity, the higher the efficiency. Therefore, when there are no strong similarities between the source and target domains, good representations for the source domain could be imperfect representations for the target domain. Table 2, which lists our experimental results on cross-domain tasks, shows that the MAML enjoying representation reuse is worse than BOIL leveraging representation change, which will be discussed in detail in the next section.
|
| 63 |
+
|
| 64 |
+
# 3.2 BOIL ALGORITHM
|
| 65 |
+
|
| 66 |
+
Inspired by the necessity, we design an algorithm that updates only the body of the model and freezes the head of the model during the task learning to enforce representation change through inner updates. Because the gradients must be back-propagated to update the body, we set the learning rate of the head to zero in the inner updates during both meta-training and meta-testing. Otherwise, the learning and evaluation procedures of BOIL are the same as those of MAML. Therefore, the computational overhead does not change.
|
| 67 |
+
|
| 68 |
+
Formally speaking, with the notations used in Section 2.1, the meta-initialized parameters $\theta$ can be separated into body parameters $\theta _ { b }$ and head parameters $\theta _ { h }$ , that is, $\theta = \left\{ \theta _ { b } , \theta _ { h } \right\}$ . For a sample image $x \in \mathbb { R } ^ { i }$ , an output can be expressed as $\hat { y } = f _ { \theta } ( x ) = f _ { \theta _ { h } } ( f _ { \theta _ { b } } ( x ) ) \in \bar { \mathbb { R } ^ { n } }$ , where $f _ { \theta _ { b } } ( x ) \in \mathbb { R } ^ { d }$ . The task-specific body parameters $\theta _ { b , \tau _ { i } }$ and head parameters $\theta _ { h , \tau _ { i } }$ through an inner loop given task $\tau _ { i }$ are thus as follows:
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
\theta _ { b , \tau _ { i } } = \theta _ { b } - \alpha _ { b } \nabla _ { \theta _ { b } } L _ { S _ { \tau _ { i } } } ( f _ { \theta } ) \ \& \ \theta _ { h , \tau _ { i } } = \theta _ { h } - \alpha _ { h } \nabla _ { \theta _ { h } } L _ { S _ { \tau _ { i } } } ( f _ { \theta } )
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
where $\alpha _ { b }$ and $\alpha _ { h }$ are the inner loop learning rates corresponding to the body and head, respectively. MAML usually sets $\alpha = \alpha _ { b } = \alpha _ { h } ( \neq 0 )$ , ANIL sets $\alpha _ { b } = 0$ and $\alpha _ { h } \neq 0$ , and BOIL sets $\alpha _ { b } \neq 0$ and $\alpha _ { h } = 0$ .
|
| 75 |
+
|
| 76 |
+
These simple differences force the change in the dominant factor of task-specific updates, from the head to the body. Figure 1 shows the main difference in the inner updates between MAML/ANIL and BOIL. To solve new tasks, the head mainly or only changes in MAML/ANIL (Raghu et al., 2020), whereas in BOIL, the body changes.
|
| 77 |
+
|
| 78 |
+
# 3.2.1 PERFORMANCE IMPROVEMENT ON BENCHMARK DATA SETS AND CROSS-DOMAIN TASKS
|
| 79 |
+
|
| 80 |
+
Table 1: Test accuracy $( \% )$ of 4conv network on benchmark data sets. The values in parenthesis in the algorithm name column of tables are the number of shots.
|
| 81 |
+
|
| 82 |
+
<table><tr><td>Domain</td><td colspan="2">General (Coarse-grained)</td><td colspan="2">Specific (Fine-grained)</td></tr><tr><td>Dataset</td><td>miniImageNet</td><td>tieredImageNet</td><td>Cars</td><td>CUB</td></tr><tr><td>MAML(1)</td><td>47.44 ± 0.23</td><td>47.44 ± 0.18</td><td>45.27±0.26</td><td>56.18±0.37</td></tr><tr><td>ANIL(1)</td><td>47.82 ± 0.20</td><td>49.35 ± 0.26</td><td>46.81 ± 0.24</td><td>57.03 ± 0.41</td></tr><tr><td>BOIL(1)</td><td>49.61 ± 0.16</td><td>48.58 ± 0.27</td><td>56.82 ± 0.21</td><td>61.60 ± 0.57</td></tr><tr><td>MAML(5)</td><td>61.75± 0.42</td><td>64.70±0.14</td><td>53.23±0.26</td><td>69.66±0.03</td></tr><tr><td>ANIL(5)</td><td>63.04 ±0.42</td><td>65.82 ± 0.12</td><td>61.95 ± 0.38</td><td>70.93 ± 0.28</td></tr><tr><td>BOIL(5)</td><td>66.45 ± 0.37</td><td>69.37 ± 0.12</td><td>75.18 ± 0.21</td><td>75.96 ± 0.17</td></tr></table>
|
| 83 |
+
|
| 84 |
+
Table 1 and Table 2 display the superiority of BOIL on most benchmark data sets and on cross-domain adaptation tasks, where the source and target domains differ (i.e., the meta-training and meta-testing data sets are different). In Table 1, the performance improvement is particularly noticeable on the specific domain data sets Cars and CUB. The results demonstrate that representation change is necessary even if there is a similarity between the source and target domains. Table 2 shows that BOIL is closer to the ultimate goal of meta-learning, which is a domain-agnostic adaptation.
|
| 85 |
+
|
| 86 |
+
Table 2: Test accuracy $( \% )$ of 4conv network on cross-domain adaptation.
|
| 87 |
+
|
| 88 |
+
<table><tr><td>adaptation</td><td colspan="2">General to General</td><td colspan="2">General to Specific</td><td colspan="2">Specific to General</td><td colspan="2">Specific to Specific</td></tr><tr><td>meta-train</td><td>tieredImageNetminiImageNet</td><td></td><td>miniImageNetminiImageNet</td><td></td><td>Cars</td><td>Cars</td><td>CUB</td><td>Cars</td></tr><tr><td>meta-test</td><td></td><td>miniImageNet tieredImageNet</td><td>Cars</td><td>CUB</td><td></td><td>miniImageNet tieredImageNet</td><td>Cars</td><td>CUB</td></tr><tr><td>MAML(1)</td><td>47.60 ± 0.24</td><td>51.61 ± 0.20</td><td>33.57± 0.14</td><td>40.51 ± 0.08</td><td>26.95 ± 0.15</td><td>28.46±0.18</td><td></td><td>32.22±0.30 29.64±0.19</td></tr><tr><td>ANIL(1)</td><td>49.67 ± 0.31</td><td>52.82 ±0.29</td><td>34.77 ± 0.31</td><td>41.12 ± 0.15</td><td>28.67 ± 0.17</td><td>29.41 ± 0.19</td><td></td><td>33.07 ±0.43 28.32 ± 0.32</td></tr><tr><td>BOIL(1)</td><td>49.74± 0.26</td><td>53.23 ±0.41</td><td>36.12 ± 0.29</td><td>44.20± 0.15</td><td>33.71±0.13</td><td>34.06± 0.20</td><td></td><td>35.44± 0.46 34.79±0.27</td></tr><tr><td>MAML(5)</td><td>65.22±0.20</td><td>65.76±0.27</td><td>44.56± 0.21</td><td>53.09±0.16</td><td>30.64±0.19</td><td>32.62±0.21</td><td></td><td>41.24±0.21 32.18 ± 0.13</td></tr><tr><td>ANIL(5)</td><td>66.47 ± 0.16</td><td>66.52 ± 0.28</td><td>46.55± 0.29</td><td>55.82 ± 0.21</td><td>35.38 ± 0.10</td><td>36.94 ± 0.10</td><td></td><td>43.05 ± 0.23 37.99 ±0.15</td></tr><tr><td>BOIL(5)</td><td>69.33 ± 0.19</td><td>69.37 ± 0.23</td><td>50.64±0.22</td><td>60.92 ± 0.11</td><td>44.51± 0.25</td><td>46.09±0.23</td><td></td><td>47.30 ± 0.22 45.91 ± 0.28</td></tr></table>
|
| 89 |
+
|
| 90 |
+
Recently, Guo et al. (2019) noted that existing meta-learning algorithms have weaknesses in terms of cross-domain adaptation. We divide the cross-domain adaptation into four cases: general to general, general to specific, specific to general, and specific to specific. Previous studies considered the cross-domain scenario from a general domain to a specific domain (Chen et al., 2019; Guo et al., 2019). In this paper, we also evaluate the reverse case. BOIL outperforms MAML/ANIL not only on the typical cross-domain adaptation scenario but also on the reverse one. In particular, the performance improvement, when the domain changes from birds (CUB as a meta-train set) to cars (Cars as a meta-test set), implies that the representation change in BOIL enables the model to adapt to an unseen target domain that is entirely different from the source domain.
|
| 91 |
+
|
| 92 |
+
# 3.2.2 ABLATION STUDY ON THE LEARNING RATE OF THE HEAD
|
| 93 |
+
|
| 94 |
+
In this section, we control the inner loop update learning rate of the head to verify the effect of training the head to the performance. The results are depicted in Table 3. The best performance is achieved when the learning rate is 0 (BOIL). However, the accuracy rapidly decreases as the learning rate of the head grows. Even with $1 / 1 0 \times$ head learning rate compared to other layers, the test accuracies are significantly degraded. Therefore, it is thought that freezing head is crucial.
|
| 95 |
+
|
| 96 |
+
<table><tr><td>Head's Learning Rate (αh)</td><td>miniImageNet</td><td>Cars</td></tr><tr><td>0.00 (BOIL)</td><td>66.45± 0.37</td><td>75.18± 0.21</td></tr><tr><td>0.05</td><td>38.81±0.21</td><td>68.67 ±0.21</td></tr><tr><td>0.10</td><td>49.49 ± 0.16</td><td>68.86±0.30</td></tr><tr><td>0.5 (MAML in ours)</td><td>61.75 ± 0.42</td><td>53.23 ±0.26</td></tr></table>
|
| 97 |
+
|
| 98 |
+
Table 3: 5-Way 5-Shot test accuracy according to the learning rate of the head.
|
| 99 |
+
|
| 100 |
+
# 3.2.3 BOIL AND PRECONDITIONING GRADIENTS
|
| 101 |
+
|
| 102 |
+
Some aspects of BOIL can be explained by preconditioning gradients (Lee & Choi, 2018; Flennerhag et al., 2020). Preconditioning gradients occur when a particular layer is shared over all tasks, warping the spaces (e.g., rotating and scaling). For instance, one might consider the frozen head of BOIL to be a warp layer of the entire body (Flennerhag et al., 2020).
|
| 103 |
+
|
| 104 |
+
Preconditioning gradients can avoid overfitting in a high-capacity model (Flennerhag et al., 2020), and such a benefit is still valid with BOIL. Indeed, many prior studies have suffered from an overfitting problem, and thus it is challenging to train the backbone network more extensively than the 4conv network with 32 filters (Finn et al., 2017). By contrast, BOIL can increase the validation accuracy with more extensive networks. The accuracy of models with 32, 64, and 128 filters continues to increase to 64.02, 66.72, and 69.23, without overfitting. In Appendix E, we report these results as well as the training and valid accuracy curves of BOIL for three different network sizes, in which the larger networks are trained well. We further hypothesize that the head is the most critical part of an overfitting problem, and BOIL can succeed in dealing with the problem by simply ignoring the head in the inner loops.
|
| 105 |
+
|
| 106 |
+
However, one essential difference between BOIL and the preconditioning gradients is whether the head is frozen. Prior studies did not freeze the last fully connected layer or used any additional fully connected layer to precondition the gradients, and hence representation reuse is still the major factor of their training. To the best of our knowledge, BOIL is the first approach that enforces representation change by freezing the head in the inner loops.
|
| 107 |
+
|
| 108 |
+
To investigate the gain from representation change, we adapt BOIL to WarpGrad (Flennerhag et al., 2020).4 Four different models are tested, the architectures of which are fully described in Appendix F. Table 4 shows the test accuracy of the four models, where the BOIL-WarpGrad
|
| 109 |
+
|
| 110 |
+
<table><tr><td>Model</td><td>Accuracy</td></tr><tr><td>WarpGradw/last warp head</td><td>83.19± 0.79</td></tr><tr><td>WarpGrad w/o last warp head</td><td>83.16±0.69</td></tr><tr><td>BOIL-WarpGrad w/ last warp conv</td><td>83.68 ±0.82</td></tr><tr><td>BOIL-WarpGrad w/o last warp conv</td><td>84.88 ±0.42</td></tr></table>
|
| 111 |
+
|
| 112 |
+
Table 4: Test accuracy $\% )$ of WarpGrad and BOIL-WarpGrad over $5 \times 1 0 0$ tasks.
|
| 113 |
+
|
| 114 |
+
models freeze the fully connected layer from the corresponding WarpGrad model. It is observed that BOIL-WarpGrad improves WarpGrad and BOIL-WarpGrad without the last warp conv improves BOIL-WarpGrad with the last warp conv. The latter result indicates that, to support BOIL, the last convolution layer must not be fixed but rather updated during the inner loops.
|
| 115 |
+
|
| 116 |
+
# 4 REPRESENTATION CHANGE IN BOIL
|
| 117 |
+
|
| 118 |
+
# 4.1 REPRESENTATION CHANGE BEFORE/AFTER ADAPTATION
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
Figure 2: Cosine similarity of 4conv network.
|
| 122 |
+
|
| 123 |
+
To analyze whether the learning scheme of BOIL is representation reuse or representation change, we explore the layer-wise alteration of the representations before and after adaptation. We compute the cosine similarities and CKA values of the convolution layers with the meta-trained 4conv network (as detailed in Appendix A). We first investigate the cosine similarity between the representations of a query set including 5 classes and 15 samples per class from miniImageNet after every convolution module. In Figure 2, the orange line represents the average of the cosine similarity between the samples having the same class, and the blue line represents the average of the cosine similarity between the samples having different classes. In Figure 2, the left panel of each algorithm is before the inner loop adaptation, and the right panel is after inner loop adaptation.
|
| 124 |
+
|
| 125 |
+
The key observations from Figure 2, which are also discussed in Section 4.2 with other experiments, are as follows:
|
| 126 |
+
|
| 127 |
+
• The cosine similarities of MAML/ANIL (Figure 2a and Figure 2b) have the similar patterns, supporting representation reuse. Their patterns do not show any noticeable difference before and after adaptation. They make the average of the cosine similarities monotonically decrease and make the representations separable by classes when the representations reach the last convolution layer. These analyses indicate that the effectiveness of MAML/ANIL heavily leans on the meta-initialized body, not the task-specific adaptation. The cosine similarities of BOIL (Figure 2c) have a different pattern from those of MAML/ANIL, supporting representation change. The BOIL’s pattern changes to distinguish classes after adaptation. Before adaptation, BOIL reduces the average cosine similarities only up to conv3, and all representations are concentrated regardless of their classes after the last convolution layer. Hence, BOIL’s meta-initialized body cannot distinguish the classes. However, after adaptation, the similarity of the different classes rapidly decrease on conv4, which means that the body can distinguish the classes through adaptation. The reason why the change in BOIL before and after adaptation occurs only on conv4 is a peculiarity of the convolutional body, analyzed by Zeiler & Fergus (2014). Although the general and low-level features produced through the front convolution layers (e.g., colors, lines, and shapes) do not differ much from the task-specific adaptation, the discriminative representations produced through the last convolution layer (conv4) differ from class to class. The importance of the last convolutional layer on the performance in few-shot image classification tasks is also investigated by Arnold et al. (2019); Chen et al. (2020). These changes before and after the adaptation support the fact that BOIL enjoys representation layer reuse at the low- and mid-levels of the body and representation layer change in a high-level of the body.5 Nevertheless, the degree of representation layer reuse in a low- and mid-levels in BOIL is lower than that in MAML/ANIL, which is measured using gradient norms (Appendix G). We also report the cosine similarity including head in Appendix H.
|
| 128 |
+
|
| 129 |
+
Through these observations, we believe that MAML follows the representation reuse training scheme, whereas BOIL follows representation change training scheme through representation layer reuse before the last convolution layer and representation layer change at the last convolution layer.
|
| 130 |
+
|
| 131 |
+
Next, we demonstrate that BOIL enjoys representation layer reuse on the low- and mid-level and representation layer change on the highlevel of the body by computing the CKA (Kornblith et al., 2019) before and after adaptation. When the CKA between two representations is close to 1, the representations are almost identical. In Figure 3, as mentioned in Raghu et al. (2020), CKA shows that the MAML/ANIL algorithms do not change the representation in the body. However, BOIL changes the representation of the last convolution layer. This result indicates that the BOIL algorithm learns rapidly through representation change. In addition, the representation change on the Cars data set is described in Appendix I.
|
| 132 |
+
|
| 133 |
+

|
| 134 |
+
Figure 3: CKA of 4conv.
|
| 135 |
+
|
| 136 |
+
# 4.2 EMPIRICAL ANALYSIS OF REPRESENTATION CHANGE IN BOIL
|
| 137 |
+
|
| 138 |
+
Table 5: Test accuracy $( \% )$ of 4conv network according to the head’s existence before/after an adaptation.
|
| 139 |
+
|
| 140 |
+
<table><tr><td colspan="6">meta-train miniImageNet</td></tr><tr><td>meta-test</td><td colspan="3">miniImageNet</td><td colspan="2">Cars</td></tr><tr><td>head</td><td>w/head</td><td>w/o head (NIL-testing)</td><td></td><td>w/head</td><td>w/o head (NIL-testing)</td></tr><tr><td>adaptation</td><td>before after</td><td>before</td><td>after</td><td>before after</td><td>before after</td></tr><tr><td>MAML(1)</td><td>19.96± 0.25 47.44± 0.23</td><td>48.28± 0.20 47.87± 0.14</td><td></td><td>20.05± 0.16 33.57± 0.14</td><td>34.47± 0.19 34.36± 0.16</td></tr><tr><td>ANIL(1)</td><td>20.09 ± 0.19 47.92 ± 0.20</td><td>48.86± 0.12 48.86 ±0.12</td><td></td><td>20.16 ± 0.05 34.77 ± 0.31</td><td>35.48± 0.24 35.48 ± 0.24</td></tr><tr><td>BOIL(1)</td><td>19.94 ± 0.13 49.61± 0.16</td><td>24.07±0.19 46.73 ±0.17</td><td></td><td>19.94 ± 0.06 36.12 ± 0.29</td><td>23.30± 0.15 34.07 ± 0.32</td></tr><tr><td>MAML(5)</td><td>20.04±0.17 61.75±0.42</td><td>64.61 ± 0.39 64.47±0.39</td><td></td><td>19.97± 0.18 44.56 ± 0.21</td><td>47.66 ± 0.28 47.53± 0.28</td></tr><tr><td>ANIL(5)</td><td>20.09 ± 0.13 63.04 ± 0.42</td><td>66.11 ± 0.51 66.11 ± 0.51</td><td></td><td>20.08 ± 0.07 46.55 ± 0.29</td><td>49.62 ±0.20 49.62 ±0.20</td></tr><tr><td>BOIL(5)</td><td>20.04 ± 0.21 66.45 ± 0.37</td><td>32.03 ± 0.16 64.61 ± 0.27</td><td></td><td>20.06± 0.16 50.64 ±0.22</td><td>30.33 ± 0.18 50.40± 0.30</td></tr></table>
|
| 141 |
+
|
| 142 |
+
Table 5 describes the test accuracy on miniImageNet and Cars of the model meta-trained on miniImageNet before and after an inner update according to the presence of the head. To evaluate the performance in a case without a classifier, we first create a template of each class by averaging the representations from the support set. Then, the class of the sample from the query set is predicted as the class whose template has the highest cosine similarity with the representation of the sample. This is the same as NIL-testing in (Raghu et al., 2020).
|
| 143 |
+
|
| 144 |
+
The results provide some intriguing interpretations:
|
| 145 |
+
|
| 146 |
+
• With the head for all algorithms. Before adaptation, all algorithms on the same- and cross-domain are unable to distinguish all classes $( 2 0 \% )$ . This status could be considered as an optimum of meta-initialization. We also discuss it in Appendix L. In BOIL, the representations have to move quickly to their corresponding frozen head. Moreover, after adaptation, BOIL overwhelms the performance of the other algorithms. This means that representation change of BOIL is more effective than representation reuse of MAML/ANIL. • Without the head in MAML/ANIL. In this setting, representations from the body are evaluated before and after adaptation. Before adaptation, MAML and ANIL already generate sufficient representations to classify, and adaptation makes little or no difference. The former observation matches the cosine similarity gap between an intra- and inter-class on each left panel in Figure 2a and Figure 2b, and the latter observation matches the CKA values of close to or exactly 1 on conv4 of MAML/ANIL in Figure 3. Without the head in BOIL. BOIL shows a steep performance improvement through adaptation on the same- and cross-domain. This result implies that the body of BOIL can be task-specifically updated. It is matched with Figure 2c, where the cosine similarity gap between the intra-class and inter-class on the space after conv4 is near zero before adaptation but increases after adaptation. This implies that the poor representations can be dramatically improved in BOIL. Therefore, the low CKA value on conv4 of BOIL in Figure 3 is natural.
|
| 147 |
+
|
| 148 |
+
To summarize, the meta-initialization by MAML and ANIL provides efficient representations through the body even before adaptation. By contrast, although BOIL’s meta-initialization provides less efficient representations compared to MAML and ANIL, the body can extract more efficient representations through task-specific adaptation based on representation change.
|
| 149 |
+
|
| 150 |
+
Note that the penultimate layer (i.e., conv4) of BOIL acts differently from the output layer (i.e., head) of MAML/ANIL. The penultimate layer of BOIL might seem like a pseudo-head layer, but not at all. The output layer of MAML/ANIL is adapted based on the well-represented features (i.e., features after conv4). In contrast, the penultimate layer of BOIL is adapted based on the poorly-represented features (i.e., features after conv3). It means that the head layer’s role of MAML/ANIL is to draw a simple decision boundary for the high-level features represented by the output of the last convolutional layer. However, the penultimate layer of BOIL acts as a non-linear transformation so that the fixed output head layer can effectively conduct a classifier role. We also report empirical analyses of penultimate layer of BOIL and an ablation study on learning layer in Appendix J and Appendix K.
|
| 151 |
+
|
| 152 |
+
# 5 BOIL TO A LARGER NETWORK
|
| 153 |
+
|
| 154 |
+
Many recent studies (Vuorio et al., 2019; Rusu et al., 2018; Sun et al., 2019) have used deeper networks such as ResNet (He et al., 2016), Wide-ResNet (Zagoruyko & Komodakis, 2016), and DenseNet (Huang et al., 2017) as a backbone network. The deeper networks, in general, use feature wiring structures to facilitate the feature propagation. We explore BOIL’s applicability to a deeper network with the wiring structure, ResNet-12, and propose a simple trick to boost representation change by disconnecting the last skip connection. This trick is described in Section 5.1.
|
| 155 |
+
|
| 156 |
+
Table 6: 5-Way 5-Shot test accuracy $( \% )$ of ResNet-12. LSC means Last Skip Connection.
|
| 157 |
+
|
| 158 |
+
<table><tr><td>Meta-train</td><td colspan="3">miniImageNet</td><td colspan="3">Cars</td></tr><tr><td>Meta-test</td><td>miniImageNet</td><td>tieredImageNet</td><td>Cars</td><td>Cars</td><td>miniImageNet</td><td>CUB</td></tr><tr><td>MAML w/LSC</td><td>68.51± 0.39</td><td>71.67 ± 0.13</td><td>43.46± 0.15</td><td>75.49± 0.20</td><td>34.42 ± 0.06</td><td>35.87 ± 0.19</td></tr><tr><td>MAML w/o LSC</td><td>67.87 ± 0.22</td><td>70.31 ± 0.10</td><td>41.40 ± 0.11</td><td>73.63 ± 0.26</td><td>37.65 ± 0.11</td><td>34.77 ± 0.26</td></tr><tr><td>ANIL w/LSC</td><td>68.54 ± 0.34</td><td>71.93 ± 0.11</td><td>45.13 ± 0.15</td><td>79.45 ± 0.23</td><td>35.03 ± 0.07</td><td>35.09 ± 0.19</td></tr><tr><td>ANIL w/o LSC</td><td>67.20 ± 0.13</td><td>69.79 ± 0.24</td><td>43.46 ± 0.18</td><td>75.32 ± 0.15</td><td>38.15 ± 0.15</td><td>36.06 ± 0.14</td></tr><tr><td>BOIL w/LSC</td><td>70.50 ± 0.28</td><td>71.86 ± 0.21</td><td>49.69 ± 0.17</td><td>80.98 ± 0.14</td><td>45.89 ± 0.32</td><td>43.34 ± 0.21</td></tr><tr><td>BOIL w/o LSC</td><td>71.30 ± 0.28</td><td>74.12 ± 0.30</td><td>49.71 ± 0.28</td><td>83.99 ± 0.20</td><td>48.41 ± 0.18</td><td>44.23 ± 0.18</td></tr></table>
|
| 159 |
+
|
| 160 |
+
Table 6 shows the test accuracy results of ResNet-12, which is meta-trained and meta-tested with various data sets according to the fineness of the domains. This result indicates that BOIL can be applied to other general architectures by showing a better performance than MAML not only on standard benchmark data sets but also on cross-domain adaptation. Note that BOIL has achieved the best performance without the last skip connection in every experiment.
|
| 161 |
+
|
| 162 |
+
# 5.1 DISCONNECTION TRICK
|
| 163 |
+
|
| 164 |
+
Connecting the two learning schemes and ResNet’s wiring structure, we propose a simple trick to eliminate the skip connection of the last residual block, which is referred to as a disconnection trick. In section 4.1, we confirmed that the model learned with BOIL applies the representation layer reuse at the low- and mid-levels of the body and representation layer change at the high-level of the body.
|
| 165 |
+
|
| 166 |
+

|
| 167 |
+
Figure 4: Cosine similarity of ResNet-12.
|
| 168 |
+
|
| 169 |
+
To investigate the effects of skip connections on a representation change learning scheme, we analyze the cosine similarity after every residual block in the same way as Figure 2. Figure 4a shows that ResNet with skip connections on all blocks rapidly changes not only the last block but also the other blocks. Because skip connections strengthen the gradient back-propagation, the scope of representation layer change extends to the front. Therefore, to achieve both the effective representation layer reuse and the representation layer change of BOIL, we suggest a way to weaken the gradient back-propagation from the loss function by removing the skip connection of the last block. As shown in Figure 4b, with this simple disconnection trick, ResNet can improve the effectiveness of BOIL, as well as the representation layer reuse at the front blocks of the body and the representation layer change at the last block, and significantly improves the performance, as described in Table 6.
|
| 170 |
+
|
| 171 |
+
We also report various analyses on ResNet-12 in the same way we analyzed 4conv network and representation layer change in the last block in Appendix M and Appendix N.
|
| 172 |
+
|
| 173 |
+
# 6 RELATED WORK
|
| 174 |
+
|
| 175 |
+
MAML (Finn et al., 2017) is one of the most well-known algorithms in gradient-based meta-learning, achieving a competitive performance on few-shot learning benchmark data sets (Vinyals et al., 2016; Ren et al., 2018; Bertinetto et al., 2018; Oreshkin et al., 2018). To tackle the task ambiguity caused by insufficient data in few-shot learning, numerous studies have sought to extend MAML in various ways. Some studies (Oreshkin et al., 2018; Sun et al., 2019; Vuorio et al., 2019) have proposed feature modulators that make task-specific adaptation more amenable by shifting and scaling the representations extracted from the network body. In response to the lack of data for task-specific updates, there have also been attempts to incorporate additional parameters in a small number, rather than all model parameters (Zintgraf et al., 2018; Rusu et al., 2018; Lee & Choi, 2018; Flennerhag et al., 2020). With a similar approach, some studies suggested a way to update only the heads in the inner loop, which has been further improved to update the head using linear separable objectives. (Raghu et al., 2020; Bertinetto et al., 2018; Lee et al., 2019). Grant et al. (2018); Finn et al. (2018); Yoon et al. (2018); Na et al. (2019) have taken a probabilistic approach using Bayesian modeling and variational inference. In addition, Chen et al. (2020) showed that by allowing the discovered task-specific modules (i.e., a (small) subset of a network) to adapt, better performance is achieved than when allowing the whole network to adapt. Notably, in few-shot image classification tasks, the authors showed that the last convolution layer (i.e., penultimate layer) is the most important. Such results were also observed in Arnold et al. (2019).
|
| 176 |
+
|
| 177 |
+
To tackle more realistic problems, few-shot learning has recently been expanding beyond the standard $n$ -way $k$ -shot classification. Triantafillou et al. (2019) constructed a more scalable and realistic data set, called a meta-data set, which contains several data sets collected from different sources. In additions, Na et al. (2019) addressed $n$ -way any-shot classification by considering the imbalanced data distribution in real-world. Furthermore, some studies (Cai & Shen, 2020; Chen et al., 2019) have recently explored few-shot learning on cross-domain adaptation, which is one of the ultimate goals of meta-learning. In addition, Guo et al. (2019) suggested a new cross-domain benchmark data set for few-shot learning and showed that the current meta-learning algorithms (Finn et al., 2017; Vinyals et al., 2016; Snell et al., 2017; Sung et al., 2018; Lee et al., 2019) underachieve compared to simple fine-tuning on cross-domain adaptation. We demonstrated that task-specific update with representation change is efficient for a cross-domain adaptation.
|
| 178 |
+
|
| 179 |
+
# 7 CONCLUSION
|
| 180 |
+
|
| 181 |
+
In this study, we investigated the necessity of representation change for solving domain-agnostic tasks and proposed the BOIL algorithm, which is designed to enforce representation change by learning only the body of the model in the inner loop. We connected BOIL with preconditioning gradients and showed that the effectivenesses from a connection, such as an overfitting reduction and robustness to hyperparameters change, are still valid. Furthermore, we adapt BOIL to WarpGrad, demonstrating improved performance. This result decouples the benefits of representation change and preconditioning gradients. Next, we demonstrated that BOIL trains a model to follow the representation layer reuse scheme on the low- and mid-levels of the body but trains it to follow the representation layer change scheme on the high-level of the body using the cosine similarity and the CKA. We validated the BOIL algorithm on various data sets and a cross-domain adaptation using a standard 4conv network and ResNet-12. The experimental results showed a significant improvement over MAML/ANIL, particularly cross-domain adaptation, implying that representation change should be considered for adaptation to unseen tasks.
|
| 182 |
+
|
| 183 |
+
We hope that our study inspires representation change in gradient-based meta-learning approaches. Our approach is the first to study representation change and focuses on classification tasks. However, we believe that our approach is also efficient in other methods or fields because our algorithm has no restrictions. Furthermore, connecting representation change to memorization overfitting addressed in (Yin et al., 2019; Rajendran et al., 2020) will be an interesting topic.
|
| 184 |
+
|
| 185 |
+
# ACKNOWLEDGMENTS
|
| 186 |
+
|
| 187 |
+
This work was supported by Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government(MSIT) (No.2019-0-00075, Artificial Intelligence Graduate School Program(KAIST)) and by Korea Electric Power Corporation (Grant number: R18XA05).
|
| 188 |
+
|
| 189 |
+
# REFERENCES
|
| 190 |
+
|
| 191 |
+
Sébastien MR Arnold, Shariq Iqbal, and Fei Sha. Decoupling adaptation from modeling with meta-optimizers for meta learning. arXiv preprint arXiv:1910.13603, 2019.
|
| 192 |
+
|
| 193 |
+
Luca Bertinetto, Joao F Henriques, Philip HS Torr, and Andrea Vedaldi. Meta-learning with differentiable closed-form solvers. arXiv preprint arXiv:1805.08136, 2018.
|
| 194 |
+
|
| 195 |
+
John Cai and Sheng Mei Shen. Cross-domain few-shot learning with meta fine-tuning. arXiv preprint arXiv:2005.10544, 2020.
|
| 196 |
+
|
| 197 |
+
Wei-Yu Chen, Yen-Cheng Liu, Zsolt Kira, Yu-Chiang Frank Wang, and Jia-Bin Huang. A closer look at few-shot classification. arXiv preprint arXiv:1904.04232, 2019.
|
| 198 |
+
|
| 199 |
+
Yutian Chen, Abram L Friesen, Feryal Behbahani, Arnaud Doucet, David Budden, Matthew Hoffman, and Nando de Freitas. Modular meta-learning with shrinkage. Advances in Neural Information Processing Systems, 33, 2020.
|
| 200 |
+
|
| 201 |
+
Tristan Deleu, Tobias Würfl, Mandana Samiei, Joseph Paul Cohen, and Yoshua Bengio. Torchmeta: A Meta-Learning library for PyTorch, 2019. URL https://arxiv.org/abs/1909.06576. Available at: https://github.com/tristandeleu/pytorch-meta.
|
| 202 |
+
|
| 203 |
+
Rafael Rego Drumond, Lukas Brinkmeyer, Josif Grabocka, and Lars Schmidt-Thieme. Hidra: Head initialization across dynamic targets for robust architectures. In Proceedings of the 2020 SIAM International Conference on Data Mining, pp. 397–405. SIAM, 2020.
|
| 204 |
+
|
| 205 |
+
Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1126–1135. JMLR. org, 2017.
|
| 206 |
+
|
| 207 |
+
Chelsea Finn, Kelvin Xu, and Sergey Levine. Probabilistic model-agnostic meta-learning. In Advances in Neural Information Processing Systems, pp. 9516–9527, 2018.
|
| 208 |
+
|
| 209 |
+
Sebastian Flennerhag, Andrei A. Rusu, Razvan Pascanu, Francesco Visin, Hujun Yin, and Raia Hadsell. Meta-learning with warped gradient descent. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020. URL https://openreview.net/forum?id $=$ rkeiQlBFPB.
|
| 210 |
+
|
| 211 |
+
Erin Grant, Chelsea Finn, Sergey Levine, Trevor Darrell, and Thomas Griffiths. Recasting gradientbased meta-learning as hierarchical bayes. arXiv preprint arXiv:1801.08930, 2018.
|
| 212 |
+
|
| 213 |
+
Yunhui Guo, Noel CF Codella, Leonid Karlinsky, John R Smith, Tajana Rosing, and Rogerio Feris. A new benchmark for evaluation of cross-domain few-shot learning. arXiv preprint arXiv:1912.07200, 2019.
|
| 214 |
+
|
| 215 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 216 |
+
|
| 217 |
+
Nathan Hilliard, Lawrence Phillips, Scott Howland, Artëm Yankov, Courtney D Corley, and Nathan O Hodas. Few-shot learning with metric-agnostic conditional embeddings. arXiv preprint arXiv:1802.04376, 2018.
|
| 218 |
+
|
| 219 |
+
Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700–4708, 2017.
|
| 220 |
+
|
| 221 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
|
| 222 |
+
|
| 223 |
+
Gregory Koch. Siamese neural networks for one-shot image recognition. 2015.
|
| 224 |
+
|
| 225 |
+
Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey Hinton. Similarity of neural network representations revisited. arXiv preprint arXiv:1905.00414, 2019.
|
| 226 |
+
|
| 227 |
+
Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In Proceedings of the IEEE international conference on computer vision workshops, pp. 554–561, 2013.
|
| 228 |
+
|
| 229 |
+
Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
|
| 230 |
+
|
| 231 |
+
Kwonjoon Lee, Subhransu Maji, Avinash Ravichandran, and Stefano Soatto. Meta-learning with differentiable convex optimization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 10657–10665, 2019.
|
| 232 |
+
|
| 233 |
+
Yoonho Lee and Seungjin Choi. Gradient-based meta-learning with learned layerwise metric and subspace. In International Conference on Machine Learning, pp. 2927–2936, 2018.
|
| 234 |
+
|
| 235 |
+
Subhransu Maji, Esa Rahtu, Juho Kannala, Matthew Blaschko, and Andrea Vedaldi. Fine-grained visual classification of aircraft. arXiv preprint arXiv:1306.5151, 2013.
|
| 236 |
+
|
| 237 |
+
Leland McInnes, John Healy, Nathaniel Saul, and Lukas Großberger. Umap: Uniform manifold approximation and projection. Journal of Open Source Software, 3(29), 2018.
|
| 238 |
+
|
| 239 |
+
Donghyun Na, Hae Beom Lee, Saehoon Kim, Minseop Park, Eunho Yang, and Sung Ju Hwang. Learning to balance: Bayesian meta-learning for imbalanced and out-of-distribution tasks. arXiv preprint arXiv:1905.12917, 2019.
|
| 240 |
+
|
| 241 |
+
Alex Nichol, Joshua Achiam, and John Schulman. On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999, 2018.
|
| 242 |
+
|
| 243 |
+
Maria-Elena Nilsback and Andrew Zisserman. Automated flower classification over a large number of classes. In 2008 Sixth Indian Conference on Computer Vision, Graphics & Image Processing, pp. 722–729. IEEE, 2008.
|
| 244 |
+
|
| 245 |
+
Boris Oreshkin, Pau Rodríguez López, and Alexandre Lacoste. Tadam: Task dependent adaptive metric for improved few-shot learning. In Advances in Neural Information Processing Systems, pp. 721–731, 2018.
|
| 246 |
+
|
| 247 |
+
Aniruddh Raghu, Maithra Raghu, Samy Bengio, and Oriol Vinyals. Rapid learning or feature reuse? towards understanding the effectiveness of maml. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ rkgMkCEtPB.
|
| 248 |
+
|
| 249 |
+
Janarthanan Rajendran, Alexander Irpan, and Eric Jang. Meta-learning requires meta-augmentation. Advances in Neural Information Processing Systems, 33, 2020.
|
| 250 |
+
|
| 251 |
+
Sachin Ravi and Hugo Larochelle. Optimization as a model for few-shot learning. 2016.
|
| 252 |
+
|
| 253 |
+
Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B Tenenbaum, Hugo Larochelle, and Richard S Zemel. Meta-learning for semi-supervised few-shot classification. arXiv preprint arXiv:1803.00676, 2018.
|
| 254 |
+
|
| 255 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International journal of computer vision, 115(3):211–252, 2015.
|
| 256 |
+
|
| 257 |
+
Andrei A Rusu, Dushyant Rao, Jakub Sygnowski, Oriol Vinyals, Razvan Pascanu, Simon Osindero, and Raia Hadsell. Meta-learning with latent embedding optimization. arXiv preprint arXiv:1807.05960, 2018.
|
| 258 |
+
|
| 259 |
+
Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In Advances in neural information processing systems, pp. 4077–4087, 2017.
|
| 260 |
+
|
| 261 |
+
Qianru Sun, Yaoyao Liu, Tat-Seng Chua, and Bernt Schiele. Meta-transfer learning for few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 403–412, 2019.
|
| 262 |
+
|
| 263 |
+
Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip HS Torr, and Timothy M Hospedales. Learning to compare: Relation network for few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1199–1208, 2018.
|
| 264 |
+
|
| 265 |
+
Eleni Triantafillou, Tyler Zhu, Vincent Dumoulin, Pascal Lamblin, Utku Evci, Kelvin Xu, Ross Goroshin, Carles Gelada, Kevin Swersky, Pierre-Antoine Manzagol, et al. Meta-dataset: A dataset of datasets for learning to learn from few examples. arXiv preprint arXiv:1903.03096, 2019.
|
| 266 |
+
Hung-Yu Tseng, Hsin-Ying Lee, Jia-Bin Huang, and Ming-Hsuan Yang. Cross-domain few-shot classification via learned feature-wise transformation. arXiv preprint arXiv:2001.08735, 2020.
|
| 267 |
+
Oriol Vinyals, Charles Blundell, Timothy Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In Advances in neural information processing systems, pp. 3630–3638, 2016.
|
| 268 |
+
Risto Vuorio, Shao-Hua Sun, Hexiang Hu, and Joseph J Lim. Multimodal model-agnostic metalearning via task-aware modulation. In Advances in Neural Information Processing Systems, pp. 1–12, 2019.
|
| 269 |
+
P. Welinder, S. Branson, T. Mita, C. Wah, F. Schroff, S. Belongie, and P. Perona. Caltech-UCSD Birds 200. Technical Report CNS-TR-2010-001, California Institute of Technology, 2010.
|
| 270 |
+
Bing Xu, Naiyan Wang, Tianqi Chen, and Mu Li. Empirical evaluation of rectified activations in convolutional network. arXiv preprint arXiv:1505.00853, 2015.
|
| 271 |
+
Mingzhang Yin, George Tucker, Mingyuan Zhou, Sergey Levine, and Chelsea Finn. Meta-learning without memorization. In International Conference on Learning Representations, 2019.
|
| 272 |
+
Jaesik Yoon, Taesup Kim, Ousmane Dia, Sungwoong Kim, Yoshua Bengio, and Sungjin Ahn. Bayesian model-agnostic meta-learning. In Advances in Neural Information Processing Systems, pp. 7332–7342, 2018.
|
| 273 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
|
| 274 |
+
Matthew D Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In European conference on computer vision, pp. 818–833. Springer, 2014.
|
| 275 |
+
Luisa M Zintgraf, Kyriacos Shiarlis, Vitaly Kurin, Katja Hofmann, and Shimon Whiteson. Fast context adaptation via meta-learning. arXiv preprint arXiv:1810.03642, 2018.
|
| 276 |
+
|
| 277 |
+
# A IMPLEMENTATION DETAIL
|
| 278 |
+
|
| 279 |
+
# A.1 $n$ -WAY $k$ -SHOT SETTING
|
| 280 |
+
|
| 281 |
+
We experimented in the 5-way 1-shot and 5-way 5-shot, and the number of shots is marked in parentheses in the algorithm name column of all tables. During meta-training, models are inner loop updated only once, and the meta-batch size for the outer loop is set to 4. During meta-testing, the number of task-specific (inner loop) updates is the same as meta-training. All the reported results are based on the model with the best validation accuracy.
|
| 282 |
+
|
| 283 |
+
# A.2 MODEL IMPLEMENTATIONS
|
| 284 |
+
|
| 285 |
+
In our experiments, we employ the 4conv network and ResNet-12 for MAML/ANIL and BOIL algorithms. 4conv network has of 4 convolution modules, and each module consists of a $3 \times 3$ convolution layer with 64 filters, batch normalization (Ioffe & Szegedy, 2015), a ReLU non-linearity, a $2 \times 2$ max-pool. ResNet-12 (He et al., 2016) has the same structure with the feature extractor of TADAM (Oreshkin et al., 2018). It has four residual blocks, and each block consists of 3 modules of convolution, batch normalization, and leaky ReLU (Xu et al., 2015). At every end of each residual block, $2 \times 2$ max-pool is applied, and the number of convolution filters is doubled from 64 on each block. Each block also has a wiring structure known as skip connection, which is a link made up of additions between the block’s input and output feature for strengthening feature propagation.
|
| 286 |
+
|
| 287 |
+
Our proposed algorithms can be implemented by just dividing learning rates into for the body and the head. Table 7 shows the learning rates of each network and algorithm. $\alpha _ { b }$ and $\alpha _ { h }$ are the learning rates of the body and the head of the model during inner loops, and $\beta _ { b }$ and $\beta _ { h }$ are the learning rates of the body and the head of the model during outer loops.
|
| 288 |
+
|
| 289 |
+
Table 7: Learning rates according to the algorithms.
|
| 290 |
+
|
| 291 |
+
<table><tr><td></td><td colspan="3">4conv network</td><td colspan="3">ResNet-12</td></tr><tr><td></td><td>MAML</td><td>ANIL</td><td>BOIL</td><td>MAML</td><td>ANIL</td><td>BOIL</td></tr><tr><td>αb</td><td>0.5</td><td>0.0</td><td>0.5</td><td>0.3</td><td>0.0</td><td>0.3</td></tr><tr><td>Qh</td><td>0.5</td><td>0.5</td><td>0.0</td><td>0.3</td><td>0.3</td><td>0.0</td></tr><tr><td>βb</td><td>0.001</td><td>0.001</td><td>0.001</td><td>0.0006</td><td>0.0006</td><td>0.0006</td></tr><tr><td>βh</td><td>0.001</td><td>0.001</td><td>0.001</td><td>0.0006</td><td>0.0006</td><td>0.0006</td></tr></table>
|
| 292 |
+
|
| 293 |
+
# A.3 DATASET
|
| 294 |
+
|
| 295 |
+
We validate the BOIL and MAML/ANIL algorithms on several data sets, considering image size and fineness. Table 8 is the summarization of the used data sets.
|
| 296 |
+
|
| 297 |
+
Table 8: Summary of data sets.
|
| 298 |
+
|
| 299 |
+
<table><tr><td>Data sets</td><td>miniImageNet</td><td>tieredImageNet</td><td>Cars</td><td>CUB</td></tr><tr><td>Source</td><td>Russakovsky et al. (2015)</td><td>Russakovsky et al. (2015)</td><td>Krause et al. (2013)</td><td>Welinder etal. (2010)</td></tr><tr><td>Image size</td><td>84×84</td><td>84×84</td><td>84×84</td><td>84×84</td></tr><tr><td>Fineness</td><td>Coarse</td><td>Coarse</td><td>Fine</td><td>Fine</td></tr><tr><td># meta-training classes</td><td>64</td><td>351</td><td>98</td><td>100</td></tr><tr><td># meta-validation classes</td><td>16</td><td>97</td><td>49</td><td>50</td></tr><tr><td># meta-testing classes</td><td>20</td><td>160</td><td>49</td><td>50</td></tr><tr><td>Split setting</td><td>Vinyals et al. (2016)</td><td>Ren et al. (2018)</td><td>Tseng et al.(2020)</td><td>Hilliard et al. (2018)</td></tr><tr><td>Data sets Source</td><td>FC100</td><td>CIFAR-FS</td><td>VGG-Flower</td><td>Aircraft</td></tr><tr><td>Image size</td><td>Krizhevsky etal. (2009)</td><td>Krizhevsky etal. (2009)</td><td>Nilsback & Zisserman (2008)</td><td>Maji et al. (2013)</td></tr><tr><td>Fineness</td><td>32×32</td><td>32×32</td><td>32×32</td><td>32×32</td></tr><tr><td># meta-training classes</td><td>Coarse</td><td>Coarse</td><td>Fine</td><td>Fine</td></tr><tr><td># meta-validation classes</td><td>60 20</td><td>64</td><td>71</td><td>70</td></tr><tr><td># meta-testing classes</td><td>20</td><td>16 20</td><td>16</td><td>15</td></tr><tr><td>Split setting</td><td></td><td></td><td>15</td><td>15</td></tr><tr><td></td><td>Bertinetto et al. (2018)</td><td>Oreshkin et al. (2018)</td><td>Na et al. (2019)</td><td>Na et al. (2019)</td></tr></table>
|
| 300 |
+
|
| 301 |
+
# B VISUALIZATION USING UMAP
|
| 302 |
+
|
| 303 |
+
Through section 4.1, we show that conv4 in a 4conv network is the critical layer where representation layer change happens. We visualize these representations, the output of conv4, of samples from various data sets using UMAP (McInnes et al., 2018), which is an algorithm for general non-linear dimension reduction. Samples with the same line color belong to the same class. Many examples show the consistency with the intuition shown in Figure 1. When 1) similar instances with different classes are sampled together and 2) representations on the meta-train data set cannot capture representations on the meta-test data set, MAML/ANIL seems to be challenging to cluster samples on representation space since they are based on representation reuse.
|
| 304 |
+
|
| 305 |
+

|
| 306 |
+
Figure 5: UMAP of samples from miniImageNet using the model meta-trained on miniImageNet.
|
| 307 |
+
|
| 308 |
+

|
| 309 |
+
Figure 6: UMAP of samples from Cars using the model meta-trained on Cars.
|
| 310 |
+
|
| 311 |
+
# B.2 CROSS-DOMAIN ADAPTATION
|
| 312 |
+
|
| 313 |
+

|
| 314 |
+
Figure 7: UMAP of samples from tieredImageNet using the model meta-trained on miniImageNet.
|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
Figure 8: UMAP of samples from Cars using the model meta-trained on miniImageNet.
|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
Figure 9: UMAP of samples from miniImageNet using the model meta-trained on Cars.
|
| 321 |
+
|
| 322 |
+

|
| 323 |
+
Figure 10: UMAP of samples from CUB using the model meta-trained on Cars.
|
| 324 |
+
|
| 325 |
+
# C RESULTS ON OTHER DATA SETS
|
| 326 |
+
|
| 327 |
+
We applied our algorithm to other data sets with image size of $3 2 \times 3 2$ . Similar to the analyses on section 4, these data sets can be divided into two general data sets, CIFAR-FS (Bertinetto et al., 2018) and FC100 (Oreshkin et al., 2018), and two specific data sets, VGG-Flower (Nilsback & Zisserman, 2008) and Aircraft (Maji et al., 2013). Table 9, Table 10, and Table 11 generally show the superiority of BOIL even if image size is extremely tiny.
|
| 328 |
+
|
| 329 |
+
Table 9: Test accuracy $( \% )$ of 4conv network on benchmark dataset.
|
| 330 |
+
|
| 331 |
+
<table><tr><td>Domain</td><td colspan="2">General (Coarse-grained)</td><td colspan="2">Specific (Fine-grained)</td></tr><tr><td>Dataset</td><td>CIFAR-FS</td><td>FC100</td><td>VGG-Flower</td><td>Aircraft</td></tr><tr><td>MAML(1)</td><td>56.55 ± 0.45</td><td>35.99± 0.48</td><td>60.94 ± 0.35</td><td>52.27± 0.23</td></tr><tr><td>ANIL(1)</td><td>57.13 ± 0.47</td><td>36.37 ± 0.33</td><td>63.05 ±0.30</td><td>54.54 ± 0.16</td></tr><tr><td>BOIL(1)</td><td>58.03 ± 0.43</td><td>38.93 ± 0.45</td><td>65.64 ± 0.26</td><td>53.37 ± 0.29</td></tr><tr><td>MAML(5)</td><td>70.10±0.29</td><td>47.58± 0.30</td><td>75.13± 0.43</td><td>63.44± 0.26</td></tr><tr><td>ANIL(5)</td><td>69.87 ± 0.39</td><td>45.65 ± 0.44</td><td>72.07 ± 0.48</td><td>63.21 ± 0.16</td></tr><tr><td>BOIL(5)</td><td>73.61 ± 0.32</td><td>51.66 ± 0.32</td><td>79.81 ± 0.42</td><td>66.03 ± 0.14</td></tr></table>
|
| 332 |
+
|
| 333 |
+
Table 10: Test accuracy $( \% )$ of 4conv network on cross-domain adaptation.
|
| 334 |
+
|
| 335 |
+
<table><tr><td>adaptation</td><td>general to general</td><td>general to specific</td><td>specific to general</td><td>specific to specific</td></tr><tr><td>meta-train</td><td>FC100 CIFAR-FS</td><td>CIFAR-FS CIFAR-FS</td><td>VGG-Flower VGG-Flower</td><td>Aircraft VGG-Flower</td></tr><tr><td>meta-test</td><td>CIFAR-FS FC100</td><td>VGG-Flower Aircraft</td><td>CIFAR-FS FC100</td><td>VGG-Flower Aircraft</td></tr><tr><td>MAML(1)</td><td>62.58±0.3552.81±0.28</td><td>49.69±0.24 27.03±0.18</td><td>34.38±0.19 32.45±0.23</td><td>37.05± 0.19 25.70±0.19</td></tr><tr><td>ANIL(1)</td><td>63.05 ± 0.39 55.36 ± 0.47</td><td>50.61 ± 0.29 27.39 ± 0.09</td><td>35.90± 0.20 33.84 ± 0.30</td><td>31.59 ± 0.22 24.55 ± 0.14</td></tr><tr><td>BOIL(1)</td><td>60.71 ± 0.43 54.18 ± 0.35</td><td>56.77 ± 0.35 29.29 ± 0.10</td><td>39.15 ± 0.20 34.37 ± 0.14</td><td>49.85 ± 0.26 29.05 ± 0.16</td></tr><tr><td>MAML(5)</td><td>75.32± 0.34 63.00± 0.18</td><td>64.49±0.23 33.85±0.25</td><td>46.81±0.11 42.06±0.43</td><td>47.74±0.07 30.65±0.19</td></tr><tr><td>ANIL(5)</td><td>77.01 ± 0.51 63.89 ± 0.16</td><td>64.20±0.10 33.24± 0.21</td><td>44.52±0.25 40.51±0.26</td><td>50.28±0.12 28.74 ±0.23</td></tr><tr><td>BOIL(5)</td><td>76.33 ± 0.30 68.55±0.20</td><td>74.93 ± 0.11 39.96±0.11</td><td>55.48 ± 0.21 47.17 ± 0.38</td><td>64.68 ± 0.23 39.81 ± 0.25</td></tr></table>
|
| 336 |
+
|
| 337 |
+
Table 11: 5-Way 5-Shot test accuracy $( \% )$ of ResNet-12. The lsc means the last skip connection.
|
| 338 |
+
|
| 339 |
+
<table><tr><td>Meta-train</td><td colspan="2">CIFAR-FS</td><td colspan="3">VGG-Flower</td></tr><tr><td>Meta-test</td><td>CIFAR-FS FC100</td><td>VGG-Flower</td><td>VGG-Flower</td><td>CIFAR-FS</td><td>Aircraft</td></tr><tr><td>MAMLw/ lsc</td><td>75.30± 0.19 69.34± 0.35</td><td>65.82±0.30</td><td>74.82 ± 0.29</td><td>42.91± 0.20 28.50±0.12</td><td></td></tr><tr><td>MAML w/o lsc</td><td>71.72 ± 0.19 67.60± 0.34</td><td>59.20 ± 0.26</td><td>72.07 ± 0.29</td><td>39.27±0.23</td><td>26.94 ±0.18</td></tr><tr><td>ANIL w/lsc</td><td>74.87 ± 0.11 75.34± 0.45</td><td>63.72 ± 0.40</td><td>77.02 ± 0.29</td><td>45.80 ±0.32</td><td>27.24 ±0.13</td></tr><tr><td>ANIL w/o lsc</td><td>71.39 ± 0.28 69.29 ± 0.32</td><td>52.70 ±0.24</td><td>72.13 ± 0.39</td><td>38.99±0.22</td><td>26.09 ±0.08</td></tr><tr><td>BOIL w/lsc</td><td>78.17 ± 0.14 77.22 ± 0.45</td><td>73.90 ± 0.38</td><td>82.00 ± 0.17</td><td>50.91 ± 0.35</td><td>35.54 ± 0.25</td></tr><tr><td>BOIL w/o lsc</td><td>77.38 ±0.10 70.98 ± 0.34</td><td>73.96±0.27</td><td>83.97 ± 0.17</td><td>55.82±0.44</td><td>37.74± 0.21</td></tr></table>
|
| 340 |
+
|
| 341 |
+
# D RESULTS UNDER THE ORIGINAL HYPERPARAMETERS
|
| 342 |
+
|
| 343 |
+
We also evaluate our algorithm in the original setting (50 times smaller inner learning rate than ours) and confirm that BOIL is more robust to the change of hyperparameters than MAML. Such a characteristic is investigated in Lee & Choi (2018). Table 13 shows the test accuracy of BOIL and MAML/ANIL with the same hyperparameters optimized for MAML, and Figure 11 and Table 12 describe it according to the number of adaptation(s). It is observed that BOIL is the best or near-best, although the hyperparameters are not optimized for BOIL. Moreover, BOIL rapidly adapts and achieves considerable performance through just one adaptation.
|
| 344 |
+
|
| 345 |
+

|
| 346 |
+
Figure 11: Accuracy on miniImageNet according to the number of adaptation(s).
|
| 347 |
+
|
| 348 |
+
Table 12: Test accuracy $( \% )$ according to the number of adaptation(s). Training and testing are on miniImageNet.
|
| 349 |
+
|
| 350 |
+
<table><tr><td>Adaptation #</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td></td><td>8</td><td>9</td><td>10</td></tr><tr><td>MAML(1) ANIL(1)</td><td colspan="9">32.01±0.2436.21±0.1742.74±0.2045.54±0.1846.04±0.1646.21±0.1946.17±0.1846.20±0.1846.22±0.1646.25±0.18 20.97±0.0331.68±0.2541.41±0.2645.69±0.2046.78±0.2646.95±0.3047.05±0.3147.10±0.3047.17±0.2847.0±0.27</td></tr><tr><td>BOIL(1) MAML(5)</td><td colspan="9">45.79±0.4547.15±0.3047.46±0.3447.61±0.3447.67±0.3147.70±0.3247.70±0.3347.71±0.3447.74±0.3247.6±0.31</td></tr><tr><td>ANIL(5)</td><td colspan="9">20.02±0.0020.15±0.0260.31±0.3463.78±0.3464.41±0.3564.55±0.3364.64±0.3164.72±0.3164.77±0.3064.3±0.0</td></tr><tr><td>BOIL(5)</td><td colspan="9">20.00±0.00 24.52±0.1951.59±0.1758.84±0.4662.06±0.3762.34±0.3662.45±0.3862.51±0.3762.55±0.3862.59±0.39 58.15±0.2362.42±0.3363.56±0.2664.04±0.3064.21±0.2864.27±0.3064.32±0.3064.35±0.2964.38±02864.40±0.28</td></tr></table>
|
| 351 |
+
|
| 352 |
+
Table 13: Test accuracy $( \% )$ under the same architecture, learning rate, and the number of inner updates with (Finn et al., 2017; Raghu et al., 2020).
|
| 353 |
+
|
| 354 |
+
<table><tr><td>Meta-train</td><td colspan="3">miniImageNet</td><td colspan="3">Cars</td></tr><tr><td>Meta-test</td><td>miniImageNet</td><td>tieredImageNet</td><td>Cars</td><td>Cars</td><td>miniImageNet</td><td>CUB</td></tr><tr><td>MAML(1)</td><td>46.25 ± 0.18</td><td>49.45± 0.14</td><td>34.78±0.36</td><td>46.02 ± 0.33</td><td>28.87 ± 0.11</td><td>29.92 ± 0.23</td></tr><tr><td>ANIL(1)</td><td>47.20 ± 0.27</td><td>50.04 ±0.13</td><td>32.87 ± 0.39</td><td>45.31 ± 0.27</td><td>29.12 ± 0.11</td><td>30.39 ± 0.21</td></tr><tr><td>BOIL(1)</td><td>47.76 ± 0.31</td><td>51.35 ± 0.18</td><td>34.89 ± 0.23</td><td>50.54 ± 0.41</td><td>32.40 ±0.19</td><td>32.99 ± 0.29</td></tr><tr><td>MAML(5)</td><td>64.83± 0.30</td><td>67.06± 0.25</td><td>48.25± 0.24</td><td>69.27 ± 0.27</td><td>43.52 ± 0.20</td><td>45.12± 0.20</td></tr><tr><td>ANIL(5)</td><td>62.59 ± 0.39</td><td>65.55 ± 0.16</td><td>45.44 ± 0.18</td><td>62.67 ± 0.25</td><td>36.89 ± 0.16</td><td>40.38 ± 0.19</td></tr><tr><td>BOIL(5)</td><td>64.40 ± 0.28</td><td>65.81 ± 0.26</td><td>48.39 ± 0.25</td><td>68.56 ± 0.34</td><td>43.34 ± 0.21</td><td>46.32 ± 0.11</td></tr></table>
|
| 355 |
+
|
| 356 |
+
# E OVERFITTING ISSUE
|
| 357 |
+
|
| 358 |
+
We employ networks with various sizes of filters, 32, 64, and 128. The best validation scores of each model are 64.01, 66.72, and 69.23, and these results mean that with BOIL, the more extensive network yields higher accuracy without overfitting.
|
| 359 |
+
|
| 360 |
+

|
| 361 |
+
Figure 12: Training/Validation accuracy curve on miniImageNet according to filters in BOIL.
|
| 362 |
+
|
| 363 |
+
# F WARPGRAD AND BOIL-WARPGRAD
|
| 364 |
+
|
| 365 |
+
# F.1 IMPLEMENTATION DETAIL
|
| 366 |
+
|
| 367 |
+
We follow the default setting of the public code except for meta train steps and the number of filters, following Flennerhag et al. (2020). We change meta train steps to 100 and the number of filters to 128. The task is 20way-5shot(in expectation) on Omniglot. Here, “in expectation” means that 100 samples are used for task-specific updates, but the number of samples per class is not the same. Furthermore, this task supports the superiority of BOIL in long-term adaptations.
|
| 368 |
+
|
| 369 |
+
# F.2 ARCHITECTURE
|
| 370 |
+
|
| 371 |
+
Here are the architectures of WarpGrad and BOIL-WarpGrad. The WarpGrad w/o last warp head model is the default one in the original code.
|
| 372 |
+
|
| 373 |
+

|
| 374 |
+
Figure 13: Architectures of WarpGrad and BOIL-WarpGrad.
|
| 375 |
+
|
| 376 |
+
# G GRADIENT NORM
|
| 377 |
+
|
| 378 |
+

|
| 379 |
+
Figure 14: Gradient norm.
|
| 380 |
+
|
| 381 |
+
We calculated the norm of gradients caused by an inner loop according to the algorithm. Although the norm of gradients on the head of BOIL is not really zero, we marked 0 because the learning rate on the head is zero. The norm of gradients of biases is negligible (about $1 0 ^ { - 8 }$ ), and thus it was omitted. MAML/ANIL has an extremely small norm or no norms on all convolutional layers. It implies that representations little or no change. On the other hand, BOIL has a large norm on the conv4 layer. It implies that representations change significantly. In addition, from the analysis of cosine similarity and CKA, we mentioned that BOIL enjoys representation layer reuse in a low- and mid-level of body. Nevertheless, Figure 14 shows that the amount of representation layer change in a low- and mid-level in BOIL is larger than that in MAML/ANIL.
|
| 382 |
+
|
| 383 |
+
# H COSINE SIMILARITIES INCLUDING HEAD
|
| 384 |
+
|
| 385 |
+

|
| 386 |
+
Figure 15 is an extended version of Figure 2.
|
| 387 |
+
Figure 15: Cosine similarity of 4conv network including head.
|
| 388 |
+
|
| 389 |
+
# I REPRESENTATION CHANGE IN BOIL ON CARS
|
| 390 |
+
|
| 391 |
+
This section describes representation change in BOIL on Cars. The structure of this section is the same as that of section 4.
|
| 392 |
+
|
| 393 |
+

|
| 394 |
+
Figure 16: Cosine similarity of 4conv network on Cars.
|
| 395 |
+
|
| 396 |
+

|
| 397 |
+
Figure 17: CKA of 4conv on Cars.
|
| 398 |
+
|
| 399 |
+
Table 14: Test accuracy $( \% )$ of 4conv network according to the head’s existence before/after an adaptation.
|
| 400 |
+
|
| 401 |
+
<table><tr><td>meta-train</td><td colspan="5">Cars</td></tr><tr><td>meta-test</td><td colspan="3">Cars</td><td colspan="2">CUB</td></tr><tr><td>head</td><td>w/head</td><td>w/o head (NIL-testing)</td><td></td><td>w/head</td><td>w/o head (NIL-testing)</td></tr><tr><td>adaptation</td><td>before after</td><td>before</td><td>after</td><td>before after</td><td>before after</td></tr><tr><td>MAML(1)</td><td>20.03±0.25 45.27±0.26</td><td>47.87± 0.18 47.23± 0.24</td><td></td><td>20.01± 0.08 29.64±0.19</td><td>31.01± 0.26 31.15± 0.23</td></tr><tr><td>ANIL(1)</td><td>20.01 ± 0.18 46.81 ± 0.24</td><td>49.45 ±0.18 49.45 ±0.18</td><td></td><td>20.02 ±0.08 28.32 ±0.32</td><td>29.72± 0.27 29.72 ±0.27</td></tr><tr><td>BOIL(1)</td><td>20.19 ± 0.19 56.82 ±0.21</td><td>25.46 ± 0.29 52.36±0.13</td><td></td><td>19.96 ± 0.12 34.79 ± 0.27</td><td>22.93 ± 0.17 34.51 ± 0.21</td></tr><tr><td>MAML(5)</td><td>20.11±0.16 53.23±0.26</td><td>59.67± 0.22 59.38± 0.23</td><td></td><td>20.00±0.22 32.18±0.13</td><td>36.12 ± 0.24 36.61 ± 0.19</td></tr><tr><td>ANIL(5)</td><td>20.09 ± 0.17 61.95 ± 0.38</td><td>67.03 ± 0.36 67.03 ± 0.36</td><td></td><td>19.99 ± 0.18 37.99 ± 0.15</td><td>43.27± 0.31 43.27 ± 0.31</td></tr><tr><td>BOIL(5)</td><td>20.04 ± 0.08 75.18± 0.21</td><td>36.65 ±0.11 71.52 ± 0.27</td><td></td><td>20.02 ± 0.05 45.91 ±0.28</td><td>29.04 ± 0.18 47.02 ± 0.25</td></tr></table>
|
| 402 |
+
|
| 403 |
+
# J OUTPUT LAYER OF MAML/ANIL AND PENULTIMATE LAYER OF BOIL
|
| 404 |
+
|
| 405 |
+
To investigate the role of the penultimate layer (i.e., the last convolutional layer) of BOIL, we evaluated MAML/ANIL and BOIL through NIL-testing on conv3 in the same way with NIL-testing on conv4 (Table 5), except for the position of representations. Table 15 shows that the input of the penultimate layer (i.e., features after conv3) cannot be simply classified (i.e., the desired performance cannot be achieved), and these representation capacities are similar for all MAML, ANIL, and BOIL. Therefore, It is thought that MAML/ANIL and BOIL acts similarly until conv3 and BOIL is not simply the shifted version of MAML/ANIL.
|
| 406 |
+
|
| 407 |
+
Table 15: Test accuracy $( \% )$ of NIL-testing on conv3 and conv4 of 4conv network before/after an adaptation.
|
| 408 |
+
|
| 409 |
+
<table><tr><td rowspan=1 colspan=1>meta-train</td><td rowspan=1 colspan=9>miniImageNet</td></tr><tr><td rowspan=1 colspan=1>meta-test</td><td rowspan=1 colspan=7>miniImageNet</td><td rowspan=1 colspan=2>Cars</td></tr><tr><td rowspan=1 colspan=1>head</td><td rowspan=1 colspan=1>NIL-testing on conv3</td><td rowspan=1 colspan=6>NIL-testing on conv4</td><td rowspan=1 colspan=1>NIL-testing on conv3</td><td rowspan=1 colspan=1>NIL-testing on conv4</td></tr><tr><td rowspan=1 colspan=1>adaptation</td><td rowspan=1 colspan=1>before after</td><td rowspan=1 colspan=6>before after</td><td rowspan=1 colspan=1>before after</td><td rowspan=1 colspan=1>before after</td></tr><tr><td rowspan=2 colspan=1>MAML(1)ANIL(1)</td><td rowspan=2 colspan=1>32.56±0.14 32.73± 0.1434.34± 0.10 34.34±0.10</td><td rowspan=2 colspan=6>48.28± 0.20 47.87±0.1448.86± 0.12 48.86±0.12</td><td rowspan=2 colspan=1>30.86±0.09 31.03±0.0831.09 ± 0.08 31.09± 0.08</td><td rowspan=3 colspan=1>34.47± 0.19 34.36± 0.1635.48 ± 0.24 35.48 ±0.2423.30± 0.15 34.07 ± 0.32</td></tr><tr><td rowspan=2 colspan=3>48.86 ± 0.1</td><td rowspan=1 colspan=2>48.86</td><td rowspan=2 colspan=3>48.86± 0.12 48.86±0.1224.07 ± 0.19 46.73 ± 0.17</td><td rowspan=1 colspan=1>0.12.48</td></tr><tr><td rowspan=1 colspan=1>BOIL(1)</td><td rowspan=1 colspan=1>30.65 ± 0.07 31.09 ± 0.12</td><td rowspan=1 colspan=1>27.53 ± 0.16 27.80 ± 0.15</td></tr><tr><td rowspan=1 colspan=1>MAML(5)</td><td rowspan=1 colspan=1>51.03±0.08 53.29±0.10</td><td rowspan=2 colspan=4>64.61 ± 0.39 64.47±0.3966.11 ± 0.51 66.11 ± 0.51</td><td rowspan=2 colspan=2>64.61 ± 0.39 64.47±0.3966.11 ± 0.51 66.11 ± 0.51</td><td rowspan=2 colspan=1>44.54± 0.21 45.19± 0.2145.81± 0.14 45.81 ± 0.14</td><td rowspan=3 colspan=1>47.66± 0.28 47.53±0.2849.62 ± 0.20 49.62 ±0.2030.33±0.18 50.40±0.30</td></tr><tr><td rowspan=1 colspan=1>ANIL(5)</td><td rowspan=1 colspan=1>55.55± 0.14 55.55 ± 0.14</td></tr><tr><td rowspan=1 colspan=1>BOIL(5)</td><td rowspan=1 colspan=1>49.42 ± 0.12 50.12 ± 0.12</td><td rowspan=1 colspan=6>32.03 ± 0.16 64.61 ± 0.27</td><td rowspan=1 colspan=1>43.93 ± 0.32 44.52 ±0.18</td></tr></table>
|
| 410 |
+
|
| 411 |
+
Furthermore, the input of the output layer before adaptation (i.e., features after the penultimate layer) is enough to achieve the desired performance in MAML/ANIL in advance. From this result, we believe the head layer’s role of MAML/ANIL is to draw a simple decision boundary for the high-level features represented by the output of the last convolutional layer. However, the penultimate layer of BOIL acts as a non-linear transformation so that the fixed output head layer can effectively conduct a classifier role.
|
| 412 |
+
|
| 413 |
+
In this section, we investigate whether training any representation layer during inner updates is better than training the output layer during inner updates by learning only one convolutional layer. Figure 18 shows the test accuracy according to a single learning layer in the body. For instance, conv1 plotted in red color indicates that the algorithm updates only the conv1 layer during inner updates. In contrast, conv1 plotted in blue color is the case that the algorithm updates the conv1 layer and the head layer during inner updates.
|
| 414 |
+
|
| 415 |
+

|
| 416 |
+
Figure 18: Test accuracy according to the learning layer in the body.
|
| 417 |
+
|
| 418 |
+
On both miniImageNet and Cars, it is observed that training a higher-level representation layer (conv3, conv4) without updating the head (red line) performs better than training any single conv layer with the output layer (blue line). We also observe that learning only a lower-level representation layer (conv1, conv2) can significantly decrease accuracy. The results reassure that representation layer change in higher-level layers of the body boosts the performance discussed by the layer-wise analyses in section 4. However, training only a lower-level layer behaves badly since lower-level layers retain general representations (a related discussion is in Section 4.1, e.g., the third key observation).
|
| 419 |
+
|
| 420 |
+
Table 16: Test accuracy $( \% )$ of 4conv network according to the learning layer(s). Standard deviation is omitted.
|
| 421 |
+
|
| 422 |
+
<table><tr><td rowspan=1 colspan=1>Learning layer</td><td rowspan=1 colspan=1>1layer</td><td rowspan=1 colspan=1>2 layers</td><td rowspan=1 colspan=1>3layers</td><td rowspan=1 colspan=1>4 layers</td><td rowspan=1 colspan=1>all</td></tr><tr><td rowspan=1 colspan=1>conv1conv2conv3</td><td rowspan=2 colspan=1>√1√1√</td><td rowspan=2 colspan=1>√√ √√ 广</td><td rowspan=2 colspan=1>>>> √<>>√</td><td rowspan=2 colspan=1>><>> >>>></td><td rowspan=2 colspan=1>√√√√√</td></tr><tr><td rowspan=1 colspan=1>conv4head</td></tr><tr><td rowspan=1 colspan=1>Algorithm</td><td rowspan=1 colspan=1>ANIL</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>BOIL</td><td rowspan=1 colspan=1>MAML</td></tr><tr><td rowspan=4 colspan=1>miniImageNettieredImageNetCarsCUB</td><td rowspan=4 colspan=1>54.74 41.07 67.07 66.19 63.0452.78 61.76 69.20 69.39 65.8252.55 70.08 75.90 73.56 61.9566.22 72.40 80.52 77.25 70.93</td><td rowspan=1 colspan=1>60.79 67.44 65.86 61.24</td><td rowspan=1 colspan=1>67.18 67.40 62.99</td><td rowspan=2 colspan=1>66.45 61.1169.37 64.69</td><td rowspan=1 colspan=1>61.75</td></tr><tr><td rowspan=3 colspan=1>61.01 67.09 70.34 64.9268.70 78.21 72.99 61.4673.48 80.42 77.61 77.35</td><td rowspan=1 colspan=1>68.72 69.51 64.72</td><td rowspan=1 colspan=1>64.70</td></tr><tr><td rowspan=1 colspan=1>73.59 74.80 64.58</td><td rowspan=1 colspan=1>75.18 63.97</td><td rowspan=2 colspan=1>53.2369.66</td></tr><tr><td rowspan=1 colspan=1>79.19 76.62 77.40</td><td rowspan=1 colspan=1>75.96 71.24</td></tr><tr><td rowspan=1 colspan=1>CIFAR-FS</td><td rowspan=1 colspan=1>71.58 70.47 71.01 70.88 69.87</td><td rowspan=1 colspan=1>72.15 71.85 74.43 71.43</td><td rowspan=1 colspan=1>72.9375.5672.07</td><td rowspan=1 colspan=1>73.61 71.73</td><td rowspan=1 colspan=1>70.10</td></tr><tr><td rowspan=1 colspan=1>FC100</td><td rowspan=1 colspan=1>48.03 48.04 48.97 47.93 45.65</td><td rowspan=1 colspan=1>47.71 48.23 53.86 48.78</td><td rowspan=1 colspan=1>52.95 53.11 48.25</td><td rowspan=1 colspan=1>51.66 47.59</td><td rowspan=1 colspan=1>47.58</td></tr><tr><td rowspan=2 colspan=1>VGG-FlowerAircraft</td><td rowspan=1 colspan=1>77.96 76.84 76.02 77.10 72.07</td><td rowspan=1 colspan=1>74.69 76.10 81.63 74.73</td><td rowspan=1 colspan=1>83.61 82.46 77.74</td><td rowspan=2 colspan=1>79.81 77.7266.03 62.88</td><td rowspan=2 colspan=1>75.1363.44</td></tr><tr><td rowspan=1 colspan=1>65.01 61.63 64.91 65.91 63.21</td><td rowspan=1 colspan=1>62.93 63.37 66.62 62.71</td><td rowspan=1 colspan=1>66.3367.12 63.39</td></tr></table>
|
| 423 |
+
|
| 424 |
+
We expand this ablation study to training multiple consecutive layers with and without the head. The results are reported in Table 16 and Table 17. In Table 16, we consistently observe that learning with the head is far from the best accuracy. All the combinations having nice performances do not train the head in the inner loop update. We also find several settings skipping the lower-level layers in the inner loop that perform slightly better than BOIL. We believe each neural network architecture and data set pair has its own best layer combination. When it is allowed to search for the best combination using huge computing power, we can further improve BOIL. However, the most important design policy is that the inner loop update should freeze the head and encourage to learn higher-level representation features but to reuse lower-level representation features. BOIL follows the design rule by simply freezing the head in the inner loop that is already almost the best approach in most cases. In Table 17, there are the cases where learning a classifier leads to performance improvement. We thought that this is because the ablation study on ResNet-12 is done at the block-level. More precisely, one block includes many layers and this issue is discussed in Appendix N.
|
| 425 |
+
|
| 426 |
+
Table 17: Test accuracy $( \% )$ of ResNet-12 without last skip connection according to the learning block(s). Standard deviation is omitted.
|
| 427 |
+
|
| 428 |
+
<table><tr><td>Learning block</td><td>1 block</td><td>2 blocks</td><td>3blocks</td><td>4 blocks</td><td></td><td>all</td></tr><tr><td>block1</td><td rowspan="6">√ √</td><td>V</td><td><>></td><td></td><td><>>></td><td>√</td></tr><tr><td>block2</td><td></td><td>√</td><td>√</td><td></td><td>√</td></tr><tr><td>block3</td><td>√</td><td>√ √</td><td>√ >>></td><td></td><td>√</td></tr><tr><td>block4</td><td>1</td><td>√</td><td>√</td><td></td><td>√</td></tr><tr><td>head</td><td>√</td><td>√ √</td><td></td><td>>>>></td><td>√</td></tr><tr><td>Algorithm</td><td>ANIL</td><td></td><td></td><td></td><td></td></tr><tr><td>miniImageNet</td><td>19.94 64.20 69.95 70.52 67.20</td><td></td><td></td><td>70.12 69.76 69.08</td><td>BOIL</td><td></td><td>MAML</td></tr><tr><td>tieredImageNet</td><td>20.10 47.64 68.57 70.41 72.22</td><td></td><td>63.0869.19 67.75 66.19</td><td></td><td></td><td>71.30 66.44</td><td>67.87</td></tr><tr><td></td><td></td><td></td><td>55.22 69.69 70.11 72.38</td><td>67.64 69.61 71.67</td><td>73.44 71.02</td><td></td><td>71.25</td></tr><tr><td>Cars CUB</td><td>19.98 55.86 74.71 74.45 75.32</td><td></td><td>65.30 70.41 74.06 69.51</td><td>68.16 58.43 69.78</td><td>83.99 71.75</td><td></td><td>73.63</td></tr><tr><td></td><td>20.02 74.84 79.26 81.58 74.66</td><td></td><td>75.07 80.12 82.09 74.24</td><td>80.26 82.75 74.94</td><td>83.22 75.66</td><td></td><td>76.23</td></tr><tr><td>CIFAR-FS FC100</td><td>19.98 69.90 77.65 78.39 72.47 20.15 48.32 50.86 49.60 45.61</td><td></td><td>69.65 78.06 79.83 72.38</td><td>77.31 79.15 71.22</td><td></td><td>78.63 71.83</td><td>71.79</td></tr><tr><td>VGG-Flower</td><td>19.98 80.32 84.68 82.22 73.77</td><td></td><td>47.44 51.75 51.82 46.93</td><td>50.72 50.55 45.21</td><td></td><td>49.87 46.29</td><td>44.90</td></tr><tr><td>Aircraft</td><td></td><td></td><td>79.80 85.13 80.75 72.14</td><td>83.53 82.69 71.93</td><td></td><td>82.17 72.00</td><td>72.43</td></tr><tr><td></td><td>20.06 71.48 76.97 77.22 78.62</td><td></td><td>72.17 78.47 77.61 79.51</td><td>76.75 76.89 78.16</td><td></td><td>78.85 78.79</td><td>77.15</td></tr></table>
|
| 429 |
+
|
| 430 |
+
# L ADDITIONAL CONSIDERATIONS OF THE HEAD OF BOIL
|
| 431 |
+
|
| 432 |
+
We additionally discuss what the ideal meta-initialization is. Because the few-shot classification tasks are constructed with sampled classes each time, every task consists of different classes. Since the class indices are randomly assigned at the beginning of each task learning, the meta-initialized parameters cannot contain any prior information on the class indices. For instance, it is not allowed that the meta-initialized parameters encode class similarities between class $i$ and class $j$ . Any biased initial guess could hinder the task learning. The meta-initialized parameters should be in-between (local) optimal points of tasks as depicted in Figure 19 so that the network can adapt to each task with few task-specific updates.6
|
| 433 |
+
|
| 434 |
+

|
| 435 |
+
Figure 19: Ideal metainitialization.
|
| 436 |
+
|
| 437 |
+

|
| 438 |
+
Figure 20: Valid accuracy curves of (a) centering algorithm and (b) fix algorithm on Cars.
|
| 439 |
+
|
| 440 |
+
When the head parameters $\theta _ { h } = [ \theta _ { h , 1 } , . . . , \theta _ { h , n } ] ^ { \intercal } \in \mathbb { R } ^ { n \times d }$ have orthonormal rows (i.e., $\| \theta _ { h , i } \| _ { 2 } = 1$ for all $i$ and $\theta _ { h , i } ^ { \top } \theta _ { h , j } = 0$ for all $i \neq j$ ), the meta-initialized model can have the unbiased classifier. Here, $a ^ { \top }$ denotes the transpose of $a$ and $\| \cdot \| _ { 2 }$ denotes the Euclidean norm. With the orthonormal rows, therefore, each logit value $\theta _ { h , j } ^ { \top } f _ { \theta _ { b } } ( x )$ can be controlled independently of other logit values. Recall that the softmax probability $p _ { j }$ for class $j$ of sample $x$ is computed as follows:
|
| 441 |
+
|
| 442 |
+
$$
|
| 443 |
+
p _ { j } ( x ) = \frac { e ^ { \theta _ { h , j } \top } f _ { \theta _ { b } } ( x ) } { \sum _ { i = 1 } ^ { n } e ^ { \theta _ { h , i } \top } f _ { \theta _ { b } } ( x ) } = \frac { 1 } { \sum _ { i = 1 } ^ { n } e ^ { ( \theta _ { h , i } - \theta _ { h , j } ) ^ { \top } f _ { \theta _ { b } } ( x ) } } .
|
| 444 |
+
$$
|
| 445 |
+
|
| 446 |
+
In Equation 4, indeed, the softmax probability only depends on the differences of the rows of the head parameters $\theta _ { h , i } - \theta _ { h , j }$ . Adding a vector to all the rows (i.e., $\theta _ { h , i } \gets \theta _ { h , i } + c$ for all $i$ ) does not change the softmax vector. So, we can expect the same nice meta-initialized model, when a parallel shift of the rows of the head parameters can make orthonormal rows. To support this experimentally, we design the centering algorithm that operates a parallel shift of $\theta _ { h }$ by subtracting h [θh,1 − ¯θh, ..., θh,n − ¯θh]> where ¯θh = 1n Pni=1 θh,i. Figure 20a shows that this parallel shift
|
| 447 |
+
|
| 448 |
+
Next, we investigate the cosine similarity between $\theta _ { h , i } ^ { \top } - \theta _ { h , k } ^ { \top }$ and $\theta _ { h , j } ^ { \top } - \theta _ { h , k } ^ { \top }$ for all different $i , j$ , and fixed $k$ . From the training procedures of MAML and BOIL, it is observed that the average of cosine similarities between the two gaps keeps near 0.5 during meta-training (Figure 21). Note that 0.5 is the cosine similarity between $\bar { \theta _ { h , i } } ^ { \top } - \bar { \theta } _ { h , k } ^ { \top }$ and $\theta _ { h , j } ^ { \top } - \theta _ { h , k } ^ { \top }$ when ${ \theta _ { h , i } } ^ { \top } , { \theta _ { h , j } } ^ { \top }$ , and $\theta _ { h , k } ^ { \top }$ are orthonormal. From the results, we evidence that the orthonormality of $\theta _ { h }$ is important for the meta-initialization and meta learning algorithms naturally keep the orthonormality.
|
| 449 |
+
|
| 450 |
+

|
| 451 |
+
Figure 21: Average of cosine similarities between gaps.
|
| 452 |
+
|
| 453 |
+
From the above observation, we design the $\mathit { \Omega } \mathcal { f } x$ algorithm that fixes $\theta _ { h }$ to be orthonormal for the meta-initialized model. Namely, MAML-fix updates $\theta _ { h }$ in inner loops only, and BOIL-fix does not update $\theta _ { h }$ . The $\mathit { \Omega } \mathcal { f } x$ algorithm can be easily implemented by initializing $\theta _ { h }$ to be orthonormal through the Gram-Schmidt method from a random matrix and setting the learning rate for the head of the model during the outer loop to zero.
|
| 454 |
+
|
| 455 |
+
Figure 20b depicts the valid accuracy curves of the fix algorithm on Cars. The experiments substantiate that orthonormal rows of $\theta _ { h }$ are important and that BOIL improves the performance. (1) Comparing MAML to MAML-fix (the left panel of Figure 20b), MAML-fix outperforms MAML. It means that the outer loop calculated through the task-specific head following MAML is detrimental because the outer loop adds unnecessary task-specific information to the model. (2) Comparing vanilla models to fix models (both panels of Figure 20b), a fixed meta-initialized head with orthonormality is less over-fitted. (3) Comparing BOIL to BOIL-fix (the right panel of Figure 20b), although BOIL-fix can achieve almost the same performance with BOIL with sufficient iterations, BOIL converges faster to a better local optimum. This is because $\theta _ { h }$ is trained so that the inner loop can easily adapt $f _ { \theta _ { b } } ( x )$ to each class.
|
| 456 |
+
|
| 457 |
+
# M REPRESENTATION CHANGE IN RESNET-12
|
| 458 |
+
|
| 459 |
+
Figure 22 shows the CKA of ResNet according to the algorithm. Like the 4conv network, MAML/ANIL algorithms change the values only in the logit space, i.e., the space after head, regardless of the last skip connection. However, the BOIL algorithm changes the values in the representation spaces. By disconnecting the last skip connection, representation layer change is concentrated on the high-level representation space, i.e., the CKA of BOIL w/o LSC is smaller than that of BOIL w/ LSC after block4. Table 18 shows empirical results of ResNet-12.
|
| 460 |
+
|
| 461 |
+

|
| 462 |
+
Figure 22: CKA of ResNet12 on miniImageNet.
|
| 463 |
+
|
| 464 |
+
Table 18: 5-Way 5-Shot test accuracy $( \% )$ of ResNet-12 meta-trained on miniImageNet according to the head’s existence before/after an adaptation.
|
| 465 |
+
|
| 466 |
+
<table><tr><td colspan="6">meta-train</td></tr><tr><td>meta-test</td><td colspan="3">miniImageNet miniImageNet</td><td colspan="2">Cars</td></tr><tr><td>head</td><td>w/head</td><td>w/o head (NIL-testing)</td><td></td><td>w/head</td><td>w/o head (NIL-testing)</td></tr><tr><td>adaptation</td><td>before after</td><td>before</td><td>after</td><td>before after</td><td>before after</td></tr><tr><td>MAMLw/LSC</td><td>20.02 ± 0.21 68.51± 0.39</td><td>70.44± 0.30 70.37± 0.32</td><td></td><td>20.06±0.07 43.46±0.15</td><td>46.08± 0.22 46.05±0.19</td></tr><tr><td>MAML w/o LSC</td><td>20.04 ±0.36 67.87 ± 0.22</td><td>69.35 ± 0.15 69.28 ± 0.14</td><td></td><td>19.98 ± 0.16 41.40 ± 0.11</td><td>43.55 ± 0.17 43.56 ± 0.16</td></tr><tr><td>ANIL w/LSC</td><td>19.85 ± 0.19 68.54 ± 0.34</td><td>70.31± 0.34 70.31 ± 0.34</td><td></td><td>19.99 ± 0.15 45.13 ± 0.15</td><td>47.16± 0.20 47.16 ± 0.20</td></tr><tr><td>ANIL w/o LSC</td><td>19.97 ± 0.21 67.20 ± 0.13</td><td>68.47 ± 0.21 68.47 ± 0.21</td><td></td><td>20.03 ±0.23 43.46±0.18</td><td>45.16 ± 0.11 45.16 ± 0.11</td></tr><tr><td>BOIL w/LSC</td><td>20.01 ± 0.18 70.50 ± 0.28</td><td>44.65 ± 0.49 70.34 ± 0.31</td><td></td><td>20.02 ± 0.08 49.69±0.17</td><td>38.73 ± 0.16 49.54 ± 0.23</td></tr><tr><td>BOIL w/o LSC</td><td>20.00 ± 0.00 71.30±0.28</td><td>40.04 ± 0.33 71.18± 0.29</td><td></td><td>20.00 ±0.00 49.71±0.28</td><td>32.53 ±0.29 51.41±0.32</td></tr></table>
|
| 467 |
+
|
| 468 |
+

|
| 469 |
+
Furthermore, we identified representation change of ResNet-12 meta-trained on Cars in BOIL.
|
| 470 |
+
|
| 471 |
+

|
| 472 |
+
Figure 23: Cosine similarity of ResNet-12 on Cars.
|
| 473 |
+
Figure 24: CKA of ResNet-12 on Cars.
|
| 474 |
+
|
| 475 |
+
Table 19: 5-Way 5-Shot test accuracy $( \% )$ of ResNet-12 meta-trained on Cars according to the head’s existence before/after an adaptation.
|
| 476 |
+
|
| 477 |
+
<table><tr><td colspan="6">meta-train</td></tr><tr><td>meta-test</td><td colspan="3">Cars Cars</td><td colspan="2">CUB</td></tr><tr><td>head</td><td colspan="3">w/ head w/o head (NIL-testing)</td><td colspan="2">w/head</td></tr><tr><td>adaptation</td><td>before after</td><td>before</td><td>after</td><td>before after</td><td>w/o head (NIL-testing) before after</td></tr><tr><td>MAML w/LSC</td><td>20.11 ± 0.22 75.49± 0.20</td><td>77.01±0.14 76.76±0.17</td><td></td><td>20.13± 0.10 35.87±0.19</td><td>36.57± 0.20 36.62± 0.17</td></tr><tr><td>MAML w/o LSC</td><td>20.04 ±0.08 73.63 ± 0.26</td><td>75.81 ± 0.20 75.61 ± 0.25</td><td></td><td>20.03 ± 0.14 34.77 ± 0.26</td><td>36.26 ± 0.21 36.04 ± 0.27</td></tr><tr><td>ANIL w/LSC</td><td>20.06 ± 0.35 79.45 ± 0.23</td><td>80.88 ±0.19 80.88 ± 0.19</td><td></td><td>20.12 ± 0.14 35.09 ± 0.19</td><td>35.80 ± 0.16 35.80 ±0.16</td></tr><tr><td>ANIL w/o LSC</td><td>20.20 ± 0.33 75.32 ± 0.15</td><td>76.90 ± 0.16 76.90 ± 0.16</td><td></td><td>20.01 ± 0.18 36.06 ± 0.14</td><td>37.34± 0.13 37.34 ± 0.13</td></tr><tr><td>BOIL w/LSC</td><td>20.00± 0.00 80.98 ±0.14</td><td>40.54 ± 0.11 81.11 ± 0.24</td><td></td><td>20.00 ± 0.00 43.84 ± 0.21</td><td>37.27 ± 0.12 45.44 ± 0.23</td></tr><tr><td>BOIL w/o LSC</td><td>20.00 ±0.00 83.99± 0.20</td><td>50.42 ± 0.23 83.60±0.18</td><td></td><td>20.00 ± 0.00 44.23±0.18</td><td>31.69 ± 0.14 44.19± 0.17</td></tr></table>
|
| 478 |
+
|
| 479 |
+
# N REPRESENTATION LAYER CHANGE IN THE LAST BLOCK OF RESNET-12
|
| 480 |
+
|
| 481 |
+
In this section, we explore the representation layer reuse and representation layer change in the last block of a deeper architecture network. Figure 25 and Figure 26 show the cosine similarities between representations after all layers in the last block (i.e., block4) on miniImageNet and Cars. In the case of MAML/ANIL, there is little or no representation layer change in all layers of the last block. In contrast, in the case of BOIL, the gap between intra-class similarity and inter-class similarity is enlarged through adaptation in some or all layers of the last block, which indicates that representation layer reuse in low-level layers of the last block and representation layer change in high-level layers of the block are mixed even in the last block.
|
| 482 |
+
|
| 483 |
+
Furthermore, it is observed that representation at high-level layers in the last block changes more when the last skip connection does not exist (e.g., Figure 25f and Figure 26f) than when the last
|
| 484 |
+
|
| 485 |
+

|
| 486 |
+
|
| 487 |
+

|
| 488 |
+
Figure 26: Cosine similarity in block4 (the last block) of ResNet-12 on Cars.
|
parse/train/umIdUL8rMH/umIdUL8rMH_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/umIdUL8rMH/umIdUL8rMH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/umIdUL8rMH/umIdUL8rMH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|